7 lines
60 KiB
JavaScript
7 lines
60 KiB
JavaScript
|
const _r=typeof window<"u"?window:self,fe=navigator?navigator.userAgent:null;navigator.userAgent.search(/OS X|iPhone|iPad|iOS/i);navigator.userAgent.toLowerCase().indexOf("android");(()=>{try{return+navigator.userAgent.match(/Chrom(?:e|ium)\/(.+?)(?:\s|\.)/)[1]}catch{}})();const Er="safari"in _r||!!(fe&&(/\b(iPad|iPhone|iPod)\b/.test(fe)||fe.match("Safari")&&!fe.match("Chrome")));navigator.userAgent.toLowerCase().indexOf("firefox")>-1;(navigator.maxTouchPoints===void 0||navigator.maxTouchPoints>0)&&navigator.userAgent.search(/iOS|iPhone OS|Android|BlackBerry|BB10|Series ?[64]0|J2ME|MIDP|opera mini|opera mobi|mobi.+Gecko|Windows Phone/i)!=-1;let he;if(!Er)he=!0;else try{he=+navigator.userAgent.match(/Version\/(.+?) /)[1]>=14}catch{he=!1}var kr=he;const Dr=typeof ImageBitmap<"u";function Ar(e,r){return new Promise(n=>{const o=new FileReader;o.addEventListener("loadend",i=>{n(i.target.result)}),o[r](e)})}function Sr(e){return Ar(e,"readAsText")}const br=[[[16219713,13335381],[16757049,16168585],[16765248,16764327],[16768889,16768965]],[[16219713,10771e3],[16757049,14653547],[16765248,15577475],[16768889,16040864]],[[16219713,7354903],[16757049,11233085],[16765248,12812110],[16768889,14194279]],[[16219713,4858889],[16757049,8207886],[16765248,9852201],[16768889,11100983]],[[16219713,2101002],[16757049,4270372],[16765248,5848375],[16768889,6505791]]],Fe=e=>Math.round(Math.min(Math.max(e,0),1)*255);function Pr(e,r){const n=br[Math.max(r-1,0)],o=s=>{const u=s.c.k,c=Fe(u[2])|Fe(u[1])<<8|Fe(u[0])<<16,d=n.find(m=>m[0]===c);d&&(u[0]=(d[1]>>16&255)/255,u[1]=(d[1]>>8&255)/255,u[2]=(d[1]&255)/255)},i=s=>{switch(s.ty){case"st":case"fl":o(s);break}s.hasOwnProperty("it")&&a(s.it)},a=s=>{for(const u of s)i(u)};try{for(const s of e.layers)if(s.shapes)for(const u of s.shapes){if(!u.it){i(u);continue}a(u.it)}}catch(s){console.warn("cant apply replacements",s,e,r)}}var f=typeof f<"u"?f:{},J={},I;for(I in f)f.hasOwnProperty(I)&&(J[I]=f[I]);var xe="./this.program",Ae=!1,z=!1,se=!1,qe=!1;Ae=typeof window=="object";z=typeof importScripts=="function";se=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string";qe=!Ae&&!se&&!z;var N="";function Rr(e){return f.locateFile?f.locateFile(e,N):N+e}var G,$,ge,Me;se?(z?N=require("path").dirname(N)+"/":N=__dirname+"/",G=function(r,n){return ge||(ge=require("fs")),Me||(Me=require("path")),r=Me.normalize(r),ge.readFileSync(r,n?null:"utf8")},$=function(r){var n=G(r,!0);return n.buffer||(n=new Uint8Array(n)),oe(n.buffer),n},process.argv.length>1&&(xe=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),process.on("uncaughtException",function(e){if(!(e instanceof xn))throw e}),process.on("unhandledRejection",R),f.inspect=function(){return"[Emscripten Module object]"}):qe?(typeof read<"u"&&(G=function(r){return read(r)}),$=function(r){var n;return typeof readbuffer=="function"?new Uint8Array(readbuffer(r)):(n=read(r,"binary"),oe(typeof n=="object"),n)},typeof scriptArgs<"u"?scriptArgs:typeof arguments<"u"&&arguments,typeof print<"u"&&(typeof console>"u"&&(console={}),console.log=print,console.warn=console.error=typeof printErr<"u"?printErr:print)):(Ae||z)&&(z?N=self.location.href:document.currentScript&&(N=document.currentScript.src),N.indexOf("blob:")!==0?N=N.substr(0,N.lastIndexOf("/")+1):N="",G=function(r){var n=new XMLHttpRequest;return n.open("GET",r,!1),n.send(null),n.responseText},z&&($=function(r){var n=new XMLHttpRequest;return n.open("GET",r,!1),n.responseType="arraybuffer",n.send(null),new Uint8Array(n.response)}));var ne=f.print||console.log.bind(console),P=f.printErr||console.warn.bind(console);for(I in J)J.hasOwnProperty(I)&&(f[I]=J[I]);J=null;f.arguments&&f.arguments;f.thisProgram&&(xe=f.thisProgram);f.quit&&f.quit;function Fr(e){var r=p[Oe>>2],n=r+e+15&-16;return p[Oe>>2]=n,r}function Mr(e){switch(e){case"i1":case"i8":return 1;case"i16":return 2;case"i32":return 4;case"i64":return 8;case"float":return 4;case"double":return 8;default:{if(e[e.length-1]==="*")return 4;if(e[0]==="i"){var r=Number(e.substr(1));return oe(r%8===0,"getNativeTypeSize invalid
|
||
|
`+f.extraStackTrace()),Jr(e)}function en(){P("missing function: _ZN7VRegionC1ERK5VRect"),R(-1)}function rn(){P("missing function: _ZN7VRegionD1Ev"),R(-1)}function nn(){P("missing function: _ZN7VRegionpLERK5VRect"),R(-1)}function tn(){P("missing function: _ZNK7VRegion12boundingRectEv"),R(-1)}function on(e,r,n,o){R("Assertion failed: "+V(e)+", at: "+[r?V(r):"unknown filename",n,o?V(o):"unknown function"])}function ee(e){return p[gr()>>2]=e,e}function an(e,r){return ee(63),-1}var E={splitPath:function(e){var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return r.exec(e).slice(1)},normalizeArray:function(e,r){for(var n=0,o=e.length-1;o>=0;o--){var i=e[o];i==="."?e.splice(o,1):i===".."?(e.splice(o,1),n++):n&&(e.splice(o,1),n--)}if(r)for(;n;n--)e.unshift("..");return e},normalize:function(e){var r=e.charAt(0)==="/",n=e.substr(-1)==="/";return e=E.normalizeArray(e.split("/").filter(function(o){return!!o}),!r).join("/"),!e&&!r&&(e="."),e&&n&&(e+="/"),(r?"/":"")+e},dirname:function(e){var r=E.splitPath(e),n=r[0],o=r[1];return!n&&!o?".":(o&&(o=o.substr(0,o.length-1)),n+o)},basename:function(e){if(e==="/")return"/";var r=e.lastIndexOf("/");return r===-1?e:e.substr(r+1)},extname:function(e){return E.splitPath(e)[3]},join:function(){var e=Array.prototype.slice.call(arguments,0);return E.normalize(e.join("/"))},join2:function(e,r){return E.normalize(e+"/"+r)}},B={resolve:function(){for(var e="",r=!1,n=arguments.length-1;n>=-1&&!r;n--){var o=n>=0?arguments[n]:t.cwd();if(typeof o!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!o)return"";e=o+"/"+e,r=o.charAt(0)==="/"}return e=E.normalizeArray(e.split("/").filter(function(i){return!!i}),!r).join("/"),(r?"/":"")+e||"."},relative:function(e,r){e=B.resolve(e).substr(1),r=B.resolve(r).substr(1);function n(d){for(var m=0;m<d.length&&d[m]==="";m++);for(var y=d.length-1;y>=0&&d[y]==="";y--);return m>y?[]:d.slice(m,y-m+1)}for(var o=n(e.split("/")),i=n(r.split("/")),a=Math.min(o.length,i.length),s=a,u=0;u<a;u++)if(o[u]!==i[u]){s=u;break}for(var c=[],u=s;u<o.length;u++)c.push("..");return c=c.concat(i.slice(s)),c.join("/")}},Y={ttys:[],init:function(){},shutdown:function(){},register:function(e,r){Y.ttys[e]={input:[],output:[],ops:r},t.registerDevice(e,Y.stream_ops)},stream_ops:{open:function(e){var r=Y.ttys[e.node.rdev];if(!r)throw new t.ErrnoError(43);e.tty=r,e.seekable=!1},close:function(e){e.tty.ops.flush(e.tty)},flush:function(e){e.tty.ops.flush(e.tty)},read:function(e,r,n,o,i){if(!e.tty||!e.tty.ops.get_char)throw new t.ErrnoError(60);for(var a=0,s=0;s<o;s++){var u;try{u=e.tty.ops.get_char(e.tty)}catch{throw new t.ErrnoError(29)}if(u===void 0&&a===0)throw new t.ErrnoError(6);if(u==null)break;a++,r[n+s]=u}return a&&(e.node.timestamp=Date.now()),a},write:function(e,r,n,o,i){if(!e.tty||!e.tty.ops.put_char)throw new t.ErrnoError(60);try{for(var a=0;a<o;a++)e.tty.ops.put_char(e.tty,r[n+a])}catch{throw new t.ErrnoError(29)}return o&&(e.node.timestamp=Date.now()),a}},default_tty_ops:{get_char:function(e){if(!e.input.length){var r=null;if(se){var n=256,o=Buffer.alloc?Buffer.alloc(n):new Buffer(n),i=0;try{i=ge.readSync(process.stdin.fd,o,0,n,null)}catch(a){if(a.toString().indexOf("EOF")!=-1)i=0;else throw a}i>0?r=o.slice(0,i).toString("utf-8"):r=null}else typeof window<"u"&&typeof window.prompt=="function"?(r=window.prompt("Input: "),r!==null&&(r+=`
|
||
|
`)):typeof readline=="function"&&(r=readline(),r!==null&&(r+=`
|
||
|
`));if(!r)return null;e.input=Z(r,!0)}return e.input.shift()},put_char:function(e,r){r===null||r===10?(ne(K(e.output,0)),e.output=[]):r!=0&&e.output.push(r)},flush:function(e){e.output&&e.output.length>0&&(ne(K(e.output,0)),e.output=[])}},default_tty1_ops:{put_char:function(e,r){r===null||r===10?(P(K(e.output,0)),e.output=[]):r!=0&&e.output.push(r)},flush:function(e){e.output&&e.output.length>0&&(P(K(e.output,0)),e.output=[])}}},_={ops_table:null,mount:function(e){return _.createNode(null,"/",16895,0)},createNode:function(e,r,n,o){if(t.isBlkdev(n)||t.isFIFO(n))throw new t.ErrnoError(63);_.ops_table||(_.ops_table={dir:{node:{getattr:_.node_ops.getattr,setattr:_.node_ops.setattr,lookup:_.node_ops.lookup,mknod:_.node_ops.mknod,rename:_.node_ops.rename,unlink:_.node_ops.unlink,rmdir:_.node_ops.rmdir,readdir:_.node_ops.readdir,symlink:_.node_ops.symlink},stream:{llseek:_.stream_ops.llseek}},file:{node:{getattr:_.node_ops.getattr,setattr:_.node_ops.setattr},stream:{llseek:_.stream_ops.llseek,read:_.stream_ops.read,write:_.stream_ops.write,allocate:_.stream_ops.allocate,mmap:_.stream_ops.mmap,msync:_.stream_ops.msync}},link:{node:{getattr:_.node_ops.getattr,setattr:_.node_ops.setattr,readlink:_.node_ops.readlink},stream:{}},chrdev:{node:{getattr:_.node_ops.getattr,setattr:_.node_ops.setattr},stream:t.chrdev_stream_ops}});var i=t.createNode(e,r,n,o);return t.isDir(i.mode)?(i.node_ops=_.ops_table.dir.node,i.stream_ops=_.ops_table.dir.stream,i.contents={}):t.isFile(i.mode)?(i.node_ops=_.ops_table.file.node,i.stream_ops=_.ops_table.file.stream,i.usedBytes=0,i.contents=null):t.isLink(i.mode)?(i.node_ops=_.ops_table.link.node,i.stream_ops=_.ops_table.link.stream):t.isChrdev(i.mode)&&(i.node_ops=_.ops_table.chrdev.node,i.stream_ops=_.ops_table.chrdev.stream),i.timestamp=Date.now(),e&&(e.contents[r]=i),i},getFileDataAsRegularArray:function(e){if(e.contents&&e.contents.subarray){for(var r=[],n=0;n<e.usedBytes;++n)r.push(e.contents[n]);return r}return e.contents},getFileDataAsTypedArray:function(e){return e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0)},expandFileStorage:function(e,r){var n=e.contents?e.contents.length:0;if(!(n>=r)){var o=1024*1024;r=Math.max(r,n*(n<o?2:1.125)>>>0),n!=0&&(r=Math.max(r,256));var i=e.contents;e.contents=new Uint8Array(r),e.usedBytes>0&&e.contents.set(i.subarray(0,e.usedBytes),0)}},resizeFileStorage:function(e,r){if(e.usedBytes!=r){if(r==0){e.contents=null,e.usedBytes=0;return}if(!e.contents||e.contents.subarray){var n=e.contents;e.contents=new Uint8Array(r),n&&e.contents.set(n.subarray(0,Math.min(r,e.usedBytes))),e.usedBytes=r;return}if(e.contents||(e.contents=[]),e.contents.length>r)e.contents.length=r;else for(;e.contents.length<r;)e.contents.push(0);e.usedBytes=r}},node_ops:{getattr:function(e){var r={};return r.dev=t.isChrdev(e.mode)?e.id:1,r.ino=e.id,r.mode=e.mode,r.nlink=1,r.uid=0,r.gid=0,r.rdev=e.rdev,t.isDir(e.mode)?r.size=4096:t.isFile(e.mode)?r.size=e.usedBytes:t.isLink(e.mode)?r.size=e.link.length:r.size=0,r.atime=new Date(e.timestamp),r.mtime=new Date(e.timestamp),r.ctime=new Date(e.timestamp),r.blksize=4096,r.blocks=Math.ceil(r.size/r.blksize),r},setattr:function(e,r){r.mode!==void 0&&(e.mode=r.mode),r.timestamp!==void 0&&(e.timestamp=r.timestamp),r.size!==void 0&&_.resizeFileStorage(e,r.size)},lookup:function(e,r){throw t.genericErrors[44]},mknod:function(e,r,n,o){return _.createNode(e,r,n,o)},rename:function(e,r,n){if(t.isDir(e.mode)){var o;try{o=t.lookupNode(r,n)}catch{}if(o)for(var i in o.contents)throw new t.ErrnoError(55)}delete e.parent.contents[e.name],e.name=n,r.contents[n]=e,e.parent=r},unlink:function(e,r){delete e.contents[r]},rmdir:function(e,r){var n=t.lookupNode(e,r);for(var o in n.contents)throw new t.ErrnoError(55);delete e.contents[r]},readdir:function(e){var r=[".",".."];for(var n in e.contents)e.contents.hasOwnProperty(n)&&r.push(n);return r},symlink:function(e,r,n){var o=_.createNode(e,r,41471,0);return o.link=n,o},readlink:function(e){if(!t.isLink(e.mode))throw new t.ErrnoError(28);return e.link}},stream_ops:
|
||
|
`},"%p":function(l){return l.tm_hour>=0&&l.tm_hour<12?"AM":"PM"},"%S":function(l){return v(l.tm_sec,2)},"%t":function(){return" "},"%u":function(l){return l.tm_wday||7},"%U":function(l){var g=new Date(l.tm_year+1900,0,1),D=g.getDay()===0?g:le(g,7-g.getDay()),k=new Date(l.tm_year+1900,l.tm_mon,l.tm_mday);if(h(D,k)<0){var A=Te(pe(k.getFullYear())?we:ye,k.getMonth()-1)-31,L=31-D.getDate(),H=L+A+k.getDate();return v(Math.ceil(H/7),2)}return h(D,g)===0?"01":"00"},"%V":function(l){var g=new Date(l.tm_year+1900,0,4),D=new Date(l.tm_year+1901,0,4),k=w(g),A=w(D),L=le(new Date(l.tm_year+1900,0,1),l.tm_yday);if(h(L,k)<0)return"53";if(h(A,L)<=0)return"01";var H;return k.getFullYear()<l.tm_year+1900?H=l.tm_yday+32-k.getDate():H=l.tm_yday+1-k.getDate(),v(Math.ceil(H/7),2)},"%w":function(l){return l.tm_wday},"%W":function(l){var g=new Date(l.tm_year,0,1),D=g.getDay()===1?g:le(g,g.getDay()===0?1:7-g.getDay()+1),k=new Date(l.tm_year+1900,l.tm_mon,l.tm_mday);if(h(D,k)<0){var A=Te(pe(k.getFullYear())?we:ye,k.getMonth()-1)-31,L=31-D.getDate(),H=L+A+k.getDate();return v(Math.ceil(H/7),2)}return h(D,g)===0?"01":"00"},"%y":function(l){return(l.tm_year+1900).toString().substring(2)},"%Y":function(l){return l.tm_year+1900},"%z":function(l){var g=l.tm_gmtoff,D=g>=0;return g=Math.abs(g)/60,g=g/60*100+g%60,(D?"+":"-")+("0000"+g).slice(-4)},"%Z":function(l){return l.tm_zone},"%%":function(){return"%"}};for(var c in C)s.indexOf(c)>=0&&(s=s.replace(new RegExp(c,"g"),C[c](a)));var M=Z(s,!1);return M.length>r?0:($e(M,e),M.length-1)}function Tn(e,r,n,o){return Mn(e,r,n,o)}var lr=function(e,r,n,o){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=t.nextInode++,this.name=r,this.mode=n,this.node_ops={},this.stream_ops={},this.rdev=o},de=365,me=146;Object.defineProperties(lr.prototype,{read:{get:function(){return(this.mode&de)===de},set:function(e){e?this.mode|=de:this.mode&=~de}},write:{get:function(){return(this.mode&me)===me},set:function(e){e?this.mode|=me:this.mode&=~me}},isFolder:{get:function(){return t.isDir(this.mode)}},isDevice:{get:function(){return t.isChrdev(this.mode)}}});t.FSNode=lr;t.staticInit();function Z(e,r,n){var o=n>0?n:Le(e)+1,i=new Array(o),a=Ce(e,i,0,i.length);return r&&(i.length=a),i}var Nn={o:en,m:rn,n:nn,x:tn,a:on,u:an,h:sn,z:un,t:cn,A:ln,d:dn,c:hn,q:gn,r:yn,v:En,w:kn,g:Dn,y:An,p:Sn,f:bn,b:Pn,k:On,B:Bn,memory:X,i:Rn,l:cr,j:Fn,s:Tn,table:Or,e:mn},dr=Zr();f.asm=dr;var mr=f.___wasm_call_ctors=function(){return(mr=f.___wasm_call_ctors=f.asm.C).apply(null,arguments)};f._lottie_init=function(){return(f._lottie_init=f.asm.D).apply(null,arguments)};f._lottie_resize=function(){return(f._lottie_resize=f.asm.E).apply(null,arguments)};var vr=f._free=function(){return(vr=f._free=f.asm.F).apply(null,arguments)};f._lottie_load_from_data=function(){return(f._lottie_load_from_data=f.asm.G).apply(null,arguments)};f._lottie_buffer=function(){return(f._lottie_buffer=f.asm.H).apply(null,arguments)};f._lottie_destroy=function(){return(f._lottie_destroy=f.asm.I).apply(null,arguments)};f._lottie_render=function(){return(f._lottie_render=f.asm.J).apply(null,arguments)};var ze=f._malloc=function(){return(ze=f._malloc=f.asm.K).apply(null,arguments)},hr=f._realloc=function(){return(hr=f._realloc=f.asm.L).apply(null,arguments)},gr=f.___errno_location=function(){return(gr=f.___errno_location=f.asm.M).apply(null,arguments)},be=f._setThrew=function(){return(be=f._setThrew=f.asm.N).apply(null,arguments)},pr=f.dynCall_vi=function(){return(pr=f.dynCall_vi=f.asm.O).apply(null,arguments)},wr=f.dynCall_iii=function(){return(wr=f.dynCall_iii=f.asm.P).apply(null,arguments)},Pe=f.stackSave=function(){return(Pe=f.stackSave=f.asm.Q).apply(null,arguments)},ke=f.stackAlloc=function(){return(ke=f.stackAlloc=f.asm.R).apply(null,arguments)},Re=f.stackRestore=function(){return(Re=f.stackRestore=f.asm.S).apply(null,arguments)};f.dynCall_v=function(){return(f.dynCall_v=f.asm.T).apply(null,arguments)};function On(e,r,n){var o=Pe();try{return wr(e,r,n)}catch(i){if(Re(o),i!==i+0&&i!=="longjmp")throw i;be(1,0)}}function Bn(e,r){var n=Pe();try{pr(e,r)}catch(o){if(
|
||
|
//# sourceMappingURL=rlottie.worker--aUfWGB2.js.map
|