PageSourceSearch

https://hoocs.ai/websitecms/_next/static/chunks/6997.625a21070ca1dc4b.js

js hoocs.ai collected 2026-10-05 05:33:53 UTC 3,948 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2884,6997],{60319:(e,t,a)=>{a.d(t,{n:()=>o,v:()=>i});var r=a(25984),n=a(67624);let i=()=>"/websitecms",s=r.A.create({baseURL:i()});s.interceptors.request.use(e=>(!e.data||e.data instanceof FormData||(e.data=(0,n.nE)(e.data)),e.params&&(e.params=(0,n.nE)(e.params)),e),e=>Promise.reject(e)),s.interceptors.response.use(e=>(e.data&&(e.data=(0,n.tc)(e.data)),e),e=>Promise.reject(e));let o=s},67624:(e,t,a)=>{a.d(t,{fX:()=>r,nE:()=>function e(t){if(null===t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map(t=>e(t));let a={};return Object.keys(t).forEach(r=>{a[r.replace(/([A-Z])/g,"_$1").toLowerCase()]=e(t[r])}),a},tc:()=>function e(t){if(null===t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map(t=>e(t));let a={};return Object.keys(t).forEach(r=>{a[r.replace(/_(\w)/g,(e,t)=>t.toUpperCase())]=e(t[r])}),a}});function r(e){return e.trim().replace(/\s+/g,"-").toLowerCase()}},72884:(e,t,a)=>{a.d(t,{N6:()=>d,QU:()=>p,zE:()=>m,GE:()=>f,Eg:()=>v,D4:()=>y,B0:()=>g,yv:()=>o,CS:()=>w,kE:()=>u,a4:()=>h,ql:()=>E,cQ:()=>c,V6:()=>l});var r=a(60319),n=a(43908),i=a.n(n);let s=async e=>new Promise((t,a)=>{let r=new FileReader;r.onload=r=>{var n;let i=new Image;i.onload=()=>{let r=document.createElement("canvas");r.width=i.width,r.height=i.height;let n=r.getContext("2d");if(!n)return void a(Error("无法创建 canvas 上下文"));n.drawImage(i,0,0,i.width,i.height);let s=e.type,o=.92;if("image/png"===e.type){let e=n.getImageData(0,0,r.width,r.height).data,t=!1;for(let a=3;a<e.length;a+=4)if(e[a]<255){t=!0;break}t?o=1:(s="image/jpeg",o=.92)}r.toBlob(r=>r?r.size>=e.size?void t(e):void t(new File([r],e.name,{type:s,lastModified:Date.now()})):void a(Error("图片压缩失败")),s,o)},i.onerror=()=>{a(Error("图片加载失败"))},i.src=null==(n=r.target)?void 0:n.result},r.onerror=()=>{a(Error("文件读取失败"))},r.readAsDataURL(e)}),o=e=>r.n.get("/api/templates/",{params:e}),c=e=>r.n.put("/api/templates/".concat(e.id),e),l=async e=>{let{file:t}=e,a=await s(t),n=new FormData;return n.append("file",a),r.n.post("/api/images/upload",n,{headers:{"Content-Type":"multipart/form-data"}})},p=e=>r.n.get("/api/categories/",{params:e}),d=e=>r.n.post("/api/articles/",e),u=e=>r.n.put("/api/articles/".concat(e.id),e),f=e=>r.n.get("/api/articles",{params:e}),m=e=>r.n.get("/api/articles/".concat(e)),g=e=>{let{name:t,...a}=e;return r.n.get("/api/relative/".concat(t),{params:a})},h=(e,t)=>r.n.put("/api/article/status/".concat(e,"?status=").concat(t)),v=e=>r.n.get("/api/cards/",{params:e,paramsSerializer:e=>i().stringify(e,{arrayFormat:"repeat"})}),w=e=>r.n.post("/api/faq/".concat(e.faqId,"/likes"),{action:e.action}),y=e=>r.n.post("/api/faq/list_likes",e),E=e=>r.n.post("/api/articles/".concat(e,"/view"))},75144:(e,t,a)=>{a.d(t,{default:()=>c});var r=a(65392),n=a(19964),i=a(60369),s=a(17942),o=a(24252);let c=function(e){let{containerClassName:t,viewportOptions:a={},forcePriority:c,className:l,sizes:p,src:d,alt:u,...f}=e,{threshold:m=.1,rootMargin:g="100px",triggerOnce:h=!1}=a,[v,w]=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{threshold:t=.1,rootMargin:a="50px",triggerOnce:r=!0}=e,[n,i]=(0,o.useState)(!1),s=(0,o.useRef)(null);return(0,o.useEffect)(()=>{let e=s.current;if(!e)return;if(!("IntersectionObserver"in window))return void i(!0);let n=new IntersectionObserver(t=>{let[a]=t,s=a.isIntersecting;i(s),r&&s&&n.unobserve(e)},{threshold:t,rootMargin:a});return n.observe(e),()=>{n.unobserve(e)}},[t,a,r]),[s,n]}({threshold:m,rootMargin:g,triggerOnce:h}),y="string"==typeof d&&d.startsWith("/")&&!d.startsWith(i.o2)?"".concat(i.o2).concat(d):d;return(0,r.jsx)("div",{ref:v,className:(0,n.cn)(t),children:(0,r.jsx)(s.default,{priority:void 0!==c?c:w,className:l,sizes:p,src:y,alt:u,...f})})}},88027:(e,t,a)=>{a.d(t,{A:()=>r});let r=(0,a(25070).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])}}]);

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.