diff --git a/pc/scripts/build.mjs b/pc/scripts/build.mjs index 0d612418..b78c326d 100644 --- a/pc/scripts/build.mjs +++ b/pc/scripts/build.mjs @@ -7,7 +7,7 @@ dotenv.config() const isSSR = Boolean(process.env.NUXT_SSR) //打包发布路径,可能会覆盖重要文件,请谨慎改动 -const releaseRelativePath = '../server/public/pc' +const releaseRelativePath = '../public/pc' const distRelativePath = isSSR ? '' : './.output/public' const distPath = path.resolve(cwd, distRelativePath) const distSSRFilter = ['.output', 'public', 'static', 'package.json'] diff --git a/public/pc/200.html b/public/pc/200.html new file mode 100644 index 00000000..e24ac5e2 --- /dev/null +++ b/public/pc/200.html @@ -0,0 +1,5 @@ + + +
+ + \ No newline at end of file diff --git a/public/pc/404.html b/public/pc/404.html new file mode 100644 index 00000000..e24ac5e2 --- /dev/null +++ b/public/pc/404.html @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/public/pc/_nuxt/_getTag.e0368b4d.js b/public/pc/_nuxt/_getTag.e0368b4d.js new file mode 100644 index 00000000..095a2d14 --- /dev/null +++ b/public/pc/_nuxt/_getTag.e0368b4d.js @@ -0,0 +1 @@ +import{aX as o,aY as i,aZ as $,a_ as k,a$ as T,b0 as d,ar as M,b1 as s,b2 as P,b3 as c}from"./entry.fd8aa25b.js";var A=o(i,"WeakMap");const g=A;var j=$(Object.keys,Object);const C=j;var K=Object.prototype,V=K.hasOwnProperty;function x(r){if(!k(r))return C(r);var t=[];for(var e in Object(r))V.call(r,e)&&e!="constructor"&&t.push(e);return t}function D(r){return T(r)?d(r):x(r)}function W(r,t){for(var e=-1,a=t.length,u=r.length;++e{const t=i.value.querySelectorAll(`.${u.e("item")}`);t.length&&t[t.length-1].setAttribute("aria-current","page")}),(t,y)=>(a(),l("div",{ref_key:"breadcrumb",ref:i,class:b(e(u).b()),"aria-label":"Breadcrumb",role:"navigation"},[S(t.$slots,"default")],2))}});var le=N(ce,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const ue=D({to:{type:H([String,Object]),default:""},replace:{type:Boolean,default:!1}}),ie=h({name:"ElBreadcrumbItem"}),de=h({...ie,props:ue,setup(x){const o=x,u=U(),i=M(L,void 0),t=I("breadcrumb"),{separator:y,separatorIcon:C}=R(i),m=u.appContext.config.globalProperties.$router,p=$(),g=()=>{!o.to||!m||(o.replace?m.replace(o.to):m.push(o.to))};return(_,k)=>(a(),l("span",{class:b(e(t).e("item"))},[s("span",{ref_key:"link",ref:p,class:b([e(t).e("inner"),e(t).is("link",!!_.to)]),role:"link",onClick:g},[S(_.$slots,"default")],2),e(C)?(a(),F(e(O),{key:0,class:b(e(t).e("separator"))},{default:c(()=>[(a(),F(K(e(C))))]),_:1},8,["class"])):(a(),l("span",{key:1,class:b(e(t).e("separator")),role:"presentation"},r(e(y)),3))],2))}});var P=N(de,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const me=W(le,{BreadcrumbItem:P}),v=Y(P),pe={class:"flex items-center"},_e={class:"flex gap-4 mt-5"},fe={class:"w-[750px] bg-body rounded-[8px] flex-none p-5"},be={class:"border-b border-br pb-4"},he={class:"font-medium text-[22px]"},xe={class:"mt-3 text-tx-secondary flex items-center flex-wrap"},ye={key:0},Ce={class:"mr-5"},Fe={class:"flex items-center"},ke={key:0,class:"bg-page mt-4 p-3 rounded-lg"},ve=["innerHTML"],ge={class:"flex justify-center mt-[40px]"},Be={class:"border-t border-br mt-[30px]"},Ee={class:"mt-5 flex"},we=s("span",{class:"text-tx-regular"},"\u4E0A\u4E00\u7BC7\uFF1A",-1),Ae={key:1},De={class:"mt-5 flex"},Ie=s("span",{class:"text-tx-regular"},"\u4E0B\u4E00\u7BC7\uFF1A",-1),$e={key:1},Me=h({__name:"[id]",async setup(x){let o,u;const i=Z(),{data:t,refresh:y}=([o,u]=G(()=>ee(()=>se({id:i.params.id}),{initialCache:!1},"$hLmIawyfea")),o=await o,u(),o),C=async()=>{const p=i.params.id;t.value.isCollect?(await ae({articleId:p}),A.msgSuccess("\u5DF2\u53D6\u6D88\u6536\u85CF")):(await oe({articleId:p}),A.msgSuccess("\u6536\u85CF\u6210\u529F")),y()},{lockFn:m}=te(C);return(p,g)=>{var B,E;const _=z,k=Q,T=X;return a(),l("div",null,[s("div",pe,[d(" \u5F53\u524D\u4F4D\u7F6E\uFF1A "),n(e(me),{separator:"/"},{default:c(()=>[n(e(v),{to:{path:"/information"}},{default:c(()=>[d(" \u8D44\u8BAF\u4E2D\u5FC3 ")]),_:1}),n(e(v),{to:{path:"/information/search",query:{cid:e(t).cid,name:e(t).category}}},{default:c(()=>[d(r(e(t).category),1)]),_:1},8,["to"]),n(e(v),null,{default:c(()=>[d("\u6587\u7AE0\u8BE6\u60C5")]),_:1})]),_:1})]),s("div",_e,[s("div",fe,[s("div",be,[s("span",he,r(e(t).title),1),s("div",xe,[e(t).author?(a(),l("span",ye,r(e(t).author)+"\xA0|\xA0 ",1)):w("",!0),s("span",Ce,r(e(t).createTime),1),s("div",Fe,[n(_,{name:"el-icon-View"}),s("span",null,"\xA0"+r(e(t).visit)+"\u4EBA\u6D4F\u89C8",1)])])]),e(t).summary?(a(),l("div",ke," \u6458\u8981\uFF1A"+r(e(t).summary),1)):w("",!0),s("div",{class:"py-4",innerHTML:e(t).content},null,8,ve),s("div",ge,[n(e(J),{size:"large",round:"",onClick:e(m)},{default:c(()=>[n(_,{name:`el-icon-${e(t).isCollect?"StarFilled":"Star"}`,size:e(t).isCollect?22:18,color:e(t).isCollect?"#FF2C2F":"inherit"},null,8,["name","size","color"]),d(" "+r(e(t).isCollect?"\u53D6\u6D88\u6536\u85CF":"\u70B9\u51FB\u6536\u85CF"),1)]),_:1},8,["onClick"])]),s("div",Be,[s("div",Ee,[we,e(t).prev?(a(),F(k,{key:0,class:"flex-1 hover:underline",to:`/information/detail/${(B=e(t).prev)==null?void 0:B.id}`},{default:c(()=>{var f;return[d(r((f=e(t).prev)==null?void 0:f.title),1)]}),_:1},8,["to"])):(a(),l("span",Ae," \u6682\u65E0\u76F8\u5173\u6587\u7AE0 "))]),s("div",De,[Ie,e(t).next?(a(),F(k,{key:0,class:"flex-1 hover:underline",to:`/information/detail/${(E=e(t).next)==null?void 0:E.id}`},{default:c(()=>{var f;return[d(r((f=e(t).next)==null?void 0:f.title),1)]}),_:1},8,["to"])):(a(),l("span",$e," \u6682\u65E0\u76F8\u5173\u6587\u7AE0 "))])])]),n(T,{class:"flex-1",header:"\u76F8\u5173\u8D44\u8BAF",data:e(t).news,"only-title":!1,"image-size":"mini","show-author":!1,"show-desc":!1,"show-click":!1,border:!1,"title-line":2,source:"new"},null,8,["data"])])])}}});export{Me as default}; diff --git a/public/pc/_nuxt/_plugin-vue_export-helper.a1a6add7.js b/public/pc/_nuxt/_plugin-vue_export-helper.a1a6add7.js new file mode 100644 index 00000000..718edd33 --- /dev/null +++ b/public/pc/_nuxt/_plugin-vue_export-helper.a1a6add7.js @@ -0,0 +1 @@ +const s=(t,r)=>{const o=t.__vccOpts||t;for(const[c,e]of r)o[c]=e;return o};export{s as _}; diff --git a/public/pc/_nuxt/_type_.3983e8f8.js b/public/pc/_nuxt/_type_.3983e8f8.js new file mode 100644 index 00000000..26936736 --- /dev/null +++ b/public/pc/_nuxt/_type_.3983e8f8.js @@ -0,0 +1 @@ +import{a as c,by as r,w as i,o as _,h as p,i as a,t as l,u as n,c9 as m}from"./entry.fd8aa25b.js";import{u}from"./asyncData.223593b6.js";const h={class:"bg-white render-html p-[30px] w-[1200px] mx-auto min-h-screen"},d={class:"text-center"},y=["innerHTML"],C=c({__name:"[type]",async setup(x){let e,t;const o=r(),{data:s}=([e,t]=i(()=>u(()=>m({type:o.params.type}),{initialCache:!1},"$wG0VOjeE4Z")),e=await e,t(),e);return(f,w)=>(_(),p("div",h,[a("h1",d,l(n(s).name),1),a("div",{class:"mx-auto",innerHTML:n(s).content},null,8,y)]))}});export{C as default}; diff --git a/public/pc/_nuxt/asyncData.223593b6.js b/public/pc/_nuxt/asyncData.223593b6.js new file mode 100644 index 00000000..f6e68259 --- /dev/null +++ b/public/pc/_nuxt/asyncData.223593b6.js @@ -0,0 +1 @@ +import{J as O,r as d,K as k,M as C,N as M,u as B,O as z}from"./entry.fd8aa25b.js";const A=()=>null;function R(...o){var h,m,v,_,D,g,b,w,x;const u=typeof o[o.length-1]=="string"?o.pop():void 0;typeof o[0]!="string"&&o.unshift(u);let[t,l,e={}]=o;if(typeof t!="string")throw new TypeError("[nuxt] [asyncData] key must be a string.");if(typeof l!="function")throw new TypeError("[nuxt] [asyncData] handler must be a function.");e.server=(h=e.server)!=null?h:!0,e.default=(m=e.default)!=null?m:A,e.defer&&console.warn("[useAsyncData] `defer` has been renamed to `lazy`. Support for `defer` will be removed in RC."),e.lazy=(_=(v=e.lazy)!=null?v:e.defer)!=null?_:!1,e.initialCache=(D=e.initialCache)!=null?D:!0,e.immediate=(g=e.immediate)!=null?g:!0;const a=O(),c=()=>(a.isHydrating||e.initialCache)&&a.payload.data[t]!==void 0;a._asyncData[t]||(a._asyncData[t]={data:d(c()?a.payload.data[t]:(w=(b=e.default)==null?void 0:b.call(e))!=null?w:null),pending:d(!c()),error:d((x=a.payload._errors[t])!=null?x:null)});const n={...a._asyncData[t]};n.refresh=n.execute=(i={})=>a._asyncDataPromises[t]?a._asyncDataPromises[t]:i._initial&&c()?a.payload.data[t]:(n.pending.value=!0,a._asyncDataPromises[t]=new Promise((s,r)=>{try{s(l(a))}catch(f){r(f)}}).then(s=>{e.transform&&(s=e.transform(s)),e.pick&&(s=E(s,e.pick)),n.data.value=s,n.error.value=null}).catch(s=>{var r,f;n.error.value=s,n.data.value=B((f=(r=e.default)==null?void 0:r.call(e))!=null?f:null)}).finally(()=>{n.pending.value=!1,a.payload.data[t]=n.data.value,n.error.value&&(a.payload._errors[t]=!0),delete a._asyncDataPromises[t]}),a._asyncDataPromises[t]);const y=()=>n.refresh({_initial:!0}),P=e.server!==!1&&a.payload.serverRendered;{const i=z();if(i&&!i._nuxtOnBeforeMountCbs){i._nuxtOnBeforeMountCbs=[];const r=i._nuxtOnBeforeMountCbs;i&&(k(()=>{r.forEach(f=>{f()}),r.splice(0,r.length)}),C(()=>r.splice(0,r.length)))}P&&a.isHydrating&&t in a.payload.data?n.pending.value=!1:i&&(a.payload.serverRendered&&a.isHydrating||e.lazy)&&e.immediate?i._nuxtOnBeforeMountCbs.push(y):e.immediate&&y(),e.watch&&M(e.watch,()=>n.refresh());const s=a.hook("app:data:refresh",r=>{if(!r||r.includes(t))return n.refresh()});i&&C(s)}const p=Promise.resolve(a._asyncDataPromises[t]).then(()=>n);return Object.assign(p,n),p}function E(o,u){const t={};for(const l of u)t[l]=o[l];return t}export{R as u}; diff --git a/public/pc/_nuxt/blank.191d1d3a.js b/public/pc/_nuxt/blank.191d1d3a.js new file mode 100644 index 00000000..641cfad4 --- /dev/null +++ b/public/pc/_nuxt/blank.191d1d3a.js @@ -0,0 +1 @@ +import{_ as o}from"./_plugin-vue_export-helper.a1a6add7.js";import{o as t,h as s,Y as n}from"./entry.fd8aa25b.js";const r={},a={class:"layout-blank"};function c(e,l){return t(),s("section",a,[n(e.$slots,"default")])}const d=o(r,[["render",c]]);export{d as default}; diff --git a/public/pc/_nuxt/card.vue_vue_type_script_setup_true_lang.53599633.js b/public/pc/_nuxt/card.vue_vue_type_script_setup_true_lang.53599633.js new file mode 100644 index 00000000..f1399d74 --- /dev/null +++ b/public/pc/_nuxt/card.vue_vue_type_script_setup_true_lang.53599633.js @@ -0,0 +1 @@ +import{a as m,o as l,h as i,i as s,t as f,c as y,k as r,j as a,m as w,u as o,H as g,b9 as k,E as b,p as x,Y as u,bd as B,I as S,ba as p}from"./entry.fd8aa25b.js";import{_ as E}from"./items.vue_vue_type_script_setup_true_lang.eb382031.js";import{e as v,a as N}from"./empty_news.2a91dd1c.js";const T={class:"bg-white rounded-[8px]"},z={class:"flex items-center h-[60px] border-b border-br ml-5 pr-5"},A={class:"flex-1 flex min-w-0 mr-4 h-full"},C={class:"text-2xl truncate font-medium h-full border-b-2 border-tx-primary mt-[1px] flex items-center"},D={class:"px-5 pb-5"},I={key:1},$=m({__name:"card",props:{header:{type:String,default:""},link:{type:String,default:""},data:{type:Array,default:()=>[]},source:{type:String,default:"default"},onlyTitle:{type:Boolean,default:!0},titleLine:{type:Number,default:1},border:{type:Boolean,default:!0},imageSize:{type:String,default:"default"},showAuthor:{type:Boolean,default:!0},showDesc:{type:Boolean,default:!0},showClick:{type:Boolean,default:!0},showTime:{type:Boolean,default:!0},showSort:{type:Boolean,default:!0}},setup(e){return(n,L)=>{const c=B,h=E;return l(),i("div",T,[s("div",z,[s("div",A,[s("span",C,f(e.header),1)]),e.link?(l(),y(o(b),{key:0,class:"button",link:""},{default:r(()=>[a(c,{to:e.link,class:"flex"},{default:r(()=>[w(" \u66F4\u591A "),a(o(g),null,{default:r(()=>[a(o(k))]),_:1})]),_:1},8,["to"])]),_:1})):x("",!0)]),e.data.length?u(n.$slots,"content",{key:0,data:e.data},()=>[s("div",D,[(l(!0),i(S,null,p(e.data,(t,d)=>u(n.$slots,"item",{key:t.id,item:t,index:d},()=>[a(h,{index:d,"show-sort":e.showSort,id:t.id,title:t.title,desc:t.intro,click:t.visit,author:t.author,"create-time":t.createTime,image:t.image,"only-title":e.onlyTitle,"image-size":e.imageSize,"show-author":e.showAuthor,"show-desc":e.showDesc,"show-click":e.showClick,border:e.border,"title-line":e.titleLine,"show-time":e.showTime,source:e.source},null,8,["index","show-sort","id","title","desc","click","author","create-time","image","only-title","image-size","show-author","show-desc","show-click","border","title-line","show-time","source"])])),128))])]):(l(),i("div",I,[a(o(N),{image:o(v),description:"\u6682\u65E0\u8D44\u8BAF","image-size":250},null,8,["image"])]))])}}});export{$ as _}; diff --git a/public/pc/_nuxt/collection.16c06986.js b/public/pc/_nuxt/collection.16c06986.js new file mode 100644 index 00000000..818fbd03 --- /dev/null +++ b/public/pc/_nuxt/collection.16c06986.js @@ -0,0 +1 @@ +import{a as g,f as x,w as h,o as a,h as o,u as t,I as y,ba as C,i as s,j as u,c as v,p as k,t as p,k as b,m as E,b7 as w,E as D,A as F}from"./entry.fd8aa25b.js";import{u as N}from"./asyncData.223593b6.js";import{e as $,c as j}from"./news.451b2c62.js";import{a as z,E as B,e as I}from"./empty_news.2a91dd1c.js";import{E as S}from"./index.ac4c2442.js";import"./debounce.8fb1fc5b.js";import"./index.599acc61.js";import"./index.cbbec526.js";import"./_getTag.e0368b4d.js";const V={class:"px-[30px] py-5 user-info min-h-full flex flex-col"},A=s("div",{class:"border-b border-br pb-5"},[s("span",{class:"text-2xl font-medium"},"\u6211\u7684\u6536\u85CF")],-1),M={key:0},T=["onClick"],q={class:"border-b border-br py-4 flex items-center"},L={class:"flex-1"},O={class:"text-lg font-medium line-clamp-1"},P={class:"text-tx-regular line-clamp-2 mt-4"},U={class:"mt-5 text-tx-secondary flex justify-between"},G={class:"py-4 flex justify-end"},H={key:1,class:"flex flex-1 justify-center items-center"},se=g({__name:"collection",async setup(J){let i,d;const n=x({pageNo:1,pageSize:15}),{data:l,refresh:m}=([i,d]=h(()=>N(()=>$(n),{initialCache:!1},"$0MtqemkOuk")),i=await i,d(),i),f=async c=>{await j({articleId:c}),F.msgSuccess("\u5DF2\u53D6\u6D88\u6536\u85CF"),m()};return(c,r)=>(a(),o("div",V,[A,t(l).lists.length?(a(),o("div",M,[(a(!0),o(y,null,C(t(l).lists,e=>(a(),o("div",{class:"cursor-pointer",key:e.id,onClick:_=>c.$router.push(`/information/detail/${e.articleId}`)},[s("div",q,[e.image?(a(),v(t(B),{key:0,class:"flex-none w-[180px] h-[135px] mr-4",src:e.image,fit:"cover"},null,8,["src"])):k("",!0),s("div",L,[s("div",O,p(e.title),1),s("div",P,p(e.intro),1),s("div",U,[s("div",null,"\u6536\u85CF\u4E8E"+p(e.createTime),1),u(t(D),{link:"",onClick:w(_=>f(e.articleId),["stop"])},{default:b(()=>[E(" \u53D6\u6D88\u6536\u85CF ")]),_:2},1032,["onClick"])])])])],8,T))),128)),s("div",G,[u(t(S),{"current-page":n.pageNo,"onUpdate:current-page":r[0]||(r[0]=e=>n.pageNo=e),total:t(l).count,"page-size":n.pageSize,"hide-on-single-page":"",layout:"total, prev, pager, next, jumper",onCurrentChange:r[1]||(r[1]=e=>t(m)())},null,8,["current-page","total","page-size"])])])):(a(),o("div",H,[u(t(z),{image:t(I),description:"\u6682\u65E0\u6536\u85CF","image-size":250},null,8,["image"])]))]))}});export{se as default}; diff --git a/public/pc/_nuxt/debounce.8fb1fc5b.js b/public/pc/_nuxt/debounce.8fb1fc5b.js new file mode 100644 index 00000000..f139d331 --- /dev/null +++ b/public/pc/_nuxt/debounce.8fb1fc5b.js @@ -0,0 +1 @@ +import{bx as C,aB as v,aY as L}from"./entry.fd8aa25b.js";var M=/\s/;function N(n){for(var r=n.length;r--&&M.test(n.charAt(r)););return r}var $=/^\s+/;function R(n){return n&&n.slice(0,N(n)+1).replace($,"")}var k=0/0,F=/^[-+]0x[0-9a-f]+$/i,_=/^0b[01]+$/i,j=/^0o[0-7]+$/i,D=parseInt;function S(n){if(typeof n=="number")return n;if(C(n))return k;if(v(n)){var r=typeof n.valueOf=="function"?n.valueOf():n;n=v(r)?r+"":r}if(typeof n!="string")return n===0?n:+n;n=R(n);var t=_.test(n);return t||j.test(n)?D(n.slice(2),t?2:8):F.test(n)?k:+n}var H=function(){return L.Date.now()};const h=H;var P="Expected a function",U=Math.max,X=Math.min;function q(n,r,t){var u,c,l,s,i,f,o=0,b=!1,d=!1,x=!0;if(typeof n!="function")throw new TypeError(P);r=S(r)||0,v(t)&&(b=!!t.leading,d="maxWait"in t,l=d?U(S(t.maxWait)||0,r):l,x="trailing"in t?!!t.trailing:x);function T(e){var a=u,m=c;return u=c=void 0,o=e,s=n.apply(m,a),s}function W(e){return o=e,i=setTimeout(g,r),b?T(e):s}function O(e){var a=e-f,m=e-o,E=r-a;return d?X(E,l-m):E}function p(e){var a=e-f,m=e-o;return f===void 0||a>=r||a<0||d&&m>=l}function g(){var e=h();if(p(e))return y(e);i=setTimeout(g,O(e))}function y(e){return i=void 0,x&&u?T(e):(u=c=void 0,s)}function A(){i!==void 0&&clearTimeout(i),o=0,u=f=c=i=void 0}function B(){return i===void 0?s:y(h())}function I(){var e=h(),a=p(e);if(u=arguments,c=this,f=e,a){if(i===void 0)return W(f);if(d)return clearTimeout(i),i=setTimeout(g,r),T(f)}return i===void 0&&(i=setTimeout(g,r)),s}return I.cancel=A,I.flush=B,I}export{q as d}; diff --git a/public/pc/_nuxt/default.57a0d557.js b/public/pc/_nuxt/default.57a0d557.js new file mode 100644 index 00000000..5a958c96 --- /dev/null +++ b/public/pc/_nuxt/default.57a0d557.js @@ -0,0 +1 @@ +import{aw as Et,ar as Pt,cn as Rt,co as yn,cp as Cn,cq as Vt,cr as wn,cs as kn,ct as En,cu as Fn,cv as In,cw as Gt,a2 as qe,aK as me,b6 as Ft,a3 as ut,U as R,W as C,bb as rt,cj as Bn,bN as dt,N as ce,aM as zt,aa as Ye,O as be,r as x,aJ as Se,bL as $n,aL as it,cx as Ut,a as B,ae as Kt,ag as Q,o as h,c as S,k as m,i as F,Z as U,u as o,aj as pe,h as I,cy as Te,cz as He,Y as N,I as ue,m as T,t as de,p as D,F as ct,$ as ne,C as pt,R as ke,a1 as fe,ah as ve,aN as xn,aq as je,aW as _e,G as he,cA as Mn,ao as Ht,bo as L,c7 as Sn,b$ as we,bp as Tn,bX as H,j as p,n as An,g as Dn,a5 as Wt,E as te,H as Oe,bW as mt,T as Ln,a8 as On,am as Nn,V as Pn,cB as Ve,cC as Pe,cD as nt,cE as Rn,cF as Vn,S as Re,aQ as We,b9 as Gn,f as ye,ab as ft,aR as qt,bF as Y,an as xe,ac as It,be as zn,bA as Un,aT as Kn,b4 as Hn,cG as Wn,bQ as qn,e as Ce,b as Ee,P as se,A as Ne,bd as Fe,cH as Yn,by as Je,cI as jn,bE as Jn,q as oe,bc as Qe,cJ as Qn,cK as ot,ba as Ze,cL as Zn,w as Xn,l as vt,v as eo,x as to,bv as no,s as ge,cM as ht,cN as oo,cO as so,cP as lo,cQ as ao,cR as Bt}from"./entry.fd8aa25b.js";import{d as ie,E as uo,a as gt,O as ro,w as $t,e as io}from"./index.cbbec526.js";import{c as co,a as po,d as mo,b as Yt,C as fo,e as vo,f as ho,g as go,h as bo,F as _o,L as yo,E as Co}from"./dropdown.1fb9cead.js";import{c as jt,E as Jt}from"./index.4268a50b.js";import{_ as Ie}from"./_plugin-vue_export-helper.a1a6add7.js";import{_ as wo}from"./index.vue_vue_type_script_setup_true_lang.61cd9e71.js";import{u as ko}from"./asyncData.223593b6.js";import{f as Eo}from"./news.451b2c62.js";import{u as Ae}from"./useLockFn.ec86df8b.js";import{a as J,E as Xe}from"./index.b6d90171.js";import{a as Fo}from"./_getTag.e0368b4d.js";var xt=Et?Et.isConcatSpreadable:void 0;function Io(e){return Pt(e)||Rt(e)||!!(xt&&e&&e[xt])}function Qt(e,t,s,n,l){var d=-1,u=e.length;for(s||(s=Io),l||(l=[]);++d0&&s(a)?t>1?Qt(a,t-1,s,n,l):Fo(l,a):n||(l[l.length]=a)}return l}function Bo(e){var t=e==null?0:e.length;return t?Qt(e,1):[]}function $o(e){return yn(Cn(e,void 0,Bo),e+"")}function xo(e,t){return e!=null&&t in Object(e)}function Mo(e,t,s){t=Vt(t,e);for(var n=-1,l=t.length,d=!1;++n{const{slotScopeIds:L}=w;L&&(B=B?B.concat(L):L);const S=a(b),P=m(s(b),w,S,M,E,B,R);return P&&mo(P)&&P.data==="]"?s(w.anchor=P):(Qt=!0,l(w.anchor=u("]"),S,P),P)},$=(b,w,M,E,B,R)=>{if(Qt=!0,w.el=null,R){const P=C(b);for(;;){const D=s(b);if(D&&D!==P)i(D);else break}}const L=s(b),S=a(b);return i(b),r(null,w,S,L,M,E,go(S),B),L},C=b=>{let w=0;for(;b;)if(b=s(b),b&&mo(b)&&(b.data==="["&&w++,b.data==="]")){if(w===0)return s(b);w--}return b};return[c,d]}const Fe=Nl;function j4(e){return n1(e)}function U4(e){return n1(e,D4)}function n1(e,t){const r=wc();r.__VUE__=!0;const{insert:n,remove:o,patchProp:s,createElement:a,createText:i,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:h,setScopeId:m=Ye,insertStaticContent:v}=e,$=(y,x,A,T=null,V=null,N=null,X=!1,I=null,U=!!x.dynamicChildren)=>{if(y===x)return;y&&!Tt(y,x)&&(T=W(y),je(y,V,N,!0),y=null),x.patchFlag===-2&&(U=!1,x.dynamicChildren=null);const{type:O,ref:te,shapeFlag:Z}=x;switch(O){case nn:C(y,x,A,T);break;case Qe:b(y,x,A,T);break;case Bn:y==null&&w(x,A,T,X);break;case Ae:F(y,x,A,T,V,N,X,I,U);break;default:Z&1?B(y,x,A,T,V,N,X,I,U):Z&6?Q(y,x,A,T,V,N,X,I,U):(Z&64||Z&128)&&O.process(y,x,A,T,V,N,X,I,U,de)}te!=null&&V&&Go(te,y&&y.ref,N,x||y,!x)},C=(y,x,A,T)=>{if(y==null)n(x.el=i(x.children),A,T);else{const V=x.el=y.el;x.children!==y.children&&u(V,x.children)}},b=(y,x,A,T)=>{y==null?n(x.el=l(x.children||""),A,T):x.el=y.el},w=(y,x,A,T)=>{[y.el,y.anchor]=v(y.children,x,A,T,y.el,y.anchor)},M=({el:y,anchor:x},A,T)=>{let V;for(;y&&y!==x;)V=h(y),n(y,A,T),y=V;n(x,A,T)},E=({el:y,anchor:x})=>{let A;for(;y&&y!==x;)A=h(y),o(y),y=A;o(x)},B=(y,x,A,T,V,N,X,I,U)=>{X=X||x.type==="svg",y==null?R(x,A,T,V,N,X,I,U):P(y,x,V,N,X,I,U)},R=(y,x,A,T,V,N,X,I)=>{let U,O;const{type:te,props:Z,shapeFlag:H,transition:Y,dirs:ae}=y;if(U=y.el=a(y.type,N,Z&&Z.is,Z),H&8?c(U,y.children):H&16&&S(y.children,U,null,T,V,N&&te!=="foreignObject",X,I),ae&&St(y,null,T,"created"),Z){for(const be in Z)be!=="value"&&!Tn(be)&&s(U,be,null,Z[be],N,y.children,T,V,K);"value"in Z&&s(U,"value",null,Z.value),(O=Z.onVnodeBeforeMount)&&tt(O,T,y)}L(U,y,y.scopeId,X,T),ae&&St(y,null,T,"beforeMount");const ve=(!V||V&&!V.pendingBranch)&&Y&&!Y.persisted;ve&&Y.beforeEnter(U),n(U,x,A),((O=Z&&Z.onVnodeMounted)||ve||ae)&&Fe(()=>{O&&tt(O,T,y),ve&&Y.enter(U),ae&&St(y,null,T,"mounted")},V)},L=(y,x,A,T,V)=>{if(A&&m(y,A),T)for(let N=0;Nln(u,i))?n.push(i):r.push(i));const l=e.matched[a];l&&(t.matched.find(u=>ln(u,l))||o.push(l))}return[r,n,o]}function Ca(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[r,n]=e;if(!r||typeof r!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+r);if(n!==void 0&&typeof n!="function")throw new Error("[nuxt] [useState] init must be a function: "+n);const o="$s"+r,s=Pe(),a=Vr(s.payload.state,o);if(a.value===void 0&&n){const i=n();if(Ce(i))return s.payload.state[o]=i,i;a.value=i}return a}const qf=decodeURIComponent,Wf=encodeURIComponent,Yf=/; */,$o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function Kf(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");let r={},n=t||{},o=e.split(Yf),s=n.decode||qf;for(let a=0;as&&(n=n/r*s,r=s),n>s&&(r=r/n*s,n=s),this.checkOrientationImage(e,this.orientation,r,n)})},e.onerror=()=>{this.$emit("img-load","error")},this.img.substr(0,4)!=="data"&&(e.crossOrigin=""),this.isIE){var t=new XMLHttpRequest;t.onload=function(){var r=URL.createObjectURL(this.response);e.src=r},t.open("GET",this.img,!0),t.responseType="blob",t.send()}else e.src=this.img},startMove(e){if(e.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in e?e.clientX:e.touches[0].clientX)-this.x,this.moveY=("clientY"in e?e.clientY:e.touches[0].clientY)-this.y,e.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),e.touches.length==2&&(this.touches=e.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=e.offsetX?e.offsetX:e.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=e.offsetY?e.offsetY:e.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in e?e.clientX:e.touches[0].clientX,this.cropY="clientY"in e?e.clientY:e.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale(e){e.preventDefault();let t=this.scale;var r={x:this.touches[0].clientX,y:this.touches[0].clientY},n={x:e.touches[0].clientX,y:e.touches[0].clientY},o={x:this.touches[1].clientX,y:this.touches[1].clientY},s={x:e.touches[1].clientX,y:e.touches[1].clientY},a=Math.sqrt(Math.pow(r.x-o.x,2)+Math.pow(r.y-o.y,2)),i=Math.sqrt(Math.pow(n.x-s.x,2)+Math.pow(n.y-s.y,2)),l=i-a,u=1;u=u/this.trueWidth>u/this.trueHeight?u/this.trueHeight:u/this.trueWidth,u=u>.1?.1:u;var c=u*l;if(!this.touchNow){if(this.touchNow=!0,l>0?t+=Math.abs(c):l<0&&t>Math.abs(c)&&(t-=Math.abs(c)),this.touches=e.touches,setTimeout(()=>{this.touchNow=!1},8),!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t}},cancelTouchScale(e){window.removeEventListener("touchmove",this.touchScale)},moveImg(e){if(e.preventDefault(),e.touches&&e.touches.length===2)return this.touches=e.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;let t="clientX"in e?e.clientX:e.touches[0].clientX,r="clientY"in e?e.clientY:e.touches[0].clientY,n,o;n=t-this.moveX,o=r-this.moveY,this.$nextTick(()=>{if(this.centerBox){let s=this.getImgAxis(n,o,this.scale),a=this.getCropAxis(),i=this.trueHeight*this.scale,l=this.trueWidth*this.scale,u,c,d,h;switch(this.rotate){case 1:case-1:case 3:case-3:u=this.cropOffsertX-this.trueWidth*(1-this.scale)/2+(i-l)/2,c=this.cropOffsertY-this.trueHeight*(1-this.scale)/2+(l-i)/2,d=u-i+this.cropW,h=c-l+this.cropH;break;default:u=this.cropOffsertX-this.trueWidth*(1-this.scale)/2,c=this.cropOffsertY-this.trueHeight*(1-this.scale)/2,d=u-l+this.cropW,h=c-i+this.cropH;break}s.x1>=a.x1&&(n=u),s.y1>=a.y1&&(o=c),s.x2<=a.x2&&(n=d),s.y2<=a.y2&&(o=h)}this.x=n,this.y=o,this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})})},leaveImg(e){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize(e){e.preventDefault();let t=this.scale;var r=e.deltaY||e.wheelDelta,n=navigator.userAgent.indexOf("Firefox");r=n>0?r*30:r,this.isIE&&(r=-r);var o=this.coe;o=o/this.trueWidth>o/this.trueHeight?o/this.trueHeight:o/this.trueWidth;var s=o*r;s<0?t+=Math.abs(s):t>Math.abs(s)&&(t-=Math.abs(s));let a=s<0?"add":"reduce";if(a!==this.coeStatus&&(this.coeStatus=a,this.coe=.2),this.scaling||(this.scalingSet=setTimeout(()=>{this.scaling=!1,this.coe=this.coe+=.01},50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t},changeScale(e){let t=this.scale;e=e||1;var r=20;if(r=r/this.trueWidth>r/this.trueHeight?r/this.trueHeight:r/this.trueWidth,e=e*r,e>0?t+=Math.abs(e):t>Math.abs(e)&&(t-=Math.abs(e)),!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t},createCrop(e){e.preventDefault();var t="clientX"in e?e.clientX:e.touches?e.touches[0].clientX:0,r="clientY"in e?e.clientY:e.touches?e.touches[0].clientY:0;this.$nextTick(()=>{var n=t-this.cropX,o=r-this.cropY;if(n>0?(this.cropW=n+this.cropChangeX>this.w?this.w-this.cropChangeX:n,this.cropOffsertX=this.cropChangeX):(this.cropW=this.w-this.cropChangeX+Math.abs(n)>this.w?this.cropChangeX:Math.abs(n),this.cropOffsertX=this.cropChangeX+n>0?this.cropChangeX+n:0),!this.fixed)o>0?(this.cropH=o+this.cropChangeY>this.h?this.h-this.cropChangeY:o,this.cropOffsertY=this.cropChangeY):(this.cropH=this.h-this.cropChangeY+Math.abs(o)>this.h?this.cropChangeY:Math.abs(o),this.cropOffsertY=this.cropChangeY+o>0?this.cropChangeY+o:0);else{var s=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];s+this.cropOffsertY>this.h?(this.cropH=this.h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],n>0?this.cropOffsertX=this.cropChangeX:this.cropOffsertX=this.cropChangeX-this.cropW):this.cropH=s,this.cropOffsertY=this.cropOffsertY}})},changeCropSize(e,t,r,n,o){e.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=t,this.canChangeY=r,this.changeCropTypeX=n,this.changeCropTypeY=o,this.cropX="clientX"in e?e.clientX:e.touches[0].clientX,this.cropY="clientY"in e?e.clientY:e.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow(e){e.preventDefault();var t="clientX"in e?e.clientX:e.touches?e.touches[0].clientX:0,r="clientY"in e?e.clientY:e.touches?e.touches[0].clientY:0;let n=this.w,o=this.h,s=0,a=0;if(this.centerBox){let i=this.getImgAxis(),l=i.x2,u=i.y2;s=i.x1>0?i.x1:0,a=i.y1>0?i.y1:0,n>l&&(n=l),o>u&&(o=u)}this.$nextTick(()=>{var i=t-this.cropX,l=r-this.cropY;if(this.canChangeX&&(this.changeCropTypeX===1?this.cropOldW-i>0?(this.cropW=n-this.cropChangeX-i<=n-s?this.cropOldW-i:this.cropOldW+this.cropChangeX-s,this.cropOffsertX=n-this.cropChangeX-i<=n-s?this.cropChangeX+i:s):(this.cropW=Math.abs(i)+this.cropChangeX<=n?Math.abs(i)-this.cropOldW:n-this.cropOldW-this.cropChangeX,this.cropOffsertX=this.cropChangeX+this.cropOldW):this.changeCropTypeX===2&&(this.cropOldW+i>0?(this.cropW=this.cropOldW+i+this.cropOffsertX<=n?this.cropOldW+i:n-this.cropOffsertX,this.cropOffsertX=this.cropChangeX):(this.cropW=n-this.cropChangeX+Math.abs(i+this.cropOldW)<=n-s?Math.abs(i+this.cropOldW):this.cropChangeX-s,this.cropOffsertX=n-this.cropChangeX+Math.abs(i+this.cropOldW)<=n-s?this.cropChangeX-Math.abs(i+this.cropOldW):s))),this.canChangeY&&(this.changeCropTypeY===1?this.cropOldH-l>0?(this.cropH=o-this.cropChangeY-l<=o-a?this.cropOldH-l:this.cropOldH+this.cropChangeY-a,this.cropOffsertY=o-this.cropChangeY-l<=o-a?this.cropChangeY+l:a):(this.cropH=Math.abs(l)+this.cropChangeY<=o?Math.abs(l)-this.cropOldH:o-this.cropOldH-this.cropChangeY,this.cropOffsertY=this.cropChangeY+this.cropOldH):this.changeCropTypeY===2&&(this.cropOldH+l>0?(this.cropH=this.cropOldH+l+this.cropOffsertY<=o?this.cropOldH+l:o-this.cropOffsertY,this.cropOffsertY=this.cropChangeY):(this.cropH=o-this.cropChangeY+Math.abs(l+this.cropOldH)<=o-a?Math.abs(l+this.cropOldH):this.cropChangeY-a,this.cropOffsertY=o-this.cropChangeY+Math.abs(l+this.cropOldH)<=o-a?this.cropChangeY-Math.abs(l+this.cropOldH):a))),this.canChangeX&&this.fixed){var u=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];u+this.cropOffsertY>o?(this.cropH=o-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0]):this.cropH=u}if(this.canChangeY&&this.fixed){var c=this.cropH/this.fixedNumber[1]*this.fixedNumber[0];c+this.cropOffsertX>n?(this.cropW=n-this.cropOffsertX,this.cropH=this.cropW/this.fixedNumber[0]*this.fixedNumber[1]):this.cropW=c}})},checkCropLimitSize(){let{cropW:e,cropH:t,limitMinSize:r}=this,n=new Array;return Array.isArray[r]?n=r:n=[r,r],e=parseFloat(n[0]),t=parseFloat(n[1]),[e,t]},changeCropEnd(e){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},endCrop(){this.cropW===0&&this.cropH===0&&(this.cropping=!1),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop(){this.crop=!0},stopCrop(){this.crop=!1},clearCrop(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove(e){if(e.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(e),!1;if(e.touches&&e.touches.length===2)return this.crop=!1,this.startMove(e),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);let t="clientX"in e?e.clientX:e.touches[0].clientX,r="clientY"in e?e.clientY:e.touches[0].clientY,n,o;n=t-this.cropOffsertX,o=r-this.cropOffsertY,this.cropX=n,this.cropY=o,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop(e,t){let r=0,n=0;e&&(e.preventDefault(),r="clientX"in e?e.clientX:e.touches[0].clientX,n="clientY"in e?e.clientY:e.touches[0].clientY),this.$nextTick(()=>{let o,s,a=r-this.cropX,i=n-this.cropY;if(t&&(a=this.cropOffsertX,i=this.cropOffsertY),a<=0?o=0:a+this.cropW>this.w?o=this.w-this.cropW:o=a,i<=0?s=0:i+this.cropH>this.h?s=this.h-this.cropH:s=i,this.centerBox){let l=this.getImgAxis();o<=l.x1&&(o=l.x1),o+this.cropW>l.x2&&(o=l.x2-this.cropW),s<=l.y1&&(s=l.y1),s+this.cropH>l.y2&&(s=l.y2-this.cropH)}this.cropOffsertX=o,this.cropOffsertY=s,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})})},getImgAxis(e,t,r){e=e||this.x,t=t||this.y,r=r||this.scale;let n={x1:0,x2:0,y1:0,y2:0},o=this.trueWidth*r,s=this.trueHeight*r;switch(this.rotate){case 0:n.x1=e+this.trueWidth*(1-r)/2,n.x2=n.x1+this.trueWidth*r,n.y1=t+this.trueHeight*(1-r)/2,n.y2=n.y1+this.trueHeight*r;break;case 1:case-1:case 3:case-3:n.x1=e+this.trueWidth*(1-r)/2+(o-s)/2,n.x2=n.x1+this.trueHeight*r,n.y1=t+this.trueHeight*(1-r)/2+(s-o)/2,n.y2=n.y1+this.trueWidth*r;break;default:n.x1=e+this.trueWidth*(1-r)/2,n.x2=n.x1+this.trueWidth*r,n.y1=t+this.trueHeight*(1-r)/2,n.y2=n.y1+this.trueHeight*r;break}return n},getCropAxis(){let e={x1:0,x2:0,y1:0,y2:0};return e.x1=this.cropOffsertX,e.x2=e.x1+this.cropW,e.y1=this.cropOffsertY,e.y2=e.y1+this.cropH,e},leaveCrop(e){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked(e){let t=document.createElement("canvas"),r=new Image,n=this.rotate,o=this.trueWidth,s=this.trueHeight,a=this.cropOffsertX,i=this.cropOffsertY;r.onload=()=>{if(this.cropW!==0){let c=t.getContext("2d"),d=1;this.high&!this.full&&(d=window.devicePixelRatio),this.enlarge!==1&!this.full&&(d=Math.abs(Number(this.enlarge)));let h=this.cropW*d,m=this.cropH*d,v=o*this.scale*d,$=s*this.scale*d,C=(this.x-a+this.trueWidth*(1-this.scale)/2)*d,b=(this.y-i+this.trueHeight*(1-this.scale)/2)*d;switch(u(h,m),c.save(),n){case 0:this.full?(u(h/this.scale,m/this.scale),c.drawImage(r,C/this.scale,b/this.scale,v/this.scale,$/this.scale)):c.drawImage(r,C,b,v,$);break;case 1:case-3:this.full?(u(h/this.scale,m/this.scale),C=C/this.scale+(v/this.scale-$/this.scale)/2,b=b/this.scale+($/this.scale-v/this.scale)/2,c.rotate(n*90*Math.PI/180),c.drawImage(r,b,-C-$/this.scale,v/this.scale,$/this.scale)):(C=C+(v-$)/2,b=b+($-v)/2,c.rotate(n*90*Math.PI/180),c.drawImage(r,b,-C-$,v,$));break;case 2:case-2:this.full?(u(h/this.scale,m/this.scale),c.rotate(n*90*Math.PI/180),C=C/this.scale,b=b/this.scale,c.drawImage(r,-C-v/this.scale,-b-$/this.scale,v/this.scale,$/this.scale)):(c.rotate(n*90*Math.PI/180),c.drawImage(r,-C-v,-b-$,v,$));break;case 3:case-1:this.full?(u(h/this.scale,m/this.scale),C=C/this.scale+(v/this.scale-$/this.scale)/2,b=b/this.scale+($/this.scale-v/this.scale)/2,c.rotate(n*90*Math.PI/180),c.drawImage(r,-b-v/this.scale,C,v/this.scale,$/this.scale)):(C=C+(v-$)/2,b=b+($-v)/2,c.rotate(n*90*Math.PI/180),c.drawImage(r,-b-v,C,v,$));break;default:this.full?(u(h/this.scale,m/this.scale),c.drawImage(r,C/this.scale,b/this.scale,v/this.scale,$/this.scale)):c.drawImage(r,C,b,v,$)}c.restore()}else{let c=o*this.scale,d=s*this.scale,h=t.getContext("2d");switch(h.save(),n){case 0:u(c,d),h.drawImage(r,0,0,c,d);break;case 1:case-3:u(d,c),h.rotate(n*90*Math.PI/180),h.drawImage(r,0,-d,c,d);break;case 2:case-2:u(c,d),h.rotate(n*90*Math.PI/180),h.drawImage(r,-c,-d,c,d);break;case 3:case-1:u(d,c),h.rotate(n*90*Math.PI/180),h.drawImage(r,-c,0,c,d);break;default:u(c,d),h.drawImage(r,0,0,c,d)}h.restore()}e(t)};var l=this.img.substr(0,4);l!=="data"&&(r.crossOrigin="Anonymous"),r.src=this.imgs;function u(c,d){t.width=Math.round(c),t.height=Math.round(d)}},getCropData(e){this.getCropChecked(t=>{e(t.toDataURL("image/"+this.outputType,this.outputSize))})},getCropBlob(e){this.getCropChecked(t=>{t.toBlob(r=>e(r),"image/"+this.outputType,this.outputSize)})},showPreview(){if(this.isCanShow)this.isCanShow=!1,setTimeout(()=>{this.isCanShow=!0},16);else return!1;let e=this.cropW,t=this.cropH,r=this.scale;var n={};n.div={width:`${e}px`,height:`${t}px`};let o=(this.x-this.cropOffsertX)/r,s=(this.y-this.cropOffsertY)/r,a=0;n.w=e,n.h=t,n.url=this.imgs,n.img={width:`${this.trueWidth}px`,height:`${this.trueHeight}px`,transform:`scale(${r})translate3d(${o}px, ${s}px, ${a}px)rotateZ(${this.rotate*90}deg)`},n.html=`
+ `,this.$emit("realTime",n),this.$emit("real-time",n)},reload(){let e=new Image;e.onload=()=>{this.w=parseFloat(window.getComputedStyle(this.$refs.cropper).width),this.h=parseFloat(window.getComputedStyle(this.$refs.cropper).height),this.trueWidth=e.width,this.trueHeight=e.height,this.original?this.scale=1:this.scale=this.checkedMode(),this.$nextTick(()=>{this.x=-(this.trueWidth-this.trueWidth*this.scale)/2+(this.w-this.trueWidth*this.scale)/2,this.y=-(this.trueHeight-this.trueHeight*this.scale)/2+(this.h-this.trueHeight*this.scale)/2,this.loading=!1,this.autoCrop&&this.goAutoCrop(),this.$emit("img-load","success"),this.$emit("imgLoad","success"),setTimeout(()=>{this.showPreview()},20)})},e.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error")},e.src=this.imgs},checkedMode(){let e=1,t=this.trueWidth,r=this.trueHeight;const n=this.mode.split(" ");switch(n[0]){case"contain":this.trueWidth>this.w&&(e=this.w/this.trueWidth),this.trueHeight*e>this.h&&(e=this.h/this.trueHeight);break;case"cover":t=this.w,e=t/this.trueWidth,r=r*e,r