1import{s as e}from"./DSbihCfZ.js";import{H as t,J as n,On as r,un as i}from"./Ib1jYPSS.js";import{a}from"./DZEu4iYc.js";import{t as o}from"./BkXIKodK.js";var s=`VUE_QUERY_CLIENT`;function c(e){return`${s}${e?`:${e}`:``}`}function l(e,t){Object.keys(e).forEach(n=>{e[n]=t[n]})}function u(e,t,n=``,r=0){if(t){let a=t(e,n,r);if(a===void 0&&i(e)||a!==void 0)return a}if(Array.isArray(e))return e.map((e,n)=>u(e,t,String(n),r+1));if(typeof e==`object`&&p(e)){let n=Object.entries(e).map(([e,n])=>[e,u(n,t,e,r+1)]);return Object.fromEntries(n)}return e}function d(e,t){return u(e,t)}function f(e,t=!1){return d(e,(e,n,a)=>{if(a===1&&n===`queryKey`)return f(e,!0);if(t&&m(e))return f(e(),t);if(i(e))return f(r(e),t)})}function p(e){if(Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function m(e){return typeof e==`function`}function h(e=``){if(!t())throw Error(`vue-query hooks can only be used inside setup() function or functions that support injection context.`);let r=c(e),i=n(r);if(!i)throw Error(`No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.`);return i}var g={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},_=new class{#e=g;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function ee(e){setTimeout(e,0)}var te=typeof window>`u`||`Deno`in globalThis;function v(){}function y(e,t){return typeof e==`function`?e(t):e}function b(e){return typeof e==`number`&&e>=0&&e!==1/0}function x(e,t){return Math.max(e+(t||0)-Date.now(),0)}function S(e,t){return typeof e==`function`?e(t):e}function C(e,t){return typeof e==`function`?e(t):e}function w(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==E(o,t.options))return!1}else if(!O(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function T(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(D(t.options.mutationKey)!==D(a))return!1}else if(!O(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function E(e,t){return(t?.queryKeyHashFn||D)(e)}function D(e){return JSON.stringify(e,(e,t)=>N(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function O(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t)){for(let n=0;n<t.length;n++)if(!O(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!O(e[r],t[r]))return!1;return!0}return!1}var k=Object.prototype.hasOwnProperty;function A(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=M(e)&&M(t);if(!r&&!(N(e)&&N(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:k.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=A(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function j(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function M(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function N(e){if(!P(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!P(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function P(e){return Object.prototype.toString.call(e)===`[object Object]`}function F(e){return new Promise(t=>{_.setTimeout(t,e)})}function I(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:A(e,t)}function L(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function R(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var z=Symbol();function B(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===z?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function V(e,t){return typeof e==`function`?e(...t):!!e}function H(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var U=(()=>{let e=()=>te;return{isServer(){return e()},setIsServer(t){e=t}}})(),W=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},G=new class extends W{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();
1this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},K=ee;function q(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=K,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var J=q(),Y=new class extends W{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function X(e){return Math.min(1e3*2**e,3e4)}function Z(e){return(e??`online`)!==`online`||Y.isOnline()}var Q=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function ne(e){let t=!1,n=0,r,i=`pending`,a,o,s=new Promise((e,t)=>{a=e,o=t});s.catch(v);let c=()=>i!==`pending`,l=t=>{if(!c()){let n=new Q(t);h(n),e.onCancel?.(n)}},u=()=>{t=!0},d=()=>{t=!1},f=()=>G.isFocused()&&(e.networkMode===`always`||Y.isOnline())&&e.canRun(),p=()=>Z(e.networkMode)&&e.canRun(),m=e=>{c()||(r?.(),i=`resolved`,a(e))},h=e=>{c()||(r?.(),i=`rejected`,o(e))},g=()=>new Promise(t=>{r=e=>{(c()||f())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,c()||e.onContinue?.()}),_=()=>{if(c())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(m).catch(r=>{if(c())return;let i=e.retry??(U.isServer()?0:3),a=e.retryDelay??X,o=typeof a==`function`?a(n,r):a,s=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!s){h(r);return}n++,e.onFail?.(n,r),F(o).then(()=>f()?void 0:g()).then(()=>{t?h(r):_()})})};return{promise:s,status:()=>i,cancel:l,continue:()=>(r?.(),s),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?_():g().then(_),s)}}var re=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),b(this.gcTime)&&(this.#e=_.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(U.isServer()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(_.clearTimeout(this.#e),this.#e=void 0)}};function $(e){return e instanceof Request}function ie(){let{isAuthenticated:t,token:n}=o(),{public:{apiUrl:r}}=e(),i={baseURL:`${r}/api/v1`,onRequest(e){let r=new Headers(e.options.headers);r.has(`Accept`)||r.set(`Accept`,`application/json`),!r.has(`Content-Type`)&&!(e.options.body instanceof FormData)&&r.set(`Content-Type`,`application/json`),e.options.body instanceof FormData&&r.get(`Content-Type`)===`multipart/form-data`&&r.delete(`Content-Type`),($(e.request)&&!e.request.url.includes(`/token`)||!$(e.request)&&!e.request.includes(`/token`))&&t.value&&n.value&&r.set(`Authorization`,`${n.value.tokenType} ${n.value.accessToken}`),e.options.headers=r},onResponse({response:e}){let t=e.headers.get(`content-disposition`);if(t&&t.includes(`attachment;`)){let n=/(?:.*filename\*|filename)=(?:([^'"]*)''|("))([^;]+)\2(?:[;`\n]|$)/.exec(t),r=``;n&&n[3]&&(r=decodeURIComponent(n[3])),e._data={blob:e._data instanceof Blob?e._data:new Blob([e._data],{type:e.headers.get(`content-type`)}),fileName:r}}},async onResponseError(e){throw e.options.responseType===`blob`&&e.response._data instanceof Blob&&e.response.type&&e.response.type.toLowerCase().includes(`cors`)?{status:e.response.status,statusText:e.response.statusText,data:JSON.parse(await e.response._data.text())}:{status:e.response.status,statusText:e.response.statusText,data:e.response._data,...e.response._data}}};return a.create(i)}export{_ as A,I as C,V as D,j as E,f as M,c as N,z as O,l as P,O as S,S as T,E as _,ne as a,w as b,G as c,H as d,L as f,D as g,y as h,Z as i,h as j,x as k,W as l,B as m,re as n,Y as o,R as p,Q as r,J as s,ie as t,U as u,b as v,C as w,v as x,T as y};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.