site-panzai/node_modules/@nuxt/devtools/dist/client/_nuxt/server-discovery-dxeo9npn.js

1 line
12 KiB
JavaScript
Raw Normal View History

2026-11-13 13:57:04 +01:00
import{o as e}from"./nuxt-l2zm4y7d.js";import{H as t,Mt as n,T as r,V as i,W as a,_ as o,ot as s}from"./vendor/json-editor-vue-9tyg6b65.js";import{l as c}from"./utils-ivfwadyv.js";import{h as l,l as u}from"./client-kfvz1zfh.js";import{t as d}from"./pages-dm1j9w83.js";var f=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}},p=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 m(){return[performance.timeOrigin.toString(16),(1e4*performance.now()).toString(16),Math.random().toString(16).slice(2)].join(`-`)}new TextDecoder;var h=typeof Object.hasOwn==`function`?Object.hasOwn:(e,t)=>Object.hasOwnProperty.call(e,t),g={8:`\\b`,9:`\\t`,10:`\\n`,12:`\\f`,13:`\\r`,34:`\\"`,92:`\\\\`};Uint8Array.from({length:2048},(e,t)=>h(g,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 _(e){try{return new URL(e,location.origin).origin===location.origin}catch{return!1}}function v(e){return e.ok}function y(e){return e.headers.get(`x-file-encoded-size`)||e.headers.get(`content-length`)}function b(e){return e.headers.get(`x-file-size`)||(_(e.url)&&!e.headers.get(`content-encoding`)?e.headers.get(`content-length`):void 0)}function x(e){return e.headers.get(`x-file-created-at`)||e.headers.get(`last-modified`)||void 0}function S(e,t){if(e instanceof Response){let n=t?.isResponseOk||v,r=t?.getContentSize||b,i=t?.getContentEncodedSize||y,a=t?.getContentCreatedAt||x;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 C(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 w(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=C(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:T,hasOwnProperty:E}=Object.prototype;Object.hasOwn;function D(e,t){let n=globalThis.location,r=[],i