tj
2025-06-05 bba272999cc546f65781bf3d20245a3f819af67f
1
2
"use strict";(self["webpackChunklin_cms_vue"]=self["webpackChunklin_cms_vue"]||[]).push([[6262],{46262:function(r,t,e){e.r(t),e.d(t,{checkIsAnimated:function(){return a},createId:function(){return i},getFileType:function(){return u},isEmptyObj:function(){return o}});e(16573),e(78100),e(77936),e(37467),e(44732),e(79577);const n=[{name:"image/x-icon",mask:[255,255,255,255],byte:[0,0,1,0]},{name:"image/x-icon",mask:[255,255,255,255],byte:[0,0,2,0]},{name:"image/bmp",mask:[255,255],byte:[66,77]},{name:"image/gif",mask:[255,255,255,255,255,255],byte:[71,73,70,56,55,97]},{name:"image/gif",mask:[255,255,255,255,255,255],byte:[71,73,70,56,57,97]},{name:"image/webp",mask:[255,255,255,255,0,0,0,0,255,255,255,255,255,255],byte:[82,73,70,70,0,0,0,0,87,69,66,80,86,80]},{name:"image/png",mask:[255,255,255,255,255,255,255,255],byte:[137,80,78,71,13,10,26,10]},{name:"image/jpeg",mask:[255,255,255],byte:[255,216,255]}];function o(r){return!r||"{}"===JSON.stringify(r)}function i(){return Math.random().toString(36).substring(2)}async function a({file:r,fileUrl:t,fileType:e}){return r&&r instanceof File?("image/webp"===e||"image/gif"===e)&&("image/webp"===e?new Promise((r=>{const e=new XMLHttpRequest;e.open("GET",t,!0),e.addEventListener("load",(()=>{r(-1!==e.response.indexOf("ANMF"))})),e.send()})):"image/gif"===e?new Promise((r=>{const e=new XMLHttpRequest;e.open("GET",t,!0),e.responseType="arraybuffer",e.addEventListener("load",(()=>{const t=new Uint8Array(e.response);if(71!==t[0]||73!==t[1]||70!==t[2]||56!==t[3])return void r(!1);let n=0;for(let r=0,e=t.length-9;r<e&&n<2;++r)0!==t[r]||33!==t[r+1]||249!==t[r+2]||4!==t[r+3]||0!==t[r+8]||44!==t[r+9]&&33!==t[r+9]||n++;r(n>1)})),e.send()})):void 0):(console.error("isAnimated param check fail: param expected to be File object"),!1)}async function u(r){return r instanceof File?new Promise((t=>{const e=new FileReader;e.onloadend=r=>{const e=new Uint8Array(r.target.result).slice(0,20);let o="unknown";const i=n.findIndex((r=>r.mask.every(((t,n)=>0===(t&(e[n]^r.byte[n]))))));i>=0&&(o=n[i].name),t(o)},e.readAsArrayBuffer(r)})):"unknown"}},73506:function(r,t,e){var n=e(13925),o=String,i=TypeError;r.exports=function(r){if(n(r))return r;throw new i("Can't set "+o(r)+" as a prototype")}},77811:function(r){r.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},67394:function(r,t,e){var n=e(46706),o=e(44576),i=TypeError;r.exports=n(ArrayBuffer.prototype,"byteLength","get")||function(r){if("ArrayBuffer"!==o(r))throw new i("ArrayBuffer expected");return r.byteLength}},3238:function(r,t,e){var n=e(79504),o=e(67394),i=n(ArrayBuffer.prototype.slice);r.exports=function(r){if(0!==o(r))return!1;try{return i(r,0,0),!1}catch(t){return!0}}},95636:function(r,t,e){var n=e(24475),o=e(79504),i=e(46706),a=e(57696),u=e(3238),f=e(67394),c=e(94483),p=e(1548),y=n.structuredClone,s=n.ArrayBuffer,d=n.DataView,g=n.TypeError,v=Math.min,h=s.prototype,A=d.prototype,l=o(h.slice),w=i(h,"resizable","get"),m=i(h,"maxByteLength","get"),b=o(A.getInt8),x=o(A.setInt8);r.exports=(p||c)&&function(r,t,e){var n,o=f(r),i=void 0===t?o:a(t),h=!w||!w(r);if(u(r))throw new g("ArrayBuffer is detached");if(p&&(r=y(r,{transfer:[r]}),o===i&&(e||h)))return r;if(o>=i&&(!e||h))n=l(r,0,i);else{var A=e&&!h&&m?{maxByteLength:m(r)}:void 0;n=new s(i,A);for(var T=new d(r),_=new d(n),B=v(i,o),k=0;k<B;k++)x(_,k,b(T,k))}return p||c(r),n}},94644:function(r,t,e){var n,o,i,a=e(77811),u=e(43724),f=e(24475),c=e(94901),p=e(20034),y=e(39297),s=e(36955),d=e(16823),g=e(66699),v=e(36840),h=e(62106),A=e(1625),l=e(42787),w=e(52967),m=e(78227),b=e(33392),x=e(91181),T=x.enforce,_=x.get,B=f.Int8Array,k=B&&B.prototype,E=f.Uint8ClampedArray,I=E&&E.prototype,C=B&&l(B),O=k&&l(k),j=Object.prototype,R=f.TypeError,F=m("toStringTag"),L=b("TYPED_ARRAY_TAG"),M="TypedArrayConstructor",U=a&&!!w&&"Opera"!==s(f.opera),P=!1,S={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},D={BigInt64Array:8,BigUint64Array:8},V=function(r){if(!p(r))return!1;var t=s(r);return"DataView"===t||y(S,t)||y(D,t)},Y=function(r){var t=l(r);if(p(t)){var e=_(t);return e&&y(e,M)?e[M]:Y(t)}},G=function(r){if(!p(r))return!1;var t=s(r);return y(S,t)||y(D,t)},N=function(r){if(G(r))return r;throw new R("Target is not a typed array")},q=function(r){if(c(r)&&(!w||A(C,r)))return r;throw new R(d(r)+" is not a typed array constructor")},z=function(r,t,e,n){if(u){if(e)for(var o in S){var i=f[o];if(i&&y(i.prototype,r))try{delete i.prototype[r]}catch(a){try{i.prototype[r]=t}catch(c){}}}O[r]&&!e||v(O,r,e?t:U&&k[r]||t,n)}},H=function(r,t,e){var n,o;if(u){if(w){if(e)for(n in S)if(o=f[n],o&&y(o,r))try{delete o[r]}catch(i){}if(C[r]&&!e)return;try{return v(C,r,e?t:U&&C[r]||t)}catch(i){}}for(n in S)o=f[n],!o||o[r]&&!e||v(o,r,t)}};for(n in S)o=f[n],i=o&&o.prototype,i?T(i)[M]=o:U=!1;for(n in D)o=f[n],i=o&&o.prototype,i&&(T(i)[M]=o);if((!U||!c(C)||C===Function.prototype)&&(C=function(){throw new R("Incorrect invocation")},U))for(n in S)f[n]&&w(f[n],C);if((!U||!O||O===j)&&(O=C.prototype,U))for(n in S)f[n]&&w(f[n].prototype,O);if(U&&l(I)!==O&&w(I,O),u&&!y(O,F))for(n in P=!0,h(O,F,{configurable:!0,get:function(){return p(this)?this[L]:void 0}}),S)f[n]&&g(f[n],L,n);r.exports={NATIVE_ARRAY_BUFFER_VIEWS:U,TYPED_ARRAY_TAG:P&&L,aTypedArray:N,aTypedArrayConstructor:q,exportTypedArrayMethod:z,exportTypedArrayStaticMethod:H,getTypedArrayConstructor:Y,isView:V,isTypedArray:G,TypedArray:C,TypedArrayPrototype:O}},35370:function(r,t,e){var n=e(26198);r.exports=function(r,t,e){var o=0,i=arguments.length>2?e:n(t),a=new r(i);while(i>o)a[o]=t[o++];return a}},37628:function(r,t,e){var n=e(26198);r.exports=function(r,t){for(var e=n(r),o=new t(e),i=0;i<e;i++)o[i]=r[e-i-1];return o}},39928:function(r,t,e){var n=e(26198),o=e(91291),i=RangeError;r.exports=function(r,t,e,a){var u=n(r),f=o(e),c=f<0?u+f:f;if(c>=u||c<0)throw new i("Incorrect index");for(var p=new t(u),y=0;y<u;y++)p[y]=y===c?a:r[y];return p}},36955:function(r,t,e){var n=e(92140),o=e(94901),i=e(44576),a=e(78227),u=a("toStringTag"),f=Object,c="Arguments"===i(function(){return arguments}()),p=function(r,t){try{return r[t]}catch(e){}};r.exports=n?i:function(r){var t,e,n;return void 0===r?"Undefined":null===r?"Null":"string"==typeof(e=p(t=f(r),u))?e:c?i(t):"Object"===(n=i(t))&&o(t.callee)?"Arguments":n}},12211:function(r,t,e){var n=e(79039);r.exports=!n((function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype}))},62106:function(r,t,e){var n=e(50283),o=e(24913);r.exports=function(r,t,e){return e.get&&n(e.get,t,{getter:!0}),e.set&&n(e.set,t,{setter:!0}),o.f(r,t,e)}},94483:function(r,t,e){var n,o,i,a,u=e(24475),f=e(69714),c=e(1548),p=u.structuredClone,y=u.ArrayBuffer,s=u.MessageChannel,d=!1;if(c)d=function(r){p(r,{transfer:[r]})};else if(y)try{s||(n=f("worker_threads"),n&&(s=n.MessageChannel)),s&&(o=new s,i=new y(2),a=function(r){o.port1.postMessage(null,[r])},2===i.byteLength&&(a(i),0===i.byteLength&&(d=a)))}catch(g){}r.exports=d},87290:function(r,t,e){var n=e(50516),o=e(19088);r.exports=!n&&!o&&"object"==typeof window&&"object"==typeof document},50516:function(r){r.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},19088:function(r,t,e){var n=e(24475),o=e(44576);r.exports="process"===o(n.process)},18727:function(r,t,e){var n=e(36955);r.exports=function(r){var t=n(r);return"BigInt64Array"===t||"BigUint64Array"===t}},13925:function(r,t,e){var n=e(20034);r.exports=function(r){return n(r)||null===r}},42787:function(r,t,e){var n=e(39297),o=e(94901),i=e(48981),a=e(66119),u=e(12211),f=a("IE_PROTO"),c=Object,p=c.prototype;r.exports=u?c.getPrototypeOf:function(r){var t=i(r);if(n(t,f))return t[f];var e=t.constructor;return o(e)&&t instanceof e?e.prototype:t instanceof c?p:null}},52967:function(r,t,e){var n=e(46706),o=e(20034),i=e(67750),a=e(73506);r.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r,t=!1,e={};try{r=n(Object.prototype,"__proto__","set"),r(e,[]),t=e instanceof Array}catch(u){}return function(e,n){return i(e),a(n),o(e)?(t?r(e,n):e.__proto__=n,e):e}}():void 0)},1548:function(r,t,e){var n=e(24475),o=e(79039),i=e(77388),a=e(87290),u=e(50516),f=e(19088),c=n.structuredClone;r.exports=!!c&&!o((function(){if(u&&i>92||f&&i>94||a&&i>97)return!1;var r=new ArrayBuffer(8),t=c(r,{transfer:[r]});return 0!==r.byteLength||8!==t.byteLength}))},75854:function(r,t,e){var n=e(72777),o=TypeError;r.exports=function(r){var t=n(r,"number");if("number"==typeof t)throw new o("Can't convert number to bigint");return BigInt(t)}},57696:function(r,t,e){var n=e(91291),o=e(18014),i=RangeError;r.exports=function(r){if(void 0===r)return 0;var t=n(r),e=o(t);if(t!==e)throw new i("Wrong length or index");return e}},92140:function(r,t,e){var n=e(78227),o=n("toStringTag"),i={};i[o]="z",r.exports="[object z]"===String(i)},69714:function(r,t,e){var n=e(19088);r.exports=function(r){try{if(n)return Function('return require("'+r+'")')()}catch(t){}}},16573:function(r,t,e){var n=e(43724),o=e(62106),i=e(3238),a=ArrayBuffer.prototype;n&&!("detached"in a)&&o(a,"detached",{configurable:!0,get:function(){return i(this)}})},77936:function(r,t,e){var n=e(46518),o=e(95636);o&&n({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return o(this,arguments.length?arguments[0]:void 0,!1)}})},78100:function(r,t,e){var n=e(46518),o=e(95636);o&&n({target:"ArrayBuffer",proto:!0},{transfer:function(){return o(this,arguments.length?arguments[0]:void 0,!0)}})},37467:function(r,t,e){var n=e(37628),o=e(94644),i=o.aTypedArray,a=o.exportTypedArrayMethod,u=o.getTypedArrayConstructor;a("toReversed",(function(){return n(i(this),u(this))}))},44732:function(r,t,e){var n=e(94644),o=e(79504),i=e(79306),a=e(35370),u=n.aTypedArray,f=n.getTypedArrayConstructor,c=n.exportTypedArrayMethod,p=o(n.TypedArrayPrototype.sort);c("toSorted",(function(r){void 0!==r&&i(r);var t=u(this),e=a(f(t),t);return p(e,r)}))},79577:function(r,t,e){var n=e(39928),o=e(94644),i=e(18727),a=e(91291),u=e(75854),f=o.aTypedArray,c=o.getTypedArrayConstructor,p=o.exportTypedArrayMethod,y=!!function(){try{new Int8Array(1)["with"](2,{valueOf:function(){throw 8}})}catch(r){return 8===r}}();p("with",{with:function(r,t){var e=f(this),o=a(r),p=i(e)?u(t):+t;return n(e,c(e),o,p)}}["with"],!y)}}]);
//# sourceMappingURL=6262.f269ff68.js.map