import{j as k,bi as t,ay as o,x as j,bj as $,bk as j,i as w,bl as x,a3 as y,s as g,ai as q,a9 as z,bm as ee,bn as i,u as te,w as re,s as ne,bo as b,z as se,bp as ie,bq as ae}from"./et3mnfcx.js";const c=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function oe(r,s){if(typeof r!="string")throw new typeerror("argument str must be a string");const n={},t=(s||{}).decode||le;let i=0;for(;i{s+=t};return{tostring(){return s},getcontext(){return n},dispatch(t){return r.replacer&&(t=r.replacer(t)),this[t===null?"null":typeof t](t)},object(t){if(t&&typeof t.tojson=="function")return this.object(t.tojson());const i=object.prototype.tostring.call(t);let a="";const c=i.length;c<10?a="unknown:["+i+"]":a=i.slice(8,c-1),a=a.tolowercase();let l=null;if((l=n.get(t))===void 0)n.set(t,n.size);else return this.dispatch("[circular:"+l+"]");if(typeof buffer<"u"&&buffer.isbuffer&&buffer.isbuffer(t))return e("buffer:"),e(t.tostring("utf8"));if(a!=="object"&&a!=="function"&&a!=="asyncfunction")this[a]?this[a](t):r.ignoreunknown||this.unkown(t,a);else{let u=object.keys(t);r.unorderedobjects&&(u=u.sort());let o=[];r.respecttype!==!1&&!u(t)&&(o=de),r.excludekeys&&(u=u.filter(f=>!r.excludekeys(f)),o=o.filter(f=>!r.excludekeys(f))),e("object:"+(u.length+o.length)+":");const p=f=>{this.dispatch(f),e(":"),r.excludevalues||this.dispatch(t[f]),e(",")};for(const f of u)p(f);for(const f of o)p(f)}},array(t,i){if(i=i===void 0?r.unorderedarrays!==!1:i,e("array:"+t.length+":"),!i||t.length<=1){for(const l of t)this.dispatch(l);return}const a=new map,c=t.map(l=>{const u=k(r);u.dispatch(l);for(const[o,p]of u.getcontext())a.set(o,p);return u.tostring()});return n=a,c.sort(),this.array(c,!1)},date(t){return e("date:"+t.tojson())},symbol(t){return e("symbol:"+t.tostring())},unkown(t,i){if(e(i),!!t&&(e(":"),t&&typeof t.entries=="function"))return this.array(array.from(t.entries()),!0)},error(t){return e("error:"+t.tostring())},boolean(t){return e("bool:"+t)},string(t){e("string:"+t.length+":"),e(t)},function(t){e("fn:"),u(t)?this.dispatch("[native]"):this.dispatch(t.tostring()),r.respectfunctionnames!==!1&&this.dispatch("function-name:"+string(t.name)),r.respectfunctionproperties&&this.object(t)},number(t){return e("number:"+t)},xml(t){return e("xml:"+t.tostring())},null(){return e("null")},undefined(){return e("undefined")},regexp(t){return e("regex:"+t.tostring())},uint8array(t){return e("uint8array:"),this.dispatch(array.prototype.slice.call(t))},uint8clampedarray(t){return e("uint8clampedarray:"),this.dispatch(array.prototype.slice.call(t))},int8array(t){return e("int8array:"),this.dispatch(array.prototype.slice.call(t))},uint16array(t){return e("uint16array:"),this.dispatch(array.prototype.slice.call(t))},int16array(t){return e("int16array:"),this.dispatch(array.prototype.slice.call(t))},uint32array(t){return e("uint32array:"),this.dispatch(array.prototype.slice.call(t))},int32array(t){return e("int32array:"),this.dispatch(array.prototype.slice.call(t))},float32array(t){return e("float32array:"),this.dispatch(array.prototype.slice.call(t))},float64array(t){return e("float64array:"),this.dispatch(array.prototype.slice.call(t))},arraybuffer(t){return e("arraybuffer:"),this.dispatch(new uint8array(t))},url(t){return e("url:"+t.tostring())},map(t){e("map:");const i=[...t];return this.array(i,r.unorderedsets!==!1)},set(t){e("set:");const i=[...t];return this.array(i,r.unorderedsets!==!1)},file(t){return e("file:"),this.dispatch([t.name,t.size,t.type,t.lastmodfied])},blob(){if(r.ignoreunknown)return e("[blob]");throw new error(`hashing blob objects is currently not supported use "options.replacer" or "options.ignoreunknown" `)},domwindow(){return e("domwindow")},bigint(t){return e("bigint:"+t.tostring())},process(){return e("process")},timer(){return e("timer")},pipe(){return e("pipe")},tcp(){return e("tcp")},udp(){return e("udp")},tty(){return e("tty")},statwatcher(){return e("statwatcher")},securecontext(){return e("securecontext")},connection(){return e("connection")},zlib(){return e("zlib")},context(){return e("context")},nodescript(){return e("nodescript")},httpparser(){return e("httpparser")},dataview(){return e("dataview")},signal(){return e("signal")},fsevent(){return e("fsevent")},tlswrap(){return e("tlswrap")}}}const v="[native code] }",he=v.length;function u(r){return typeof r!="function"?!1:function.prototype.tostring.call(r).slice(-he)===v}class s{constructor(s,n){s=this.words=s||[],this.sigbytes=n===void 0?s.length*4:n}tostring(s){return(s||pe).stringify(this)}concat(s){if(this.clamp(),this.sigbytes%4)for(let n=0;n>>2]>>>24-n%4*8&255;this.words[this.sigbytes+n>>>2]|=e<<24-(this.sigbytes+n)%4*8}else for(let n=0;n>>2]=s.words[n>>>2];return this.sigbytes+=s.sigbytes,this}clamp(){this.words[this.sigbytes>>>2]&=4294967295<<32-this.sigbytes%4*8,this.words.length=math.ceil(this.sigbytes/4)}clone(){return new s([...this.words])}}const pe={stringify(r){const s=[];for(let n=0;n>>2]>>>24-n%4*8&255;s.push((e>>>4).tostring(16),(e&15).tostring(16))}return s.join("")}},ye={stringify(r){const s="abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz0123456789",n=[];for(let e=0;e>>2]>>>24-e%4*8&255,i=r.words[e+1>>>2]>>>24-(e+1)%4*8&255,a=r.words[e+2>>>2]>>>24-(e+2)%4*8&255,c=t<<16|i<<8|a;for(let l=0;l<4&&e*8+l*6>>6*(3-l)&63))}return n.join("")}},ge={parse(r){const s=r.length,n=[];for(let e=0;e>>2]|=(r.charcodeat(e)&255)<<24-e%4*8;return new s(n,s)}},me={parse(r){return ge.parse(unescape(encodeuricomponent(r)))}};class we{constructor(){this._data=new s,this._ndatabytes=0,this._minbuffersize=0,this.blocksize=512/32}reset(){this._data=new s,this._ndatabytes=0}_append(s){typeof s=="string"&&(s=me.parse(s)),this._data.concat(s),this._ndatabytes+=s.sigbytes}_doprocessblock(s,n){}_process(s){let n,e=this._data.sigbytes/(this.blocksize*4);s?e=math.ceil(e):e=math.max((e|0)-this._minbuffersize,0);const t=e*this.blocksize,i=math.min(t*4,this._data.sigbytes);if(t){for(let a=0;a>>7)^(w<<14|w>>>18)^w>>>3,y=d[f-2],r=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;d[f]=p+d[f-7]+r+d[f-16]}const m=l&u^~l&o,_=t&i^t&a^i&a,h=(t<<30|t>>>2)^(t<<19|t>>>13)^(t<<10|t>>>22),b=(l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25),g=p+b+m+ve[f]+d[f],d=h+_;p=o,o=u,u=l,l=c+g|0,c=a,a=i,i=t,t=g+d|0}e[0]=e[0]+t|0,e[1]=e[1]+i|0,e[2]=e[2]+a|0,e[3]=e[3]+c|0,e[4]=e[4]+l|0,e[5]=e[5]+u|0,e[6]=e[6]+o|0,e[7]=e[7]+p|0}finalize(s){super.finalize(s);const n=this._ndatabytes*8,e=this._data.sigbytes*8;return this._data.words[e>>>5]|=128<<24-e%32,this._data.words[(e+64>>>9<<4)+14]=math.floor(n/4294967296),this._data.words[(e+64>>>9<<4)+15]=n,this._data.sigbytes=this._data.words.length*4,this._process(),this._hash}}function se(r){return new _e().finalize(r).tostring(ye)}function q(r,s={}){const n=typeof r=="string"?r:e(r,s);return se(n).slice(0,10)}function de(r,s,n={}){return r===s||e(r,n)===e(s,n)}function v(r){if(typeof r!="object")return r;var s,n,e=object.prototype.tostring.call(r);if(e==="[object object]"){if(r.constructor!==object&&typeof r.constructor=="function"){n=new r.constructor;for(s in r)r.hasownproperty(s)&&n[s]!==r[s]&&(n[s]=v(r[s]))}else{n={};for(s in r)s==="__proto__"?object.defineproperty(n,s,{value:v(r[s]),configurable:!0,enumerable:!0,writable:!0}):n[s]=v(r[s])}return n}if(e==="[object array]"){for(s=r.length,n=array(s);s--;)n[s]=v(r[s]);return n}return e==="[object set]"?(n=new set,r.foreach(function(t){n.add(v(t))}),n):e==="[object map]"?(n=new map,r.foreach(function(t,i){n.set(v(i),v(t))}),n):e==="[object date]"?new date(+r):e==="[object regexp]"?(n=new regexp(r.source,r.flags),n.lastindex=r.lastindex,n):e==="[object dataview]"?new r.constructor(v(r.buffer)):e==="[object arraybuffer]"?r.slice(0):e.slice(-6)==="array]"?new r.constructor(r):r}const be={path:"/",watch:!0,decode:r=>j(decodeuricomponent(r)),encode:r=>encodeuricomponent(typeof r=="string"?r:json.stringify(r))},ke=void 0;function ce(r,s){var l;const n={...be,...s},e=h(n)||{};let t;n.maxage!==void 0?t=n.maxage*1e3:n.expires&&(t=n.expires.gettime()-date.now());const i=t!==void 0&&t<=0,a=v(i?void 0:e[r]??((l=n.default)==null?void 0:l.call(n))),c=t&&!i?pe(a,t,n.watch&&n.watch!=="shallow"):k(a);{let u=null;try{!ke&&typeof broadcastchannel<"u"&&(u=new broadcastchannel(`nuxt:cookies:${r}`))}catch{}const o=()=>{n.readonly||de(c.value,e[r])||(oe(r,c.value,n),e[r]=v(c.value),u==null||u.postmessage({value:n.encode(c.value)}))},p=m=>{var h;const _=m.refresh?(h=h(n))==null?void 0:h[r]:n.decode(m.value);f=!0,e[r]=c.value=_,w(()=>{f=!1})};let f=!1;t()&&o(()=>{f=!0,o(),u==null||u.close()}),u&&(u.onmessage=({data:m})=>p(m)),n.watch?j(c,()=>{f||o()},{deep:n.watch!=="shallow"}):o()}return c}function h(r={}){return oe(document.cookie,r)}function xe(r,s,n={}){return s==null?m(r,s,{...n,maxage:-1}):m(r,s,n)}function oe(r,s,n={}){document.cookie=xe(r,s,n)}const l=2147483647;function pe(r,s,n){let e,t,i=0;const a=n?k(r):{value:r};return t()&&o(()=>{t==null||t(),cleartimeout(e)}),$((c,l)=>{n&&(t=j(a,l));function u(){cleartimeout(e);const o=s-i,p=o{if(i+=p,ir==="defer"||r===!1;function te(...r){var _;const s=typeof r[r.length-1]=="string"?r.pop():void 0;typeof r[0]!="string"&&r.unshift(s);let[n,e,t={}]=r;if(typeof n!="string")throw new typeerror("[nuxt] [asyncdata] key must be a string.");if(typeof e!="function")throw new typeerror("[nuxt] [asyncdata] handler must be a function.");const i=ee(),a=e,c=()=>null,l=()=>i.ishydrating?i.payload.data[n]:i.static.data[n];t.server=t.server??!0,t.default=t.default??c,t.getcacheddata=t.getcacheddata??l,t.lazy=t.lazy??!1,t.immediate=t.immediate??!0,t.deep=t.deep??x.deep,t.dedupe=t.dedupe??"cancel";const u=()=>t.getcacheddata(n,i)!=null;if(!i._asyncdata[n]||!t.immediate){(_=i.payload._errors)[n]??(_[n]=null);const h=t.deep?k:y;i._asyncdata[n]={data:h(t.getcacheddata(n,i)??t.default()),pending:k(!u()),error:g(i.payload._errors,n),status:k("idle")}}const o={...i._asyncdata[n]};o.refresh=o.execute=(h={})=>{if(i._asyncdatapromises[n]){if(ee(h.dedupe??t.dedupe))return i._asyncdatapromises[n];i._asyncdatapromises[n].cancelled=!0}if((h._initial||i.ishydrating&&h._initial!==!1)&&u())return promise.resolve(t.getcacheddata(n,i));o.pending.value=!0,o.status.value="pending";const b=new promise((g,d)=>{try{g(a(i))}catch(w){d(w)}}).then(async g=>{if(b.cancelled)return i._asyncdatapromises[n];let d=g;t.transform&&(d=await t.transform(g)),t.pick&&(d=re(d,t.pick)),i.payload.data[n]=d,o.data.value=d,o.error.value=null,o.status.value="success"}).catch(g=>{if(b.cancelled)return i._asyncdatapromises[n];o.error.value=i(g),o.data.value=te(t.default()),o.status.value="error"}).finally(()=>{b.cancelled||(o.pending.value=!1,delete i._asyncdatapromises[n])});return i._asyncdatapromises[n]=b,i._asyncdatapromises[n]},o.clear=()=>je(i,n);const p=()=>o.refresh({_initial:!0}),f=t.server!==!1&&i.payload.serverrendered;{const h=re();if(h&&!h._nuxtonbeforemountcbs){h._nuxtonbeforemountcbs=[];const d=h._nuxtonbeforemountcbs;q(()=>{d.foreach(w=>{w()}),d.splice(0,d.length)}),z(()=>d.splice(0,d.length))}f&&i.ishydrating&&(o.error.value||u())?(o.pending.value=!1,o.status.value=o.error.value?"error":"success"):h&&(i.payload.serverrendered&&i.ishydrating||t.lazy)&&t.immediate?h._nuxtonbeforemountcbs.push(p):t.immediate&&p();const b=t();if(t.watch){const d=j(t.watch,()=>o.refresh());b&&o(d)}const g=i.hook("app:data:refresh",async d=>{(!d||d.includes(n))&&await o.refresh()});b&&o(g)}const m=promise.resolve(i._asyncdatapromises[n]).then(()=>o);return object.assign(m,o),m}function je(r,s){s in r.payload.data&&(r.payload.data[s]=void 0),s in r.payload._errors&&(r.payload._errors[s]=null),r._asyncdata[s]&&(r._asyncdata[s].data.value=void 0,r._asyncdata[s].error.value=null,r._asyncdata[s].pending.value=!1,r._asyncdata[s].status.value="idle"),s in r._asyncdatapromises&&(r._asyncdatapromises[s].cancelled=!0,r._asyncdatapromises[s]=void 0)}function re(r,s){const n={};for(const e of s)n[e]=r[e];return n}function ze(r,s,n){const[e={},t]=typeof s=="string"?[{},s]:[s,n],i=ne(()=>b(r)),a=e.key||q([t,typeof i.value=="string"?i.value:"",...ae(e)]);if(!a||typeof a!="string")throw new typeerror("[nuxt] [usefetch] key must be a string: "+a);if(!r)throw new error("[nuxt] [usefetch] request is missing.");const c=a===t?"$f"+a:a;if(!e.baseurl&&typeof i.value=="string"&&i.value[0]==="/"&&i.value[1]==="/")throw new error('[nuxt] [usefetch] the request url must not start with "//".');const{server:l,lazy:u,default:o,transform:p,pick:f,watch:m,immediate:_,getcacheddata:h,deep:b,dedupe:g,...d}=e,w=se({...ie,...d,cache:typeof e.cache=="boolean"?void 0:e.cache}),p={server:l,lazy:u,default:o,transform:p,pick:f,immediate:_,getcacheddata:h,deep:b,dedupe:g,watch:m===!1?[]:[w,i,...m||[]]};let y;return te(c,()=>{var a;(a=y==null?void 0:y.abort)==null||a.call(y),y=typeof abortcontroller<"u"?new abortcontroller:{};const z=b(e.timeout);return z&&settimeout(()=>y.abort(),z),(e.$fetch||globalthis.$fetch)(i.value,{signal:y.signal,...w})},p)}function ae(r){var n;const s=[((n=b(r.method))==null?void 0:n.touppercase())||"get",b(r.baseurl)];for(const e of[r.params||r.query]){const t=b(e);if(!t)continue;const i={};for(const[a,c]of object.entries(t))i[b(a)]=b(c);s.push(i)}return s}const x=(r,s,n)=>{const e=ae().public.apiurl+r,t=q(json.stringify(s)+r),i={token:ce("token").value,...n};return new promise((a,c)=>{ze(e,{...s,key:t,headers:i},"$fqvydvjfrx").then(({data:l,error:u})=>{if(u.value){c(u.value);return}const o=l.value;if(o)a(o);else throw i({statuscode:500,statusmessage:e,message:"自己后端接口的报错信息"})}).catch(l=>{c(l)})})};class me{get(s,n,e){return x(s,{method:"get",params:n},e)}post(s,n,e){return x(s,{method:"post",params:n},e)}put(s,n,e){return x(s,{method:"put",params:n},e)}delete(s,n,e){return x(s,{method:"delete",params:n},e)}}const ne=new class extends me{getmenu(){return this.get("/index/menu")}getfooter(){return this.get("/index/footer")}getindex(){return this.get("/index")}gethot(){return this.get("/app/v1/article/hotview")}getcategory(s){return this.get("/news/category")}getnews(s){return this.get("/news/",s)}getnewsdetail(s){return this.get("/news/detail/",{id:s})}getabout(){return this.get("/about")}getservice(){return this.get("/service")}getsolution(){return this.get("/solution")}getsolutiondetail(s){return this.get("/solution/detail/",{id:s})}getcase(s){return this.get("/case",s)}getcasedetail(s){return this.get("/case/detail/",{id:s})}getproductssl(){return this.get("/product/ssl")}getproduct(){return this.get("/product")}getproductdetail(s){return this.get("/product/detail/",{id:s})}getcaptcha(s){return this.get("/captcha/",{randomtoken:s})}advisory(s){return this.post("/feedback/message",s)}},ue={appapi:ne},ie=()=>ue;export{ie as u};