@nuxt/devtools 4.0.0-alpha.6 → 4.0.0-alpha.8
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/chunks/analyze-build.mjs +32 -0
- package/dist/chunks/module-main.mjs +611 -303
- package/dist/chunks/timeline.mjs +2 -2
- package/dist/chunks/vite-inspect.mjs +75 -39
- package/dist/chunks/vscode.mjs +6 -7
- package/dist/client/200.html +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/_nuxt/__blank-mr7fdmv7.js +1 -0
- package/dist/client/_nuxt/analyze-build-nemej5kd.js +1 -0
- package/dist/client/_nuxt/assets-cl372mus.js +6 -0
- package/dist/client/_nuxt/{auth-required-panel-gwrodxrm.js → auth-required-panel-gdnspumn.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/9ec1ff21-8126-4e86-bc50-039a1d3867c9.json +1 -0
- package/dist/client/_nuxt/{client-jwk7bkap.js → client-ngo84kjy.js} +1 -1
- package/dist/client/_nuxt/{code-diff-d1bf4mlz.js → code-diff-lkyoam09.js} +3 -3
- package/dist/client/_nuxt/code-snippets-hxwvpad4.js +1 -0
- package/dist/client/_nuxt/components-f9ckplr6.js +1 -0
- package/dist/client/_nuxt/composable-item-kchrxdzu.js +1 -0
- package/dist/client/_nuxt/composables-in7qtp0e.js +1 -0
- package/dist/client/_nuxt/custom-_name_-i8pdh231.js +1 -0
- package/dist/client/_nuxt/data-schema-button-jy2w2afg.js +1 -0
- package/dist/client/_nuxt/{data-schema-drawer-5ccj6aug.js → data-schema-drawer-liuhj385.js} +2 -2
- package/dist/client/_nuxt/debug-inf9k7rz.js +1 -0
- package/dist/client/_nuxt/{default-ibmlv6hu.js → default-dgqm22gk.js} +1 -1
- package/dist/client/_nuxt/dist-cwkxp5t4.js +1 -0
- package/dist/client/_nuxt/dist-das2ggjj.js +1 -0
- package/dist/client/_nuxt/dist-hhnji3pn.js +1 -0
- package/dist/client/_nuxt/{duration-display-cfe3xsok.js → duration-display-m84jv0cg.js} +1 -1
- package/dist/client/_nuxt/entry.css-ivisc4pv.css +1 -0
- package/dist/client/_nuxt/error-404-eoz73pl9.js +1 -0
- package/dist/client/_nuxt/error-404.css-i7pin5fo.css +1 -0
- package/dist/client/_nuxt/error-500-h0agvsjp.js +1 -0
- package/dist/client/_nuxt/error-500.css-4ikva5xr.css +1 -0
- package/dist/client/_nuxt/error-h5jfp4d9.js +9 -0
- package/dist/client/_nuxt/{filepath-item-calgslzq.js → filepath-item-b7ye3und.js} +1 -1
- package/dist/client/_nuxt/full-bc145h1r.js +1 -0
- package/dist/client/_nuxt/{help-fab-ietvwhig.js → help-fab-l6k9jkcj.js} +1 -1
- package/dist/client/_nuxt/hooks-ce5n3mpx.js +1 -0
- package/dist/client/_nuxt/iefeupks.js +4 -0
- package/dist/client/_nuxt/imports-ib3kw7ns.js +1 -0
- package/dist/client/_nuxt/launch-page-f3nbtoc4.js +1 -0
- package/dist/client/_nuxt/modules-gf4tkhai.js +1 -0
- package/dist/client/_nuxt/nbadge-254fd0s4.js +1 -0
- package/dist/client/_nuxt/{ncheckbox-gl62y715.js → ncheckbox-jr3c6e4e.js} +1 -1
- package/dist/client/_nuxt/ncode-block-jv3jk7c5.js +2 -0
- package/dist/client/_nuxt/{ndrawer-evv584t1.js → ndrawer-myfvks89.js} +1 -1
- package/dist/client/_nuxt/{ndropdown-dqqc8bnq.js → ndropdown-jnrvla1s.js} +1 -1
- package/dist/client/_nuxt/{nicon-title-f3ho3hah.js → nicon-title-66kg2f9l.js} +1 -1
- package/dist/client/_nuxt/{nlink-endeyoly.js → nlink-gej31v24.js} +1 -1
- package/dist/client/_nuxt/{nmarkdown-iw4stzqp.js → nmarkdown-nskcr8pg.js} +1 -1
- package/dist/client/_nuxt/{nnavbar-n8fcnalx.js → nnavbar-bvq6rk5u.js} +1 -1
- package/dist/client/_nuxt/none-fcxnfo1z.js +1 -0
- package/dist/client/_nuxt/{nsection-block-n5u7wj9x.js → nsection-block-illvvuef.js} +1 -1
- package/dist/client/_nuxt/{nselect-kdzalcm2.js → nselect-hlo7a40m.js} +1 -1
- package/dist/client/_nuxt/nselect-tabs-f47fcdsg.js +1 -0
- package/dist/client/_nuxt/nswitch-iey7gi9t.js +1 -0
- package/dist/client/_nuxt/{ntip-m8x8y44j.js → ntip-kpuxzuo5.js} +1 -1
- package/dist/client/_nuxt/nuxt-hqfu72u1.js +2 -0
- package/dist/client/_nuxt/open-graph-m35euip2.js +3 -0
- package/dist/client/_nuxt/overview-egkv3tit.js +1 -0
- package/dist/client/_nuxt/pages-ddqyzugj.js +1 -0
- package/dist/client/_nuxt/pages-n0i7aw4m.js +1 -0
- package/dist/client/_nuxt/payload-d6h8l8l2.js +1 -0
- package/dist/client/_nuxt/pinia-dl2li4zl.js +1 -0
- package/dist/client/_nuxt/plugins-nhvbpqrg.js +1 -0
- package/dist/client/_nuxt/ready-if1s6ugr.js +1 -0
- package/dist/client/_nuxt/render-tree-h0xpx3p4.js +1 -0
- package/dist/client/_nuxt/rpc-jaaujnev.js +1 -0
- package/dist/client/_nuxt/runtime-configs-o91gwu2q.js +1 -0
- package/dist/client/_nuxt/server-route-inputs-ej6h9rh8.js +1 -0
- package/dist/client/_nuxt/server-routes-ocltmxje.js +7 -0
- package/dist/client/_nuxt/server-tasks-hhkstkby.js +1 -0
- package/dist/client/_nuxt/settings-i2ld0c8q.js +1 -0
- package/dist/client/_nuxt/stacktrace-list-epxhdumx.js +1 -0
- package/dist/client/_nuxt/{state-components-eaw2evd3.js → state-components-eipbhsbn.js} +1 -1
- package/dist/client/_nuxt/{state-editor-jm35t8p1.js → state-editor-ogobz58w.js} +1 -1
- package/dist/client/_nuxt/state-modules-egymhwqw.js +1 -0
- package/dist/client/_nuxt/storage-cciny388.js +1 -0
- package/dist/client/_nuxt/storage-options-g42elkwy.js +1 -0
- package/dist/client/_nuxt/timeline-oese6i7t.js +31 -0
- package/dist/client/_nuxt/{unocss-runtime-mcb0a6oh.js → unocss-runtime-dh4insrr.js} +1 -1
- package/dist/client/_nuxt/utils-h3uzf8s7.js +2 -0
- package/dist/client/_nuxt/vendor/json-editor-vue-c7zwcfg4.js +3861 -0
- package/dist/client/_nuxt/vendor/{markdown-it-gg8o3tmh.js → markdown-it-cx0uvu2o.js} +1 -1
- package/dist/client/_nuxt/vendor/{quicktype-core-ozubcbyl.js → quicktype-core-otmjigaj.js} +65 -65
- package/dist/client/_nuxt/vendor/shiki-mgsi4s2l.js +153 -0
- package/dist/client/_nuxt/vendor/unocss-maavuy8p.js +3 -0
- package/dist/client/_nuxt/virtual-files-pd2s0ff2.js +1 -0
- package/dist/client/_nuxt/vue-devtools-bxffe3ae.js +4 -0
- package/dist/client/_nuxt/vue-router-mro49nyg.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/plugins/view/client.js +15 -0
- package/dist/shared/devtools.B9TxdMuu.mjs +119 -0
- package/dist/types.d.mts +1 -5
- package/dist/webcomponents/index.mjs +1 -1
- package/package.json +45 -49
- package/.discoveryrc.cjs +0 -13
- package/dist/client/_nuxt/__blank-ekrx7eve.js +0 -1
- package/dist/client/_nuxt/analyze-build-gtjxxh9s.js +0 -1
- package/dist/client/_nuxt/assets-fxuoynew.js +0 -6
- package/dist/client/_nuxt/builds/meta/386e78c8-3698-49a8-a7c5-53c44542b939.json +0 -1
- package/dist/client/_nuxt/code-snippets-nodldh90.js +0 -1
- package/dist/client/_nuxt/components-ibu6c1zd.js +0 -1
- package/dist/client/_nuxt/composable-item-lb3qexrh.js +0 -1
- package/dist/client/_nuxt/custom-_name_-dt22ybu3.js +0 -1
- package/dist/client/_nuxt/data-schema-button-m4wb470q.js +0 -1
- package/dist/client/_nuxt/debug-nxl66qh3.js +0 -1
- package/dist/client/_nuxt/dist-nsuzcp77.js +0 -1
- package/dist/client/_nuxt/entry.css-m21ytcnz.css +0 -1
- package/dist/client/_nuxt/error-404-izmgsqlm.js +0 -1
- package/dist/client/_nuxt/error-404.css-l9jcssuy.css +0 -1
- package/dist/client/_nuxt/error-500-fejd4grh.js +0 -1
- package/dist/client/_nuxt/error-500.css-he4ew8b1.css +0 -1
- package/dist/client/_nuxt/error-mm873c55.js +0 -9
- package/dist/client/_nuxt/full-pesi6bu3.js +0 -1
- package/dist/client/_nuxt/h0fobd1u.js +0 -4
- package/dist/client/_nuxt/hooks-mqgelnks.js +0 -1
- package/dist/client/_nuxt/imports-bofdhcsr.js +0 -1
- package/dist/client/_nuxt/launch-page-i8mgxym7.js +0 -1
- package/dist/client/_nuxt/modules-b6uha2ss.js +0 -1
- package/dist/client/_nuxt/nbadge-ft1i3ddy.js +0 -1
- package/dist/client/_nuxt/ncode-block-ksrq5ppu.js +0 -2
- package/dist/client/_nuxt/none-gr24yqiq.js +0 -1
- package/dist/client/_nuxt/nselect-tabs-e440xayq.js +0 -1
- package/dist/client/_nuxt/nswitch-pdw73751.js +0 -1
- package/dist/client/_nuxt/nuxt-kphganvs.js +0 -1
- package/dist/client/_nuxt/open-graph-mtq8qyx5.js +0 -3
- package/dist/client/_nuxt/overview-mgkokpl9.js +0 -1
- package/dist/client/_nuxt/pages-g3tcvbsn.js +0 -1
- package/dist/client/_nuxt/pages-lk0hxlsc.js +0 -1
- package/dist/client/_nuxt/payload-ovd8emqe.js +0 -1
- package/dist/client/_nuxt/pinia-e6em75yg.js +0 -1
- package/dist/client/_nuxt/plugins-ojph2z4c.js +0 -1
- package/dist/client/_nuxt/ready-b5u27bv4.js +0 -1
- package/dist/client/_nuxt/render-tree-iwtso0n9.js +0 -1
- package/dist/client/_nuxt/rpc-ewzip6fb.js +0 -4
- package/dist/client/_nuxt/runtime-configs-gyhmrfcz.js +0 -1
- package/dist/client/_nuxt/server-discovery-cfu428ir.js +0 -1
- package/dist/client/_nuxt/server-route-inputs-hhxdu10p.js +0 -1
- package/dist/client/_nuxt/server-routes-efc7olve.js +0 -7
- package/dist/client/_nuxt/server-tasks-o59rfww6.js +0 -1
- package/dist/client/_nuxt/settings-c6tbo50r.js +0 -1
- package/dist/client/_nuxt/stacktrace-list-c5b46nul.js +0 -1
- package/dist/client/_nuxt/state-modules-oox7nhib.js +0 -1
- package/dist/client/_nuxt/storage-fdd2zc94.js +0 -1
- package/dist/client/_nuxt/storage-options-ho965h55.js +0 -1
- package/dist/client/_nuxt/terminals-b8awmi75.js +0 -1
- package/dist/client/_nuxt/terminals.css-mejv43xm.css +0 -1
- package/dist/client/_nuxt/timeline-nsh72kov.js +0 -31
- package/dist/client/_nuxt/utils-hgmynvjd.js +0 -2
- package/dist/client/_nuxt/vendor/json-editor-vue-mkw4apmc.js +0 -3869
- package/dist/client/_nuxt/vendor/shiki-c7z35hpo.js +0 -293
- package/dist/client/_nuxt/vendor/unocss-mfjt4fak.js +0 -3
- package/dist/client/_nuxt/vendor/xterm-eb5atty5.js +0 -36
- package/dist/client/_nuxt/vendor/xterm.css-j9zpjwmg.css +0 -1
- package/dist/client/_nuxt/virtual-files-met9zkti.js +0 -1
- package/dist/client/_nuxt/vue-devtools-bl144b70.js +0 -4
- package/dist/client/_nuxt/vue-router-cnnrtyb0.js +0 -1
- package/dist/client/discovery/index.html +0 -611
- package/dist/shared/devtools.nEotcg1R.mjs +0 -113
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{A as e,B as t,Ct as n,Dt as r,E as i,Et as a,P as o,St as s,T as c,Tt as l,_t as u,bt as d,ct as f,ht as p,j as m,jt as h,k as g,kt as _,p as v,pt as y,s as b,st as x,wt as S,xt as ee,yt as C}from"./vendor/json-editor-vue-mkw4apmc.js";import{A as te}from"./ready-b5u27bv4.js";function ne(e){return typeof e==`string`?`'${e}'`:new re().serialize(e)}var re=function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?e.localeCompare(t):n===`number`&&r===`number`?e-t:String.prototype.localeCompare.call(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(typeof e.toJSON==`function`){let t=e.toJSON();return r+(typeof t==`object`&&t?this.$object(t):`(${this.serialize(t)})`)}return this.serializeObjectEntries(r,Object.entries(e))}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}(),ie=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],ae=[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],oe=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`,w=[],se=class{_data=new ce;_hash=new ce([...ie]);_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)w[n]=e[t+n]|0;else{let e=w[n-15],t=(e<<25|e>>>7)^(e<<14|e>>>18)^e>>>3,r=w[n-2],i=(r<<15|r>>>17)^(r<<13|r>>>19)^r>>>10;w[n]=t+w[n-7]+i+w[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+ae[n]+w[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=ce.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 ce(t,i)}},ce=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(oe.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 le(e){return new se().finalize(e).toBase64()}function ue(e){return le(ne(e))}function de(e){return ue(e)}function T(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 fe={blue:T(34,39),cyan:T(36,39),gray:T(90,39),green:T(32,39),red:T(31,39),yellow:T(33,39),bold:T(1,22),dim:T(2,22),reset:T(0,0),underline:T(4,24)};function pe(){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 me=`afraid.all.beige.better.big.blue.bold.brave.breezy.bright.brown.bumpy.busy.calm.chatty.chilly.chubby.clean.clear.clever.cold.common.cool.cozy.crisp.cuddly.curly.curvy.cute.cyan.dark.deep.dirty.dry.dull.eager.early.easy.eight.eighty.eleven.empty.every.fair.famous.fancy.fast.few.fiery.fifty.fine.five.flat.floppy.fluffy.forty.four.frank.free.fresh.fruity.full.funky.funny.fuzzy.gentle.giant.gold.good.goofy.great.green.grumpy.happy.heavy.hip.honest.hot.huge.humble.hungry.icy.itchy.jolly.khaki.kind.large.late.lazy.legal.lemon.light.little.long.loose.loud.lovely.lucky.major.many.metal.mighty.modern.moody.neat.new.nice.nine.ninety.odd.old.olive.open.orange.perky.petite.pink.plain.plenty.polite.pretty.proud.public.puny.purple.quick.quiet.rare.ready.real.red.rich.ripe.salty.seven.shaggy.shaky.sharp.shiny.short.shy.silent.silly.silver.six.sixty.slick.slimy.slow.small.smart.smooth.social.soft.solid.some.sour.sparkly.spicy.spotty.stale.strict.strong.sunny.sweet.swift.tall.tame.tangy.tasty.ten.tender.thick.thin.thirty.three.tidy.tiny.tired.tough.tricky.true.twelve.twenty.two.upset.vast.violet.wacky.warm.wet.whole.wicked.wide.wild.wise.witty.yellow.young.yummy`.split(`.`),he=`actors.ads.adults.aliens.animals.ants.apes.apples.areas.baboons.badgers.bags.balloons.bananas.banks.bars.baths.bats.beans.bears.beds.beers.bees.berries.bikes.birds.boats.bobcats.books.bottles.boxes.breads.brooms.buckets.bugs.buses.bushes.buttons.camels.cameras.candies.candles.canyons.carpets.carrots.cars.cases.cats.chairs.chefs.chicken.cities.clocks.cloths.clouds.clowns.clubs.coats.cobras.coins.colts.comics.cooks.corners.cougars.cows.crabs.crews.cups.cycles.dancers.days.deer.deserts.dingos.dodos.dogs.dolls.donkeys.donuts.doodles.doors.dots.dragons.drinks.dryers.ducks.eagles.ears.eels.eggs.emus.ends.experts.eyes.facts.falcons.fans.feet.files.flies.flowers.forks.foxes.friends.frogs.games.garlics.geckos.geese.ghosts.gifts.glasses.goats.grapes.groups.guests.hairs.hands.hats.heads.hoops.hornets.horses.hotels.hounds.houses.humans.icons.ideas.impalas.insects.islands.items.jars.jeans.jobs.jokes.keys.kids.kings.kiwis.knives.lamps.lands.laws.lemons.lies.lights.lilies.lines.lions.lizards.llamas.loops.mails.mammals.mangos.maps.masks.meals.melons.memes.meteors.mice.mirrors.moles.moments.monkeys.months.moons.moose.mugs.nails.needles.news.nights.numbers.olives.onions.oranges.otters.owls.pandas.pans.pants.papayas.papers.parents.parks.parrots.parts.paths.paws.peaches.pears.peas.pens.pets.phones.pianos.pigs.pillows.places.planes.planets.plants.plums.poems.poets.points.pots.pugs.pumas.queens.rabbits.radios.rats.ravens.readers.regions.results.rice.rings.rivers.rockets.rocks.rooms.roses.rules.sails.schools.seals.seas.sheep.shirts.shoes.showers.shrimps.sides.signs.singers.sites.sloths.snails.snakes.socks.spiders.spies.spoons.squids.stamps.stars.states.steaks.streets.suits.suns.swans.symbols.tables.taxes.taxis.teams.teeth.terms.things.ties.tigers.times.tips.tires.toes.tools.towns.toys.trains.trams.trees.turkeys.turtles.vans.views.walls.wasps.waves.ways.webs.weeks.windows.wings.wolves.wombats.words.worlds.worms.yaks.years.zebras.zoos`.split(`.`),ge=`accept.act.add.admire.agree.allow.appear.argue.arrive.ask.attack.attend.bake.bathe.battle.beam.beg.begin.behave.bet.boil.bow.brake.brush.build.burn.buy.call.camp.care.carry.change.cheat.check.cheer.chew.clap.clean.cough.count.cover.crash.create.cross.cry.cut.dance.decide.deny.design.dig.divide.do.double.doubt.draw.dream.dress.drive.drop.drum.eat.end.enjoy.enter.exist.fail.fall.feel.fetch.film.find.fix.flash.float.flow.fly.fold.follow.fry.give.glow.go.grab.greet.grin.grow.guess.hammer.hang.happen.heal.hear.help.hide.hope.hug.hunt.invent.invite.itch.jam.jog.join.joke.judge.juggle.jump.kick.kiss.kneel.knock.know.laugh.lay.lead.learn.leave.lick.lie.like.listen.live.look.lose.love.make.march.marry.mate.matter.melt.mix.move.nail.notice.obey.occur.open.own.pay.peel.pick.play.poke.post.press.prove.pull.pump.punch.push.raise.read.refuse.relate.relax.remain.repair.repeat.reply.report.rescue.rest.retire.return.rhyme.ring.roll.rule.run.rush.say.scream.search.see.sell.send.serve.shake.share.shave.shine.shop.shout.show.sin.sing.sink.sip.sit.sleep.slide.smash.smell.smile.smoke.sneeze.sniff.sort.speak.spend.stand.stare.start.stay.stick.stop.strive.study.swim.switch.take.talk.tan.tap.taste.teach.tease.tell.thank.think.throw.tickle.tie.trade.train.travel.try.turn.type.unite.vanish.visit.wait.walk.warn.wash.watch.wave.wear.win.wink.wish.wonder.work.worry.write.yawn.yell`.split(`.`);function _e(e){return e[Math.random()*e.length|0]}function ve(){return`${_e(me)}-${_e(he)}-${_e(ge)}`}var ye=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function be(e=21){let t=``,n=e;for(;n--;)t+=ye[Math.random()*64|0];return t}var xe=Symbol.for(`immer-nothing`),Se=Symbol.for(`immer-draftable`),E=Symbol.for(`immer-state`),Ce=[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 D(e,...t){{let n=Ce[e],r=N(n)?n.apply(null,t):n;throw Error(`[Immer] ${r}`)}throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var O=Object,k=O.getPrototypeOf,we=`constructor`,Te=`prototype`,Ee=`configurable`,De=`enumerable`,Oe=`writable`,ke=`value`,A=e=>!!e&&!!e[E];function j(e){return e?Me(e)||Re(e)||!!e[Se]||!!e[we]?.[Se]||ze(e)||Be(e):!1}var Ae=O[Te][we].toString(),je=new WeakMap;function Me(e){if(!e||!Ve(e))return!1;let t=k(e);if(t===null||t===O[Te])return!0;let n=O.hasOwnProperty.call(t,we)&&t[we];if(n===Object)return!0;if(!N(n))return!1;let r=je.get(n);return r===void 0&&(r=Function.toString.call(n),je.set(n,r)),r===Ae}function Ne(e,t,n=!0){Pe(e)===0?(n?Reflect.ownKeys(e):O.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Pe(e){let t=e[E];return t?t.type_:Re(e)?1:ze(e)?2:Be(e)?3:0}var Fe=(e,t,n=Pe(e))=>n===2?e.has(t):O[Te].hasOwnProperty.call(e,t),M=(e,t,n=Pe(e))=>n===2?e.get(t):e[t],Ie=(e,t,n,r=Pe(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Le(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var Re=Array.isArray,ze=e=>e instanceof Map,Be=e=>e instanceof Set,Ve=e=>typeof e==`object`,N=e=>typeof e==`function`,He=e=>typeof e==`boolean`;function Ue(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var We=e=>Ve(e)?e?.[E]:null,P=e=>e.copy_||e.base_,Ge=e=>e.modified_?e.copy_:e.base_;function Ke(e,t){if(ze(e))return new Map(e);if(Be(e))return new Set(e);if(Re(e))return Array[Te].slice.call(e);let n=Me(e);if(t===!0||t===`class_only`&&!n){let t=O.getOwnPropertyDescriptors(e);delete t[E];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[Oe]===!1&&(a[Oe]=!0,a[Ee]=!0),(a.get||a.set)&&(t[i]={[Ee]:!0,[Oe]:!0,[De]:a[De],[ke]:e[i]})}return O.create(k(e),t)}else{let t=k(e);if(t!==null&&n)return{...e};let r=O.create(t);return O.assign(r,e)}}function qe(e,t=!1){return Xe(e)||A(e)||!j(e)?e:(Pe(e)>1&&O.defineProperties(e,{set:Ye,add:Ye,clear:Ye,delete:Ye}),O.freeze(e),t&&Ne(e,(e,t)=>{qe(t,!0)},!1),e)}function Je(){D(2)}var Ye={[ke]:Je};function Xe(e){return e===null||!Ve(e)?!0:O.isFrozen(e)}var Ze=`MapSet`,Qe=`Patches`,$e=`ArrayMethods`,et={};function F(e){let t=et[e];return t||D(0,e),t}var tt=e=>!!et[e];function nt(e,t){et[e]||(et[e]=t)}var rt,it=()=>rt,at=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:tt(Ze)?F(Ze):void 0,arrayMethodsPlugin_:tt($e)?F($e):void 0});function ot(e,t){t&&(e.patchPlugin_=F(Qe),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function st(e){ct(e),e.drafts_.forEach(ut),e.drafts_=null}function ct(e){e===rt&&(rt=e.parent_)}var lt=e=>rt=at(rt,e);function ut(e){let t=e[E];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function dt(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[E].modified_&&(st(t),D(4)),j(e)&&(e=ft(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[E].base_,e,t)}else e=ft(t,n);return pt(t,e,!0),st(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===xe?void 0:e}function ft(e,t){if(Xe(t))return t;let n=t[E];if(!n)return xt(t,e.handledSet_,e);if(!ht(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);yt(n,e)}return n.copy_}function pt(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&qe(t,n)}function mt(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var ht=(e,t)=>e.scope_===t,gt=[];function _t(e,t,n,r){let i=P(e),a=e.type_;if(r!==void 0&&M(i,r,a)===t){Ie(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;Ne(i,(e,n)=>{if(A(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??gt;for(let e of o)Ie(i,e,n,a)}function vt(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!ht(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=Ge(i);_t(e,i.draft_??i,a,n),yt(i,r)})}function yt(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)}mt(e)}}function bt(e,t,n){let{scope_:r}=e;if(A(n)){let i=n[E];ht(i,r)&&i.callbacks_.push(function(){kt(e),_t(e,n,Ge(i),t)})}else j(n)&&e.callbacks_.push(function(){let i=P(e);e.type_===3?i.has(n)&&xt(n,r.handledSet_,r):M(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&xt(M(e.copy_,t,e.type_),r.handledSet_,r)})}function xt(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||A(e)||t.has(e)||!j(e)||Xe(e)?e:(t.add(e),Ne(e,(r,i)=>{if(A(i)){let t=i[E];ht(t,n)&&(Ie(e,r,Ge(t),e.type_),mt(t))}else j(i)&&xt(i,t,n)}),e)}function St(e,t){let n=Re(e),r={type_:+!!n,scope_:t?t.scope_:it(),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=Ct;n&&(i=[r],a=wt);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var Ct={get(e,t){if(t===E)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=P(e);if(!Fe(i,t,e.type_))return Et(e,i,t);let a=i[t];if(e.finalized_||!j(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&Ue(t))return a;if(a===Tt(e.base_,t)){kt(e);let n=e.type_===1?+t:t,r=jt(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in P(e)},ownKeys(e){return Reflect.ownKeys(P(e))},set(e,t,n){let r=Dt(P(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=Tt(P(e),t),i=r?.[E];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Le(n,r)&&(n!==void 0||Fe(e.base_,t,e.type_)))return!0;kt(e),Ot(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),bt(e,t,n),!0)},deleteProperty(e,t){return kt(e),Tt(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Ot(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=P(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Oe]:!0,[Ee]:e.type_!==1||t!==`length`,[De]:r[De],[ke]:n[t]}},defineProperty(){D(11)},getPrototypeOf(e){return k(e.base_)},setPrototypeOf(){D(12)}},wt={};for(let e in Ct){let t=Ct[e];wt[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}wt.deleteProperty=function(e,t){return isNaN(parseInt(t))&&D(13),wt.set.call(this,e,t,void 0)},wt.set=function(e,t,n){return t!==`length`&&isNaN(parseInt(t))&&D(14),Ct.set.call(this,e[0],t,n,e[0])};function Tt(e,t){let n=e[E];return(n?P(n):e)[t]}function Et(e,t,n){let r=Dt(t,n);return r?ke in r?r[ke]:r.get?.call(e.draft_):void 0}function Dt(e,t){if(!(t in e))return;let n=k(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=k(n)}}function Ot(e){e.modified_||(e.modified_=!0,e.parent_&&Ot(e.parent_))}function kt(e){e.copy_||=(e.assigned_=new Map,Ke(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var At=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(N(e)&&!N(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}N(t)||D(6),n!==void 0&&!N(n)&&D(7);let r;if(j(e)){let i=lt(this),a=jt(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?st(i):ct(i)}return ot(i,n),dt(r,i)}else if(!e||!Ve(e)){if(r=t(e),r===void 0&&(r=e),r===xe&&(r=void 0),this.autoFreeze_&&qe(r,!0),n){let t=[],i=[];F(Qe).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}else D(1,e)},this.produceWithPatches=(e,t)=>{if(N(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]},He(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),He(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),He(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){j(e)||D(8),A(e)&&(e=Mt(e));let t=lt(this),n=jt(t,e,void 0);return n[E].isManual_=!0,ct(t),n}finishDraft(e,t){let n=e&&e[E];(!n||!n.isManual_)&&D(9);let{scope_:r}=n;return ot(r,t),dt(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=F(Qe).applyPatches_;return A(e)?r(e,t):this.produce(e,e=>r(e,t))}};function jt(e,t,n,r){let[i,a]=ze(t)?F(Ze).proxyMap_(t,n):Be(t)?F(Ze).proxySet_(t,n):St(t,n);return(n?.scope_??it()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?vt(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 Mt(e){return A(e)||D(10,e),Nt(e)}function Nt(e){if(!j(e)||Xe(e))return e;let t=e[E],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Ke(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Ke(e,!0);return Ne(n,(e,t)=>{Ie(n,e,Nt(t))},r),t&&(t.finalized_=!1),n}function Pt(){Ce.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=We(M(e,n.key_)),i=M(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||Fe(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=M(n,r),!Ve(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?.[E];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;Ne(e.assigned_,(e,l)=>{let u=M(o,e,c),f=M(s,e,c),p=l?Fe(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===xe?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=Pe(o),n=i[e];typeof n!=`string`&&typeof n!=`number`&&(n=``+n),(t===0||t===1)&&(n===`__proto__`||n===we)&&D(19),N(o)&&n===Te&&D(19),o=M(o,n),Ve(o)||D(18,i.join(`/`))}let s=Pe(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:D(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:D(17,a)}}),e}function u(e){if(!j(e))return e;if(Re(e))return e.map(u);if(ze(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,u(t)]));if(Be(e))return new Set(Array.from(e).map(u));let t=Object.create(k(e));for(let n in e)t[n]=u(e[n]);return Fe(e,Se)&&(t[Se]=e[Se]),t}function d(e){return A(e)?u(e):e}nt(Qe,{applyPatches_:l,generatePatches_:i,generateReplacementPatches_:c,getPath:e})}var Ft=new At,It=Ft.produce,Lt=Ft.produceWithPatches.bind(Ft),Rt=Ft.applyPatches.bind(Ft);function zt(e){let{enablePatches:t=!1}=e,n=pe(),r=e.initialValue,i=new Set;return{on:n.on,value:()=>r,patch:(e,t=be())=>{i.has(t)||(Pt(),r=Rt(r,e),i.add(t),n.emit(`updated`,r,void 0,t))},mutate:(e,a=be())=>{if(!i.has(a))if(i.add(a),t){let[t,i]=Lt(r,e);r=t,n.emit(`updated`,r,i,a)}else r=It(r,e),n.emit(`updated`,r,void 0,a)},syncIds:i}}var Bt=typeof self==`object`?self:globalThis;function Vt(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;return n(new Bt[e](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)}}return n(new Bt[a](o),i)};return r}function Ht(e){return Vt(new Map,e)(0)}var Ut=``,{toString:Wt}={},{keys:Gt}=Object;function Kt(e){let t=typeof e;if(t!==`object`||!e)return[0,t];let n=Wt.call(e).slice(8,-1);switch(n){case`Array`:return[1,Ut];case`Object`:return[2,Ut];case`Date`:return[3,Ut];case`RegExp`:return[4,Ut];case`Map`:return[5,Ut];case`Set`:return[6,Ut];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]}function qt([e,t]){return e===0&&(t===`function`||t===`symbol`)}function Jt(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]=Kt(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 Gt(r))(e||!qt(Kt(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||!(qt(Kt(n))||qt(Kt(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!qt(Kt(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a}function Yt(e,t={}){let n=[];return Jt(!(t.json||t.lossy),!!t.json,new Map,n)(e),n}var{parse:Xt,stringify:Zt}=JSON,Qt={json:!0,lossy:!0};function $t(e){return Ht(Xt(e))}function en(e){return Zt(Yt(e,Qt))}function tn(e){return Ht(e)}function nn(e){return en(e)}function rn(e){return $t(e)}var an=256,on=class extends Error{name=`StreamClosedError`};function sn(e={}){let t=e.id??be(),n=Math.max(0,e.replayWindow??0),r=pe(),i=new AbortController,a=[],o=!1,s=0;function c(e){if(o)throw new on(`Cannot write to a closed stream "${t}"`);s+=1,n>0&&(a.push({seq:s,chunk:e}),a.length>n&&a.splice(0,a.length-n)),r.emit(`chunk`,s,e)}function l(e){if(o)return;o=!0;let t=ln(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 cn(e={}){let t=e.id??be(),n=Math.max(1,e.highWaterMark??an),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 ln(e){if(e instanceof Error)return{name:e.name||`Error`,message:e.message};if(typeof e==`string`)return{name:`Error`,message:e};try{return{name:`Error`,message:JSON.stringify(e)}}catch{return{name:`Error`,message:String(e)}}}function un(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function dn(e,...t){return typeof e==`function`?e(...t):e}var fn=Error.captureStackTrace;function pn(e){return e.split(`
|
|
2
|
-
`).filter(e=>!e.trimStart().startsWith(`at `)||!e.includes(`/node_modules/`)&&!e.includes(`(node:`)).join(`
|
|
3
|
-
`)}var mn=class e extends Error{name=`Diagnostic`;docs;fix;sources;get why(){return this.message}constructor(t,n=e){super(t.why,{cause:t.cause}),this.fix=t.fix,this.docs=t.docs,this.sources=t.sources,fn?.(this,n),this.stack&&=pn(this.stack)}toJSON(){return{name:this.name,why:this.why,fix:this.fix,docs:this.docs,sources:this.sources,cause:this.cause}}devOnly};function hn(e){let t=e.reporters??[],n={},{docsBase:r}=e;for(let i of Object.keys(e.codes)){let a=e.codes[i],o=a.docs===!1?void 0:a.docs||(typeof r==`string`?`${r}/${i.toLowerCase()}`:r?.(i)),s=(e={},n={})=>{let r=new mn({why:dn(a.why,e),fix:dn(a.fix,e),docs:o,cause:e.cause,sources:e.sources},s);r.name=i;for(let e of t)e(r,n);return r};n[i]=s}return n}function gn(e){return t=>{let n=`${e.bold(e.red(`[${t.name}]`))} ${t.message}`,r=[];return t.fix&&r.push(`${e.dim(`fix:`)} ${t.fix}`),t.sources?.length&&r.push(`${e.dim(`sources:`)} ${t.sources.join(`, `)}`),t.docs&&r.push(`${e.dim(`see:`)} ${e.cyan(t.docs)}`),r.length===0?n:[n,...r.map((t,n)=>`${e.dim(n<r.length-1?`├▶`:`╰▶`)} ${t}`)].join(`
|
|
4
|
-
`)}}var _n=`q`,vn=`s`;function yn(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var bn=Math.random.bind(Math),xn=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function Sn(e=21){let t=``,n=e;for(;n--;)t+=xn[bn()*64|0];return t}var Cn=6e4,wn=e=>e,Tn=wn,{clearTimeout:En,setTimeout:Dn}=globalThis;function On(e,t){let{post:n,on:r,off:i=()=>{},eventNames:a=[],serialize:o=wn,deserialize:s=Tn,resolver:c,bind:l=`rpc`,timeout:u=Cn,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:_n};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}=yn(),_=Sn();s.i=_;let v;async function y(n=s){return u>=0&&(v=Dn(()=>{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{En(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.prototype.hasOwnProperty.call(_,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===_n){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:vn,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:vn,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&&(En(r.timeoutId),n?r.reject(n):r.resolve(t)),p.delete(e)}}return m=r(b),h}var kn=`__connection.json`,An=`__rpc-dump/index.json`,jn=gn(fe);function Mn(e,{method:t=`warn`}={}){console[t](jn(e))}var Nn=hn({docsBase:`https://devfra.me/errors`,reporters:[Mn],codes:{DF0019:{why:e=>`RPC function "${e.name}" has \`agent\` set but \`jsonSerializable\` is not \`true\` — MCP requires JSON-serializable data.`,fix:"Set `jsonSerializable: true` if the payload is JSON-safe, or remove `agent` to keep it RPC-only."},DF0020:{why:e=>`RPC function "${e.name}" declares \`jsonSerializable: true\` but the value at "${e.path}" is a ${e.type}.`,fix:"Either drop `jsonSerializable: true` (falls back to structured-clone) or change the value to a JSON-safe shape."},DF0021:{why:e=>`RPC function "${e.name}" is already registered`,fix:"Use the `force` parameter to overwrite an existing registration."},DF0022:{why:e=>`RPC function "${e.name}" is not registered. Use register() to add new functions.`},DF0023:{why:e=>`RPC function "${e.name}" is not registered`},DF0024:{why:e=>`Either handler or setup function must be provided for RPC function "${e.name}"`},DF0025:{why:e=>`Function "${e.name}" not found in dump store`},DF0026:{why:e=>`No dump match for "${e.name}" with args: ${e.args}`},DF0027:{why:e=>`Function "${e.name}" with type "${e.type}" cannot have dump configuration. Only "static" and "query" types support dumps.`},DF0028:{why:e=>`Function "${e.name}" with type "${e.type}" cannot use \`snapshot: true\`. Only "query" functions support this sugar; "static" functions have equivalent default behavior already.`,fix:"Remove `snapshot: true`, or change the function type to `query`."}}});function Pn(e){let t=e.cause instanceof Error?e.cause:Fn(e.cause)?Pn(e.cause):e.cause,n=t===void 0?Error(e.message):Error(e.message,{cause:t});n.name=e.name;for(let t of Object.keys(e))t===`name`||t===`message`||t===`cause`||(n[t]=e[t]);return n}function Fn(e){return typeof e==`object`&&!!e&&typeof e.message==`string`&&typeof e.name==`string`}async function In(e,t){if(!e.setup)return{};if(typeof t==`object`&&t){e.__cache??=new WeakMap;let n=e.__cache.get(t);return n||(n=Promise.resolve(e.setup(t)),e.__cache.set(t,n)),await n}return e.__promise??=Promise.resolve(e.setup(t)),await e.__promise}async function Ln(e,t){if(e.handler)return e.handler;let n=await In(e,t);if(!n.handler)throw Nn.DF0024({name:e.name});return n.handler}var Rn=class{cacheMap=new Map;options;keySerializer;constructor(e){this.options=e,this.keySerializer=e.keySerializer||(e=>de(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))}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()}},zn=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 Ln(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 Nn.DF0021({name:e.name});Bn(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 Nn.DF0022({name:e.name});Bn(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 Ln(this.definitions.get(e),this.context)}getSchema(e){let t=this.definitions.get(e);if(!t)throw Nn.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 Bn(e){if(e.agent&&e.jsonSerializable!==!0)throw Nn.DF0019({name:e.name})}function Vn(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 Hn(t,`undefined`,r,e);return n}if(i===null)return n;if(typeof i==`bigint`)throw Hn(t,`BigInt`,r,e);if(typeof i==`object`){if(i instanceof Map)throw Hn(t,`Map`,r,e);if(i instanceof Set)throw Hn(t,`Set`,r,e);if(i instanceof Date)throw Hn(t,`Date`,r,e);if(Array.isArray(i))return n;let a=Object.getPrototypeOf(i);if(a!==null&&a!==Object.prototype)throw Hn(t,i.constructor?.name??`class instance`,r,e)}return n})}function Hn(e,t,n,r){let i=Un(n,r);return Nn.DF0020({name:e||`<anonymous>`,type:t,path:i})}function Un(e,t){return Array.isArray(e)?`[${t}]`:t===``?`<root>`:t}function Wn(e){let t=new Map,n=new Map,r=new Set,i=e.connectionMeta.backend===`static`;function a(e,t){let r=n.get(e);return r&&typeof r==`object`&&!Array.isArray(r)&&typeof t==`object`&&!Array.isArray(t)?{...r,...t}:t}e.client.register({name:`devframe:rpc:client-state:updated`,type:`event`,handler:(e,n,r)=>{let i=t.get(e);!i||i.syncIds.has(r)||i.mutate(()=>a(e,n),r)}}),e.client.register({name:`devframe:rpc:client-state:patch`,type:`event`,handler:(e,n,r)=>{let i=t.get(e);!i||i.syncIds.has(r)||i.patch(n,r)}});function o(t,n){let r=[];return r.push(n.on(`updated`,(n,r,a)=>{i||(r?e.callEvent(`devframe:rpc:server-state:patch`,t,r,a):e.callEvent(`devframe:rpc:server-state:set`,t,n,a))})),()=>{for(let e of r)e()}}return{keys:()=>Array.from(t.keys()),onKeyAdded(e){return r.add(e),()=>{r.delete(e)}},get:async(s,c)=>{if(c?.initialValue!==void 0&&n.set(s,c.initialValue),t.has(s))return t.get(s);let l=zt({initialValue:c?.initialValue,enablePatches:!1});async function u(){if(i||e.callEvent(`devframe:rpc:server-state:subscribe`,s),c?.initialValue!==void 0){t.set(s,l);for(let e of r)e(s);return e.call(`devframe:rpc:server-state:get`,s).then(e=>{e!==void 0&&l.mutate(()=>a(s,e))}).catch(e=>{console.error(`Error getting server state`,e)}),o(s,l),l}else{let n=await e.call(`devframe:rpc:server-state:get`,s);l.mutate(()=>a(s,n)),t.set(s,l);for(let e of r)e(s);return o(s,l),l}}return new Promise(t=>{e.isTrusted?u().then(t):(t(l),e.events.on(`rpc:is-trusted:updated`,e=>{e&&u()}))})}}}function Gn(e){return typeof e==`object`&&!!e&&e.type===`static`&&typeof e.path==`string`}function Kn(e){return typeof e==`object`&&!!e&&e.type===`query`&&typeof e.records==`object`&&e.records!==null}function qn(e){return typeof e==`object`&&!!e&&(`output`in e||`error`in e)}function Jn(e){if(e.error)throw Pn(e.error);return e.output}function Yn(e,t){let n=new Map,r=new Map;function i(e,t){return t===`structured-clone`?tn(e):e}async function a(e){n.has(e.path)||n.set(e.path,t(e.path).then(t=>i(t,e.serialization)));let r=await n.get(e.path);return qn(r)?Jn(r):r}async function o(e,n){return r.has(e)||r.set(e,t(e).then(e=>i(e,n))),await r.get(e)}async function s(t,n){if(!(t in e))throw Error(`[devframe-rpc] Function "${t}" not found in dump store`);let r=e[t];if(Gn(r)){if(n.length>0)throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`);return await a(r)}if(Kn(r)){let e=de(n),i=r.records[e];if(i)return Jn(await o(i,r.serialization));if(r.fallback)return Jn(await o(r.fallback,r.serialization));throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`)}if(n.length===0)return r;throw Error(`[devframe-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`)}return{call:async(e,t)=>await s(e,t),callOptional:async(t,n)=>{if(t in e)return await s(t,n)},callEvent:async(e,t)=>{}}}async function Xn(e){let t=Yn(await e.fetchJsonFromBases(An),e.fetchJsonFromBases);return{isTrusted:!0,requestTrust:async()=>!0,requestTrustWithToken:async()=>!0,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))}}var Zn=``;function Qn(e,t){return`${e}${Zn}${t}`}function $n(e){let t=new Map,n=new Map;e.client.register({name:`devframe:streaming:chunk`,type:`event`,handler(e,n,r,i){t.get(Qn(e,n))?._push(r,i)}}),e.client.register({name:`devframe:streaming:end`,type:`event`,handler(e,n,r){let i=Qn(e,n),a=t.get(i);a&&(a._end(r),t.delete(i))}}),e.client.register({name:`devframe:streaming:upload-cancel`,type:`event`,handler(e,t){let r=Qn(e,t),i=n.get(r);i&&(i.abort(`server cancelled upload`),n.delete(r))}}),e.events.on(`rpc:is-trusted:updated`,n=>{if(n)for(let[n,r]of t){if(r.cancelled||r.done)continue;let t=n.indexOf(Zn);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=Qn(n,r),o=t.get(a);if(o)return o;let s=cn({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(`rpc:is-trusted:updated`,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=Qn(t,r),a=n.get(i);if(a)return a;let o=sn({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 er(e,t){let{channel:n,rpcOptions:r={}}=t;return On(e,{...n,timeout:-1,...r,proxify:!1})}function tr(){}var nr=new Map;function rr(e){let t=e.url;e.authToken&&(t=`${t}?devframe_auth_token=${encodeURIComponent(e.authToken)}`);let n=new WebSocket(t),{onConnected:r=tr,onError:i=tr,onDisconnected:a=tr,definitions:o=nr}=e;n.addEventListener(`open`,e=>{r(e)}),n.addEventListener(`error`,e=>{i(e instanceof Error?e:Error(e.type))}),n.addEventListener(`close`,e=>{a(e)});let s=new Map;return{on:e=>{n.addEventListener(`message`,t=>{e(t.data)})},post:e=>{if(n.readyState===WebSocket.OPEN)n.send(e);else{function t(){n.send(e),n.removeEventListener(`open`,t)}n.addEventListener(`open`,t)}},serialize:e=>{let t;return e.t===`q`?t=e.m:(t=s.get(e.i),s.delete(e.i)),!(e.t===`s`&&`e`in e)&&t&&o.get(t)?.jsonSerializable===!0?Vn(e,t??``):`s:${nn(e)}`},deserialize:e=>{let t=e.startsWith(`s:`)?rn(e.slice(2)):JSON.parse(e);return t.t===`q`&&t.i&&t.m&&s.set(t.i,t.m),t}}}var ir=``,ar=`?`,or=`major`,I=`model`,L=`name`,R=`type`,z=`vendor`,B=`version`,V=`architecture`,sr=`console`,H=`mobile`,U=`tablet`,W=`smarttv`,cr=`wearable`,lr=`embedded`,ur=500,dr=`Amazon`,fr=`Apple`,pr=`ASUS`,mr=`BlackBerry`,G=`Browser`,hr=`Chrome`,gr=`Edge`,_r=`Firefox`,vr=`Google`,yr=`Huawei`,br=`LG`,xr=`Microsoft`,Sr=`Motorola`,Cr=`Opera`,wr=`Samsung`,Tr=`Sharp`,Er=`Sony`,Dr=`Xiaomi`,Or=`Zebra`,kr=`Facebook`,Ar=`Chromium OS`,jr=`Mac OS`;function Mr(e,t={}){let n={};for(let r of Object.keys(e)){let i=t[r];i&&i.length%2==0?n[r]=[...i,...e[r]]:n[r]=e[r]}return n}function Nr(e){let t={};for(let n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t}function Pr(e){return e.toLowerCase()}function Fr(e,t){return typeof e==`string`?Pr(t).includes(Pr(e)):!1}function Ir(e){return typeof e==`string`?e.replace(/[^\d.]/g,ir).split(`.`)[0]:void 0}function Lr(e,t){let n=e.replace(/^\s+/,ir);return t===void 0?n:n.substring(0,t)}function Rr(e,t,n){let r=n??{};for(let n=0;n<t.length;n+=2){let i=t[n],a=t[n+1];for(let t=0;t<i.length;t++){let n=i[t];if(!n)break;let o=n.exec(e);if(o){for(let e=0;e<a.length;e++){let t=o[e+1],n=a[e];if(Array.isArray(n)){let e=n[0],i=n.length;if(i===2){let i=n[1];typeof i==`function`?r[e]=i(t,void 0,r):r[e]=i}else if(i===3){let i=n[1],a=n[2];typeof i==`function`&&!(`exec`in i)&&!(`test`in i)?r[e]=t?i(t,a,r):void 0:r[e]=t?t.replace(i,a):void 0}else i===4&&(r[e]=t?n[3](t.replace(n[1],n[2]),void 0,r):void 0)}else r[n]=t||void 0}return r}}}return r}function zr(e,t){for(let n in t){let r=t[n];if(Array.isArray(r)&&r.length>0){for(let t=0;t<r.length;t++)if(Fr(r[t],e))return n===ar?void 0:n}else if(Fr(r,e))return n===ar?void 0:n}return e}var Br={"1.0":`/8`,"1.2":`/1`,"1.3":`/3`,"2.0":`/412`,"2.0.2":`/416`,"2.0.3":`/417`,"2.0.4":`/419`,"?":`/`},Vr={ME:`4.90`,"NT 3.11":`NT3.51`,"NT 4.0":`NT4.0`,2e3:`NT 5.0`,XP:[`NT 5.1`,`NT 5.2`],Vista:`NT 6.0`,7:`NT 6.1`,8:`NT 6.2`,"8.1":`NT 6.3`,10:[`NT 6.4`,`NT 10.0`],RT:`ARM`},Hr={browser:[[/\b(?:crmo|crios)\/([\w.]+)/i],[B,[L,`Chrome`]],[/edg(?:e|ios|a)?\/([\w.]+)/i],[B,[L,`Edge`]],[/(opera mini)\/([-\w.]+)/i,/(opera [mobileta]{3,6})\b.+version\/([-\w.]+)/i,/(opera)(?:.+version\/|[/ ]+)([\w.]+)/i],[L,B],[/opios[/ ]+([\w.]+)/i],[B,[L,`${Cr} Mini`]],[/\bop(?:rg)?x\/([\w.]+)/i],[B,[L,`${Cr} GX`]],[/\bopr\/([\w.]+)/i],[B,[L,Cr]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[/ ]?([\w.]+)/i],[B,[L,`Baidu`]],[/(kindle)\/([\w.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[/ ]?([\w.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[/ ]?([\w.]*)/i,/(?:ms|\()(ie) ([\w.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w.]+)/i,/(heytap|ovi)browser\/([\d.]+)/i,/(weibo)__([\d.]+)/i],[L,B],[/\bddg\/([\w.]+)/i],[B,[L,`DuckDuckGo`]],[/(?:\buc? ?browser|juc.+ucweb)[/ ]?([\w.]+)/i],[B,[L,`UC${G}`]],[/microm.+\bqbcore\/([\w.]+)/i,/\bqbcore\/([\w.]+).+microm/i,/micromessenger\/([\w.]+)/i],[B,[L,`WeChat`]],[/konqueror\/([\w.]+)/i],[B,[L,`Konqueror`]],[/trident.+rv[: ]([\w.]{1,9})\b.+like gecko/i],[B,[L,`IE`]],[/ya(?:search)?browser\/([\w.]+)/i],[B,[L,`Yandex`]],[/slbrowser\/([\w.]+)/i],[B,[L,`Smart Lenovo ${G}`]],[/(avast|avg)\/([\w.]+)/i],[[L,/(.+)/,`$1 Secure ${G}`],B],[/\bfocus\/([\w.]+)/i],[B,[L,`${_r} Focus`]],[/\bopt\/([\w.]+)/i],[B,[L,`${Cr} Touch`]],[/coc_coc\w+\/([\w.]+)/i],[B,[L,`Coc Coc`]],[/dolfin\/([\w.]+)/i],[B,[L,`Dolphin`]],[/coast\/([\w.]+)/i],[B,[L,`${Cr} Coast`]],[/miuibrowser\/([\w.]+)/i],[B,[L,`MIUI ${G}`]],[/fxios\/([-\w.]+)/i],[B,[L,_r]],[/\bqihu|(qi?ho{0,2}|360)browser/i],[[L,`360 ${G}`]],[/(oculus|sailfish|huawei|vivo)browser\/([\w.]+)/i],[[L,/(.+)/,`$1 ${G}`],B],[/samsungbrowser\/([\w.]+)/i],[B,[L,`${wr} Internet`]],[/(comodo_dragon)\/([\w.]+)/i],[[L,/_/g,` `],B],[/metasr[/ ]?([\d.]+)/i],[B,[L,`Sogou Explorer`]],[/(sogou)mo\w+\/([\d.]+)/i],[[L,`Sogou Mobile`],B],[/(electron)\/([\w.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w.]+))/i,/m?(qqbrowser|2345Explorer)[/ ]?([\w.]+)/i],[L,B],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[L],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w.]+);)/i],[[L,kr],B],[/(Klarna)\/([\w.]+)/i,/(kakao(?:talk|story))[/ ]([\w.]+)/i,/(naver)\(.*?(\d+\.[\w.]+).*\)/i,/safari (line)\/([\w.]+)/i,/\b(line)\/([\w.]+)\/iab/i,/(alipay)client\/([\w.]+)/i,/(twitter)(?:and| f.+e\/([\w.]+))/i,/(chromium|instagram|snapchat)[/ ]([-\w.]+)/i],[L,B],[/\bgsa\/([\w.]+) .*safari\//i],[B,[L,`GSA`]],[/musical_ly(?:.+app_?version\/|_)([\w.]+)/i],[B,[L,`TikTok`]],[/headlesschrome(?:\/([\w.]+)| )/i],[B,[L,`${hr} Headless`]],[/ wv\).+(chrome)\/([\w.]+)/i],[[L,`${hr} WebView`],B],[/droid.+ version\/([\w.]+)\b.+(?:mobile safari|safari)/i],[B,[L,`Android ${G}`]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w.]+)/i],[L,B],[/version\/([\w.,]+) .*mobile\/\w+ (safari)/i],[B,[L,`Mobile Safari`]],[/version\/([\w(.|,)]+) .*(mobile ?safari|safari)/i],[B,L],[/webkit.+?(mobile ?safari|safari)(\/[\w.]+)/i],[L,[B,zr,Br]],[/(webkit|khtml)\/([\w.]+)/i],[L,B],[/(navigator|netscape\d?)\/([-\w.]+)/i],[[L,`Netscape`],B],[/mobile vr; rv:([\w.]+)\).+firefox/i],[B,[L,`${_r} Reality`]],[/ekiohf.+(flow)\/([\w.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[/ ]?([\w.+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w.]+)$/i,/(firefox)\/([\w.]+)/i,/(mozilla)\/([\w.]+) .+rv:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[. ]?browser)[-/ ]?v?([\w.]+)/i,/(links) \(([\w.]+)/i,/panasonic;(viera)/i],[L,B],[/(cobalt)\/([\w.]+)/i],[L,[B,/master.|lts./,``]]],cpu:[[/(amd|x(?:(?:86|64)[-_])?|wow|win)64[;)]/i],[[V,`amd64`]],[/(ia32(?=;))/i],[[V,Pr]],[/((?:i[346]|x)86)[;)]/i],[[V,`ia32`]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[V,`arm64`]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[V,`armhf`]],[/windows (ce|mobile); ppc;/i],[[V,`arm`]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[V,/ower/,ir,Pr]],[/(sun4\w)[;)]/i],[[V,`sparc`]],[/(avr32|ia64(?=;)|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[V,Pr]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[I,[z,wr],[R,U]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?\d+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[I,[z,wr],[R,H]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[I,[z,fr],[R,H]],[/\((ipad);[-\w),; ]+apple/i,/applecoremedia\/[\w.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[I,[z,fr],[R,U]],[/(macintosh);/i],[I,[z,fr]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[I,[z,Tr],[R,H]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[I,[z,yr],[R,U]],[/(?:huawei|honor)([-\w ]+)[;)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][0-359c][adn]?)\b(?!.+d\/s)/i],[I,[z,yr],[R,H]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?[\w ]+)(?: bui|\))/i,/oid[^)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?\d?\w?[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[I,/_/g,` `],[z,Dr],[R,H]],[/oid[^)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?pad[\w ]+)(?: bui|\))/i],[[I,/_/g,` `],[z,Dr],[R,U]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[I,[z,`OPPO`],[R,H]],[/\b(opd2\d{3}a?) bui/i],[I,[z,`OPPO`],[R,U]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[I,[z,`Vivo`],[R,H]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[I,[z,`Realme`],[R,H]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w() ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[I,[z,Sr],[R,H]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[I,[z,Sr],[R,U]],[/((?=lg)?[vl]k-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[I,[z,br],[R,U]],[/(lm(?:-?f100[nv]?|-[\w.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?(\w+) bui/i],[I,[z,br],[R,H]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab[\w ]+|yt[-\w]{6}|tb[-\w]{6})/i],[I,[z,`Lenovo`],[R,U]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w.]*)/i],[[I,/_/g,` `],[z,`Nokia`],[R,H]],[/(pixel c)\b/i],[I,[z,vr],[R,U]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[I,[z,vr],[R,H]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]?\d\.))/i],[I,[z,Er],[R,H]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[I,`Xperia Tablet`],[z,Er],[R,U]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[I,[z,`OnePlus`],[R,H]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[I,[z,dr],[R,U]],[/((?:sd|kf)[0349hijor-uw]+)( bui|\)).+silk\//i],[[I,/(.+)/g,`Fire Phone $1`],[z,dr],[R,H]],[/(playbook);[-\w),; ]+(rim)/i],[I,z,[R,U]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[I,[z,mr],[R,H]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[I,[z,pr],[R,U]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[I,[z,pr],[R,H]],[/(nexus 9)/i],[I,[z,`HTC`],[R,U]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!;|\.)|sony(?!-bra))[-_ ]?([-\w]*)/i],[z,[I,/_/g,` `],[R,H]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[I,[z,`Acer`],[R,U]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[I,[z,`Meizu`],[R,H]],[/; ((?:power )?armor[\w ]{0,8})(?: bui|\))/i],[I,[z,`Ulefone`],[R,H]],[/(blackberry|benq|palm(?=-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[z,I,[R,H]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[z,I,[R,U]],[/(surface duo)/i],[I,[z,xr],[R,U]],[/droid [\d.]+; (fp\du?)(?: b|\))/i],[I,[z,`Fairphone`],[R,H]],[/(u304aa)/i],[I,[z,`AT&T`],[R,H]],[/\bsie-(\w*)/i],[I,[z,`Siemens`],[R,H]],[/\b(rct\w+) b/i],[I,[z,`RCA`],[R,U]],[/\b(venue[\d ]{2,7}) b/i],[I,[z,`Dell`],[R,U]],[/\b(q(?:mv|ta)\w+) b/i],[I,[z,`Verizon`],[R,U]],[/\b(?:barnes[& ]+noble |bn[rt])([\w+ ]*) b/i],[I,[z,`Barnes & Noble`],[R,U]],[/\b(tm\d{3}\w+) b/i],[I,[z,`NuVision`],[R,U]],[/\b(k88) b/i],[I,[z,`ZTE`],[R,U]],[/\b(nx\d{3}j) b/i],[I,[z,`ZTE`],[R,H]],[/\b(gen\d{3}) b.+49h/i],[I,[z,`Swiss`],[R,H]],[/\b(zur\d{3}) b/i],[I,[z,`Swiss`],[R,U]],[/\b((zeki)?tb.*\b) b/i],[I,[z,`Zeki`],[R,U]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[z,`Dragon Touch`],I,[R,U]],[/\b(ns-?\w{0,9}) b/i],[I,[z,`Insignia`],[R,U]],[/\b((nxa|next)-?\w{0,9}) b/i],[I,[z,`NextBook`],[R,U]],[/\b(xtreme_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[z,`Voice`],I,[R,H]],[/\b(lvtel-)?(v1[12]) b/i],[[z,`LvTel`],I,[R,H]],[/\b(ph-1) /i],[I,[z,`Essential`],[R,H]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[I,[z,`Envizen`],[R,U]],[/\b(trio[-\w. ]+) b/i],[I,[z,`MachSpeed`],[R,U]],[/\btu_(1491) b/i],[I,[z,`Rotor`],[R,U]],[/(shield[\w ]+) b/i],[I,[z,`Nvidia`],[R,U]],[/(sprint) (\w+)/i],[z,I,[R,H]],[/(kin\.[onetw]{3})/i],[[I,/\./g,` `],[z,xr],[R,H]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[I,[z,Or],[R,U]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[I,[z,Or],[R,H]],[/smart-tv.+(samsung)/i],[z,[R,W]],[/hbbtv.+maple;(\d+)/i],[[I,/^/,`SmartTV`],[z,wr],[R,W]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[z,br],[R,W]],[/(apple) ?tv/i],[z,[I,`${fr} TV`],[R,W]],[/crkey/i],[[I,`${hr}cast`],[z,vr],[R,W]],[/droid.+aft(\w+)( bui|\))/i],[I,[z,dr],[R,W]],[/\(dtv[);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[I,[z,Tr],[R,W]],[/(bravia[\w ]+)( bui|\))/i],[I,[z,Er],[R,W]],[/(mitv-\w{5}) bui/i],[I,[z,Dr],[R,W]],[/Hbbtv.*(technisat) (.*);/i],[z,I,[R,W]],[/\b(roku)[\dx]*[)/]((?:dvp-)?[\d.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w+ ]*; *(\w[^;]*);([^;]*)/i],[[z,Lr],[I,Lr],[R,W]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[R,W]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[z,I,[R,sr]],[/droid.+; (shield) bui/i],[I,[z,`Nvidia`],[R,sr]],[/(playstation [345portablevi]+)/i],[I,[z,Er],[R,sr]],[/\b(xbox(?: one)?(?!; xbox))[); ]/i],[I,[z,xr],[R,sr]],[/((pebble))app/i],[z,I,[R,cr]],[/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i],[I,[z,fr],[R,cr]],[/droid.+; (glass) \d/i],[I,[z,vr],[R,cr]],[/droid.+; (wt63?0{2,3})\)/i],[I,[z,Or],[R,cr]],[/(quest( \d| pro)?)/i],[I,[z,kr],[R,cr]],[/(tesla)(?: qtcarbrowser|\/[-\w.]+)/i],[z,[R,lr]],[/(aeobc)\b/i],[I,[z,dr],[R,lr]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[I,[R,H]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[I,[R,U]],[/\b((tablet|tab)[;/]|focus\/\d(?!.+mobile))/i],[[R,U]],[/(phone|mobile(?:[;/]| [ \w/.]*safari)|pda(?=.+windows ce))/i],[[R,H]],[/(android[-\w. ]{0,9});.+buil/i],[I,[z,`Generic`]]],engine:[[/windows.+ edge\/([\w.]+)/i],[B,[L,`${gr}HTML`]],[/webkit\/537\.36.+chrome\/(?!27)([\w.]+)/i],[B,[L,`Blink`]],[/(presto)\/([\w.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w.]+)/i,/ekioh(flow)\/([\w.]+)/i,/(khtml|tasman|links)[/ ]\(?([\w.]+)/i,/(icab)[/ ]([23]\.[\d.]+)/i,/\b(libweb)/i],[L,B],[/rv:([\w.]{1,9})\b.+(gecko)/i],[B,L]],os:[[/microsoft (windows) (vista|xp)/i],[L,B],[/(windows (?:phone(?: os)?|mobile))[/ ]?([.\w ]*)/i],[L,[B,zr,Vr]],[/windows nt 6\.2; (arm)/i,/windows[/ ]?([ntce\d. ]+\w)(?!.+xbox)/i,/(?:win(?=[39n])|win 9x )([nt\d.]+)/i],[[B,zr,Vr],[L,`Windows`]],[/ip[honead]{2,4}\b(?:.*os (\w+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[/ ])([\d.]+)/i,/cfnetwork\/.+darwin/i],[[B,/_/g,`.`],[L,`iOS`]],[/(mac os x) ?([\w. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[L,jr],[B,/_/g,`.`]],[/droid ([\w.]+)\b.+(android[- ]x86|harmonyos)/i],[B,L],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-/ ]?([\w.]*)/i,/(blackberry)\w*\/([\w.]*)/i,/(tizen|kaios)[/ ]([\w.]+)/i,/\((series40);/i],[L,B],[/\(bb(10);/i],[B,[L,mr]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-/ ]?([\w.]*)/i],[B,[L,`Symbian`]],[/mozilla\/[\d.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w.]+)/i],[B,[L,`${_r} OS`]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w.]+)/i],[B,[L,`webOS`]],[/watch(?: ?os[,/]|\d,\d\/)([\d.]+)/i],[B,[L,`watchOS`]],[/crkey\/([\d.]+)/i],[B,[L,`${hr}cast`]],[/(cros) \w+(?:\)| ([\w.]+)\b)/i],[[L,Ar],B],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w.]*)/i,/(mint)[/() ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-/ ]?(?!chrom|package)([-\w.]*)/i,/(hurd|linux) ?([\w.]*)/i,/(gnu) ?([\w.]*)/i,/\b([-e-hrntopcs]{0,5}bsd|dragonfly)[/ ]?(?!amd|[ix346]{1,2}86)([\w.]*)/i,/(haiku) (\w+)/i],[L,B],[/(sunos) ?([\w.]*)/i],[[L,`Solaris`],B],[/((?:open)?solaris)[-/ ]?([\w.]*)/i,/(aix) ((\d)(?=[.) ])[\w.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w.]*)/i],[L,B]]};function Ur(e){return typeof e==`object`&&!!e}Object.freeze(Nr([L,B,or])),Object.freeze(Nr([V])),Object.freeze(Nr([I,z,R,sr,H,W,U,cr,lr])),Object.freeze(Nr([L,B])),Object.freeze(Nr([L,B]));function Wr(){if(!(typeof window>`u`||!window.navigator))return window.navigator}function Gr(e){return e.length>ur?Lr(e,ur):e}function Kr(e){if(typeof e==`string`)return{ua:Gr(e),isSelfNavigator:!1,navigator:void 0,userAgentData:void 0,regexMap:Hr};let t=Wr(),n=Gr(t&&t.userAgent?t.userAgent:ir);return{ua:n,isSelfNavigator:!!(t&&t.userAgent===n),navigator:t,userAgentData:t?.userAgentData,regexMap:Hr}}function qr(e,t){if(!t&&!Ur(e))return Kr(e);let n=Wr(),r=Ur(e)?void 0:e,i=Ur(e)?e:t,a=Gr(r||(n&&n.userAgent?n.userAgent:ir)),o=n?.userAgentData;return{ua:a,isSelfNavigator:!!(n&&n.userAgent===a),navigator:n,userAgentData:o,regexMap:i?Mr(Hr,i):Hr}}function Jr(e){let t={name:void 0,version:void 0,major:void 0};return Rr(e.ua,e.regexMap.browser,t),t.major=Ir(t.version),e.isSelfNavigator&&e.navigator?.brave&&typeof e.navigator.brave.isBrave==`function`&&(t.name=`Brave`),t}function Yr(e){let t={architecture:void 0};return Rr(e.ua,e.regexMap.cpu,t),t}function Xr(e){let t={vendor:void 0,model:void 0,type:void 0};return Rr(e.ua,e.regexMap.device,t),e.isSelfNavigator&&!t.type&&e.userAgentData?.mobile&&(t.type=H),e.isSelfNavigator&&t.model===`Macintosh`&&e.navigator&&e.navigator.standalone!==void 0&&e.navigator.maxTouchPoints&&e.navigator.maxTouchPoints>2&&(t.model=`iPad`,t.type=U),t}function Zr(e){let t={name:void 0,version:void 0};return Rr(e.ua,e.regexMap.engine,t),t}function Qr(e){let t={name:void 0,version:void 0};return Rr(e.ua,e.regexMap.os,t),e.isSelfNavigator&&!t.name&&e.userAgentData?.platform&&e.userAgentData.platform!==`Unknown`&&(t.name=e.userAgentData.platform.replace(/chrome os/i,Ar).replace(/macos/i,jr)),t}function $r(e,t){let n,r,i,a,o,s,c=()=>n||=qr(e,t);return{get ua(){return c().ua},get browser(){return r||=Jr(c()),r},get engine(){return i||=Zr(c()),i},get os(){return a||=Qr(c()),a},get device(){return o||=Xr(c()),o},get cpu(){return s||=Yr(c()),s}}}function ei(e){return e==null?!1:`${+e}`==`${e}`}function ti(e){let{authToken:t,connectionMeta:n,events:r,clientRpc:i,rpcOptions:a={},wsOptions:o={}}=e,s=!1,c=un(),l=ei(n.websocket)?`${location.protocol.replace(`http`,`ws`)}//${location.hostname}:${n.websocket}`:n.websocket,u=new Map;for(let e of n.jsonSerializableMethods??[])u.set(e,{jsonSerializable:!0});let d=er(i.functions,{channel:rr({url:l,authToken:t,definitions:u,...o}),rpcOptions:a});i.register({name:`devframe:auth:revoked`,type:`event`,handler:()=>{s=!1,r.emit(`rpc:is-trusted:updated`,!1)}});let f=t;async function p(e){f=e;let t=$r(navigator.userAgent),n=[t.browser.name,t.browser.version,`|`,t.os.name,t.os.version,t.device.type].filter(e=>e).join(` `),i=await d.$call(`devframe:anonymous:auth`,{authToken:e,ua:n,origin:location.origin});return s=i.isTrusted,c.resolve(s),r.emit(`rpc:is-trusted:updated`,s),i.isTrusted}async function m(){return s?!0:p(f)}async function h(e=6e4){if(s&&c.resolve(!0),e<=0)return c.promise;let t=()=>{};return await Promise.race([c.promise.then(t),new Promise((n,r)=>{let i=setTimeout(()=>{r(Error(`[devframe] Timeout waiting for rpc to be trusted`))},e);t=()=>clearTimeout(i)})]),s}return{get isTrusted(){return s},requestTrust:m,requestTrustWithToken:p,ensureTrusted:h,call:(...e)=>d.$call(...e),callEvent:(...e)=>d.$callEvent(...e),callOptional:(...e)=>d.$callOptional(...e)}}var ni=`__DEVFRAME_CONNECTION_META__`,K=`__DEVFRAME_CONNECTION_AUTH_TOKEN__`;function ri(e){let t=[()=>e,()=>localStorage.getItem(K),()=>window?.[K],()=>globalThis?.[K],()=>parent.window?.[K]],n;for(let e of t)try{if(n=e(),n)break}catch{}return n||=ve(),localStorage.setItem(K,n),globalThis[K]=n,n}function ii(){let e=[()=>window?.[ni],()=>globalThis?.[ni],()=>parent.window?.[ni]];for(let t of e)try{let e=t();if(e)return e}catch{}}async function ai(e={}){let{baseURL:t=`./`,rpcOptions:n={},cacheOptions:r=!1}=e,i=pe(),a=Array.isArray(t)?t:[t],o=e.connectionMeta||ii(),s=a[0]??`./`;function c(e){return e.endsWith(`/`)?e:`${e}/`}function l(e,t){return/^https?:\/\//.test(t)||t.startsWith(`/`)?t:`${c(e)}${t}`}if(!o){let e=[];for(let t of a)try{o=await fetch(l(t,kn)).then(e=>e.json()),s=t,globalThis[ni]=o;break}catch(t){e.push(t)}if(!o)throw Error(`Failed to get connection meta from ${a.join(`, `)}`,{cause:e})}let u=new Rn({functions:[],...typeof e.cacheOptions==`object`?e.cacheOptions:{}}),d={rpc:void 0},f=ri(e.authToken),p=new zn(d);async function m(e){let t=[s,...a.filter(e=>e!==s)].filter(e=>e!=null),n=[];for(let r of t)try{return await fetch(l(r,e)).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 h=o.backend===`static`?await Xn({fetchJsonFromBases:m}):ti({authToken:f,connectionMeta:o,events:i,clientRpc:p,rpcOptions:{...n,async onRequest(e,t,i){if(await n.onRequest?.call(this,e,t,i),r&&u?.validate(e.m)){let n=u.cached(e.m,e.a);if(n)return i(n);{let n=await t(e);u?.apply(e,n)}}else await t(e)}},wsOptions:e.wsOptions}),g={events:i,get isTrusted(){return h.isTrusted},connectionMeta:o,ensureTrusted:h.ensureTrusted,requestTrust:h.requestTrust,requestTrustWithToken:async e=>(localStorage.setItem(K,e),globalThis[K]=e,h.requestTrustWithToken(e)),call:h.call,callEvent:h.callEvent,callOptional:h.callOptional,client:p,sharedState:void 0,streaming:void 0,cacheManager:u};g.sharedState=Wn(g),g.streaming=$n(g),d.rpc=g,h.requestTrust();try{let e=new BroadcastChannel(`devframe-auth`);e.onmessage=e=>{e.data?.type===`auth-update`&&e.data.authToken&&g.requestTrustWithToken(e.data.authToken)}}catch{}return g}function q(e,t){return p()?(C(e,t),!0):!1}var oi=new WeakMap,si=(...t)=>{let n=t[0],r=i()?.proxy??p();if(r==null&&!e())throw Error(`injectLocal must be called in setup`);return r&&oi.has(r)&&n in oi.get(r)?oi.get(r)[n]:m(...t)},J=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var ci=e=>e!==void 0,li=e=>e!=null,ui=Object.prototype.toString,di=e=>ui.call(e)===`[object Object]`,Y=()=>{},fi=pi();function pi(){var e,t;return J&&!!(!((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 mi(...e){if(e.length!==1)return r(...e);let t=e[0];return typeof t==`function`?ee(y(()=>({get:t,set:Y}))):s(t)}function hi(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 n}var gi=e=>e();function _i(e,t={}){let n,r,i=Y,a=e=>{clearTimeout(e),i(),i=Y},o;return s=>{let c=_(e),l=_(t.maxWait);return n&&a(n),c<=0||l!==void 0&&l<=0?(r&&=(a(r),void 0),Promise.resolve(s())):new Promise((e,u)=>{i=t.rejectOnCancel?u:e,o=s,l&&!r&&(r=setTimeout(()=>{n&&a(n),r=void 0,e(o())},l)),n=setTimeout(()=>{r&&a(r),r=void 0,e(s())},c)})}}function vi(e=gi,t={}){let{initialState:n=`active`}=t,r=mi(n===`active`);function i(){r.value=!1}function a(){r.value=!0}return{isActive:S(r),pause:i,resume:a,eventFilter:(...t)=>{r.value&&e(...t)}}}function yi(e,t=!1,n=`Timeout`){return new Promise((r,i)=>{t?setTimeout(i,e,n):setTimeout(r,e)})}function bi(e){let t;function n(){return t||=e(),t}return n.reset=async()=>{let e=t;t=void 0,e&&await e},n}function xi(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function Si(e){return Object.entries(e)}function Ci(e){return Array.isArray(e)?e:[e]}function wi(e){let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))}var Ti=/-(\w)/g,Ei=wi(e=>e.replace(Ti,(e,t)=>t?t.toUpperCase():``));function Di(e){return e||i()}function Oi(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}else return Object.assign([...t],e)}function ki(e){return u(e)?d(new Proxy({},{get(t,n,r){return h(Reflect.get(e.value,n,r))},set(t,n,r){return u(e.value[n])&&!u(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}}})):d(e)}function Ai(e){return ki(v(e))}function ji(e,t=200,n={}){return hi(_i(t,n),e)}function Mi(e,t=200,n={}){let r=s(_(e)),i=ji(()=>{r.value=e.value},t,n);return x(e,()=>i()),S(r)}var Ni=Mi;function Pi(e,t,n={}){let{eventFilter:r=gi,...i}=n;return x(e,hi(r,t),i)}function Fi(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=vi(r,{initialState:i});return{stop:Pi(e,t,{...a,eventFilter:o}),pause:s,resume:c,isActive:l}}function Ii(e,n=!0,r){Di(r)?t(e,r):n?e():o(e)}function Li(e,t=!1){function n(n,{flush:r=`sync`,deep:i=!1,timeout:a,throwOnTimeout:s}={}){let c=null,l=[new Promise(a=>{c=x(e,e=>{n(e)!==t&&(c?c():o(()=>c?.()),a(e))},{flush:r,deep:i,immediate:!0})})];return a!=null&&l.push(yi(a,s).then(()=>_(e)).finally(()=>c?.())),Promise.race(l)}function r(r,i){if(!u(r))return n(e=>e===r,i);let{flush:a=`sync`,deep:s=!1,timeout:c,throwOnTimeout:l}=i??{},d=null,f=[new Promise(n=>{d=x([e,r],([e,r])=>{t!==(e===r)&&(d?d():o(()=>d?.()),n(e))},{flush:a,deep:s,immediate:!0})})];return c!=null&&f.push(yi(c,l).then(()=>_(e)).finally(()=>(d?.(),_(e)))),Promise.race(f)}function i(e){return n(e=>!!e,e)}function a(e){return r(null,e)}function s(e){return r(void 0,e)}function c(e){return n(Number.isNaN,e)}function l(e,t){return n(t=>{let n=Array.from(t);return n.includes(e)||n.includes(_(e))},t)}function d(e){return f(1,e)}function f(e=1,t){let r=-1;return n(()=>(r+=1,r>=e),t)}return Array.isArray(_(e))?{toMatch:n,toContains:l,changed:d,changedTimes:f,get not(){return Li(e,!t)}}:{toMatch:n,toBe:r,toBeTruthy:i,toBeNull:a,toBeNaN:c,toBeUndefined:s,changed:d,changedTimes:f,get not(){return Li(e,!t)}}}function Ri(e){return Li(e)}var zi=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i,Bi=/[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 Vi(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 X(e){let t=[`th`,`st`,`nd`,`rd`],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}function Hi(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??Vi,f=e=>e.split(` `)[1]??``,p={Yo:()=>X(r),YY:()=>String(r).slice(-2),YYYY:()=>r,M:()=>i+1,Mo:()=>X(i+1),MM:()=>`${i+1}`.padStart(2,`0`),MMM:()=>e.toLocaleDateString(_(n.locales),{month:`short`}),MMMM:()=>e.toLocaleDateString(_(n.locales),{month:`long`}),D:()=>String(a),Do:()=>X(a),DD:()=>`${a}`.padStart(2,`0`),H:()=>String(o),Ho:()=>X(o),HH:()=>`${o}`.padStart(2,`0`),h:()=>`${o%12||12}`.padStart(1,`0`),ho:()=>X(o%12||12),hh:()=>`${o%12||12}`.padStart(2,`0`),m:()=>String(s),mo:()=>X(s),mm:()=>`${s}`.padStart(2,`0`),s:()=>String(c),so:()=>X(c),ss:()=>`${c}`.padStart(2,`0`),SSS:()=>`${l}`.padStart(3,`0`),d:()=>u,dd:()=>e.toLocaleDateString(_(n.locales),{weekday:`narrow`}),ddd:()=>e.toLocaleDateString(_(n.locales),{weekday:`short`}),dddd:()=>e.toLocaleDateString(_(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(_(n.locales),{timeZoneName:`shortOffset`})),zz:()=>f(e.toLocaleDateString(_(n.locales),{timeZoneName:`shortOffset`})),zzz:()=>f(e.toLocaleDateString(_(n.locales),{timeZoneName:`shortOffset`})),zzzz:()=>f(e.toLocaleDateString(_(n.locales),{timeZoneName:`longOffset`}))};return t.replace(Bi,(e,t)=>t??p[e]?.call(p)??e)}function Ui(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(zi);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 Wi(e,t=`HH:mm:ss`,n={}){return v(()=>Hi(Ui(_(e)),_(t),n))}function Gi(e,t=1e3,n={}){let{immediate:r=!0,immediateCallback:i=!1}=n,a=null,o=l(!1);function s(){a&&=(clearInterval(a),null)}function c(){o.value=!1,s()}function d(){let n=_(t);n<=0||(o.value=!0,i&&e(),s(),o.value&&(a=setInterval(e,n)))}return r&&J&&d(),(u(t)||typeof t==`function`)&&q(x(t,()=>{o.value&&J&&d()})),q(c),{isActive:S(o),pause:c,resume:d}}function Ki(e,t,n={}){let{immediate:r=!0,immediateCallback:i=!1}=n,a=l(!1),o;function s(){o&&=(clearTimeout(o),void 0)}function c(){a.value=!1,s()}function u(...n){i&&e(),s(),a.value=!0,o=setTimeout(()=>{a.value=!1,o=void 0,e(...n)},_(t))}return r&&(a.value=!0,J&&u()),q(c),{isPending:S(a),start:u,stop:c}}function qi(e,t,n={}){let{debounce:r=0,maxWait:i=void 0,...a}=n;return Pi(e,t,{...a,eventFilter:_i(r,{maxWait:i})})}function Ji(e,t,n){return x(e,t,{...n,immediate:!0})}function Yi(e,t,n){let r;r=u(n)?{evaluating:n}:n||{};let{lazy:i=!1,flush:a=`sync`,evaluating:o=void 0,shallow:c=!0,onError:d=globalThis.reportError??Y}=r,p=l(!i),m=c?l(t):s(t),h=0;return f(async t=>{if(!p.value)return;h++;let n=h,r=!1;o&&Promise.resolve().then(()=>{o.value=!0});try{let i=await e(e=>{t(()=>{o&&(o.value=!1),r||e()})});n===h&&(m.value=i)}catch(e){d(e)}finally{o&&n===h&&(o.value=!1),r=!0}},{flush:a}),i?v(()=>(p.value=!0,m.value)):m}function Xi(e={}){let{inheritAttrs:t=!0,name:n=`ReusableTemplate`}=e,r=l(),i=c({name:`${n}.define`,setup(e,{slots:t}){return()=>{r.value=t.default}}}),a=c({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?Zi(i):n,$slots:a});return t&&o?.length===1?o[0]:o}}});return Oi({define:i,reuse:a},[i,a])}function Zi(e){let t={};for(let n in e)t[Ei(n)]=e[n];return t}function Qi(e={}){let t=0,r=s([]);function i(...i){let a=n({key:t++,args:i,promise:void 0,resolve:()=>{},reject:()=>{},isResolving:!1,options:e});return r.value.push(a),a.promise=new Promise((e,t)=>{a.resolve=t=>(a.isResolving=!0,e(t)),a.reject=t}).finally(()=>{a.promise=void 0;let e=r.value.indexOf(a);e!==-1&&r.value.splice(e,1)}),a.promise}function a(...t){return e.singleton&&r.value.length>0?r.value[0].promise:i(...t)}let o=c((t,{slots:n})=>{let i=()=>r.value.map(e=>g(b,{key:e.key},n.default?.call(n,e)));return e.transition?()=>g(te,e.transition,i):i});return o.start=a,o}var Z=J?window:void 0,$i=J?window.document:void 0,ea=J?window.navigator:void 0;J&&window.location;function Q(e){let t=_(e);return t?.$el??t}function $(...e){let t=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),n=v(()=>{let t=Ci(_(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return Ji(()=>[n.value?.map(e=>Q(e))??[Z].filter(e=>e!=null),Ci(_(n.value?e[1]:e[0])),Ci(h(n.value?e[2]:e[1])),_(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 ta=!1;function na(e,t,n={}){let{window:r=Z,ignore:i=[],capture:a=!0,detectIframe:o=!1,controls:s=!1}=n;if(!r)return s?{stop:Y,cancel:Y,trigger:Y}:Y;if(fi&&!ta){ta=!0;let e={passive:!0};Array.from(r.document.body.children).forEach(t=>t.addEventListener(`click`,Y,e)),r.document.documentElement.addEventListener(`click`,Y,e)}let c=!0,l=e=>_(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=Q(t);return n&&(e.target===n||e.composedPath().includes(n))}});function u(e){let t=_(e);return t&&t.$.subTree.shapeFlag===16}function d(e,t){let n=_(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=Q(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=[$(r,`click`,e=>{p||(p=!0,setTimeout(()=>{p=!1},0),f(e))},{passive:!0,capture:a}),$(r,`pointerdown`,t=>{let n=Q(e);c=!l(t)&&!!(n&&!t.composedPath().includes(n))},{passive:!0}),o&&$(r,`blur`,n=>{setTimeout(()=>{let i=Q(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 ra(){let e=l(!1),n=i();return n&&t(()=>{e.value=!0},n),e}function ia(e){let t=ra();return v(()=>(t.value,!!e()))}function aa(e,t,n={}){let{window:r=Z,...i}=n,a,o=ia(()=>r&&`MutationObserver`in r),s=()=>{a&&=(a.disconnect(),void 0)},c=x(v(()=>{let t=Ci(_(e)).map(Q).filter(li);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 q(u),{isSupported:o,stop:u,takeRecords:l}}function oa(e){return typeof e==`function`?e:typeof e==`string`?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function sa(...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=Z,eventName:a=`keydown`,passive:o=!1,dedupe:s=!1}=r,c=oa(t);return $(i,a,e=>{e.repeat&&_(s)||c(e)&&n(e)},o)}function ca(e,t,n={}){return sa(e,t,{...n,eventName:`keydown`})}function la(e,t={}){let{immediate:n=!0,fpsLimit:r=null,window:i=Z,once:a=!1}=t,o=l(!1),s=v(()=>{let e=_(r);return e?1e3/e:null}),c=0,u=null;function d(t){if(!o.value||!i)return;c||=t;let n=t-c;if(s.value&&n<s.value){u=i.requestAnimationFrame(d);return}if(c=t,e({delta:n,timestamp:t}),a){o.value=!1,u=null;return}u=i.requestAnimationFrame(d)}function f(){!o.value&&i&&(o.value=!0,c=0,u=i.requestAnimationFrame(d))}function p(){o.value=!1,u!=null&&i&&(i.cancelAnimationFrame(u),u=null)}return n&&f(),q(p),{isActive:S(o),pause:p,resume:f}}var ua=Symbol(`vueuse-ssr-width`);function da(){let t=e()?si(ua,null):null;return typeof t==`number`?t:void 0}function fa(e,t={}){let{window:n=Z,ssrWidth:r=da()}=t,i=ia(()=>n&&`matchMedia`in n&&typeof n.matchMedia==`function`),a=l(typeof r==`number`),o=l(),s=l(!1);return f(()=>{if(a.value){a.value=!i.value,s.value=_(e).split(`,`).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>=xi(n[1])),i&&a&&(a=r<=xi(i[1])),t?!a:a});return}i.value&&(o.value=n.matchMedia(_(e)),s.value=o.value.matches)}),$(o,`change`,e=>{s.value=e.matches},{passive:!0}),v(()=>s.value)}var pa=[`hash`,`host`,`hostname`,`href`,`pathname`,`port`,`protocol`,`search`];function ma(e={}){let{window:t=Z}=e,n=Object.fromEntries(pa.map(e=>[e,s()]));for(let[e,r]of Si(n))x(r,n=>{!t?.location||t.location[e]===n||(t.location[e]=n)});let r=e=>{var r;let{state:i,length:a}=t?.history||{},{origin:o}=t?.location||{};for(let e of pa)n[e].value=t==null||(r=t.location)==null?void 0:r[e];return d({trigger:e,state:i,length:a,origin:o,...n})},i=s(r(`load`));if(t){let e={passive:!0};$(t,`popstate`,()=>i.value=r(`popstate`),e),$(t,`hashchange`,()=>i.value=r(`hashchange`),e)}return i}function ha(e,t={}){let{controls:n=!1,navigator:r=ea}=t,i=ia(()=>r&&`permissions`in r),o=l(),s=typeof e==`string`?{name:e}:e,c=l(),u=()=>{c.value=o.value?.state??`prompt`};$(o,`change`,u,{passive:!0});let d=bi(async()=>{if(i.value){if(!o.value)try{o.value=await r.permissions.query(s)}catch{o.value=void 0}finally{u()}if(n)return a(o.value)}});return d(),n?{state:c,isSupported:i,query:d}:c}function ga(e={}){let{navigator:t=ea,read:n=!1,source:r,copiedDuring:i=1500,legacy:a=!1}=e,o=ia(()=>t&&`clipboard`in t),s=ha(`clipboard-read`),c=ha(`clipboard-write`),u=v(()=>o.value||a),d=l(``),f=l(!1),p=l(!1),m=Ki(()=>f.value=!1,i,{immediate:!1}),h=0;async function g(){let e=!(o.value&&C(s.value));if(!e)try{d.value=await t.clipboard.readText()}catch{e=!0}e&&(d.value=ee())}u.value&&n&&$([`copy`,`cut`],g,{passive:!0});async function y(e){let n=e??_(r);if(u.value&&n!=null){p.value=!0;let e=!(o.value&&C(c.value));if(!e)try{let e=b(n);await t.clipboard.write([e])}catch{e=!0}if(e)if(typeof n==`string`)d.value=n,x(n);else{let e=++h,t=await n();t!=null&&e===h&&(d.value=t,x(t))}f.value=!0,m.start(),p.value=!1}}function b(e){return typeof e==`string`?(d.value=e,new ClipboardItem({"text/plain":e})):new ClipboardItem({"text/plain":e().then((e=``)=>(d.value=e,new Blob([e],{type:`text/plain`})))})}function x(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 ee(){var e,t;return((e=document)==null||(t=e.getSelection)==null||(t=t.call(e))==null?void 0:t.toString())??``}function C(e){return e===`granted`||e===`prompt`}return{copyPending:S(p),isSupported:u,text:S(d),copied:S(f),copy:y}}function _a(e){return JSON.parse(JSON.stringify(e))}var va=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},ya=`__vueuse_ssr_handlers__`,ba=xa();function xa(){return ya in va||(va[ya]=va[ya]||{}),va[ya]}function Sa(e,t){return ba[e]||t}function Ca(e){return fa(`(prefers-color-scheme: dark)`,e)}function wa(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 Ta={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()}},Ea=`vueuse-storage`;function Da(e,t,n,r={}){let{flush:i=`pre`,deep:a=!0,listenToStorageChanges:c=!0,writeDefaults:u=!0,mergeDefaults:d=!1,shallow:f,window:p=Z,eventFilter:m,onError:h=e=>{console.error(e)},initOnMounted:g}=r,y=(f?l:s)(typeof t==`function`?t():t),b=v(()=>_(e));if(!n)try{n=Sa(`getDefaultStorage`,()=>Z?.localStorage)()}catch(e){h(e)}if(!n)return y;let S=_(t),ee=wa(S),C=r.serializer??Ta[ee],{pause:te,resume:ne}=Fi(y,e=>ae(e),{flush:i,deep:a,eventFilter:m});x(b,()=>w(),{flush:i});let re=!1;p&&c&&(n instanceof Storage?$(p,`storage`,e=>{g&&!re||w(e)},{passive:!0}):$(p,Ea,e=>{g&&!re||se(e)})),g?Ii(()=>{re=!0,w()}):w();function ie(e,t){if(p){let r={key:b.value,oldValue:e,newValue:t,storageArea:n};p.dispatchEvent(n instanceof Storage?new StorageEvent(`storage`,r):new CustomEvent(Ea,{detail:r}))}}function ae(e){try{let t=n.getItem(b.value);if(e==null)ie(t,null),n.removeItem(b.value);else{let r=C.write(e);t!==r&&(n.setItem(b.value,r),ie(t,r))}}catch(e){h(e)}}function oe(e){let t=e?e.newValue:n.getItem(b.value);if(t==null)return u&&S!=null&&n.setItem(b.value,C.write(S)),S;if(!e&&d){let e=C.read(t);return typeof d==`function`?d(e,S):ee===`object`&&!Array.isArray(e)?{...S,...e}:e}else if(typeof t!=`string`)return t;else return C.read(t)}function w(e){if(!(e&&e.storageArea!==n)){if(e&&e.key==null){y.value=S;return}if(!(e&&e.key!==b.value)){te();try{let t=C.write(y.value);(e===void 0||e?.newValue!==t)&&(y.value=oe(e))}catch(e){h(e)}finally{e?o(ne):ne()}}}}function se(e){w(e.detail)}return y}var Oa=`*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function ka(e={}){let{selector:t=`html`,attribute:n=`class`,initialValue:r=`auto`,window:i=Z,storage:a,storageKey:o=`vueuse-color-scheme`,listenToStorageChanges:s=!0,storageRef:c,emitAuto:l,disableTransition:u=!0}=e,d={auto:``,light:`light`,dark:`dark`,...e.modes||{}},f=Ca({window:i}),p=v(()=>f.value?`dark`:`light`),m=c||(o==null?mi(r):Da(o,r,a,{window:i,listenToStorageChanges:s})),h=v(()=>m.value===`auto`?p.value:m.value),g=Sa(`updateHTMLAttrs`,(e,t,n)=>{let r=typeof e==`string`?i?.document.querySelector(e):Q(e);if(!r)return;let a=new Set,o=new Set,s=null;if(t===`class`){let e=n.split(/\s/g);Object.values(d).flatMap(e=>(e||``).split(/\s/g)).filter(Boolean).forEach(t=>{e.includes(t)?a.add(t):o.add(t)})}else s={key:t,value:n};if(a.size===0&&o.size===0&&s===null)return;let c;u&&(c=i.document.createElement(`style`),c.appendChild(document.createTextNode(Oa)),i.document.head.appendChild(c));for(let e of a)r.classList.add(e);for(let e of o)r.classList.remove(e);s&&r.setAttribute(s.key,s.value),u&&(i.getComputedStyle(c).opacity,document.head.removeChild(c))});function _(e){g(t,n,d[e]??e)}function y(t){e.onChanged?e.onChanged(t,_):_(t)}x(h,y,{flush:`post`,immediate:!0}),Ii(()=>y(h.value));let b=v({get(){return l?m.value:h.value},set(e){m.value=e}});return Object.assign(b,{store:m,system:p,state:h})}function Aa(e,t,n={}){let{window:r=Z,...i}=n,a,o=ia(()=>r&&`ResizeObserver`in r),s=()=>{a&&=(a.disconnect(),void 0)},c=x(v(()=>{let t=_(e);return Array.isArray(t)?t.map(e=>Q(e)):[Q(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 q(l),{isSupported:o,stop:l}}function ja(e,t={}){let{reset:n=!0,windowResize:r=!0,windowScroll:i=!0,immediate:a=!0,updateTiming:o=`sync`}=t,s=l(0),c=l(0),u=l(0),d=l(0),f=l(0),p=l(0),m=l(0),h=l(0);function g(){let t=Q(e);if(!t){n&&(s.value=0,c.value=0,u.value=0,d.value=0,f.value=0,p.value=0,m.value=0,h.value=0);return}let r=t.getBoundingClientRect();s.value=r.height,c.value=r.bottom,u.value=r.left,d.value=r.right,f.value=r.top,p.value=r.width,m.value=r.x,h.value=r.y}function _(){o===`sync`?g():o===`next-frame`&&requestAnimationFrame(()=>g())}return Aa(e,_),x(()=>Q(e),e=>!e&&_()),aa(e,_,{attributeFilter:[`style`,`class`]}),i&&$(`scroll`,_,{capture:!0,passive:!0}),r&&$(`resize`,_,{passive:!0}),Ii(()=>{a&&_()}),{height:s,bottom:c,left:u,right:d,top:f,width:p,x:m,y:h,update:_}}function Ma(e,t={width:0,height:0},n={}){let{window:r=Z,box:i=`content-box`}=n,a=v(()=>{var t;return(t=Q(e))==null||(t=t.namespaceURI)==null?void 0:t.includes(`svg`)}),o=l(t.width),s=l(t.height),{stop:c}=Aa(e,([t])=>{let n=i===`border-box`?t.borderBoxSize:i===`content-box`?t.contentBoxSize:t.devicePixelContentBoxSize;if(r&&a.value){let t=Q(e);if(t){let e=t.getBoundingClientRect();o.value=e.width,s.value=e.height}}else if(n){let e=Ci(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);Ii(()=>{let n=Q(e);n&&(o.value=`offsetWidth`in n?n.offsetWidth:t.width,s.value=`offsetHeight`in n?n.offsetHeight:t.height)});let u=x(()=>Q(e),e=>{o.value=e?t.width:0,s.value=e?t.height:0});function d(){c(),u()}return{width:o,height:s,stop:d}}function Na(e={}){let{initialValue:t=``}=e,n=ia(()=>typeof window<`u`&&`EyeDropper`in window),r=l(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 Pa(e,t,n={}){let{window:r=Z}=n;return Da(e,t,r?.localStorage,n)}function Fa(e){if(`interval`in e||`immediate`in e){let{interval:t=`requestAnimationFrame`,immediate:n=!0}=e;return t===`requestAnimationFrame`?e=>la(e,{immediate:n}):n=>Gi(n,t,e)}return la}function Ia(e={}){let{controls:t=!1,scheduler:n=Fa(e)}=e,r=l(new Date),i=n(()=>r.value=new Date);return t?{now:r,...i}:r}function La(e,t,n={}){let{window:r=Z}=n;return Da(e,t,r?.sessionStorage,n)}var Ra=0;function za(e,t={}){let n=l(!1),{document:r=$i,immediate:i=!0,manual:a=!1,id:o=`vueuse_styletag_${++Ra}`}=t,s=l(e),c=()=>{},u=()=>{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&&(c=x(s,t=>{e.textContent=t},{immediate:!0}),n.value=!0)},d=()=>{!r||!n.value||(c(),r.head.removeChild(r.getElementById(o)),n.value=!1)};return i&&!a&&Ii(u),a||q(d),{id:o,css:s,unload:d,load:u,isLoaded:S(n)}}var Ba=[{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`}],Va={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 Ha(e){return e.toISOString().slice(0,10)}function Ua(e){if(`updateInterval`in e){let{updateInterval:t=3e4}=e;return e=>Gi(e,t)}return e=>Gi(e,3e4)}function Wa(e,t={}){let{controls:n=!1,scheduler:r=Ua(t)}=t,{now:i,...a}=Ia({scheduler:r,controls:!0}),o=v(()=>Ga(new Date(_(e)),t,_(i)));return n?{timeAgo:o,...a}:o}function Ga(e,t={},n=Date.now()){let{max:r,messages:i=Va,fullDateFormatter:a=Ha,units:o=Ba,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 Ka(e,t,n,r={}){var a,c;let{clone:l=!1,passive:u=!1,eventName:d,deep:f=!1,defaultValue:p,shouldEmit:m}=r,h=i(),g=n||h?.emit||(h==null||(a=h.$emit)==null?void 0:a.bind(h))||(h==null||(c=h.proxy)==null||(c=c.$emit)==null?void 0:c.bind(h?.proxy)),_=d;t||=`modelValue`,_||=`update:${t.toString()}`;let y=e=>l?typeof l==`function`?l(e):_a(e):e,b=()=>ci(e[t])?y(e[t]):p,S=e=>{m?m(e)&&g(_,e):g(_,e)};if(u){let n=s(b()),r=!1;return x(()=>e[t],e=>{r||(r=!0,n.value=y(e),o(()=>r=!1))}),x(n,n=>{!r&&(n!==e[t]||f)&&S(n)},{deep:f}),n}else return v({get(){return b()},set(e){S(e)}})}function qa(e={}){let{window:t=Z,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:i=!0,includeScrollbar:a=!0,type:o=`inner`}=e,s=l(n),c=l(r),u=()=>{if(t)if(o===`outer`)s.value=t.outerWidth,c.value=t.outerHeight;else if(o===`visual`&&t.visualViewport){let{width:e,height:n,scale:r}=t.visualViewport;s.value=Math.round(e*r),c.value=Math.round(n*r)}else a?(s.value=t.innerWidth,c.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,c.value=t.document.documentElement.clientHeight)};u(),Ii(u);let d={passive:!0};return $(`resize`,u,d),t&&o===`visual`&&t.visualViewport&&$(t.visualViewport,`resize`,u,d),i&&x(fa(`(orientation: portrait)`),()=>u()),{width:s,height:c}}var Ja=2e3,Ya=s(!1),Xa=s(!0),Za=l(),Qa=Ni(Xa,Ja),$a={},eo=l(),to=ro(),no=new Proxy({},{get:(e,t)=>async(...e)=>(eo.value||await to).call(t,...e)});async function ro(){try{let e=await ai();eo.value=e;for(let[t,n]of Object.entries($a))typeof n==`function`&&e.client.register({name:t,type:`event`,handler:n});return console.log(`[nuxt-devtools] Connected to Vite DevTools RPC`),Xa.value=!1,Ya.value=!0,e}catch(e){throw Xa.value=!0,Za.value=e,console.error(`[Nuxt DevTools] Unable to connect to Vite DevTools RPC`,e),e}}async function io(){let e=eo.value||await to;for(let[t,n]of Object.entries($a))if(typeof n==`function`)try{e.client.update({name:t,type:`event`,handler:n})}catch{e.client.register({name:t,type:`event`,handler:n})}}export{Ka as A,$ as C,La as D,Ia as E,q as F,Ri as I,Wi as L,li as M,Ai as N,za as O,Ci as P,Ni as R,Ma as S,Pa as T,Q as _,no as a,ka as b,Xa as c,Yi as d,Xi as f,ca as g,na as h,io as i,qa as j,Wa as k,Qa as l,Ga as m,$a as n,eo as o,Qi as p,to as r,Ya as s,Ja as t,Za as u,ma as v,Na as w,ja as x,ga as y,qi as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as e,S as t,T as n,U as r,_ as i,g as a,jt as o,m as s,p as c,s as l,ut as u}from"./vendor/json-editor-vue-mkw4apmc.js";import{k as d,z as f}from"./utils-hgmynvjd.js";import{t as p}from"./_plugin-vue_export-helper-d9irwgla.js";import"./composables-ioamscf4.js";import{t as m}from"./help-fab-ietvwhig.js";import{t as h}from"./nsection-block-n5u7wj9x.js";import{t as g}from"./state-editor-jm35t8p1.js";var _={},v={class:`markdown-body`};function y(e,n){return r(),i(`div`,v,[...n[0]||=[s(`template`,null,[s(`div`,{class:`markdown-body`},[s(`h1`,null,`Runtime Configs`),s(`p`,null,`Nuxt provides a runtime config API to expose configuration within your application and server routes, with the ability to update it at runtime by setting environment variables.`),s(`p`,null,[t(`In Nuxt DevTools, the editor allows you to edit the runtime config temporarily to see how the changes affect your application. To update them, you might want to update your `),s(`code`,{"v-pre":``},`nuxt.config.js`),t(` file, or check more details in the documentation.`)]),s(`p`,null,[s(`a`,{href:`https://nuxt.com/docs/guide/going-further/runtime-config`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)])])],-1)]])}var b=p(_,[[`render`,y]]),x={key:0},S=n({__name:`runtime-configs`,setup(t){let n=f(),s=d(),p=c(()=>n.value?.nuxt.payload),_=c(()=>n.value?.revision.value),v=c(()=>{let e={...s.value};return delete e.public,delete e.app,e});return(t,s)=>{let c=g,d=h,f=b,y=m;return r(),i(l,null,[o(n)?(r(),i(`div`,x,[e(d,{icon:`carbon-settings-services`,text:`App Config`,padding:!1},{default:u(()=>[e(c,{state:o(n).app.appConfig,revision:_.value},null,8,[`state`,`revision`])]),_:1}),e(d,{icon:`carbon-settings`,text:`Public Runtime Config`,padding:!1},{default:u(()=>[e(c,{state:p.value.config?.public,revision:_.value},null,8,[`state`,`revision`])]),_:1}),e(d,{icon:`i-carbon-code-signing-service`,text:`Private Runtime Config`,open:!1,padding:!1,description:`These values are not exposed to the client. Readonly in the DevTools.`},{default:u(()=>[e(c,{state:v.value,revision:_.value,readonly:``},null,8,[`state`,`revision`])]),_:1})])):a(``,!0),e(y,null,{default:u(()=>[e(f)]),_:1})],64)}}});export{S as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{B as e,T as t,U as n,V as r,_ as i,at as a,jt as o}from"./vendor/json-editor-vue-mkw4apmc.js";import{a as s}from"./nuxt-kphganvs.js";import{l as c}from"./utils-hgmynvjd.js";import{a as l}from"./rpc-ewzip6fb.js";import"./composables-ioamscf4.js";var u=class{listeners;constructor(){this.listeners=Object.create(null)}on(e,t){return this.listeners[e]={callback:t,next:this.listeners[e]||null},this}once(e,t){return this.on(e,function n(...r){t.apply(this,r),this.off(e,n)})}off(e,t){let n=this.listeners[e]||null,r=null;for(;n!==null;){if(n.callback===t){n.callback=null,r?r.next=n.next:this.listeners[e]=n.next;break}r=n,n=n.next}return this}emit(e,...t){let n=this.listeners[e]||null,r=!1;for(;n!==null;)typeof n.callback==`function`&&n.callback.apply(this,t),r=!0,n=n.next;return r}},d=class{subscriber;value;constructor(e,t){this.subscriber=null,this.value=e,this.shouldUpdate=typeof t==`function`?t:this.shouldUpdate}get readonly(){let e=this;return{subscribe:this.subscribe.bind(this),subscribeSync:this.subscribeSync.bind(this),unsubscribe:this.unsubscribe.bind(this),get value(){return e.value}}}subscribe(e){return this.subscriber={callback:e,subscriber:this.subscriber},()=>this.unsubscribe(e)}subscribeSync(e){let t=this.subscribe(e);return e(this.value,t),t}unsubscribe(e){let t=this,n=this.subscriber;for(;n!==null;){if(n.callback===e){n.callback=null,t.subscriber=n.subscriber;break}t=n,n=n.subscriber}}shouldUpdate(e,t){return e!==t}set(e){return this.#e(e)!==!1}asyncSet(e){let t=this.#e(e);return t===!1?Promise.resolve(!1):Promise.all(t).then(()=>!0)}#e(e){if(!this.shouldUpdate(e,this.value))return!1;let t=[],n=this.subscriber;for(this.value=e;n!==null;){let{callback:r}=n;r!==null&&t.push(r(e,()=>this.unsubscribe(r))),n=n.subscriber}return t}};function f(){return[performance.timeOrigin.toString(16),(1e4*performance.now()).toString(16),Math.random().toString(16).slice(2)].join(`-`)}new TextDecoder;var p=typeof Object.hasOwn==`function`?Object.hasOwn:(e,t)=>Object.hasOwnProperty.call(e,t),m={8:`\\b`,9:`\\t`,10:`\\n`,12:`\\f`,13:`\\r`,34:`\\"`,92:`\\\\`};Uint8Array.from({length:2048},(e,t)=>p(m,t)?2:t<32?6:t<128?1:2),new Uint8Array([0,0,74,83,79,78,88,76]),new Uint8Array(256).map((e,t)=>{for(let n=0;n<8;n++)e+=t>>n&1;return e}),new TextDecoder(`utf8`,{ignoreBOM:!0});function h(e){try{return new URL(e,location.origin).origin===location.origin}catch{return!1}}function g(e){return e.ok}function _(e){return e.headers.get(`x-file-encoded-size`)||e.headers.get(`content-length`)}function v(e){return e.headers.get(`x-file-size`)||(h(e.url)&&!e.headers.get(`content-encoding`)?e.headers.get(`content-length`):void 0)}function y(e){return e.headers.get(`x-file-created-at`)||e.headers.get(`last-modified`)||void 0}function b(e,t){if(e instanceof Response){let n=t?.isResponseOk||g,r=t?.getContentSize||v,i=t?.getContentEncodedSize||_,a=t?.getContentCreatedAt||y;if(n(e))return{type:`url`,name:e.url,size:Number(r(e))||null,encodedSize:Number(i(e)),createdAt:a(e)}}if(e instanceof File)return{type:`file`,name:e.name,size:e.size,createdAt:e.lastModified};if(e instanceof Blob)return{size:e.size};if(ArrayBuffer.isView(e))return{size:e.byteLength};if(typeof e==`string`)return{size:e.length}}function x(e){let t=e;return(typeof t==`string`||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t&&!(Symbol.iterator in t)&&!(Symbol.asyncIterator in t))&&(t=[t]),t&&Symbol.iterator in t?new Blob(t):e}function S(e){if(e instanceof ReadableStream)return e;if(e instanceof Response){if(e.body===null)throw Error(`Response has no body`);return e.body}return e=x(e),e instanceof Blob?e.stream():new ReadableStream({start(){let t=typeof e==`object`&&e&&Symbol.asyncIterator in e?e[Symbol.asyncIterator]:void 0;if(typeof t!=`function`)throw Error(`Bad value type (can't convert to a stream)`);this.iterator=t()},async pull(e){let{value:t,done:n}=await this.iterator.next();n?(this.iterator=null,e.close()):e.enqueue(t)},cancel(){this.iterator=null}})}var{toString:C,hasOwnProperty:w}=Object.prototype;Object.hasOwn;function T(e,t){let n=globalThis.location,r=[],i=({newURL:n,oldURL:i})=>{let a=new URL(n).hash||`#`,o=new URL(i).hash||`#`;a!==r.shift()&&(t?.debug(`locationSync onChange:`,o,`->`,a),r.length=0,e(a,o))};return addEventListener(`hashchange`,i),{set(e,i){let a=e||`#`;(n.hash||`#`)!==a&&(t?.debug(`locationSync set:`,a,i),r.push(e),i?n.replace(e):n.hash=e)},dispose(){removeEventListener(`hashchange`,i)}}}var E=`[Discovery/embed-host]`,D=()=>{},O=(()=>{try{let e=new ReadableStream;return new MessageChannel().port1.postMessage(e,[e]),!0}catch{return!1}})(),k=class extends u{window;id;actions;dataLoadToken;constructor(e,t,n){super(),this.window=e,this.id=t,this.actions=n,this.dataLoadToken=null}sendMessage(e,t,n){let r={id:this.id,from:`discoveryjs-app`,type:e,payload:t||null};this.window.postMessage(r,`*`,n)}destroy(){this.destroy=D,this.emit(`destroy`),this.dataLoadToken=null,this.window=null,this.sendMessage=D}},A=class e extends k{publicApi;static createPublicApi(e){return Object.freeze({on:e.on.bind(e),once:e.once.bind(e),off:e.off.bind(e),defineAction(t,n){e.actions.set(t,n),e.sendMessage(`defineAction`,t)},setPageHash(t,n=!1){e.sendMessage(`setPageHash`,{hash:t,replace:n})},setRouterPreventLocationUpdate(t=!0){e.sendMessage(`setRouterPreventLocationUpdate`,t)}})}constructor(t,n,r){super(t,n,r),this.publicApi=e.createPublicApi(this)}processMessage(e){switch(e.type){case`loadingState`:this.emit(`loadingStateChanged`,e.payload);break}}},j=class e extends k{commandMap;dataLoadToken;pageHash;pageId;pageRef;pageParams;pageAnchor;locationSync;colorScheme;publicApi;static createPublicApi(e){let t={primary:P(`primary`,e.sendMessage.bind(e),e.commandMap),secondary:P(`secondary`,e.sendMessage.bind(e),e.commandMap),menu:P(`menu`,e.sendMessage.bind(e),e.commandMap)};return Object.freeze({pageHash:e.pageHash.readonly,pageId:e.pageId.readonly,pageRef:e.pageRef.readonly,pageAnchor:e.pageAnchor.readonly,pageParams:e.pageParams.readonly,colorScheme:e.colorScheme.readonly,on:e.on.bind(e),once:e.once.bind(e),off:e.off.bind(e),nav:Object.assign(t.secondary,t),notify(t,n){e.sendMessage(`notification`,{name:t,details:n})},defineAction(t,n){e.actions.set(t,n),e.sendMessage(`defineAction`,t)},setPageHash(t,n=!1){e.sendMessage(`setPageHash`,{hash:t,replace:n})},setPageHashState(t,n=!1){e.sendMessage(`setPageHashState`,{...t,replace:n})},setPageHashStateWithAnchor(t,n=!1){e.sendMessage(`setPageHashStateWithAnchor`,{...t,replace:n})},setPage(t,n,r,i=!1){e.sendMessage(`setPage`,{id:t,ref:n,params:r,replace:i})},setPageRef(t,n=!1){e.sendMessage(`setPageRef`,{ref:t,replace:n})},setPageParams(t,n=!1){e.sendMessage(`setPageParams`,{params:t,replace:n})},setPageAnchor(t,n=!1){e.sendMessage(`setPageAnchor`,{anchor:t,replace:n})},setColorSchemeState(t){e.sendMessage(`setColorSchemeState`,t)},setRouterPreventLocationUpdate(t=!0){e.sendMessage(`setRouterPreventLocationUpdate`,t)},setLocationSync(t=!0){t&&!e.locationSync?(e.locationSync=T(t=>e.publicApi.setPageHash(t)),e.on(`pageHashChanged`,e.locationSync.set)):!t&&e.locationSync&&(e.off(`pageHashChanged`,e.locationSync.set),e.locationSync.dispose(),e.locationSync=null)},unloadData(){e.sendMessage(`unloadData`,null)},async uploadData(t,n){let r=f();e.dataLoadToken=r;try{return await N(e,t,n)}finally{e.dataLoadToken===r&&(e.dataLoadToken=null)}}})}constructor(t,n,r){super(t,n,r),this.commandMap=new Map,this.dataLoadToken=null,this.pageHash=new d(`#`),this.pageId=new d(``),this.pageRef=new d(null),this.pageParams=new d({}),this.pageAnchor=new d(null),this.locationSync=null,this.colorScheme=new d({state:`unknown`,value:`unknown`},(e,t)=>e.state!==t.state||e.value!==t.value),this.publicApi=e.createPublicApi(this)}async processMessage(e){switch(e.type){case`destroy`:this.destroy();break;case`action`:{let{callId:t,name:n,args:r}=e.payload,i=this.actions.get(n);if(typeof i==`function`)try{this.sendMessage(`actionResult`,{callId:t,value:await i(...r)})}catch(e){this.sendMessage(`actionResult`,{callId:t,error:e})}else console.warn(`${E} Action "${n}" was not found`);break}case`navMethod`:{let t=this.commandMap.get(e.payload);typeof t==`function`?t():console.warn(`${E} Nav command "${e.payload}" was not found`);break}case`pageHashChanged`:{let{replace:t,hash:n,id:r,ref:i,params:a,anchor:o}=e.payload||{},s=String(n).startsWith(`#`)?n:`#`+n;this.pageHash.set(s),this.pageId.set(r),this.pageRef.set(i),this.pageParams.set(a),this.pageAnchor.set(o),this.emit(`pageHashChanged`,s,t);break}case`colorSchemeChanged`:{let t=e.payload;this.colorScheme.set(t),this.emit(`colorSchemeChanged`,t);break}case`unloadData`:this.emit(`unloadData`);break;case`data`:this.emit(`data`);break;case`loadingState`:this.emit(`loadingStateChanged`,e.payload);break;default:console.error(`${E} Unknown embed message type "${e.type}"`)}}destroy(){this.locationSync&&=(this.locationSync.dispose(),null),super.destroy()}};function M(e,t,n){let r=Object.assign(new Map,{id:``}),i=null,a,o=typeof t==`function`&&typeof n!=`function`?{onPreinit:void 0,onConnect:t}:{onPreinit:t,onConnect:n};return addEventListener(`message`,c),()=>{removeEventListener(`message`,c),s()};function s(){i!==null&&(i.destroy(),typeof a==`function`&&a(),i=null,a=void 0)}async function c(t){let n=t.data||{};if(t.isTrusted&&(t.source===e.contentWindow||t.source===null)&&n.from===`discoveryjs-app`){if(n.type===`ready`){s(),r.id!==n.id&&(r.clear(),r.id=n.id);let{colorScheme:t,page:c}=n.payload;i=new j(e.contentWindow,n.id,r),i.pageHash.set(c.hash),i.pageId.set(c.id),i.pageRef.set(c.ref),i.pageParams.set(c.params),i.pageAnchor.set(c.anchor),i.colorScheme.set(t),i.once(`destroy`,s),a=o.onConnect(i.publicApi);return}if(n.type===`preinit`){s(),typeof o.onPreinit==`function`&&(r.id!==n.id&&(r.clear(),r.id=n.id),i=new A(e.contentWindow,n.id,r),i.once(`destroy`,s),a=o.onPreinit(i.publicApi));return}if(i?.id===n.id){i.processMessage(n);return}}}}async function N(e,t,n=b){let r=e.dataLoadToken,i=()=>{if(e?.dataLoadToken!==r)throw Error(`Data upload aborted`)};if(!r)throw Error(`No acceptToken specified`);let a=typeof t==`function`?await t():await t;i();let o=typeof n==`function`&&n(a)||{},s=S(a);if(O)e.sendMessage(`dataStream`,{stream:s,resource:o},[s]);else{let t=s.getReader();e.sendMessage(`startChunkedDataUpload`,{acceptToken:r,resource:o});try{for(;;){let{value:n,done:a}=await t.read();if(i(),e.sendMessage(`dataChunk`,{acceptToken:r,value:n,done:a},typeof n!=`string`&&n?.buffer?[n.buffer]:void 0),a)break}}catch(t){throw e.sendMessage(`cancelChunkedDataUpload`,{acceptToken:r,error:t}),t}finally{t.releaseLock()}}}function P(e,t,n){function r(e){let t=[];return{commands:t,config:JSON.parse(JSON.stringify(e,(e,r)=>{if(typeof r==`function`){let e=`nav-command-`+f();return t.push(e),n.set(e,r),e}return r}))}}return{insert(n,i,a){t(`changeNavButtons`,{section:e,action:`insert`,name:a,position:i,...r(n)})},prepend(n){t(`changeNavButtons`,{section:e,action:`prepend`,...r(n)})},append(n){t(`changeNavButtons`,{section:e,action:`append`,...r(n)})},before(n,i){t(`changeNavButtons`,{section:e,action:`before`,name:n,...r(i)})},after(n,i){t(`changeNavButtons`,{section:e,action:`after`,name:n,...r(i)})},replace(n,i){t(`changeNavButtons`,{section:e,action:`replace`,name:n,...r(i)})},remove(n){t(`changeNavButtons`,{section:e,action:`remove`,name:n})}}}var F=[`src`],I=t({__name:`server-discovery`,setup(t){let u=s().app.baseURL,d=a(`iframe`);return e(()=>{let e=M(d.value,e=>((async()=>{let t=await l.getServerData(),n=`{${Object.entries(t).map(([e,t])=>`"${e}": ${c(t)}`).join(`,`)}}`;e.uploadData(n)})(),()=>{}));r(()=>{e()})}),(e,t)=>(n(),i(`iframe`,{ref_key:`iframe`,ref:d,src:`${o(u)}discovery/index.html`,"h-full":``,"w-full":``},null,8,F))}});export{I as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as e,J as t,S as n,T as r,U as i,Y as a,Zt as o,_ as s,en as c,g as l,h as u,jt as d,m as f,p,s as m,st as h,ut as g}from"./vendor/json-editor-vue-mkw4apmc.js";import{A as _}from"./rpc-ewzip6fb.js";import{g as v,j as y,k as b}from"#entry";import{t as x}from"./nselect-kdzalcm2.js";import{t as S}from"./ncheckbox-gl62y715.js";var C={p4:``,flex:`~ col gap-4`},w={key:1,ml2:``,flex:``},T=[`value`],E={key:0,flex:``,"gap-4":``},D=Object.assign(r({__name:`ServerRouteInputs`,props:{modelValue:{},keys:{default:()=>[]},default:{default:()=>({})},disabled:{type:Boolean,default:!1}},setup(r,{emit:D}){let O=r,k=D,A=/^\d{4}-\d{2}-\d{2}$/,j=/^\d{2}:\d{2}$/,M=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/,N=_(O,`modelValue`,k,{passive:!0}),P=p(()=>[...O.keys,`active`,`key`,`value`,`type`]),F=p(()=>{let e={};for(let t of P.value)e[t]=O.default[t]||``;return e}),I=[`string`,`number`,`boolean`,`file`,`date`,`time`,`datetime-local`];function L(e,t){let n=t.target;if(n.files&&n.files[0]){let t=n.files[0],r=new FileReader;r.readAsDataURL(t),r.onload=()=>{N.value[e].value=r.result}}}return h(()=>N,e=>{e.value.forEach(e=>{if(e.type===`number`&&typeof e.value!=`number`){let t=Number.parseFloat(e.value);e.value=Number.isNaN(t)?0:t}else e.type===`boolean`&&typeof e.value!=`boolean`?e.value=!0:e.type===`file`&&typeof e.value!=`object`?e.value=``:e.type===`date`&&typeof e.value==`string`&&!A.test(e.value)?e.value=new Date().toISOString().slice(0,10):e.type===`time`&&typeof e.value==`string`&&!j.test(e.value)?e.value=new Date().toISOString().slice(11,16):e.type===`datetime-local`&&typeof e.value==`string`&&!M.test(e.value)?e.value=new Date().toISOString().slice(0,16):e.type===`string`&&(e.value=e.value.toString())})},{deep:!0,immediate:!0,flush:`sync`}),(p,h)=>{let _=S,D=v,O=x,k=y,A=b;return i(),s(`div`,C,[(i(!0),s(m,null,t(d(N),(n,h)=>(i(),s(`div`,{key:h,flex:`~ gap-2`,"justify-around":``},[a(p.$slots,`input`,{item:n}),(i(!0),s(m,null,t(P.value,a=>(i(),s(m,{key:a},[n.type!==null&&a===`active`?(i(),u(_,{key:0,modelValue:n[a],"onUpdate:modelValue":e=>n[a]=e,n:`sm primary`,disabled:r.disabled},null,8,[`modelValue`,`onUpdate:modelValue`,`disabled`])):l(``,!0),n.type!==null&&a===`key`?(i(),u(D,{key:1,modelValue:n[a],"onUpdate:modelValue":e=>n[a]=e,placeholder:a,"flex-1":``,"font-mono":``,n:`sm primary`,disabled:r.disabled,class:o(r.disabled?`op50`:``)},null,8,[`modelValue`,`onUpdate:modelValue`,`placeholder`,`disabled`,`class`])):a===`value`?(i(),s(m,{key:2},[n.type===`file`?(i(),u(D,{key:0,type:`file`,disabled:r.disabled,class:o(r.disabled?`op75`:``),onChange:e=>L(h,e)},null,8,[`disabled`,`class`,`onChange`])):n.type===`boolean`?(i(),s(`div`,w,[e(_,{modelValue:n.value,"onUpdate:modelValue":e=>n.value=e,placeholder:`Value`,n:`green lg`,disabled:r.disabled},null,8,[`modelValue`,`onUpdate:modelValue`,`disabled`])])):(i(),u(D,{key:2,modelValue:n.value,"onUpdate:modelValue":e=>n.value=e,type:n.type,placeholder:`Value`,"flex-1":``,"font-mono":``,n:`sm primary`,disabled:r.disabled,class:o(r.disabled?`op75`:``)},null,8,[`modelValue`,`onUpdate:modelValue`,`type`,`disabled`,`class`]))],64)):a===`type`?(i(),u(O,{key:3,modelValue:n.type,"onUpdate:modelValue":e=>n.type=e,n:`sm green`,class:o(r.disabled?`op75`:``),disabled:r.disabled},{default:g(()=>[(i(),s(m,null,t(I,e=>f(`option`,{key:e,value:e},c(e),9,T)),64))]),_:1},8,[`modelValue`,`onUpdate:modelValue`,`class`,`disabled`])):l(``,!0)],64))),128)),a(p.$slots,`input-actions`,{},()=>[e(A,{n:`red`,disabled:r.disabled,class:o(r.disabled?`op0!`:``),onClick:e=>d(N).splice(h,1)},{default:g(()=>[e(k,{icon:`carbon:trash-can`})]),_:1},8,[`disabled`,`class`,`onClick`])])]))),128)),r.disabled?l(``,!0):(i(),s(`div`,E,[a(p.$slots,`actions`,{params:d(N)},()=>[e(A,{icon:`carbon-add`,n:`sm primary`,my1:``,"px-3":``,onClick:h[0]||=e=>d(N).push({...F.value})},{default:g(()=>[...h[2]||=[n(` Add `,-1)]]),_:1}),h[4]||=f(`div`,{"flex-auto":``},null,-1),d(N).length?(i(),u(A,{key:0,icon:`carbon-trash-can`,n:`sm red`,my1:``,"px-3":``,onClick:h[1]||=e=>d(N).splice(0,d(N).length)},{default:g(()=>[...h[3]||=[n(` Remove All `,-1)]]),_:1})):l(``,!0)])])),a(p.$slots,`default`)])}}}),{__name:`ServerRouteInputs`});export{D as t};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{$t as e,C as t,J as n,N as r,P as i,S as a,St as o,T as s,U as c,Y as l,Z as u,Zt as d,_ as f,bt as p,c as ee,ct as m,dt as h,en as g,g as _,h as v,ht as y,jt as b,m as x,p as S,pt as C,s as w,st as T,t as te,ut as E,yt as D}from"./vendor/json-editor-vue-mkw4apmc.js";import{L as ne,O,X as k,a as A,w as re,z as ie}from"./utils-hgmynvjd.js";import{T as j,f as ae,z as oe}from"./rpc-ewzip6fb.js";import{t as M}from"./storage-options-ho965h55.js";import{C as se,M as ce,_ as N,a as le,g as ue,i as de,j as fe,k as pe,m as P,o as F,v as me,y as he}from"#entry";import{t as ge}from"./nselect-kdzalcm2.js";import{t as _e}from"./ncode-block-ksrq5ppu.js";import{t as ve}from"./ndrawer-evv584t1.js";import"./composables-ioamscf4.js";import{t as ye}from"./nnavbar-n8fcnalx.js";import{t as I}from"./nsection-block-n5u7wj9x.js";import{t as be}from"./code-snippets-nodldh90.js";import{n as xe,t as Se}from"./constants-g2z8m4rs.js";import{t as Ce}from"./nbadge-ft1i3ddy.js";import{t as we}from"./data-schema-button-m4wb470q.js";import{t as Te}from"./server-route-inputs-hhxdu10p.js";var L=Object.assign(s({__name:`ServerRouteListItem`,props:{item:{},index:{default:0}},setup(t){let r=o(!0),i=F();return(o,s)=>{let u=fe,p=Ce,ee=L;return c(),f(`div`,null,[x(`button`,{flex:`~ gap-2`,"w-full":``,"items-start":``,"items-center":``,px2:``,py1:``,"hover-bg-active":``,class:d([{"bg-active":b(i)===t.item.filepath}]),style:e({paddingLeft:`calc(0.5rem + ${t.index*1.5}em)`}),onClick:s[0]||=e=>{r.value=!r.value,i.value=t.item.filepath}},[x(`div`,{class:d({"w-12":!t.item.routes}),"flex-none":``,"text-left":``},[t.item.type===`collection`?(c(),v(u,{key:0,icon:`carbon:chevron-right`,"mb0.5":``,"transform-rotate":r.value?90:0,transition:``},null,8,[`transform-rotate`])):(c(),v(p,{key:1,class:d(b(A)(t.item.method||`*`)),textContent:g((t.item.method||`*`).toUpperCase())},null,8,[`class`,`textContent`]))],2),x(`span`,{class:d({"flex items-center":t.item.routes}),"text-sm":``,"font-mono":``},[t.item.type===`collection`?(c(),v(u,{key:0,title:`${t.item.routes?.length} routes`,icon:`carbon:folder`,mr1:``},null,8,[`title`])):_(``,!0),a(` `+g(t.item.route),1)],2)],6),s[1]||=x(`div`,{"x-divider":``},null,-1),r.value?l(o.$slots,`default`,{key:0},()=>[(c(!0),f(w,null,n(t.item.routes,e=>(c(),v(ee,{key:e.filepath,item:e,index:t.index+1},null,8,[`item`,`index`]))),128))]):_(``,!0)])}}}),{__name:`ServerRouteListItem`}),R=3456e4;function z(e,t,n){let r=e.indexOf(`;`,t);return r===-1?n:r}function B(e,t,n){let r=e.indexOf(`=`,t);return r<n?r:-1}function V(e,t,n){if(t===n)return``;let r=t,i=n;do{let t=e.charCodeAt(r);if(t!==32&&t!==9)break}while(++r<i);for(;i>r;){let t=e.charCodeAt(i-1);if(t!==32&&t!==9)break;i--}return e.slice(r,i)}var Ee=(()=>{let e=function(){};return e.prototype=Object.create(null),e})();function H(e,t){let n=new Ee,r=e.length;if(r<2)return n;let i=t?.decode||De,a=t?.allowMultiple||!1,o=0;do{let s=B(e,o,r);if(s===-1)break;let c=z(e,o,r);if(s>c){o=e.lastIndexOf(`;`,s-1)+1;continue}let l=V(e,o,s);if(t?.filter&&!t.filter(l)){o=c+1;continue}let u=i(V(e,s+1,c));if(a){let e=n[l];e===void 0?n[l]=u:Array.isArray(e)?e.push(u):n[l]=[e,u]}else n[l]===void 0&&(n[l]=u);o=c+1}while(o<r);return n}function De(e){if(!e.includes(`%`))return e;try{return decodeURIComponent(e)}catch{return e}}var Oe=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,ke=/^[\u0021-\u003A\u003C-\u007E]*$/,U=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,Ae=/^[\u0020-\u003A\u003C-\u007E]*$/,W=Object.prototype.toString;function G(e,t,n){let r=typeof e==`object`&&!!e,i=r?t:n,a=i?.stringify||JSON.stringify,o=r?e:{...n,name:e,value:t==null?``:typeof t==`string`?t:a(t)},s=i?.encode||encodeURIComponent;if(!Oe.test(o.name))throw TypeError(`argument name is invalid: ${o.name}`);let c=o.value?s(o.value):``;if(!ke.test(c))throw TypeError(`argument val is invalid: ${o.value}`);if(!o.secure){if(o.partitioned)throw TypeError(`Partitioned cookies must have the Secure attribute`);if(o.sameSite&&String(o.sameSite).toLowerCase()===`none`)throw TypeError(`SameSite=None cookies must have the Secure attribute`);if(o.name.length>9&&o.name.charCodeAt(0)===95&&o.name.charCodeAt(1)===95){let e=o.name.toLowerCase();if(e.startsWith(`__secure-`)||e.startsWith(`__host-`))throw TypeError(`${o.name} cookies must have the Secure attribute`)}}if(o.name.length>7&&o.name.charCodeAt(0)===95&&o.name.charCodeAt(1)===95&&o.name.toLowerCase().startsWith(`__host-`)){if(o.path!==`/`)throw TypeError(`__Host- cookies must have Path=/`);if(o.domain)throw TypeError(`__Host- cookies must not have a Domain attribute`)}let l=o.name+`=`+c;if(o.maxAge!==void 0){if(!Number.isInteger(o.maxAge))throw TypeError(`option maxAge is invalid: ${o.maxAge}`);l+=`; Max-Age=`+Math.max(0,Math.min(o.maxAge,R))}if(o.domain){if(!U.test(o.domain))throw TypeError(`option domain is invalid: ${o.domain}`);l+=`; Domain=`+o.domain}if(o.path){if(!Ae.test(o.path))throw TypeError(`option path is invalid: ${o.path}`);l+=`; Path=`+o.path}if(o.expires){if(!je(o.expires)||!Number.isFinite(o.expires.valueOf()))throw TypeError(`option expires is invalid: ${o.expires}`);l+=`; Expires=`+o.expires.toUTCString()}if(o.httpOnly&&(l+=`; HttpOnly`),o.secure&&(l+=`; Secure`),o.partitioned&&(l+=`; Partitioned`),o.priority)switch(typeof o.priority==`string`?o.priority.toLowerCase():void 0){case`low`:l+=`; Priority=Low`;break;case`medium`:l+=`; Priority=Medium`;break;case`high`:l+=`; Priority=High`;break;default:throw TypeError(`option priority is invalid: ${o.priority}`)}if(o.sameSite)switch(typeof o.sameSite==`string`?o.sameSite.toLowerCase():o.sameSite){case!0:case`strict`:l+=`; SameSite=Strict`;break;case`lax`:l+=`; SameSite=Lax`;break;case`none`:l+=`; SameSite=None`;break;default:throw TypeError(`option sameSite is invalid: ${o.sameSite}`)}return l}function je(e){return W.call(e)===`[object Date]`}function K(e){if(typeof e!=`object`)return e;var t,n,r=Object.prototype.toString.call(e);if(r===`[object Object]`){if(e.constructor!==Object&&typeof e.constructor==`function`)for(t in n=new e.constructor,e)e.hasOwnProperty(t)&&n[t]!==e[t]&&(n[t]=K(e[t]));else for(t in n={},e)t===`__proto__`?Object.defineProperty(n,t,{value:K(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=K(e[t]);return n}if(r===`[object Array]`){for(t=e.length,n=Array(t);t--;)n[t]=K(e[t]);return n}return r===`[object Set]`?(n=new Set,e.forEach(function(e){n.add(K(e))}),n):r===`[object Map]`?(n=new Map,e.forEach(function(e,t){n.set(K(t),K(e))}),n):r===`[object Date]`?new Date(+e):r===`[object RegExp]`?(n=new RegExp(e.source,e.flags),n.lastIndex=e.lastIndex,n):r===`[object DataView]`?new e.constructor(K(e.buffer)):r===`[object ArrayBuffer]`?e.slice(0):r.slice(-6)===`Array]`?new e.constructor(e):e}function q(e){if(e!==`undefined`)try{let t=JSON.parse(e);return typeof t==`number`&&String(t)!==e?e:t}catch{return e}}var Me={path:`/`,watch:!0,decode:e=>e&&q(decodeURIComponent(e)),encode:e=>{if(typeof e!=`string`||e===`undefined`)return encodeURIComponent(JSON.stringify(e));try{if(typeof JSON.parse(e)!=`string`)return encodeURIComponent(JSON.stringify(e))}catch{}return encodeURIComponent(e)},refresh:!1},J=globalThis.cookieStore;function Ne(e,t){let n={...Me,...t};n.filter??=t=>t===e;let r=Y(n)||{},a;n.maxAge===void 0?n.expires&&(a=n.expires.getTime()-Date.now()):a=n.maxAge*1e3;let s=a!==void 0&&a<=0,c=s||r[e]===void 0||r[e]===null,l=K(s?void 0:r[e]??n.default?.()),u=a&&!s?Ie(l,a,n.watch&&n.watch!==`shallow`):o(l);{let t=null;try{!J&&typeof BroadcastChannel<`u`&&(t=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}let a=(i=!1)=>{!i&&(n.readonly||k(u.value,r[e]))||(Z(e,u.value===null||u.value===void 0?void 0:n.encode(u.value),n),r[e]=K(u.value),t?.postMessage({value:n.encode(u.value)}))},o=t=>{let a=t.refresh?Y(n)?.[e]:n.decode(t.value);s=!0,u.value=a,r[e]=K(a),i(()=>{s=!1})},s=!1,l=!!y();if(l&&D(()=>{s=!0,a(),t?.close()}),J){let t=t=>{let n=t.changed.find(t=>t.name===e),r=t.deleted.find(t=>t.name===e);n&&o({value:n.value}),r&&o({value:null})};J.addEventListener(`change`,t),l&&D(()=>J.removeEventListener(`change`,t))}else t&&(t.onmessage=({data:e})=>o(e));n.watch&&T(u,()=>{s||a(n.refresh)},{deep:n.watch!==`shallow`}),c&&a(c)}return u}function Y(e={}){return H(document.cookie,e)}var X=e=>e;function Pe(e){let{encode:t,decode:n,...r}=e;return{...r,encode:X}}function Fe(e,t,n={}){let r=Pe(n);return t===void 0?G(e,``,{...r,maxAge:-1}):G(e,t,r)}function Z(e,t,n={}){document.cookie=Fe(e,t,n)}var Q=2147483647;function Ie(e,t,n){let r,i,a=0,s=n?o(e):{value:e};return y()&&D(()=>{i?.(),clearTimeout(r)}),C((e,o)=>{n&&(i=T(s,o));function c(){let e=t-a,n=e<Q?e:Q;r=setTimeout(()=>{if(a+=n,a<t)return c();s.value=void 0,o()},n)}function l(){a=0,clearTimeout(r),c()}return{get(){return e(),s.value},set(e){l(),s.value=e,o()}}})}var Le={"h-full":``,"w-full":``,flex:`~ col`},Re={flex:`~ col gap-2`,"n-navbar-glass":``,"flex-none":``,p4:``},ze={flex:`~ gap2 items-center`},Be={relative:``,"w-full":``},Ve={absolute:``,"right-2":``,"top-1.5":``,flex:`~ gap-1`},He={flex:`~ gap2 wrap`,"w-full":``,"items-center":``,px4:``,pb2:``,"text-center":``,"text-sm":``,border:`b base`},Ue={class:`hidden md:block`},We={key:0,border:`b base`,"items-center":``,px4:``,py2:``,grid:`~ cols-[max-content_1fr] gap-2`},Ge={"text-right":``,"font-mono":``},Ke={key:1,border:`b base`,p4:``,flex:`~ col gap-4`,"font-mono":``},qe={flex:`~ gap-4`},Je={flex:`~ gap2`,"mb--2":``,"items-center":``,op50:``},Ye={key:2},Xe={key:3,border:`b base`,relative:``,"n-code-block":``},Ze={flex:`~ wrap`,"w-full":``},Qe=[`onClick`],$e={border:`b base`,flex:`~ gap2`,"items-center":``,px4:``,py2:``},et={key:1,"text-xs":``,op50:``},tt={key:0,"flex-auto":``,"overflow-auto":``},nt={border:`~ base`,"h-full":``,"w-full":``,rounded:``},rt=[`data`],it={key:2,"flex-auto":``,"overflow-auto":``,p4:``},at={border:`~ base`,rounded:``},ot=[`src`],st={key:1,controls:``,rounded:``},ct=[`src`],lt=Object.assign(s({__name:`ServerRouteDetails`,props:{route:{}},emits:[`openDefaultInput`],setup(e,{emit:i}){let s=e,l=i,[ee,y]=ae(),C=ne(),T=re(),D=ie(),O=p({contentType:`text/plain`,data:``,statusCode:200,error:void 0,fetchTime:0}),k=S(()=>O.contentType.includes(`application/json`)?`json`:O.contentType.includes(`text/html`)?`html`:O.contentType.includes(`text/css`)?`css`:O.contentType.includes(`text/javascript`)?`javascript`:O.contentType.includes(`image`)||O.contentType.includes(`video`)?`media`:O.contentType.includes(`text/xml`)||O.contentType.includes(`application/xml`)?`xml`:O.contentType.includes(`application/pdf`)?`pdf`:`text`),N=S(()=>{if(k.value===`json`)return JSON.stringify(O.data,null,2);if(k.value===`media`||k.value===`pdf`){let e=new Blob([O.data],{type:O.contentType});return URL.createObjectURL(e)}return O.data}),P=o(!1),F=o(!1),he=le(),ve=/((?:\*\*)?:\w+)/g,ye=S(()=>s.route.route?.split(ve)),I=S(()=>ye.value?.filter(e=>e.startsWith(`:`)||e.startsWith(`**:`))||[]),L=o(s.route.method||`GET`),R=o({}),z=p({query:[{active:!0,key:``,value:``,type:`string`}],body:[{active:!0,key:``,value:``,type:`string`}],headers:[{active:!0,key:`Content-Type`,value:`application/json`,type:`string`}]}),B=o({}),{inputDefaults:V,sendFrom:Ee}=M(`serverRoutes`),H=S(()=>D?.value?.app?.$fetch?Ee.value:`devtools`),De=[`GET`,`POST`,`PUT`,`PATCH`,`DELETE`,`HEAD`],Oe=[`PATCH`,`POST`,`PUT`,`DELETE`],ke=S(()=>Oe.includes(L.value.toUpperCase())),U=o(),Ae=[`input`,`json`],W=o(Ae[0]),G=S({get:()=>z[U.value],set:e=>{z[U.value]=e}}),je=S(()=>({...X(V.value.query),...X(z.query)})),K=S(()=>({...X(V.value.headers),...X(z.headers)})),q=S(()=>ke.value?W.value===`json`?{...X(V.value.body),...B.value}:{...X(V.value.body),...X(z.body)}:void 0),Me=S(()=>{let e=window?.location.origin;return e.charAt(e.length-1)===`/`&&(e=e.slice(0,-1)),e}),J=S(()=>{let e=new URLSearchParams(je.value).toString();e&&=`?${e}`;let t=(ye.value?.map(e=>(e.startsWith(`:`)||e.startsWith(`**:`))&&R.value[e]||e).join(``)||``)+e,n=T.value?.app.baseURL||``;return(n===`./`||n===`.`)&&(n=``),n.endsWith(`/`)&&(n=n.slice(0,-1)),n+t}),Y=S(()=>Me.value+J.value);function X(e=[]){let t=Object.fromEntries(e.filter(({active:e,key:t,value:n})=>e&&t&&n!==void 0).map(({key:e,value:t})=>[e,t]));return Object.entries(t).length?t:void 0}async function Pe(){F.value=!0,P.value=!0;let e=Date.now(),t=H.value===`app`?D.value.app.$fetch:$fetch;se(`server-routes:fetch`,{method:L.value,sendFrom:H.value});try{O.data=await t(Y.value,{method:L.value.toUpperCase(),headers:K.value,query:je.value,body:q.value,onResponse({response:e}){O.contentType=(e.headers.get(`content-type`)||``).toString().toLowerCase().trim(),O.statusCode=e.status,O.error=void 0},onResponseError(e){O.error=e.response._data,O.data=e.response._data}})}catch{}P.value=!1,O.fetchTime=Date.now()-e}let Fe=S(()=>{let e=[],t=[],n=Object.entries(K.value).filter(([e,t])=>e&&t&&!(e===`Content-Type`&&t===`application/json`)).map(([e,t])=>` '${e}': '${t}'`).join(`,
|
|
2
|
-
`);L.value.toUpperCase()!==`GET`&&t.push(`method: '${L.value.toUpperCase()}'`),n&&t.push(`headers: {\n${n}\n}`),q.value&&t.push(`body: ${JSON.stringify(q.value,null,2)}`);let r=t.length?`, {
|
|
3
|
-
${t.join(`,
|
|
4
|
-
`).split(`
|
|
5
|
-
`).map(e=>` ${e}`).join(`
|
|
6
|
-
`)}
|
|
7
|
-
}`:``;return e.push({name:`useFetch`,lang:`javascript`,docs:Se.nuxt.useFetch,code:`const { data, pending, error, refresh } = useFetch('${J.value}'${r})`}),e.push({name:`$fetch`,lang:`javascript`,docs:Se.nuxt.$fetch,code:`await $fetch('${J.value}'${r})`}),e}),Z=o(lt()),Q=p({key:``,value:``}),Ie=S(()=>{let e=[];return I.value.length&&e.push({name:`Params`,slug:`params`,length:I.value.length}),e.push({name:`Query`,slug:`query`,length:z.query.length}),ke.value&&e.push({name:`Body`,slug:`body`,length:z.body.length}),e.push({name:`Headers`,slug:`headers`,length:z.headers.length}),e.push({name:`Cookies`,slug:`cookies`,length:Z.value.length}),e.push({name:`Snippets`,slug:`snippet`}),e});function lt(){return document.cookie.split(`; `).map(e=>{let[t,n]=e.split(`=`);return{key:t,value:n}}).filter(e=>e.key)}function $(e,t){if(!e)return;let n=Z.value.find(t=>t.key===e),r=Ne(e);n===void 0?(Z.value.push({key:e,value:t}),Q.key=``,Q.value=``):t===void 0&&(Z.value=Z.value.filter(t=>t.key!==e)),r.value=t}m(()=>{W.value===`json`&&typeof B.value==`string`&&(B.value=JSON.parse(B.value))});let ut=j(`nuxt-devtools:server-routes:inputs`,()=>[],{window:window.parent});oe([z,U],()=>{let e=ut.value?.find(e=>e.path===s.route.filepath);if(e){U.value||=e.tab,e.tab!==U.value&&(e.tab=U.value);let{body:t,query:n,headers:r,params:i}=e.inputs;Object.assign(z,{body:t,query:n,headers:r}),R.value=i}else{let e={path:s.route.filepath,tab:I.value.length?`params`:`query`,inputs:{...z,...I.value.length?{params:R.value}:{}}};ut.value.push(e),U.value||=e.tab}},{immediate:!0,deep:!0,debounce:500});function dt(){ut.value=[],z.body=[],z.query=[],z.headers=[],R.value={},U.value=I.value.length?`params`:`query`}let ft=de();return(i,o)=>{let s=pe,p=ge,m=ue,S=fe,T=Te,ne=be,re=me,ie=ce,j=Ce,ae=we,oe=_e,M=u(`tooltip`);return c(),f(`div`,Le,[x(`div`,Re,[x(`div`,ze,[e.route.method?(c(),v(s,{key:0,class:d([`n-badge-base n-sm`,b(A)(L.value)]),"pointer-events-none":``,"font-mono":``,tabindex:`-1`},{default:E(()=>[a(g(L.value.toUpperCase()),1)]),_:1},8,[`class`])):(c(),v(p,{key:1,modelValue:L.value,"onUpdate:modelValue":o[0]||=e=>L.value=e,class:d([`n-badge-base n-sm`,b(A)(L.value)])},{default:E(()=>[(c(),f(w,null,n(De,e=>x(`option`,{key:e,class:d(b(A)(e))},g(e.toUpperCase()),3)),64))]),_:1},8,[`modelValue`,`class`])),x(`div`,Be,[t(m,{"model-value":J.value,readonly:``,"flex-auto":``,"font-mono":``,p:`x5 y2`,n:`sm`},null,8,[`model-value`]),x(`div`,Ve,[h(t(s,{title:`Copy URL`,n:`xs blue`,icon:`carbon:copy`,border:!1,onClick:o[1]||=e=>b(ft)(Y.value,`server-route-url`)},null,512),[[M,`Copy URL`]]),h(t(s,{title:`Open in Editor`,icon:`carbon-launch`,n:`xs blue`,border:!1,onClick:o[2]||=t=>b(he)(e.route.filepath)},null,512),[[M,`Open in Editor`]])])]),t(s,{"h-full":``,n:`primary solid`,onClick:Pe},{default:E(()=>[t(S,{icon:`carbon:send`})]),_:1})])]),x(`div`,He,[(c(!0),f(w,null,n(Ie.value,e=>h((c(),v(s,{key:e.slug,class:d(U.value===e.slug?`text-primary n-primary`:`border-transparent shadow-none`),onClick:t=>U.value=e.slug},{default:E(()=>[t(S,{icon:b(xe)[e.slug]},null,8,[`icon`]),x(`div`,Ue,[a(g(e.name)+` `+g(e?.length?`(${e.length})`:``)+` `,1),x(`span`,null,g(b(V)[e.slug]?.length?`(${b(V)[e.slug].length})`:``),1)])]),_:2},1032,[`class`,`onClick`])),[[M,e.name]])),128)),o[12]||=x(`div`,{"flex-auto":``},null,-1),o[13]||=x(`div`,{"text-xs":``,op50:``},` Send from `,-1),t(p,{modelValue:H.value,"onUpdate:modelValue":o[3]||=e=>H.value=e,class:`n-xs`,disabled:!b(D)?.app?.$fetch},{default:E(()=>[...o[11]||=[x(`option`,{value:`app`},` App `,-1),x(`option`,{value:`devtools`},` DevTools `,-1)]]),_:1},8,[`modelValue`,`disabled`]),h(t(s,{n:`orange`,class:`p-3`,icon:`i-carbon-clean`,onClick:dt},null,512),[[M,`Clear Inputs Saved Cache`]])]),U.value===`params`?(c(),f(`div`,We,[(c(!0),f(w,null,n(I.value,e=>(c(),f(w,{key:e},[x(`div`,Ge,g(e),1),t(m,{modelValue:R.value[e],"onUpdate:modelValue":t=>R.value[e]=t,placeholder:e,"flex-1":``},null,8,[`modelValue`,`onUpdate:modelValue`,`placeholder`])],64))),128))])):_(``,!0),U.value===`cookies`?(c(),f(`div`,Ke,[(c(!0),f(w,null,n(Z.value,e=>(c(),f(`div`,{key:e.key,flex:`~ gap-4 items-center`},[t(m,{placeholder:`Key...`,"model-value":e.key,disabled:``,"op-70":``},null,8,[`model-value`]),t(m,{placeholder:`Value...`,"model-value":e.value,"flex-1":``,n:`primary`,onInput:t=>$(e.key,t.target?.value)},null,8,[`model-value`,`onInput`]),t(s,{title:`Delete`,n:`red`,onClick:t=>$(e.key,void 0)},{default:E(()=>[t(S,{icon:`i-carbon-trash-can`})]),_:1},8,[`onClick`])]))),128)),x(`div`,qe,[t(m,{modelValue:Q.key,"onUpdate:modelValue":o[4]||=e=>Q.key=e,placeholder:`Key`,n:`primary`,"flex-1":``},null,8,[`modelValue`]),t(m,{modelValue:Q.value,"onUpdate:modelValue":o[5]||=e=>Q.value=e,placeholder:`Value`,n:`primary`,"flex-1":``},null,8,[`modelValue`]),t(s,{title:`Add`,n:`primary`,onClick:o[6]||=e=>$(Q.key,Q.value)},{default:E(()=>[t(S,{icon:`i-carbon-save`})]),_:1})])])):_(``,!0),t(b(ee),null,{default:E(()=>[t(T,{modelValue:G.value,"onUpdate:modelValue":o[9]||=e=>G.value=e,default:{active:!0,type:`string`},"max-h-xs":``,"of-auto":``},{default:E(()=>[b(V)[U.value]?.length?(c(),f(w,{key:0},[x(`div`,Je,[o[14]||=x(`div`,{"w-5":``,"x-divider":``},null,-1),o[15]||=x(`div`,{"flex-none":``},` Default Inputs `,-1),t(s,{icon:`i-carbon-edit`,border:!1,onClick:o[7]||=e=>l(`openDefaultInput`)}),o[16]||=x(`div`,{"x-divider":``},null,-1)]),t(T,{modelValue:b(V)[U.value],"onUpdate:modelValue":o[8]||=e=>b(V)[U.value]=e,disabled:``,p0:``},null,8,[`modelValue`])],64)):_(``,!0)]),_:1},8,[`modelValue`])]),_:1}),U.value===`snippet`?(c(),f(`div`,Ye,[Fe.value.length?(c(),v(ne,{key:0,"code-snippets":Fe.value},null,8,[`code-snippets`])):_(``,!0)])):G.value?(c(),f(`div`,Xe,[U.value===`body`?(c(),f(w,{key:0},[x(`div`,Ze,[(c(),f(w,null,n(Ae,e=>x(`button`,{key:e,px4:``,py2:``,border:`r base`,hover:`bg-active`,class:d({"border-b":e!==W.value}),onClick:t=>W.value=e},[x(`div`,{class:d({op30:e!==W.value}),"font-mono":``},g(e),3)],10,Qe)),64)),o[17]||=x(`div`,{border:`b base`,"flex-auto":``},null,-1)]),W.value===`input`?(c(),v(b(y),{key:0})):W.value===`json`?(c(),v(b(te),r({key:1,modelValue:B.value,"onUpdate:modelValue":o[10]||=e=>B.value=e,class:[b(C)===`dark`?`jse-theme-dark`:`light`,`json-editor-vue of-auto text-sm outline-none`]},i.$attrs,{mode:`text`,"navigation-bar":!1,indentation:2,"tab-size":2}),null,16,[`modelValue`,`class`])):_(``,!0)],64)):(c(),v(b(y),{key:1}))])):_(``,!0),F.value?P.value?(c(),v(ie,{key:5,"z-10":``,"flex-auto":``,"backdrop-blur":``},{default:E(()=>[...o[19]||=[a(` Fetching... `,-1)]]),_:1})):(c(),f(w,{key:6},[x(`div`,$e,[o[21]||=x(`div`,null,`Response`,-1),O.error?(c(),v(j,{key:0,n:`red`},{default:E(()=>[...o[20]||=[a(` Error `,-1)]]),_:1})):_(``,!0),t(j,{n:O.error?`orange`:`green`,textContent:g(O.statusCode)},null,8,[`n`,`textContent`]),O.contentType?(c(),f(`code`,et,g(O.contentType),1)):_(``,!0),O.contentType===`application/json`?(c(),v(ae,{key:2,getter:()=>({input:N.value})},null,8,[`getter`])):_(``,!0),o[22]||=x(`div`,{"flex-auto":``},null,-1),o[23]||=x(`div`,{op50:``},` Request finished in `,-1),t(j,{n:`green`},{default:E(()=>[a(g(O.fetchTime)+` ms `,1)]),_:1})]),k.value===`pdf`?(c(),f(`div`,tt,[x(`div`,nt,[x(`object`,{data:N.value,type:`application/pdf`,"flex-auto":``,width:`100%`,height:`100%`,rounded:``},null,8,rt)])])):k.value===`media`?(c(),f(`div`,it,[x(`div`,at,[O.contentType.includes(`image`)?(c(),f(`img`,{key:0,rounded:``,src:N.value},null,8,ot)):(c(),f(`video`,st,[x(`source`,{src:N.value,type:`video/mp4`},null,8,ct)]))])])):(c(),v(oe,{key:1,"flex-auto":``,"overflow-auto":``,"py-2":``,code:N.value,lang:k.value},null,8,[`code`,`lang`]))],64)):(c(),v(re,{key:4},{default:E(()=>[t(s,{n:`primary`,onClick:Pe},{default:E(()=>[t(S,{icon:`carbon:send`}),o[18]||=a(` Send request `,-1)]),_:1})]),_:1}))])}}}),{__name:`ServerRouteDetails`}),$={flex:`~ gap1`,"text-sm":``},ut={key:0,op50:``},dt={op50:``},ft=s({__name:`server-routes`,setup(e){let r=/\W/g,i=o(!1),a=O(),s=F(),{selectedRoute:l,view:d,inputDefaults:p}=M(`serverRoutes`),m=S(()=>{!s.value&&l.value&&(s.value=l.value.filepath);let e=a.value?.find(e=>e.filepath===s.value);return s.value!==l.value?.filepath&&e&&(l.value=e),e}),y=o(``),C=S(()=>new P(a.value||[],{keys:[`method`,`route`],shouldSort:!0})),T=S(()=>a.value?y.value?C.value.search(y.value).map(e=>e.item):a.value:[]),te=S(()=>{let e=[],t=(e,t)=>{e.routes=e.routes||[],e.routes.push(t)},n=(n,i)=>{let a=i?i.routes?.find(e=>e.route===n):e.find(e=>e.route===n);if(a)return a;let o={route:n,filepath:n.replace(r,`-`).toLowerCase(),type:`collection`,routes:[]};return i?t(i,o):e.push(o),o};return T.value.forEach(r=>{let i,a,o=r.filepath.split(`/`),s=o.slice(o.indexOf(`server`)+1);if(r.type===`runtime`){s[0]=`runtime`;let e=o.indexOf(`dist`);e!==-1&&(i=o[e-1],i&&s.splice(1,0,i))}s.length>0&&s.at(-1).includes(`.`)&&s.pop(),s.forEach(e=>{a=n(e,a)}),a?t(a,r):e.push(r)}),e});function D(){d.value=d.value===`tree`?`list`:`tree`}function ne(e){return e.charAt(0).toUpperCase()+e.slice(1)}return(e,r)=>{let o=pe,s=ye,l=L,S=lt,C=he,O=me,k=N,A=Te,re=I,ie=ve,j=u(`tooltip`);return c(),f(w,null,[t(k,{"storage-key":`tab-server-routes`},{left:E(()=>[t(s,{search:y.value,"onUpdate:search":r[1]||=e=>y.value=e,pb2:``},{actions:E(()=>[h(t(o,{"text-lg":``,icon:b(d)===`list`?`i-carbon-list`:`i-carbon-tree-view-alt`,title:`Toggle view`,border:!1,onClick:D},null,8,[`icon`]),[[j,`Toggle View`]]),h(t(o,{"text-lg":``,icon:`i-carbon-cics-sit-overrides`,title:`Default Inputs`,border:!1,onClick:r[0]||=e=>i.value=!i.value},null,512),[[j,`Default Inputs`]])]),default:E(()=>[x(`div`,$,[y.value?(c(),f(`span`,ut,g(T.value.length)+` matched · `,1)):_(``,!0),x(`span`,dt,g(b(a)?.length)+` routes in total`,1)])]),_:1},8,[`search`]),(c(!0),f(w,null,n(b(d)===`tree`?te.value:T.value,e=>(c(),v(l,{key:e.filepath,item:e},null,8,[`item`]))),128))]),right:E(()=>[(c(),v(ee,{max:10},[m.value?(c(),v(S,{key:m.value.filepath,route:m.value,onOpenDefaultInput:r[2]||=e=>i.value=!0},null,8,[`route`])):_(``,!0)],1024)),m.value?_(``,!0):(c(),v(O,{key:0},{default:E(()=>[t(C,{px6:``,py2:``},{default:E(()=>[...r[5]||=[x(`span`,{op75:``},`Select a route to start`,-1)]]),_:1})]),_:1}))]),_:1}),t(ie,{modelValue:i.value,"onUpdate:modelValue":r[3]||=e=>i.value=e,"auto-close":``,"max-w-xl":``,"min-w-xl":``,onClose:r[4]||=e=>i.value=!1},{default:E(()=>[x(`div`,null,[r[6]||=x(`div`,{p4:``,border:`b base`},[x(`span`,{"text-lg":``},`Default Inputs`),x(`br`),x(`span`,{"text-black":``,op50:``,"dark:text-white":``},`Merged as default for every request in DevTools`)],-1),(c(!0),f(w,null,n(Object.keys(b(p)),e=>(c(),v(re,{key:e,text:`${ne(e)} ${b(p)[e]?.length?`(${b(p)[e].length})`:``}`,padding:!1,icon:b(xe)[e]},{default:E(()=>[t(A,{modelValue:b(p)[e],"onUpdate:modelValue":t=>b(p)[e]=t,py0:``,default:{active:!0,type:`string`}},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:2},1032,[`text`,`icon`]))),128))])]),_:1},8,[`modelValue`])],64)}}});export{ft as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e,t}from"./rolldown-runtime-imbltlrc.js";import{$t as n,C as r,J as i,N as a,S as o,St as s,T as c,U as l,Y as u,Z as d,Zt as f,_ as p,bt as m,c as h,ct as g,dt as _,en as v,g as y,h as b,jt as x,m as S,p as C,s as w,t as T,ut as E}from"./vendor/json-editor-vue-mkw4apmc.js";import{A as D,L as O,a as k,w as A}from"./utils-hgmynvjd.js";import{T as j,f as M,z as N}from"./rpc-ewzip6fb.js";import{t as P}from"./storage-options-ho965h55.js";import{C as ee,M as F,_ as I,a as te,g as ne,i as re,j as L,k as ie,m as ae,s as R,v as oe,y as z}from"#entry";import{t as se}from"./ncode-block-ksrq5ppu.js";import{t as ce}from"./ndrawer-evv584t1.js";import"./composables-ioamscf4.js";import{t as le}from"./nnavbar-n8fcnalx.js";import{t as B}from"./nsection-block-n5u7wj9x.js";import{n as ue}from"./constants-g2z8m4rs.js";import{t as de}from"./nbadge-ft1i3ddy.js";import{t as fe}from"./server-route-inputs-hhxdu10p.js";var V=e(t(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define(`cronstrue`,[],r):typeof e==`object`?e.cronstrue=r():n.cronstrue=r()})(globalThis,()=>(()=>{var e={949(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CronParser=void 0;var r=n(515);t.CronParser=function(){function e(e,t,n){t===void 0&&(t=!0),n===void 0&&(n=!1),this.expression=e,this.dayOfWeekStartIndexZero=t,this.monthStartIndexZero=n}return e.prototype.parse=function(){var e,t=this.expression??``;if(t===`@reboot`)return e=[`@reboot`,``,``,``,``,``,``],e;if(t.startsWith(`@`)){var n=this.parseSpecial(this.expression);e=this.extractParts(n)}else e=this.extractParts(this.expression);return this.normalize(e),this.validate(e),e},e.prototype.parseSpecial=function(e){var t={"@yearly":`0 0 1 1 *`,"@annually":`0 0 1 1 *`,"@monthly":`0 0 1 * *`,"@weekly":`0 0 * * 0`,"@daily":`0 0 * * *`,"@midnight":`0 0 * * *`,"@hourly":`0 * * * *`,"@reboot":`@reboot`}[e];if(!t)throw Error(`Unknown special expression.`);return t},e.prototype.extractParts=function(e){if(!this.expression)throw Error(`cron expression is empty`);for(var t=e.trim().split(/[ ]+/),n=0;n<t.length;n++)if(t[n].includes(`,`)){var r=t[n].split(`,`).map(function(e){return e.trim()}).filter(function(e){return e!==``}).map(function(e){return isNaN(Number(e))?e:Number(e)}).filter(function(e){return e!==null&&e!==``});r.length===0&&r.push(`*`),r.sort(function(e,t){return e!==null&&t!==null?e-t:0}),t[n]=r.map(function(e){return e===null?``:e.toString()}).join(`,`)}if(t.length<5)throw Error(`Expression has only ${t.length} part${t.length==1?``:`s`}. At least 5 parts are required.`);if(t.length==5)t.unshift(``),t.push(``);else if(t.length==6)/\d{4}$/.test(t[5])||t[4]==`?`||t[2]==`?`?t.unshift(``):t.push(``);else if(t.length>7)throw Error(`Expression has ${t.length} parts; too many!`);return t},e.prototype.normalize=function(e){var t=this;if(e[3]=e[3].replace(`?`,`*`),e[5]=e[5].replace(`?`,`*`),e[2]=e[2].replace(`?`,`*`),e[0].indexOf(`0/`)==0&&(e[0]=e[0].replace(`0/`,`*/`)),e[1].indexOf(`0/`)==0&&(e[1]=e[1].replace(`0/`,`*/`)),e[2].indexOf(`0/`)==0&&(e[2]=e[2].replace(`0/`,`*/`)),e[3].indexOf(`1/`)==0&&(e[3]=e[3].replace(`1/`,`*/`)),e[4].indexOf(`1/`)==0&&(e[4]=e[4].replace(`1/`,`*/`)),e[6].indexOf(`1/`)==0&&(e[6]=e[6].replace(`1/`,`*/`)),e[5]=e[5].replace(/(^\d)|([^#/\s]\d)/g,function(e){var n=e.replace(/\D/,``),r=n;return t.dayOfWeekStartIndexZero?n==`7`&&(r=`0`):r=(parseInt(n)-1).toString(),e.replace(n,r)}),e[5]==`L`&&(e[5]=`6`),e[3]==`?`&&(e[3]=`*`),e[3].indexOf(`W`)>-1&&(e[3].indexOf(`,`)>-1||e[3].indexOf(`-`)>-1))throw Error(`The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.`);var n={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var r in n)e[5]=e[5].replace(new RegExp(r,`gi`),n[r].toString());e[4]=e[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(e){var n=e.replace(/\D/,``),r=n;return t.monthStartIndexZero&&(r=(parseInt(n)+1).toString()),e.replace(n,r)});var i={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var a in i)e[4]=e[4].replace(new RegExp(a,`gi`),i[a].toString());e[0]==`0`&&(e[0]=``),!/\*|\-|\,|\//.test(e[2])&&(/\*|\//.test(e[1])||/\*|\//.test(e[0]))&&(e[2]+=`-${e[2]}`);for(var o=0;o<e.length;o++)if(e[o].indexOf(`,`)!=-1&&(e[o]=e[o].split(`,`).filter(function(e){return e!==``}).join(`,`)||`*`),e[o]==`*/1`&&(e[o]=`*`),e[o].indexOf(`/`)>-1&&!/^\*|\-|\,/.test(e[o])){var s=null;switch(o){case 4:s=`12`;break;case 5:s=`6`;break;case 6:s=`9999`;break;default:s=null;break}if(s!==null){var c=e[o].split(`/`);e[o]=`${c[0]}-${s}/${c[1]}`}}},e.prototype.validate=function(e){var t=`0-9,\\-*/`;this.validateOnlyExpectedCharactersFound(e[0],t),this.validateOnlyExpectedCharactersFound(e[1],t),this.validateOnlyExpectedCharactersFound(e[2],t),this.validateOnlyExpectedCharactersFound(e[3],`0-9,\\-*/LW`),this.validateOnlyExpectedCharactersFound(e[4],t),this.validateOnlyExpectedCharactersFound(e[5],`0-9,\\-*/L#`),this.validateOnlyExpectedCharactersFound(e[6],t),this.validateAnyRanges(e)},e.prototype.validateAnyRanges=function(e){r.default.secondRange(e[0]),r.default.minuteRange(e[1]),r.default.hourRange(e[2]),r.default.dayOfMonthRange(e[3]),r.default.monthRange(e[4],this.monthStartIndexZero),r.default.dayOfWeekRange(e[5],this.dayOfWeekStartIndexZero)},e.prototype.validateOnlyExpectedCharactersFound=function(e,t){var n=e.match(RegExp(`[^${t}]+`,`gi`));if(n&&n.length)throw Error(`Expression contains invalid values: '${n.toString()}'`)},e}()},333(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ExpressionDescriptor=void 0;var r=n(823),i=n(949);t.ExpressionDescriptor=function(){function e(t,n){if(this.expression=t,this.options=n,this.expressionParts=[,,,,,],!this.options.locale&&e.defaultLocale&&(this.options.locale=e.defaultLocale),!e.locales[this.options.locale]){var r=Object.keys(e.locales)[0];console.warn(`Locale '${this.options.locale}' could not be found; falling back to '${r}'.`),this.options.locale=r}this.i18n=e.locales[this.options.locale],n.use24HourTimeFormat===void 0&&(n.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return e.toString=function(t,n){var r=n===void 0?{}:n,i=r.throwExceptionOnParseError,a=i===void 0?!0:i,o=r.verbose,s=o===void 0?!1:o,c=r.dayOfWeekStartIndexZero,l=c===void 0?!0:c,u=r.monthStartIndexZero,d=u===void 0?!1:u,f=r.use24HourTimeFormat,p=r.trimHoursLeadingZero,m=p===void 0?!1:p,h=r.locale,g=h===void 0?null:h,_=r.logicalAndDayFields,v={throwExceptionOnParseError:a,verbose:s,dayOfWeekStartIndexZero:l,monthStartIndexZero:d,use24HourTimeFormat:f,trimHoursLeadingZero:m,locale:g,logicalAndDayFields:_===void 0?!1:_};return v.tzOffset&&console.warn(`'tzOffset' option has been deprecated and is no longer supported.`),new e(t,v).getFullDescription()},e.initialize=function(t,n){n===void 0&&(n=`en`),e.specialCharacters=[`/`,`-`,`,`,`*`],e.defaultLocale=n,t.load(e.locales)},e.prototype.getFullDescription=function(){var e,t=``;try{var n=new i.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);if(this.expressionParts=n.parse(),this.expressionParts[0]===`@reboot`)return(e=this.i18n).atReboot?.call(e)||`Run once, at startup`;var r=this.getTimeOfDayDescription(),a=this.getDayOfMonthDescription(),o=this.getMonthDescription(),s=this.getDayOfWeekDescription(),c=this.getYearDescription();t+=r+a+s+o+c,t=this.transformVerbosity(t,!!this.options.verbose),t=t.charAt(0).toLocaleUpperCase()+t.substr(1)}catch(e){if(!this.options.throwExceptionOnParseError)t=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw`${e}`}return t},e.prototype.getTimeOfDayDescription=function(){var t=this.expressionParts[0],n=this.expressionParts[1],i=this.expressionParts[2],a=``;if(!r.StringUtilities.containsAny(n,e.specialCharacters)&&!r.StringUtilities.containsAny(i,e.specialCharacters)&&!r.StringUtilities.containsAny(t,e.specialCharacters))a+=this.i18n.atSpace()+this.formatTime(i,n,t);else if(!t&&n.indexOf(`-`)>-1&&!(n.indexOf(`,`)>-1)&&!(n.indexOf(`/`)>-1)&&!r.StringUtilities.containsAny(i,e.specialCharacters)){var o=n.split(`-`);a+=r.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(i,o[0],``),this.formatTime(i,o[1],``))}else if(!t&&i.indexOf(`,`)>-1&&i.indexOf(`-`)==-1&&i.indexOf(`/`)==-1&&!r.StringUtilities.containsAny(n,e.specialCharacters)){var s=i.split(`,`);a+=this.i18n.at();for(var c=0;c<s.length;c++)a+=` `,a+=this.formatTime(s[c],n,``),c<s.length-2&&(a+=`,`),c==s.length-2&&(a+=this.i18n.spaceAnd())}else{var l=this.getSecondsDescription(),u=this.getMinutesDescription(),d=this.getHoursDescription();if(a+=l,a&&u&&(a+=`, `),a+=u,u===d)return a;a&&d&&(a+=`, `),a+=d}return a},e.prototype.getSecondsDescription=function(){var e=this;return this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),function(e){return e},function(t){return r.StringUtilities.format(e.i18n.everyX0Seconds(t),t)},function(t){return e.i18n.secondsX0ThroughX1PastTheMinute()},function(t){return t==`0`?``:parseInt(t)<20?e.i18n.atX0SecondsPastTheMinute(t):e.i18n.atX0SecondsPastTheMinuteGt20()||e.i18n.atX0SecondsPastTheMinute(t)})},e.prototype.getMinutesDescription=function(){var e=this,t=this.expressionParts[0],n=this.expressionParts[2];return this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),function(e){return e},function(t){return r.StringUtilities.format(e.i18n.everyX0Minutes(t),t)},function(t){return e.i18n.minutesX0ThroughX1PastTheHour()},function(r){var i;try{return r==`0`&&n.indexOf(`/`)==-1&&t==``?e.i18n.everyHour():r==`0`?(i=e.i18n).onTheHour?.call(i)||e.i18n.atX0MinutesPastTheHour(r):parseInt(r)<20?e.i18n.atX0MinutesPastTheHour(r):e.i18n.atX0MinutesPastTheHourGt20()||e.i18n.atX0MinutesPastTheHour(r)}catch{return e.i18n.atX0MinutesPastTheHour(r)}})},e.prototype.getHoursDescription=function(){var e=this,t=this.expressionParts[2],n=0,i=[];t.split(`/`)[0].split(`,`).forEach(function(e){var t=e.split(`-`);t.length===2&&i.push({value:t[1],index:n+1}),n+=t.length});var a=0;return this.getSegmentDescription(t,this.i18n.everyHour(),function(t){var n=i.find(function(e){return e.value===t&&e.index===a})&&e.expressionParts[1]!==`0`;return a++,n?e.formatTime(t,`59`,``):e.formatTime(t,`0`,``)},function(t){return r.StringUtilities.format(e.i18n.everyX0Hours(t),t)},function(t){return e.i18n.betweenX0AndX1()},function(t){return e.i18n.atX0()})},e.prototype.getDayOfWeekDescription=function(){var e=this,t=this.i18n.daysOfTheWeek(),n=null;return n=this.expressionParts[5]==`*`?``:this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(n,r){var i=n;n.indexOf(`#`)>-1?i=n.substring(0,n.indexOf(`#`)):n.indexOf(`L`)>-1&&(i=i.replace(`L`,``));var a=parseInt(i),o=e.i18n.daysOfTheWeekInCase?e.i18n.daysOfTheWeekInCase(r)[a]:t[a];if(n.indexOf(`#`)>-1){var s=null,c=n.substring(n.indexOf(`#`)+1),l=n.substring(0,n.indexOf(`#`));switch(c){case`1`:s=e.i18n.first(l);break;case`2`:s=e.i18n.second(l);break;case`3`:s=e.i18n.third(l);break;case`4`:s=e.i18n.fourth(l);break;case`5`:s=e.i18n.fifth(l);break}o=s+` `+o}return o},function(t){return parseInt(t)==1?``:r.StringUtilities.format(e.i18n.commaEveryX0DaysOfTheWeek(t),t)},function(t){var n=t.substring(0,t.indexOf(`-`));return e.expressionParts[3]==`*`?e.i18n.commaX0ThroughX1(n):e.i18n.commaAndX0ThroughX1(n)},function(t){var n=null;if(t.indexOf(`#`)>-1){var r=t.substring(t.indexOf(`#`)+1),i=t.substring(0,t.indexOf(`#`));n=e.i18n.commaOnThe(r,i).trim()+e.i18n.spaceX0OfTheMonth()}else n=t.indexOf(`L`)>-1?e.i18n.commaOnTheLastX0OfTheMonth(t.replace(`L`,``)):e.expressionParts[3]==`*`||e.options.logicalAndDayFields?e.i18n.commaOnlyOnX0(t):e.i18n.commaAndOnX0();return n}),n},e.prototype.getMonthDescription=function(){var e=this,t=this.i18n.monthsOfTheYear();return this.getSegmentDescription(this.expressionParts[4],``,function(n,r){return r&&e.i18n.monthsOfTheYearInCase?e.i18n.monthsOfTheYearInCase(r)[parseInt(n)-1]:t[parseInt(n)-1]},function(t){return parseInt(t)==1?``:r.StringUtilities.format(e.i18n.commaEveryX0Months(t),t)},function(t){return e.i18n.commaMonthX0ThroughMonthX1()||e.i18n.commaX0ThroughX1()},function(t){return e.i18n.commaOnlyInMonthX0?e.i18n.commaOnlyInMonthX0():e.i18n.commaOnlyInX0()})},e.prototype.getDayOfMonthDescription=function(){var e=this,t=null,n=this.expressionParts[3];switch(n){case`L`:t=this.i18n.commaOnTheLastDayOfTheMonth();break;case`WL`:case`LW`:t=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var i=n.match(/(\d{1,2}W)|(W\d{1,2})/);if(i){var a=parseInt(i[0].replace(`W`,``)),o=a==1?this.i18n.firstWeekday():r.StringUtilities.format(this.i18n.weekdayNearestDayX0(),a.toString());t=r.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),o);break}else{var s=n.match(/L-(\d{1,2})/);if(s){var c=s[1];t=r.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(c),c);break}else if(n==`*`&&this.expressionParts[5]!=`*`)return``;else t=this.getSegmentDescription(n,this.i18n.commaEveryDay(),function(t){return t==`L`?e.i18n.lastDay():e.i18n.dayX0?r.StringUtilities.format(e.i18n.dayX0(),t):t},function(t){return t==`1`?e.i18n.commaEveryDay():e.i18n.commaEveryX0Days(t)},function(t){return e.i18n.commaBetweenDayX0AndX1OfTheMonth(t)},function(t){return e.i18n.commaOnDayX0OfTheMonth(t)});break}}return t},e.prototype.getYearDescription=function(){var e=this;return this.getSegmentDescription(this.expressionParts[6],``,function(e){return/^\d+$/.test(e)?new Date(parseInt(e),1).getFullYear().toString():e},function(t){return r.StringUtilities.format(e.i18n.commaEveryX0Years(t),t)},function(t){return e.i18n.commaYearX0ThroughYearX1()||e.i18n.commaX0ThroughX1()},function(t){return e.i18n.commaOnlyInYearX0?e.i18n.commaOnlyInYearX0():e.i18n.commaOnlyInX0()})},e.prototype.getSegmentDescription=function(e,t,n,i,a,o){var s=null,c=e.indexOf(`/`)>-1,l=e.indexOf(`-`)>-1,u=e.indexOf(`,`)>-1;if(!e)s=``;else if(e===`*`)s=t;else if(!c&&!l&&!u)s=r.StringUtilities.format(o(e),n(e));else if(u){for(var d=e.split(`,`),f=``,p=0;p<d.length;p++)if(p>0&&d.length>2&&(f+=`,`,p<d.length-1&&(f+=` `)),p>0&&d.length>1&&(p==d.length-1||d.length==2)&&(f+=`${this.i18n.spaceAnd()} `),d[p].indexOf(`/`)>-1||d[p].indexOf(`-`)>-1){var m=d[p].indexOf(`-`)>-1&&d[p].indexOf(`/`)==-1,h=this.getSegmentDescription(d[p],t,n,i,m?this.i18n.commaX0ThroughX1:a,o);m&&(h=h.replace(`, `,``)),f+=h}else if(!c)f+=n(d[p]);else{var g=this.getSegmentDescription(d[p],t,n,i,a,o);g&&g.startsWith(`, `)&&(g=g.substring(2)),f+=g}s=c?f:r.StringUtilities.format(o(e),f)}else if(c){var d=e.split(`/`);if(s=r.StringUtilities.format(i(d[1]),d[1]),d[0].indexOf(`-`)>-1){var _=this.generateRangeSegmentDescription(d[0],a,n);_.indexOf(`, `)!=0&&(s+=`, `),s+=_}else if(d[0].indexOf(`*`)==-1){var v=r.StringUtilities.format(o(d[0]),n(d[0]));v=v.replace(`, `,``),s+=r.StringUtilities.format(this.i18n.commaStartingX0(),v)}}else l&&(s=this.generateRangeSegmentDescription(e,a,n));return s},e.prototype.generateRangeSegmentDescription=function(e,t,n){var i=``,a=e.split(`-`),o=n(a[0],1),s=n(a[1],2),c=t(e);return i+=r.StringUtilities.format(c,o,s),i},e.prototype.formatTime=function(e,t,n){var r=0,i=0,a=parseInt(e)+r,o=parseInt(t)+i;o>=60?(o-=60,a+=1):o<0&&(o+=60,--a),a>=24?a-=24:a<0&&(a=24+a);var s=``,c=!1;this.options.use24HourTimeFormat||(c=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),s=c?`${this.getPeriod(a)} `:` ${this.getPeriod(a)}`,a>12&&(a-=12),a===0&&(a=12));var l=``;n&&(l=`:${(`00`+n).substring(n.length)}`);var u=a.toString(),d=(`00`+u).substring(u.length),f=o.toString(),p=(`00`+f).substring(f.length),m=this.options.trimHoursLeadingZero?u:d;return`${c?s:``}${m}:${p}${l}${c?``:s}`},e.prototype.transformVerbosity=function(e,t){if(!t&&(e=e.replace(RegExp(`, ${this.i18n.everyMinute()}`,`g`),``),e=e.replace(RegExp(`, ${this.i18n.everyHour()}`,`g`),``),e=e.replace(new RegExp(this.i18n.commaEveryDay(),`g`),``),e=e.replace(/\, ?$/,``),this.i18n.conciseVerbosityReplacements))for(var n=0,r=Object.entries(this.i18n.conciseVerbosityReplacements());n<r.length;n++){var i=r[n],a=i[0],o=i[1];e=e.replace(new RegExp(a,`g`),o)}return e},e.prototype.getPeriod=function(e){return e>=12?this.i18n.pm&&this.i18n.pm()||`PM`:this.i18n.am&&this.i18n.am()||`AM`},e.locales={},e}()},747(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.enLocaleLoader=void 0;var r=n(486);t.enLocaleLoader=function(){function e(){}return e.prototype.load=function(e){e.en=new r.en},e}()},486(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.en=void 0,t.en=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!1},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return`An error occurred when generating the expression description. Check the cron expression syntax.`},e.prototype.everyMinute=function(){return`every minute`},e.prototype.everyHour=function(){return`every hour`},e.prototype.atSpace=function(){return`At `},e.prototype.everyMinuteBetweenX0AndX1=function(){return`Every minute between %s and %s`},e.prototype.at=function(){return`At`},e.prototype.spaceAnd=function(){return` and`},e.prototype.everySecond=function(){return`every second`},e.prototype.everyX0Seconds=function(){return`every %s seconds`},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return`seconds %s through %s past the minute`},e.prototype.atX0SecondsPastTheMinute=function(){return`at %s seconds past the minute`},e.prototype.everyX0Minutes=function(){return`every %s minutes`},e.prototype.minutesX0ThroughX1PastTheHour=function(){return`minutes %s through %s past the hour`},e.prototype.atX0MinutesPastTheHour=function(){return`at %s minutes past the hour`},e.prototype.everyX0Hours=function(){return`every %s hours`},e.prototype.betweenX0AndX1=function(){return`between %s and %s`},e.prototype.atX0=function(){return`at %s`},e.prototype.commaEveryDay=function(){return`, every day`},e.prototype.commaEveryX0DaysOfTheWeek=function(){return`, every %s days of the week`},e.prototype.commaX0ThroughX1=function(){return`, %s through %s`},e.prototype.commaAndX0ThroughX1=function(){return`, %s through %s`},e.prototype.first=function(){return`first`},e.prototype.second=function(){return`second`},e.prototype.third=function(){return`third`},e.prototype.fourth=function(){return`fourth`},e.prototype.fifth=function(){return`fifth`},e.prototype.commaOnThe=function(){return`, on the `},e.prototype.spaceX0OfTheMonth=function(){return` %s of the month`},e.prototype.lastDay=function(){return`the last day`},e.prototype.commaOnTheLastX0OfTheMonth=function(){return`, on the last %s of the month`},e.prototype.commaOnlyOnX0=function(){return`, only on %s`},e.prototype.commaAndOnX0=function(){return`, and on %s`},e.prototype.commaEveryX0Months=function(){return`, every %s months`},e.prototype.commaOnlyInX0=function(){return`, only in %s`},e.prototype.commaOnTheLastDayOfTheMonth=function(){return`, on the last day of the month`},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return`, on the last weekday of the month`},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return`, %s days before the last day of the month`},e.prototype.firstWeekday=function(){return`first weekday`},e.prototype.weekdayNearestDayX0=function(){return`weekday nearest day %s`},e.prototype.commaOnTheX0OfTheMonth=function(){return`, on the %s of the month`},e.prototype.commaEveryX0Days=function(){return`, every %s days in a month`},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return`, between day %s and %s of the month`},e.prototype.commaOnDayX0OfTheMonth=function(){return`, on day %s of the month`},e.prototype.commaEveryHour=function(){return`, every hour`},e.prototype.commaEveryX0Years=function(){return`, every %s years`},e.prototype.commaStartingX0=function(){return`, starting %s`},e.prototype.daysOfTheWeek=function(){return[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},e.prototype.monthsOfTheYear=function(){return[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},e.prototype.atReboot=function(){return`Run once, at startup`},e.prototype.onTheHour=function(){return`on the hour`},e}()},515(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(e,t){if(!e)throw Error(t)}t.default=function(){function e(){}return e.secondRange=function(e){for(var t=e.split(`,`),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=0&&i<=59,`seconds part must be >= 0 and <= 59`)}},e.minuteRange=function(e){for(var t=e.split(`,`),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=0&&i<=59,`minutes part must be >= 0 and <= 59`)}},e.hourRange=function(e){for(var t=e.split(`,`),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=0&&i<=23,`hours part must be >= 0 and <= 23`)}},e.dayOfMonthRange=function(e){for(var t=e.split(`,`),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=1&&i<=31,`DOM part must be >= 1 and <= 31`)}},e.monthRange=function(e,t){for(var r=e.split(`,`),i=0;i<r.length;i++)if(!isNaN(parseInt(r[i],10))){var a=parseInt(r[i],10);n(a>=1&&a<=12,t?`month part must be >= 0 and <= 11`:`month part must be >= 1 and <= 12`)}},e.dayOfWeekRange=function(e,t){for(var r=e.split(`,`),i=0;i<r.length;i++)if(!isNaN(parseInt(r[i],10))){var a=parseInt(r[i],10);n(a>=0&&a<=6,t?`DOW part must be >= 0 and <= 6`:`DOW part must be >= 1 and <= 7`)}},e}()},823(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.StringUtilities=void 0,t.StringUtilities=function(){function e(){}return e.format=function(e){var t=[...arguments].slice(1);return e.replace(/%s/g,function(e){return t.shift()})},e.containsAny=function(e,t){return t.some(function(t){return e.indexOf(t)>-1})},e}()}},t={};function n(r){var i=t[r];if(i!==void 0)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}var r={};return(()=>{var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.toString=void 0;var t=n(333),i=n(747);t.ExpressionDescriptor.initialize(new i.enLocaleLoader),e.default=t.ExpressionDescriptor,e.toString=t.ExpressionDescriptor.toString})(),r})())}))(),1),pe=[`title`],H={"flex-none":``,"text-left":``},U={flex:`~ gap-2`,"min-w-0":``,"items-center":``,"text-sm":``},W={class:`truncate`},G={"text-xs":``,op50:``},K={key:0},q=[`onClick`],me=Object.assign(c({__name:`CronCollection`,props:{collection:{}},setup(e){let t=e,n=R(),a=s(!0),o=C(()=>V.default.toString(t.collection.cron));return(t,s)=>{let c=L,u=de;return l(),p(`div`,null,[S(`button`,{flex:`~ gap-2`,"w-full":``,"items-start":``,"items-center":``,p2:``,"hover-bg-active":``,title:o.value,onClick:s[0]||=e=>a.value=!a.value},[S(`div`,H,[r(c,{icon:`carbon:chevron-right`,"mb0.5":``,"transform-rotate":a.value?90:0,transition:``},null,8,[`transform-rotate`])]),S(`span`,U,[r(u,{class:`font-mono n-primary`,textContent:v(e.collection.cron)},null,8,[`textContent`]),S(`span`,W,v(o.value),1),S(`span`,G,`(`+v(e.collection.tasks.length)+`)`,1)])],8,pe),s[2]||=S(`div`,{"x-divider":``},null,-1),a.value?(l(),p(`ul`,K,[(l(!0),p(w,null,i(e.collection.tasks,e=>(l(),p(`li`,{key:e},[S(`button`,{flex:`~ gap-2`,"w-full":``,"items-start":``,"items-center":``,px2:``,py1:``,"pl-9":``,"font-mono":``,"hover-bg-active":``,class:f([{"bg-active":x(n)===e}]),onClick:t=>n.value=e},v(e),11,q),s[1]||=S(`div`,{"x-divider":``},null,-1)]))),128))])):y(``,!0)])}}}),{__name:`CronCollection`}),he={"h-full":``,"w-full":``,flex:`~ col`},ge={flex:`~ col gap-2`,"n-navbar-glass":``,"flex-none":``,p4:``},_e={flex:`~ gap2 items-center`},ve={relative:``,"w-full":``},ye={absolute:``,"right-2":``,"top-1.5":``,flex:`~ gap-1`},be={flex:`~ gap2 wrap`,"w-full":``,"items-center":``,px4:``,pb2:``,"text-center":``,"text-sm":``,border:`b base`},xe={class:`hidden md:block`},Se={flex:`~ gap2`,"mb--2":``,"items-center":``,op50:``},Ce={key:0,border:`b base`,relative:``,"n-code-block":``},we={flex:`~ wrap`,"w-full":``},Te=[`onClick`],Ee={border:`b base`,flex:`~ gap2`,"items-center":``,px4:``,py2:``},De={key:1,"text-xs":``,op50:``},J=Object.assign(c({__name:`ServerTaskDetails`,props:{task:{}},emits:[`openDefaultInput`],setup(e,{emit:t}){let n=e,c=t,u=s({payload:{}}),{inputDefaults:h}=P(`serverRoutes`),[D,I]=M(),ae=O(),R=A(),z=m({contentType:`text/plain`,data:``,statusCode:200,error:void 0,fetchTime:0}),ce=C(()=>JSON.stringify(z.data,null,2)),le=C(()=>z.contentType.includes(`application/json`)?`json`:`text`),B=s(!1),V=s(!1),pe=te(),H=s(),U=[`json`],W=s(U[0]),G=m({query:[{active:!0,key:``,value:``,type:`string`}],body:[{active:!0,key:``,value:``,type:`string`}],headers:[]}),K=C({get:()=>G[H.value],set:e=>{G[H.value]=e}}),q=C(()=>({...Q(h.value.query),...Q(G.query)})),me=C(()=>({...Q(h.value.headers)})),J=C(()=>Object.keys(u.value?.payload??{}).length?{...u.value}:void 0),Y=C(()=>J.value?`POST`:`GET`),Oe=C(()=>{let e=window?.location.origin;return e.charAt(e.length-1)===`/`&&(e=e.slice(0,-1)),e}),X=C(()=>{let e=new URLSearchParams(q.value).toString();e&&=`?${e}`;let t=`/_nitro/tasks/${n.task.name}${e}`,r=R.value?.app.baseURL||``;return(r===`./`||r===`.`)&&(r=``),r.endsWith(`/`)&&(r=r.slice(0,-1)),r+t}),Z=C(()=>Oe.value+X.value);function Q(e=[]){let t=Object.fromEntries(e.filter(({active:e,key:t,value:n})=>e&&t&&n!==void 0).map(({key:e,value:t})=>[e,t]));return Object.entries(t).length?t:void 0}async function $(){V.value=!0,B.value=!0;let e=Date.now();ee(`server-tasks:run`,{method:Y.value});try{z.data=await $fetch(Z.value,{method:`POST`,headers:me.value,query:q.value,body:J.value,onResponse({response:e}){z.contentType=(e.headers.get(`content-type`)||``).toString().toLowerCase().trim(),z.statusCode=e.status,z.error=void 0},onResponseError(e){z.error=e.response._data,z.data=e.response._data}})}catch{}B.value=!1,z.fetchTime=Date.now()-e}let ke=C(()=>{let e=[];return e.push({name:`Query`,slug:`query`,length:G.query.length}),e.push({name:`Body`,slug:`body`,length:G.body.length}),e});g(()=>{if(W.value===`json`&&typeof u.value==`string`)try{u.value=JSON.parse(u.value)}catch{}});let Ae=j(`nuxt-devtools:server-tasks:inputs`,()=>[],{window:window.parent});N([G,H],()=>{let e=Ae.value?.find(e=>e.task===n.task.name);if(e){H.value||=e.tab,e.tab!==H.value&&(e.tab=H.value);let{body:t,query:n,headers:r}=e.inputs;Object.assign(G,{body:t,query:n,headers:r})}else{let e={task:n.task.name,tab:`query`,inputs:G};Ae.value.push(e),H.value||=e.tab}},{immediate:!0,deep:!0,debounce:500});let je=re();return(t,n)=>{let s=ie,m=ne,g=L,C=fe,O=oe,A=F,j=de,M=se,N=d(`tooltip`);return l(),p(`div`,he,[S(`div`,ge,[S(`div`,_e,[_((l(),p(`div`,null,[r(s,{class:f([`n-badge-base n-sm`,x(k)(Y.value)]),"pointer-events-none":``,"font-mono":``,tabindex:`-1`},{default:E(()=>[o(v(Y.value),1)]),_:1},8,[`class`])])),[[N,`Method is ${Y.value} as ${Y.value===`GET`?`no`:``} json body is sent`]]),S(`div`,ve,[r(m,{"model-value":X.value,readonly:``,"flex-auto":``,"font-mono":``,p:`x5 y2`,n:`sm`},null,8,[`model-value`]),S(`div`,ye,[_(r(s,{title:`Copy URL`,n:`xs blue`,icon:`carbon:copy`,border:!1,onClick:n[0]||=e=>x(je)(Z.value,`server-task-url`)},null,512),[[N,`Copy URL`]]),_(r(s,{title:`Open in Editor`,icon:`carbon-launch`,n:`xs blue`,border:!1,onClick:n[1]||=t=>x(pe)(e.task.handler)},null,512),[[N,`Open in Editor`]])])]),r(s,{"h-full":``,n:`primary solid`,onClick:$},{default:E(()=>[r(g,{icon:`carbon:send`})]),_:1})])]),S(`div`,be,[(l(!0),p(w,null,i(ke.value,e=>_((l(),b(s,{key:e.slug,class:f(H.value===e.slug?`text-primary n-primary`:`border-transparent shadow-none`),onClick:t=>H.value=e.slug},{default:E(()=>[r(g,{icon:x(ue)[e.slug]},null,8,[`icon`]),S(`div`,xe,[o(v(e.name)+` `+v(e?.length?`(${e.length})`:``)+` `,1),S(`span`,null,v(x(h)[e.slug]?.length?`(${x(h)[e.slug].length})`:``),1)])]),_:2},1032,[`class`,`onClick`])),[[N,e.name]])),128))]),r(x(D),null,{default:E(()=>[r(C,{modelValue:K.value,"onUpdate:modelValue":n[4]||=e=>K.value=e,default:{active:!0,type:`string`},"max-h-xs":``,"of-auto":``},{default:E(()=>[x(h)[H.value]?.length?(l(),p(w,{key:0},[S(`div`,Se,[n[6]||=S(`div`,{"w-5":``,"x-divider":``},null,-1),n[7]||=S(`div`,{"flex-none":``},` Default Inputs `,-1),r(s,{icon:`i-carbon-edit`,border:!1,onClick:n[2]||=e=>c(`openDefaultInput`)}),n[8]||=S(`div`,{"x-divider":``},null,-1)]),r(C,{modelValue:x(h)[H.value],"onUpdate:modelValue":n[3]||=e=>x(h)[H.value]=e,disabled:``,p0:``},null,8,[`modelValue`])],64)):y(``,!0)]),_:1},8,[`modelValue`])]),_:1}),K.value?(l(),p(`div`,Ce,[H.value===`body`?(l(),p(w,{key:0},[S(`div`,we,[(l(),p(w,null,i(U,e=>S(`button`,{key:e,px4:``,py2:``,border:`r base`,hover:`bg-active`,class:f({"border-b":e!==W.value}),onClick:t=>W.value=e},[S(`div`,{class:f({op30:e!==W.value}),"font-mono":``},v(e),3)],10,Te)),64)),n[9]||=S(`div`,{border:`b base`,"flex-auto":``},null,-1)]),W.value===`input`?(l(),b(x(I),{key:0})):W.value===`json`?(l(),b(x(T),a({key:1,modelValue:u.value,"onUpdate:modelValue":n[5]||=e=>u.value=e,class:[x(ae)===`dark`?`jse-theme-dark`:`light`,`json-editor-vue of-auto text-sm outline-none`]},t.$attrs,{mode:`text`,"navigation-bar":!1,indentation:2,"tab-size":2}),null,16,[`modelValue`,`class`])):y(``,!0)],64)):(l(),b(x(I),{key:1}))])):y(``,!0),V.value?B.value?(l(),b(A,{key:2,"z-10":``,"flex-auto":``,"backdrop-blur":``},{default:E(()=>[...n[11]||=[o(` Running... `,-1)]]),_:1})):(l(),p(w,{key:3},[S(`div`,Ee,[n[13]||=S(`div`,null,`Result`,-1),z.error?(l(),b(j,{key:0,n:`red`},{default:E(()=>[...n[12]||=[o(` Error `,-1)]]),_:1})):y(``,!0),r(j,{n:z.error?`orange`:`green`,textContent:v(z.statusCode)},null,8,[`n`,`textContent`]),z.contentType?(l(),p(`code`,De,v(z.contentType),1)):y(``,!0),n[14]||=S(`div`,{"flex-auto":``},null,-1),n[15]||=S(`div`,{op50:``},` Tasks finished in `,-1),r(j,{n:`green`},{default:E(()=>[o(v(z.fetchTime)+` ms `,1)]),_:1})]),r(M,{"flex-auto":``,"overflow-auto":``,"py-2":``,code:ce.value,lang:le.value},null,8,[`code`,`lang`])],64)):(l(),b(O,{key:1},{default:E(()=>[r(s,{n:`primary`,onClick:$},{default:E(()=>[r(g,{icon:`carbon:send`}),n[10]||=o(` Run task `,-1)]),_:1})]),_:1}))])}}}),{__name:`ServerTaskDetails`}),Y={"flex-none":``,"text-left":``},Oe={flex:``,"items-center":``,"text-sm":``,"font-mono":``},X=Object.assign(c({__name:`ServerTaskListItem`,props:{item:{},index:{default:0}},setup(e){let t=s(!0),r=R();return(a,s)=>{let c=L,d=X;return l(),p(`div`,null,[S(`button`,{flex:`~ gap-2`,"w-full":``,"items-start":``,"items-center":``,px2:``,py1:``,"hover-bg-active":``,class:f([{"bg-active":x(r)===e.item.name}]),style:n({paddingLeft:`calc(0.5rem + ${e.index*1.5}em)`}),onClick:s[0]||=n=>{t.value=!t.value,r.value=e.item.name}},[S(`div`,Y,[e.item.type===`collection`?(l(),b(c,{key:0,icon:`carbon:chevron-right`,"mb0.5":``,"transform-rotate":t.value?90:0,transition:``},null,8,[`transform-rotate`])):y(``,!0)]),S(`span`,Oe,[e.item.type===`collection`?(l(),b(c,{key:0,title:`${e.item.tasks?.length} tasks`,icon:`carbon:folder`,mr1:``},null,8,[`title`])):(l(),b(c,{key:1,icon:`carbon:play`,ml3:``,mr1:``})),o(` `+v(e.item.name),1)])],6),s[1]||=S(`div`,{"x-divider":``},null,-1),t.value?u(a.$slots,`default`,{key:0},()=>[(l(!0),p(w,null,i(e.item.tasks,t=>(l(),b(d,{key:t.name,item:t,index:e.index+1},null,8,[`item`,`index`]))),128))]):y(``,!0)])}}}),{__name:`ServerTaskListItem`}),Z={flex:`~ gap1`,"text-sm":``},Q={key:0,op50:``},$={op50:``},ke=c({__name:`server-tasks`,setup(e){let t=s(!1),n=D(),a=C(()=>Object.keys(n.value?.tasks??{}).map(e=>({name:e,...n.value.tasks[e],type:`task`}))),o=C(()=>Object.entries(n.value?.scheduledTasks??{}).map(([e,t])=>({cron:e,tasks:t}))),c=R(),{view:u,selectedTask:f,inputDefaults:m}=P(`serverTasks`),g=C(()=>{!c.value&&f.value&&(c.value=f.value.name);let e=a.value.find(e=>e.name===c.value);return c.value!==f.value?.name&&e&&(f.value=e),e}),T=s(``),O=C(()=>new ae(a.value,{keys:[`key`,`description`],shouldSort:!0})),k=C(()=>T.value?O.value.search(T.value).map(e=>e.item):a.value),A=C(()=>{let e=[],t=(e,t)=>{e.tasks||=[],e.tasks.push(t)},n=(n,r)=>{let i=r?r.tasks?.find(e=>e.name===n):e.find(e=>e.name===n);if(i)return{...i,type:`collection`};let a={name:n,handler:n,description:``,type:`collection`,tasks:[]};return r?t(r,a):e.push(a),a};return k.value.forEach(r=>{let i,a={...r,type:`task`},o=r.name.split(`:`).concat();o.length>0&&o.at(-1)?.includes(`.`)&&o.pop(),o.forEach(e=>{i=n(e,i)}),i?t(i,a):e.push(a)}),e});function j(){u.value=u.value===`tree`?`list`:`tree`}return(e,n)=>{let s=ie,c=le,f=me,C=I,D=J,O=z,M=oe,N=fe,P=B,ee=ce,F=d(`tooltip`);return l(),p(w,null,[r(C,{"storage-key":`tab-server-tasks`},{left:E(()=>[r(C,{horizontal:``,"storage-key":`tab-server-tasks-split`},{left:E(()=>[r(c,{search:T.value,"onUpdate:search":n[1]||=e=>T.value=e,pb2:``},{actions:E(()=>[_(r(s,{"text-lg":``,icon:x(u)===`list`?`i-carbon-list`:`i-carbon-tree-view-alt`,title:`Toggle view`,border:!1,onClick:j},null,8,[`icon`]),[[F,`Toggle View`]]),_(r(s,{"text-lg":``,icon:`i-carbon-cics-sit-overrides`,title:`Default Inputs`,border:!1,onClick:n[0]||=e=>t.value=!t.value},null,512),[[F,`Default Inputs`]])]),default:E(()=>[S(`div`,Z,[T.value?(l(),p(`span`,Q,v(k.value.length)+` matched · `,1)):y(``,!0),S(`span`,$,v(a.value?.length)+` tasks in total`,1)])]),_:1},8,[`search`]),(l(!0),p(w,null,i(x(u)===`tree`?A.value:k.value,e=>(l(),b(X,{key:e.name,item:e},null,8,[`item`]))),128))]),right:E(()=>[n[6]||=S(`div`,{px4:``,py2:``,border:`b base`},` Cron groups `,-1),S(`div`,null,[S(`ul`,null,[(l(!0),p(w,null,i(o.value,e=>(l(),p(`li`,{key:e.cron},[r(f,{collection:e},null,8,[`collection`])]))),128))])])]),_:1})]),right:E(()=>[(l(),b(h,{max:10},[g.value?(l(),b(D,{key:g.value.name,task:g.value,onOpenDefaultInput:n[2]||=e=>t.value=!0},null,8,[`task`])):y(``,!0)],1024)),g.value?y(``,!0):(l(),b(M,{key:0},{default:E(()=>[r(O,{px6:``,py2:``},{default:E(()=>[...n[7]||=[S(`span`,{op75:``},`Select a task to start`,-1)]]),_:1})]),_:1}))]),_:1}),r(ee,{modelValue:t.value,"onUpdate:modelValue":n[4]||=e=>t.value=e,"auto-close":``,"max-w-xl":``,"min-w-xl":``,onClose:n[5]||=e=>t.value=!1},{default:E(()=>[S(`div`,null,[n[8]||=S(`div`,{p4:``,border:`b base`},[S(`span`,{"text-lg":``},`Default Inputs`),S(`br`),S(`span`,{"text-white":``,op50:``},`Merged as default for every task in DevTools`)],-1),r(P,{text:`Query ${x(m).query?.length?`(${x(m).query.length})`:``}`,padding:!1,icon:x(ue).query},{default:E(()=>[r(N,{modelValue:x(m).query,"onUpdate:modelValue":n[3]||=e=>x(m).query=e,py0:``,default:{active:!0,type:`string`}},null,8,[`modelValue`])]),_:1},8,[`text`,`icon`])])]),_:1},8,[`modelValue`])],64)}}});export{ke as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as e,J as t,S as n,T as r,U as i,Zt as a,_ as o,_t as s,ct as c,en as l,g as u,h as d,jt as f,m as p,s as m,ut as h}from"./vendor/json-editor-vue-mkw4apmc.js";import{z as g}from"./utils-hgmynvjd.js";import{a as _}from"./rpc-ewzip6fb.js";import{t as v}from"./storage-options-ho965h55.js";import{D as y,O as b,S as x,b as S,k as ee,w as C,y as w}from"#entry";import{t as T}from"./nselect-kdzalcm2.js";import{t as E}from"./nswitch-pdw73751.js";import"./composables-ioamscf4.js";import{t as D}from"./nlink-endeyoly.js";import{t as O}from"./ncheckbox-gl62y715.js";import{t as k}from"./nicon-title-f3ho3hah.js";var A={px8:``,py6:``},j={grid:`~ lg:cols-2 gap-x-10 gap-y-3`,"max-w-300":``},M={flex:`~ col gap-2`},N={flex:`~ gap-2`,"flex-auto":``,"items-center":``,"justify-start":``},te={capitalize:``,op75:``},ne={"flex-auto":``,"overflow-hidden":``,"text-ellipsis":``,"ws-nowrap":``},P={flex:`~ col gap-2`},F=[`value`],I=[`value`],L={flex:`~ gap-2`},R={flex:`~ gap-2`},z=r({__name:`settings`,setup(r){let{interactionCloseOnOutsideClick:z,showHelpButtons:B,scale:V,hiddenTabs:H,pinnedTabs:U,hiddenTabCategories:W,sidebarExpanded:G,sidebarScrollable:K}=v(`ui`),{openInEditor:q}=v(`behavior`),J=g(),Y=[[`Auto`,void 0],[`VS Code`,`vscode`],[`VS Code Insider`,`vscode-insider`],[`Cursor`,`cursor`],[`Zed`,`zed`],[`Zed (zeditor)`,`zeditor`],[`WebStorm`,`webstorm`],[`Sublime Text`,`sublime`],[`Atom`,`atom`],[`Windsurf`,`windsurf`]],X=[[`Tiny`,12/15],[`Small`,14/15],[`Normal`,1],[`Large`,16/15],[`Huge`,18/15]],re=S(x());function ie(e,t){t?H.value=H.value.filter(t=>t!==e):H.value.push(e)}function ae(e,t){t?W.value=W.value.filter(t=>t!==e):W.value.push(e)}function oe(e){U.value.includes(e)?U.value=U.value.filter(t=>t!==e):U.value.push(e)}function Z(e,t){let n=U.value.indexOf(e);if(n===-1)return;let r=n+t;if(r<0||r>=U.value.length)return;let i=[...U.value];i.splice(n,1),i.splice(r,0,e),U.value=i}async function se(){confirm(`Are you sure you to reset all local settings & state? The app will reload.`)&&(Object.keys(localStorage).forEach(e=>{e.startsWith(`nuxt-devtools-`)&&localStorage.removeItem(e)}),await _.clearOptions(),J.value?.app?.reload?.(),window.location.reload())}return c(()=>{J.value&&(J.value.app.frameState.value.closeOnOutsideClick=z.value)}),(r,c)=>{let g=k,_=E,v=y,x=ee,S=w,J=b,Q=T,$=O,ce=D;return i(),o(`div`,A,[e(g,{class:`mb-5 text-xl op75`,icon:`i-carbon-settings-adjust`,text:`DevTools Settings`}),p(`div`,j,[p(`div`,M,[c[8]||=p(`h3`,{"text-lg":``},` Tabs `,-1),(i(!0),o(m,null,t(f(re),([n,r])=>(i(),o(m,{key:n},[r.length?(i(),d(S,{key:0,p3:``,flex:`~ col gap-1`,class:a(f(W).includes(n)?`op50 grayscale`:``)},{default:h(()=>[e(_,{flex:`~ row-reverse`,py1:``,pl2:``,pr1:``,"n-lime":``,"model-value":!f(W).includes(n),"onUpdate:modelValue":e=>ae(n,e)},{default:h(()=>[p(`div`,N,[p(`span`,te,l(n),1)])]),_:2},1032,[`model-value`,`onUpdate:modelValue`]),c[7]||=p(`div`,{"mx--1":``,my1:``,"h-1px":``,border:`b base`,op75:``},null,-1),(i(!0),o(m,null,t(r,t=>(i(),d(_,{key:t.name,flex:`~ row-reverse`,py1:``,pl2:``,pr1:``,"n-primary":``,"model-value":!f(H).includes(t.name),"onUpdate:modelValue":e=>ie(t.name,e)},{default:h(()=>[p(`div`,{flex:`~ gap-2`,"flex-auto":``,"items-center":``,"justify-start":``,"of-hidden":``,"pr-4":``,class:a(f(H).includes(t.name)?`op25`:``)},[e(v,{"text-xl":``,icon:t.icon,title:t.title},null,8,[`icon`,`title`]),p(`span`,ne,l(t.title),1),f(U).includes(t.name)?(i(),o(m,{key:0},[e(x,{icon:`i-carbon-caret-up`,disabled:f(U).indexOf(t.name)===0,border:!1,onClick:e=>Z(t.name,-1)},null,8,[`disabled`,`onClick`]),e(x,{icon:`i-carbon-caret-down`,disabled:f(U).indexOf(t.name)===f(U).length-1,border:!1,onClick:e=>Z(t.name,1)},null,8,[`disabled`,`onClick`])],64)):u(``,!0),e(x,{icon:f(U).includes(t.name)?` i-carbon-pin-filled rotate--45`:` i-carbon-pin op50`,border:!1,onClick:e=>oe(t.name)},null,8,[`icon`,`onClick`])],2)]),_:2},1032,[`model-value`,`onUpdate:modelValue`]))),128))]),_:2},1032,[`class`])):u(``,!0)],64))),128))]),p(`div`,P,[c[24]||=p(`h3`,{"text-lg":``},` Appearance `,-1),e(S,{p4:``,flex:`~ col gap-2`},{default:h(()=>[p(`div`,null,[e(J,null,{default:h(({toggle:t,isDark:r})=>[e(x,{n:`primary`,onClick:t},{default:h(()=>[c[9]||=p(`div`,{"i-carbon-sun":``,"dark:i-carbon-moon":``,"translate-y--1px":``},null,-1),n(` `+l(r.value?`Dark`:`Light`),1)]),_:2},1032,[`onClick`])]),_:1})]),c[12]||=p(`div`,{"mx--2":``,my1:``,"h-1px":``,border:`b base`,op75:``},null,-1),c[13]||=p(`p`,null,`UI Scale`,-1),e(Q,{modelValue:f(V),"onUpdate:modelValue":c[0]||=e=>s(V)?V.value=e:null,n:`primary`},{default:h(()=>[(i(),o(m,null,t(X,e=>p(`option`,{key:e[0],value:e[1]},l(e[0]),9,F)),64))]),_:1},8,[`modelValue`]),c[14]||=p(`div`,{"mx--2":``,my1:``,"h-1px":``,border:`b base`,op75:``},null,-1),e($,{modelValue:f(G),"onUpdate:modelValue":c[1]||=e=>s(G)?G.value=e:null,"n-primary":``},{default:h(()=>[...c[10]||=[p(`span`,null,` Expand Sidebar `,-1)]]),_:1},8,[`modelValue`]),e($,{modelValue:f(K),"onUpdate:modelValue":c[2]||=e=>s(K)?K.value=e:null,disabled:f(G),"n-primary":``},{default:h(()=>[...c[11]||=[p(`span`,null,` Scrollable Sidebar `,-1)]]),_:1},8,[`modelValue`,`disabled`])]),_:1}),c[25]||=p(`h3`,{mt2:``,"text-lg":``},` Features `,-1),e(S,{p4:``,flex:`~ col gap-2`},{default:h(()=>[e($,{modelValue:f(z),"onUpdate:modelValue":c[3]||=e=>s(z)?z.value=e:null,"n-primary":``},{default:h(()=>[...c[15]||=[p(`span`,null,`Close DevTools when clicking outside`,-1)]]),_:1},8,[`modelValue`]),e($,{modelValue:f(B),"onUpdate:modelValue":c[4]||=e=>s(B)?B.value=e:null,"n-primary":``},{default:h(()=>[...c[16]||=[p(`span`,null,`Show help buttons`,-1)]]),_:1},8,[`modelValue`]),c[17]||=p(`div`,{"mx--2":``,my1:``,"h-1px":``,border:`b base`,op75:``},null,-1),c[18]||=p(`p`,null,`Open In Editor`,-1),e(Q,{modelValue:f(q),"onUpdate:modelValue":c[5]||=e=>s(q)?q.value=e:null,"n-primary":``},{default:h(()=>[(i(),o(m,null,t(Y,e=>p(`option`,{key:e[0],value:e[1]},l(e[0]),9,I)),64))]),_:1},8,[`modelValue`])]),_:1}),c[26]||=p(`h3`,{mt2:``,"text-lg":``},` Feedback `,-1),e(S,{p4:``,flex:`~ col gap-2`},{default:h(()=>[e($,{modelValue:f(C),"onUpdate:modelValue":c[6]||=e=>s(C)?C.value=e:null,"n-primary":``},{default:h(()=>[c[19]||=p(`span`,null,`Send anonymous statistics, help us improving DevTools`,-1),e(ce,{href:`https://github.com/nuxt/devtools#anonymous-usage-analytics`,target:`_blank`,ml1:``,op50:``,textContent:`Learn more`})]),_:1},8,[`modelValue`]),c[22]||=p(`div`,{"mx--2":``,my1:``,"h-1px":``,border:`b base`,op75:``},null,-1),p(`div`,L,[e(x,{n:`blue`,to:`https://github.com/nuxt/devtools/discussions/29`,target:`_blank`},{default:h(()=>[...c[20]||=[p(`div`,{"i-carbon-data-enrichment":``},null,-1),n(` Ideas & Suggestions `,-1)]]),_:1}),e(x,{n:`orange`,to:`https://github.com/nuxt/devtools/issues`,target:`_blank`},{default:h(()=>[...c[21]||=[p(`div`,{"i-carbon-debug":``},null,-1),n(` Bug Reports `,-1)]]),_:1})])]),_:1}),c[27]||=p(`h3`,{mt2:``,"text-lg":``},` Debug `,-1),p(`div`,R,[e(x,{n:`orange`,onClick:se},{default:h(()=>[...c[23]||=[p(`div`,{"i-carbon-breaking-change":``},null,-1),n(` Reset Local Settings & State `,-1)]]),_:1})])])])])}}});export{z as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{J as e,T as t,U as n,_ as r,en as i,g as a,h as o,m as s,s as c}from"./vendor/json-editor-vue-mkw4apmc.js";import{w as l}from"./utils-hgmynvjd.js";import{t as u}from"./filepath-item-calgslzq.js";var d={mt2:``,grid:`~ cols-[max-content_1fr] gap-x-4`,"font-mono":``},f={"text-right":``},p={"ws-nowrap":``},m=Object.assign(t({__name:`StacktraceList`,props:{stacktrace:{}},setup(t){let m=/\.m?js$/,h=l();function g(e){try{let t=new URL(e).pathname;return t.startsWith(`/_nuxt/`)&&(t=t.slice(6)),t.startsWith(`/@id/virtual:nuxt:`)?`#build/${t.split(`/.nuxt/`)[1]}`.replace(m,``):t.includes(`/@fs/`)?`/${t.split(`/@fs/`)[1]}`:(h.value?.rootDir||``)+t}catch{return e}}return(l,m)=>{let h=u;return n(),r(`div`,d,[(n(!0),r(c,null,e(t.stacktrace,(e,t)=>(n(),r(c,{key:t},[s(`div`,f,i(e.functionName||`(anonymous)`),1),s(`div`,p,[e.fileName?(n(),o(h,{key:0,filepath:`${g(e.fileName)}:${e.lineNumber}:${e.columnNumber}`,subpath:``},null,8,[`filepath`])):a(``,!0)])],64))),128))])}}}),{__name:`StacktraceList`});export{m as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as e,S as t,St as n,T as r,U as i,Y as a,_ as o,en as s,g as c,h as l,jt as u,m as d,p as f,s as p,ut as m}from"./vendor/json-editor-vue-mkw4apmc.js";import{_ as h}from"./ready-b5u27bv4.js";import{W as g,c as _,i as v,m as y,u as b,w as x}from"./utils-hgmynvjd.js";import{p as S}from"./rpc-ewzip6fb.js";import{C,K as w,c as T,d as E,h as D,k as O}from"#entry";import{t as k}from"./ncode-block-ksrq5ppu.js";import{t as A}from"./ncheckbox-gl62y715.js";import{t as j}from"./ntip-m8x8y44j.js";import{t as M}from"./nbadge-ft1i3ddy.js";var N={key:0},P={p4:``,flex:`~ col gap-1`},F={class:`text-lg font-medium leading-6`},I={flex:`~ gap-3`,mt2:``,"justify-end":``},L=Object.assign(r({__name:`NpmVersionCheck`,props:{packageName:{},options:{},showVersion:{type:Boolean,default:!0}},setup(r){let f=r,g=h(),{info:_,update:v,state:y,processId:b,restart:x}=w(f.packageName,f.options),L=n(!0),R=n(!0),z=E(),B=S(),V=T();async function H(){let e=await v(async e=>B.start(e));C(`npm:update`,{packageName:f.packageName,oldVersion:_.value?.current}),e&&R.value&&z.value.push({id:e,message:`${f.packageName} has been updated. Do you want to restart the Nuxt server now?`}),e&&L.value&&(V.value=e,g.push(`/modules/terminals`))}return(n,h)=>{let g=M,v=k,S=A,C=j,w=O,T=D;return i(),o(p,null,[a(n.$slots,`default`,{id:u(b),info:u(_),update:H,state:u(y),restart:u(x)},()=>[u(_)&&r.showVersion?(i(),o(`code`,N,s(`v${u(_).current}`),1)):c(``,!0),u(_)?.latest?(i(),o(p,{key:1},[u(_).needsUpdate?(i(),o(`button`,{key:0,onClick:h[0]||=e=>H()},[e(g,{n:`green`,title:`updates available`,textContent:`updates available`})])):(i(),l(g,{key:1,n:`gray`,title:`latest`,textContent:`latest`}))],64)):c(``,!0)]),e(u(B),null,{default:m(({resolve:n,args:r})=>[e(T,{"model-value":!0,onClose:e=>n(!1)},{default:m(()=>[d(`div`,P,[d(`h3`,F,` Update `+s(f.packageName)+`? `,1),h[8]||=d(`p`,{op50:``},` The following command will be executed in your terminal: `,-1),e(v,{code:r[0],lang:`bash`,my3:``,px4:``,py2:``,border:`~ base rounded`,lines:!1},null,8,[`code`]),e(S,{modelValue:L.value,"onUpdate:modelValue":h[1]||=e=>L.value=e,n:`primary`},{default:m(()=>[...h[3]||=[t(` Navigate to terminal `,-1)]]),_:1},8,[`modelValue`]),e(S,{modelValue:R.value,"onUpdate:modelValue":h[2]||=e=>R.value=e,n:`primary`},{default:m(()=>[...h[4]||=[t(` Restart Nuxt server after update `,-1)]]),_:1},8,[`modelValue`]),d(`div`,I,[e(C,{n:`sm amber`,"flex-auto":``,icon:`i-carbon-data-backup`},{default:m(()=>[...h[5]||=[t(` Please make sure to backup your project first. `,-1)]]),_:1}),e(w,{onClick:e=>n(!1)},{default:m(()=>[...h[6]||=[t(` Cancel `,-1)]]),_:1},8,[`onClick`]),e(w,{n:`solid primary`,onClick:e=>n(!0)},{default:m(()=>[...h[7]||=[t(` Update `,-1)]]),_:1},8,[`onClick`])])])]),_:2},1032,[`onClose`])]),_:1})],64)}}}),{__name:`NpmVersionCheck`}),R=[`pages`,`meta`,`components`,`imports`,`nuxt-config-schema`,`@nuxt/devtools`,`@nuxt/telemetry`];function z(){return y(`getModulesList`,async()=>(await $fetch(`https://api.nuxt.com/modules?version=3`)).modules.filter(e=>!R.includes(e.npm)&&e.compatibility.nuxt.includes(`>=3`)))}function B(){return g(`installed-modules`,()=>{let e=x(),t=z();return f(()=>(e.value?._installedModules||[]).map(n=>{if(!n.entryPath)return;let r=!!(n.entryPath&&_(n.entryPath)),i=n.meta?.name?n.meta?.name:n.entryPath?r?v(n.entryPath):e.value?.rootDir?b(n.entryPath,e.value?.rootDir).path:void 0:void 0;return{name:i,isPackageModule:r,isUninstallable:!!e.value?.modules?.includes(i),info:t.value?.find(e=>e.npm===i)||t.value?.find(e=>e.name===i),...n}}).filter(e=>e&&(!e.name||!R.includes(e.name))))})}export{z as n,L as r,B as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as e,J as t,N as ee,S as n,St as r,T as i,U as a,V as o,Zt as s,_ as c,_t as te,ct as l,dt as ne,en as u,g as d,h as f,jt as p,lt as m,m as h,p as g,s as _,st as v,t as re,ut as y}from"./vendor/json-editor-vue-mkw4apmc.js";import{B as ie,L as ae,_ as b,z as x}from"./ready-b5u27bv4.js";import{i as S}from"./nuxt-kphganvs.js";import{G as C,L as w,g as T}from"./utils-hgmynvjd.js";import{C as oe,a as E}from"./rpc-ewzip6fb.js";import{_ as se,g as ce,j as le,k as ue,v as de,y as fe}from"#entry";import{t as pe}from"./nselect-kdzalcm2.js";import"./composables-ioamscf4.js";import{t as me}from"./nlink-endeyoly.js";import{t as he}from"./filepath-item-calgslzq.js";import{t as D}from"./auth-required-panel-gwrodxrm.js";var O={class:`h-[48px] flex items-center justify-between gap1 px-3`},k={class:`w-full text-sm`},A=[`value`],j=[`onClick`],M={key:0,"h-full":``,"of-hidden":``,flex:`~ col`},N={border:`b base`,class:`h-[49px] flex flex-none items-center justify-between px-4 text-sm`},P={class:`flex items-center gap-4`},F={key:1},I=[`onKeyup`],L={key:0,op50:``},R={key:1},z={"font-bold":``},ge={"text-sm":``},B=Object.assign(i({__name:`StorageDetails`,async setup(i){let D,B,V=w(),_e=S(),H=b(),U=r(``),W=r(``),G=T(`storage:current`,``),K=r(),q=T(`storage:file:state`,``),{data:J}=([D,B]=m(()=>C(`storageMounts`,()=>E.getStorageMounts())),D=await D,B(),D),{data:Y,refresh:X}=([D,B]=m(async()=>C(`storageKeys`,async()=>G.value?await E.getStorageKeys(G.value):[])),D=await D,B(),D);o(_e.hook(`storage:key:update`,async(e,t)=>{if(!(!G.value||e.split(`:`)[0]!==G.value)&&(await X(),q.value===e)){if(t===`remove`)return H.replace({query:{storage:G.value}});await Q(q.value)}})),v(G,()=>{X(),q.value=``}),l(async()=>{if(!q.value){K.value=null;return}Q(q.value)}),oe(`keydown`,e=>{e.key===`s`&&(e.ctrlKey||e.metaKey)&&($(),e.preventDefault())});function Z(e){return e.replace(`${G.value}:`,``)}let ve=g(()=>Y.value?Y.value.filter(e=>e.includes(U.value)):[]);async function Q(e){let t=await E.getStorageItem(e);K.value={key:e,updatedKey:Z(e),editingKey:!1,content:t,updatedContent:t}}async function ye(){if(!W.value||!G.value)return;let e=`${G.value}:${W.value}`;Y.value?.includes(e)||await E.setStorageItem(e,``),H.replace({query:{storage:G.value,key:e}}),W.value=``}async function $(){K.value&&(await E.setStorageItem(K.value.key,K.value.updatedContent),await Q(K.value.key))}async function be(){!K.value||!G.value||(await E.removeStorageItem(K.value.key),K.value=null)}async function xe(){if(!K.value||!G.value)return;let e=`${G.value}:${K.value.updatedKey}`;await E.setStorageItem(e,K.value.updatedContent),await E.removeStorageItem(K.value.key),H.replace({query:{storage:G.value,key:e}})}return(r,i)=>{let o=ue,l=pe,m=ce,g=le,v=me,b=fe,S=de,C=se,w=he;return p(G)?(a(),f(C,{key:0,"storage-key":`tab-storage`},{left:y(()=>[h(`div`,O,[e(o,{icon:`carbon-chevron-left`,"ml--1":``,border:!1,onClick:i[0]||=e=>G.value=``}),h(`div`,k,[e(l,{modelValue:p(G),"onUpdate:modelValue":i[1]||=e=>te(G)?G.value=e:null,n:`primary`,icon:`carbon-data-base`},{default:y(()=>[(a(!0),c(_,null,t(p(J),(e,t)=>(a(),c(`option`,{key:t,value:t},u(t),9,A))),128))]),_:1},8,[`modelValue`])])]),e(m,{modelValue:U.value,"onUpdate:modelValue":i[2]||=e=>U.value=e,icon:`carbon-search`,placeholder:`Search...`,n:`primary sm`,border:`y x-none base! rounded-0`,class:`w-full py2 ring-0!`},null,8,[`modelValue`]),(a(!0),c(_,null,t(ve.value,e=>(a(),c(_,{key:e},[h(`button`,{block:``,"w-full":``,truncate:``,px2:``,py1:``,"text-start":``,"text-sm":``,"font-mono":``,class:s(e===K.value?.key?`text-primary n-bg-active`:`text-secondary hover:n-bg-hover`),onClick:t=>q.value=e},u(Z(e)),11,j),i[8]||=h(`div`,{"x-divider":``},null,-1)],64))),128)),e(m,{modelValue:W.value,"onUpdate:modelValue":i[3]||=e=>W.value=e,icon:`carbon-add`,placeholder:`key`,n:`sm`,border:`t-none x-none base! rounded-0`,class:`w-full py2 font-mono ring-0!`,onKeyup:x(ye,[`enter`])},null,8,[`modelValue`])]),right:y(()=>[K.value?.key?(a(),c(`div`,M,[h(`div`,N,[h(`div`,P,[K.value.editingKey?(a(),f(m,{key:0,modelValue:K.value.updatedKey,"onUpdate:modelValue":i[4]||=e=>K.value.updatedKey=e,onKeyup:x(xe,[`enter`])},null,8,[`modelValue`])):(a(),c(`code`,F,[n(u(Z(K.value.key))+` `,1),e(g,{icon:`carbon-edit`,class:`cursor-pointer op50 hover:op100`,onClick:i[5]||=e=>K.value.editingKey=!0})])),K.value.editingKey?d(``,!0):(a(),f(o,{key:2,n:`green xs`,disabled:K.value.content===K.value.updatedContent,class:s({"border-green":K.value.content!==K.value.updatedContent}),onClick:$},{default:y(()=>[...i[9]||=[n(` Save `,-1)]]),_:1},8,[`disabled`,`class`]))]),h(`div`,null,[e(o,{n:`red xs`,onClick:be},{default:y(()=>[...i[10]||=[n(` Delete `,-1)]]),_:1})])]),typeof K.value.content==`object`?(a(),f(p(re),ee({key:0,modelValue:K.value.updatedContent,"onUpdate:modelValue":i[6]||=e=>K.value.updatedContent=e,class:[[p(V)===`dark`?`jse-theme-dark`:`light`],`json-editor-vue h-full of-auto text-sm outline-none`]},r.$attrs,{mode:`text`,"navigation-bar":!1,indentation:2,"tab-size":2}),null,16,[`modelValue`,`class`])):ne((a(),c(`textarea`,{key:1,"onUpdate:modelValue":i[7]||=e=>K.value.updatedContent=e,placeholder:`Item value...`,class:`h-full of-auto p-4 text-sm font-mono outline-none`,onKeyup:x(ie($,[`ctrl`]),[`enter`])},null,40,I)),[[ae,K.value.updatedContent]])])):(a(),f(S,{key:1},{default:y(()=>[e(b,{px6:``,py4:``},{default:y(()=>[i[12]||=n(` Select one key to start.`,-1),i[13]||=h(`br`,null,null,-1),i[14]||=n(`Learn more about `,-1),e(v,{href:`https://nitro.unjs.io/guide/storage`,n:`orange`,target:`_blank`},{default:y(()=>[...i[11]||=[n(` Nitro storage `,-1)]]),_:1})]),_:1})]),_:1}))]),_:1})):(a(),f(S,{key:1},{default:y(()=>[Object.keys(p(J)).length?(a(),c(`p`,L,` Select one storage to start: `)):(a(),c(`p`,R,[i[16]||=n(` No custom storage defined in `,-1),i[17]||=h(`code`,null,`nitro.storage`,-1),i[18]||=n(`.`,-1),i[19]||=h(`br`,null,null,-1),i[20]||=n(` Learn more about `,-1),e(v,{href:`https://nitro.unjs.io/guide/storage`,n:`orange`,target:`_blank`},{default:y(()=>[...i[15]||=[n(` Nitro storage `,-1)]]),_:1})])),(a(!0),c(_,null,t(p(J),(e,t)=>(a(),f(b,{key:t,"min-w-80":``,"cursor-pointer":``,"p-4":``,"text-left":``,hover:`border-green`,onClick:e=>G.value=t},{default:y(()=>[h(`span`,z,u(t),1),i[21]||=h(`br`,null,null,-1),h(`span`,ge,u(e.driver)+` driver`,1),i[22]||=h(`br`,null,null,-1),e.base?(a(),f(w,{key:0,"text-xs":``,filepath:e.base},null,8,[`filepath`])):d(``,!0)]),_:2},1032,[`onClick`]))),128))]),_:1}))}}}),{__name:`StorageDetails`}),V=i({__name:`storage`,setup(t){return(t,ee)=>{let n=B,r=D;return a(),f(r,null,{default:y(()=>[e(n)]),_:1})}}});export{V as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ot as e,bt as t}from"./vendor/json-editor-vue-mkw4apmc.js";import{a as n,z as r}from"./rpc-ewzip6fb.js";var i={behavior:{telemetry:null,openInEditor:void 0},ui:{componentsView:`list`,componentsGraphShowNodeModules:!1,componentsGraphShowGlobalComponents:!0,componentsGraphShowPages:!1,componentsGraphShowLayouts:!1,componentsGraphShowWorkspace:!0,interactionCloseOnOutsideClick:!1,showExperimentalFeatures:!1,showHelpButtons:!0,scale:1,hiddenTabs:[],pinnedTabs:[],hiddenTabCategories:[],sidebarExpanded:!1,sidebarScrollable:!1},serverRoutes:{selectedRoute:null,view:`tree`,inputDefaults:{query:[],body:[],headers:[]},sendFrom:`app`},serverTasks:{enabled:!1,selectedTask:null,view:`list`,inputDefaults:{query:[],body:[],headers:[{active:!0,key:`Content-Type`,value:`application/json`,type:`string`}]}},assets:{view:`grid`}},a=new Map;function o(o){if(a.has(o))return a.get(o);let s=t({...i[o]}),c=e(s);return a.set(o,c),n.getOptions(o).then(e=>{Object.assign(s,e),r(s,async e=>{n.updateOptions(o,e)},{deep:!0,flush:`post`,debounce:500,maxWait:1e3})}),c}function s(e){return o(e)}export{s as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{B as e,C as t,J as n,S as r,St as i,T as a,U as o,Zt as s,_ as c,ct as l,en as u,g as d,h as f,jt as p,m,p as h,s as g,ut as _}from"./vendor/json-editor-vue-mkw4apmc.js";import{B as v}from"./ready-b5u27bv4.js";import{i as y}from"./nuxt-kphganvs.js";import{M as b}from"./utils-hgmynvjd.js";import{C as x,a as S}from"./rpc-ewzip6fb.js";import{c as C,j as w,k as T}from"#entry";import"./composables-ioamscf4.js";import{t as E}from"./auth-required-panel-gwrodxrm.js";import{n as D,t as O}from"./vendor/xterm-eb5atty5.js";var k={border:`t base`,flex:`~ gap-2`,"items-center":``,p2:``},A={"text-sm":``,op50:``},j=Object.assign(a({__name:`TerminalView`,props:{id:{}},setup(n){let r=n,a=i(),s=y(),l=i(),p;e(async()=>{p=new O({convertEol:!0,cols:80,screenReaderMode:!0});let e=new D;p.loadAddon(e),p.open(a.value),e.fit(),x(window,`resize`,()=>{e.fit()}),l.value=await S.getTerminalDetail(r.id),l.value?.buffer&&p.write(l.value.buffer),s.hook(`devtools:terminal:data`,({id:e,data:t})=>{e===r.id&&p.write(t)})});function h(){S.runTerminalAction(r.id,`clear`),p?.clear()}function _(){S.runTerminalAction(r.id,`restart`)}function v(){S.runTerminalAction(r.id,`terminate`)}return(e,n)=>{let r=T;return o(),c(g,null,[m(`div`,{ref_key:`container`,ref:a,"h-full":``,"w-full":``,"of-auto":``,"bg-black":``},null,512),m(`div`,k,[t(r,{title:`Clear`,icon:`i-carbon-clean`,border:!1,onClick:n[0]||=e=>h()}),l.value?.restartable?(o(),f(r,{key:0,title:`Restart`,icon:`carbon-renew`,border:!1,onClick:n[1]||=e=>_()})):d(``,!0),l.value?.terminatable?(o(),f(r,{key:1,title:`Terminate`,icon:`carbon-delete`,border:!1,onClick:n[2]||=e=>v()})):d(``,!0),m(`span`,A,u(l.value?.description),1)])],64)}}}),{__name:`TerminalView`}),M={key:0,"h-full":``,"w-full":``,"of-hidden":``,grid:`~ rows-[max-content_1fr_max-content]`},N={flex:`~`,border:`b base`,"n-navbar-glass":``,"flex-1":``,"items-center":``},P=[`onClick`],F={key:1,p10:``},I={key:1,"h-full":``,flex:``,"items-center":``,"justify-center":``},L=Object.assign(a({__name:`TerminalPage`,setup(e){let t=b(),i=C(),a=h(()=>t.value?.find(e=>e.id===i.value));function _(e){S.runTerminalAction(e,`remove`)}return l(()=>{!i.value&&t.value?.length&&(i.value=t.value[0].id)}),(e,l)=>{let h=w,y=T,b=j;return p(t)?.length?(o(),c(`div`,M,[m(`div`,N,[(o(!0),c(g,null,n(p(t),e=>(o(),c(`button`,{key:e.id,border:`r base`,flex:`~ gap-2`,"items-center":``,px3:``,py2:``,class:s(e.id===a.value?.id?`bg-active`:``),onClick:t=>i.value=e.id},[e.icon?(o(),f(h,{key:0,icon:e.icon},null,8,[`icon`])):d(``,!0),m(`span`,{class:s(e.id===a.value?.id?``:`op50`)},u(e.name)+u(e.isTerminated?` (terminated)`:``),3),e.isTerminated?(o(),f(y,{key:1,icon:`carbon-close`,"mx--2":``,border:!1,onClick:v(t=>_(e.id),[`stop`])},null,8,[`onClick`])):d(``,!0)],10,P))),128))]),a.value?(o(),f(b,{id:a.value.id,key:a.value.id},null,8,[`id`])):(o(),c(`div`,F,[l[0]||=r(` Terminal `,-1),m(`code`,null,u(p(i)),1),l[1]||=r(` not found `,-1)]))])):(o(),c(`div`,I,[...l[2]||=[m(`em`,{op50:``},`No terminal attached`,-1)]]))}}}),{__name:`TerminalPage`}),R=a({__name:`terminals`,setup(e){return(e,n)=>{let r=L,i=E;return o(),f(i,null,{default:_(()=>[t(r)]),_:1})}}});export{R as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.xterm{padding-left:1rem;padding-right:1rem}
|