UNPKG

gif-frame-count

Version:

在前端项目内获取GIF图片时长、帧数等信息(可在任意一个基于JS开发的框架中运行),包括小程序和app

1 lines 35.6 kB
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["gifParserPlugin"]=e():t["gifParserPlugin"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s="bbce")}({"0139":function(t,e,r){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},"0347":function(t,e,r){"use strict";var n=r("1631"),o=Error,i=n("".replace),c=function(t){return String(new o(t).stack)}("zxcasd"),u=/\n\s*at [^:]*:[^\n]*/,s=u.test(c);t.exports=function(t,e){if(s&&"string"==typeof t&&!o.prepareStackTrace)while(e--)t=i(t,u,"");return t}},"035f":function(t,e,r){"use strict";var n=r("1a43"),o=r("823b"),i=Function.prototype,c=n&&Object.getOwnPropertyDescriptor,u=o(i,"name"),s=u&&"something"===function(){}.name,a=u&&(!n||n&&c(i,"name").configurable);t.exports={EXISTS:u,PROPER:s,CONFIGURABLE:a}},"053a":function(t,e,r){"use strict";var n=r("b0e6"),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},"05cf":function(t,e,r){"use strict";var n=r("1a43"),o=r("f1c0"),i=r("aeda");t.exports=function(t,e,r){n?o.f(t,e,i(0,r)):t[e]=r}},"0741":function(t,e,r){"use strict";var n=r("d443"),o=r("1da6").f,i=r("d354"),c=r("9e5a"),u=r("6ebc"),s=r("7f96"),a=r("65ed");t.exports=function(t,e){var r,f,p,l,d,h,b=t.target,v=t.global,y=t.stat;if(f=v?n:y?n[b]||u(b,{}):n[b]&&n[b].prototype,f)for(p in e){if(d=e[p],t.dontCallGetSet?(h=o(f,p),l=h&&h.value):l=f[p],r=a(v?p:b+(y?".":"#")+p,t.forced),!r&&void 0!==l){if(typeof d==typeof l)continue;s(d,l)}(t.sham||l&&l.sham)&&i(d,"sham",!0),c(f,p,d,t)}}},"0c85":function(t,e,r){"use strict";t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},"10f7":function(t,e,r){"use strict";var n=r("0139");t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},"11da":function(t,e,r){"use strict";var n=r("5ef1"),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i("Can't set "+o(t)+" as a prototype")}},"15a1":function(t,e,r){"use strict";var n=r("2db9"),o=r("b6a4"),i=r("9766"),c=r("95da"),u=r("5896"),s=TypeError;t.exports=function(t,e){var r=arguments.length<2?u(t):e;if(o(r))return i(n(r,t));throw new s(c(t)+" is not iterable")}},1631:function(t,e,r){"use strict";var n=r("10f7"),o=Function.prototype,i=o.call,c=n&&o.bind.bind(i,i);t.exports=n?c:function(t){return function(){return i.apply(t,arguments)}}},"172f":function(t,e,r){"use strict";var n=r("1631"),o=r("0139"),i=r("24cc"),c=Object,u=n("".split);t.exports=o((function(){return!c("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?u(t,""):c(t)}:c},"177f":function(t,e,r){"use strict";var n=r("d443"),o=r("0c85"),i=r("dbf0"),c=n.DataView;t.exports=function(t){if(!o||0!==i(t))return!1;try{return new c(t),!1}catch(e){return!0}}},"1a21":function(t,e,r){"use strict";var n=r("d443"),o=r("b94e"),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(n[t]):n[t]&&n[t][e]}},"1a43":function(t,e,r){"use strict";var n=r("0139");t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"1a87":function(t,e,r){"use strict";var n=r("6e8c"),o=r("d354");t.exports=function(t,e){n(e)&&"cause"in e&&o(t,"cause",e.cause)}},"1d7b":function(t,e,r){"use strict";var n=r("1a43"),o=r("4e3e"),i=r("177f"),c=ArrayBuffer.prototype;n&&!("detached"in c)&&o(c,"detached",{configurable:!0,get:function(){return i(this)}})},"1da6":function(t,e,r){"use strict";var n=r("1a43"),o=r("2db9"),i=r("2d9f"),c=r("aeda"),u=r("c605"),s=r("b2f3"),a=r("823b"),f=r("8d0b"),p=Object.getOwnPropertyDescriptor;e.f=n?p:function(t,e){if(t=u(t),e=s(e),f)try{return p(t,e)}catch(r){}if(a(t,e))return c(!o(i.f,t,e),t[e])}},"21c0":function(t,e,r){"use strict";var n=r("1a21"),o=r("b94e"),i=r("a4e5"),c=r("3fc2"),u=Object;t.exports=c?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return o(e)&&i(e.prototype,u(t))}},2272:function(t,e,r){"use strict";var n=r("b6a4"),o=r("fba7");t.exports=function(t,e){var r=t[e];return o(r)?void 0:n(r)}},"24cc":function(t,e,r){"use strict";var n=r("1631"),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},2690:function(t,e,r){"use strict";var n=r("f2a8"),o=r("6e8c"),i=r("547b"),c=r("11da");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{t=n(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(u){}return function(r,n){return i(r),c(n),o(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0)},"28bc":function(t,e,r){"use strict";var n=r("7f20"),o=r("d443"),i=r("6ebc"),c="__core-js_shared__",u=t.exports=o[c]||i(c,{});(u.versions||(u.versions=[])).push({version:"3.45.1",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",source:"https://github.com/zloirock/core-js"})},"29bd":function(t,e,r){"use strict";var n=r("1a43"),o=r("43a2"),i=r("f1c0"),c=r("9766"),u=r("c605"),s=r("5fa7");e.f=n&&!o?Object.defineProperties:function(t,e){c(t);var r,n=u(e),o=s(e),a=o.length,f=0;while(a>f)i.f(t,r=o[f++],n[r]);return t}},"2c95":function(t,e,r){"use strict";var n=r("1631"),o=r("0139"),i=r("b94e"),c=r("823b"),u=r("1a43"),s=r("035f").CONFIGURABLE,a=r("a919"),f=r("a20d"),p=f.enforce,l=f.get,d=String,h=Object.defineProperty,b=n("".slice),v=n("".replace),y=n([].join),g=u&&!o((function(){return 8!==h((function(){}),"length",{value:8}).length})),w=String(String).split("String"),x=t.exports=function(t,e,r){"Symbol("===b(d(e),0,7)&&(e="["+v(d(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!c(t,"name")||s&&t.name!==e)&&(u?h(t,"name",{value:e,configurable:!0}):t.name=e),g&&r&&c(r,"arity")&&t.length!==r.arity&&h(t,"length",{value:r.arity});try{r&&c(r,"constructor")&&r.constructor?u&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var n=p(t);return c(n,"source")||(n.source=y(w,"string"==typeof e?e:"")),t};Function.prototype.toString=x((function(){return i(this)&&l(this).source||a(this)}),"toString")},"2d9f":function(t,e,r){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!n.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:n},"2db9":function(t,e,r){"use strict";var n=r("10f7"),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},"2f57":function(t,e,r){"use strict";var n=r("5315"),o=r("b6a4"),i=r("10f7"),c=n(n.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?c(t,e):function(){return t.apply(e,arguments)}}},3344:function(t,e,r){"use strict";var n=r("1a21"),o=r("823b"),i=r("d354"),c=r("a4e5"),u=r("2690"),s=r("7f96"),a=r("4005"),f=r("77e1"),p=r("e308"),l=r("1a87"),d=r("42ad"),h=r("1a43"),b=r("7f20");t.exports=function(t,e,r,v){var y="stackTraceLimit",g=v?2:1,w=t.split("."),x=w[w.length-1],m=n.apply(null,w);if(m){var O=m.prototype;if(!b&&o(O,"cause")&&delete O.cause,!r)return m;var S=n("Error"),E=e((function(t,e){var r=p(v?e:t,void 0),n=v?new m(t):new m;return void 0!==r&&i(n,"message",r),d(n,E,n.stack,2),this&&c(O,this)&&f(n,this,E),arguments.length>g&&l(n,arguments[g]),n}));if(E.prototype=O,"Error"!==x?u?u(E,S):s(E,S,{name:!0}):h&&y in m&&(a(E,m,y),a(E,m,"prepareStackTrace")),s(E,m),!b)try{O.name!==x&&i(O,"name",x),O.constructor=E}catch(j){}return E}}},"33e3":function(t,e,r){"use strict";var n=r("f71d");t.exports=function(t){return n(t.length)}},"34d8":function(t,e,r){"use strict";var n=r("d443"),o=r("0139"),i=r("e14d"),c=r("e0ba"),u=n.structuredClone;t.exports=!!u&&!o((function(){if("DENO"===c&&i>92||"NODE"===c&&i>94||"BROWSER"===c&&i>97)return!1;var t=new ArrayBuffer(8),e=u(t,{transfer:[t]});return 0!==t.byteLength||8!==e.byteLength}))},3745:function(t,e,r){"use strict";var n=r("0741"),o=r("d443"),i=r("e1cb"),c=r("9766"),u=r("b94e"),s=r("dfd2"),a=r("4e3e"),f=r("05cf"),p=r("0139"),l=r("823b"),d=r("e026"),h=r("6efd").IteratorPrototype,b=r("1a43"),v=r("7f20"),y="constructor",g="Iterator",w=d("toStringTag"),x=TypeError,m=o[g],O=v||!u(m)||m.prototype!==h||!p((function(){m({})})),S=function(){if(i(this,h),s(this)===h)throw new x("Abstract class Iterator not directly constructable")},E=function(t,e){b?a(h,t,{configurable:!0,get:function(){return e},set:function(e){if(c(this),this===h)throw new x("You can't redefine this property");l(this,t)?this[t]=e:f(this,t,e)}}):h[t]=e};l(h,w)||E(w,g),!O&&l(h,y)&&h[y]!==Object||E(y,S),S.prototype=h,n({global:!0,constructor:!0,forced:O},{Iterator:S})},"3bbe":function(t,e,r){"use strict";t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},"3fc2":function(t,e,r){"use strict";var n=r("aff7");t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},4005:function(t,e,r){"use strict";var n=r("f1c0").f;t.exports=function(t,e,r){r in t||n(t,r,{configurable:!0,get:function(){return e[r]},set:function(t){e[r]=t}})}},4127:function(t,e,r){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"42ad":function(t,e,r){"use strict";var n=r("d354"),o=r("0347"),i=r("c648"),c=Error.captureStackTrace;t.exports=function(t,e,r,u){i&&(c?c(t,e):n(t,"stack",o(r,u)))}},"43a2":function(t,e,r){"use strict";var n=r("1a43"),o=r("0139");t.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},"46d0":function(t,e,r){"use strict";var n=r("e0ba");t.exports="NODE"===n},4827:function(t,e,r){"use strict";var n=r("d443"),o=n.navigator,i=o&&o.userAgent;t.exports=i?String(i):""},"4ac4":function(t,e,r){"use strict";var n,o,i,c,u=r("d443"),s=r("e05c"),a=r("34d8"),f=u.structuredClone,p=u.ArrayBuffer,l=u.MessageChannel,d=!1;if(a)d=function(t){f(t,{transfer:[t]})};else if(p)try{l||(n=s("worker_threads"),n&&(l=n.MessageChannel)),l&&(o=new l,i=new p(2),c=function(t){o.port1.postMessage(null,[t])},2===i.byteLength&&(c(i),0===i.byteLength&&(d=c)))}catch(h){}t.exports=d},"4e3e":function(t,e,r){"use strict";var n=r("2c95"),o=r("f1c0");t.exports=function(t,e,r){return r.get&&n(r.get,e,{getter:!0}),r.set&&n(r.set,e,{setter:!0}),o.f(t,e,r)}},5096:function(t,e,r){"use strict";var n=r("d443"),o=r("b94e"),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},5315:function(t,e,r){"use strict";var n=r("24cc"),o=r("1631");t.exports=function(t){if("Function"===n(t))return o(t)}},"547b":function(t,e,r){"use strict";var n=r("fba7"),o=TypeError;t.exports=function(t){if(n(t))throw new o("Can't call method on "+t);return t}},5896:function(t,e,r){"use strict";var n=r("efd0"),o=r("2272"),i=r("fba7"),c=r("b672"),u=r("e026"),s=u("iterator");t.exports=function(t){if(!i(t))return o(t,s)||o(t,"@@iterator")||c[n(t)]}},"5b89":function(t,e,r){"use strict";var n=r("547b"),o=Object;t.exports=function(t){return o(n(t))}},"5ef1":function(t,e,r){"use strict";var n=r("6e8c");t.exports=function(t){return n(t)||null===t}},"5fa7":function(t,e,r){"use strict";var n=r("7b86"),o=r("4127");t.exports=Object.keys||function(t){return n(t,o)}},"60cf":function(t,e,r){"use strict";var n=r("0741"),o=r("a066").left,i=r("f2b2"),c=r("e14d"),u=r("46d0"),s=!u&&c>79&&c<83,a=s||!i("reduce");n({target:"Array",proto:!0,forced:a},{reduce:function(t){var e=arguments.length;return o(this,t,e,e>1?arguments[1]:void 0)}})},"652f":function(t,e,r){"use strict";var n=r("2db9"),o=r("b94e"),i=r("6e8c"),c=TypeError;t.exports=function(t,e){var r,u;if("string"===e&&o(r=t.toString)&&!i(u=n(r,t)))return u;if(o(r=t.valueOf)&&!i(u=n(r,t)))return u;if("string"!==e&&o(r=t.toString)&&!i(u=n(r,t)))return u;throw new c("Can't convert object to primitive value")}},"65ed":function(t,e,r){"use strict";var n=r("0139"),o=r("b94e"),i=/#|\.prototype\./,c=function(t,e){var r=s[u(t)];return r===f||r!==a&&(o(e)?n(e):!!e)},u=c.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=c.data={},a=c.NATIVE="N",f=c.POLYFILL="P";t.exports=c},"67c9":function(t,e,r){"use strict";var n=r("0741"),o=r("c762");o&&n({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return o(this,arguments.length?arguments[0]:void 0,!1)}})},"6bba":function(t,e,r){"use strict";var n=r("1631"),o=0,i=Math.random(),c=n(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+c(++o+i,36)}},"6e53":function(t,e,r){"use strict";t.exports={}},"6e8c":function(t,e,r){"use strict";var n=r("b94e");t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},"6e9f":function(t,e,r){"use strict";var n=r("24cc");t.exports=Array.isArray||function(t){return"Array"===n(t)}},"6ebc":function(t,e,r){"use strict";var n=r("d443"),o=Object.defineProperty;t.exports=function(t,e){try{o(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},"6efd":function(t,e,r){"use strict";var n,o,i,c=r("0139"),u=r("b94e"),s=r("6e8c"),a=r("c1ac"),f=r("dfd2"),p=r("9e5a"),l=r("e026"),d=r("7f20"),h=l("iterator"),b=!1;[].keys&&(i=[].keys(),"next"in i?(o=f(f(i)),o!==Object.prototype&&(n=o)):b=!0);var v=!s(n)||c((function(){var t={};return n[h].call(t)!==t}));v?n={}:d&&(n=a(n)),u(n[h])||p(n,h,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:b}},"74e2":function(t,e,r){"use strict";var n=r("177f"),o=TypeError;t.exports=function(t){if(n(t))throw new o("ArrayBuffer is detached");return t}},"75ad":function(t,e,r){"use strict";var n=r("0741"),o=r("5b89"),i=r("33e3"),c=r("cc43"),u=r("82f7"),s=r("0139"),a=s((function(){return 4294967297!==[].push.call({length:4294967296},1)})),f=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},p=a||!f();n({target:"Array",proto:!0,arity:1,forced:p},{push:function(t){var e=o(this),r=i(e),n=arguments.length;u(r+n);for(var s=0;s<n;s++)e[r]=arguments[s],r++;return c(e,r),r}})},"77bc":function(t,e,r){"use strict";var n=r("0741"),o=r("d443"),i=r("b471"),c=r("3344"),u="WebAssembly",s=o[u],a=7!==new Error("e",{cause:7}).cause,f=function(t,e){var r={};r[t]=c(t,e,a),n({global:!0,constructor:!0,arity:1,forced:a},r)},p=function(t,e){if(s&&s[t]){var r={};r[t]=c(u+"."+t,e,a),n({target:u,stat:!0,constructor:!0,arity:1,forced:a},r)}};f("Error",(function(t){return function(e){return i(t,this,arguments)}})),f("EvalError",(function(t){return function(e){return i(t,this,arguments)}})),f("RangeError",(function(t){return function(e){return i(t,this,arguments)}})),f("ReferenceError",(function(t){return function(e){return i(t,this,arguments)}})),f("SyntaxError",(function(t){return function(e){return i(t,this,arguments)}})),f("TypeError",(function(t){return function(e){return i(t,this,arguments)}})),f("URIError",(function(t){return function(e){return i(t,this,arguments)}})),p("CompileError",(function(t){return function(e){return i(t,this,arguments)}})),p("LinkError",(function(t){return function(e){return i(t,this,arguments)}})),p("RuntimeError",(function(t){return function(e){return i(t,this,arguments)}}))},"77e1":function(t,e,r){"use strict";var n=r("b94e"),o=r("6e8c"),i=r("2690");t.exports=function(t,e,r){var c,u;return i&&n(c=e.constructor)&&c!==r&&o(u=c.prototype)&&u!==r.prototype&&i(t,u),t}},"792b":function(t,e,r){"use strict";var n=r("2db9"),o=r("6e8c"),i=r("21c0"),c=r("2272"),u=r("652f"),s=r("e026"),a=TypeError,f=s("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var r,s=c(t,f);if(s){if(void 0===e&&(e="default"),r=n(s,t,e),!o(r)||i(r))return r;throw new a("Can't convert object to primitive value")}return void 0===e&&(e="number"),u(t,e)}},"7b86":function(t,e,r){"use strict";var n=r("1631"),o=r("823b"),i=r("c605"),c=r("8431").indexOf,u=r("6e53"),s=n([].push);t.exports=function(t,e){var r,n=i(t),a=0,f=[];for(r in n)!o(u,r)&&o(n,r)&&s(f,r);while(e.length>a)o(n,r=e[a++])&&(~c(f,r)||s(f,r));return f}},"7f20":function(t,e,r){"use strict";t.exports=!1},"7f96":function(t,e,r){"use strict";var n=r("823b"),o=r("89fb"),i=r("1da6"),c=r("f1c0");t.exports=function(t,e,r){for(var u=o(e),s=c.f,a=i.f,f=0;f<u.length;f++){var p=u[f];n(t,p)||r&&n(r,p)||s(t,p,a(e,p))}}},"823b":function(t,e,r){"use strict";var n=r("1631"),o=r("5b89"),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},"82f7":function(t,e,r){"use strict";var n=TypeError,o=9007199254740991;t.exports=function(t){if(t>o)throw n("Maximum allowed index exceeded");return t}},"83e6":function(t,e,r){"use strict";var n=r("a6ab"),o=r("6bba"),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},8431:function(t,e,r){"use strict";var n=r("c605"),o=r("053a"),i=r("33e3"),c=function(t){return function(e,r,c){var u=n(e),s=i(u);if(0===s)return!t&&-1;var a,f=o(c,s);if(t&&r!==r){while(s>f)if(a=u[f++],a!==a)return!0}else for(;s>f;f++)if((t||f in u)&&u[f]===r)return t||f||0;return!t&&-1}};t.exports={includes:c(!0),indexOf:c(!1)}},"89fb":function(t,e,r){"use strict";var n=r("1a21"),o=r("1631"),i=r("a3bb"),c=r("91c9"),u=r("9766"),s=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(u(t)),r=c.f;return r?s(e,r(t)):e}},"8d0b":function(t,e,r){"use strict";var n=r("1a43"),o=r("0139"),i=r("d645");t.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},"91c9":function(t,e,r){"use strict";e.f=Object.getOwnPropertySymbols},"95da":function(t,e,r){"use strict";var n=String;t.exports=function(t){try{return n(t)}catch(e){return"Object"}}},9766:function(t,e,r){"use strict";var n=r("6e8c"),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not an object")}},"9e5a":function(t,e,r){"use strict";var n=r("b94e"),o=r("f1c0"),i=r("2c95"),c=r("6ebc");t.exports=function(t,e,r,u){u||(u={});var s=u.enumerable,a=void 0!==u.name?u.name:e;if(n(r)&&i(r,a,u),u.global)s?t[e]=r:c(e,r);else{try{u.unsafe?t[e]&&(s=!0):delete t[e]}catch(f){}s?t[e]=r:o.f(t,e,{value:r,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return t}},a066:function(t,e,r){"use strict";var n=r("b6a4"),o=r("5b89"),i=r("172f"),c=r("33e3"),u=TypeError,s="Reduce of empty array with no initial value",a=function(t){return function(e,r,a,f){var p=o(e),l=i(p),d=c(p);if(n(r),0===d&&a<2)throw new u(s);var h=t?d-1:0,b=t?-1:1;if(a<2)while(1){if(h in l){f=l[h],h+=b;break}if(h+=b,t?h<0:d<=h)throw new u(s)}for(;t?h>=0:d>h;h+=b)h in l&&(f=r(f,l[h],h,p));return f}};t.exports={left:a(!1),right:a(!0)}},a195:function(t,e,r){"use strict";var n=r("e026"),o=n("toStringTag"),i={};i[o]="z",t.exports="[object z]"===String(i)},a20d:function(t,e,r){"use strict";var n,o,i,c=r("5096"),u=r("d443"),s=r("6e8c"),a=r("d354"),f=r("823b"),p=r("28bc"),l=r("83e6"),d=r("6e53"),h="Object already initialized",b=u.TypeError,v=u.WeakMap,y=function(t){return i(t)?o(t):n(t,{})},g=function(t){return function(e){var r;if(!s(e)||(r=o(e)).type!==t)throw new b("Incompatible receiver, "+t+" required");return r}};if(c||p.state){var w=p.state||(p.state=new v);w.get=w.get,w.has=w.has,w.set=w.set,n=function(t,e){if(w.has(t))throw new b(h);return e.facade=t,w.set(t,e),e},o=function(t){return w.get(t)||{}},i=function(t){return w.has(t)}}else{var x=l("state");d[x]=!0,n=function(t,e){if(f(t,x))throw new b(h);return e.facade=t,a(t,x,e),e},o=function(t){return f(t,x)?t[x]:{}},i=function(t){return f(t,x)}}t.exports={set:n,get:o,has:i,enforce:y,getterFor:g}},a282:function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}t.exports=r},a3bb:function(t,e,r){"use strict";var n=r("7b86"),o=r("4127"),i=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},a4e5:function(t,e,r){"use strict";var n=r("1631");t.exports=n({}.isPrototypeOf)},a6ab:function(t,e,r){"use strict";var n=r("28bc");t.exports=function(t,e){return n[t]||(n[t]=e||{})}},a876:function(t,e,r){"use strict";var n=Math.ceil,o=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?o:n)(e)}},a919:function(t,e,r){"use strict";var n=r("1631"),o=r("b94e"),i=r("28bc"),c=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return c(t)}),t.exports=i.inspectSource},aeda:function(t,e,r){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},af81:function(t,e,r){"use strict";var n=r("2db9"),o=r("9766"),i=r("2272");t.exports=function(t,e,r){var c,u;o(t);try{if(c=i(t,"return"),!c){if("throw"===e)throw r;return r}c=n(c,t)}catch(s){u=!0,c=s}if("throw"===e)throw r;if(u)throw c;return o(c),r}},aff7:function(t,e,r){"use strict";var n=r("e14d"),o=r("0139"),i=r("d443"),c=i.String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!c(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},b0e6:function(t,e,r){"use strict";var n=r("a876");t.exports=function(t){var e=+t;return e!==e||0===e?0:n(e)}},b2f3:function(t,e,r){"use strict";var n=r("792b"),o=r("21c0");t.exports=function(t){var e=n(t,"string");return o(e)?e:e+""}},b471:function(t,e,r){"use strict";var n=r("10f7"),o=Function.prototype,i=o.apply,c=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?c.bind(i):function(){return c.apply(i,arguments)})},b672:function(t,e,r){"use strict";t.exports={}},b6a4:function(t,e,r){"use strict";var n=r("b94e"),o=r("95da"),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a function")}},b94e:function(t,e,r){"use strict";var n="object"==typeof document&&document.all;t.exports="undefined"==typeof n&&void 0!==n?function(t){return"function"==typeof t||t===n}:function(t){return"function"==typeof t}},bbce:function(t,e,r){"use strict";if(r.r(e),"undefined"!==typeof window){var n=window.document.currentScript,o=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(r.p=o[1])}r("77bc"),r("75ad"),r("1d7b"),r("ed0f"),r("67c9");function i(t){const e=[];for(let r=7;r>=0;r--)e.push(t&1<<r?1:0);return e}r("60cf"),r("3745"),r("fd8c");function c(t){return 3*Math.pow(2,1+s(t.slice(5,8)))}function u(t){return t/100*1e3}function s(t){return t.reduce((function(t,e){return 2*t+e}),0)}class a{constructor(){this.imageInfo={identifier:"0",localPalette:!1,localPaletteSize:0,interlace:!1,comments:[],text:"",left:0,top:0,width:0,height:0,delay:0,disposal:0}}}function f(t,e,r){const n={data:"",size:0};while(1){const o=t.getUint8(e+n.size);if(0===o){n.size++;break}r&&(n.data+=p(t,o,e+n.size+1)),n.size+=o+1}return n}function p(t,e,r){let n="";for(let o=0;o<e;++o){const e=t.getUint8(r+o);n+=String.fromCharCode(e>127?65533:e)}return n}function l(t,e,r){const n=[],o=i(t.getUint8(10));if(o[0]){const i=c(o);e.globalPalette=!0,e.globalPaletteSize=i/3,r+=i;for(let r=0;r<e.globalPaletteSize;r++){const e=13+3*r,o=t.getUint8(e),i=t.getUint8(e+1),c=t.getUint8(e+2);n.push({r:o,g:i,b:c})}}return r+=13,{pos:r,PaletteColorsRGB:n}}class d{constructor(t){this.urlLoadStatus=void 0,this.pos=0,this.index=0,this.gifInfo={valid:!1,globalPalette:!1,globalPaletteSize:0,globalPaletteColorsRGB:[],loopCount:0,height:0,width:0,animated:!1,images:[],duration:0,identifier:"0"},t&&(this.urlLoadStatus=!1,fetch(t).then(t=>t.arrayBuffer()).then(t=>new DataView(t)).then(t=>{this.urlLoadStatus=!0,this.dataView=t}))}async getInfo(t){if(await this.validityCheck(t),null==this.dataView)throw new Error("未找到GIF解析源, 请检查参数是否正确传入");if(18249!=this.dataView.getUint16(0)||17976!=this.dataView.getUint16(2))return this.gifInfo;this.gifInfo.valid=!0,this.gifInfo.width=this.dataView.getUint16(6,!0),this.gifInfo.height=this.dataView.getUint16(8,!0);const{pos:e,PaletteColorsRGB:r}=l(this.dataView,this.gifInfo,this.pos);this.pos=e,this.gifInfo.globalPaletteColorsRGB=r;let n=new a;while(1)try{const t=this.dataView.getUint8(this.pos);switch(t){case 33:this.parseGraphicsControlBlock(this.dataView,n);break;case 44:n.imageInfo.left=this.dataView.getUint16(this.pos+1,!0),n.imageInfo.top=this.dataView.getUint16(this.pos+3,!0),n.imageInfo.width=this.dataView.getUint16(this.pos+5,!0),n.imageInfo.height=this.dataView.getUint16(this.pos+7,!0);const t=i(this.dataView.getUint8(this.pos+9));if(t[0]){const e=c(t);n.imageInfo.localPalette=!0,n.imageInfo.localPaletteSize=e/3,this.pos+=e}t[1]&&(n.imageInfo.interlace=!0),this.gifInfo.images.push(n.imageInfo),this.index++,n=new a,n.imageInfo.identifier=this.index.toString(),this.gifInfo.images.length>1&&!this.gifInfo.animated&&(this.gifInfo.animated=!0),this.pos+=11;const e=f(this.dataView,this.pos,!1);this.pos+=e.size;break;case 59:return this.gifInfo;default:this.pos++;break}}catch(o){return this.gifInfo.valid=!1,this.gifInfo}}gifLoadStatus(){return new Promise(t=>{let e=0;const r=5e3,n=setInterval(()=>{e+=100,e>=r&&(clearInterval(n),t(!1)),!0===this.urlLoadStatus&&(clearInterval(n),t(!0))},100)})}parseGraphicsControlBlock(t,e){const r=t.getUint8(this.pos+1);if(249===r){const r=t.getUint8(this.pos+2);if(4===r){const r=u(t.getUint16(this.pos+4,!0));e.imageInfo.delay=r,this.gifInfo.duration+=r;const n=i(t.getUint8(this.pos+3)),o=n.slice(3,6).join("");return e.imageInfo.disposal=parseInt(o,2),void(this.pos+=8)}return void this.pos++}this.pos+=2;const n=f(t,this.pos,!0);switch(r){case 255:const r=p(t,8,this.pos+1);"NETSCAPE"===r&&(this.gifInfo.loopCount=t.getUint8(this.pos+14));break;case 206:e.imageInfo.identifier=n.data;break;case 254:e.imageInfo.comments.push(n.data);break;case 1:e.imageInfo.text=n.data;break;default:break}this.pos+=n.size}async validityCheck(t){if("undefined"!==typeof this.urlLoadStatus&&!this.urlLoadStatus){const t=await this.gifLoadStatus();if(!t)throw new Error("GIF加载超时")}if(t){const e=t;if(e instanceof ArrayBuffer&&e.byteLength<10)return this.gifInfo;if(e instanceof ArrayBuffer)this.dataView=new DataView(e);else{const t=await e.arrayBuffer();this.dataView=new DataView(t)}}}}e["default"]=d},c1ac:function(t,e,r){"use strict";var n,o=r("9766"),i=r("29bd"),c=r("4127"),u=r("6e53"),s=r("dcdc"),a=r("d645"),f=r("83e6"),p=">",l="<",d="prototype",h="script",b=f("IE_PROTO"),v=function(){},y=function(t){return l+h+p+t+l+"/"+h+p},g=function(t){t.write(y("")),t.close();var e=t.parentWindow.Object;return t=null,e},w=function(){var t,e=a("iframe"),r="java"+h+":";return e.style.display="none",s.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(y("document.F=Object")),t.close(),t.F},x=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}x="undefined"!=typeof document?document.domain&&n?g(n):w():g(n);var t=c.length;while(t--)delete x[d][c[t]];return x()};u[b]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(v[d]=o(t),r=new v,v[d]=null,r[b]=t):r=x(),void 0===e?r:i.f(r,e)}},c605:function(t,e,r){"use strict";var n=r("172f"),o=r("547b");t.exports=function(t){return n(o(t))}},c648:function(t,e,r){"use strict";var n=r("0139"),o=r("aeda");t.exports=!n((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",o(1,7)),7!==t.stack)}))},c762:function(t,e,r){"use strict";var n=r("d443"),o=r("1631"),i=r("f2a8"),c=r("cbf1"),u=r("74e2"),s=r("dbf0"),a=r("4ac4"),f=r("34d8"),p=n.structuredClone,l=n.ArrayBuffer,d=n.DataView,h=Math.min,b=l.prototype,v=d.prototype,y=o(b.slice),g=i(b,"resizable","get"),w=i(b,"maxByteLength","get"),x=o(v.getInt8),m=o(v.setInt8);t.exports=(f||a)&&function(t,e,r){var n,o=s(t),i=void 0===e?o:c(e),b=!g||!g(t);if(u(t),f&&(t=p(t,{transfer:[t]}),o===i&&(r||b)))return t;if(o>=i&&(!r||b))n=y(t,0,i);else{var v=r&&!b&&w?{maxByteLength:w(t)}:void 0;n=new l(i,v);for(var O=new d(t),S=new d(n),E=h(i,o),j=0;j<E;j++)m(S,j,x(O,j))}return f||a(t),n}},ca15:function(t,e,r){"use strict";var n=r("2f57"),o=r("2db9"),i=r("9766"),c=r("95da"),u=r("e453"),s=r("33e3"),a=r("a4e5"),f=r("15a1"),p=r("5896"),l=r("af81"),d=TypeError,h=function(t,e){this.stopped=t,this.result=e},b=h.prototype;t.exports=function(t,e,r){var v,y,g,w,x,m,O,S=r&&r.that,E=!(!r||!r.AS_ENTRIES),j=!(!r||!r.IS_RECORD),I=!(!r||!r.IS_ITERATOR),P=!(!r||!r.INTERRUPTED),T=n(e,S),k=function(t){return v&&l(v,"normal"),new h(!0,t)},A=function(t){return E?(i(t),P?T(t[0],t[1],k):T(t[0],t[1])):P?T(t,k):T(t)};if(j)v=t.iterator;else if(I)v=t;else{if(y=p(t),!y)throw new d(c(t)+" is not iterable");if(u(y)){for(g=0,w=s(t);w>g;g++)if(x=A(t[g]),x&&a(b,x))return x;return new h(!1)}v=f(t,y)}m=j?t.next:v.next;while(!(O=o(m,v)).done){try{x=A(O.value)}catch(R){l(v,"throw",R)}if("object"==typeof x&&x&&a(b,x))return x}return new h(!1)}},cbf1:function(t,e,r){"use strict";var n=r("b0e6"),o=r("f71d"),i=RangeError;t.exports=function(t){if(void 0===t)return 0;var e=n(t),r=o(e);if(e!==r)throw new i("Wrong length or index");return r}},cc43:function(t,e,r){"use strict";var n=r("1a43"),o=r("6e9f"),i=TypeError,c=Object.getOwnPropertyDescriptor,u=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=u?function(t,e){if(o(t)&&!c(t,"length").writable)throw new i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},d354:function(t,e,r){"use strict";var n=r("1a43"),o=r("f1c0"),i=r("aeda");t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},d443:function(t,e,r){"use strict";(function(e){var r=function(t){return t&&t.Math===Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this,r("a282"))},d645:function(t,e,r){"use strict";var n=r("d443"),o=r("6e8c"),i=n.document,c=o(i)&&o(i.createElement);t.exports=function(t){return c?i.createElement(t):{}}},dbf0:function(t,e,r){"use strict";var n=r("d443"),o=r("f2a8"),i=r("24cc"),c=n.ArrayBuffer,u=n.TypeError;t.exports=c&&o(c.prototype,"byteLength","get")||function(t){if("ArrayBuffer"!==i(t))throw new u("ArrayBuffer expected");return t.byteLength}},dcdc:function(t,e,r){"use strict";var n=r("1a21");t.exports=n("document","documentElement")},dfcf:function(t,e,r){"use strict";var n=r("efd0"),o=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return o(t)}},dfd2:function(t,e,r){"use strict";var n=r("823b"),o=r("b94e"),i=r("5b89"),c=r("83e6"),u=r("f15f"),s=c("IE_PROTO"),a=Object,f=a.prototype;t.exports=u?a.getPrototypeOf:function(t){var e=i(t);if(n(e,s))return e[s];var r=e.constructor;return o(r)&&e instanceof r?r.prototype:e instanceof a?f:null}},e026:function(t,e,r){"use strict";var n=r("d443"),o=r("a6ab"),i=r("823b"),c=r("6bba"),u=r("aff7"),s=r("3fc2"),a=n.Symbol,f=o("wks"),p=s?a["for"]||a:a&&a.withoutSetter||c;t.exports=function(t){return i(f,t)||(f[t]=u&&i(a,t)?a[t]:p("Symbol."+t)),f[t]}},e05c:function(t,e,r){"use strict";var n=r("d443"),o=r("46d0");t.exports=function(t){if(o){try{return n.process.getBuiltinModule(t)}catch(e){}try{return Function('return require("'+t+'")')()}catch(e){}}}},e0ba:function(t,e,r){"use strict";var n=r("d443"),o=r("4827"),i=r("24cc"),c=function(t){return o.slice(0,t.length)===t};t.exports=function(){return c("Bun/")?"BUN":c("Cloudflare-Workers")?"CLOUDFLARE":c("Deno/")?"DENO":c("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"}()},e14d:function(t,e,r){"use strict";var n,o,i=r("d443"),c=r("4827"),u=i.process,s=i.Deno,a=u&&u.versions||s&&s.version,f=a&&a.v8;f&&(n=f.split("."),o=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&c&&(n=c.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=c.match(/Chrome\/(\d+)/),n&&(o=+n[1]))),t.exports=o},e1cb:function(t,e,r){"use strict";var n=r("a4e5"),o=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw new o("Incorrect invocation")}},e308:function(t,e,r){"use strict";var n=r("dfcf");t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},e453:function(t,e,r){"use strict";var n=r("e026"),o=r("b672"),i=n("iterator"),c=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||c[i]===t)}},ed0f:function(t,e,r){"use strict";var n=r("0741"),o=r("c762");o&&n({target:"ArrayBuffer",proto:!0},{transfer:function(){return o(this,arguments.length?arguments[0]:void 0,!0)}})},efd0:function(t,e,r){"use strict";var n=r("a195"),o=r("b94e"),i=r("24cc"),c=r("e026"),u=c("toStringTag"),s=Object,a="Arguments"===i(function(){return arguments}()),f=function(t,e){try{return t[e]}catch(r){}};t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=f(e=s(t),u))?r:a?i(e):"Object"===(n=i(e))&&o(e.callee)?"Arguments":n}},f15f:function(t,e,r){"use strict";var n=r("0139");t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},f1c0:function(t,e,r){"use strict";var n=r("1a43"),o=r("8d0b"),i=r("43a2"),c=r("9766"),u=r("b2f3"),s=TypeError,a=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p="enumerable",l="configurable",d="writable";e.f=n?i?function(t,e,r){if(c(t),e=u(e),c(r),"function"===typeof t&&"prototype"===e&&"value"in r&&d in r&&!r[d]){var n=f(t,e);n&&n[d]&&(t[e]=r.value,r={configurable:l in r?r[l]:n[l],enumerable:p in r?r[p]:n[p],writable:!1})}return a(t,e,r)}:a:function(t,e,r){if(c(t),e=u(e),c(r),o)try{return a(t,e,r)}catch(n){}if("get"in r||"set"in r)throw new s("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},f2a8:function(t,e,r){"use strict";var n=r("1631"),o=r("b6a4");t.exports=function(t,e,r){try{return n(o(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(i){}}},f2b2:function(t,e,r){"use strict";var n=r("0139");t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){return 1},1)}))}},f539:function(t,e,r){"use strict";var n=r("d443");t.exports=function(t,e){var r=n.Iterator,o=r&&r.prototype,i=o&&o[t],c=!1;if(i)try{i.call({next:function(){return{done:!0}},return:function(){c=!0}},-1)}catch(u){u instanceof e||(c=!1)}if(!c)return i}},f71d:function(t,e,r){"use strict";var n=r("b0e6"),o=Math.min;t.exports=function(t){var e=n(t);return e>0?o(e,9007199254740991):0}},fba7:function(t,e,r){"use strict";t.exports=function(t){return null===t||void 0===t}},fd8c:function(t,e,r){"use strict";var n=r("0741"),o=r("ca15"),i=r("b6a4"),c=r("9766"),u=r("3bbe"),s=r("af81"),a=r("f539"),f=r("b471"),p=r("0139"),l=TypeError,d=p((function(){[].keys().reduce((function(){}),void 0)})),h=!d&&a("reduce",l);n({target:"Iterator",proto:!0,real:!0,forced:d||h},{reduce:function(t){c(this);try{i(t)}catch(p){s(this,"throw",p)}var e=arguments.length<2,r=e?void 0:arguments[1];if(h)return f(h,this,e?[t]:[t,r]);var n=u(this),a=0;if(o(n,(function(n){e?(e=!1,r=n):r=t(r,n,a),a++}),{IS_RECORD:!0}),e)throw new l("Reduce of empty iterator with no initial value");return r}})}})["default"]}));