PageSourceSearch

https://tsc.gov.kh/_nuxt/api.X277GJMM.js

js tsc.gov.kh collected 2026-10-09 17:32:14 UTC 4,139 bytes, 1 lines download raw bytes

1import{aq as E,a as k,ar as R,as as T,at as $}from"./entry.DK4RghGW.js";import{a as C,s as j,t as q,ah as A,aq as x,b as F,u as B,g as M,k as U,ar as h,r as z}from"./swiper-vue.dc3aeOXm.js";const H=s=>s==="defer"||s===!1;function L(...s){var v;const i=typeof s[s.length-1]=="string"?s.pop():void 0;typeof s[0]!="string"&&s.unshift(i);let[a,o,e={}]=s;if(typeof a!="string")throw new TypeError("[nuxt] [asyncData] key must be a string.");if(typeof o!="function")throw new TypeError("[nuxt] [asyncData] handler must be a function.");const t=k(),f=o,y=()=>null,b=()=>t.isHydrating?t.payload.data[a]:t.static.data[a];e.server=e.server??!0,e.default=e.default??y,e.getCachedData=e.getCachedData??b,e.lazy=e.lazy??!1,e.immediate=e.immediate??!0,e.deep=e.deep??E.deep,e.dedupe=e.dedupe??"cancel";const m=()=>![null,void 0].includes(e.getCachedData(a));if(!t._asyncData[a]||!e.immediate){(v=t.payload._errors)[a]??(v[a]=null);const c=e.deep?C:j;t._asyncData[a]={data:c(e.getCachedData(a)??e.default()),pending:C(!m()),error:q(t.payload._errors,a),status:C("idle")}}const n={...t._asyncData[a]};n.refresh=n.execute=(c={})=>{if(t._asyncDataPromises[a]){if(H(c.dedupe??e.dedupe))return t._asyncDataPromises[a];t._asyncDataPromises[a].cancelled=!0}if((c._initial||t.isHydrating&&c._initial!==!1)&&m())return Promise.resolve(e.getCachedData(a));n.pending.value=!0,n.status.value="pending";const l=new Promise((r,u)=>{try{r(f(t))}catch(_){u(_)}}).then(r=>{if(l.cancelled)return t._asyncDataPromises[a];let u=r;e.transform&&(u=e.transform(r)),e.pick&&(u=G(u,e.pick)),t.payload.data[a]=u,n.data.value=u,n.error.value=null,n.status.value="success"}).catch(r=>{if(l.cancelled)return t._asyncDataPromises[a];n.error.value=R(r),n.data.value=B(e.default()),n.status.value="error"}).finally(()=>{l.cancelled||(n.pending.value=!1,delete t._asyncDataPromises[a])});return t._asyncDataPromises[a]=l,t._asyncDataPromises[a]};const D=()=>n.refresh({_initial:!0}),w=e.server!==!1&&t.payload.serverRendered;{const c=M();if(c&&!c._nuxtOnBeforeMountCbs){c._nuxtOnBeforeMountCbs=[];const r=c._nuxtOnBeforeMountCbs;c&&(A(()=>{r.forEach(u=>{u()}),r.splice(0,r.length)}),x(()=>r.splice(0,r.length)))}w&&t.isHydrating&&(n.error.value||m())?(n.pending.value=!1,n.status.value=n.error.value?"error":"success"):c&&(t.payload.serverRendered&&t.isHydrating||e.lazy)&&e.immediate?c._nuxtOnBeforeMountCbs.push(D):e.immediate&&D(),e.watch&&F(e.watch,()=>n.refresh());const l=t.hook("app:data:refresh",async r=>{(!r||r.includes(a))&&await n.refresh()});c&&x(l)}const g=Promise.resolve(t._asyncDataPromises[a]).then(()=>n);return Object.assign(g,n),g}function G(s,i){const a={};for(const o of i)a[o]=s[o];return a}function K(s,i,a){const[o={},e]=typeof i=="string"?[{},i]:[i,a],t=U(()=>{let p=s;return typeof p=="function"&&(p=p()),h(p)}),f=o.key||T([e,typeof t.value=="string"?t.value:"",...S(o)]);if(!f||typeof f!="string")throw new TypeError("[nuxt] [useFetch] key must be a string: "+f);if(!s)throw new Error("[nuxt] [useFetch] request is missing.");const y=f===e?"$f"+f:f;if(!o.baseURL&&typeof t.value=="string"&&t.value[0]==="/"&&t.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const{server:b,lazy:m,default:n,transform:D,pick:w,watch:g,immediate:v,getCachedData:c,deep:l,dedupe:r,...u}=o,_=z({...$,...u,cache:typeof o.cache=="boolean"?void 0:o.cache}),O={server:b,lazy:m,default:n,transform:D,pick:w,immediate:v,getCachedData:c,deep:l,dedupe:r,watch:g===!1?[]:[_,t,...g||[]]};let d;return L(y,()=>{var P;(P=d==null?void 0:d.abort)==null||P.call(d),d=typeof AbortController<"u"?new AbortController:{};const p=h(o.timeout);return p&&setTimeout(()=>d.abort(),p),(o.$fetch||globalThis.$fetch)(t.value,{signal:d.signal,..._})},O)}function S(s){var a;const i=[((a=h(s.method))==null?void 0:a.toUpperCase())||"GET",h(s.baseURL)];for(const o of[s.params||s.query]){const e=h(o);if(!e)continue;const t={};for(const[f,y]of Object.entries(e))t[h(f)]=h(y);i.push(t)}return i}const J=async(s,i)=>{const a={key:s,headers:{"content-type":"application/json","accept-language":k().$lang()},...i};return K(s,a,"$6cQTVb4Geq")};export{K as a,J as u};

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.