ranuts 0.1.0-alpha.14 → 0.1.0-alpha.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("node:fs"),require("react"),require("node:tty"),require("node:process"),require("node:child_process"),require("node:readline"),require("node:https"),require("node:os"),require("node:path"),require("node:net"),require("node:http"),require("node:stream"),require("node:util"),require("node:buffer"),require("node:crypto")):"function"==typeof define&&define.amd?define(["exports","node:fs","react","node:tty","node:process","node:child_process","node:readline","node:https","node:os","node:path","node:net","node:http","node:stream","node:util","node:buffer","node:crypto"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ranuts={},e.fs,e.react,e.tty,e.process$1,e.childProcess,e.readline,e.https,e.os,e.path,e.node_net,e.http,null,e.node_util,e.node_buffer,e.crypto)}(this,(function(e,t,n,i,a,r,o,s,c,p,l,d,u,h,m,f){"use strict";var g=Object.defineProperty,v=(e,t,n)=>((e,t,n)=>t in e?g(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);const w={172351395:{name:"EBML",type:"Container"},646:{name:"EBMLVersion",type:"Uint"},759:{name:"EBMLReadVersion",type:"Uint"},754:{name:"EBMLMaxIDLength",type:"Uint"},755:{name:"EBMLMaxSizeLength",type:"Uint"},642:{name:"DocType",type:"String"},647:{name:"DocTypeVersion",type:"Uint"},645:{name:"DocTypeReadVersion",type:"Uint"},108:{name:"Void",type:"Binary"},63:{name:"CRC-32",type:"Binary"},190023271:{name:"SignatureSlot",type:"Container"},16010:{name:"SignatureAlgo",type:"Uint"},16026:{name:"SignatureHash",type:"Uint"},16037:{name:"SignaturePublicKey",type:"Binary"},16053:{name:"Signature",type:"Binary"},15963:{name:"SignatureElements",type:"Container"},15995:{name:"SignatureElementList",type:"Container"},9522:{name:"SignedElement",type:"Binary"},139690087:{name:"Segment",type:"Container"},21863284:{name:"SeekHead",type:"Container"},3515:{name:"Seek",type:"Container"},5035:{name:"SeekID",type:"Binary"},5036:{name:"SeekPosition",type:"Uint"},88713574:{name:"Info",type:"Container"},13220:{name:"SegmentUID",type:"Binary"},13188:{name:"SegmentFilename",type:"String"},1882403:{name:"PrevUID",type:"Binary"},1868715:{name:"PrevFilename",type:"String"},2013475:{name:"NextUID",type:"Binary"},1999803:{name:"NextFilename",type:"String"},1092:{name:"SegmentFamily",type:"Binary"},10532:{name:"ChapterTranslate",type:"Container"},10748:{name:"ChapterTranslateEditionUID",type:"Uint"},10687:{name:"ChapterTranslateCodec",type:"Uint"},10661:{name:"ChapterTranslateID",type:"Binary"},710577:{name:"TimecodeScale",type:"Uint"},1161:{name:"Duration",type:"Float"},1121:{name:"DateUTC",type:"Date"},15273:{name:"Title",type:"String"},3456:{name:"MuxingApp",type:"String"},5953:{name:"WritingApp",type:"String"},103:{name:"Timecode",type:"Uint"},6228:{name:"SilentTracks",type:"Container"},6359:{name:"SilentTrackNumber",type:"Uint"},39:{name:"Position",type:"Uint"},43:{name:"PrevSize",type:"Uint"},35:{name:"SimpleBlock",type:"Binary"},32:{name:"BlockGroup",type:"Container"},33:{name:"Block",type:"Binary"},34:{name:"BlockVirtual",type:"Binary"},13729:{name:"BlockAdditions",type:"Container"},38:{name:"BlockMore",type:"Container"},110:{name:"BlockAddID",type:"Uint"},37:{name:"BlockAdditional",type:"Binary"},27:{name:"BlockDuration",type:"Uint"},122:{name:"ReferencePriority",type:"Uint"},123:{name:"ReferenceBlock",type:"Int"},125:{name:"ReferenceVirtual",type:"Int"},36:{name:"CodecState",type:"Binary"},13730:{name:"DiscardPadding",type:"Int"},14:{name:"Slices",type:"Container"},104:{name:"TimeSlice",type:"Container"},76:{name:"LaceNumber",type:"Uint"},77:{name:"FrameNumber",type:"Uint"},75:{name:"BlockAdditionID",type:"Uint"},78:{name:"Delay",type:"Uint"},79:{name:"SliceDuration",type:"Uint"},72:{name:"ReferenceFrame",type:"Container"},73:{name:"ReferenceOffset",type:"Uint"},74:{name:"ReferenceTimeCode",type:"Uint"},47:{name:"EncryptedBlock",type:"Binary"},106212971:{name:"Tracks",type:"Container"},46:{name:"TrackEntry",type:"Container"},87:{name:"TrackNumber",type:"Uint"},13253:{name:"TrackUID",type:"Uint"},3:{name:"TrackType",type:"Uint"},57:{name:"FlagEnabled",type:"Uint"},8:{name:"FlagDefault",type:"Uint"},5546:{name:"FlagForced",type:"Uint"},28:{name:"FlagLacing",type:"Uint"},11751:{name:"MinCache",type:"Uint"},11768:{name:"MaxCache",type:"Uint"},254851:{name:"DefaultDuration",type:"Uint"},216698:{name:"DefaultDecodedFieldDuration",type:"Uint"},209231:{name:"TrackTimecodeScale",type:"Float"},4991:{name:"TrackOffset",type:"Int"},5614:{name:"MaxBlockAdditionID",type:"Uint"},4974:{name:"Name",type:"String"},177564:{name:"Language",type:"String"},6:{name:"CodecID",type:"String"},9122:{name:"CodecPrivate",type:"Binary"},362120:{name:"CodecName",type:"String"},13382:{name:"AttachmentLink",type:"Uint"},1742487:{name:"CodecSettings",type:"String"},1785920:{name:"CodecInfoURL",type:"String"},438848:{name:"CodecDownloadURL",type:"String"},42:{name:"CodecDecodeAll",type:"Uint"},12203:{name:"TrackOverlay",type:"Uint"},5802:{name:"CodecDelay",type:"Uint"},5819:{name:"SeekPreRoll",type:"Uint"},9764:{name:"TrackTranslate",type:"Container"},9980:{name:"TrackTranslateEditionUID",type:"Uint"},9919:{name:"TrackTranslateCodec",type:"Uint"},9893:{name:"TrackTranslateTrackID",type:"Binary"},96:{name:"Video",type:"Container"},26:{name:"FlagInterlaced",type:"Uint"},5048:{name:"StereoMode",type:"Uint"},5056:{name:"AlphaMode",type:"Uint"},5049:{name:"OldStereoMode",type:"Uint"},48:{name:"PixelWidth",type:"Uint"},58:{name:"PixelHeight",type:"Uint"},5290:{name:"PixelCropBottom",type:"Uint"},5307:{name:"PixelCropTop",type:"Uint"},5324:{name:"PixelCropLeft",type:"Uint"},5341:{name:"PixelCropRight",type:"Uint"},5296:{name:"DisplayWidth",type:"Uint"},5306:{name:"DisplayHeight",type:"Uint"},5298:{name:"DisplayUnit",type:"Uint"},5299:{name:"AspectRatioType",type:"Uint"},963876:{name:"ColourSpace",type:"Binary"},1029411:{name:"GammaValue",type:"Float"},230371:{name:"FrameRate",type:"Float"},97:{name:"Audio",type:"Container"},53:{name:"SamplingFrequency",type:"Float"},14517:{name:"OutputSamplingFrequency",type:"Float"},31:{name:"Channels",type:"Uint"},15739:{name:"ChannelPositions",type:"Binary"},8804:{name:"BitDepth",type:"Uint"},98:{name:"TrackOperation",type:"Container"},99:{name:"TrackCombinePlanes",type:"Container"},100:{name:"TrackPlane",type:"Container"},101:{name:"TrackPlaneUID",type:"Uint"},102:{name:"TrackPlaneType",type:"Uint"},105:{name:"TrackJoinBlocks",type:"Container"},109:{name:"TrackJoinUID",type:"Uint"},64:{name:"TrickTrackUID",type:"Uint"},65:{name:"TrickTrackSegmentUID",type:"Binary"},70:{name:"TrickTrackFlag",type:"Uint"},71:{name:"TrickMasterTrackUID",type:"Uint"},68:{name:"TrickMasterTrackSegmentUID",type:"Binary"},11648:{name:"ContentEncodings",type:"Container"},8768:{name:"ContentEncoding",type:"Container"},4145:{name:"ContentEncodingOrder",type:"Uint"},4146:{name:"ContentEncodingScope",type:"Uint"},4147:{name:"ContentEncodingType",type:"Uint"},4148:{name:"ContentCompression",type:"Container"},596:{name:"ContentCompAlgo",type:"Uint"},597:{name:"ContentCompSettings",type:"Binary"},4149:{name:"ContentEncryption",type:"Container"},2017:{name:"ContentEncAlgo",type:"Uint"},2018:{name:"ContentEncKeyID",type:"Binary"},2019:{name:"ContentSignature",type:"Binary"},2020:{name:"ContentSigKeyID",type:"Binary"},2021:{name:"ContentSigAlgo",type:"Uint"},2022:{name:"ContentSigHashAlgo",type:"Uint"},206814059:{name:"Cues",type:"Container"},59:{name:"CuePoint",type:"Container"},51:{name:"CueTime",type:"Uint"},55:{name:"CueTrackPositions",type:"Container"},119:{name:"CueTrack",type:"Uint"},113:{name:"CueClusterPosition",type:"Uint"},112:{name:"CueRelativePosition",type:"Uint"},50:{name:"CueDuration",type:"Uint"},4984:{name:"CueBlockNumber",type:"Uint"},106:{name:"CueCodecState",type:"Uint"},91:{name:"CueReference",type:"Container"},22:{name:"CueRefTime",type:"Uint"},23:{name:"CueRefCluster",type:"Uint"},4959:{name:"CueRefNumber",type:"Uint"},107:{name:"CueRefCodecState",type:"Uint"},155296873:{name:"Attachments",type:"Container"},8615:{name:"AttachedFile",type:"Container"},1662:{name:"FileDescription",type:"String"},1646:{name:"FileName",type:"String"},1632:{name:"FileMimeType",type:"String"},1628:{name:"FileData",type:"Binary"},1710:{name:"FileUID",type:"Uint"},1653:{name:"FileReferral",type:"Binary"},1633:{name:"FileUsedStartTime",type:"Uint"},1634:{name:"FileUsedEndTime",type:"Uint"},4433776:{name:"Chapters",type:"Container"},1465:{name:"EditionEntry",type:"Container"},1468:{name:"EditionUID",type:"Uint"},1469:{name:"EditionFlagHidden",type:"Uint"},1499:{name:"EditionFlagDefault",type:"Uint"},1501:{name:"EditionFlagOrdered",type:"Uint"},54:{name:"ChapterAtom",type:"Container"},13252:{name:"ChapterUID",type:"Uint"},5716:{name:"ChapterStringUID",type:"String"},17:{name:"ChapterTimeStart",type:"Uint"},18:{name:"ChapterTimeEnd",type:"Uint"},24:{name:"ChapterFlagHidden",type:"Uint"},1432:{name:"ChapterFlagEnabled",type:"Uint"},11879:{name:"ChapterSegmentUID",type:"Binary"},11964:{name:"ChapterSegmentEditionUID",type:"Uint"},9155:{name:"ChapterPhysicalEquiv",type:"Uint"},15:{name:"ChapterTrack",type:"Container"},9:{name:"ChapterTrackNumber",type:"Uint"},0:{name:"ChapterDisplay",type:"Container"},5:{name:"ChapString",type:"String"},892:{name:"ChapLanguage",type:"String"},894:{name:"ChapCountry",type:"String"},10564:{name:"ChapProcess",type:"Container"},10581:{name:"ChapProcessCodecID",type:"Uint"},1293:{name:"ChapProcessPrivate",type:"Binary"},10513:{name:"ChapProcessCommand",type:"Container"},10530:{name:"ChapProcessTime",type:"Uint"},10547:{name:"ChapProcessData",type:"Binary"},39109479:{name:"Tags",type:"Container"},13171:{name:"Tag",type:"Container"},9152:{name:"Targets",type:"Container"},10442:{name:"TargetTypeValue",type:"Uint"},9162:{name:"TargetType",type:"String"},9157:{name:"TagTrackUID",type:"Uint"},9161:{name:"TagEditionUID",type:"Uint"},9156:{name:"TagChapterUID",type:"Uint"},9158:{name:"TagAttachmentUID",type:"Uint"},10184:{name:"SimpleTag",type:"Container"},1443:{name:"TagName",type:"String"},1146:{name:"TagLanguage",type:"String"},1156:{name:"TagDefault",type:"Uint"},1159:{name:"TagString",type:"String"},1157:{name:"TagBinary",type:"Binary"}};class y{constructor(e="Unknown",t="Unknown"){v(this,"source"),v(this,"data"),this.name=e,this.type=t}updateBySource(){}setSource(e){this.source=e,this.updateBySource()}updateByData(){}setData(e){this.data=e,this.updateByData()}}function x(e){return e.length%2==1?"0"+e:e}class b extends y{constructor(e,t){super(e,t||"Uint")}updateBySource(){this.data="";for(let e=0;e<this.source.length;e++){const t=this.source[e].toString(16);this.data+=x(t)}}updateByData(){const e=this.data.length/2;this.source=new Uint8Array(e);for(let t=0;t<e;t++){const e=this.data.substr(2*t,2);this.source[t]=parseInt(e,16)}}getValue(){return parseInt(this.data,16)}setValue(e){this.setData(x(e.toString(16)))}}class k extends y{constructor(e,t){super(e,t||"Float")}getFloatArrayType(){return this.source&&4===this.source.length?Float32Array:Float64Array}updateBySource(){const e=this.source.reverse(),t=new(this.getFloatArrayType())(e.buffer);this.data=t[0]}updateByData(){const e=new(this.getFloatArrayType())([this.data]),t=new Uint8Array(e.buffer);this.source=t.reverse()}getValue(){return this.data}setValue(e){this.setData(e)}}class S extends y{constructor(e,t){super(e,t||"Container"),v(this,"offset",0),v(this,"data",[])}readByte(){return this.source[this.offset++]}readUint(){const e=this.readByte(),t=8-e.toString(2).length;let n=e-(1<<7-t);for(let i=0;i<t;i++)n*=256,n+=this.readByte();return n}updateBySource(){let e;for(this.data=[],this.offset=0;this.offset<this.source.length;this.offset=e){const t=this.readUint(),n=this.readUint();e=Math.min(this.offset+n,this.source.length);const i=this.source.slice(this.offset,e),a=w[t]||{name:"Unknown",type:"Unknown"};let r=y;switch(a.type){case"Container":r=S;break;case"Uint":r=b;break;case"Float":r=k}const o=new r(a.name,a.type);o.setSource(i),this.data.push({id:t,idHex:t.toString(16),data:o})}}writeUint(e,t=!1){let n=1,i=128;for(;e>=i&&n<8;)n++,i*=128;if(!t){let t=i+e;for(let e=n-1;e>=0;e--){const n=t%256;this.source[this.offset+e]=n,t=(t-n)/256}}this.offset+=n}writeSections(e=!1){this.offset=0;for(let t=0;t<this.data.length;t++){const n=this.data[t],i=n.data.source,a=i.length;this.writeUint(n.id,e),this.writeUint(a,e),e||this.source.set(i,this.offset),this.offset+=a}return this.offset}updateByData(){const e=this.writeSections(!0);this.source=new Uint8Array(e),this.writeSections()}getSectionById(e){for(let t=0;t<this.data.length;t++){const n=this.data[t];if(n.id===e)return n.data}}}class C extends S{constructor(e){super("File","File"),this.setSource(e)}fixDuration(e){const t=this.getSectionById(139690087);if(!t)return!1;const n=t.getSectionById(88713574);if(!n)return!1;const i=n.getSectionById(710577);if(!i)return!1;let a=n.getSectionById(1161);if(a){if(!(a.getValue()<=0))return!1;a.setValue(e)}else a=new k("Duration","Float"),a.setValue(e),n.data.push({id:1161,data:a});return i.setValue(1e6),n.updateByData(),t.updateByData(),this.updateByData(),!0}toBlob(e="video/webm"){return new Blob([this.source.buffer],{type:e})}}const A=()=>{};var E=(e=>(e.IPAD="ipad",e.ANDROID="android",e.IPhONE="iphone",e.PC="pc",e))(E||{});const O=()=>{if("undefined"!=typeof window){const e=navigator.userAgent.toLowerCase();return/ipad|ipod/.test(e)?"ipad":/android/.test(e)?"android":/iphone/.test(e)?"iphone":"pc"}return"pc"},T="undefined"!=typeof window,L="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",U="ARRAYBUFFER not supported by this environment",M="UINT8ARRAY not supported by this environment";function B(e,t,n,i){let a,r,o;const s=t||[0],c=(n=n||0)>>>3,p=-1===i?3:0;for(a=0;a<e.length;a+=1)o=a+c,r=o>>>2,s.length<=r&&s.push(0),s[r]|=e[a]<<8*(p+i*(o%4));return{value:s,binLen:8*e.length+n}}function F(e,t,n){switch(t){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(e){case"HEX":return function(e,t,i){return function(e,t,n,i){let a,r,o,s;if(0!=e.length%2)throw new Error("String of HEX type must be in byte increments");const c=t||[0],p=(n=n||0)>>>3,l=-1===i?3:0;for(a=0;a<e.length;a+=2){if(r=parseInt(e.substr(a,2),16),isNaN(r))throw new Error("String of HEX type contains invalid characters");for(s=(a>>>1)+p,o=s>>>2;c.length<=o;)c.push(0);c[o]|=r<<8*(l+i*(s%4))}return{value:c,binLen:4*e.length+n}}(e,t,i,n)};case"TEXT":return function(e,i,a){return function(e,t,n,i,a){let r,o,s,c,p,l,d,u,h=0;const m=n||[0],f=(i=i||0)>>>3;if("UTF8"===t)for(d=-1===a?3:0,s=0;s<e.length;s+=1)for(r=e.charCodeAt(s),o=[],128>r?o.push(r):2048>r?(o.push(192|r>>>6),o.push(128|63&r)):55296>r||57344<=r?o.push(224|r>>>12,128|r>>>6&63,128|63&r):(s+=1,r=65536+((1023&r)<<10|1023&e.charCodeAt(s)),o.push(240|r>>>18,128|r>>>12&63,128|r>>>6&63,128|63&r)),c=0;c<o.length;c+=1){for(l=h+f,p=l>>>2;m.length<=p;)m.push(0);m[p]|=o[c]<<8*(d+a*(l%4)),h+=1}else for(d=-1===a?2:0,u="UTF16LE"===t&&1!==a||"UTF16LE"!==t&&1===a,s=0;s<e.length;s+=1){for(r=e.charCodeAt(s),!0===u&&(c=255&r,r=c<<8|r>>>8),l=h+f,p=l>>>2;m.length<=p;)m.push(0);m[p]|=r<<8*(d+a*(l%4)),h+=2}return{value:m,binLen:8*h+i}}(e,t,i,a,n)};case"B64":return function(e,t,i){return function(e,t,n,i){let a,r,o,s,c,p,l,d=0;const u=t||[0],h=(n=n||0)>>>3,m=-1===i?3:0,f=e.indexOf("=");if(-1===e.search(/^[a-z\d=+/]+$/i))throw new Error("Invalid character in base-64 string");if(e=e.replace(/=/g,""),-1!==f&&f<e.length)throw new Error("Invalid '=' found in base-64 string");for(r=0;r<e.length;r+=4){for(c=e.substr(r,4),s=0,o=0;o<c.length;o+=1)a=L.indexOf(c.charAt(o)),s|=a<<18-6*o;for(o=0;o<c.length-1;o+=1){for(l=d+h,p=l>>>2;u.length<=p;)u.push(0);u[p]|=(s>>>16-8*o&255)<<8*(m+i*(l%4)),d+=1}}return{value:u,binLen:8*d+n}}(e,t,i,n)};case"BYTES":return function(e,t,i){return function(e,t,n,i){let a,r,o,s;const c=t||[0],p=(n=n||0)>>>3,l=-1===i?3:0;for(r=0;r<e.length;r+=1)a=e.charCodeAt(r),s=r+p,o=s>>>2,c.length<=o&&c.push(0),c[o]|=a<<8*(l+i*(s%4));return{value:c,binLen:8*e.length+n}}(e,t,i,n)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(i){throw new Error(U)}return function(e,t,i){return function(e,t,n,i){return B(new Uint8Array(e),t,n,i)}(e,t,i,n)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(i){throw new Error(M)}return function(e,t,i){return B(e,t,i,n)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function R(e,t,n,i){switch(e){case"HEX":return function(e){return function(e,t,n,i){const a="0123456789abcdef";let r,o,s="";const c=t/8,p=-1===n?3:0;for(r=0;r<c;r+=1)o=e[r>>>2]>>>8*(p+n*(r%4)),s+=a.charAt(o>>>4&15)+a.charAt(15&o);return i.outputUpper?s.toUpperCase():s}(e,t,n,i)};case"B64":return function(e){return function(e,t,n,i){let a,r,o,s,c,p="";const l=t/8,d=-1===n?3:0;for(a=0;a<l;a+=3)for(s=a+1<l?e[a+1>>>2]:0,c=a+2<l?e[a+2>>>2]:0,o=(e[a>>>2]>>>8*(d+n*(a%4))&255)<<16|(s>>>8*(d+n*((a+1)%4))&255)<<8|c>>>8*(d+n*((a+2)%4))&255,r=0;r<4;r+=1)p+=8*a+6*r<=t?L.charAt(o>>>6*(3-r)&63):i.b64Pad;return p}(e,t,n,i)};case"BYTES":return function(e){return function(e,t,n){let i,a,r="";const o=t/8,s=-1===n?3:0;for(i=0;i<o;i+=1)a=e[i>>>2]>>>8*(s+n*(i%4))&255,r+=String.fromCharCode(a);return r}(e,t,n)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(a){throw new Error(U)}return function(e){return function(e,t,n){let i;const a=t/8,r=new ArrayBuffer(a),o=new Uint8Array(r),s=-1===n?3:0;for(i=0;i<a;i+=1)o[i]=e[i>>>2]>>>8*(s+n*(i%4))&255;return r}(e,t,n)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(a){throw new Error(M)}return function(e){return function(e,t,n){let i;const a=t/8,r=-1===n?3:0,o=new Uint8Array(a);for(i=0;i<a;i+=1)o[i]=e[i>>>2]>>>8*(r+n*(i%4))&255;return o}(e,t,n)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}const P=4294967296,H=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],j=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428],D=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],z="Chosen SHA variant is not supported",I="Cannot set numRounds with MAC";function N(e,t){let n,i;const a=e.binLen>>>3,r=t.binLen>>>3,o=a<<3,s=4-a<<3;if(a%4!=0){for(n=0;n<r;n+=4)i=a+n>>>2,e.value[i]|=t.value[n>>>2]<<o,e.value.push(0),e.value[i+1]|=t.value[n>>>2]>>>s;return(e.value.length<<2)-4>=r+a&&e.value.pop(),{value:e.value,binLen:e.binLen+t.binLen}}return{value:e.value.concat(t.value),binLen:e.binLen+t.binLen}}function q(e){const t={outputUpper:!1,b64Pad:"=",outputLen:-1},n=e||{},i="Output length must be a multiple of 8";if(t.outputUpper=n.outputUpper||!1,n.b64Pad&&(t.b64Pad=n.b64Pad),n.outputLen){if(n.outputLen%8!=0)throw new Error(i);t.outputLen=n.outputLen}else if(n.shakeLen){if(n.shakeLen%8!=0)throw new Error(i);t.outputLen=n.shakeLen}if("boolean"!=typeof t.outputUpper)throw new Error("Invalid outputUpper formatting option");if("string"!=typeof t.b64Pad)throw new Error("Invalid b64Pad formatting option");return t}function _(e,t,n,i){const a=e+" must include a value and format";if(!t){if(!i)throw new Error(a);return i}if(void 0===t.value||!t.format)throw new Error(a);return F(t.format,t.encoding||"UTF8",n)(t.value)}class ${constructor(e,t,n){v(this,"shaVariant"),v(this,"inputFormat"),v(this,"utfType"),v(this,"numRounds"),v(this,"keyWithIPad"),v(this,"keyWithOPad"),v(this,"remainder"),v(this,"remainderLen"),v(this,"updateCalled"),v(this,"processedLen"),v(this,"macKeySet");const i=n||{};if(this.inputFormat=t,this.utfType=i.encoding||"UTF8",this.numRounds=i.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw new Error("numRounds must a integer >= 1");this.shaVariant=e,this.remainder=[],this.remainderLen=0,this.updateCalled=!1,this.processedLen=0,this.macKeySet=!1,this.keyWithIPad=[],this.keyWithOPad=[]}update(e){let t,n=0;const i=this.variantBlockSize>>>5,a=this.converterFunc(e,this.remainder,this.remainderLen),r=a.binLen,o=a.value,s=r>>>5;for(t=0;t<s;t+=i)n+this.variantBlockSize<=r&&(this.intermediateState=this.roundFunc(o.slice(t,t+i),this.intermediateState),n+=this.variantBlockSize);return this.processedLen+=n,this.remainder=o.slice(n>>>5),this.remainderLen=r%this.variantBlockSize,this.updateCalled=!0,this}getHash(e,t){let n,i,a=this.outputBinLen;const r=q(t);if(this.isVariableLen){if(-1===r.outputLen)throw new Error("Output length must be specified in options");a=r.outputLen}const o=R(e,a,this.bigEndianMod,r);if(this.macKeySet&&this.getMAC)return o(this.getMAC(r));for(i=this.finalizeFunc(this.remainder.slice(),this.remainderLen,this.processedLen,this.stateCloneFunc(this.intermediateState),a),n=1;n<this.numRounds;n+=1)this.isVariableLen&&a%32!=0&&(i[i.length-1]&=16777215>>>24-a%32),i=this.finalizeFunc(i,a,0,this.newStateFunc(this.shaVariant),a);return o(i)}setHMACKey(e,t,n){if(!this.HMACSupported)throw new Error("Variant does not support HMAC");if(this.updateCalled)throw new Error("Cannot set MAC key after calling update");const i=F(t,(n||{}).encoding||"UTF8",this.bigEndianMod);this._setHMACKey(i(e))}_setHMACKey(e){const t=this.variantBlockSize>>>3,n=t/4-1;let i;if(1!==this.numRounds)throw new Error(I);if(this.macKeySet)throw new Error("MAC key already set");for(t<e.binLen/8&&(e.value=this.finalizeFunc(e.value,e.binLen,0,this.newStateFunc(this.shaVariant),this.outputBinLen));e.value.length<=n;)e.value.push(0);for(i=0;i<=n;i+=1)this.keyWithIPad[i]=909522486^e.value[i],this.keyWithOPad[i]=1549556828^e.value[i];this.intermediateState=this.roundFunc(this.keyWithIPad,this.intermediateState),this.processedLen=this.variantBlockSize,this.macKeySet=!0}getHMAC(e,t){const n=q(t);return R(e,this.outputBinLen,this.bigEndianMod,n)(this._getHMAC())}_getHMAC(){let e;if(!this.macKeySet)throw new Error("Cannot call getHMAC without first setting MAC key");const t=this.finalizeFunc(this.remainder.slice(),this.remainderLen,this.processedLen,this.stateCloneFunc(this.intermediateState),this.outputBinLen);return e=this.roundFunc(this.keyWithOPad,this.newStateFunc(this.shaVariant)),e=this.finalizeFunc(t,this.outputBinLen,this.variantBlockSize,e,this.outputBinLen),e}}function K(e,t){return e<<t|e>>>32-t}function V(e,t){return e>>>t|e<<32-t}function W(e,t){return e>>>t}function G(e,t,n){return e^t^n}function Y(e,t,n){return e&t^~e&n}function X(e,t,n){return e&t^e&n^t&n}function J(e){return V(e,2)^V(e,13)^V(e,22)}function Q(e,t){const n=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(n>>>16))<<16|65535&n}function Z(e,t,n,i){const a=(65535&e)+(65535&t)+(65535&n)+(65535&i);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(i>>>16)+(a>>>16))<<16|65535&a}function ee(e,t,n,i,a){const r=(65535&e)+(65535&t)+(65535&n)+(65535&i)+(65535&a);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(i>>>16)+(a>>>16)+(r>>>16))<<16|65535&r}function te(e){return V(e,7)^V(e,18)^W(e,3)}function ne(e){return V(e,6)^V(e,11)^V(e,25)}function ie(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function ae(e,t){let n,i,a,r,o,s,c;const p=[];for(n=t[0],i=t[1],a=t[2],r=t[3],o=t[4],c=0;c<80;c+=1)p[c]=c<16?e[c]:K(p[c-3]^p[c-8]^p[c-14]^p[c-16],1),s=c<20?ee(K(n,5),Y(i,a,r),o,1518500249,p[c]):c<40?ee(K(n,5),G(i,a,r),o,1859775393,p[c]):c<60?ee(K(n,5),X(i,a,r),o,2400959708,p[c]):ee(K(n,5),G(i,a,r),o,3395469782,p[c]),o=r,r=a,a=K(i,30),i=n,n=s;return t[0]=Q(n,t[0]),t[1]=Q(i,t[1]),t[2]=Q(a,t[2]),t[3]=Q(r,t[3]),t[4]=Q(o,t[4]),t}function re(e,t,n,i){let a;const r=15+(t+65>>>9<<4),o=t+n;for(;e.length<=r;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[r]=4294967295&o,e[r-1]=o/P|0,a=0;a<e.length;a+=16)i=ae(e.slice(a,a+16),i);return i}let oe=class extends ${constructor(e,t,n){if("SHA-1"!==e)throw new Error(z);super(e,t,n),v(this,"intermediateState"),v(this,"variantBlockSize"),v(this,"bigEndianMod"),v(this,"outputBinLen"),v(this,"isVariableLen"),v(this,"HMACSupported"),v(this,"converterFunc"),v(this,"roundFunc"),v(this,"finalizeFunc"),v(this,"stateCloneFunc"),v(this,"newStateFunc"),v(this,"getMAC");const i=n||{};this.HMACSupported=!0,this.getMAC=this._getHMAC,this.bigEndianMod=-1,this.converterFunc=F(this.inputFormat,this.utfType,this.bigEndianMod),this.roundFunc=ae,this.stateCloneFunc=function(e){return e.slice()},this.newStateFunc=ie,this.finalizeFunc=re,this.intermediateState=[1732584193,4023233417,2562383102,271733878,3285377520],this.variantBlockSize=512,this.outputBinLen=160,this.isVariableLen=!1,i.hmacKey&&this._setHMACKey(_("hmacKey",i.hmacKey,this.bigEndianMod))}};function se(e){let t;return t="SHA-224"===e?j.slice():D.slice(),t}function ce(e,t){let n,i,a,r,o,s,c,p,l,d,u;const h=[];for(n=t[0],i=t[1],a=t[2],r=t[3],o=t[4],s=t[5],c=t[6],p=t[7],u=0;u<64;u+=1)h[u]=u<16?e[u]:Z(V(m=h[u-2],17)^V(m,19)^W(m,10),h[u-7],te(h[u-15]),h[u-16]),l=ee(p,ne(o),Y(o,s,c),H[u],h[u]),d=Q(J(n),X(n,i,a)),p=c,c=s,s=o,o=Q(r,l),r=a,a=i,i=n,n=Q(l,d);var m;return t[0]=Q(n,t[0]),t[1]=Q(i,t[1]),t[2]=Q(a,t[2]),t[3]=Q(r,t[3]),t[4]=Q(o,t[4]),t[5]=Q(s,t[5]),t[6]=Q(c,t[6]),t[7]=Q(p,t[7]),t}let pe=class extends ${constructor(e,t,n){if("SHA-224"!==e&&"SHA-256"!==e)throw new Error(z);super(e,t,n),v(this,"intermediateState"),v(this,"variantBlockSize"),v(this,"bigEndianMod"),v(this,"outputBinLen"),v(this,"isVariableLen"),v(this,"HMACSupported"),v(this,"converterFunc"),v(this,"roundFunc"),v(this,"finalizeFunc"),v(this,"stateCloneFunc"),v(this,"newStateFunc"),v(this,"getMAC");const i=n||{};this.getMAC=this._getHMAC,this.HMACSupported=!0,this.bigEndianMod=-1,this.converterFunc=F(this.inputFormat,this.utfType,this.bigEndianMod),this.roundFunc=ce,this.stateCloneFunc=function(e){return e.slice()},this.newStateFunc=se,this.finalizeFunc=function(t,n,i,a){return function(e,t,n,i,a){let r,o;const s=15+(t+65>>>9<<4),c=t+n;for(;e.length<=s;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[s]=4294967295&c,e[s-1]=c/P|0,r=0;r<e.length;r+=16)i=ce(e.slice(r,r+16),i);return o="SHA-224"===a?[i[0],i[1],i[2],i[3],i[4],i[5],i[6]]:i,o}(t,n,i,a,e)},this.intermediateState=se(e),this.variantBlockSize=512,this.outputBinLen="SHA-224"===e?224:256,this.isVariableLen=!1,i.hmacKey&&this._setHMACKey(_("hmacKey",i.hmacKey,this.bigEndianMod))}};class le{constructor(e,t){v(this,"highOrder"),v(this,"lowOrder"),this.highOrder=e,this.lowOrder=t}}function de(e,t){let n;return t>32?(n=64-t,new le(e.lowOrder<<t|e.highOrder>>>n,e.highOrder<<t|e.lowOrder>>>n)):0!==t?(n=32-t,new le(e.highOrder<<t|e.lowOrder>>>n,e.lowOrder<<t|e.highOrder>>>n)):e}function ue(e,t){let n;return t<32?(n=32-t,new le(e.highOrder>>>t|e.lowOrder<<n,e.lowOrder>>>t|e.highOrder<<n)):(n=64-t,new le(e.lowOrder>>>t|e.highOrder<<n,e.highOrder>>>t|e.lowOrder<<n))}function he(e,t){return new le(e.highOrder>>>t,e.lowOrder>>>t|e.highOrder<<32-t)}function me(e,t,n){return new le(e.highOrder&t.highOrder^e.highOrder&n.highOrder^t.highOrder&n.highOrder,e.lowOrder&t.lowOrder^e.lowOrder&n.lowOrder^t.lowOrder&n.lowOrder)}function fe(e){const t=ue(e,28),n=ue(e,34),i=ue(e,39);return new le(t.highOrder^n.highOrder^i.highOrder,t.lowOrder^n.lowOrder^i.lowOrder)}function ge(e,t){let n,i;n=(65535&e.lowOrder)+(65535&t.lowOrder),i=(e.lowOrder>>>16)+(t.lowOrder>>>16)+(n>>>16);const a=(65535&i)<<16|65535&n;n=(65535&e.highOrder)+(65535&t.highOrder)+(i>>>16),i=(e.highOrder>>>16)+(t.highOrder>>>16)+(n>>>16);return new le((65535&i)<<16|65535&n,a)}function ve(e,t,n,i){let a,r;a=(65535&e.lowOrder)+(65535&t.lowOrder)+(65535&n.lowOrder)+(65535&i.lowOrder),r=(e.lowOrder>>>16)+(t.lowOrder>>>16)+(n.lowOrder>>>16)+(i.lowOrder>>>16)+(a>>>16);const o=(65535&r)<<16|65535&a;a=(65535&e.highOrder)+(65535&t.highOrder)+(65535&n.highOrder)+(65535&i.highOrder)+(r>>>16),r=(e.highOrder>>>16)+(t.highOrder>>>16)+(n.highOrder>>>16)+(i.highOrder>>>16)+(a>>>16);return new le((65535&r)<<16|65535&a,o)}function we(e,t,n,i,a){let r,o;r=(65535&e.lowOrder)+(65535&t.lowOrder)+(65535&n.lowOrder)+(65535&i.lowOrder)+(65535&a.lowOrder),o=(e.lowOrder>>>16)+(t.lowOrder>>>16)+(n.lowOrder>>>16)+(i.lowOrder>>>16)+(a.lowOrder>>>16)+(r>>>16);const s=(65535&o)<<16|65535&r;r=(65535&e.highOrder)+(65535&t.highOrder)+(65535&n.highOrder)+(65535&i.highOrder)+(65535&a.highOrder)+(o>>>16),o=(e.highOrder>>>16)+(t.highOrder>>>16)+(n.highOrder>>>16)+(i.highOrder>>>16)+(a.highOrder>>>16)+(r>>>16);return new le((65535&o)<<16|65535&r,s)}function ye(e,t){return new le(e.highOrder^t.highOrder,e.lowOrder^t.lowOrder)}function xe(e){const t=ue(e,19),n=ue(e,61),i=he(e,6);return new le(t.highOrder^n.highOrder^i.highOrder,t.lowOrder^n.lowOrder^i.lowOrder)}function be(e){const t=ue(e,1),n=ue(e,8),i=he(e,7);return new le(t.highOrder^n.highOrder^i.highOrder,t.lowOrder^n.lowOrder^i.lowOrder)}function ke(e){const t=ue(e,14),n=ue(e,18),i=ue(e,41);return new le(t.highOrder^n.highOrder^i.highOrder,t.lowOrder^n.lowOrder^i.lowOrder)}const Se=[new le(H[0],3609767458),new le(H[1],602891725),new le(H[2],3964484399),new le(H[3],2173295548),new le(H[4],4081628472),new le(H[5],3053834265),new le(H[6],2937671579),new le(H[7],3664609560),new le(H[8],2734883394),new le(H[9],1164996542),new le(H[10],1323610764),new le(H[11],3590304994),new le(H[12],4068182383),new le(H[13],991336113),new le(H[14],633803317),new le(H[15],3479774868),new le(H[16],2666613458),new le(H[17],944711139),new le(H[18],2341262773),new le(H[19],2007800933),new le(H[20],1495990901),new le(H[21],1856431235),new le(H[22],3175218132),new le(H[23],2198950837),new le(H[24],3999719339),new le(H[25],766784016),new le(H[26],2566594879),new le(H[27],3203337956),new le(H[28],1034457026),new le(H[29],2466948901),new le(H[30],3758326383),new le(H[31],168717936),new le(H[32],1188179964),new le(H[33],1546045734),new le(H[34],1522805485),new le(H[35],2643833823),new le(H[36],2343527390),new le(H[37],1014477480),new le(H[38],1206759142),new le(H[39],344077627),new le(H[40],1290863460),new le(H[41],3158454273),new le(H[42],3505952657),new le(H[43],106217008),new le(H[44],3606008344),new le(H[45],1432725776),new le(H[46],1467031594),new le(H[47],851169720),new le(H[48],3100823752),new le(H[49],1363258195),new le(H[50],3750685593),new le(H[51],3785050280),new le(H[52],3318307427),new le(H[53],3812723403),new le(H[54],2003034995),new le(H[55],3602036899),new le(H[56],1575990012),new le(H[57],1125592928),new le(H[58],2716904306),new le(H[59],442776044),new le(H[60],593698344),new le(H[61],3733110249),new le(H[62],2999351573),new le(H[63],3815920427),new le(3391569614,3928383900),new le(3515267271,566280711),new le(3940187606,3454069534),new le(4118630271,4000239992),new le(116418474,1914138554),new le(174292421,2731055270),new le(289380356,3203993006),new le(460393269,320620315),new le(685471733,587496836),new le(852142971,1086792851),new le(1017036298,365543100),new le(1126000580,2618297676),new le(1288033470,3409855158),new le(1501505948,4234509866),new le(1607167915,987167468),new le(1816402316,1246189591)];function Ce(e){return"SHA-384"===e?[new le(3418070365,j[0]),new le(1654270250,j[1]),new le(2438529370,j[2]),new le(355462360,j[3]),new le(1731405415,j[4]),new le(41048885895,j[5]),new le(3675008525,j[6]),new le(1203062813,j[7])]:[new le(D[0],4089235720),new le(D[1],2227873595),new le(D[2],4271175723),new le(D[3],1595750129),new le(D[4],2917565137),new le(D[5],725511199),new le(D[6],4215389547),new le(D[7],327033209)]}function Ae(e,t){let n,i,a,r,o,s,c,p,l,d,u,h;const m=[];for(n=t[0],i=t[1],a=t[2],r=t[3],o=t[4],s=t[5],c=t[6],p=t[7],u=0;u<80;u+=1)u<16?(h=2*u,m[u]=new le(e[h],e[h+1])):m[u]=ve(xe(m[u-2]),m[u-7],be(m[u-15]),m[u-16]),l=we(p,ke(o),(g=s,v=c,new le((f=o).highOrder&g.highOrder^~f.highOrder&v.highOrder,f.lowOrder&g.lowOrder^~f.lowOrder&v.lowOrder)),Se[u],m[u]),d=ge(fe(n),me(n,i,a)),p=c,c=s,s=o,o=ge(r,l),r=a,a=i,i=n,n=ge(l,d);var f,g,v;return t[0]=ge(n,t[0]),t[1]=ge(i,t[1]),t[2]=ge(a,t[2]),t[3]=ge(r,t[3]),t[4]=ge(o,t[4]),t[5]=ge(s,t[5]),t[6]=ge(c,t[6]),t[7]=ge(p,t[7]),t}let Ee=class extends ${constructor(e,t,n){if("SHA-384"!==e&&"SHA-512"!==e)throw new Error(z);super(e,t,n),v(this,"intermediateState"),v(this,"variantBlockSize"),v(this,"bigEndianMod"),v(this,"outputBinLen"),v(this,"isVariableLen"),v(this,"HMACSupported"),v(this,"converterFunc"),v(this,"roundFunc"),v(this,"finalizeFunc"),v(this,"stateCloneFunc"),v(this,"newStateFunc"),v(this,"getMAC");const i=n||{};this.getMAC=this._getHMAC,this.HMACSupported=!0,this.bigEndianMod=-1,this.converterFunc=F(this.inputFormat,this.utfType,this.bigEndianMod),this.roundFunc=Ae,this.stateCloneFunc=function(e){return e.slice()},this.newStateFunc=Ce,this.finalizeFunc=function(t,n,i,a){return function(e,t,n,i,a){let r,o;const s=31+(t+129>>>10<<5),c=t+n;for(;e.length<=s;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[s]=4294967295&c,e[s-1]=c/P|0,r=0;r<e.length;r+=32)i=Ae(e.slice(r,r+32),i);return o="SHA-384"===a?[i[0].highOrder,i[0].lowOrder,i[1].highOrder,i[1].lowOrder,i[2].highOrder,i[2].lowOrder,i[3].highOrder,i[3].lowOrder,i[4].highOrder,i[4].lowOrder,i[5].highOrder,i[5].lowOrder]:[i[0].highOrder,i[0].lowOrder,i[1].highOrder,i[1].lowOrder,i[2].highOrder,i[2].lowOrder,i[3].highOrder,i[3].lowOrder,i[4].highOrder,i[4].lowOrder,i[5].highOrder,i[5].lowOrder,i[6].highOrder,i[6].lowOrder,i[7].highOrder,i[7].lowOrder],o}(t,n,i,a,e)},this.intermediateState=Ce(e),this.variantBlockSize=1024,this.outputBinLen="SHA-384"===e?384:512,this.isVariableLen=!1,i.hmacKey&&this._setHMACKey(_("hmacKey",i.hmacKey,this.bigEndianMod))}};const Oe=[new le(0,1),new le(0,32898),new le(2147483648,32906),new le(2147483648,2147516416),new le(0,32907),new le(0,2147483649),new le(2147483648,2147516545),new le(2147483648,32777),new le(0,138),new le(0,136),new le(0,2147516425),new le(0,2147483658),new le(0,2147516555),new le(2147483648,139),new le(2147483648,32905),new le(2147483648,32771),new le(2147483648,32770),new le(2147483648,128),new le(0,32778),new le(2147483648,2147483658),new le(2147483648,2147516545),new le(2147483648,32896),new le(0,2147483649),new le(2147483648,2147516424)],Te=[[0,36,3,41,18],[1,44,10,45,2],[62,6,43,15,61],[28,55,25,21,56],[27,20,39,8,14]];function Le(e){let t;const n=[];for(t=0;t<5;t+=1)n[t]=[new le(0,0),new le(0,0),new le(0,0),new le(0,0),new le(0,0)];return n}function Ue(e){let t;const n=[];for(t=0;t<5;t+=1)n[t]=e[t].slice();return n}function Me(e,t){let n,i,a,r;const o=[],s=[];if(null!=e)for(i=0;i<e.length;i+=2)t[(i>>>1)%5][(i>>>1)/5|0]=ye(t[(i>>>1)%5][(i>>>1)/5|0],new le(e[i+1],e[i]));for(n=0;n<24;n+=1){for(r=Le(),i=0;i<5;i+=1)o[i]=(c=t[i][0],p=t[i][1],l=t[i][2],d=t[i][3],u=t[i][4],new le(c.highOrder^p.highOrder^l.highOrder^d.highOrder^u.highOrder,c.lowOrder^p.lowOrder^l.lowOrder^d.lowOrder^u.lowOrder));for(i=0;i<5;i+=1)s[i]=ye(o[(i+4)%5],de(o[(i+1)%5],1));for(i=0;i<5;i+=1)for(a=0;a<5;a+=1)t[i][a]=ye(t[i][a],s[i]);for(i=0;i<5;i+=1)for(a=0;a<5;a+=1)r[a][(2*i+3*a)%5]=de(t[i][a],Te[i][a]);for(i=0;i<5;i+=1)for(a=0;a<5;a+=1)t[i][a]=ye(r[i][a],new le(~r[(i+1)%5][a].highOrder&r[(i+2)%5][a].highOrder,~r[(i+1)%5][a].lowOrder&r[(i+2)%5][a].lowOrder));t[0][0]=ye(t[0][0],Oe[n])}var c,p,l,d,u;return t}function Be(e){let t,n,i=0;const a=[0,0],r=[4294967295&e,e/P&2097151];for(t=6;t>=0;t--)n=r[t>>2]>>>8*t&255,0===n&&0===i||(a[i+1>>2]|=n<<8*(i+1),i+=1);return i=0!==i?i:1,a[0]|=i,{value:i+1>4?a:[a[0]],binLen:8+8*i}}function Fe(e){return N(Be(e.binLen),e)}function Re(e,t){let n,i=Be(t);i=N(i,e);const a=t>>>2,r=(a-i.value.length%a)%a;for(n=0;n<r;n++)i.value.push(0);return i.value}let Pe=class extends ${constructor(e,t,n){let i=6,a=0;super(e,t,n),v(this,"intermediateState"),v(this,"variantBlockSize"),v(this,"bigEndianMod"),v(this,"outputBinLen"),v(this,"isVariableLen"),v(this,"HMACSupported"),v(this,"converterFunc"),v(this,"roundFunc"),v(this,"finalizeFunc"),v(this,"stateCloneFunc"),v(this,"newStateFunc"),v(this,"getMAC");const r=n||{};if(1!==this.numRounds){if(r.kmacKey||r.hmacKey)throw new Error(I);if("CSHAKE128"===this.shaVariant||"CSHAKE256"===this.shaVariant)throw new Error("Cannot set numRounds for CSHAKE variants")}switch(this.bigEndianMod=1,this.converterFunc=F(this.inputFormat,this.utfType,this.bigEndianMod),this.roundFunc=Me,this.stateCloneFunc=Ue,this.newStateFunc=Le,this.intermediateState=Le(),this.isVariableLen=!1,e){case"SHA3-224":this.variantBlockSize=a=1152,this.outputBinLen=224,this.HMACSupported=!0,this.getMAC=this._getHMAC;break;case"SHA3-256":this.variantBlockSize=a=1088,this.outputBinLen=256,this.HMACSupported=!0,this.getMAC=this._getHMAC;break;case"SHA3-384":this.variantBlockSize=a=832,this.outputBinLen=384,this.HMACSupported=!0,this.getMAC=this._getHMAC;break;case"SHA3-512":this.variantBlockSize=a=576,this.outputBinLen=512,this.HMACSupported=!0,this.getMAC=this._getHMAC;break;case"SHAKE128":i=31,this.variantBlockSize=a=1344,this.outputBinLen=-1,this.isVariableLen=!0,this.HMACSupported=!1,this.getMAC=null;break;case"SHAKE256":i=31,this.variantBlockSize=a=1088,this.outputBinLen=-1,this.isVariableLen=!0,this.HMACSupported=!1,this.getMAC=null;break;case"KMAC128":i=4,this.variantBlockSize=a=1344,this._initializeKMAC(n),this.outputBinLen=-1,this.isVariableLen=!0,this.HMACSupported=!1,this.getMAC=this._getKMAC;break;case"KMAC256":i=4,this.variantBlockSize=a=1088,this._initializeKMAC(n),this.outputBinLen=-1,this.isVariableLen=!0,this.HMACSupported=!1,this.getMAC=this._getKMAC;break;case"CSHAKE128":this.variantBlockSize=a=1344,i=this._initializeCSHAKE(n),this.outputBinLen=-1,this.isVariableLen=!0,this.HMACSupported=!1,this.getMAC=null;break;case"CSHAKE256":this.variantBlockSize=a=1088,i=this._initializeCSHAKE(n),this.outputBinLen=-1,this.isVariableLen=!0,this.HMACSupported=!1,this.getMAC=null;break;default:throw new Error(z)}this.finalizeFunc=function(e,t,n,r,o){return function(e,t,n,i,a,r,o){let s,c,p=0;const l=[],d=a>>>5,u=t>>>5;for(s=0;s<u&&t>=a;s+=d)i=Me(e.slice(s,s+d),i),t-=a;for(e=e.slice(s),t%=a;e.length<d;)e.push(0);for(s=t>>>3,e[s>>2]^=r<<s%4*8,e[d-1]^=2147483648,i=Me(e,i);32*l.length<o&&(c=i[p%5][p/5|0],l.push(c.lowOrder),!(32*l.length>=o));)l.push(c.highOrder),p+=1,0==64*p%a&&(Me(null,i),p=0);return l}(e,t,0,r,a,i,o)},r.hmacKey&&this._setHMACKey(_("hmacKey",r.hmacKey,this.bigEndianMod))}_initializeCSHAKE(e,t){const n=function(e){const t=e||{};return{funcName:_("funcName",t.funcName,1,{value:[],binLen:0}),customization:_("Customization",t.customization,1,{value:[],binLen:0})}}(e||{});t&&(n.funcName=t);const i=N(Fe(n.funcName),Fe(n.customization));if(0!==n.customization.binLen||0!==n.funcName.binLen){const e=Re(i,this.variantBlockSize>>>3);for(let t=0;t<e.length;t+=this.variantBlockSize>>>5)this.intermediateState=this.roundFunc(e.slice(t,t+(this.variantBlockSize>>>5)),this.intermediateState),this.processedLen+=this.variantBlockSize;return 4}return 31}_initializeKMAC(e){const t=function(e){const t=e||{};return{kmacKey:_("kmacKey",t.kmacKey,1),funcName:{value:[1128353099],binLen:32},customization:_("Customization",t.customization,1,{value:[],binLen:0})}}(e||{});this._initializeCSHAKE(e,t.funcName);const n=Re(Fe(t.kmacKey),this.variantBlockSize>>>3);for(let i=0;i<n.length;i+=this.variantBlockSize>>>5)this.intermediateState=this.roundFunc(n.slice(i,i+(this.variantBlockSize>>>5)),this.intermediateState),this.processedLen+=this.variantBlockSize;this.macKeySet=!0}_getKMAC(e){const t=N({value:this.remainder.slice(),binLen:this.remainderLen},function(e){let t,n,i=0;const a=[0,0],r=[4294967295&e,e/P&2097151];for(t=6;t>=0;t--)n=r[t>>2]>>>8*t&255,0===n&&0===i||(a[i>>2]|=n<<8*i,i+=1);return i=0!==i?i:1,a[i>>2]|=i<<8*i,{value:i+1>4?a:[a[0]],binLen:8+8*i}}(e.outputLen));return this.finalizeFunc(t.value,t.binLen,this.processedLen,this.stateCloneFunc(this.intermediateState),e.outputLen)}};class He{constructor(e,t,n){if(v(this,"shaObj"),"SHA-1"===e)this.shaObj=new oe(e,t,n);else if("SHA-224"===e||"SHA-256"===e)this.shaObj=new pe(e,t,n);else if("SHA-384"===e||"SHA-512"===e)this.shaObj=new Ee(e,t,n);else{if("SHA3-224"!==e&&"SHA3-256"!==e&&"SHA3-384"!==e&&"SHA3-512"!==e&&"SHAKE128"!==e&&"SHAKE256"!==e&&"CSHAKE128"!==e&&"CSHAKE256"!==e&&"KMAC128"!==e&&"KMAC256"!==e)throw new Error(z);this.shaObj=new Pe(e,t,n)}}update(e){return this.shaObj.update(e),this}getHash(e,t){return this.shaObj.getHash(e,t)}setHMACKey(e,t,n){this.shaObj.setHMACKey(e,t,n)}getHMAC(e,t){return this.shaObj.getHMAC(e,t)}}function je(e){return e<10?`0${e}`:e}const De=()=>{if("undefined"!=typeof document)return performance.now();if("undefined"!=typeof process){const[e,t]=process.hrtime();return 1e3*e+t/1e6}return Date.now()},ze=(e="",t="",n="")=>{const i={},a=e.split(t);return a.length>0&&a.forEach((e=>{const[t="",a=""]=e.split(n);qe(t)&&(i[qe(t)]=qe(a))})),i},Ie=e=>"[object String]"===toString.call(e);function Ne(e=8){const t="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678";let n="";for(let i=0;i<e;i++)n+=t.charAt(Math.floor(48*Math.random()));return`${Date.now()}-${n}`}const qe=(e,t={})=>{const{urlencoded:n=!0}=t,i=String.prototype.trim.call(e);return n?decodeURIComponent(i).replace(/"|'/g,""):i.replace(/"|'/g,"")},_e=e=>{const t=document.cookie.split("; ");for(let n=0;n<t.length;n++){const i=t[n].split("=");if(i[0]===e)return decodeURIComponent(i[1])}return""},$e=e=>{if("undefined"!=typeof window){if(e&&Ie(e));else{const e=/\w(\.trunk|\.neibu|\.release|test)\./.exec(window.location.hostname);e&&e[1]}return"//log.chaxus.com"}};const Ke=()=>"undefined"!=typeof window?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0},Ve=/(?:[^\x21\x25\x26-\x3B\x3D\x3F-\x5B\x5D\x5F\x7E]|%(?:[^\da-f]|[\da-f][^\da-f]|$))+/gi,We=/(^|[^\uD800-\uDBFF])[\uDC00-\uDFFF]|[\uD800-\uDBFF]([^\uDC00-\uDFFF]|$)/g;const Ge=e=>new Promise(((t,n)=>{const i=new Image,a=(new Date).getTime();i.src=e||`https://github.com/favicon.ico?d=${a}`,i.onload=()=>{const e=(new Date).getTime();t(e-a)},i.onerror=e=>{n(e)}})),Ye=(e,...t)=>n=>new Promise(((i,a)=>{setTimeout((async()=>{try{const n=await e(...t);i(n)}catch(n){a(n)}}),n)})),Xe={bold:["",""],dim:["",""],reset:["",""],italic:["",""],underline:["",""],inverse:["",""],hidden:["",""],strikethrough:["",""],black:["",""],red:["",""],green:["",""],yellow:["",""],blue:["",""],magenta:["",""],cyan:["",""],white:["",""],gray:["",""],bgBlack:["",""],bgRed:["",""],bgGreen:["",""],bgYellow:["",""],bgBlue:["",""],bgMagenta:["",""],bgCyan:["",""],bgWhite:["",""]},Je=Math.round;class Qe{constructor(e){v(this,"r"),v(this,"g"),v(this,"b"),this.r=e[0],this.g=e[1],this.b=e[2]}toString(){return`rgb(${this.r},${this.g},${this.b})`}}class Ze extends Qe{constructor(e){super(e),v(this,"a"),this.a=e[3]}toString(){return`rgba(${this.r},${this.g},${this.b},${this.a})`}}class et{constructor(e){v(this,"h"),v(this,"s"),v(this,"l"),this.h=e[0],this.s=e[1],this.l=e[2]}toString(){return`hsl(${this.h},${this.s}%,${this.l}%)`}}class tt extends et{constructor(e){super(e),v(this,"a"),this.a=e[3]}toString(){return`hsla(${this.h},${this.s}%,${this.l}%,${this.a})`}}class nt{constructor(e,t=0,n=0,i=1){if(v(this,"r"),v(this,"g"),v(this,"b"),v(this,"a"),v(this,"rgb"),v(this,"rgba"),v(this,"hex"),v(this,"hsl"),v(this,"hsla"),v(this,"h"),v(this,"s"),v(this,"l"),"string"==typeof e){let i=e;"#"!==i.charAt(0)&&(i="#"+i),i.length<7&&(i="#"+i[1]+i[1]+i[2]+i[2]+i[3]+i[3]),[e,t,n]=it(i)}else e instanceof Array&&(i=e[3]||i,n=e[2],t=e[1],e=e[0]);this.r=Number(e),this.g=Number(t),this.b=Number(n),this.a=i,this.rgb=new Qe([this.r,this.g,this.b]),this.rgba=new Ze([this.r,this.g,this.b,this.a]),this.hex=rt(this.r,this.g,this.b),this.hsl=new et(ot(this.r,this.g,this.b)),this.h=this.hsl.h,this.s=this.hsl.s,this.l=this.hsl.l,this.hsla=new tt([this.h,this.s,this.l,this.a])}setHue(e){this.h=e,this.hsl.h=e,this.hsla.h=e,this.updateFromHsl()}setSat(e){this.s=e,this.hsl.s=e,this.hsla.s=e,this.updateFromHsl()}setLum(e){this.l=e,this.hsl.l=e,this.hsla.l=e,this.updateFromHsl()}setAlpha(e){this.a=e,this.hsla.a=e,this.rgba.a=e}updateFromHsl(){this.rgb=new Qe(ct(this.h,this.s,this.l)),this.r=this.rgb.r,this.g=this.rgb.g,this.b=this.rgb.b,this.rgba.r=this.rgb.r,this.rgba.g=this.rgb.g,this.rgba.b=this.rgb.b,this.hex=rt([this.r,this.g,this.b])}}const it=function(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:null},at=function(e){const t=e.toString(16);return 1===t.length?"0"+t:t},rt=function(e,t=0,n=0){return e instanceof Array&&(n=e[2],t=e[1],e=e[0]),"#"+at(e)+at(t)+at(n)},ot=function(e,t=0,n=0){e instanceof Array&&(n=e[2],t=e[1],e=e[0]);let i,a,r,o=0;e/=255,t/=255,n/=255;const s=Math.max(e,t,n),c=Math.min(e,t,n);if(a=(s+c)/2,s===c)o=i=0;else{switch(r=s-c,i=a>.5?r/(2-s-c):r/(s+c),s){case e:o=(t-n)/r+(t<n?6:0);break;case t:o=(n-e)/r+2;break;case n:o=(e-t)/r+4}o/=6}return o=Je(360*o),i=Je(100*i),a=Je(100*a),[o,i,a]},st=function(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e},ct=function(e,t,n){let i,a,r,o,s;return e instanceof Array&&(n=e[2],t=e[1],e=e[0]),e=Number(e)/360,t=Number(t)/100,n=Number(n)/100,0===t?i=a=r=n:(o=n<.5?n*(1+t):n+t-n*t,s=2*n-o,i=st(s,o,e+1/3),a=st(s,o,e),r=st(s,o,e-1/3)),[Je(255*i),Je(255*a),Je(255*r)]},pt=function(e,t,n){let i=0,a=0,r=0;if(0===n)return[0,0,0];t/=100,n/=100,e/=60;const o=Math.floor(e),s=e-o,c=n*(1-t),p=n*(1-t*s),l=n*(1-t*(1-s));return 0===o?(i=n,a=l,r=c):1===o?(i=p,a=n,r=c):2===o?(i=c,a=n,r=l):3===o?(i=c,a=p,r=n):4===o?(i=l,a=c,r=n):5===o&&(i=n,a=c,r=p),i=Math.floor(255*i),a=Math.floor(255*a),r=Math.floor(255*r),[i,a,r]},lt=pt,dt=function(e,t,n){return ot(pt(e,t,n))};const ut=e=>{let t,n=!1;return(...i)=>(n||(t="function"==typeof e?e(...i):e,n=!0,e=void 0),t)};function ht(e={}){if("object"!=typeof e)throw new TypeError("param must be object");return Object.entries(e).reduce(((e,[t,n])=>(void 0===n||null==n||e.append(decodeURIComponent(t),decodeURIComponent(n)),e)),new URLSearchParams).toString()}function mt(e,t,n,i){if(void 0!==e&&(t in e||i)){const i=n(e[t]);"function"==typeof i&&(e[t]=i)}}const ft=(e,t)=>{const n=Object.getOwnPropertyDescriptors(t);for(const i of Object.keys(n)){const t=n[i];if(t.get){const n=t.get;Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:ut(n)})}else{if("object"!=typeof t.value)throw new Error("Exposed values must be either a getter or an nested object");Object.defineProperty(e,i,{configurable:!1,enumerable:!0,writable:!1,value:ft({},t.value)})}}return Object.freeze(e)},gt=(e=A)=>{["log","info","warn","error","assert"].forEach((t=>{mt(console,t,(n=>function(...i){n&&(e(t,...i),n.apply(console,i))}))}))},vt=/["'&<>]/;const wt=["svg","path","g","circle","rect","line","polyline","polygon","ellipse","text","tspan","textPath","defs","marker","radialGradient","stop","linearGradient","clipPath","mask","pattern","image","use","symbol","foreignObject","feGaussianBlur","feColorMatrix"];class yt{constructor(e,t){v(this,"listener"),v(this,"element"),v(this,"create",((e,t)=>wt.includes(e)?document.createElementNS("http://www.w3.org/2000/svg",e,t):document.createElement(e,t))),v(this,"setAttribute",((e,t)=>(this.element.setAttribute(e,t),this))),v(this,"removeAttribute",(e=>(this.element.removeAttribute(e),this))),v(this,"append",(e=>(this.element.appendChild(e),this))),v(this,"remove",(e=>(this.element.removeChild(e),this))),v(this,"setTextContent",(e=>(this.element.textContent=e,this))),v(this,"setStyle",((e,t)=>(this.element.style.setProperty(e,t),this))),v(this,"addElementByType",((e,t)=>{e instanceof yt&&t.appendChild(e.element),e instanceof HTMLElement&&t.appendChild(e)})),v(this,"addChild",(e=>{if(Array.isArray(e)){const t=document.createDocumentFragment();e.forEach((e=>{this.addElementByType(e,t)})),this.element.appendChild(t)}else this.addElementByType(e,this.element);return this})),v(this,"listen",((e,t,n)=>{let i=this.listener.get(e);i||(i=new Map,this.listener.set(e,i));const a=i.get(t.name);return a===t&&console.warn(`${a.name} listener has been added to ${e} event, please remove it first.`),this.element.addEventListener(e,t,n),i.set(t.name,t),this})),v(this,"clearListener",((e,t,n)=>{this.element.removeEventListener(e,t,n);const i=this.listener.get(e);return i?i.delete(t.name):console.warn(`No ${e} event listener has been added.`),this})),v(this,"clearAllListener",(()=>{for(const[e,t]of this.listener){for(const[n,i]of t)this.element.removeEventListener(e,i),t.delete(n);this.listener.delete(e)}return this})),this.element=this.create(e,t),this.listener=new Map}}const xt=(e=A)=>{"undefined"!=typeof window&&(window.addEventListener("unhandledrejection",(t=>{e(t)}),!0),window.addEventListener("error",(t=>(e(t),!1)),!0))},bt=new Map([[".ez","application/andrew-inset"],[".aw","application/applixware"],[".txt","text/plain"],[".ez","application/andrew-inset"],[".aw","application/applixware"],[".atom","application/atom+xml"],[".atomcat","application/atomcat+xml"],[".atomsvc","application/atomsvc+xml"],[".ccxml","application/ccxml+xml"],[".cu","application/cu-seeme"],[".davmount","application/davmount+xml"],[".ecma","application/ecmascript"],[".emma","application/emma+xml"],[".epub","application/epub+zip"],[".pfr","application/font-tdpfr"],[".stk","application/hyperstudio"],[".jar","application/java-archive"],[".ser","application/java-serialized-object"],[".class","application/java-vm"],[".js","application/javascript"],[".ts","application/javascript"],[".json","application/json"],[".lostxml","application/lost+xml"],[".hqx","application/mac-binhex40"],[".cpt","application/mac-compactpro"],[".mrc","application/marc"],[".ma,","application/mathematica"],[".nb","application/mathematica"],[".mb","application/mathematica"],[".mathml","application/mathml+xml"],[".mbox","application/mbox"],[".mscml","application/mediaservercontrol+xml"],[".mp4s","application/mp4"],[".doc","application/msword"],[".dot","application/msword"],[".mxf","application/mxf"],[".oda","application/oda"],[".opf","application/oebps-package+xml"],[".ogx","application/ogg"],[".onetoc","application/onenote"],[".onetoc2","application/onenote"],[".onetmp","application/onenote"],[".onepkg","application/onenote"],[".xer","application/patch-ops-error+xml"],[".pdf","application/pdf"],[".pgp","application/pgp-encrypted"],[".asc","application/pgp-signature"],[".sig","application/pgp-signature"],[".prf","application/pics-rules"],[".p10","application/pkcs10"],[".p7c","application/pkcs7-mime"],[".p7m","application/pkcs7-mime"],[".p7s","application/pkcs7-signature"],[".cer","application/pkix-cert"],[".crl","application/pkix-crl"],[".pkipath","application/pkix-pkipath"],[".pki","application/pkixcmp"],[".pls","application/pls+xml"],[".ai","application/postscript"],[".eps","application/postscript"],[".ps","application/postscript"],[".cww","application/prs.cww"],[".rdf","application/rdf+xml"],[".rif","application/reginfo+xml"],[".rnc","application/relax-ng-compact-syntax"],[".rl","application/resource-lists+xml"],[".rld","application/resource-lists-diff+xml"],[".rs","application/rls-services+xml"],[".rsd","application/rsd+xml"],[".rss","application/rss+xml"],[".rtf","application/rtf"],[".sbml","application/sbml+xml"],[".scq","application/scvp-cv-request"],[".scs","application/scvp-cv-response"],[".spq","application/scvp-vp-request"],[".spp","application/scvp-vp-response"],[".sdp","application/sdp"],[".setpay","application/set-payment-initiation"],[".setreg","application/set-registration-initiation"],[".shf","application/shf+xml"],[".smil","application/smil+xml"],[".smi","application/smil+xml"],[".rq","application/sparql-query"],[".srx","application/sparql-results+xml"],[".gram","application/srgs"],[".grxml","application/srgs+xml"],[".ssml","application/ssml+xml"],[".plb","application/vnd.3gpp.pic-bw-large"],[".psb","application/vnd.3gpp.pic-bw-small"],[".pvb","application/vnd.3gpp.pic-bw-var"],[".tcap","application/vnd.3gpp2.tcap"],[".pwn","application/vnd.3m.post-it-notes"],[".aso","application/vnd.accpac.simply.aso"],[".imp","application/vnd.accpac.simply.imp"],[".acu","application/vnd.acucobol"],[".atc","application/vnd.acucorp"],[".acutc","application/vnd.acucorp"],[".air","application/vnd.adobe.air-application-installer-package+zip"],[".xdp","application/vnd.adobe.xdp+xml"],[".xfdf","application/vnd.adobe.xfdf"],[".azf","application/vnd.airzip.filesecure.azf"],[".azs","application/vnd.airzip.filesecure.azs"],[".azw","application/vnd.amazon.ebook"],[".acc","application/vnd.americandynamics.acc"],[".ami","application/vnd.amiga.ami"],[".apk","application/vnd.android.package-archive"],[".cii","application/vnd.anser-web-certificate-issue-initiation"],[".fti","application/vnd.anser-web-funds-transfer-initiation"],[".atx","application/vnd.antix.game-component"],[".mpkg","application/vnd.apple.installer+xml"],[".swi","application/vnd.arastra.swi"],[".aep","application/vnd.audiograph"],[".mpm","application/vnd.blueice.multipass"],[".bmi","application/vnd.bmi"],[".rep","application/vnd.businessobjects"],[".cdxml","application/vnd.chemdraw+xml"],[".mmd","application/vnd.chipnuts.karaoke-mmd"],[".cdy","application/vnd.cinderella"],[".cla","application/vnd.claymore"],[".c4u","application/vnd.clonk.c4group"],[".c4p","application/vnd.clonk.c4group"],[".c4f","application/vnd.clonk.c4group"],[".c4d","application/vnd.clonk.c4group"],[".c4g","application/vnd.clonk.c4group"],[".csp","application/vnd.commonspace"],[".cdbcmsg","application/vnd.contact.cmsg"],[".cmc","application/vnd.cosmocaller"],[".clkx","application/vnd.crick.clicker"],[".clkk","application/vnd.crick.clicker.keyboard"],[".clkp","application/vnd.crick.clicker.palette"],[".clkt","application/vnd.crick.clicker.template"],[".clkw","application/vnd.crick.clicker.wordbank"],[".wbs","application/vnd.criticaltools.wbs+xml"],[".pml","application/vnd.ctc-posml"],[".ppd","application/vnd.cups-ppd"],[".car","application/vnd.curl.car"],[".pcurl","application/vnd.curl.pcurl"],[".rdz","application/vnd.data-vision.rdz"],[".fe_launch","application/vnd.denovo.fcselayout-link"],[".dna","application/vnd.dna"],[".mlp","application/vnd.dolby.mlp"],[".dpg","application/vnd.dpgraph"],[".dfac","application/vnd.dreamfactory"],[".geo","application/vnd.dynageo"],[".mag","application/vnd.ecowin.chart"],[".nml","application/vnd.enliven"],[".esf","application/vnd.epson.esf"],[".msf","application/vnd.epson.msf"],[".qam","application/vnd.epson.quickanime"],[".slt","application/vnd.epson.salt"],[".ssf","application/vnd.epson.ssf"],[".et3","application/vnd.eszigno3+xml"],[".es3","application/vnd.eszigno3+xml"],[".ez2","application/vnd.ezpix-album"],[".ez3","application/vnd.ezpix-package"],[".fdf","application/vnd.fdf"],[".mseed","application/vnd.fdsn.mseed"],[".dataless","application/vnd.fdsn.seed"],[".seed","application/vnd.fdsn.seed"],[".gph","application/vnd.flographit"],[".ftc","application/vnd.fluxtime.clip"],[".fm","application/vnd.framemaker"],[".frame","application/vnd.framemaker"],[".maker","application/vnd.framemaker"],[".book","application/vnd.framemaker"],[".fnc","application/vnd.frogans.fnc"],[".ltf","application/vnd.frogans.ltf"],[".fsc","application/vnd.fsc.weblaunch"],[".oas","application/vnd.fujitsu.oasys"],[".oa2","application/vnd.fujitsu.oasys2"],[".oa3","application/vnd.fujitsu.oasys3"],[".fg5","application/vnd.fujitsu.oasysgp"],[".bh2","application/vnd.fujitsu.oasysprs"],[".ddd","application/vnd.fujixerox.ddd"],[".xdw","application/vnd.fujixerox.docuworks"],[".xbd","application/vnd.fujixerox.docuworks.binder"],[".fzs","application/vnd.fuzzysheet"],[".txd","application/vnd.genomatix.tuxedo"],[".ggb","application/vnd.geogebra.file"],[".ggt","application/vnd.geogebra.tool"],[".gre","application/vnd.geometry-explorer"],[".gex","application/vnd.geometry-explorer"],[".gmx","application/vnd.gmx"],[".kml","application/vnd.google-earth.kml+xml"],[".kmz","application/vnd.google-earth.kmz"],[".gqf","application/vnd.grafeq"],[".gqs","application/vnd.grafeq"],[".gac","application/vnd.groove-account"],[".ghf","application/vnd.groove-help"],[".gim","application/vnd.groove-identity-message"],[".grv","application/vnd.groove-injector"],[".gtm","application/vnd.groove-tool-message"],[".tpl","application/vnd.groove-tool-template"],[".vcg","application/vnd.groove-vcard"],[".zmm","application/vnd.handheld-entertainment+xml"],[".hbci","application/vnd.hbci"],[".les","application/vnd.hhe.lesson-player"],[".hpgl","application/vnd.hp-hpgl"],[".hpid","application/vnd.hp-hpid"],[".hps","application/vnd.hp-hps"],[".jlt","application/vnd.hp-jlyt"],[".pcl","application/vnd.hp-pcl"],[".pclxl","application/vnd.hp-pclxl"],[".sfd-hdstx","application/vnd.hydrostatix.sof-data"],[".x3d","application/vnd.hzn-3d-crossword"],[".mpy","application/vnd.ibm.minipay"],[".afp","application/vnd.ibm.modcap"],[".listafp","application/vnd.ibm.modcap"],[".list3820","application/vnd.ibm.modcap"],[".irm","application/vnd.ibm.rights-management"],[".sc","application/vnd.ibm.secure-container"],[".icm","application/vnd.iccprofile"],[".icc","application/vnd.iccprofile"],[".igl","application/vnd.igloader"],[".ivp","application/vnd.immervision-ivp"],[".ivu","application/vnd.immervision-ivu"],[".xpw","application/vnd.intercon.formnet"],[".xpx","application/vnd.intercon.formnet"],[".qbo","application/vnd.intu.qbo"],[".qfx","application/vnd.intu.qfx"],[".rcprofile","application/vnd.ipunplugged.rcprofile"],[".irp","application/vnd.irepository.package+xml"],[".xpr","application/vnd.is-xpr"],[".jam","application/vnd.jam"],[".rms","application/vnd.jcp.javame.midlet-rms"],[".jisp","application/vnd.jisp"],[".joda","application/vnd.joost.joda-archive"],[".ktz","application/vnd.kahootz"],[".ktr","application/vnd.kahootz"],[".karbon","application/vnd.kde.karbon"],[".chrt","application/vnd.kde.kchart"],[".kfo","application/vnd.kde.kformula"],[".flw","application/vnd.kde.kivio"],[".kon","application/vnd.kde.kontour"],[".kpt","application/vnd.kde.kpresenter"],[".kpr","application/vnd.kde.kpresenter"],[".ksp","application/vnd.kde.kspread"],[".kwd","application/vnd.kde.kword"],[".kwt","application/vnd.kde.kword"],[".htke","application/vnd.kenameaapp"],[".kia","application/vnd.kidspiration"],[".kne","application/vnd.kinar"],[".knp","application/vnd.kinar"],[".skp","application/vnd.koan"],[".skd","application/vnd.koan"],[".skt","application/vnd.koan"],[".skm","application/vnd.koan"],[".sse","application/vnd.kodak-descriptor"],[".lbd","application/vnd.llamagraphics.life-balance.desktop"],[".lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],[".123","application/vnd.lotus-1-2-3"],[".apr","application/vnd.lotus-approach"],[".pre","application/vnd.lotus-freelance"],[".nsf","application/vnd.lotus-notes"],[".org","application/vnd.lotus-organizer"],[".scm","application/vnd.lotus-screencam"],[".lwp","application/vnd.lotus-wordpro"],[".portpkg","application/vnd.macports.portpkg"],[".mcd","application/vnd.mcd"],[".mc1","application/vnd.medcalcdata"],[".cdkey","application/vnd.mediastation.cdkey"],[".mwf","application/vnd.mfer"],[".mfm","application/vnd.mfmp"],[".flo","application/vnd.micrografx.flo"],[".igx","application/vnd.micrografx.igx"],[".mif","application/vnd.mif"],[".daf","application/vnd.mobius.daf"],[".dis","application/vnd.mobius.dis"],[".mbk","application/vnd.mobius.mbk"],[".mqy","application/vnd.mobius.mqy"],[".msl","application/vnd.mobius.msl"],[".plc","application/vnd.mobius.plc"],[".txf","application/vnd.mobius.txf"],[".mpn","application/vnd.mophun.application"],[".mpc","application/vnd.mophun.certificate"],[".xul","application/vnd.mozilla.xul+xml"],[".cil","application/vnd.ms-artgalry"],[".cab","application/vnd.ms-cab-compressed"],[".xls","application/vnd.ms-excel"],[".xlm","application/vnd.ms-excel"],[".xla","application/vnd.ms-excel"],[".xlc","application/vnd.ms-excel"],[".xlt","application/vnd.ms-excel"],[".xlw","application/vnd.ms-excel"],[".xlam","application/vnd.ms-excel.addin.macroenabled.12"],[".xlsb","application/vnd.ms-excel.sheet.binary.macroenabled.12"],[".xlsm","application/vnd.ms-excel.sheet.macroenabled.12"],[".xltm","application/vnd.ms-excel.template.macroenabled.12"],[".eot","application/vnd.ms-fontobject"],[".chm","application/vnd.ms-htmlhelp"],[".ims","application/vnd.ms-ims"],[".lrm","application/vnd.ms-lrm"],[".cat","application/vnd.ms-pki.seccat"],[".stl","application/vnd.ms-pki.stl"],[".pot","application/vnd.ms-powerpoint"],[".pps","application/vnd.ms-powerpoint"],[".ppt","application/vnd.ms-powerpoint"],[".ppam","application/vnd.ms-powerpoint.addin.macroenabled.12"],[".pptm","application/vnd.ms-powerpoint.presentation.macroenabled.12"],[".sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],[".ppsm","application/vnd.ms-powerpoint.slideshow.macroenabled.12"],[".potm","application/vnd.ms-powerpoint.template.macroenabled.12"],[".mpp","application/vnd.ms-project"],[".mpt","application/vnd.ms-project"],[".docm","application/vnd.ms-word.document.macroenabled.12"],[".dotm","application/vnd.ms-word.template.macroenabled.12"],[".wdb","application/vnd.ms-works"],[".wcm","application/vnd.ms-works"],[".wks","application/vnd.ms-works"],[".wps","application/vnd.ms-works"],[".wpl","application/vnd.ms-wpl"],[".xps","application/vnd.ms-xpsdocument"],[".mseq","application/vnd.mseq"],[".mus","application/vnd.musician"],[".msty","application/vnd.muvee.style"],[".nlu","application/vnd.neurolanguage.nlu"],[".nnd","application/vnd.noblenet-directory"],[".nns","application/vnd.noblenet-sealer"],[".nnw","application/vnd.noblenet-web"],[".ngdat","application/vnd.nokia.n-gage.data"],[".n-gage","application/vnd.nokia.n-gage.symbian.install"],[".rpst","application/vnd.nokia.radio-preset"],[".rpss","application/vnd.nokia.radio-presets"],[".edm","application/vnd.novadigm.edm"],[".edx","application/vnd.novadigm.edx"],[".ext","application/vnd.novadigm.ext"],[".odc","application/vnd.oasis.opendocument.chart"],[".otc","application/vnd.oasis.opendocument.chart-template"],[".odb","application/vnd.oasis.opendocument.database"],[".odf","application/vnd.oasis.opendocument.formula"],[".odft","application/vnd.oasis.opendocument.formula-template"],[".odg","application/vnd.oasis.opendocument.graphics"],[".otg","application/vnd.oasis.opendocument.graphics-template"],[".odi","application/vnd.oasis.opendocument.image"],[".oti","application/vnd.oasis.opendocument.image-template"],[".odp","application/vnd.oasis.opendocument.presentation"],[".ods","application/vnd.oasis.opendocument.spreadsheet"],[".ots","application/vnd.oasis.opendocument.spreadsheet-template"],[".odt","application/vnd.oasis.opendocument.text"],[".otm","application/vnd.oasis.opendocument.text-master"],[".ott","application/vnd.oasis.opendocument.text-template"],[".oth","application/vnd.oasis.opendocument.text-web"],[".xo","application/vnd.olpc-sugar"],[".dd2","application/vnd.oma.dd2+xml"],[".oxt","application/vnd.openofficeorg.extension"],[".pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],[".sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],[".ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],[".potx","application/vnd.openxmlformats-officedocument.presentationml.template"],[".xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],[".xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],[".docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],[".dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],[".dp","application/vnd.osgi.dp"],[".oprc","application/vnd.palm"],[".pqa","application/vnd.palm"],[".pdb","application/vnd.palm"],[".str","application/vnd.pg.format"],[".ei6","application/vnd.pg.osasli"],[".efif","application/vnd.picsel"],[".plf","application/vnd.pocketlearn"],[".pbd","application/vnd.powerbuilder6"],[".box","application/vnd.previewsystems.box"],[".mgz","application/vnd.proteus.magazine"],[".qps","application/vnd.publishare-delta-tree"],[".ptid","application/vnd.pvi.ptid1"],[".qxd","application/vnd.quark.quarkxpress"],[".qxt","application/vnd.quark.quarkxpress"],[".qwd","application/vnd.quark.quarkxpress"],[".qwt","application/vnd.quark.quarkxpress"],[".qxl","application/vnd.quark.quarkxpress"],[".qxb","application/vnd.quark.quarkxpress"],[".mxl","application/vnd.recordare.musicxml"],[".musicxml","application/vnd.recordare.musicxml+xml"],[".cod","application/vnd.rim.cod"],[".rm","application/vnd.rn-realmedia"],[".link66","application/vnd.route66.link66+xml"],[".see","application/vnd.seemail"],[".sema","application/vnd.sema"],[".semd","application/vnd.semd"],[".semf","application/vnd.semf"],[".ifm","application/vnd.shana.informed.formdata"],[".itp","application/vnd.shana.informed.formtemplate"],[".iif","application/vnd.shana.informed.interchange"],[".ipk","application/vnd.shana.informed.package"],[".twds","application/vnd.simtech-mindmapper"],[".twd","application/vnd.simtech-mindmapper"],[".mmf","application/vnd.smaf"],[".teacher","application/vnd.smart.teacher"],[".sdkm","application/vnd.solent.sdkm+xml"],[".sdkd","application/vnd.solent.sdkm+xml"],[".dxp","application/vnd.spotfire.dxp"],[".sfs","application/vnd.spotfire.sfs"],[".sdc","application/vnd.stardivision.calc"],[".sda","application/vnd.stardivision.draw"],[".sdd","application/vnd.stardivision.impress"],[".smf","application/vnd.stardivision.math"],[".sdw","application/vnd.stardivision.writer"],[".vor","application/vnd.stardivision.writer"],[".sgl","application/vnd.stardivision.writer-global"],[".sxc","application/vnd.sun.xml.calc"],[".stc","application/vnd.sun.xml.calc.template"],[".sxd","application/vnd.sun.xml.draw"],[".std","application/vnd.sun.xml.draw.template"],[".sxi","application/vnd.sun.xml.impress"],[".sti","application/vnd.sun.xml.impress.template"],[".sxm","application/vnd.sun.xml.math"],[".sxw","application/vnd.sun.xml.writer"],[".sxg","application/vnd.sun.xml.writer.global"],[".stw","application/vnd.sun.xml.writer.template"],[".susp","application/vnd.sus-calendar"],[".sus","application/vnd.sus-calendar"],[".svd","application/vnd.svd"],[".sis","application/vnd.symbian.install"],[".sisx","application/vnd.symbian.install"],[".xsm","application/vnd.syncml+xml"],[".bdm","application/vnd.syncml.dm+wbxml"],[".xdm","application/vnd.syncml.dm+xml"],[".tao","application/vnd.tao.intent-module-archive"],[".tmo","application/vnd.tmobile-livetv"],[".tpt","application/vnd.trid.tpt"],[".mxs","application/vnd.triscape.mxs"],[".tra","application/vnd.trueapp"],[".ufdl","application/vnd.ufdl"],[".ufd","application/vnd.ufdl"],[".utz","application/vnd.uiq.theme"],[".umj","application/vnd.umajin"],[".unityweb","application/vnd.unity"],[".uoml","application/vnd.uoml+xml"],[".vcx","application/vnd.vcx"],[".vsw","application/vnd.visio"],[".vss","application/vnd.visio"],[".vst","application/vnd.visio"],[".vsd","application/vnd.visio"],[".vis","application/vnd.visionary"],[".vsf","application/vnd.vsf"],[".wbxml","application/vnd.wap.wbxml"],[".wmlc","application/vnd.wap.wmlc"],[".wmlsc","application/vnd.wap.wmlscriptc"],[".wtb","application/vnd.webturbo"],[".wpd","application/vnd.wordperfect"],[".wqd","application/vnd.wqd"],[".stf","application/vnd.wt.stf"],[".xar","application/vnd.xara"],[".xfdl","application/vnd.xfdl"],[".hvd","application/vnd.yamaha.hv-dic"],[".hvs","application/vnd.yamaha.hv-script"],[".hvp","application/vnd.yamaha.hv-voice"],[".osf","application/vnd.yamaha.openscoreformat"],[".osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],[".saf","application/vnd.yamaha.smaf-audio"],[".spf","application/vnd.yamaha.smaf-phrase"],[".cmp","application/vnd.yellowriver-custom-menu"],[".zir","application/vnd.zul"],[".zirz","application/vnd.zul"],[".zaz","application/vnd.zzazz.deck+xml"],[".vxml","application/voicexml+xml"],[".hlp","application/winhlp"],[".wsdl","application/wsdl+xml"],[".wspolicy","application/wspolicy+xml"],[".abw","application/x-abiword"],[".ace","application/x-ace-compressed"],[".aab","application/x-authorware-bin"],[".x32","application/x-authorware-bin"],[".u32","application/x-authorware-bin"],[".vox","application/x-authorware-bin"],[".aam","application/x-authorware-map"],[".aas","application/x-authorware-seg"],[".bcpio","application/x-bcpio"],[".torrent","application/x-bittorrent"],[".bz","application/x-bzip"],[".bz2","application/x-bzip2"],[".boz","application/x-bzip2"],[".vcd","application/x-cdlink"],[".chat","application/x-chat"],[".pgn","application/x-chess-pgn"],[".cpio","application/x-cpio"],[".csh","application/x-csh"],[".deb","application/x-debian-package"],[".udeb","application/x-debian-package"],[".swa","application/x-director"],[".w3d","application/x-director"],[".fgd","application/x-director"],[".cxt","application/x-director"],[".cct","application/x-director"],[".cst","application/x-director"],[".dxr","application/x-director"],[".dcr","application/x-director"],[".dir","application/x-director"],[".wad","application/x-doom"],[".ncx","application/x-dtbncx+xml"],[".dtb","application/x-dtbook+xml"],[".res","application/x-dtbresource+xml"],[".dvi","application/x-dvi"],[".bdf","application/x-font-bdf"],[".gsf","application/x-font-ghostscript"],[".psf","application/x-font-linux-psf"],[".otf","application/x-font-otf"],[".pcf","application/x-font-pcf"],[".snf","application/x-font-snf"],[".ttf","application/x-font-ttf"],[".ttc","application/x-font-ttf"],[".woff","application/font-woff"],[".pfa","application/x-font-type1"],[".pfb","application/x-font-type1"],[".pfm","application/x-font-type1"],[".afm","application/x-font-type1"],[".spl","application/x-futuresplash"],[".gnumeric","application/x-gnumeric"],[".gtar","application/x-gtar"],[".hdf","application/x-hdf"],[".jnlp","application/x-java-jnlp-file"],[".latex","application/x-latex"],[".prc","application/x-mobipocket-ebook"],[".mobi","application/x-mobipocket-ebook"],[".application","application/x-ms-application"],[".wmd","application/x-ms-wmd"],[".wmz","application/x-ms-wmz"],[".xbap","application/x-ms-xbap"],[".mdb","application/x-msaccess"],[".obd","application/x-msbinder"],[".crd","application/x-mscardfile"],[".clp","application/x-msclip"],[".msi","application/x-msdownload"],[".bat","application/x-msdownload"],[".com","application/x-msdownload"],[".dll","application/x-msdownload"],[".exe","application/x-msdownload"],[".mvb","application/x-msmediaview"],[".m13","application/x-msmediaview"],[".m14","application/x-msmediaview"],[".wmf","application/x-msmetafile"],[".mny","application/x-msmoney"],[".pub","application/x-mspublisher"],[".scd","application/x-msschedule"],[".trm","application/x-msterminal"],[".wri","application/x-mswrite"],[".nc","application/x-netcdf"],[".cdf","application/x-netcdf"],[".p12","application/x-pkcs12"],[".pfx","application/x-pkcs12"],[".p7b","application/x-pkcs7-certificates"],[".spc","application/x-pkcs7-certificates"],[".p7r","application/x-pkcs7-certreqresp"],[".rar","application/x-rar-compressed"],[".sh","application/x-sh"],[".shar","application/x-shar"],[".swf","application/x-shockwave-flash"],[".xap","application/x-silverlight-app"],[".sit","application/x-stuffit"],[".sitx","application/x-stuffitx"],[".sv4cpio","application/x-sv4cpio"],[".sv4crc","application/x-sv4crc"],[".tar","application/x-tar"],[".tcl","application/x-tcl"],[".tex","application/x-tex"],[".tfm","application/x-tex-tfm"],[".texinfo","application/x-texinfo"],[".texi","application/x-texinfo"],[".ustar","application/x-ustar"],[".src","application/x-wais-source"],[".der","application/x-x509-ca-cert"],[".crt","application/x-x509-ca-cert"],[".fig","application/x-xfig"],[".xpi","application/x-xpinstall"],[".xenc","application/xenc+xml"],[".xhtml","application/xhtml+xml"],[".xht","application/xhtml+xml"],[".xsl","application/xml"],[".xml","application/xml"],[".dtd","application/xml-dtd"],[".xop","application/xop+xml"],[".xslt","application/xslt+xml"],[".xspf","application/xspf+xml"],[".xvm","application/xv+xml"],[".xvml","application/xv+xml"],[".xhvml","application/xv+xml"],[".mxml","application/xv+xml"],[".zip","application/zip"],[".adp","audio/adpcm"],[".au","audio/basic"],[".snd","audio/basic"],[".mid","audio/midi"],[".midi","audio/midi"],[".kar","audio/midi"],[".rmi","audio/midi"],[".mp4a","audio/mp4"],[".m4a","audio/mp4a-latm"],[".m4p","audio/mp4a-latm"],[".m3a","audio/mpeg"],[".m2a","audio/mpeg"],[".mp3","audio/mpeg"],[".mp2a","audio/mpeg"],[".mp2","audio/mpeg"],[".mpga","audio/mpeg"],[".spx","audio/ogg"],[".ogg","audio/ogg"],[".oga","audio/ogg"],[".eol","audio/vnd.digital-winds"],[".dts","audio/vnd.dts"],[".dtshd","audio/vnd.dts.hd"],[".lvp","audio/vnd.lucent.voice"],[".pya","audio/vnd.ms-playready.media.pya"],[".ecelp4800","audio/vnd.nuera.ecelp4800"],[".ecelp7470","audio/vnd.nuera.ecelp7470"],[".ecelp9600","audio/vnd.nuera.ecelp9600"],[".aac","audio/x-aac"],[".aif","audio/x-aiff"],[".aiff","audio/x-aiff"],[".aif","audio/x-aiff"],[".m3u","audio/x-mpegurl"],[".wax","audio/x-ms-wax"],[".wma","audio/x-ms-wma"],[".ram","audio/x-pn-realaudio"],[".ra","audio/x-pn-realaudio"],[".rmp","audio/x-pn-realaudio-plugin"],[".wav","audio/x-wav"],[".cdx","chemical/x-cdx"],[".cif","chemical/x-cif"],[".cmdf","chemical/x-cmdf"],[".cml","chemical/x-cml"],[".csml","chemical/x-csml"],[".xyz","chemical/x-xyz"],[".bmp","image/bmp"],[".cgm","image/cgm"],[".g3","image/g3fax"],[".gif","image/gif"],[".ief","image/ief"],[".jp2","image/jp2"],[".jpeg","image/jpeg"],[".jpg","image/jpeg"],[".jpe","image/jpeg"],[".pict","image/pict"],[".pic","image/pict"],[".pct","image/pict"],[".png","image/png"],[".btif","image/prs.btif"],[".svg","image/svg+xml"],[".svgz","image/svg+xml"],[".tiff","image/tiff"],[".tif","image/tiff"],[".psd","image/vnd.adobe.photoshop"],[".djvu","image/vnd.djvu"],[".djv","image/vnd.djvu"],[".dwg","image/vnd.dwg"],[".dxf","image/vnd.dxf"],[".fbs","image/vnd.fastbidsheet"],[".fpx","image/vnd.fpx"],[".fst","image/vnd.fst"],[".mmr","image/vnd.fujixerox.edmics-mmr"],[".rlc","image/vnd.fujixerox.edmics-rlc"],[".mdi","image/vnd.ms-modi"],[".npx","image/vnd.net-fpx"],[".wbmp","image/vnd.wap.wbmp"],[".xif","image/vnd.xiff"],[".ras","image/x-cmu-raster"],[".cmx","image/x-cmx"],[".fh","image/x-freehand"],[".fhc","image/x-freehand"],[".fh4","image/x-freehand"],[".fh5","image/x-freehand"],[".fh7","image/x-freehand"],[".ico","image/x-icon"],[".pntg","image/x-macpaint"],[".pnt","image/x-macpaint"],[".mac","image/x-macpaint"],[".pcx","image/x-pcx"],[".pic","image/x-pict"],[".pct","image/x-pict"],[".pnm","image/x-portable-anymap"],[".pbm","image/x-portable-bitmap"],[".pgm","image/x-portable-graymap"],[".ppm","image/x-portable-pixmap"],[".qtif","image/x-quicktime"],[".qti","image/x-quicktime"],[".rgb","image/x-rgb"],[".xbm","image/x-xbitmap"],[".xpm","image/x-xpixmap"],[".xwd","image/x-xwindowdump"],[".eml","message/rfc822"],[".mime","message/rfc822"],[".igs","model/iges"],[".iges","model/iges"],[".msh","model/mesh"],[".mesh","model/mesh"],[".silo","model/mesh"],[".dwf","model/vnd.dwf"],[".gdl","model/vnd.gdl"],[".gtw","model/vnd.gtw"],[".mts","model/vnd.mts"],[".vtu","model/vnd.vtu"],[".wrl","model/vrml"],[".vrml","model/vrml"],[".ics","text/calendar"],[".ifb","text/calendar"],[".css","text/css"],[".csv","text/csv"],[".html","text/html"],[".htm","text/html"],[".txt","text/plain"],[".text","text/plain"],[".conf","text/plain"],[".def","text/plain"],[".list","text/plain"],[".log","text/plain"],[".in","text/plain"],[".dsc","text/prs.lines.tag"],[".rtx","text/richtext"],[".sgml","text/sgml"],[".sgm","text/sgml"],[".tsv","text/tab-separated-values"],[".t","text/troff"],[".tr","text/troff"],[".roff","text/troff"],[".man","text/troff"],[".me","text/troff"],[".ms","text/troff"],[".uri","text/uri-list"],[".uris","text/uri-list"],[".urls","text/uri-list"],[".curl","text/vnd.curl"],[".dcurl","text/vnd.curl.dcurl"],[".scurl","text/vnd.curl.scurl"],[".mcurl","text/vnd.curl.mcurl"],[".fly","text/vnd.fly"],[".flx","text/vnd.fmi.flexstor"],[".gv","text/vnd.graphviz"],[".3dml","text/vnd.in3d.3dml"],[".spot","text/vnd.in3d.spot"],[".jad","text/vnd.sun.j2me.app-descriptor"],[".wml","text/vnd.wap.wml"],[".wmls","text/vnd.wap.wmlscript"],[".s","text/x-asm"],[".asm","text/x-asm"],[".c","text/x-c"],[".cc","text/x-c"],[".cxx","text/x-c"],[".cpp","text/x-c"],[".h","text/x-c"],[".hh","text/x-c"],[".dic","text/x-c"],[".f","text/x-fortran"],[".for","text/x-fortran"],[".f77","text/x-fortran"],[".f90","text/x-fortran"],[".p","text/x-pascal"],[".pas","text/x-pascal"],[".java","text/x-java-source"],[".etx","text/x-setext"],[".uu","text/x-uuencode"],[".vcs","text/x-vcalendar"],[".vcf","text/x-vcard"],[".3gp","video/3gpp"],[".3g2","video/3gpp2"],[".h261","video/h261"],[".h263","video/h263"],[".h264","video/h264"],[".jpgv","video/jpeg"],[".jpm","video/jpm"],[".jpgm","video/jpm"],[".mj2","video/mj2"],[".mjp2","video/mj2"],[".mp4","video/mp4"],[".mp4v","video/mp4"],[".mpg4","video/mp4"],[".m4v","video/mp4"],[".mkv","video/x-matroska"],[".mk3d","video/x-matroska"],[".mka","video/x-matroska"],[".mks","video/x-matroska"],[".webm","video/webm"],[".mpeg","video/mpeg"],[".mpg","video/mpeg"],[".mpe","video/mpeg"],[".m1v","video/mpeg"],[".m2v","video/mpeg"],[".ogv","video/ogg"],[".qt","video/quicktime"],[".mov","video/quicktime"],[".fvt","video/vnd.fvt"],[".mxu","video/vnd.mpegurl"],[".m4u","video/vnd.mpegurl"],[".pyv","video/vnd.ms-playready.media.pyv"],[".viv","video/vnd.vivo"],[".dv","video/x-dv"],[".dif","video/x-dv"],[".f4v","video/x-f4v"],[".fli","video/x-fli"],[".flv","video/x-flv"],[".m4v","video/x-m4v"],[".asf","video/x-ms-asf"],[".asx","video/x-ms-asf"],[".wm","video/x-ms-wm"],[".wmv","video/x-ms-wmv"],[".wmx","video/x-ms-wmx"],[".wvx","video/x-ms-wvx"],[".avi","video/x-msvideo"],[".movie","video/x-sgi-movie"],[".ice","x-conference/x-cooltalk"],[".indd","application/x-indesign"],[".dat","application/octet-stream"],[".gz","application/x-gzip"],[".tgz","application/x-tar"],[".tar","application/x-tar"],[".epub","application/epub+zip"],[".mobi","application/x-mobipocket-ebook"],["README","text/plain"],["LICENSE","text/plain"],["COPYING","text/plain"],["TODO","text/plain"],["ABOUT","text/plain"],["AUTHORS","text/plain"],["CONTRIBUTORS","text/plain"],["manifest","text/cache-manifest"],[".manifest","text/cache-manifest"],[".mf","text/cache-manifest"],[".appcache","text/cache-manifest"]]),kt=(e,t)=>(bt.set(e,t),bt);function St(e){const t=(""+e).trim().toLowerCase();let n=t.lastIndexOf(".");const i=~n?t.substring(++n):t;return bt.get(`.${i}`)||bt.get(i)}function Ct(){if("undefined"!=typeof window){const[e]=performance.getEntriesByType("navigation"),[t={},n={}]=performance.getEntriesByType("paint"),{startTime:i}=t,{startTime:a}=n,{domainLookupEnd:r,domainLookupStart:o,connectEnd:s,connectStart:c,secureConnectionStart:p,loadEventStart:l,domInteractive:d,domContentLoadedEventEnd:u,duration:h,responseStart:m,requestStart:f,responseEnd:g,fetchStart:v,transferSize:w,encodedBodySize:y,redirectEnd:x,redirectStart:b,redirectCount:k}=e;return{dnsSearch:r-o,tcpConnect:s-c,sslConnect:s-p,request:m-f,response:g-m,parseDomTree:d-g,resource:l-u,domReady:u-v,interactive:d-v,complete:l-v,httpHead:w-y,redirect:k,redirectTime:x-b,duration:h,fp:i,fcp:a}}}const At=({url:e="",type:t="application/json; charset=UTF-8",payload:n={}})=>{const i=e||$e();return"undefined"!=typeof navigator?(({url:e="",type:t="application/json; charset=UTF-8",payload:n={}})=>{const i=e||$e();if(navigator.sendBeacon&&i){const e=new Blob([JSON.stringify(n)],{type:t});return navigator.sendBeacon(i,e)}})({url:i,type:t,payload:n}):(({url:e="",payload:t={}})=>{const n=e||$e();if("undefined"!=typeof document&&n){const e=new Image;e.width=1,e.height=1,e.src=`${n}?${ht(t)}`}})({url:i,payload:n})};function Et(e={}){if("undefined"!=typeof window){const{width:t,height:n}=Ke();return Object.assign({},{id:Ne(),path:window.location.href,time:Date.now(),referrer:document.referrer,ip:window.returnCitySN||{cid:"",cip:"",cname:""},userId:_e("chaxus_prod"),ratio:`${t}x${n}`,userAgent:window.navigator.userAgent},e)}return{}}const Ot=(e={})=>{if("undefined"!=typeof window){const{requestHook:t=A,responseHook:n=A,errorHook:i=A}=e;mt(window,"fetch",(e=>(a,r)=>(t(a,r),e.apply(window,[a,r]).then((e=>(n(a,r,e),e))).catch((e=>{throw i(a,e),e})))))}},Tt=(e={})=>{if("undefined"!=typeof window){const t=XMLHttpRequest.prototype,{requestHook:n=A,responseHook:i=A,errorHook:a=A}=e;mt(t,"open",(e=>function(...t){n(t),e.apply(this,t)}));mt(t,"send",(e=>function(...t){this.addEventListener("loadend",(function(){i(this)})),this.addEventListener("error",(function(){a(this)})),e.apply(this,t)}))}},Lt=(e,t=300)=>{let n;return function(){const i=this,a=arguments;n||(n=setTimeout((()=>{n=null,e.apply(i,a)}),t))}};const Ut=new Map([[100,"Continue"],[101,"Switching Protocols"],[102,"Processing"],[103,"Early Hints"],[200,"OK"],[201,"Created"],[202,"Accepted"],[203,"Non-Authoritative Information"],[204,"No Content"],[205,"Reset Content"],[206,"Partial Content"],[207,"Multi-Status"],[208,"Already Reported"],[226,"IM Used"],[300,"Multiple Choices"],[301,"Moved Permanently"],[302,"Found"],[303,"See Other"],[304,"Not Modified"],[305,"Use Proxy"],[307,"Temporary Redirect"],[308,"Permanent Redirect"],[400,"Bad Request"],[401,"Unauthorized"],[402,"Payment Required"],[403,"Forbidden"],[404,"Not Found"],[405,"Method Not Allowed"],[406,"Not Acceptable"],[407,"Proxy Authentication Required"],[408,"Request Timeout"],[409,"Conflict"],[410,"Gone"],[411,"Length Required"],[412,"Precondition Failed"],[413,"Payload Too Large"],[414,"URI Too Long"],[415,"Unsupported Media Type"],[416,"Range Not Satisfiable"],[417,"Expectation Failed"],[418,"I'm a Teapot"],[421,"Misdirected Request"],[422,"Unprocessable Entity"],[423,"Locked"],[424,"Failed Dependency"],[425,"Too Early"],[426,"Upgrade Required"],[428,"Precondition Required"],[429,"Too Many Requests"],[431,"Request Header Fields Too Large"],[451,"Unavailable For Legal Reasons"],[500,"Internal Server Error"],[501,"Not Implemented"],[502,"Bad Gateway"],[503,"Service Unavailable"],[504,"Gateway Timeout"],[505,"HTTP Version Not Supported"],[506,"Variant Also Negotiates"],[507,"Insufficient Storage"],[508,"Loop Detected"],[509,"Bandwidth Limit Exceeded"],[510,"Not Extended"],[511,"Network Authentication Required"]]),Mt={message:Ut,code:function(e){const t=new Map;for(const[n,i]of e)t.set(i.toLowerCase(),n);return t}(Ut),codes:function(e){const t=[];for(const[n,i]of e)t.push(n);return t}(Ut),redirect:{300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0},empty:{204:!0,205:!0,304:!0},retry:{502:!0,503:!0,504:!0}};function Bt(e){if(!Mt.message.has(e))throw new Error("invalid status code: "+e);return Mt.message.get(e)}const Ft=class{constructor(){v(this,"getDecimalLength",(e=>{const[t,n]=e.toString().split(".");return n?n.length:0})),v(this,"amend",((e,t=15)=>parseFloat(Number(e).toPrecision(t)))),v(this,"power",((e,t)=>Math.pow(10,Math.max(this.getDecimalLength(e),this.getDecimalLength(t)))))}};v(Ft,"handleMethod",((e,t)=>{const n=new Ft,{power:i,amend:a}=n,r=i(e,t),o=a(e*r),s=a(t*r);return e=>{switch(e){case"+":return(o+s)/r;case"-":return(o-s)/r;case"*":return o*s/(r*r);case"/":return o/s}}})),v(Ft,"add",((e,t)=>Ft.handleMethod(e,t)("+"))),v(Ft,"divide",((e,t)=>Ft.handleMethod(e,t)("/"))),v(Ft,"multiply",((e,t)=>Ft.handleMethod(e,t)("*"))),v(Ft,"subtract",((e,t)=>Ft.handleMethod(e,t)("-")));let Rt=Ft;const Pt="NEW_LISTENER";const Ht=(e,n="utf-8")=>{const i=new AbortController,a=i.signal,r=new Promise(((r,o)=>{t.readFile(e,{encoding:n,signal:a},((e,t)=>{e?(i.abort(),o({success:!1,_identification:!1,data:e})):r({success:!0,_identification:!0,data:t})}))}));return r.abort=i.abort,r},jt=!("NO_COLOR"in a.env||a.argv.includes("--no-color"))&&("FORCE_COLOR"in a.env||a.argv.includes("--color")||"win32"===a.platform||i.isatty(1)&&"dumb"!==a.env.TERM||"CI"in a.env),Dt=(e,t,n=e)=>i=>{const a=""+i,r=a.indexOf(t,e.length);return~r?e+zt(a,t,n,r)+t:e+a+t},zt=(e,t,n,i)=>{const a=e.substring(0,i)+n,r=e.substring(i+t.length),o=r.indexOf(t);return~o?a+zt(r,t,n,o):a+r},It=Object.assign({},((e=jt)=>{const t={};return Object.keys(Xe).forEach((n=>t[n]=e?Dt(Xe[n][0],Xe[n][1]):String)),t})(),((e=jt)=>({isColorSupported:e,reset:e?e=>`${Xe.reset[0]}${e}${Xe.reset[1]}`:String,bold:e?Dt(Xe.bold[0],Xe.bold[1],`${Xe.bold[1]}${Xe.bold[0]}`):String,dim:e?Dt(Xe.dim[0],Xe.dim[1],`${Xe.dim[1]}${Xe.dim[0]}`):String}))()),Nt=()=>{};function qt(e,t,n){return t(e.req,e.res,Nt),n()}function _t(e,t,n){return new Promise(((i,a)=>{t(e.req,e.res,(e=>{e?a(e):i(n())}))}))}function $t(){const e=c.networkInterfaces();for(const t in e){const n=e[t];if(n)for(let e=0;e<n.length;e++){const t=n[e];if("IPv4"===t.family&&"127.0.0.1"!==t.address&&!t.internal)return t.address}}}function Kt(e){console.error(e.stack||e.toString())}const Vt=h.promisify(t.stat),Wt=h.promisify(t.readdir);function Gt(e,t){const n=m.Buffer.byteLength(e);let i=null;if(n>65535?(i=m.Buffer.alloc(10+n),i[1]=127,i.writeUInt32BE(n,6),i.write(e,10)):n>125?(i=m.Buffer.alloc(4+n),i[1]=126,i.writeUInt16BE(n,2),i.write(e,4)):(i=m.Buffer.alloc(2+n),i[1]=n,i.write(e,2)),t){const e=t.opcode;e&&e<15&&e>=0&&(i[0]=128|e)}else i[0]=129;return i}function Yt(e,t){if(!t)return e;const n=m.Buffer.from(e);for(let i=0;i<n.length;++i)n[i]=n[i]^t[i%4];return n}function Xt(){const e={};this.on=(t,n)=>{e[t]?e[t].push(n):e[t]=[n]},this.off=(t,n)=>{const i=e[t],a=i.indexOf(n);i&&-1!==a&&i.splice(a,1)},this.emit=(t,n)=>{e[t]&&e[t].forEach((e=>e(n)))}}!function(e){var t=function(e){var t,n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function p(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(F){p=function(e,t,n){return e[t]=n}}function l(e,t,n,i){var r=t&&t.prototype instanceof v?t:v,o=Object.create(r.prototype),s=new U(i||[]);return a(o,"_invoke",{value:E(e,n,s)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(F){return{type:"throw",arg:F}}}e.wrap=l;var u="suspendedStart",h="suspendedYield",m="executing",f="completed",g={};function v(){}function w(){}function y(){}var x={};p(x,o,(function(){return this}));var b=Object.getPrototypeOf,k=b&&b(b(M([])));k&&k!==n&&i.call(k,o)&&(x=k);var S=y.prototype=v.prototype=Object.create(x);function C(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function n(a,r,o,s){var c=d(e[a],e,r);if("throw"!==c.type){var p=c.arg,l=p.value;return l&&"object"==typeof l&&i.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(l).then((function(e){p.value=e,o(p)}),(function(e){return n("throw",e,o,s)}))}s(c.arg)}var r;a(this,"_invoke",{value:function(e,i){function a(){return new t((function(t,a){n(e,i,t,a)}))}return r=r?r.then(a,a):a()}})}function E(e,t,n){var i=u;return function(a,r){if(i===m)throw new Error("Generator is already running");if(i===f){if("throw"===a)throw r;return B()}for(n.method=a,n.arg=r;;){var o=n.delegate;if(o){var s=O(o,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===u)throw i=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=m;var c=d(e,t,n);if("normal"===c.type){if(i=n.done?f:h,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=f,n.method="throw",n.arg=c.arg)}}}function O(e,n){var i=n.method,a=e.iterator[i];if(a===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),g;var r=d(a,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function U(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function M(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,r=function n(){for(;++a<e.length;)if(i.call(e,a))return n.value=e[a],n.done=!1,n;return n.value=t,n.done=!0,n};return r.next=r}}return{next:B}}function B(){return{value:t,done:!0}}return w.prototype=y,a(S,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:w,configurable:!0}),w.displayName=p(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,p(e,c,"GeneratorFunction")),e.prototype=Object.create(S),e},e.awrap=function(e){return{__await:e}},C(A.prototype),p(A.prototype,s,(function(){return this})),e.AsyncIterator=A,e.async=function(t,n,i,a,r){void 0===r&&(r=Promise);var o=new A(l(t,n,i,a),r);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},C(S),p(S,c,"Generator"),p(S,o,(function(){return this})),p(S,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},e.values=M,U.prototype={constructor:U,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function a(i,a){return s.type="throw",s.arg=e,n.next=i,a&&(n.method="next",n.arg=t),!!a}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],s=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var c=i.call(o,"catchLoc"),p=i.call(o,"finallyLoc");if(c&&p){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!p)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&i.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var r=a;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),L(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var a=i.arg;L(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:M(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(n){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}({exports:{}});var Jt=(e,t)=>`${e}-${t}-${Math.random().toString(16).slice(3,8)}`;const Qt=Jt;let Zt=0;var en=({id:e,action:t,payload:n={}})=>{let i=e;return void 0===i&&(i=Qt("Job",Zt),Zt+=1),{id:i,action:t,payload:n}},tn={};let nn=!1;tn.logging=nn,tn.setLogging=e=>{nn=e},tn.log=(...e)=>nn?console.log.apply(void 0,e):null;const an=en,{log:rn}=tn,on=Jt;let sn=0;const cn=function(){return"undefined"!=typeof window&&"object"==typeof window.process&&"renderer"===window.process.type||(!("undefined"==typeof process||"object"!=typeof process.versions||!process.versions.electron)||"object"==typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Electron")>=0)};const pn="browser"===(e=>{const t={};return"undefined"!=typeof WorkerGlobalScope?t.type="webworker":cn()?t.type="electron":"object"==typeof document?t.type="browser":"object"==typeof process&&(t.type="node"),void 0===e?t:t[e]})("type")?e=>new URL(e,window.location.href).href:e=>e;var ln={TESSERACT_ONLY:0,LSTM_ONLY:1,TESSERACT_LSTM_COMBINED:2,DEFAULT:3};var dn={...{workerBlobURL:!0,logger:()=>{}},workerPath:`https://cdn.jsdelivr.net/npm/tesseract.js@v${"5.1.0"}/dist/worker.min.js`};const un=e=>new Promise(((t,n)=>{const i=new FileReader;i.onload=()=>{t(i.result)},i.onerror=({target:{error:{code:e}}})=>{n(Error(`File could not be read! Code=${e}`))},i.readAsArrayBuffer(e)})),hn=async e=>{let t=e;if(void 0===e)return"undefined";if("string"==typeof e)if(/data:image\/([a-zA-Z]*);base64,([^"]*)/.test(e))t=atob(e.split(",")[1]).split("").map((e=>e.charCodeAt(0)));else{const n=await fetch(e);t=await n.arrayBuffer()}else if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)"IMG"===e.tagName&&(t=await hn(e.src)),"VIDEO"===e.tagName&&(t=await hn(e.poster)),"CANVAS"===e.tagName&&await new Promise((n=>{e.toBlob((async e=>{t=await un(e),n()}))}));else if("undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas){const n=await e.convertToBlob();t=await un(n)}else(e instanceof File||e instanceof Blob)&&(t=await un(e));return new Uint8Array(t)};var mn={defaultOptions:dn,spawnWorker:({workerPath:e,workerBlobURL:t})=>{let n;if(Blob&&URL&&t){const t=new Blob([`importScripts("${e}");`],{type:"application/javascript"});n=new Worker(URL.createObjectURL(t))}else n=new Worker(e);return n},terminateWorker:e=>{e.terminate()},onMessage:(e,t)=>{e.onmessage=({data:e})=>{t(e)}},send:async(e,t)=>{e.postMessage(t)},loadImage:hn};const fn=e=>{const t={...e};return["corePath","workerPath","langPath"].forEach((n=>{e[n]&&(t[n]=pn(t[n]))})),t},gn=e=>{const t=[],n=[],i=[],a=[],r=[];return e.blocks&&e.blocks.forEach((o=>{o.paragraphs.forEach((t=>{t.lines.forEach((n=>{n.words.forEach((i=>{i.symbols.forEach((a=>{r.push({...a,page:e,block:o,paragraph:t,line:n,word:i})})),a.push({...i,page:e,block:o,paragraph:t,line:n})})),i.push({...n,page:e,block:o,paragraph:t})})),n.push({...t,page:e,block:o})})),t.push({...o,page:e})})),{...e,blocks:t,paragraphs:n,lines:i,words:a,symbols:r}},vn=en,{log:wn}=tn,yn=Jt,xn=ln,{defaultOptions:bn,spawnWorker:kn,terminateWorker:Sn,onMessage:Cn,loadImage:An,send:En}=mn;let On=0;var Tn=async(e="eng",t=xn.LSTM_ONLY,n={},i={})=>{const a=yn("Worker",On),{logger:r,errorHandler:o,...s}=fn({...bn,...n}),c={},p={},l="string"==typeof e?e.split("+"):e;let d=t,u=i;const h=[xn.DEFAULT,xn.LSTM_ONLY].includes(t)&&!s.legacyCore;let m,f;const g=new Promise(((e,t)=>{f=e,m=t}));let v=kn(s);v.onerror=e=>{m(e.message)},On+=1;const w=(e,t)=>{c[e]=t},y=(e,t)=>{p[e]=t},x=({id:e,action:t,payload:n})=>new Promise(((i,r)=>{wn(`[${a}]: Start ${e}, action=${t}`);const o=`${t}-${e}`;w(o,i),y(o,r),En(v,{workerId:a,jobId:e,action:t,payload:n})})),b=(e,t)=>x(vn({id:t,action:"loadLanguage",payload:{langs:e,options:{langPath:s.langPath,dataPath:s.dataPath,cachePath:s.cachePath,cacheMethod:s.cacheMethod,gzip:s.gzip,lstmOnly:[xn.LSTM_ONLY,xn.TESSERACT_LSTM_COMBINED].includes(d)&&!s.legacyLang}}})),k=(e,t,n,i)=>x(vn({id:i,action:"initialize",payload:{langs:e,oem:t,config:n}}));Cn(v,(({workerId:e,jobId:t,status:n,action:i,data:a})=>{const s=`${i}-${t}`;if("resolve"===n){wn(`[${e}]: Complete ${t}`);let n=a;"recognize"===i?n=gn(a):"getPDF"===i&&(n=Array.from({...a,length:Object.keys(a).length})),c[s]({jobId:t,data:n})}else if("reject"===n){if(p[s](a),"load"===i&&m(a),!o)throw Error(a);o(a)}else"progress"===n&&r({...a,userJobId:t})}));const S={id:a,worker:v,setResolve:w,setReject:y,load:()=>console.warn("`load` is depreciated and should be removed from code (workers now come pre-loaded)"),writeText:(e,t,n)=>x(vn({id:n,action:"FS",payload:{method:"writeFile",args:[e,t]}})),readText:(e,t)=>x(vn({id:t,action:"FS",payload:{method:"readFile",args:[e,{encoding:"utf8"}]}})),removeFile:(e,t)=>x(vn({id:t,action:"FS",payload:{method:"unlink",args:[e]}})),FS:(e,t,n)=>x(vn({id:n,action:"FS",payload:{method:e,args:t}})),loadLanguage:()=>console.warn("`loadLanguage` is depreciated and should be removed from code (workers now come with language pre-loaded)"),initialize:()=>console.warn("`initialize` is depreciated and should be removed from code (workers now come pre-initialized)"),reinitialize:(e="eng",t,n,i)=>{if(h&&[xn.TESSERACT_ONLY,xn.TESSERACT_LSTM_COMBINED].includes(t))throw Error("Legacy model requested but code missing.");const a=t||d;d=a;const r=n||u;u=r;const o=("string"==typeof e?e.split("+"):e).filter((e=>!l.includes(e)));return l.push(...o),o.length>0?b(o,i).then((()=>k(e,a,r,i))):k(e,a,r,i)},setParameters:(e={},t)=>x(vn({id:t,action:"setParameters",payload:{params:e}})),recognize:async(e,t={},n={blocks:!0,text:!0,hocr:!0,tsv:!0},i)=>x(vn({id:i,action:"recognize",payload:{image:await An(e),options:t,output:n}})),getPDF:(e="Tesseract OCR Result",t=!1,n)=>x(vn({id:n,action:"getPDF",payload:{title:e,textonly:t}})),detect:async(e,t)=>{if(h)throw Error("`worker.detect` requires Legacy model, which was not loaded.");return x(vn({id:t,action:"detect",payload:{image:await An(e)}}))},terminate:async()=>(null!==v&&(Sn(v),v=null),Promise.resolve())};var C;return x(vn({id:C,action:"load",payload:{options:{lstmOnly:h,corePath:s.corePath,logging:s.logging}}})).then((()=>b(e))).then((()=>k(e,t,i))).then((()=>f(S))).catch((()=>{})),g};const Ln=Tn;const Un=()=>{const e=on("Scheduler",sn),t={},n={};let i=[];sn+=1;const a=()=>Object.keys(t).length,r=()=>{if(0!==i.length){const e=Object.keys(t);for(let a=0;a<e.length;a+=1)if(void 0===n[e[a]]){i[0](t[e[a]]);break}}};return{addWorker:n=>(t[n.id]=n,rn(`[${e}]: Add ${n.id}`),rn(`[${e}]: Number of workers=${a()}`),r(),n.id),addJob:async(t,...o)=>{if(0===a())throw Error(`[${e}]: You need to have at least one worker before adding jobs`);return((t,a)=>new Promise(((o,s)=>{const c=an({action:t,payload:a});i.push((async e=>{i.shift(),n[e.id]=c;try{o(await e[t].apply(void 0,[...a,c.id]))}catch(p){s(p)}finally{delete n[e.id],r()}})),rn(`[${e}]: Add ${c.id} to JobQueue`),rn(`[${e}]: JobQueue length=${i.length}`),r()})))(t,o)},terminate:async()=>{Object.keys(t).forEach((async e=>{await t[e].terminate()})),i=[]},getQueueLen:()=>i.length,getNumWorkers:a}},Mn=Tn,Bn={recognize:async(e,t,n)=>{const i=await Ln(t,1,n);return i.recognize(e).finally((async()=>{await i.terminate()}))},detect:async(e,t)=>{const n=await Ln("osd",0,t);return n.detect(e).finally((async()=>{await n.terminate()}))}},Fn={AFR:"afr",AMH:"amh",ARA:"ara",ASM:"asm",AZE:"aze",AZE_CYRL:"aze_cyrl",BEL:"bel",BEN:"ben",BOD:"bod",BOS:"bos",BUL:"bul",CAT:"cat",CEB:"ceb",CES:"ces",CHI_SIM:"chi_sim",CHI_TRA:"chi_tra",CHR:"chr",CYM:"cym",DAN:"dan",DEU:"deu",DZO:"dzo",ELL:"ell",ENG:"eng",ENM:"enm",EPO:"epo",EST:"est",EUS:"eus",FAS:"fas",FIN:"fin",FRA:"fra",FRK:"frk",FRM:"frm",GLE:"gle",GLG:"glg",GRC:"grc",GUJ:"guj",HAT:"hat",HEB:"heb",HIN:"hin",HRV:"hrv",HUN:"hun",IKU:"iku",IND:"ind",ISL:"isl",ITA:"ita",ITA_OLD:"ita_old",JAV:"jav",JPN:"jpn",KAN:"kan",KAT:"kat",KAT_OLD:"kat_old",KAZ:"kaz",KHM:"khm",KIR:"kir",KOR:"kor",KUR:"kur",LAO:"lao",LAT:"lat",LAV:"lav",LIT:"lit",MAL:"mal",MAR:"mar",MKD:"mkd",MLT:"mlt",MSA:"msa",MYA:"mya",NEP:"nep",NLD:"nld",NOR:"nor",ORI:"ori",PAN:"pan",POL:"pol",POR:"por",PUS:"pus",RON:"ron",RUS:"rus",SAN:"san",SIN:"sin",SLK:"slk",SLV:"slv",SPA:"spa",SPA_OLD:"spa_old",SQI:"sqi",SRP:"srp",SRP_LATN:"srp_latn",SWA:"swa",SWE:"swe",SYR:"syr",TAM:"tam",TEL:"tel",TGK:"tgk",TGL:"tgl",THA:"tha",TIR:"tir",TUR:"tur",UIG:"uig",UKR:"ukr",URD:"urd",UZB:"uzb",UZB_CYRL:"uzb_cyrl",VIE:"vie",YID:"yid"},Rn=ln,Pn={OSD_ONLY:"0",AUTO_OSD:"1",AUTO_ONLY:"2",AUTO:"3",SINGLE_COLUMN:"4",SINGLE_BLOCK_VERT_TEXT:"5",SINGLE_BLOCK:"6",SINGLE_LINE:"7",SINGLE_WORD:"8",CIRCLE_WORD:"9",SINGLE_CHAR:"10",SPARSE_TEXT:"11",SPARSE_TEXT_OSD:"12",RAW_LINE:"13"},{setLogging:Hn}=tn;var jn={languages:Fn,OEM:Rn,PSM:Pn,createScheduler:Un,createWorker:Mn,setLogging:Hn,...Bn};e.AudioRecorder=class{constructor(){v(this,"startTime"),v(this,"chunks"),v(this,"mediaRecorder"),v(this,"blob"),this.startTime=Date.now(),this.chunks=[],navigator.mediaDevices.getUserMedia({audio:!0}).then((e=>{this.init(e)})).catch((e=>{}))}init(e){var t,n;const i=function(){const e=["audio/webm","audio/mp4","audio/ogg","audio/wav","audio/aac"];for(let t=0;t<e.length;t++)if(MediaRecorder.isTypeSupported(e[t]))return e[t]}();this.mediaRecorder=new MediaRecorder(e,{mimeType:i}),null==(t=this.mediaRecorder)||t.addEventListener("dataavailable",(async e=>{var t;if(e.data.size>0&&this.chunks.push(e.data),"inactive"===(null==(t=this.mediaRecorder)?void 0:t.state)){const e=Date.now()-this.startTime;this.blob=new Blob(this.chunks,{type:i}),"audio/webm"===i&&(this.blob=await((e,t,n="video/webm")=>new Promise(((i,a)=>{try{const r=new FileReader;r.addEventListener("loadend",(()=>{try{const a=r.result,o=new C(new Uint8Array(a));o.fixDuration(t)?i(o.toBlob(n)):i(e)}catch(o){a(o)}})),r.addEventListener("error",(()=>a())),r.readAsArrayBuffer(e)}catch(r){a(r)}})))(this.blob,e,this.blob.type)),this.chunks=[]}})),null==(n=this.mediaRecorder)||n.start()}start(){var e;return"paused"===(null==(e=this.mediaRecorder)?void 0:e.state)&&this.mediaRecorder.resume(),this.mediaRecorder}pause(){var e;return"recording"===(null==(e=this.mediaRecorder)?void 0:e.state)&&this.mediaRecorder.pause(),this.mediaRecorder}stop(){var e;return null==(e=this.mediaRecorder)||e.stop(),this.blob}},e.Chain=yt,e.Color=nt,e.ColorScheme=class{constructor(e,t){v(this,"palette"),this.palette=[],void 0===t&&e instanceof Array?this.createFromColors(e):this.createFromAngles(e,t)}createFromColors(e){for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&this.palette.push(new nt(e[t]));return this.palette}createFromAngles(e,t){this.palette.push(new nt(e));for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const e=(Number(this.palette[0].h)+t[n])%360;this.palette.push(new nt(ct(e,Number(this.palette[0].s),Number(this.palette[0].l))))}return this.palette}static Compl(e){return new this(e,[180])}static Triad(e){return new this(e,[120,240])}static Tetrad(e){return new this(e,[60,180,240])}static Analog(e){return new this(e,[-45,45])}static Split(e){return new this(e,[150,210])}static Accent(e){return new this(e,[-45,45,180])}},e.FMT=Xe,e.Hsl=et,e.Hsla=tt,e.Mathjs=Rt,e.MimeType=bt,e.Monitor=class{constructor(){v(this,"init",(()=>{this.reportClick(),this.reportError(),this.reportFetch(),this.reportPerformance(),this.reportXhr()})),this.initialize()}reportPerformance(){const e=Ct(),t=Et();At({payload:{...e,...t}})}log(e){At({payload:e})}reportClick(){const e=Lt(At),t=Et();((e=A)=>{"undefined"!=typeof document&&document.addEventListener("click",(function(t){e(t)}),!0)})((n=>{const{pageX:i,pageY:a,screenX:r,screenY:o,type:s}=n;e({payload:{...t,data:{pageX:i,pageY:a,screenX:r,screenY:o,type:s},type:"click"}})}))}reportXhr(){const e=Lt(At),t=Et();Tt({requestHook:(...n)=>{e({payload:{...t,data:{...n},type:"xhrRequest"}})},responseHook:(...n)=>{e({payload:{...t,data:{...n},type:"xhrResponse"}})},errorHook:(...n)=>{e({payload:{...t,data:{...n},type:"xhrError"}})}})}reportFetch(){const e=Lt(At),t=Et();Ot({requestHook:(...n)=>{e({payload:{...t,data:{...n},type:"fetchRequest"}})},responseHook:(...n)=>{e({payload:{...t,data:{...n},type:"fetchResponse"}})},errorHook:(...n)=>{e({payload:{...t,data:{...n},type:"fetchError"}})}})}reportError(){const e=Lt(At),t=Et();xt(((...n)=>{e({payload:{...t,data:{...n},type:"error"}})}))}reportConsole(){const e=Lt(At),t=Et();gt(((...n)=>{e({payload:{...t,data:{...n},type:"console"}})}))}initialize(){"undefined"==typeof window||window.ranlog||(window.ranlog=!0,this.init()),"undefined"==typeof process||process.ranlog||(process.ranlog=!0,this.init())}},e.QuestQueue=class{constructor({simultaneous:e,total:t}){v(this,"current"),v(this,"queue"),v(this,"simultaneous"),v(this,"executed"),v(this,"total"),v(this,"add",(e=>{if("function"!=typeof e)return;this.queue.push((()=>new Promise(((t,n)=>{this.current++,e().then(t).catch(n).finally((()=>{this.current--,this.running()}))}))))})),v(this,"running",(()=>new Promise(((e,t)=>{if(this.current<=this.simultaneous&&this.queue.length){const n=this.queue.pop();n&&n().then(e).catch(t).finally((()=>{this.executed++}))}else e({})})))),v(this,"allSettled",(()=>{let e=0;return new Promise(((t,n)=>{const i=[];if(this.current<this.simultaneous&&this.queue.length){const a=this.queue.pop();e++,a&&a().then((n=>{i[e]=n,t(n)})).catch((t=>{i[e]=t,n(t)})).finally((()=>{this.executed++}))}this.executed>=this.total&&t(i)}))})),this.current=0,this.queue=[],this.simultaneous=e,this.executed=0,this.total=t}},e.Rgb=Qe,e.Rgba=Ze,e.Router=class{constructor(){v(this,"ctx"),v(this,"map"),v(this,"methods"),v(this,"paths"),this.map=new Map,this.methods=new Set,this.paths=new Set}get(e,t){this.addHandlerToMap("GET")(e,t)}post(e,t){this.addHandlerToMap("POST")(e,t)}put(e,t){this.addHandlerToMap("PUT")(e,t)}patch(e,t){this.addHandlerToMap("PATCH")(e,t)}del(e,t){this.addHandlerToMap("DELETE")(e,t)}head(e,t){this.addHandlerToMap("HEAD")(e,t)}options(e,t){this.addHandlerToMap("OPTIONS")(e,t)}addHandlerToMap(e){return this.methods.add(e),(t,n)=>{this.paths.add(t);let i=this.map.get(e);i||(i=new Map,this.map.set(e,i)),i.set(t,n)}}routes(){return(e,t)=>{this.ctx=e;const{path:n,method:i}=e.request,a=this.map.get(i),r=a?a.get(n):t;r&&r(e,t)}}allowedMethods(){return e=>{const{res:t}=e,{path:n,method:i}=e.request;!this.methods.has(i)&&this.paths.has(n)&&(t.statusCode=405,t.end("405, method is not allowed")),this.methods.has(i)&&!this.paths.has(n)&&(t.statusCode=404,t.end("404, the request address does not exist")),this.methods.has(i)||this.paths.has(n)||(t.statusCode=501,t.end("501, not support the functionality needed to satisfy the request"))}}},e.Server=class{constructor(){v(this,"middleware"),v(this,"ctx");const e=new d.IncomingMessage(new l.Socket),t=new d.ServerResponse(e);this.ctx={ipv4:$t,req:e,res:t},this.middleware=[]}use(e){if(!e)throw new Error("the use function has an incorrect argument");this.middleware.push(e)}listen(...e){const t=function(e){if(!Array.isArray(e))throw new TypeError("Middleware stack must be an array!");for(const t of e)if("function"!=typeof t)throw new TypeError("Middleware must be composed of functions!");return function(t,n){let i=-1;function a(r){if(r<=i)return Promise.reject(new Error("next() called multiple times"));i=r;let o=e[r];if(r===e.length&&n&&(o=n),!o)return Promise.resolve();try{return Promise.resolve(o(t,a.bind(null,r+1)))}catch(s){return Promise.reject(s)}}return a(0)}}(this.middleware);return d.createServer(((e,n)=>{this.ctx.req=e,this.ctx.res=n,t(this.ctx).then().catch(Kt)})).listen(...e)}},e.SyncHook=class{constructor(){v(this,"_events"),v(this,"tap",((e,t)=>{this._events[e]&&e!==Symbol.for(Pt)&&this.call(Symbol.for(Pt),e);const n=this._events[e]||[];return"function"==typeof t?n.push({name:e,callback:t}):n.push(t),this._events[e]=n,this})),v(this,"call",((e,...t)=>{(this._events[e]||[]).forEach((e=>{const{callback:n}=e;n(...t)}))})),v(this,"callSync",(async(e,...t)=>{const n=this._events[e]||[];for(const i of n){const{callback:e}=i;await e(...t)}})),v(this,"once",((e,t)=>{let n;if("function"==typeof t)n={name:e,callback:(...i)=>{t(...i),this.off(e,n)},initialCallback:t};else{const{callback:i}=t;n={name:e,callback:(...t)=>{i(...t),this.off(e,n)},initialCallback:i}}return this.tap(e,n),this})),v(this,"off",((e,t)=>{const n=(this._events[e]||[]).filter((e=>{if("function"==typeof t)return e.callback!==t&&e.initialCallback!==t;{const{callback:n}=t;return e.callback!==n&&e.initialCallback!==n}}));return this._events[e]=n,this})),this._events={}}},e.TOTP=class{static generate(e,t){const n={digits:6,algorithm:"SHA-1",period:30,timestamp:Date.now(),...t},i=Math.floor(n.timestamp/1e3),a=this.leftpad(this.dec2hex(Math.floor(i/n.period)),16,"0"),r=new He(n.algorithm,"HEX");r.setHMACKey(this.base32tohex(e),"HEX"),r.update(a);const o=r.getHMAC("HEX"),s=this.hex2dec(o.substring(o.length-1));let c=(this.hex2dec(o.substr(2*s,8))&this.hex2dec("7fffffff"))+"";const p=Math.max(c.length-n.digits,0);c=c.substring(p,p+n.digits);return{otp:c,expires:Math.ceil((n.timestamp+1)/(1e3*n.period))*n.period*1e3}}static hex2dec(e){return parseInt(e,16)}static dec2hex(e){return(e<15.5?"0":"")+Math.round(e).toString(16)}static base32tohex(e){let t="",n="";const i=e.replace(/=+$/,"");for(let a=0;a<i.length;a++){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".indexOf(e.charAt(a).toUpperCase());if(-1===n)throw new Error("Invalid base32 character in key");t+=this.leftpad(n.toString(2),5,"0")}for(let a=0;a+8<=t.length;a+=8){const e=t.substr(a,8);n+=this.leftpad(parseInt(e,2).toString(16),2,"0")}return n}static leftpad(e,t,n){return t+1>=e.length&&(e=Array(t+1-e.length).join(n)+e),e}},e.WSS=function(e){Xt.call(this);const t=[];this.server=e,this.clients=t,this.broadcast=e=>{t.forEach((t=>{t.send(e)}))},e.on("upgrade",((e,n)=>{n.write(["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade","Sec-WebSocket-Accept: "+f.createHash("sha1").update(e.headers["sec-websocket-key"]+"258EAFA5-E914-47DA-95CA-C5AB0DC85B11").digest("base64")].join("\n")+"\n\n");const i={send(e,t){n.write(Gt(e,t))},ping(){n.write(Gt("",{opcode:9}))},pong(){n.write(Gt("",{opcode:10}))},close(){if(-1===t.indexOf(i))return!1;t.splice(t.indexOf(i),1),n.write(Gt("",{opcode:8})),i.emit("close"),n.destroy()},socket:n};Xt.call(i),this.emit("connect",i),t.push(i);let a=m.Buffer.allocUnsafe(0),r=m.Buffer.allocUnsafe(0);const o=[];let s=!0;function c(){const e=function(e){const t=m.Buffer.from(e),n=127&t[1];let i=0,a=0;const r=t[1]>=128;return 127===n?(i=t.readUInt32BE(6),a=10):126===n?(i=t.readUInt16BE(2),a=4):(i=n,a=2),{fin:t[0]>=128,opcode:15&t[0],mask:r,maskKey:r?t.subarray(a,a+(r?4:0)):null,len7:n,len:i,lenMeta:a+(r?4:0)}}(a);o.push({l:e.lenMeta,f:()=>{s=!1,o.push({l:e.len,f:t=>{if(r=m.Buffer.concat([r,Yt(t,e.maskKey)]),s=!0,e.fin){if(8===e.opcode)return i.close();if(9===e.opcode)return i.pong();i.emit("message",r),r=m.Buffer.allocUnsafe(0)}}})}})}n.on("data",(e=>{for(a=m.Buffer.concat([a,e]),s&&c();o[0]&&a.byteLength>=o[0].l;){const e=o[0].l;o[0].f(a.subarray(0,e)),a=a.subarray(e),o.splice(0,1)}})),n.on("end",(()=>{i.close()})),n.on("error",(e=>{i.emit("error",e),i.close()}))}))},e.addClassToElement=(e,t)=>{if("undefined"==typeof document)return;const n=e.classList;n.contains(t)||n.add(t)},e.appendFile=(e,n)=>new Promise(((i,a)=>{t.appendFile(e,n,(t=>{t?a({success:!1,_identification:!1,data:t}):Ht(e).then((e=>{i(e)}))}))})),e.appendUrl=function(e,t={}){let n=e;0===n.indexOf("//")&&(n=n.replace("//","https://"));const i=new URL(n);return t&&Object.keys(t).forEach((e=>{t[e]&&i.searchParams.set(e,t[e])})),i.href},e.audioVendor=()=>new Promise(((e,t)=>{T||t("window is undefined");const n=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,44100,44100),i=n.createOscillator();i.type="triangle",i.frequency.setValueAtTime(1e4,n.currentTime);const a=n.createDynamicsCompressor();!function(e,t){if(Array.prototype.forEach&&e.forEach===Array.prototype.forEach)e.forEach(t);else if(e.length===+e.length)for(let n=0,i=e.length;n<i;n++)t(e[n],n,e);else for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(e[n],Number(n),e)}([["threshold",-50],["knee",40],["ratio",12],["reduction",-20],["attack",0],["release",.25]],(function(e){if(a[e[0]]&&"number"!=typeof a[e[0]]){const{setValueAtTime:t}=a[e[0]];t(e[1],n.currentTime)}})),i.connect(a),a.connect(n.destination),i.start(0),n.startRendering();const r=setTimeout((function(){return n.oncomplete=()=>{},t("audioTimeout"),"audioTimeout"}),100);n.oncomplete=n=>{try{clearTimeout(r);const t=n.renderedBuffer.getChannelData(0).slice(4500,5e3).reduce((function(e,t){return e+Math.abs(t)}),0).toString();return i.disconnect(),a.disconnect(),e(t),t}catch(o){return void t(o)}}})),e.body=(e={})=>{const{uploadDir:n=".",encoding:i="",urlencoded:a=!0,json:r=!0}=e;return(e,a)=>{var o;const{req:s,res:c}=e,{url:p,method:l}=s,[d="",u=""]=(null==p?void 0:p.split("?"))||[],h=u?new URLSearchParams(u):{};e.request||(e.request={}),e.request.method=l,e.request.path=d,e.request.url=p,e.request.query=h;const m=s.headers["content-type"];if("application/json"===m){i?s.setEncoding(i):s.setEncoding("utf-8");let t="";s.on("data",(e=>{t+=e})),s.on("end",(()=>{c.setHeader("content-type","application/json;charset=UTF-8");try{e.request.body=r?JSON.parse(t):t}catch(n){e.request.body=t}a()}))}if(null==m?void 0:m.includes("multipart/form-data;")){const[e,r]=(null==(o=s.headers["content-type"])?void 0:o.split(";").map((e=>e.trim())))||[],[p,l]=r.split("=");i?s.setEncoding(i):s.setEncoding("binary");let d="";s.on("data",(e=>{d+=e})),s.on("end",(()=>{const e={};d.split("\r\n").slice(0,4).forEach((t=>{Object.assign(e,ze(t,";",/=|:/))}));const i=e["Content-Type"],r=Buffer.from(e.filename,"latin1").toString("utf8"),o=d.indexOf(i)+i.length,s=d.substring(o).replace(/^\s+/,""),p=s.substring(0,s.indexOf(`--${l}--`));t.writeFile(`${n}/${r}`,p,{encoding:"binary"},(e=>{if(e)throw e;c.setHeader("content-type","application/json;charset=UTF-8"),a()}))}))}}},e.canvasVendor=()=>{const e=document.createElement("canvas"),t=e.getContext("2d"),n="BrowserLeaks,com <canvas> 1.0";if(!t)return null;t.textBaseline="top",t.font="14px 'Arial'",t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(125,1,62,20),t.fillStyle="#069",t.fillText(n,2,15),t.fillStyle="rgba(102, 204, 0, 0.7)",t.fillText(n,4,17);return e.toDataURL()},e.changeHumpToLowerCase=function(e){const t=e.split("");return e=t.map((e=>e.toUpperCase()===e?"_"+e.toLowerCase():e)).join("")},e.clearBr=(e="")=>0===e.length?"":e.replace(/\s+/g,"").replace(/<\/?.+?>/g,"").replace(/[\r\n]/g,""),e.clearStr=qe,e.colors=It,e.componentToHex=at,e.compose=function(e){if(!Array.isArray(e))throw new TypeError("Middleware stack must be an array!");for(const t of e)if("function"!=typeof t)throw new TypeError("Middleware must be composed of functions!");return function(t,n){let i=-1;return function a(r){if(r<=i)return Promise.reject(new Error("next() called multiple times"));i=r;let o=e[r];r===e.length&&n&&(o=n);if(!o)return Promise.resolve();try{return Promise.resolve(o(t,a.bind(null,r+1)))}catch(s){return Promise.reject(s)}}(0)}},e.connect=function(e){const t=e.length<3?qt:_t;return function(n,i){return t(n,e,i)}},e.connection=()=>{if("undefined"!=typeof window)return window.navigator.connection},e.convertImageToBase64=e=>new Promise(((t,n)=>{const i=new FileReader;i.onload=function(){t({success:!0,data:i.result,message:""})},i.onerror=e=>{n({success:!1,data:e,message:""})},i.readAsDataURL(e)})),e.create=(e,t)=>new yt(e,t),e.createData=Et,e.createDocumentFragment=e=>{if("undefined"==typeof document)return;const t=document.createDocumentFragment();return e.forEach((e=>t.appendChild(e))),t},e.createObjectURL=async e=>{if("string"==typeof e)return e;if(e instanceof Blob)return URL.createObjectURL(e);if(e instanceof ArrayBuffer)return URL.createObjectURL(new Blob([e]));if(e instanceof Response){const t=await e.blob();return URL.createObjectURL(t)}return e},e.currentDevice=O,e.debounce=(e,t=500)=>{let n;return(...i)=>{clearTimeout(n),n=setTimeout((()=>{e.apply(void 0,i)}),t)}},e.durationHandler=Ye,e.encodeUrl=function(e){return String(e).replace(We,"$1�$2").replace(Ve,encodeURI)},e.escapeHtml=function(e){const t=""+e,n=vt.exec(t);if(!n)return t;let i,a="",r=0,o=0;for(r=n.index;r<t.length;r++){switch(t.charCodeAt(r)){case 34:i="&quot;";break;case 38:i="&amp;";break;case 39:i="&#39;";break;case 60:i="&lt;";break;case 62:i="&gt;";break;default:continue}o!==r&&(a+=t.substring(o,r)),o=r+1,a+=i}return o!==r?a+t.substring(o,r):a},e.filterObj=(e,t)=>{const n={};return Object.keys(e).forEach((i=>{t.includes(i)||(n[i]=e[i])})),n},e.formatJson=(e,t=()=>{})=>{let n="",i=0;let a=((e,t=e=>{})=>{let n="";if("[object String]"!==Object.prototype.toString.call(e))try{n=JSON.stringify(e)}catch(i){t(i)}else try{e="string"==typeof e?e.replace(/(')/g,'"'):JSON.stringify(e),n=JSON.stringify(JSON.parse(e))}catch(i){t(i)}return n})(e,t);if(!a)return a;const r=[];let o=null,s=null,c=[];return a=a.replace(/([{}])/g,"\r\n$1\r\n"),a=a.replace(/([[\]])/g,"\r\n$1\r\n"),a=a.replace(/(,)/g,"$1\r\n"),a=a.replace(/(\r\n\r\n)/g,"\r\n"),a=a.replace(/\r\n,/g,","),c=a.split("\r\n"),c.forEach((function(e,t){var n;const i=e.match(/"/g)&&(null==(n=e.match(/"/g))?void 0:n.length)||0;i%2&&!o&&(o=t),i%2&&o&&o!==t&&(s=t),o&&s&&(r.push({start:o,end:s}),o=null,s=null)})),r.reverse().forEach((function(e,t){const n=c.slice(e.start,e.end+1);c.splice(e.start,e.end+1-e.start,n.join(""))})),a=c.join("\r\n"),a=a.replace(/:\r\n\{/g,":{"),a=a.replace(/:\r\n\[/g,":["),c=a.split("\r\n"),c.forEach((function(e,t){let a=0,r=0,o="";for(e.match(/\{$/)||e.match(/\[$/)?r+=1:e.match(/\}$/)||e.match(/\]$/)||e.match(/\},$/)||e.match(/\],$/)?0!==i&&(i-=1):r=0,a=0;a<i;a++)o+=" ";n+=o+e+"\r\n",i+=r})),n.trim()},e.generateThrottle=()=>{let e;return function(t,n=300){return function(...i){e&&(clearTimeout(e),e=void 0);const a=this;e||(e=setTimeout((()=>{t.apply(a,i),clearTimeout(e),e=void 0}),n))}}},e.get=({url:e})=>new Promise(((t,n)=>{s.get(e,(e=>{const n=[];e.on("data",(e=>{n.push(e)})),e.on("end",(()=>{const{data:e=[]}=JSON.parse(Buffer.concat(n).toString());e.forEach((e=>{})),t({success:!0,data:e,message:"request success"})}))})).on("error",(e=>{console.log("Error: ",e.message),n({success:!1,data:e,message:e.message})}))})),e.getAllQueryString=e=>{if("undefined"!=typeof window){const t={},n=e||window.location.href;if(n.split("?")[1]){n.split("?")[1].split("&").forEach((e=>{const[n,i]=e.split("=");n&&i&&(t[n]=decodeURIComponent(i))}))}return t}return{}},e.getCookie=_e,e.getCookieByName=function(e){if("undefined"!=typeof window){const t=document.cookie.match(new RegExp(`(^| )${e}(?:=([^;]*))?(;|$)`));if(t&&t[2])return t[2]}return""},e.getFrame=(e=10)=>{const t=[];let n,i=0;return new Promise((a=>{const r=()=>{const o=De(),s=o-i;if(0!==i&&t.push(s),i=o,t.length>e){const i=t.reduce(((e,t)=>e+t));a(1/(i/e)),cancelAnimationFrame(n)}n=requestAnimationFrame(r)};t.length<=e&&(n=requestAnimationFrame(r))}))},e.getHost=$e,e.getIPAdress=()=>{const e=c.networkInterfaces();for(const t in e){const n=e[t];for(let e=0;e<n.length;e++){const t=n[e];if("IPv4"===t.family&&"127.0.0.1"!==t.address&&!t.internal)return t.address}}},e.getMime=St,e.getPerformance=Ct,e.getPixelRatio=e=>{const t=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||1;return(T&&window.devicePixelRatio||1)/t},e.getStatus=function(e){if("number"==typeof e)return Bt(e);if("string"!=typeof e)throw new TypeError("code must be a number or string");const t=parseInt(e,10);return!isNaN(t)&&Mt.codes.includes(t)?Bt(t):function(e){const t=e.toLowerCase();if(Mt.code.has(t),!Mt.code.has(t))throw new Error('invalid status message: "'+e+'"');return Mt.code.get(t)}(e)},e.getWindow=Ke,e.handleConsole=gt,e.handleError=xt,e.handleFetchHook=Ot,e.hexToRgb=it,e.hsbToRgb=pt,e.hslToRgb=ct,e.hsvToHsl=dt,e.hsvToRgb=lt,e.hue2rgb=st,e.imageRequest=Ge,e.isBangDevice=()=>{if(!T)return!1;const e=/iphone/i.test(window.navigator.userAgent),t=window.devicePixelRatio&&2===window.devicePixelRatio,n=window.devicePixelRatio&&3===window.devicePixelRatio,i=360===window.screen.width&&780===window.screen.height,a=375===window.screen.width&&812===window.screen.height,r=390===window.screen.width&&844===window.screen.height,o=414===window.screen.width&&896===window.screen.height,s=428===window.screen.width&&926===window.screen.height;switch(!0){case e&&n&&i:case e&&n&&a:case e&&n&&r:case e&&t&&o:case e&&n&&o:case e&&n&&s:return!0;default:return!1}},e.isClient=T,e.isColorSupported=jt,e.isImageSize=(e,t,n)=>new Promise(((i,a)=>{T||a("window is undefined");const r=window.URL||window.webkitURL,o=new Image;o.onload=function(){let e=!1;t&&(e=o.width===t),n&&(e=o.height===n),r.revokeObjectURL(o.src),i(e)},o.src=r.createObjectURL(e)})),e.isMobile=()=>{if(!T)return!1;const e=window.navigator.userAgent;return!!/Android|webOS|iPhone|iPod|iPad|BlackBerry/i.test(e)},e.isString=Ie,e.isWeiXin=()=>{if(T){return window.navigator.userAgent.toLowerCase().includes("micromessenger")}return!1},e.localStorageGetItem=e=>T&&localStorage.getItem(e)||"",e.localStorageSetItem=(e,t)=>{T&&localStorage.setItem(e,t)},e.mathjs=function e(t,n,i){function a(e){const[t,n]=e.toString().split(".");return n?n.length:0}const r=(e,t=15)=>parseFloat(Number(e).toPrecision(t)),o=Math.pow(10,Math.max(a(t),a(i)));let s=0;switch(t=r(t*o),i=r(i*o),n){case"+":s=(t+i)/o;break;case"-":s=(t-i)/o;break;case"*":s=t*i/(o*o);break;case"/":s=t/i}return s=r(s),{result:s,next:(t,n)=>e(s,t,n)}},e.memoize=ut,e.merge=(e,t)=>{if(e&&t)for(const n in t)e[n]=t[n];return e},e.mergeExports=ft,e.networkSpeed=async e=>{const{url:t,duration:n=3e3,count:i=5}=e;let a=0,r=0;const o=[];for(let s=0;s<i;s++){const e=Ye(Ge,t),i=await e(n);o.push(i)}return a=Math.max(...o)-Math.min(...o),r=o.reduce(((e,t)=>e+t))/o.length,{ping:r,jitter:a}},e.noop=A,e.ocr=async({images:e=[],language:t="eng",langPath:n=""})=>{if(0===e.length)return{success:!1,data:null,message:"images must be a array"};if(!t)return{success:!1,data:null,message:"languages must be a array"};let i={};n&&(i={langPath:n});const a=jn.createScheduler(),r=await jn.createWorker(t,3,i);a.addWorker(r);const o=await Promise.all(e.map((e=>a.addJob("recognize",e))));return await a.terminate(),{success:!0,data:o,message:"success"}},e.paresUrl=function(e){const t=e.url;if(void 0===t)return;let n=e._parsedUrl;if(n&&n._raw===t)return n;n={},n.query=n.search=void 0,n.href=n.path=n.pathname=t;const i=t.indexOf("?",1);return-1!==i&&(n.search=t.substring(i),n.query=n.search.substring(1),n.pathname=t.substring(0,i)),n._raw=t,e._parsedUrl=n},e.perToNum=(e="")=>{if(0===e.length)return 0;if(e.endsWith("%")){const t=Number(e.replace("%",""));return t>1?t/100:t}return Number(e)},e.performanceTime=De,e.prompt=({message:e,stream:t=process.stderr,defaultResponse:n="Y"})=>{const i=o.createInterface({input:process.stdin,output:t});return new Promise((t=>{i.question(`${e} `,(e=>{i.close();const a=(e||n).toLowerCase();t("y"===a||"yes"===a)}))}))},e.queryFileInfo=e=>new Promise(((n,i)=>{t.stat(e,((e,t)=>{e?i({success:!1,_identification:!1,data:e}):n({success:!0,_identification:!0,data:t})}))})),e.querystring=ht,e.randomColor=function(){const e="#"+Math.random().toString(16).slice(2,8);return new nt(e)},e.randomString=Ne,e.range=(e,t=0,n=1)=>Math.min(n,Math.max(t,e)),e.reactify=e=>{class t extends n.Component{constructor(e){super(e),v(this,"eventHandlers"),v(this,"ref"),this.eventHandlers=[];const{innerRef:t}=e;this.ref=t||n.createRef()}setEvent(e,t){var n;this.eventHandlers.push([e,t]),null==(n=this.ref.current)||n.addEventListener(e,t)}setProperty(e,t){this.ref.current&&(this.ref.current[e]=t)}setAttribute(e,t){var n,i;"string"==typeof t?null==(n=this.ref.current)||n.setAttribute(e,t):null==(i=this.ref.current)||i.setAttribute(e,JSON.stringify(t))}update(){this.clearEventHandlers(),Object.entries(this.props).forEach((([e,t])=>{if("style"===e&&"string"!=typeof t)return;if("children"===e)return;if("classname"===e.toLowerCase()&&this.ref.current)return this.ref.current.className=t;if(["string","number","boolean"].includes(typeof t))return this.setProperty(e,t),void this.setAttribute(e,t);if("function"==typeof t&&e.match(/^on[A-Za-z]/)){const n=e.substring(2).toLowerCase();return this.setEvent(n,t)}this.setProperty(e,t)}))}componentDidUpdate(){this.update()}componentDidMount(){this.update()}componentWillUnmount(){this.clearEventHandlers()}clearEventHandlers(){this.eventHandlers.forEach((([e,t])=>{var n;null==(n=this.ref.current)||n.removeEventListener(e,t)})),this.eventHandlers=[]}render(){const{children:t,className:i,...a}=this.props;return n.createElement(e,{class:i,...a,ref:this.ref},t)}}return n.forwardRef(((e,i)=>n.createElement(t,{...e,innerRef:i})))},e.readDir=e=>{const{dirPath:n}=e;try{return t.readdirSync(n)}catch(i){throw i}},e.readFile=Ht,e.readStream=e=>{const{path:n}=e;if(n){return t.createReadStream(n)}throw new Error("path is not defined")},e.removeClassToElement=(e,t)=>{if("undefined"==typeof document)return;const n=e.classList;n.contains(t)&&n.remove(t)},e.removeGhosting=e=>{const t=document.createElement("img");t.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",t.width=0,t.height=0,t.style.opacity="0",e.dataTransfer&&e.dataTransfer.setDragImage(t,0,0)},e.replaceOld=mt,e.report=At,e.requestAnimation=e=>{if(!T)return;let t=!1;return function(){const n=this,i=arguments;t||(window.requestAnimationFrame((function(){e.apply(n,i),t=!1})),t=!0)}},e.requestUrlToBuffer=(e,t)=>new Promise((function(n,i){const a=new XMLHttpRequest;a.open(t.method||"GET",e,!0),a.responseType=t.responseType||"arraybuffer",a.onload=function(){200===a.status?n({success:!0,data:a.response,message:""}):i({success:!1,data:a.status,message:`The request status is${a.status}`})},a.onerror=function(e){i({success:!1,data:e,message:""})},a.onprogress=e=>{t.onProgress&&t.onProgress(e)},a.withCredentials=t.withCredentials||!1,t.headers&&Object.keys(t.headers).forEach((function(e){var n;(null==(n=t.headers)?void 0:n[e])&&a.setRequestHeader(e,t.headers[e])})),a.send(t.body)})),e.retain=(e=A)=>{const t=()=>{e(),T&&window.removeEventListener("popstate",t)};T&&window.history.pushState(null,"",window.location.href),setTimeout((()=>{T&&window.addEventListener("popstate",t)}),500)},e.rgbToHex=rt,e.rgbToHsb=function(e,t,n){let i,a,r=0;e/=255,t/=255,n/=255;const o=Math.max(e,t,n),s=Math.min(e,t,n);a=o;const c=o-s;if(i=0===o?0:c/o,o===s)r=0;else{switch(o){case e:r=(t-n)/c+(t<n?6:0);break;case t:r=(n-e)/c+2;break;case n:r=(e-t)/c+4}r/=6}return r=Je(360*r),i=Je(100*i),a=Je(100*a),[r,i,a]},e.rgbToHsl=ot,e.runCommand=(e,t)=>new Promise(((n,i)=>{const a=r.spawn(e,t,{stdio:"inherit",shell:!0});a.on("error",(e=>i(e))),a.on("exit",(e=>0===e?n():i(new Error(`Command exited with code ${e}`))))})),e.scriptOnLoad=(e,t,n)=>{const i=(e=Array.isArray(e)?e:[e]).map((e=>{let n;if(/\w*.css$/.test(e)){const t=document.createElement("link");t.type="text/css",t.rel="stylesheet",t.href=e,n=t}else n=document.createElement("script"),n.type="text/javascript",n.src=e;const i=document.getElementsByTagName("body")[0];return(t||i).appendChild(n),new Promise((e=>{n.onload=()=>{e()}}))}));return new Promise((e=>{Promise.all(i).then((()=>{"function"==typeof n&&n(),e()}))}))},e.setAttributeByGlobal=(e,t)=>{"undefined"!=typeof window&&(window[e]=t),"undefined"!=typeof global&&(global[e]=t)},e.setFontSize2html=(e=375)=>{let t=e;const{documentElement:n}=document,i=window.matchMedia("(orientation: portrait)");let a,r=667/375;function o(){const e=!i.matches;let a=window.screen.width,o=window.screen.height;a<o&&([a,o]=[o,a]);let s=n.clientWidth,c=o;s/c>=r?(s=c*r,n.classList.remove("adjustHeight"),n.classList.add("adjustWidth")):(c=s/r,n.classList.remove("adjustWidth"),n.classList.add("adjustHeight"));let p=s/t*16;e&&(p/=r),n.style.fontSize=`${p}px`;const l=window.getComputedStyle(n).fontSize.replace("px","")||0;p!==l&&(n.style.fontSize=p/Number(l)*p+"px")}O()===E.IPAD&&(r=1024/768,t=768),window.addEventListener("resize",(function(){clearTimeout(a),a=setTimeout(o,300)}),!1),window.addEventListener("pageshow",(function(e){e.persisted&&(clearTimeout(a),a=setTimeout(o,300))}),!1),window.addEventListener("orientationchange",(function(){o()}),!1),o()},e.setMime=kt,e.startTask=()=>{if("undefined"!=typeof window){const e=window.performance.now();return Symbol.for(`${e}`)}if("undefined"!=typeof process){const e=a.hrtime.bigint();return Symbol.for(`${e}`)}return Symbol.for(`${Date.now()}`)},e.staticMiddleware=(e={})=>{const{pathname:n,fileTypes:i={}}=e;return async(e,a)=>{try{const{req:o,res:s}=e;if(o.url){const e="text/html",a=n||process.cwd(),c=p.normalize(p.resolve(a)),l=p.extname(o.url).slice(1);Object.keys(i).forEach((e=>kt(e,i[e])));const d=l?St(l):e;if(!Boolean(d))return s.writeHead(404,{"Content-Type":"text/html"}),void s.end("404: File not found");let u=o.url;if("/"===o.url)u="index.html";else if(!l)try{t.accessSync(p.join(c,o.url+".html"),t.constants.F_OK),u=o.url+".html"}catch(r){u=p.join(o.url,"index.html")}const h=p.join(c,u);if(!p.normalize(p.resolve(h)).startsWith(c))return s.writeHead(404,{"Content-Type":"text/html"}),void s.end("404: File not found");t.readFile(h,((e,t)=>{e?(s.writeHead(404,{"Content-Type":"text/html"}),s.end("404: File not found")):(s.writeHead(200,{"Content-Type":d}),s.end(t))}))}else console.log("request has not url");await a()}catch(o){}}},e.status=Mt,e.str2Xml=(e,t="text/xml")=>{if(window.DOMParser)return(new window.DOMParser).parseFromString(e,t).documentElement;if(void 0!==window.ActiveXObject){const t=new window.ActiveXObject("Microsoft.XMLDOM");return t.async="false",t.loadXML(e),t}},e.strParse=ze,e.taskEnd=e=>{const t=Symbol.keyFor(e);return"undefined"!=typeof window&&t?window.performance.now()-Number(t):"undefined"!=typeof process&&t?a.hrtime.bigint()-BigInt(t):Date.now()-Number(t)},e.throttle=Lt,e.timeFormat=e=>{if(0===e)return"00:00";if(!e)return"";const t=Math.trunc(e/3600),n=Math.trunc(e%3600/60),i=je(Math.trunc(e-3600*t-60*n));return 0===t?`${je(n)}:${i}`:`${je(t)}:${je(n)}:${i}`},e.timestampToTime=function(e){let t=new Date;return e&&(t=new Date(e)),t.format=(e="YYYY-MM-DD HH:mm:ss")=>{const n=t.getFullYear(),i=je(t.getMonth()+1),a=je(t.getDate()),r=je(t.getHours()),o=je(t.getMinutes()),s=je(t.getSeconds());return e.replace(/Y+/gi,`${n}`).replace(/M+/g,`${i}`).replace(/D+/gi,`${a}`).replace(/H+/gi,`${r}`).replace(/m+/g,`${o}`).replace(/S+/gi,`${s}`)},t},e.traverse=async function e(t,n,i=""){t=p.resolve(".",t),await Wt(t).then((a=>Promise.all(a.map((a=>{const r=p.join(t,a);return Vt(r).then((t=>t.isDirectory()?e(r,n,p.join(i,a)):n(p.join(i,a),r,t)))})))))},e.traverseSync=function e(n,i,a=""){n=p.resolve(".",n);const r=t.readdirSync(n);let o,s,c=0;for(;c<r.length;c++)o=p.join(n,r[c]),s=t.statSync(o),s.isDirectory()?e(o,i,p.join(a,r[c])):i(p.join(a,r[c]),o,s)},e.watchFile=(e,n=20)=>new Promise(((i,a)=>{t.watchFile(e,{interval:n},((n,a)=>{n.mtime!==a.mtime?(t.unwatchFile(e),i({success:!0,_identification:!0,data:{},message:"file is changed"})):i({success:!1,_identification:!1,data:{},message:"file is not changed"})}))})),e.webglVendor=()=>{const e=document.createElement("canvas").getContext("webgl2");return e?function(e){const t=e.getExtension("WEBGL_debug_renderer_info");return t?{vendor:e.getParameter(t.UNMASKED_VENDOR_WEBGL),renderer:e.getParameter(t.UNMASKED_RENDERER_WEBGL)}:null}(e):null},e.writeStream=e=>{const{path:n}=e;if(n){return t.createWriteStream(n)}throw new Error("path is not defined")},Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("node:fs"),require("react"),require("node:tty"),require("node:process"),require("node:child_process"),require("node:readline"),require("node:https"),require("node:os"),require("node:path"),require("node:net"),require("node:http"),require("node:stream"),require("node:util"),require("node:buffer"),require("node:crypto")):"function"==typeof define&&define.amd?define(["exports","node:fs","react","node:tty","node:process","node:child_process","node:readline","node:https","node:os","node:path","node:net","node:http","node:stream","node:util","node:buffer","node:crypto"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ranuts={},e.fs,e.react,e.tty,e.process$1,e.childProcess,e.readline,e.https,e.os,e.path,e.node_net,e.http,null,e.node_util,e.node_buffer,e.crypto)}(this,(function(e,t,n,i,a,r,o,s,c,p,l,d,u,h,m,f){"use strict";var g=Object.defineProperty,v=(e,t,n)=>((e,t,n)=>t in e?g(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);const w={172351395:{name:"EBML",type:"Container"},646:{name:"EBMLVersion",type:"Uint"},759:{name:"EBMLReadVersion",type:"Uint"},754:{name:"EBMLMaxIDLength",type:"Uint"},755:{name:"EBMLMaxSizeLength",type:"Uint"},642:{name:"DocType",type:"String"},647:{name:"DocTypeVersion",type:"Uint"},645:{name:"DocTypeReadVersion",type:"Uint"},108:{name:"Void",type:"Binary"},63:{name:"CRC-32",type:"Binary"},190023271:{name:"SignatureSlot",type:"Container"},16010:{name:"SignatureAlgo",type:"Uint"},16026:{name:"SignatureHash",type:"Uint"},16037:{name:"SignaturePublicKey",type:"Binary"},16053:{name:"Signature",type:"Binary"},15963:{name:"SignatureElements",type:"Container"},15995:{name:"SignatureElementList",type:"Container"},9522:{name:"SignedElement",type:"Binary"},139690087:{name:"Segment",type:"Container"},21863284:{name:"SeekHead",type:"Container"},3515:{name:"Seek",type:"Container"},5035:{name:"SeekID",type:"Binary"},5036:{name:"SeekPosition",type:"Uint"},88713574:{name:"Info",type:"Container"},13220:{name:"SegmentUID",type:"Binary"},13188:{name:"SegmentFilename",type:"String"},1882403:{name:"PrevUID",type:"Binary"},1868715:{name:"PrevFilename",type:"String"},2013475:{name:"NextUID",type:"Binary"},1999803:{name:"NextFilename",type:"String"},1092:{name:"SegmentFamily",type:"Binary"},10532:{name:"ChapterTranslate",type:"Container"},10748:{name:"ChapterTranslateEditionUID",type:"Uint"},10687:{name:"ChapterTranslateCodec",type:"Uint"},10661:{name:"ChapterTranslateID",type:"Binary"},710577:{name:"TimecodeScale",type:"Uint"},1161:{name:"Duration",type:"Float"},1121:{name:"DateUTC",type:"Date"},15273:{name:"Title",type:"String"},3456:{name:"MuxingApp",type:"String"},5953:{name:"WritingApp",type:"String"},103:{name:"Timecode",type:"Uint"},6228:{name:"SilentTracks",type:"Container"},6359:{name:"SilentTrackNumber",type:"Uint"},39:{name:"Position",type:"Uint"},43:{name:"PrevSize",type:"Uint"},35:{name:"SimpleBlock",type:"Binary"},32:{name:"BlockGroup",type:"Container"},33:{name:"Block",type:"Binary"},34:{name:"BlockVirtual",type:"Binary"},13729:{name:"BlockAdditions",type:"Container"},38:{name:"BlockMore",type:"Container"},110:{name:"BlockAddID",type:"Uint"},37:{name:"BlockAdditional",type:"Binary"},27:{name:"BlockDuration",type:"Uint"},122:{name:"ReferencePriority",type:"Uint"},123:{name:"ReferenceBlock",type:"Int"},125:{name:"ReferenceVirtual",type:"Int"},36:{name:"CodecState",type:"Binary"},13730:{name:"DiscardPadding",type:"Int"},14:{name:"Slices",type:"Container"},104:{name:"TimeSlice",type:"Container"},76:{name:"LaceNumber",type:"Uint"},77:{name:"FrameNumber",type:"Uint"},75:{name:"BlockAdditionID",type:"Uint"},78:{name:"Delay",type:"Uint"},79:{name:"SliceDuration",type:"Uint"},72:{name:"ReferenceFrame",type:"Container"},73:{name:"ReferenceOffset",type:"Uint"},74:{name:"ReferenceTimeCode",type:"Uint"},47:{name:"EncryptedBlock",type:"Binary"},106212971:{name:"Tracks",type:"Container"},46:{name:"TrackEntry",type:"Container"},87:{name:"TrackNumber",type:"Uint"},13253:{name:"TrackUID",type:"Uint"},3:{name:"TrackType",type:"Uint"},57:{name:"FlagEnabled",type:"Uint"},8:{name:"FlagDefault",type:"Uint"},5546:{name:"FlagForced",type:"Uint"},28:{name:"FlagLacing",type:"Uint"},11751:{name:"MinCache",type:"Uint"},11768:{name:"MaxCache",type:"Uint"},254851:{name:"DefaultDuration",type:"Uint"},216698:{name:"DefaultDecodedFieldDuration",type:"Uint"},209231:{name:"TrackTimecodeScale",type:"Float"},4991:{name:"TrackOffset",type:"Int"},5614:{name:"MaxBlockAdditionID",type:"Uint"},4974:{name:"Name",type:"String"},177564:{name:"Language",type:"String"},6:{name:"CodecID",type:"String"},9122:{name:"CodecPrivate",type:"Binary"},362120:{name:"CodecName",type:"String"},13382:{name:"AttachmentLink",type:"Uint"},1742487:{name:"CodecSettings",type:"String"},1785920:{name:"CodecInfoURL",type:"String"},438848:{name:"CodecDownloadURL",type:"String"},42:{name:"CodecDecodeAll",type:"Uint"},12203:{name:"TrackOverlay",type:"Uint"},5802:{name:"CodecDelay",type:"Uint"},5819:{name:"SeekPreRoll",type:"Uint"},9764:{name:"TrackTranslate",type:"Container"},9980:{name:"TrackTranslateEditionUID",type:"Uint"},9919:{name:"TrackTranslateCodec",type:"Uint"},9893:{name:"TrackTranslateTrackID",type:"Binary"},96:{name:"Video",type:"Container"},26:{name:"FlagInterlaced",type:"Uint"},5048:{name:"StereoMode",type:"Uint"},5056:{name:"AlphaMode",type:"Uint"},5049:{name:"OldStereoMode",type:"Uint"},48:{name:"PixelWidth",type:"Uint"},58:{name:"PixelHeight",type:"Uint"},5290:{name:"PixelCropBottom",type:"Uint"},5307:{name:"PixelCropTop",type:"Uint"},5324:{name:"PixelCropLeft",type:"Uint"},5341:{name:"PixelCropRight",type:"Uint"},5296:{name:"DisplayWidth",type:"Uint"},5306:{name:"DisplayHeight",type:"Uint"},5298:{name:"DisplayUnit",type:"Uint"},5299:{name:"AspectRatioType",type:"Uint"},963876:{name:"ColourSpace",type:"Binary"},1029411:{name:"GammaValue",type:"Float"},230371:{name:"FrameRate",type:"Float"},97:{name:"Audio",type:"Container"},53:{name:"SamplingFrequency",type:"Float"},14517:{name:"OutputSamplingFrequency",type:"Float"},31:{name:"Channels",type:"Uint"},15739:{name:"ChannelPositions",type:"Binary"},8804:{name:"BitDepth",type:"Uint"},98:{name:"TrackOperation",type:"Container"},99:{name:"TrackCombinePlanes",type:"Container"},100:{name:"TrackPlane",type:"Container"},101:{name:"TrackPlaneUID",type:"Uint"},102:{name:"TrackPlaneType",type:"Uint"},105:{name:"TrackJoinBlocks",type:"Container"},109:{name:"TrackJoinUID",type:"Uint"},64:{name:"TrickTrackUID",type:"Uint"},65:{name:"TrickTrackSegmentUID",type:"Binary"},70:{name:"TrickTrackFlag",type:"Uint"},71:{name:"TrickMasterTrackUID",type:"Uint"},68:{name:"TrickMasterTrackSegmentUID",type:"Binary"},11648:{name:"ContentEncodings",type:"Container"},8768:{name:"ContentEncoding",type:"Container"},4145:{name:"ContentEncodingOrder",type:"Uint"},4146:{name:"ContentEncodingScope",type:"Uint"},4147:{name:"ContentEncodingType",type:"Uint"},4148:{name:"ContentCompression",type:"Container"},596:{name:"ContentCompAlgo",type:"Uint"},597:{name:"ContentCompSettings",type:"Binary"},4149:{name:"ContentEncryption",type:"Container"},2017:{name:"ContentEncAlgo",type:"Uint"},2018:{name:"ContentEncKeyID",type:"Binary"},2019:{name:"ContentSignature",type:"Binary"},2020:{name:"ContentSigKeyID",type:"Binary"},2021:{name:"ContentSigAlgo",type:"Uint"},2022:{name:"ContentSigHashAlgo",type:"Uint"},206814059:{name:"Cues",type:"Container"},59:{name:"CuePoint",type:"Container"},51:{name:"CueTime",type:"Uint"},55:{name:"CueTrackPositions",type:"Container"},119:{name:"CueTrack",type:"Uint"},113:{name:"CueClusterPosition",type:"Uint"},112:{name:"CueRelativePosition",type:"Uint"},50:{name:"CueDuration",type:"Uint"},4984:{name:"CueBlockNumber",type:"Uint"},106:{name:"CueCodecState",type:"Uint"},91:{name:"CueReference",type:"Container"},22:{name:"CueRefTime",type:"Uint"},23:{name:"CueRefCluster",type:"Uint"},4959:{name:"CueRefNumber",type:"Uint"},107:{name:"CueRefCodecState",type:"Uint"},155296873:{name:"Attachments",type:"Container"},8615:{name:"AttachedFile",type:"Container"},1662:{name:"FileDescription",type:"String"},1646:{name:"FileName",type:"String"},1632:{name:"FileMimeType",type:"String"},1628:{name:"FileData",type:"Binary"},1710:{name:"FileUID",type:"Uint"},1653:{name:"FileReferral",type:"Binary"},1633:{name:"FileUsedStartTime",type:"Uint"},1634:{name:"FileUsedEndTime",type:"Uint"},4433776:{name:"Chapters",type:"Container"},1465:{name:"EditionEntry",type:"Container"},1468:{name:"EditionUID",type:"Uint"},1469:{name:"EditionFlagHidden",type:"Uint"},1499:{name:"EditionFlagDefault",type:"Uint"},1501:{name:"EditionFlagOrdered",type:"Uint"},54:{name:"ChapterAtom",type:"Container"},13252:{name:"ChapterUID",type:"Uint"},5716:{name:"ChapterStringUID",type:"String"},17:{name:"ChapterTimeStart",type:"Uint"},18:{name:"ChapterTimeEnd",type:"Uint"},24:{name:"ChapterFlagHidden",type:"Uint"},1432:{name:"ChapterFlagEnabled",type:"Uint"},11879:{name:"ChapterSegmentUID",type:"Binary"},11964:{name:"ChapterSegmentEditionUID",type:"Uint"},9155:{name:"ChapterPhysicalEquiv",type:"Uint"},15:{name:"ChapterTrack",type:"Container"},9:{name:"ChapterTrackNumber",type:"Uint"},0:{name:"ChapterDisplay",type:"Container"},5:{name:"ChapString",type:"String"},892:{name:"ChapLanguage",type:"String"},894:{name:"ChapCountry",type:"String"},10564:{name:"ChapProcess",type:"Container"},10581:{name:"ChapProcessCodecID",type:"Uint"},1293:{name:"ChapProcessPrivate",type:"Binary"},10513:{name:"ChapProcessCommand",type:"Container"},10530:{name:"ChapProcessTime",type:"Uint"},10547:{name:"ChapProcessData",type:"Binary"},39109479:{name:"Tags",type:"Container"},13171:{name:"Tag",type:"Container"},9152:{name:"Targets",type:"Container"},10442:{name:"TargetTypeValue",type:"Uint"},9162:{name:"TargetType",type:"String"},9157:{name:"TagTrackUID",type:"Uint"},9161:{name:"TagEditionUID",type:"Uint"},9156:{name:"TagChapterUID",type:"Uint"},9158:{name:"TagAttachmentUID",type:"Uint"},10184:{name:"SimpleTag",type:"Container"},1443:{name:"TagName",type:"String"},1146:{name:"TagLanguage",type:"String"},1156:{name:"TagDefault",type:"Uint"},1159:{name:"TagString",type:"String"},1157:{name:"TagBinary",type:"Binary"}};class y{constructor(e="Unknown",t="Unknown"){v(this,"source"),v(this,"data"),this.name=e,this.type=t}updateBySource(){}setSource(e){this.source=e,this.updateBySource()}updateByData(){}setData(e){this.data=e,this.updateByData()}}function x(e){return e.length%2==1?"0"+e:e}class b extends y{constructor(e,t){super(e,t||"Uint")}updateBySource(){this.data="";for(let e=0;e<this.source.length;e++){const t=this.source[e].toString(16);this.data+=x(t)}}updateByData(){const e=this.data.length/2;this.source=new Uint8Array(e);for(let t=0;t<e;t++){const e=this.data.substr(2*t,2);this.source[t]=parseInt(e,16)}}getValue(){return parseInt(this.data,16)}setValue(e){this.setData(x(e.toString(16)))}}class k extends y{constructor(e,t){super(e,t||"Float")}getFloatArrayType(){return this.source&&4===this.source.length?Float32Array:Float64Array}updateBySource(){const e=this.source.reverse(),t=new(this.getFloatArrayType())(e.buffer);this.data=t[0]}updateByData(){const e=new(this.getFloatArrayType())([this.data]),t=new Uint8Array(e.buffer);this.source=t.reverse()}getValue(){return this.data}setValue(e){this.setData(e)}}class S extends y{constructor(e,t){super(e,t||"Container"),v(this,"offset",0),v(this,"data",[])}readByte(){return this.source[this.offset++]}readUint(){const e=this.readByte(),t=8-e.toString(2).length;let n=e-(1<<7-t);for(let i=0;i<t;i++)n*=256,n+=this.readByte();return n}updateBySource(){let e;for(this.data=[],this.offset=0;this.offset<this.source.length;this.offset=e){const t=this.readUint(),n=this.readUint();e=Math.min(this.offset+n,this.source.length);const i=this.source.slice(this.offset,e),a=w[t]||{name:"Unknown",type:"Unknown"};let r=y;switch(a.type){case"Container":r=S;break;case"Uint":r=b;break;case"Float":r=k}const o=new r(a.name,a.type);o.setSource(i),this.data.push({id:t,idHex:t.toString(16),data:o})}}writeUint(e,t=!1){let n=1,i=128;for(;e>=i&&n<8;)n++,i*=128;if(!t){let t=i+e;for(let e=n-1;e>=0;e--){const n=t%256;this.source[this.offset+e]=n,t=(t-n)/256}}this.offset+=n}writeSections(e=!1){this.offset=0;for(let t=0;t<this.data.length;t++){const n=this.data[t],i=n.data.source,a=i.length;this.writeUint(n.id,e),this.writeUint(a,e),e||this.source.set(i,this.offset),this.offset+=a}return this.offset}updateByData(){const e=this.writeSections(!0);this.source=new Uint8Array(e),this.writeSections()}getSectionById(e){for(let t=0;t<this.data.length;t++){const n=this.data[t];if(n.id===e)return n.data}}}class C extends S{constructor(e){super("File","File"),this.setSource(e)}fixDuration(e){const t=this.getSectionById(139690087);if(!t)return!1;const n=t.getSectionById(88713574);if(!n)return!1;const i=n.getSectionById(710577);if(!i)return!1;let a=n.getSectionById(1161);if(a){if(!(a.getValue()<=0))return!1;a.setValue(e)}else a=new k("Duration","Float"),a.setValue(e),n.data.push({id:1161,data:a});return i.setValue(1e6),n.updateByData(),t.updateByData(),this.updateByData(),!0}toBlob(e="video/webm"){return new Blob([this.source.buffer],{type:e})}}const A=()=>{};var E=(e=>(e.IPAD="ipad",e.ANDROID="android",e.IPhONE="iphone",e.PC="pc",e))(E||{});const O=()=>{if("undefined"!=typeof window){const e=navigator.userAgent.toLowerCase();return/ipad|ipod/.test(e)?"ipad":/android/.test(e)?"android":/iphone/.test(e)?"iphone":"pc"}return"pc"},T="undefined"!=typeof window,L="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",U="ARRAYBUFFER not supported by this environment",M="UINT8ARRAY not supported by this environment";function B(e,t,n,i){let a,r,o;const s=t||[0],c=(n=n||0)>>>3,p=-1===i?3:0;for(a=0;a<e.length;a+=1)o=a+c,r=o>>>2,s.length<=r&&s.push(0),s[r]|=e[a]<<8*(p+i*(o%4));return{value:s,binLen:8*e.length+n}}function F(e,t,n){switch(t){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(e){case"HEX":return function(e,t,i){return function(e,t,n,i){let a,r,o,s;if(0!=e.length%2)throw new Error("String of HEX type must be in byte increments");const c=t||[0],p=(n=n||0)>>>3,l=-1===i?3:0;for(a=0;a<e.length;a+=2){if(r=parseInt(e.substr(a,2),16),isNaN(r))throw new Error("String of HEX type contains invalid characters");for(s=(a>>>1)+p,o=s>>>2;c.length<=o;)c.push(0);c[o]|=r<<8*(l+i*(s%4))}return{value:c,binLen:4*e.length+n}}(e,t,i,n)};case"TEXT":return function(e,i,a){return function(e,t,n,i,a){let r,o,s,c,p,l,d,u,h=0;const m=n||[0],f=(i=i||0)>>>3;if("UTF8"===t)for(d=-1===a?3:0,s=0;s<e.length;s+=1)for(r=e.charCodeAt(s),o=[],128>r?o.push(r):2048>r?(o.push(192|r>>>6),o.push(128|63&r)):55296>r||57344<=r?o.push(224|r>>>12,128|r>>>6&63,128|63&r):(s+=1,r=65536+((1023&r)<<10|1023&e.charCodeAt(s)),o.push(240|r>>>18,128|r>>>12&63,128|r>>>6&63,128|63&r)),c=0;c<o.length;c+=1){for(l=h+f,p=l>>>2;m.length<=p;)m.push(0);m[p]|=o[c]<<8*(d+a*(l%4)),h+=1}else for(d=-1===a?2:0,u="UTF16LE"===t&&1!==a||"UTF16LE"!==t&&1===a,s=0;s<e.length;s+=1){for(r=e.charCodeAt(s),!0===u&&(c=255&r,r=c<<8|r>>>8),l=h+f,p=l>>>2;m.length<=p;)m.push(0);m[p]|=r<<8*(d+a*(l%4)),h+=2}return{value:m,binLen:8*h+i}}(e,t,i,a,n)};case"B64":return function(e,t,i){return function(e,t,n,i){let a,r,o,s,c,p,l,d=0;const u=t||[0],h=(n=n||0)>>>3,m=-1===i?3:0,f=e.indexOf("=");if(-1===e.search(/^[a-z\d=+/]+$/i))throw new Error("Invalid character in base-64 string");if(e=e.replace(/=/g,""),-1!==f&&f<e.length)throw new Error("Invalid '=' found in base-64 string");for(r=0;r<e.length;r+=4){for(c=e.substr(r,4),s=0,o=0;o<c.length;o+=1)a=L.indexOf(c.charAt(o)),s|=a<<18-6*o;for(o=0;o<c.length-1;o+=1){for(l=d+h,p=l>>>2;u.length<=p;)u.push(0);u[p]|=(s>>>16-8*o&255)<<8*(m+i*(l%4)),d+=1}}return{value:u,binLen:8*d+n}}(e,t,i,n)};case"BYTES":return function(e,t,i){return function(e,t,n,i){let a,r,o,s;const c=t||[0],p=(n=n||0)>>>3,l=-1===i?3:0;for(r=0;r<e.length;r+=1)a=e.charCodeAt(r),s=r+p,o=s>>>2,c.length<=o&&c.push(0),c[o]|=a<<8*(l+i*(s%4));return{value:c,binLen:8*e.length+n}}(e,t,i,n)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(i){throw new Error(U)}return function(e,t,i){return function(e,t,n,i){return B(new Uint8Array(e),t,n,i)}(e,t,i,n)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(i){throw new Error(M)}return function(e,t,i){return B(e,t,i,n)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function R(e,t,n,i){switch(e){case"HEX":return function(e){return function(e,t,n,i){const a="0123456789abcdef";let r,o,s="";const c=t/8,p=-1===n?3:0;for(r=0;r<c;r+=1)o=e[r>>>2]>>>8*(p+n*(r%4)),s+=a.charAt(o>>>4&15)+a.charAt(15&o);return i.outputUpper?s.toUpperCase():s}(e,t,n,i)};case"B64":return function(e){return function(e,t,n,i){let a,r,o,s,c,p="";const l=t/8,d=-1===n?3:0;for(a=0;a<l;a+=3)for(s=a+1<l?e[a+1>>>2]:0,c=a+2<l?e[a+2>>>2]:0,o=(e[a>>>2]>>>8*(d+n*(a%4))&255)<<16|(s>>>8*(d+n*((a+1)%4))&255)<<8|c>>>8*(d+n*((a+2)%4))&255,r=0;r<4;r+=1)p+=8*a+6*r<=t?L.charAt(o>>>6*(3-r)&63):i.b64Pad;return p}(e,t,n,i)};case"BYTES":return function(e){return function(e,t,n){let i,a,r="";const o=t/8,s=-1===n?3:0;for(i=0;i<o;i+=1)a=e[i>>>2]>>>8*(s+n*(i%4))&255,r+=String.fromCharCode(a);return r}(e,t,n)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(a){throw new Error(U)}return function(e){return function(e,t,n){let i;const a=t/8,r=new ArrayBuffer(a),o=new Uint8Array(r),s=-1===n?3:0;for(i=0;i<a;i+=1)o[i]=e[i>>>2]>>>8*(s+n*(i%4))&255;return r}(e,t,n)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(a){throw new Error(M)}return function(e){return function(e,t,n){let i;const a=t/8,r=-1===n?3:0,o=new Uint8Array(a);for(i=0;i<a;i+=1)o[i]=e[i>>>2]>>>8*(r+n*(i%4))&255;return o}(e,t,n)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}const P=4294967296,H=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],j=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428],D=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],z="Chosen SHA variant is not supported",I="Cannot set numRounds with MAC";function N(e,t){let n,i;const a=e.binLen>>>3,r=t.binLen>>>3,o=a<<3,s=4-a<<3;if(a%4!=0){for(n=0;n<r;n+=4)i=a+n>>>2,e.value[i]|=t.value[n>>>2]<<o,e.value.push(0),e.value[i+1]|=t.value[n>>>2]>>>s;return(e.value.length<<2)-4>=r+a&&e.value.pop(),{value:e.value,binLen:e.binLen+t.binLen}}return{value:e.value.concat(t.value),binLen:e.binLen+t.binLen}}function q(e){const t={outputUpper:!1,b64Pad:"=",outputLen:-1},n=e||{},i="Output length must be a multiple of 8";if(t.outputUpper=n.outputUpper||!1,n.b64Pad&&(t.b64Pad=n.b64Pad),n.outputLen){if(n.outputLen%8!=0)throw new Error(i);t.outputLen=n.outputLen}else if(n.shakeLen){if(n.shakeLen%8!=0)throw new Error(i);t.outputLen=n.shakeLen}if("boolean"!=typeof t.outputUpper)throw new Error("Invalid outputUpper formatting option");if("string"!=typeof t.b64Pad)throw new Error("Invalid b64Pad formatting option");return t}function _(e,t,n,i){const a=e+" must include a value and format";if(!t){if(!i)throw new Error(a);return i}if(void 0===t.value||!t.format)throw new Error(a);return F(t.format,t.encoding||"UTF8",n)(t.value)}class ${constructor(e,t,n){v(this,"shaVariant"),v(this,"inputFormat"),v(this,"utfType"),v(this,"numRounds"),v(this,"keyWithIPad"),v(this,"keyWithOPad"),v(this,"remainder"),v(this,"remainderLen"),v(this,"updateCalled"),v(this,"processedLen"),v(this,"macKeySet");const i=n||{};if(this.inputFormat=t,this.utfType=i.encoding||"UTF8",this.numRounds=i.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw new Error("numRounds must a integer >= 1");this.shaVariant=e,this.remainder=[],this.remainderLen=0,this.updateCalled=!1,this.processedLen=0,this.macKeySet=!1,this.keyWithIPad=[],this.keyWithOPad=[]}update(e){let t,n=0;const i=this.variantBlockSize>>>5,a=this.converterFunc(e,this.remainder,this.remainderLen),r=a.binLen,o=a.value,s=r>>>5;for(t=0;t<s;t+=i)n+this.variantBlockSize<=r&&(this.intermediateState=this.roundFunc(o.slice(t,t+i),this.intermediateState),n+=this.variantBlockSize);return this.processedLen+=n,this.remainder=o.slice(n>>>5),this.remainderLen=r%this.variantBlockSize,this.updateCalled=!0,this}getHash(e,t){let n,i,a=this.outputBinLen;const r=q(t);if(this.isVariableLen){if(-1===r.outputLen)throw new Error("Output length must be specified in options");a=r.outputLen}const o=R(e,a,this.bigEndianMod,r);if(this.macKeySet&&this.getMAC)return o(this.getMAC(r));for(i=this.finalizeFunc(this.remainder.slice(),this.remainderLen,this.processedLen,this.stateCloneFunc(this.intermediateState),a),n=1;n<this.numRounds;n+=1)this.isVariableLen&&a%32!=0&&(i[i.length-1]&=16777215>>>24-a%32),i=this.finalizeFunc(i,a,0,this.newStateFunc(this.shaVariant),a);return o(i)}setHMACKey(e,t,n){if(!this.HMACSupported)throw new Error("Variant does not support HMAC");if(this.updateCalled)throw new Error("Cannot set MAC key after calling update");const i=F(t,(n||{}).encoding||"UTF8",this.bigEndianMod);this._setHMACKey(i(e))}_setHMACKey(e){const t=this.variantBlockSize>>>3,n=t/4-1;let i;if(1!==this.numRounds)throw new Error(I);if(this.macKeySet)throw new Error("MAC key already set");for(t<e.binLen/8&&(e.value=this.finalizeFunc(e.value,e.binLen,0,this.newStateFunc(this.shaVariant),this.outputBinLen));e.value.length<=n;)e.value.push(0);for(i=0;i<=n;i+=1)this.keyWithIPad[i]=909522486^e.value[i],this.keyWithOPad[i]=1549556828^e.value[i];this.intermediateState=this.roundFunc(this.keyWithIPad,this.intermediateState),this.processedLen=this.variantBlockSize,this.macKeySet=!0}getHMAC(e,t){const n=q(t);return R(e,this.outputBinLen,this.bigEndianMod,n)(this._getHMAC())}_getHMAC(){let e;if(!this.macKeySet)throw new Error("Cannot call getHMAC without first setting MAC key");const t=this.finalizeFunc(this.remainder.slice(),this.remainderLen,this.processedLen,this.stateCloneFunc(this.intermediateState),this.outputBinLen);return e=this.roundFunc(this.keyWithOPad,this.newStateFunc(this.shaVariant)),e=this.finalizeFunc(t,this.outputBinLen,this.variantBlockSize,e,this.outputBinLen),e}}function K(e,t){return e<<t|e>>>32-t}function V(e,t){return e>>>t|e<<32-t}function W(e,t){return e>>>t}function G(e,t,n){return e^t^n}function Y(e,t,n){return e&t^~e&n}function X(e,t,n){return e&t^e&n^t&n}function J(e){return V(e,2)^V(e,13)^V(e,22)}function Q(e,t){const n=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(n>>>16))<<16|65535&n}function Z(e,t,n,i){const a=(65535&e)+(65535&t)+(65535&n)+(65535&i);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(i>>>16)+(a>>>16))<<16|65535&a}function ee(e,t,n,i,a){const r=(65535&e)+(65535&t)+(65535&n)+(65535&i)+(65535&a);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(i>>>16)+(a>>>16)+(r>>>16))<<16|65535&r}function te(e){return V(e,7)^V(e,18)^W(e,3)}function ne(e){return V(e,6)^V(e,11)^V(e,25)}function ie(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function ae(e,t){let n,i,a,r,o,s,c;const p=[];for(n=t[0],i=t[1],a=t[2],r=t[3],o=t[4],c=0;c<80;c+=1)p[c]=c<16?e[c]:K(p[c-3]^p[c-8]^p[c-14]^p[c-16],1),s=c<20?ee(K(n,5),Y(i,a,r),o,1518500249,p[c]):c<40?ee(K(n,5),G(i,a,r),o,1859775393,p[c]):c<60?ee(K(n,5),X(i,a,r),o,2400959708,p[c]):ee(K(n,5),G(i,a,r),o,3395469782,p[c]),o=r,r=a,a=K(i,30),i=n,n=s;return t[0]=Q(n,t[0]),t[1]=Q(i,t[1]),t[2]=Q(a,t[2]),t[3]=Q(r,t[3]),t[4]=Q(o,t[4]),t}function re(e,t,n,i){let a;const r=15+(t+65>>>9<<4),o=t+n;for(;e.length<=r;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[r]=4294967295&o,e[r-1]=o/P|0,a=0;a<e.length;a+=16)i=ae(e.slice(a,a+16),i);return i}let oe=class extends ${constructor(e,t,n){if("SHA-1"!==e)throw new Error(z);super(e,t,n),v(this,"intermediateState"),v(this,"variantBlockSize"),v(this,"bigEndianMod"),v(this,"outputBinLen"),v(this,"isVariableLen"),v(this,"HMACSupported"),v(this,"converterFunc"),v(this,"roundFunc"),v(this,"finalizeFunc"),v(this,"stateCloneFunc"),v(this,"newStateFunc"),v(this,"getMAC");const i=n||{};this.HMACSupported=!0,this.getMAC=this._getHMAC,this.bigEndianMod=-1,this.converterFunc=F(this.inputFormat,this.utfType,this.bigEndianMod),this.roundFunc=ae,this.stateCloneFunc=function(e){return e.slice()},this.newStateFunc=ie,this.finalizeFunc=re,this.intermediateState=[1732584193,4023233417,2562383102,271733878,3285377520],this.variantBlockSize=512,this.outputBinLen=160,this.isVariableLen=!1,i.hmacKey&&this._setHMACKey(_("hmacKey",i.hmacKey,this.bigEndianMod))}};function se(e){let t;return t="SHA-224"===e?j.slice():D.slice(),t}function ce(e,t){let n,i,a,r,o,s,c,p,l,d,u;const h=[];for(n=t[0],i=t[1],a=t[2],r=t[3],o=t[4],s=t[5],c=t[6],p=t[7],u=0;u<64;u+=1)h[u]=u<16?e[u]:Z(V(m=h[u-2],17)^V(m,19)^W(m,10),h[u-7],te(h[u-15]),h[u-16]),l=ee(p,ne(o),Y(o,s,c),H[u],h[u]),d=Q(J(n),X(n,i,a)),p=c,c=s,s=o,o=Q(r,l),r=a,a=i,i=n,n=Q(l,d);var m;return t[0]=Q(n,t[0]),t[1]=Q(i,t[1]),t[2]=Q(a,t[2]),t[3]=Q(r,t[3]),t[4]=Q(o,t[4]),t[5]=Q(s,t[5]),t[6]=Q(c,t[6]),t[7]=Q(p,t[7]),t}let pe=class extends ${constructor(e,t,n){if("SHA-224"!==e&&"SHA-256"!==e)throw new Error(z);super(e,t,n),v(this,"intermediateState"),v(this,"variantBlockSize"),v(this,"bigEndianMod"),v(this,"outputBinLen"),v(this,"isVariableLen"),v(this,"HMACSupported"),v(this,"converterFunc"),v(this,"roundFunc"),v(this,"finalizeFunc"),v(this,"stateCloneFunc"),v(this,"newStateFunc"),v(this,"getMAC");const i=n||{};this.getMAC=this._getHMAC,this.HMACSupported=!0,this.bigEndianMod=-1,this.converterFunc=F(this.inputFormat,this.utfType,this.bigEndianMod),this.roundFunc=ce,this.stateCloneFunc=function(e){return e.slice()},this.newStateFunc=se,this.finalizeFunc=function(t,n,i,a){return function(e,t,n,i,a){let r,o;const s=15+(t+65>>>9<<4),c=t+n;for(;e.length<=s;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[s]=4294967295&c,e[s-1]=c/P|0,r=0;r<e.length;r+=16)i=ce(e.slice(r,r+16),i);return o="SHA-224"===a?[i[0],i[1],i[2],i[3],i[4],i[5],i[6]]:i,o}(t,n,i,a,e)},this.intermediateState=se(e),this.variantBlockSize=512,this.outputBinLen="SHA-224"===e?224:256,this.isVariableLen=!1,i.hmacKey&&this._setHMACKey(_("hmacKey",i.hmacKey,this.bigEndianMod))}};class le{constructor(e,t){v(this,"highOrder"),v(this,"lowOrder"),this.highOrder=e,this.lowOrder=t}}function de(e,t){let n;return t>32?(n=64-t,new le(e.lowOrder<<t|e.highOrder>>>n,e.highOrder<<t|e.lowOrder>>>n)):0!==t?(n=32-t,new le(e.highOrder<<t|e.lowOrder>>>n,e.lowOrder<<t|e.highOrder>>>n)):e}function ue(e,t){let n;return t<32?(n=32-t,new le(e.highOrder>>>t|e.lowOrder<<n,e.lowOrder>>>t|e.highOrder<<n)):(n=64-t,new le(e.lowOrder>>>t|e.highOrder<<n,e.highOrder>>>t|e.lowOrder<<n))}function he(e,t){return new le(e.highOrder>>>t,e.lowOrder>>>t|e.highOrder<<32-t)}function me(e,t,n){return new le(e.highOrder&t.highOrder^e.highOrder&n.highOrder^t.highOrder&n.highOrder,e.lowOrder&t.lowOrder^e.lowOrder&n.lowOrder^t.lowOrder&n.lowOrder)}function fe(e){const t=ue(e,28),n=ue(e,34),i=ue(e,39);return new le(t.highOrder^n.highOrder^i.highOrder,t.lowOrder^n.lowOrder^i.lowOrder)}function ge(e,t){let n,i;n=(65535&e.lowOrder)+(65535&t.lowOrder),i=(e.lowOrder>>>16)+(t.lowOrder>>>16)+(n>>>16);const a=(65535&i)<<16|65535&n;n=(65535&e.highOrder)+(65535&t.highOrder)+(i>>>16),i=(e.highOrder>>>16)+(t.highOrder>>>16)+(n>>>16);return new le((65535&i)<<16|65535&n,a)}function ve(e,t,n,i){let a,r;a=(65535&e.lowOrder)+(65535&t.lowOrder)+(65535&n.lowOrder)+(65535&i.lowOrder),r=(e.lowOrder>>>16)+(t.lowOrder>>>16)+(n.lowOrder>>>16)+(i.lowOrder>>>16)+(a>>>16);const o=(65535&r)<<16|65535&a;a=(65535&e.highOrder)+(65535&t.highOrder)+(65535&n.highOrder)+(65535&i.highOrder)+(r>>>16),r=(e.highOrder>>>16)+(t.highOrder>>>16)+(n.highOrder>>>16)+(i.highOrder>>>16)+(a>>>16);return new le((65535&r)<<16|65535&a,o)}function we(e,t,n,i,a){let r,o;r=(65535&e.lowOrder)+(65535&t.lowOrder)+(65535&n.lowOrder)+(65535&i.lowOrder)+(65535&a.lowOrder),o=(e.lowOrder>>>16)+(t.lowOrder>>>16)+(n.lowOrder>>>16)+(i.lowOrder>>>16)+(a.lowOrder>>>16)+(r>>>16);const s=(65535&o)<<16|65535&r;r=(65535&e.highOrder)+(65535&t.highOrder)+(65535&n.highOrder)+(65535&i.highOrder)+(65535&a.highOrder)+(o>>>16),o=(e.highOrder>>>16)+(t.highOrder>>>16)+(n.highOrder>>>16)+(i.highOrder>>>16)+(a.highOrder>>>16)+(r>>>16);return new le((65535&o)<<16|65535&r,s)}function ye(e,t){return new le(e.highOrder^t.highOrder,e.lowOrder^t.lowOrder)}function xe(e){const t=ue(e,19),n=ue(e,61),i=he(e,6);return new le(t.highOrder^n.highOrder^i.highOrder,t.lowOrder^n.lowOrder^i.lowOrder)}function be(e){const t=ue(e,1),n=ue(e,8),i=he(e,7);return new le(t.highOrder^n.highOrder^i.highOrder,t.lowOrder^n.lowOrder^i.lowOrder)}function ke(e){const t=ue(e,14),n=ue(e,18),i=ue(e,41);return new le(t.highOrder^n.highOrder^i.highOrder,t.lowOrder^n.lowOrder^i.lowOrder)}const Se=[new le(H[0],3609767458),new le(H[1],602891725),new le(H[2],3964484399),new le(H[3],2173295548),new le(H[4],4081628472),new le(H[5],3053834265),new le(H[6],2937671579),new le(H[7],3664609560),new le(H[8],2734883394),new le(H[9],1164996542),new le(H[10],1323610764),new le(H[11],3590304994),new le(H[12],4068182383),new le(H[13],991336113),new le(H[14],633803317),new le(H[15],3479774868),new le(H[16],2666613458),new le(H[17],944711139),new le(H[18],2341262773),new le(H[19],2007800933),new le(H[20],1495990901),new le(H[21],1856431235),new le(H[22],3175218132),new le(H[23],2198950837),new le(H[24],3999719339),new le(H[25],766784016),new le(H[26],2566594879),new le(H[27],3203337956),new le(H[28],1034457026),new le(H[29],2466948901),new le(H[30],3758326383),new le(H[31],168717936),new le(H[32],1188179964),new le(H[33],1546045734),new le(H[34],1522805485),new le(H[35],2643833823),new le(H[36],2343527390),new le(H[37],1014477480),new le(H[38],1206759142),new le(H[39],344077627),new le(H[40],1290863460),new le(H[41],3158454273),new le(H[42],3505952657),new le(H[43],106217008),new le(H[44],3606008344),new le(H[45],1432725776),new le(H[46],1467031594),new le(H[47],851169720),new le(H[48],3100823752),new le(H[49],1363258195),new le(H[50],3750685593),new le(H[51],3785050280),new le(H[52],3318307427),new le(H[53],3812723403),new le(H[54],2003034995),new le(H[55],3602036899),new le(H[56],1575990012),new le(H[57],1125592928),new le(H[58],2716904306),new le(H[59],442776044),new le(H[60],593698344),new le(H[61],3733110249),new le(H[62],2999351573),new le(H[63],3815920427),new le(3391569614,3928383900),new le(3515267271,566280711),new le(3940187606,3454069534),new le(4118630271,4000239992),new le(116418474,1914138554),new le(174292421,2731055270),new le(289380356,3203993006),new le(460393269,320620315),new le(685471733,587496836),new le(852142971,1086792851),new le(1017036298,365543100),new le(1126000580,2618297676),new le(1288033470,3409855158),new le(1501505948,4234509866),new le(1607167915,987167468),new le(1816402316,1246189591)];function Ce(e){return"SHA-384"===e?[new le(3418070365,j[0]),new le(1654270250,j[1]),new le(2438529370,j[2]),new le(355462360,j[3]),new le(1731405415,j[4]),new le(41048885895,j[5]),new le(3675008525,j[6]),new le(1203062813,j[7])]:[new le(D[0],4089235720),new le(D[1],2227873595),new le(D[2],4271175723),new le(D[3],1595750129),new le(D[4],2917565137),new le(D[5],725511199),new le(D[6],4215389547),new le(D[7],327033209)]}function Ae(e,t){let n,i,a,r,o,s,c,p,l,d,u,h;const m=[];for(n=t[0],i=t[1],a=t[2],r=t[3],o=t[4],s=t[5],c=t[6],p=t[7],u=0;u<80;u+=1)u<16?(h=2*u,m[u]=new le(e[h],e[h+1])):m[u]=ve(xe(m[u-2]),m[u-7],be(m[u-15]),m[u-16]),l=we(p,ke(o),(g=s,v=c,new le((f=o).highOrder&g.highOrder^~f.highOrder&v.highOrder,f.lowOrder&g.lowOrder^~f.lowOrder&v.lowOrder)),Se[u],m[u]),d=ge(fe(n),me(n,i,a)),p=c,c=s,s=o,o=ge(r,l),r=a,a=i,i=n,n=ge(l,d);var f,g,v;return t[0]=ge(n,t[0]),t[1]=ge(i,t[1]),t[2]=ge(a,t[2]),t[3]=ge(r,t[3]),t[4]=ge(o,t[4]),t[5]=ge(s,t[5]),t[6]=ge(c,t[6]),t[7]=ge(p,t[7]),t}let Ee=class extends ${constructor(e,t,n){if("SHA-384"!==e&&"SHA-512"!==e)throw new Error(z);super(e,t,n),v(this,"intermediateState"),v(this,"variantBlockSize"),v(this,"bigEndianMod"),v(this,"outputBinLen"),v(this,"isVariableLen"),v(this,"HMACSupported"),v(this,"converterFunc"),v(this,"roundFunc"),v(this,"finalizeFunc"),v(this,"stateCloneFunc"),v(this,"newStateFunc"),v(this,"getMAC");const i=n||{};this.getMAC=this._getHMAC,this.HMACSupported=!0,this.bigEndianMod=-1,this.converterFunc=F(this.inputFormat,this.utfType,this.bigEndianMod),this.roundFunc=Ae,this.stateCloneFunc=function(e){return e.slice()},this.newStateFunc=Ce,this.finalizeFunc=function(t,n,i,a){return function(e,t,n,i,a){let r,o;const s=31+(t+129>>>10<<5),c=t+n;for(;e.length<=s;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[s]=4294967295&c,e[s-1]=c/P|0,r=0;r<e.length;r+=32)i=Ae(e.slice(r,r+32),i);return o="SHA-384"===a?[i[0].highOrder,i[0].lowOrder,i[1].highOrder,i[1].lowOrder,i[2].highOrder,i[2].lowOrder,i[3].highOrder,i[3].lowOrder,i[4].highOrder,i[4].lowOrder,i[5].highOrder,i[5].lowOrder]:[i[0].highOrder,i[0].lowOrder,i[1].highOrder,i[1].lowOrder,i[2].highOrder,i[2].lowOrder,i[3].highOrder,i[3].lowOrder,i[4].highOrder,i[4].lowOrder,i[5].highOrder,i[5].lowOrder,i[6].highOrder,i[6].lowOrder,i[7].highOrder,i[7].lowOrder],o}(t,n,i,a,e)},this.intermediateState=Ce(e),this.variantBlockSize=1024,this.outputBinLen="SHA-384"===e?384:512,this.isVariableLen=!1,i.hmacKey&&this._setHMACKey(_("hmacKey",i.hmacKey,this.bigEndianMod))}};const Oe=[new le(0,1),new le(0,32898),new le(2147483648,32906),new le(2147483648,2147516416),new le(0,32907),new le(0,2147483649),new le(2147483648,2147516545),new le(2147483648,32777),new le(0,138),new le(0,136),new le(0,2147516425),new le(0,2147483658),new le(0,2147516555),new le(2147483648,139),new le(2147483648,32905),new le(2147483648,32771),new le(2147483648,32770),new le(2147483648,128),new le(0,32778),new le(2147483648,2147483658),new le(2147483648,2147516545),new le(2147483648,32896),new le(0,2147483649),new le(2147483648,2147516424)],Te=[[0,36,3,41,18],[1,44,10,45,2],[62,6,43,15,61],[28,55,25,21,56],[27,20,39,8,14]];function Le(e){let t;const n=[];for(t=0;t<5;t+=1)n[t]=[new le(0,0),new le(0,0),new le(0,0),new le(0,0),new le(0,0)];return n}function Ue(e){let t;const n=[];for(t=0;t<5;t+=1)n[t]=e[t].slice();return n}function Me(e,t){let n,i,a,r;const o=[],s=[];if(null!=e)for(i=0;i<e.length;i+=2)t[(i>>>1)%5][(i>>>1)/5|0]=ye(t[(i>>>1)%5][(i>>>1)/5|0],new le(e[i+1],e[i]));for(n=0;n<24;n+=1){for(r=Le(),i=0;i<5;i+=1)o[i]=(c=t[i][0],p=t[i][1],l=t[i][2],d=t[i][3],u=t[i][4],new le(c.highOrder^p.highOrder^l.highOrder^d.highOrder^u.highOrder,c.lowOrder^p.lowOrder^l.lowOrder^d.lowOrder^u.lowOrder));for(i=0;i<5;i+=1)s[i]=ye(o[(i+4)%5],de(o[(i+1)%5],1));for(i=0;i<5;i+=1)for(a=0;a<5;a+=1)t[i][a]=ye(t[i][a],s[i]);for(i=0;i<5;i+=1)for(a=0;a<5;a+=1)r[a][(2*i+3*a)%5]=de(t[i][a],Te[i][a]);for(i=0;i<5;i+=1)for(a=0;a<5;a+=1)t[i][a]=ye(r[i][a],new le(~r[(i+1)%5][a].highOrder&r[(i+2)%5][a].highOrder,~r[(i+1)%5][a].lowOrder&r[(i+2)%5][a].lowOrder));t[0][0]=ye(t[0][0],Oe[n])}var c,p,l,d,u;return t}function Be(e){let t,n,i=0;const a=[0,0],r=[4294967295&e,e/P&2097151];for(t=6;t>=0;t--)n=r[t>>2]>>>8*t&255,0===n&&0===i||(a[i+1>>2]|=n<<8*(i+1),i+=1);return i=0!==i?i:1,a[0]|=i,{value:i+1>4?a:[a[0]],binLen:8+8*i}}function Fe(e){return N(Be(e.binLen),e)}function Re(e,t){let n,i=Be(t);i=N(i,e);const a=t>>>2,r=(a-i.value.length%a)%a;for(n=0;n<r;n++)i.value.push(0);return i.value}let Pe=class extends ${constructor(e,t,n){let i=6,a=0;super(e,t,n),v(this,"intermediateState"),v(this,"variantBlockSize"),v(this,"bigEndianMod"),v(this,"outputBinLen"),v(this,"isVariableLen"),v(this,"HMACSupported"),v(this,"converterFunc"),v(this,"roundFunc"),v(this,"finalizeFunc"),v(this,"stateCloneFunc"),v(this,"newStateFunc"),v(this,"getMAC");const r=n||{};if(1!==this.numRounds){if(r.kmacKey||r.hmacKey)throw new Error(I);if("CSHAKE128"===this.shaVariant||"CSHAKE256"===this.shaVariant)throw new Error("Cannot set numRounds for CSHAKE variants")}switch(this.bigEndianMod=1,this.converterFunc=F(this.inputFormat,this.utfType,this.bigEndianMod),this.roundFunc=Me,this.stateCloneFunc=Ue,this.newStateFunc=Le,this.intermediateState=Le(),this.isVariableLen=!1,e){case"SHA3-224":this.variantBlockSize=a=1152,this.outputBinLen=224,this.HMACSupported=!0,this.getMAC=this._getHMAC;break;case"SHA3-256":this.variantBlockSize=a=1088,this.outputBinLen=256,this.HMACSupported=!0,this.getMAC=this._getHMAC;break;case"SHA3-384":this.variantBlockSize=a=832,this.outputBinLen=384,this.HMACSupported=!0,this.getMAC=this._getHMAC;break;case"SHA3-512":this.variantBlockSize=a=576,this.outputBinLen=512,this.HMACSupported=!0,this.getMAC=this._getHMAC;break;case"SHAKE128":i=31,this.variantBlockSize=a=1344,this.outputBinLen=-1,this.isVariableLen=!0,this.HMACSupported=!1,this.getMAC=null;break;case"SHAKE256":i=31,this.variantBlockSize=a=1088,this.outputBinLen=-1,this.isVariableLen=!0,this.HMACSupported=!1,this.getMAC=null;break;case"KMAC128":i=4,this.variantBlockSize=a=1344,this._initializeKMAC(n),this.outputBinLen=-1,this.isVariableLen=!0,this.HMACSupported=!1,this.getMAC=this._getKMAC;break;case"KMAC256":i=4,this.variantBlockSize=a=1088,this._initializeKMAC(n),this.outputBinLen=-1,this.isVariableLen=!0,this.HMACSupported=!1,this.getMAC=this._getKMAC;break;case"CSHAKE128":this.variantBlockSize=a=1344,i=this._initializeCSHAKE(n),this.outputBinLen=-1,this.isVariableLen=!0,this.HMACSupported=!1,this.getMAC=null;break;case"CSHAKE256":this.variantBlockSize=a=1088,i=this._initializeCSHAKE(n),this.outputBinLen=-1,this.isVariableLen=!0,this.HMACSupported=!1,this.getMAC=null;break;default:throw new Error(z)}this.finalizeFunc=function(e,t,n,r,o){return function(e,t,n,i,a,r,o){let s,c,p=0;const l=[],d=a>>>5,u=t>>>5;for(s=0;s<u&&t>=a;s+=d)i=Me(e.slice(s,s+d),i),t-=a;for(e=e.slice(s),t%=a;e.length<d;)e.push(0);for(s=t>>>3,e[s>>2]^=r<<s%4*8,e[d-1]^=2147483648,i=Me(e,i);32*l.length<o&&(c=i[p%5][p/5|0],l.push(c.lowOrder),!(32*l.length>=o));)l.push(c.highOrder),p+=1,0==64*p%a&&(Me(null,i),p=0);return l}(e,t,0,r,a,i,o)},r.hmacKey&&this._setHMACKey(_("hmacKey",r.hmacKey,this.bigEndianMod))}_initializeCSHAKE(e,t){const n=function(e){const t=e||{};return{funcName:_("funcName",t.funcName,1,{value:[],binLen:0}),customization:_("Customization",t.customization,1,{value:[],binLen:0})}}(e||{});t&&(n.funcName=t);const i=N(Fe(n.funcName),Fe(n.customization));if(0!==n.customization.binLen||0!==n.funcName.binLen){const e=Re(i,this.variantBlockSize>>>3);for(let t=0;t<e.length;t+=this.variantBlockSize>>>5)this.intermediateState=this.roundFunc(e.slice(t,t+(this.variantBlockSize>>>5)),this.intermediateState),this.processedLen+=this.variantBlockSize;return 4}return 31}_initializeKMAC(e){const t=function(e){const t=e||{};return{kmacKey:_("kmacKey",t.kmacKey,1),funcName:{value:[1128353099],binLen:32},customization:_("Customization",t.customization,1,{value:[],binLen:0})}}(e||{});this._initializeCSHAKE(e,t.funcName);const n=Re(Fe(t.kmacKey),this.variantBlockSize>>>3);for(let i=0;i<n.length;i+=this.variantBlockSize>>>5)this.intermediateState=this.roundFunc(n.slice(i,i+(this.variantBlockSize>>>5)),this.intermediateState),this.processedLen+=this.variantBlockSize;this.macKeySet=!0}_getKMAC(e){const t=N({value:this.remainder.slice(),binLen:this.remainderLen},function(e){let t,n,i=0;const a=[0,0],r=[4294967295&e,e/P&2097151];for(t=6;t>=0;t--)n=r[t>>2]>>>8*t&255,0===n&&0===i||(a[i>>2]|=n<<8*i,i+=1);return i=0!==i?i:1,a[i>>2]|=i<<8*i,{value:i+1>4?a:[a[0]],binLen:8+8*i}}(e.outputLen));return this.finalizeFunc(t.value,t.binLen,this.processedLen,this.stateCloneFunc(this.intermediateState),e.outputLen)}};class He{constructor(e,t,n){if(v(this,"shaObj"),"SHA-1"===e)this.shaObj=new oe(e,t,n);else if("SHA-224"===e||"SHA-256"===e)this.shaObj=new pe(e,t,n);else if("SHA-384"===e||"SHA-512"===e)this.shaObj=new Ee(e,t,n);else{if("SHA3-224"!==e&&"SHA3-256"!==e&&"SHA3-384"!==e&&"SHA3-512"!==e&&"SHAKE128"!==e&&"SHAKE256"!==e&&"CSHAKE128"!==e&&"CSHAKE256"!==e&&"KMAC128"!==e&&"KMAC256"!==e)throw new Error(z);this.shaObj=new Pe(e,t,n)}}update(e){return this.shaObj.update(e),this}getHash(e,t){return this.shaObj.getHash(e,t)}setHMACKey(e,t,n){this.shaObj.setHMACKey(e,t,n)}getHMAC(e,t){return this.shaObj.getHMAC(e,t)}}function je(e){return e<10?`0${e}`:e}const De=()=>{if("undefined"!=typeof document)return performance.now();if("undefined"!=typeof process){const[e,t]=process.hrtime();return 1e3*e+t/1e6}return Date.now()},ze=(e="",t="",n="")=>{const i={},a=e.split(t);return a.length>0&&a.forEach((e=>{const[t="",a=""]=e.split(n);qe(t)&&(i[qe(t)]=qe(a))})),i},Ie=e=>"[object String]"===toString.call(e);function Ne(e=8){const t="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678";let n="";for(let i=0;i<e;i++)n+=t.charAt(Math.floor(48*Math.random()));return`${Date.now()}-${n}`}const qe=(e,t={})=>{const{urlencoded:n=!0}=t,i=String.prototype.trim.call(e);return n?decodeURIComponent(i).replace(/"|'/g,""):i.replace(/"|'/g,"")},_e=e=>{const t=document.cookie.split("; ");for(let n=0;n<t.length;n++){const i=t[n].split("=");if(i[0]===e)return decodeURIComponent(i[1])}return""},$e=e=>{if("undefined"!=typeof window){if(e&&Ie(e));else{const e=/\w(\.trunk|\.neibu|\.release|test)\./.exec(window.location.hostname);e&&e[1]}return"//log.chaxus.com"}};const Ke=()=>"undefined"!=typeof window?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0},Ve=/(?:[^\x21\x25\x26-\x3B\x3D\x3F-\x5B\x5D\x5F\x7E]|%(?:[^\da-f]|[\da-f][^\da-f]|$))+/gi,We=/(^|[^\uD800-\uDBFF])[\uDC00-\uDFFF]|[\uD800-\uDBFF]([^\uDC00-\uDFFF]|$)/g;const Ge=e=>new Promise(((t,n)=>{const i=new Image,a=(new Date).getTime();i.src=e||`https://github.com/favicon.ico?d=${a}`,i.onload=()=>{const e=(new Date).getTime();t(e-a)},i.onerror=e=>{n(e)}})),Ye=(e,...t)=>n=>new Promise(((i,a)=>{setTimeout((async()=>{try{const n=await e(...t);i(n)}catch(n){a(n)}}),n)})),Xe={bold:["",""],dim:["",""],reset:["",""],italic:["",""],underline:["",""],inverse:["",""],hidden:["",""],strikethrough:["",""],black:["",""],red:["",""],green:["",""],yellow:["",""],blue:["",""],magenta:["",""],cyan:["",""],white:["",""],gray:["",""],bgBlack:["",""],bgRed:["",""],bgGreen:["",""],bgYellow:["",""],bgBlue:["",""],bgMagenta:["",""],bgCyan:["",""],bgWhite:["",""]},Je=Math.round;class Qe{constructor(e){v(this,"r"),v(this,"g"),v(this,"b"),this.r=e[0],this.g=e[1],this.b=e[2]}toString(){return`rgb(${this.r},${this.g},${this.b})`}}class Ze extends Qe{constructor(e){super(e),v(this,"a"),this.a=e[3]}toString(){return`rgba(${this.r},${this.g},${this.b},${this.a})`}}class et{constructor(e){v(this,"h"),v(this,"s"),v(this,"l"),this.h=e[0],this.s=e[1],this.l=e[2]}toString(){return`hsl(${this.h},${this.s}%,${this.l}%)`}}class tt extends et{constructor(e){super(e),v(this,"a"),this.a=e[3]}toString(){return`hsla(${this.h},${this.s}%,${this.l}%,${this.a})`}}class nt{constructor(e,t=0,n=0,i=1){if(v(this,"r"),v(this,"g"),v(this,"b"),v(this,"a"),v(this,"rgb"),v(this,"rgba"),v(this,"hex"),v(this,"hsl"),v(this,"hsla"),v(this,"h"),v(this,"s"),v(this,"l"),"string"==typeof e){let i=e;"#"!==i.charAt(0)&&(i="#"+i),i.length<7&&(i="#"+i[1]+i[1]+i[2]+i[2]+i[3]+i[3]),[e,t,n]=it(i)}else e instanceof Array&&(i=e[3]||i,n=e[2],t=e[1],e=e[0]);this.r=Number(e),this.g=Number(t),this.b=Number(n),this.a=i,this.rgb=new Qe([this.r,this.g,this.b]),this.rgba=new Ze([this.r,this.g,this.b,this.a]),this.hex=rt(this.r,this.g,this.b),this.hsl=new et(ot(this.r,this.g,this.b)),this.h=this.hsl.h,this.s=this.hsl.s,this.l=this.hsl.l,this.hsla=new tt([this.h,this.s,this.l,this.a])}setHue(e){this.h=e,this.hsl.h=e,this.hsla.h=e,this.updateFromHsl()}setSat(e){this.s=e,this.hsl.s=e,this.hsla.s=e,this.updateFromHsl()}setLum(e){this.l=e,this.hsl.l=e,this.hsla.l=e,this.updateFromHsl()}setAlpha(e){this.a=e,this.hsla.a=e,this.rgba.a=e}updateFromHsl(){this.rgb=new Qe(ct(this.h,this.s,this.l)),this.r=this.rgb.r,this.g=this.rgb.g,this.b=this.rgb.b,this.rgba.r=this.rgb.r,this.rgba.g=this.rgb.g,this.rgba.b=this.rgb.b,this.hex=rt([this.r,this.g,this.b])}}const it=function(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:null},at=function(e){const t=e.toString(16);return 1===t.length?"0"+t:t},rt=function(e,t=0,n=0){return e instanceof Array&&(n=e[2],t=e[1],e=e[0]),"#"+at(e)+at(t)+at(n)},ot=function(e,t=0,n=0){e instanceof Array&&(n=e[2],t=e[1],e=e[0]);let i,a,r,o=0;e/=255,t/=255,n/=255;const s=Math.max(e,t,n),c=Math.min(e,t,n);if(a=(s+c)/2,s===c)o=i=0;else{switch(r=s-c,i=a>.5?r/(2-s-c):r/(s+c),s){case e:o=(t-n)/r+(t<n?6:0);break;case t:o=(n-e)/r+2;break;case n:o=(e-t)/r+4}o/=6}return o=Je(360*o),i=Je(100*i),a=Je(100*a),[o,i,a]},st=function(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e},ct=function(e,t,n){let i,a,r,o,s;return e instanceof Array&&(n=e[2],t=e[1],e=e[0]),e=Number(e)/360,t=Number(t)/100,n=Number(n)/100,0===t?i=a=r=n:(o=n<.5?n*(1+t):n+t-n*t,s=2*n-o,i=st(s,o,e+1/3),a=st(s,o,e),r=st(s,o,e-1/3)),[Je(255*i),Je(255*a),Je(255*r)]},pt=function(e,t,n){let i=0,a=0,r=0;if(0===n)return[0,0,0];t/=100,n/=100,e/=60;const o=Math.floor(e),s=e-o,c=n*(1-t),p=n*(1-t*s),l=n*(1-t*(1-s));return 0===o?(i=n,a=l,r=c):1===o?(i=p,a=n,r=c):2===o?(i=c,a=n,r=l):3===o?(i=c,a=p,r=n):4===o?(i=l,a=c,r=n):5===o&&(i=n,a=c,r=p),i=Math.floor(255*i),a=Math.floor(255*a),r=Math.floor(255*r),[i,a,r]},lt=pt,dt=function(e,t,n){return ot(pt(e,t,n))};const ut=e=>{let t,n=!1;return(...i)=>(n||(t="function"==typeof e?e(...i):e,n=!0,e=void 0),t)};function ht(e={}){if("object"!=typeof e)throw new TypeError("param must be object");return Object.entries(e).reduce(((e,[t,n])=>(void 0===n||null==n||e.append(decodeURIComponent(t),decodeURIComponent(n)),e)),new URLSearchParams).toString()}function mt(e,t,n,i){if(void 0!==e&&(t in e||i)){const i=n(e[t]);"function"==typeof i&&(e[t]=i)}}const ft=(e,t)=>{const n=Object.getOwnPropertyDescriptors(t);for(const i of Object.keys(n)){const t=n[i];if(t.get){const n=t.get;Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:ut(n)})}else{if("object"!=typeof t.value)throw new Error("Exposed values must be either a getter or an nested object");Object.defineProperty(e,i,{configurable:!1,enumerable:!0,writable:!1,value:ft({},t.value)})}}return Object.freeze(e)},gt=(e=A)=>{["log","info","warn","error","assert"].forEach((t=>{mt(console,t,(n=>function(...i){n&&(e(t,...i),n.apply(console,i))}))}))},vt=/["'&<>]/;const wt=["svg","path","g","circle","rect","line","polyline","polygon","ellipse","text","tspan","textPath","defs","marker","radialGradient","stop","linearGradient","clipPath","mask","pattern","image","use","symbol","foreignObject","feGaussianBlur","feColorMatrix"];class yt{constructor(e,t){v(this,"listener"),v(this,"element"),v(this,"create",((e,t)=>wt.includes(e)?document.createElementNS("http://www.w3.org/2000/svg",e,t):document.createElement(e,t))),v(this,"setAttribute",((e,t)=>(this.element.setAttribute(e,t),this))),v(this,"removeAttribute",(e=>(this.element.removeAttribute(e),this))),v(this,"append",(e=>(this.element.appendChild(e),this))),v(this,"remove",(e=>(this.element.removeChild(e),this))),v(this,"setTextContent",(e=>(this.element.textContent=e,this))),v(this,"setStyle",((e,t)=>(this.element.style.setProperty(e,t),this))),v(this,"addElementByType",((e,t)=>{e instanceof yt&&t.appendChild(e.element),e instanceof HTMLElement&&t.appendChild(e)})),v(this,"addChild",(e=>{if(Array.isArray(e)){const t=document.createDocumentFragment();e.forEach((e=>{this.addElementByType(e,t)})),this.element.appendChild(t)}else this.addElementByType(e,this.element);return this})),v(this,"listen",((e,t,n)=>{let i=this.listener.get(e);i||(i=new Map,this.listener.set(e,i));const a=i.get(t.name);return a===t&&console.warn(`${a.name} listener has been added to ${e} event, please remove it first.`),this.element.addEventListener(e,t,n),i.set(t.name,t),this})),v(this,"clearListener",((e,t,n)=>{this.element.removeEventListener(e,t,n);const i=this.listener.get(e);return i?i.delete(t.name):console.warn(`No ${e} event listener has been added.`),this})),v(this,"clearAllListener",(()=>{for(const[e,t]of this.listener){for(const[n,i]of t)this.element.removeEventListener(e,i),t.delete(n);this.listener.delete(e)}return this})),this.element=this.create(e,t),this.listener=new Map}}const xt=(e=A)=>{"undefined"!=typeof window&&(window.addEventListener("unhandledrejection",(t=>{e(t)}),!0),window.addEventListener("error",(t=>(e(t),!1)),!0))},bt=new Map([[".ez","application/andrew-inset"],[".aw","application/applixware"],[".txt","text/plain"],[".ez","application/andrew-inset"],[".aw","application/applixware"],[".atom","application/atom+xml"],[".atomcat","application/atomcat+xml"],[".atomsvc","application/atomsvc+xml"],[".ccxml","application/ccxml+xml"],[".cu","application/cu-seeme"],[".davmount","application/davmount+xml"],[".ecma","application/ecmascript"],[".emma","application/emma+xml"],[".epub","application/epub+zip"],[".pfr","application/font-tdpfr"],[".stk","application/hyperstudio"],[".jar","application/java-archive"],[".ser","application/java-serialized-object"],[".class","application/java-vm"],[".js","application/javascript"],[".ts","application/javascript"],[".json","application/json"],[".lostxml","application/lost+xml"],[".hqx","application/mac-binhex40"],[".cpt","application/mac-compactpro"],[".mrc","application/marc"],[".ma,","application/mathematica"],[".nb","application/mathematica"],[".mb","application/mathematica"],[".mathml","application/mathml+xml"],[".mbox","application/mbox"],[".mscml","application/mediaservercontrol+xml"],[".mp4s","application/mp4"],[".doc","application/msword"],[".dot","application/msword"],[".mxf","application/mxf"],[".oda","application/oda"],[".opf","application/oebps-package+xml"],[".ogx","application/ogg"],[".onetoc","application/onenote"],[".onetoc2","application/onenote"],[".onetmp","application/onenote"],[".onepkg","application/onenote"],[".xer","application/patch-ops-error+xml"],[".pdf","application/pdf"],[".pgp","application/pgp-encrypted"],[".asc","application/pgp-signature"],[".sig","application/pgp-signature"],[".prf","application/pics-rules"],[".p10","application/pkcs10"],[".p7c","application/pkcs7-mime"],[".p7m","application/pkcs7-mime"],[".p7s","application/pkcs7-signature"],[".cer","application/pkix-cert"],[".crl","application/pkix-crl"],[".pkipath","application/pkix-pkipath"],[".pki","application/pkixcmp"],[".pls","application/pls+xml"],[".ai","application/postscript"],[".eps","application/postscript"],[".ps","application/postscript"],[".cww","application/prs.cww"],[".rdf","application/rdf+xml"],[".rif","application/reginfo+xml"],[".rnc","application/relax-ng-compact-syntax"],[".rl","application/resource-lists+xml"],[".rld","application/resource-lists-diff+xml"],[".rs","application/rls-services+xml"],[".rsd","application/rsd+xml"],[".rss","application/rss+xml"],[".rtf","application/rtf"],[".sbml","application/sbml+xml"],[".scq","application/scvp-cv-request"],[".scs","application/scvp-cv-response"],[".spq","application/scvp-vp-request"],[".spp","application/scvp-vp-response"],[".sdp","application/sdp"],[".setpay","application/set-payment-initiation"],[".setreg","application/set-registration-initiation"],[".shf","application/shf+xml"],[".smil","application/smil+xml"],[".smi","application/smil+xml"],[".rq","application/sparql-query"],[".srx","application/sparql-results+xml"],[".gram","application/srgs"],[".grxml","application/srgs+xml"],[".ssml","application/ssml+xml"],[".plb","application/vnd.3gpp.pic-bw-large"],[".psb","application/vnd.3gpp.pic-bw-small"],[".pvb","application/vnd.3gpp.pic-bw-var"],[".tcap","application/vnd.3gpp2.tcap"],[".pwn","application/vnd.3m.post-it-notes"],[".aso","application/vnd.accpac.simply.aso"],[".imp","application/vnd.accpac.simply.imp"],[".acu","application/vnd.acucobol"],[".atc","application/vnd.acucorp"],[".acutc","application/vnd.acucorp"],[".air","application/vnd.adobe.air-application-installer-package+zip"],[".xdp","application/vnd.adobe.xdp+xml"],[".xfdf","application/vnd.adobe.xfdf"],[".azf","application/vnd.airzip.filesecure.azf"],[".azs","application/vnd.airzip.filesecure.azs"],[".azw","application/vnd.amazon.ebook"],[".acc","application/vnd.americandynamics.acc"],[".ami","application/vnd.amiga.ami"],[".apk","application/vnd.android.package-archive"],[".cii","application/vnd.anser-web-certificate-issue-initiation"],[".fti","application/vnd.anser-web-funds-transfer-initiation"],[".atx","application/vnd.antix.game-component"],[".mpkg","application/vnd.apple.installer+xml"],[".swi","application/vnd.arastra.swi"],[".aep","application/vnd.audiograph"],[".mpm","application/vnd.blueice.multipass"],[".bmi","application/vnd.bmi"],[".rep","application/vnd.businessobjects"],[".cdxml","application/vnd.chemdraw+xml"],[".mmd","application/vnd.chipnuts.karaoke-mmd"],[".cdy","application/vnd.cinderella"],[".cla","application/vnd.claymore"],[".c4u","application/vnd.clonk.c4group"],[".c4p","application/vnd.clonk.c4group"],[".c4f","application/vnd.clonk.c4group"],[".c4d","application/vnd.clonk.c4group"],[".c4g","application/vnd.clonk.c4group"],[".csp","application/vnd.commonspace"],[".cdbcmsg","application/vnd.contact.cmsg"],[".cmc","application/vnd.cosmocaller"],[".clkx","application/vnd.crick.clicker"],[".clkk","application/vnd.crick.clicker.keyboard"],[".clkp","application/vnd.crick.clicker.palette"],[".clkt","application/vnd.crick.clicker.template"],[".clkw","application/vnd.crick.clicker.wordbank"],[".wbs","application/vnd.criticaltools.wbs+xml"],[".pml","application/vnd.ctc-posml"],[".ppd","application/vnd.cups-ppd"],[".car","application/vnd.curl.car"],[".pcurl","application/vnd.curl.pcurl"],[".rdz","application/vnd.data-vision.rdz"],[".fe_launch","application/vnd.denovo.fcselayout-link"],[".dna","application/vnd.dna"],[".mlp","application/vnd.dolby.mlp"],[".dpg","application/vnd.dpgraph"],[".dfac","application/vnd.dreamfactory"],[".geo","application/vnd.dynageo"],[".mag","application/vnd.ecowin.chart"],[".nml","application/vnd.enliven"],[".esf","application/vnd.epson.esf"],[".msf","application/vnd.epson.msf"],[".qam","application/vnd.epson.quickanime"],[".slt","application/vnd.epson.salt"],[".ssf","application/vnd.epson.ssf"],[".et3","application/vnd.eszigno3+xml"],[".es3","application/vnd.eszigno3+xml"],[".ez2","application/vnd.ezpix-album"],[".ez3","application/vnd.ezpix-package"],[".fdf","application/vnd.fdf"],[".mseed","application/vnd.fdsn.mseed"],[".dataless","application/vnd.fdsn.seed"],[".seed","application/vnd.fdsn.seed"],[".gph","application/vnd.flographit"],[".ftc","application/vnd.fluxtime.clip"],[".fm","application/vnd.framemaker"],[".frame","application/vnd.framemaker"],[".maker","application/vnd.framemaker"],[".book","application/vnd.framemaker"],[".fnc","application/vnd.frogans.fnc"],[".ltf","application/vnd.frogans.ltf"],[".fsc","application/vnd.fsc.weblaunch"],[".oas","application/vnd.fujitsu.oasys"],[".oa2","application/vnd.fujitsu.oasys2"],[".oa3","application/vnd.fujitsu.oasys3"],[".fg5","application/vnd.fujitsu.oasysgp"],[".bh2","application/vnd.fujitsu.oasysprs"],[".ddd","application/vnd.fujixerox.ddd"],[".xdw","application/vnd.fujixerox.docuworks"],[".xbd","application/vnd.fujixerox.docuworks.binder"],[".fzs","application/vnd.fuzzysheet"],[".txd","application/vnd.genomatix.tuxedo"],[".ggb","application/vnd.geogebra.file"],[".ggt","application/vnd.geogebra.tool"],[".gre","application/vnd.geometry-explorer"],[".gex","application/vnd.geometry-explorer"],[".gmx","application/vnd.gmx"],[".kml","application/vnd.google-earth.kml+xml"],[".kmz","application/vnd.google-earth.kmz"],[".gqf","application/vnd.grafeq"],[".gqs","application/vnd.grafeq"],[".gac","application/vnd.groove-account"],[".ghf","application/vnd.groove-help"],[".gim","application/vnd.groove-identity-message"],[".grv","application/vnd.groove-injector"],[".gtm","application/vnd.groove-tool-message"],[".tpl","application/vnd.groove-tool-template"],[".vcg","application/vnd.groove-vcard"],[".zmm","application/vnd.handheld-entertainment+xml"],[".hbci","application/vnd.hbci"],[".les","application/vnd.hhe.lesson-player"],[".hpgl","application/vnd.hp-hpgl"],[".hpid","application/vnd.hp-hpid"],[".hps","application/vnd.hp-hps"],[".jlt","application/vnd.hp-jlyt"],[".pcl","application/vnd.hp-pcl"],[".pclxl","application/vnd.hp-pclxl"],[".sfd-hdstx","application/vnd.hydrostatix.sof-data"],[".x3d","application/vnd.hzn-3d-crossword"],[".mpy","application/vnd.ibm.minipay"],[".afp","application/vnd.ibm.modcap"],[".listafp","application/vnd.ibm.modcap"],[".list3820","application/vnd.ibm.modcap"],[".irm","application/vnd.ibm.rights-management"],[".sc","application/vnd.ibm.secure-container"],[".icm","application/vnd.iccprofile"],[".icc","application/vnd.iccprofile"],[".igl","application/vnd.igloader"],[".ivp","application/vnd.immervision-ivp"],[".ivu","application/vnd.immervision-ivu"],[".xpw","application/vnd.intercon.formnet"],[".xpx","application/vnd.intercon.formnet"],[".qbo","application/vnd.intu.qbo"],[".qfx","application/vnd.intu.qfx"],[".rcprofile","application/vnd.ipunplugged.rcprofile"],[".irp","application/vnd.irepository.package+xml"],[".xpr","application/vnd.is-xpr"],[".jam","application/vnd.jam"],[".rms","application/vnd.jcp.javame.midlet-rms"],[".jisp","application/vnd.jisp"],[".joda","application/vnd.joost.joda-archive"],[".ktz","application/vnd.kahootz"],[".ktr","application/vnd.kahootz"],[".karbon","application/vnd.kde.karbon"],[".chrt","application/vnd.kde.kchart"],[".kfo","application/vnd.kde.kformula"],[".flw","application/vnd.kde.kivio"],[".kon","application/vnd.kde.kontour"],[".kpt","application/vnd.kde.kpresenter"],[".kpr","application/vnd.kde.kpresenter"],[".ksp","application/vnd.kde.kspread"],[".kwd","application/vnd.kde.kword"],[".kwt","application/vnd.kde.kword"],[".htke","application/vnd.kenameaapp"],[".kia","application/vnd.kidspiration"],[".kne","application/vnd.kinar"],[".knp","application/vnd.kinar"],[".skp","application/vnd.koan"],[".skd","application/vnd.koan"],[".skt","application/vnd.koan"],[".skm","application/vnd.koan"],[".sse","application/vnd.kodak-descriptor"],[".lbd","application/vnd.llamagraphics.life-balance.desktop"],[".lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],[".123","application/vnd.lotus-1-2-3"],[".apr","application/vnd.lotus-approach"],[".pre","application/vnd.lotus-freelance"],[".nsf","application/vnd.lotus-notes"],[".org","application/vnd.lotus-organizer"],[".scm","application/vnd.lotus-screencam"],[".lwp","application/vnd.lotus-wordpro"],[".portpkg","application/vnd.macports.portpkg"],[".mcd","application/vnd.mcd"],[".mc1","application/vnd.medcalcdata"],[".cdkey","application/vnd.mediastation.cdkey"],[".mwf","application/vnd.mfer"],[".mfm","application/vnd.mfmp"],[".flo","application/vnd.micrografx.flo"],[".igx","application/vnd.micrografx.igx"],[".mif","application/vnd.mif"],[".daf","application/vnd.mobius.daf"],[".dis","application/vnd.mobius.dis"],[".mbk","application/vnd.mobius.mbk"],[".mqy","application/vnd.mobius.mqy"],[".msl","application/vnd.mobius.msl"],[".plc","application/vnd.mobius.plc"],[".txf","application/vnd.mobius.txf"],[".mpn","application/vnd.mophun.application"],[".mpc","application/vnd.mophun.certificate"],[".xul","application/vnd.mozilla.xul+xml"],[".cil","application/vnd.ms-artgalry"],[".cab","application/vnd.ms-cab-compressed"],[".xls","application/vnd.ms-excel"],[".xlm","application/vnd.ms-excel"],[".xla","application/vnd.ms-excel"],[".xlc","application/vnd.ms-excel"],[".xlt","application/vnd.ms-excel"],[".xlw","application/vnd.ms-excel"],[".xlam","application/vnd.ms-excel.addin.macroenabled.12"],[".xlsb","application/vnd.ms-excel.sheet.binary.macroenabled.12"],[".xlsm","application/vnd.ms-excel.sheet.macroenabled.12"],[".xltm","application/vnd.ms-excel.template.macroenabled.12"],[".eot","application/vnd.ms-fontobject"],[".chm","application/vnd.ms-htmlhelp"],[".ims","application/vnd.ms-ims"],[".lrm","application/vnd.ms-lrm"],[".cat","application/vnd.ms-pki.seccat"],[".stl","application/vnd.ms-pki.stl"],[".pot","application/vnd.ms-powerpoint"],[".pps","application/vnd.ms-powerpoint"],[".ppt","application/vnd.ms-powerpoint"],[".ppam","application/vnd.ms-powerpoint.addin.macroenabled.12"],[".pptm","application/vnd.ms-powerpoint.presentation.macroenabled.12"],[".sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],[".ppsm","application/vnd.ms-powerpoint.slideshow.macroenabled.12"],[".potm","application/vnd.ms-powerpoint.template.macroenabled.12"],[".mpp","application/vnd.ms-project"],[".mpt","application/vnd.ms-project"],[".docm","application/vnd.ms-word.document.macroenabled.12"],[".dotm","application/vnd.ms-word.template.macroenabled.12"],[".wdb","application/vnd.ms-works"],[".wcm","application/vnd.ms-works"],[".wks","application/vnd.ms-works"],[".wps","application/vnd.ms-works"],[".wpl","application/vnd.ms-wpl"],[".xps","application/vnd.ms-xpsdocument"],[".mseq","application/vnd.mseq"],[".mus","application/vnd.musician"],[".msty","application/vnd.muvee.style"],[".nlu","application/vnd.neurolanguage.nlu"],[".nnd","application/vnd.noblenet-directory"],[".nns","application/vnd.noblenet-sealer"],[".nnw","application/vnd.noblenet-web"],[".ngdat","application/vnd.nokia.n-gage.data"],[".n-gage","application/vnd.nokia.n-gage.symbian.install"],[".rpst","application/vnd.nokia.radio-preset"],[".rpss","application/vnd.nokia.radio-presets"],[".edm","application/vnd.novadigm.edm"],[".edx","application/vnd.novadigm.edx"],[".ext","application/vnd.novadigm.ext"],[".odc","application/vnd.oasis.opendocument.chart"],[".otc","application/vnd.oasis.opendocument.chart-template"],[".odb","application/vnd.oasis.opendocument.database"],[".odf","application/vnd.oasis.opendocument.formula"],[".odft","application/vnd.oasis.opendocument.formula-template"],[".odg","application/vnd.oasis.opendocument.graphics"],[".otg","application/vnd.oasis.opendocument.graphics-template"],[".odi","application/vnd.oasis.opendocument.image"],[".oti","application/vnd.oasis.opendocument.image-template"],[".odp","application/vnd.oasis.opendocument.presentation"],[".ods","application/vnd.oasis.opendocument.spreadsheet"],[".ots","application/vnd.oasis.opendocument.spreadsheet-template"],[".odt","application/vnd.oasis.opendocument.text"],[".otm","application/vnd.oasis.opendocument.text-master"],[".ott","application/vnd.oasis.opendocument.text-template"],[".oth","application/vnd.oasis.opendocument.text-web"],[".xo","application/vnd.olpc-sugar"],[".dd2","application/vnd.oma.dd2+xml"],[".oxt","application/vnd.openofficeorg.extension"],[".pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],[".sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],[".ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],[".potx","application/vnd.openxmlformats-officedocument.presentationml.template"],[".xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],[".xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],[".docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],[".dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],[".dp","application/vnd.osgi.dp"],[".oprc","application/vnd.palm"],[".pqa","application/vnd.palm"],[".pdb","application/vnd.palm"],[".str","application/vnd.pg.format"],[".ei6","application/vnd.pg.osasli"],[".efif","application/vnd.picsel"],[".plf","application/vnd.pocketlearn"],[".pbd","application/vnd.powerbuilder6"],[".box","application/vnd.previewsystems.box"],[".mgz","application/vnd.proteus.magazine"],[".qps","application/vnd.publishare-delta-tree"],[".ptid","application/vnd.pvi.ptid1"],[".qxd","application/vnd.quark.quarkxpress"],[".qxt","application/vnd.quark.quarkxpress"],[".qwd","application/vnd.quark.quarkxpress"],[".qwt","application/vnd.quark.quarkxpress"],[".qxl","application/vnd.quark.quarkxpress"],[".qxb","application/vnd.quark.quarkxpress"],[".mxl","application/vnd.recordare.musicxml"],[".musicxml","application/vnd.recordare.musicxml+xml"],[".cod","application/vnd.rim.cod"],[".rm","application/vnd.rn-realmedia"],[".link66","application/vnd.route66.link66+xml"],[".see","application/vnd.seemail"],[".sema","application/vnd.sema"],[".semd","application/vnd.semd"],[".semf","application/vnd.semf"],[".ifm","application/vnd.shana.informed.formdata"],[".itp","application/vnd.shana.informed.formtemplate"],[".iif","application/vnd.shana.informed.interchange"],[".ipk","application/vnd.shana.informed.package"],[".twds","application/vnd.simtech-mindmapper"],[".twd","application/vnd.simtech-mindmapper"],[".mmf","application/vnd.smaf"],[".teacher","application/vnd.smart.teacher"],[".sdkm","application/vnd.solent.sdkm+xml"],[".sdkd","application/vnd.solent.sdkm+xml"],[".dxp","application/vnd.spotfire.dxp"],[".sfs","application/vnd.spotfire.sfs"],[".sdc","application/vnd.stardivision.calc"],[".sda","application/vnd.stardivision.draw"],[".sdd","application/vnd.stardivision.impress"],[".smf","application/vnd.stardivision.math"],[".sdw","application/vnd.stardivision.writer"],[".vor","application/vnd.stardivision.writer"],[".sgl","application/vnd.stardivision.writer-global"],[".sxc","application/vnd.sun.xml.calc"],[".stc","application/vnd.sun.xml.calc.template"],[".sxd","application/vnd.sun.xml.draw"],[".std","application/vnd.sun.xml.draw.template"],[".sxi","application/vnd.sun.xml.impress"],[".sti","application/vnd.sun.xml.impress.template"],[".sxm","application/vnd.sun.xml.math"],[".sxw","application/vnd.sun.xml.writer"],[".sxg","application/vnd.sun.xml.writer.global"],[".stw","application/vnd.sun.xml.writer.template"],[".susp","application/vnd.sus-calendar"],[".sus","application/vnd.sus-calendar"],[".svd","application/vnd.svd"],[".sis","application/vnd.symbian.install"],[".sisx","application/vnd.symbian.install"],[".xsm","application/vnd.syncml+xml"],[".bdm","application/vnd.syncml.dm+wbxml"],[".xdm","application/vnd.syncml.dm+xml"],[".tao","application/vnd.tao.intent-module-archive"],[".tmo","application/vnd.tmobile-livetv"],[".tpt","application/vnd.trid.tpt"],[".mxs","application/vnd.triscape.mxs"],[".tra","application/vnd.trueapp"],[".ufdl","application/vnd.ufdl"],[".ufd","application/vnd.ufdl"],[".utz","application/vnd.uiq.theme"],[".umj","application/vnd.umajin"],[".unityweb","application/vnd.unity"],[".uoml","application/vnd.uoml+xml"],[".vcx","application/vnd.vcx"],[".vsw","application/vnd.visio"],[".vss","application/vnd.visio"],[".vst","application/vnd.visio"],[".vsd","application/vnd.visio"],[".vis","application/vnd.visionary"],[".vsf","application/vnd.vsf"],[".wbxml","application/vnd.wap.wbxml"],[".wmlc","application/vnd.wap.wmlc"],[".wmlsc","application/vnd.wap.wmlscriptc"],[".wtb","application/vnd.webturbo"],[".wpd","application/vnd.wordperfect"],[".wqd","application/vnd.wqd"],[".stf","application/vnd.wt.stf"],[".xar","application/vnd.xara"],[".xfdl","application/vnd.xfdl"],[".hvd","application/vnd.yamaha.hv-dic"],[".hvs","application/vnd.yamaha.hv-script"],[".hvp","application/vnd.yamaha.hv-voice"],[".osf","application/vnd.yamaha.openscoreformat"],[".osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],[".saf","application/vnd.yamaha.smaf-audio"],[".spf","application/vnd.yamaha.smaf-phrase"],[".cmp","application/vnd.yellowriver-custom-menu"],[".zir","application/vnd.zul"],[".zirz","application/vnd.zul"],[".zaz","application/vnd.zzazz.deck+xml"],[".vxml","application/voicexml+xml"],[".hlp","application/winhlp"],[".wsdl","application/wsdl+xml"],[".wspolicy","application/wspolicy+xml"],[".abw","application/x-abiword"],[".ace","application/x-ace-compressed"],[".aab","application/x-authorware-bin"],[".x32","application/x-authorware-bin"],[".u32","application/x-authorware-bin"],[".vox","application/x-authorware-bin"],[".aam","application/x-authorware-map"],[".aas","application/x-authorware-seg"],[".bcpio","application/x-bcpio"],[".torrent","application/x-bittorrent"],[".bz","application/x-bzip"],[".bz2","application/x-bzip2"],[".boz","application/x-bzip2"],[".vcd","application/x-cdlink"],[".chat","application/x-chat"],[".pgn","application/x-chess-pgn"],[".cpio","application/x-cpio"],[".csh","application/x-csh"],[".deb","application/x-debian-package"],[".udeb","application/x-debian-package"],[".swa","application/x-director"],[".w3d","application/x-director"],[".fgd","application/x-director"],[".cxt","application/x-director"],[".cct","application/x-director"],[".cst","application/x-director"],[".dxr","application/x-director"],[".dcr","application/x-director"],[".dir","application/x-director"],[".wad","application/x-doom"],[".ncx","application/x-dtbncx+xml"],[".dtb","application/x-dtbook+xml"],[".res","application/x-dtbresource+xml"],[".dvi","application/x-dvi"],[".bdf","application/x-font-bdf"],[".gsf","application/x-font-ghostscript"],[".psf","application/x-font-linux-psf"],[".otf","application/x-font-otf"],[".pcf","application/x-font-pcf"],[".snf","application/x-font-snf"],[".ttf","application/x-font-ttf"],[".ttc","application/x-font-ttf"],[".woff","application/font-woff"],[".pfa","application/x-font-type1"],[".pfb","application/x-font-type1"],[".pfm","application/x-font-type1"],[".afm","application/x-font-type1"],[".spl","application/x-futuresplash"],[".gnumeric","application/x-gnumeric"],[".gtar","application/x-gtar"],[".hdf","application/x-hdf"],[".jnlp","application/x-java-jnlp-file"],[".latex","application/x-latex"],[".prc","application/x-mobipocket-ebook"],[".mobi","application/x-mobipocket-ebook"],[".application","application/x-ms-application"],[".wmd","application/x-ms-wmd"],[".wmz","application/x-ms-wmz"],[".xbap","application/x-ms-xbap"],[".mdb","application/x-msaccess"],[".obd","application/x-msbinder"],[".crd","application/x-mscardfile"],[".clp","application/x-msclip"],[".msi","application/x-msdownload"],[".bat","application/x-msdownload"],[".com","application/x-msdownload"],[".dll","application/x-msdownload"],[".exe","application/x-msdownload"],[".mvb","application/x-msmediaview"],[".m13","application/x-msmediaview"],[".m14","application/x-msmediaview"],[".wmf","application/x-msmetafile"],[".mny","application/x-msmoney"],[".pub","application/x-mspublisher"],[".scd","application/x-msschedule"],[".trm","application/x-msterminal"],[".wri","application/x-mswrite"],[".nc","application/x-netcdf"],[".cdf","application/x-netcdf"],[".p12","application/x-pkcs12"],[".pfx","application/x-pkcs12"],[".p7b","application/x-pkcs7-certificates"],[".spc","application/x-pkcs7-certificates"],[".p7r","application/x-pkcs7-certreqresp"],[".rar","application/x-rar-compressed"],[".sh","application/x-sh"],[".shar","application/x-shar"],[".swf","application/x-shockwave-flash"],[".xap","application/x-silverlight-app"],[".sit","application/x-stuffit"],[".sitx","application/x-stuffitx"],[".sv4cpio","application/x-sv4cpio"],[".sv4crc","application/x-sv4crc"],[".tar","application/x-tar"],[".tcl","application/x-tcl"],[".tex","application/x-tex"],[".tfm","application/x-tex-tfm"],[".texinfo","application/x-texinfo"],[".texi","application/x-texinfo"],[".ustar","application/x-ustar"],[".src","application/x-wais-source"],[".der","application/x-x509-ca-cert"],[".crt","application/x-x509-ca-cert"],[".fig","application/x-xfig"],[".xpi","application/x-xpinstall"],[".xenc","application/xenc+xml"],[".xhtml","application/xhtml+xml"],[".xht","application/xhtml+xml"],[".xsl","application/xml"],[".xml","application/xml"],[".dtd","application/xml-dtd"],[".xop","application/xop+xml"],[".xslt","application/xslt+xml"],[".xspf","application/xspf+xml"],[".xvm","application/xv+xml"],[".xvml","application/xv+xml"],[".xhvml","application/xv+xml"],[".mxml","application/xv+xml"],[".zip","application/zip"],[".adp","audio/adpcm"],[".au","audio/basic"],[".snd","audio/basic"],[".mid","audio/midi"],[".midi","audio/midi"],[".kar","audio/midi"],[".rmi","audio/midi"],[".mp4a","audio/mp4"],[".m4a","audio/mp4a-latm"],[".m4p","audio/mp4a-latm"],[".m3a","audio/mpeg"],[".m2a","audio/mpeg"],[".mp3","audio/mpeg"],[".mp2a","audio/mpeg"],[".mp2","audio/mpeg"],[".mpga","audio/mpeg"],[".spx","audio/ogg"],[".ogg","audio/ogg"],[".oga","audio/ogg"],[".eol","audio/vnd.digital-winds"],[".dts","audio/vnd.dts"],[".dtshd","audio/vnd.dts.hd"],[".lvp","audio/vnd.lucent.voice"],[".pya","audio/vnd.ms-playready.media.pya"],[".ecelp4800","audio/vnd.nuera.ecelp4800"],[".ecelp7470","audio/vnd.nuera.ecelp7470"],[".ecelp9600","audio/vnd.nuera.ecelp9600"],[".aac","audio/x-aac"],[".aif","audio/x-aiff"],[".aiff","audio/x-aiff"],[".aif","audio/x-aiff"],[".m3u","audio/x-mpegurl"],[".wax","audio/x-ms-wax"],[".wma","audio/x-ms-wma"],[".ram","audio/x-pn-realaudio"],[".ra","audio/x-pn-realaudio"],[".rmp","audio/x-pn-realaudio-plugin"],[".wav","audio/x-wav"],[".cdx","chemical/x-cdx"],[".cif","chemical/x-cif"],[".cmdf","chemical/x-cmdf"],[".cml","chemical/x-cml"],[".csml","chemical/x-csml"],[".xyz","chemical/x-xyz"],[".bmp","image/bmp"],[".cgm","image/cgm"],[".g3","image/g3fax"],[".gif","image/gif"],[".ief","image/ief"],[".jp2","image/jp2"],[".jpeg","image/jpeg"],[".jpg","image/jpeg"],[".jpe","image/jpeg"],[".pict","image/pict"],[".pic","image/pict"],[".pct","image/pict"],[".png","image/png"],[".btif","image/prs.btif"],[".svg","image/svg+xml"],[".svgz","image/svg+xml"],[".tiff","image/tiff"],[".tif","image/tiff"],[".psd","image/vnd.adobe.photoshop"],[".djvu","image/vnd.djvu"],[".djv","image/vnd.djvu"],[".dwg","image/vnd.dwg"],[".dxf","image/vnd.dxf"],[".fbs","image/vnd.fastbidsheet"],[".fpx","image/vnd.fpx"],[".fst","image/vnd.fst"],[".mmr","image/vnd.fujixerox.edmics-mmr"],[".rlc","image/vnd.fujixerox.edmics-rlc"],[".mdi","image/vnd.ms-modi"],[".npx","image/vnd.net-fpx"],[".wbmp","image/vnd.wap.wbmp"],[".xif","image/vnd.xiff"],[".ras","image/x-cmu-raster"],[".cmx","image/x-cmx"],[".fh","image/x-freehand"],[".fhc","image/x-freehand"],[".fh4","image/x-freehand"],[".fh5","image/x-freehand"],[".fh7","image/x-freehand"],[".ico","image/x-icon"],[".pntg","image/x-macpaint"],[".pnt","image/x-macpaint"],[".mac","image/x-macpaint"],[".pcx","image/x-pcx"],[".pic","image/x-pict"],[".pct","image/x-pict"],[".pnm","image/x-portable-anymap"],[".pbm","image/x-portable-bitmap"],[".pgm","image/x-portable-graymap"],[".ppm","image/x-portable-pixmap"],[".qtif","image/x-quicktime"],[".qti","image/x-quicktime"],[".rgb","image/x-rgb"],[".xbm","image/x-xbitmap"],[".xpm","image/x-xpixmap"],[".xwd","image/x-xwindowdump"],[".eml","message/rfc822"],[".mime","message/rfc822"],[".igs","model/iges"],[".iges","model/iges"],[".msh","model/mesh"],[".mesh","model/mesh"],[".silo","model/mesh"],[".dwf","model/vnd.dwf"],[".gdl","model/vnd.gdl"],[".gtw","model/vnd.gtw"],[".mts","model/vnd.mts"],[".vtu","model/vnd.vtu"],[".wrl","model/vrml"],[".vrml","model/vrml"],[".ics","text/calendar"],[".ifb","text/calendar"],[".css","text/css"],[".csv","text/csv"],[".html","text/html"],[".htm","text/html"],[".txt","text/plain"],[".text","text/plain"],[".conf","text/plain"],[".def","text/plain"],[".list","text/plain"],[".log","text/plain"],[".in","text/plain"],[".dsc","text/prs.lines.tag"],[".rtx","text/richtext"],[".sgml","text/sgml"],[".sgm","text/sgml"],[".tsv","text/tab-separated-values"],[".t","text/troff"],[".tr","text/troff"],[".roff","text/troff"],[".man","text/troff"],[".me","text/troff"],[".ms","text/troff"],[".uri","text/uri-list"],[".uris","text/uri-list"],[".urls","text/uri-list"],[".curl","text/vnd.curl"],[".dcurl","text/vnd.curl.dcurl"],[".scurl","text/vnd.curl.scurl"],[".mcurl","text/vnd.curl.mcurl"],[".fly","text/vnd.fly"],[".flx","text/vnd.fmi.flexstor"],[".gv","text/vnd.graphviz"],[".3dml","text/vnd.in3d.3dml"],[".spot","text/vnd.in3d.spot"],[".jad","text/vnd.sun.j2me.app-descriptor"],[".wml","text/vnd.wap.wml"],[".wmls","text/vnd.wap.wmlscript"],[".s","text/x-asm"],[".asm","text/x-asm"],[".c","text/x-c"],[".cc","text/x-c"],[".cxx","text/x-c"],[".cpp","text/x-c"],[".h","text/x-c"],[".hh","text/x-c"],[".dic","text/x-c"],[".f","text/x-fortran"],[".for","text/x-fortran"],[".f77","text/x-fortran"],[".f90","text/x-fortran"],[".p","text/x-pascal"],[".pas","text/x-pascal"],[".java","text/x-java-source"],[".etx","text/x-setext"],[".uu","text/x-uuencode"],[".vcs","text/x-vcalendar"],[".vcf","text/x-vcard"],[".3gp","video/3gpp"],[".3g2","video/3gpp2"],[".h261","video/h261"],[".h263","video/h263"],[".h264","video/h264"],[".jpgv","video/jpeg"],[".jpm","video/jpm"],[".jpgm","video/jpm"],[".mj2","video/mj2"],[".mjp2","video/mj2"],[".mp4","video/mp4"],[".mp4v","video/mp4"],[".mpg4","video/mp4"],[".m4v","video/mp4"],[".mkv","video/x-matroska"],[".mk3d","video/x-matroska"],[".mka","video/x-matroska"],[".mks","video/x-matroska"],[".webm","video/webm"],[".mpeg","video/mpeg"],[".mpg","video/mpeg"],[".mpe","video/mpeg"],[".m1v","video/mpeg"],[".m2v","video/mpeg"],[".ogv","video/ogg"],[".qt","video/quicktime"],[".mov","video/quicktime"],[".fvt","video/vnd.fvt"],[".mxu","video/vnd.mpegurl"],[".m4u","video/vnd.mpegurl"],[".pyv","video/vnd.ms-playready.media.pyv"],[".viv","video/vnd.vivo"],[".dv","video/x-dv"],[".dif","video/x-dv"],[".f4v","video/x-f4v"],[".fli","video/x-fli"],[".flv","video/x-flv"],[".m4v","video/x-m4v"],[".asf","video/x-ms-asf"],[".asx","video/x-ms-asf"],[".wm","video/x-ms-wm"],[".wmv","video/x-ms-wmv"],[".wmx","video/x-ms-wmx"],[".wvx","video/x-ms-wvx"],[".avi","video/x-msvideo"],[".movie","video/x-sgi-movie"],[".ice","x-conference/x-cooltalk"],[".indd","application/x-indesign"],[".dat","application/octet-stream"],[".gz","application/x-gzip"],[".tgz","application/x-tar"],[".tar","application/x-tar"],[".epub","application/epub+zip"],[".mobi","application/x-mobipocket-ebook"],["README","text/plain"],["LICENSE","text/plain"],["COPYING","text/plain"],["TODO","text/plain"],["ABOUT","text/plain"],["AUTHORS","text/plain"],["CONTRIBUTORS","text/plain"],["manifest","text/cache-manifest"],[".manifest","text/cache-manifest"],[".mf","text/cache-manifest"],[".appcache","text/cache-manifest"]]),kt=(e,t)=>(bt.set(e,t),bt);function St(e){const t=(""+e).trim().toLowerCase();let n=t.lastIndexOf(".");const i=~n?t.substring(++n):t;return bt.get(`.${i}`)||bt.get(i)}function Ct(){if("undefined"!=typeof window){const[e]=performance.getEntriesByType("navigation"),[t={},n={}]=performance.getEntriesByType("paint"),{startTime:i}=t,{startTime:a}=n,{domainLookupEnd:r,domainLookupStart:o,connectEnd:s,connectStart:c,secureConnectionStart:p,loadEventStart:l,domInteractive:d,domContentLoadedEventEnd:u,duration:h,responseStart:m,requestStart:f,responseEnd:g,fetchStart:v,transferSize:w,encodedBodySize:y,redirectEnd:x,redirectStart:b,redirectCount:k}=e;return{dnsSearch:r-o,tcpConnect:s-c,sslConnect:s-p,request:m-f,response:g-m,parseDomTree:d-g,resource:l-u,domReady:u-v,interactive:d-v,complete:l-v,httpHead:w-y,redirect:k,redirectTime:x-b,duration:h,fp:i,fcp:a}}}const At=({url:e="",type:t="application/json; charset=UTF-8",payload:n={}})=>{const i=e||$e();return"undefined"!=typeof navigator?(({url:e="",type:t="application/json; charset=UTF-8",payload:n={}})=>{const i=e||$e();if(navigator.sendBeacon&&i){const e=new Blob([JSON.stringify(n)],{type:t});return navigator.sendBeacon(i,e)}})({url:i,type:t,payload:n}):(({url:e="",payload:t={}})=>{const n=e||$e();if("undefined"!=typeof document&&n){const e=new Image;e.width=1,e.height=1,e.src=`${n}?${ht(t)}`}})({url:i,payload:n})};function Et(e={}){if("undefined"!=typeof window){const{width:t,height:n}=Ke();return Object.assign({},{id:Ne(),path:window.location.href,time:Date.now(),referrer:document.referrer,ip:window.returnCitySN||{cid:"",cip:"",cname:""},userId:_e("chaxus_prod"),ratio:`${t}x${n}`,userAgent:window.navigator.userAgent},e)}return{}}const Ot=(e={})=>{if("undefined"!=typeof window){const{requestHook:t=A,responseHook:n=A,errorHook:i=A}=e;mt(window,"fetch",(e=>(a,r)=>(t(a,r),e.apply(window,[a,r]).then((e=>(n(a,r,e),e))).catch((e=>{throw i(a,e),e})))))}},Tt=(e={})=>{if("undefined"!=typeof window){const t=XMLHttpRequest.prototype,{requestHook:n=A,responseHook:i=A,errorHook:a=A}=e;mt(t,"open",(e=>function(...t){n(t),e.apply(this,t)}));mt(t,"send",(e=>function(...t){this.addEventListener("loadend",(function(){i(this)})),this.addEventListener("error",(function(){a(this)})),e.apply(this,t)}))}},Lt=(e,t=300)=>{let n;return function(){const i=this,a=arguments;n||(n=setTimeout((()=>{n=null,e.apply(i,a)}),t))}};const Ut=new Map([[100,"Continue"],[101,"Switching Protocols"],[102,"Processing"],[103,"Early Hints"],[200,"OK"],[201,"Created"],[202,"Accepted"],[203,"Non-Authoritative Information"],[204,"No Content"],[205,"Reset Content"],[206,"Partial Content"],[207,"Multi-Status"],[208,"Already Reported"],[226,"IM Used"],[300,"Multiple Choices"],[301,"Moved Permanently"],[302,"Found"],[303,"See Other"],[304,"Not Modified"],[305,"Use Proxy"],[307,"Temporary Redirect"],[308,"Permanent Redirect"],[400,"Bad Request"],[401,"Unauthorized"],[402,"Payment Required"],[403,"Forbidden"],[404,"Not Found"],[405,"Method Not Allowed"],[406,"Not Acceptable"],[407,"Proxy Authentication Required"],[408,"Request Timeout"],[409,"Conflict"],[410,"Gone"],[411,"Length Required"],[412,"Precondition Failed"],[413,"Payload Too Large"],[414,"URI Too Long"],[415,"Unsupported Media Type"],[416,"Range Not Satisfiable"],[417,"Expectation Failed"],[418,"I'm a Teapot"],[421,"Misdirected Request"],[422,"Unprocessable Entity"],[423,"Locked"],[424,"Failed Dependency"],[425,"Too Early"],[426,"Upgrade Required"],[428,"Precondition Required"],[429,"Too Many Requests"],[431,"Request Header Fields Too Large"],[451,"Unavailable For Legal Reasons"],[500,"Internal Server Error"],[501,"Not Implemented"],[502,"Bad Gateway"],[503,"Service Unavailable"],[504,"Gateway Timeout"],[505,"HTTP Version Not Supported"],[506,"Variant Also Negotiates"],[507,"Insufficient Storage"],[508,"Loop Detected"],[509,"Bandwidth Limit Exceeded"],[510,"Not Extended"],[511,"Network Authentication Required"]]),Mt={message:Ut,code:function(e){const t=new Map;for(const[n,i]of e)t.set(i.toLowerCase(),n);return t}(Ut),codes:function(e){const t=[];for(const[n,i]of e)t.push(n);return t}(Ut),redirect:{300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0},empty:{204:!0,205:!0,304:!0},retry:{502:!0,503:!0,504:!0}};function Bt(e){if(!Mt.message.has(e))throw new Error("invalid status code: "+e);return Mt.message.get(e)}const Ft=class{constructor(){v(this,"getDecimalLength",(e=>{const[t,n]=e.toString().split(".");return n?n.length:0})),v(this,"amend",((e,t=15)=>parseFloat(Number(e).toPrecision(t)))),v(this,"power",((e,t)=>Math.pow(10,Math.max(this.getDecimalLength(e),this.getDecimalLength(t)))))}};v(Ft,"handleMethod",((e,t)=>{const n=new Ft,{power:i,amend:a}=n,r=i(e,t),o=a(e*r),s=a(t*r);return e=>{switch(e){case"+":return(o+s)/r;case"-":return(o-s)/r;case"*":return o*s/(r*r);case"/":return o/s}}})),v(Ft,"add",((e,t)=>Ft.handleMethod(e,t)("+"))),v(Ft,"divide",((e,t)=>Ft.handleMethod(e,t)("/"))),v(Ft,"multiply",((e,t)=>Ft.handleMethod(e,t)("*"))),v(Ft,"subtract",((e,t)=>Ft.handleMethod(e,t)("-")));let Rt=Ft;const Pt="NEW_LISTENER";const Ht=(e,n="utf-8")=>{const i=new AbortController,a=i.signal,r=new Promise(((r,o)=>{t.readFile(e,{encoding:n,signal:a},((e,t)=>{e?(i.abort(),o({success:!1,_identification:!1,data:e})):r({success:!0,_identification:!0,data:t})}))}));return r.abort=i.abort,r},jt=!("NO_COLOR"in a.env||a.argv.includes("--no-color"))&&("FORCE_COLOR"in a.env||a.argv.includes("--color")||"win32"===a.platform||i.isatty(1)&&"dumb"!==a.env.TERM||"CI"in a.env),Dt=(e,t,n=e)=>i=>{const a=""+i,r=a.indexOf(t,e.length);return~r?e+zt(a,t,n,r)+t:e+a+t},zt=(e,t,n,i)=>{const a=e.substring(0,i)+n,r=e.substring(i+t.length),o=r.indexOf(t);return~o?a+zt(r,t,n,o):a+r},It=Object.assign({},((e=jt)=>{const t={};return Object.keys(Xe).forEach((n=>t[n]=e?Dt(Xe[n][0],Xe[n][1]):String)),t})(),((e=jt)=>({isColorSupported:e,reset:e?e=>`${Xe.reset[0]}${e}${Xe.reset[1]}`:String,bold:e?Dt(Xe.bold[0],Xe.bold[1],`${Xe.bold[1]}${Xe.bold[0]}`):String,dim:e?Dt(Xe.dim[0],Xe.dim[1],`${Xe.dim[1]}${Xe.dim[0]}`):String}))()),Nt=()=>{};function qt(e,t,n){return t(e.req,e.res,Nt),n()}function _t(e,t,n){return new Promise(((i,a)=>{t(e.req,e.res,(e=>{e?a(e):i(n())}))}))}function $t(){const e=c.networkInterfaces();for(const t in e){const n=e[t];if(n)for(let e=0;e<n.length;e++){const t=n[e];if("IPv4"===t.family&&"127.0.0.1"!==t.address&&!t.internal)return t.address}}}function Kt(e){console.error(e.stack||e.toString())}const Vt=h.promisify(t.stat),Wt=h.promisify(t.readdir);function Gt(e,t){const n=m.Buffer.byteLength(e);let i=null;if(n>65535?(i=m.Buffer.alloc(10+n),i[1]=127,i.writeUInt32BE(n,6),i.write(e,10)):n>125?(i=m.Buffer.alloc(4+n),i[1]=126,i.writeUInt16BE(n,2),i.write(e,4)):(i=m.Buffer.alloc(2+n),i[1]=n,i.write(e,2)),t){const e=t.opcode;e&&e<15&&e>=0&&(i[0]=128|e)}else i[0]=129;return i}function Yt(e,t){if(!t)return e;const n=m.Buffer.from(e);for(let i=0;i<n.length;++i)n[i]=n[i]^t[i%4];return n}function Xt(){const e={};this.on=(t,n)=>{e[t]?e[t].push(n):e[t]=[n]},this.off=(t,n)=>{const i=e[t],a=i.indexOf(n);i&&-1!==a&&i.splice(a,1)},this.emit=(t,n)=>{e[t]&&e[t].forEach((e=>e(n)))}}!function(e){var t=function(e){var t,n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function p(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(F){p=function(e,t,n){return e[t]=n}}function l(e,t,n,i){var r=t&&t.prototype instanceof v?t:v,o=Object.create(r.prototype),s=new U(i||[]);return a(o,"_invoke",{value:E(e,n,s)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(F){return{type:"throw",arg:F}}}e.wrap=l;var u="suspendedStart",h="suspendedYield",m="executing",f="completed",g={};function v(){}function w(){}function y(){}var x={};p(x,o,(function(){return this}));var b=Object.getPrototypeOf,k=b&&b(b(M([])));k&&k!==n&&i.call(k,o)&&(x=k);var S=y.prototype=v.prototype=Object.create(x);function C(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function n(a,r,o,s){var c=d(e[a],e,r);if("throw"!==c.type){var p=c.arg,l=p.value;return l&&"object"==typeof l&&i.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(l).then((function(e){p.value=e,o(p)}),(function(e){return n("throw",e,o,s)}))}s(c.arg)}var r;a(this,"_invoke",{value:function(e,i){function a(){return new t((function(t,a){n(e,i,t,a)}))}return r=r?r.then(a,a):a()}})}function E(e,t,n){var i=u;return function(a,r){if(i===m)throw new Error("Generator is already running");if(i===f){if("throw"===a)throw r;return B()}for(n.method=a,n.arg=r;;){var o=n.delegate;if(o){var s=O(o,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===u)throw i=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=m;var c=d(e,t,n);if("normal"===c.type){if(i=n.done?f:h,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=f,n.method="throw",n.arg=c.arg)}}}function O(e,n){var i=n.method,a=e.iterator[i];if(a===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),g;var r=d(a,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function U(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function M(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,r=function n(){for(;++a<e.length;)if(i.call(e,a))return n.value=e[a],n.done=!1,n;return n.value=t,n.done=!0,n};return r.next=r}}return{next:B}}function B(){return{value:t,done:!0}}return w.prototype=y,a(S,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:w,configurable:!0}),w.displayName=p(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,p(e,c,"GeneratorFunction")),e.prototype=Object.create(S),e},e.awrap=function(e){return{__await:e}},C(A.prototype),p(A.prototype,s,(function(){return this})),e.AsyncIterator=A,e.async=function(t,n,i,a,r){void 0===r&&(r=Promise);var o=new A(l(t,n,i,a),r);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},C(S),p(S,c,"Generator"),p(S,o,(function(){return this})),p(S,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},e.values=M,U.prototype={constructor:U,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function a(i,a){return s.type="throw",s.arg=e,n.next=i,a&&(n.method="next",n.arg=t),!!a}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],s=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var c=i.call(o,"catchLoc"),p=i.call(o,"finallyLoc");if(c&&p){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!p)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&i.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var r=a;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),L(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var a=i.arg;L(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:M(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(n){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}({exports:{}});var Jt=(e,t)=>`${e}-${t}-${Math.random().toString(16).slice(3,8)}`;const Qt=Jt;let Zt=0;var en=({id:e,action:t,payload:n={}})=>{let i=e;return void 0===i&&(i=Qt("Job",Zt),Zt+=1),{id:i,action:t,payload:n}},tn={};let nn=!1;tn.logging=nn,tn.setLogging=e=>{nn=e},tn.log=(...e)=>nn?console.log.apply(void 0,e):null;const an=en,{log:rn}=tn,on=Jt;let sn=0;const cn=function(){return"undefined"!=typeof window&&"object"==typeof window.process&&"renderer"===window.process.type||(!("undefined"==typeof process||"object"!=typeof process.versions||!process.versions.electron)||"object"==typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Electron")>=0)};const pn="browser"===(e=>{const t={};return"undefined"!=typeof WorkerGlobalScope?t.type="webworker":cn()?t.type="electron":"object"==typeof document?t.type="browser":"object"==typeof process&&(t.type="node"),void 0===e?t:t[e]})("type")?e=>new URL(e,window.location.href).href:e=>e;var ln={TESSERACT_ONLY:0,LSTM_ONLY:1,TESSERACT_LSTM_COMBINED:2,DEFAULT:3};var dn={...{workerBlobURL:!0,logger:()=>{}},workerPath:`https://cdn.jsdelivr.net/npm/tesseract.js@v${"5.1.0"}/dist/worker.min.js`};const un=e=>new Promise(((t,n)=>{const i=new FileReader;i.onload=()=>{t(i.result)},i.onerror=({target:{error:{code:e}}})=>{n(Error(`File could not be read! Code=${e}`))},i.readAsArrayBuffer(e)})),hn=async e=>{let t=e;if(void 0===e)return"undefined";if("string"==typeof e)if(/data:image\/([a-zA-Z]*);base64,([^"]*)/.test(e))t=atob(e.split(",")[1]).split("").map((e=>e.charCodeAt(0)));else{const n=await fetch(e);t=await n.arrayBuffer()}else if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)"IMG"===e.tagName&&(t=await hn(e.src)),"VIDEO"===e.tagName&&(t=await hn(e.poster)),"CANVAS"===e.tagName&&await new Promise((n=>{e.toBlob((async e=>{t=await un(e),n()}))}));else if("undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas){const n=await e.convertToBlob();t=await un(n)}else(e instanceof File||e instanceof Blob)&&(t=await un(e));return new Uint8Array(t)};var mn={defaultOptions:dn,spawnWorker:({workerPath:e,workerBlobURL:t})=>{let n;if(Blob&&URL&&t){const t=new Blob([`importScripts("${e}");`],{type:"application/javascript"});n=new Worker(URL.createObjectURL(t))}else n=new Worker(e);return n},terminateWorker:e=>{e.terminate()},onMessage:(e,t)=>{e.onmessage=({data:e})=>{t(e)}},send:async(e,t)=>{e.postMessage(t)},loadImage:hn};const fn=e=>{const t={...e};return["corePath","workerPath","langPath"].forEach((n=>{e[n]&&(t[n]=pn(t[n]))})),t},gn=e=>{const t=[],n=[],i=[],a=[],r=[];return e.blocks&&e.blocks.forEach((o=>{o.paragraphs.forEach((t=>{t.lines.forEach((n=>{n.words.forEach((i=>{i.symbols.forEach((a=>{r.push({...a,page:e,block:o,paragraph:t,line:n,word:i})})),a.push({...i,page:e,block:o,paragraph:t,line:n})})),i.push({...n,page:e,block:o,paragraph:t})})),n.push({...t,page:e,block:o})})),t.push({...o,page:e})})),{...e,blocks:t,paragraphs:n,lines:i,words:a,symbols:r}},vn=en,{log:wn}=tn,yn=Jt,xn=ln,{defaultOptions:bn,spawnWorker:kn,terminateWorker:Sn,onMessage:Cn,loadImage:An,send:En}=mn;let On=0;var Tn=async(e="eng",t=xn.LSTM_ONLY,n={},i={})=>{const a=yn("Worker",On),{logger:r,errorHandler:o,...s}=fn({...bn,...n}),c={},p={},l="string"==typeof e?e.split("+"):e;let d=t,u=i;const h=[xn.DEFAULT,xn.LSTM_ONLY].includes(t)&&!s.legacyCore;let m,f;const g=new Promise(((e,t)=>{f=e,m=t}));let v=kn(s);v.onerror=e=>{m(e.message)},On+=1;const w=(e,t)=>{c[e]=t},y=(e,t)=>{p[e]=t},x=({id:e,action:t,payload:n})=>new Promise(((i,r)=>{wn(`[${a}]: Start ${e}, action=${t}`);const o=`${t}-${e}`;w(o,i),y(o,r),En(v,{workerId:a,jobId:e,action:t,payload:n})})),b=(e,t)=>x(vn({id:t,action:"loadLanguage",payload:{langs:e,options:{langPath:s.langPath,dataPath:s.dataPath,cachePath:s.cachePath,cacheMethod:s.cacheMethod,gzip:s.gzip,lstmOnly:[xn.LSTM_ONLY,xn.TESSERACT_LSTM_COMBINED].includes(d)&&!s.legacyLang}}})),k=(e,t,n,i)=>x(vn({id:i,action:"initialize",payload:{langs:e,oem:t,config:n}}));Cn(v,(({workerId:e,jobId:t,status:n,action:i,data:a})=>{const s=`${i}-${t}`;if("resolve"===n){wn(`[${e}]: Complete ${t}`);let n=a;"recognize"===i?n=gn(a):"getPDF"===i&&(n=Array.from({...a,length:Object.keys(a).length})),c[s]({jobId:t,data:n})}else if("reject"===n){if(p[s](a),"load"===i&&m(a),!o)throw Error(a);o(a)}else"progress"===n&&r({...a,userJobId:t})}));const S={id:a,worker:v,setResolve:w,setReject:y,load:()=>console.warn("`load` is depreciated and should be removed from code (workers now come pre-loaded)"),writeText:(e,t,n)=>x(vn({id:n,action:"FS",payload:{method:"writeFile",args:[e,t]}})),readText:(e,t)=>x(vn({id:t,action:"FS",payload:{method:"readFile",args:[e,{encoding:"utf8"}]}})),removeFile:(e,t)=>x(vn({id:t,action:"FS",payload:{method:"unlink",args:[e]}})),FS:(e,t,n)=>x(vn({id:n,action:"FS",payload:{method:e,args:t}})),loadLanguage:()=>console.warn("`loadLanguage` is depreciated and should be removed from code (workers now come with language pre-loaded)"),initialize:()=>console.warn("`initialize` is depreciated and should be removed from code (workers now come pre-initialized)"),reinitialize:(e="eng",t,n,i)=>{if(h&&[xn.TESSERACT_ONLY,xn.TESSERACT_LSTM_COMBINED].includes(t))throw Error("Legacy model requested but code missing.");const a=t||d;d=a;const r=n||u;u=r;const o=("string"==typeof e?e.split("+"):e).filter((e=>!l.includes(e)));return l.push(...o),o.length>0?b(o,i).then((()=>k(e,a,r,i))):k(e,a,r,i)},setParameters:(e={},t)=>x(vn({id:t,action:"setParameters",payload:{params:e}})),recognize:async(e,t={},n={blocks:!0,text:!0,hocr:!0,tsv:!0},i)=>x(vn({id:i,action:"recognize",payload:{image:await An(e),options:t,output:n}})),getPDF:(e="Tesseract OCR Result",t=!1,n)=>x(vn({id:n,action:"getPDF",payload:{title:e,textonly:t}})),detect:async(e,t)=>{if(h)throw Error("`worker.detect` requires Legacy model, which was not loaded.");return x(vn({id:t,action:"detect",payload:{image:await An(e)}}))},terminate:async()=>(null!==v&&(Sn(v),v=null),Promise.resolve())};var C;return x(vn({id:C,action:"load",payload:{options:{lstmOnly:h,corePath:s.corePath,logging:s.logging}}})).then((()=>b(e))).then((()=>k(e,t,i))).then((()=>f(S))).catch((()=>{})),g};const Ln=Tn;const Un=()=>{const e=on("Scheduler",sn),t={},n={};let i=[];sn+=1;const a=()=>Object.keys(t).length,r=()=>{if(0!==i.length){const e=Object.keys(t);for(let a=0;a<e.length;a+=1)if(void 0===n[e[a]]){i[0](t[e[a]]);break}}};return{addWorker:n=>(t[n.id]=n,rn(`[${e}]: Add ${n.id}`),rn(`[${e}]: Number of workers=${a()}`),r(),n.id),addJob:async(t,...o)=>{if(0===a())throw Error(`[${e}]: You need to have at least one worker before adding jobs`);return((t,a)=>new Promise(((o,s)=>{const c=an({action:t,payload:a});i.push((async e=>{i.shift(),n[e.id]=c;try{o(await e[t].apply(void 0,[...a,c.id]))}catch(p){s(p)}finally{delete n[e.id],r()}})),rn(`[${e}]: Add ${c.id} to JobQueue`),rn(`[${e}]: JobQueue length=${i.length}`),r()})))(t,o)},terminate:async()=>{Object.keys(t).forEach((async e=>{await t[e].terminate()})),i=[]},getQueueLen:()=>i.length,getNumWorkers:a}},Mn=Tn,Bn={recognize:async(e,t,n)=>{const i=await Ln(t,1,n);return i.recognize(e).finally((async()=>{await i.terminate()}))},detect:async(e,t)=>{const n=await Ln("osd",0,t);return n.detect(e).finally((async()=>{await n.terminate()}))}},Fn={AFR:"afr",AMH:"amh",ARA:"ara",ASM:"asm",AZE:"aze",AZE_CYRL:"aze_cyrl",BEL:"bel",BEN:"ben",BOD:"bod",BOS:"bos",BUL:"bul",CAT:"cat",CEB:"ceb",CES:"ces",CHI_SIM:"chi_sim",CHI_TRA:"chi_tra",CHR:"chr",CYM:"cym",DAN:"dan",DEU:"deu",DZO:"dzo",ELL:"ell",ENG:"eng",ENM:"enm",EPO:"epo",EST:"est",EUS:"eus",FAS:"fas",FIN:"fin",FRA:"fra",FRK:"frk",FRM:"frm",GLE:"gle",GLG:"glg",GRC:"grc",GUJ:"guj",HAT:"hat",HEB:"heb",HIN:"hin",HRV:"hrv",HUN:"hun",IKU:"iku",IND:"ind",ISL:"isl",ITA:"ita",ITA_OLD:"ita_old",JAV:"jav",JPN:"jpn",KAN:"kan",KAT:"kat",KAT_OLD:"kat_old",KAZ:"kaz",KHM:"khm",KIR:"kir",KOR:"kor",KUR:"kur",LAO:"lao",LAT:"lat",LAV:"lav",LIT:"lit",MAL:"mal",MAR:"mar",MKD:"mkd",MLT:"mlt",MSA:"msa",MYA:"mya",NEP:"nep",NLD:"nld",NOR:"nor",ORI:"ori",PAN:"pan",POL:"pol",POR:"por",PUS:"pus",RON:"ron",RUS:"rus",SAN:"san",SIN:"sin",SLK:"slk",SLV:"slv",SPA:"spa",SPA_OLD:"spa_old",SQI:"sqi",SRP:"srp",SRP_LATN:"srp_latn",SWA:"swa",SWE:"swe",SYR:"syr",TAM:"tam",TEL:"tel",TGK:"tgk",TGL:"tgl",THA:"tha",TIR:"tir",TUR:"tur",UIG:"uig",UKR:"ukr",URD:"urd",UZB:"uzb",UZB_CYRL:"uzb_cyrl",VIE:"vie",YID:"yid"},Rn=ln,Pn={OSD_ONLY:"0",AUTO_OSD:"1",AUTO_ONLY:"2",AUTO:"3",SINGLE_COLUMN:"4",SINGLE_BLOCK_VERT_TEXT:"5",SINGLE_BLOCK:"6",SINGLE_LINE:"7",SINGLE_WORD:"8",CIRCLE_WORD:"9",SINGLE_CHAR:"10",SPARSE_TEXT:"11",SPARSE_TEXT_OSD:"12",RAW_LINE:"13"},{setLogging:Hn}=tn;var jn={languages:Fn,OEM:Rn,PSM:Pn,createScheduler:Un,createWorker:Mn,setLogging:Hn,...Bn};e.AudioRecorder=class{constructor(){v(this,"startTime"),v(this,"chunks"),v(this,"mediaRecorder"),v(this,"blob"),this.startTime=Date.now(),this.chunks=[],navigator.mediaDevices.getUserMedia({audio:!0}).then((e=>{this.init(e)})).catch((e=>{}))}init(e){var t,n;const i=function(){const e=["audio/webm","audio/mp4","audio/ogg","audio/wav","audio/aac"];for(let t=0;t<e.length;t++)if(MediaRecorder.isTypeSupported(e[t]))return e[t]}();this.mediaRecorder=new MediaRecorder(e,{mimeType:i}),null==(t=this.mediaRecorder)||t.addEventListener("dataavailable",(async e=>{var t;if(e.data.size>0&&this.chunks.push(e.data),"inactive"===(null==(t=this.mediaRecorder)?void 0:t.state)){const e=Date.now()-this.startTime;this.blob=new Blob(this.chunks,{type:i}),"audio/webm"===i&&(this.blob=await((e,t,n="video/webm")=>new Promise(((i,a)=>{try{const r=new FileReader;r.addEventListener("loadend",(()=>{try{const a=r.result,o=new C(new Uint8Array(a));o.fixDuration(t)?i(o.toBlob(n)):i(e)}catch(o){a(o)}})),r.addEventListener("error",(()=>a())),r.readAsArrayBuffer(e)}catch(r){a(r)}})))(this.blob,e,this.blob.type)),this.chunks=[]}})),null==(n=this.mediaRecorder)||n.start()}start(){var e;return"paused"===(null==(e=this.mediaRecorder)?void 0:e.state)&&this.mediaRecorder.resume(),this.mediaRecorder}pause(){var e;return"recording"===(null==(e=this.mediaRecorder)?void 0:e.state)&&this.mediaRecorder.pause(),this.mediaRecorder}stop(){var e;return null==(e=this.mediaRecorder)||e.stop(),this.blob}},e.Chain=yt,e.Color=nt,e.ColorScheme=class{constructor(e,t){v(this,"palette"),this.palette=[],void 0===t&&e instanceof Array?this.createFromColors(e):this.createFromAngles(e,t)}createFromColors(e){for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&this.palette.push(new nt(e[t]));return this.palette}createFromAngles(e,t){this.palette.push(new nt(e));for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const e=(Number(this.palette[0].h)+t[n])%360;this.palette.push(new nt(ct(e,Number(this.palette[0].s),Number(this.palette[0].l))))}return this.palette}static Compl(e){return new this(e,[180])}static Triad(e){return new this(e,[120,240])}static Tetrad(e){return new this(e,[60,180,240])}static Analog(e){return new this(e,[-45,45])}static Split(e){return new this(e,[150,210])}static Accent(e){return new this(e,[-45,45,180])}},e.FMT=Xe,e.Hsl=et,e.Hsla=tt,e.Mathjs=Rt,e.MimeType=bt,e.Monitor=class{constructor(){v(this,"init",(()=>{this.reportClick(),this.reportError(),this.reportFetch(),this.reportPerformance(),this.reportXhr()})),this.initialize()}reportPerformance(){const e=Ct(),t=Et();At({payload:{...e,...t}})}log(e){At({payload:e})}reportClick(){const e=Lt(At),t=Et();((e=A)=>{"undefined"!=typeof document&&document.addEventListener("click",(function(t){e(t)}),!0)})((n=>{const{pageX:i,pageY:a,screenX:r,screenY:o,type:s}=n;e({payload:{...t,data:{pageX:i,pageY:a,screenX:r,screenY:o,type:s},type:"click"}})}))}reportXhr(){const e=Lt(At),t=Et();Tt({requestHook:(...n)=>{e({payload:{...t,data:{...n},type:"xhrRequest"}})},responseHook:(...n)=>{e({payload:{...t,data:{...n},type:"xhrResponse"}})},errorHook:(...n)=>{e({payload:{...t,data:{...n},type:"xhrError"}})}})}reportFetch(){const e=Lt(At),t=Et();Ot({requestHook:(...n)=>{e({payload:{...t,data:{...n},type:"fetchRequest"}})},responseHook:(...n)=>{e({payload:{...t,data:{...n},type:"fetchResponse"}})},errorHook:(...n)=>{e({payload:{...t,data:{...n},type:"fetchError"}})}})}reportError(){const e=Lt(At),t=Et();xt(((...n)=>{e({payload:{...t,data:{...n},type:"error"}})}))}reportConsole(){const e=Lt(At),t=Et();gt(((...n)=>{e({payload:{...t,data:{...n},type:"console"}})}))}initialize(){"undefined"==typeof window||window.ranlog||(window.ranlog=!0,this.init()),"undefined"==typeof process||process.ranlog||(process.ranlog=!0,this.init())}},e.QuestQueue=class{constructor({simultaneous:e,total:t}){v(this,"current"),v(this,"queue"),v(this,"simultaneous"),v(this,"executed"),v(this,"total"),v(this,"add",(e=>{if("function"!=typeof e)return;this.queue.push((()=>new Promise(((t,n)=>{this.current++,e().then(t).catch(n).finally((()=>{this.current--,this.running()}))}))))})),v(this,"running",(()=>new Promise(((e,t)=>{if(this.current<=this.simultaneous&&this.queue.length){const n=this.queue.pop();n&&n().then(e).catch(t).finally((()=>{this.executed++}))}else e({})})))),v(this,"allSettled",(()=>{let e=0;return new Promise(((t,n)=>{const i=[];if(this.current<this.simultaneous&&this.queue.length){const a=this.queue.pop();e++,a&&a().then((n=>{i[e]=n,t(n)})).catch((t=>{i[e]=t,n(t)})).finally((()=>{this.executed++}))}this.executed>=this.total&&t(i)}))})),this.current=0,this.queue=[],this.simultaneous=e,this.executed=0,this.total=t}},e.Rgb=Qe,e.Rgba=Ze,e.Router=class{constructor(){v(this,"ctx"),v(this,"map"),v(this,"methods"),v(this,"paths"),this.map=new Map,this.methods=new Set,this.paths=new Set}get(e,t){this.addHandlerToMap("GET")(e,t)}post(e,t){this.addHandlerToMap("POST")(e,t)}put(e,t){this.addHandlerToMap("PUT")(e,t)}patch(e,t){this.addHandlerToMap("PATCH")(e,t)}del(e,t){this.addHandlerToMap("DELETE")(e,t)}head(e,t){this.addHandlerToMap("HEAD")(e,t)}options(e,t){this.addHandlerToMap("OPTIONS")(e,t)}addHandlerToMap(e){return this.methods.add(e),(t,n)=>{this.paths.add(t);let i=this.map.get(e);i||(i=new Map,this.map.set(e,i)),i.set(t,n)}}routes(){return(e,t)=>{this.ctx=e;const{path:n,method:i}=e.request,a=this.map.get(i),r=a?a.get(n):t;r&&r(e,t)}}allowedMethods(){return e=>{const{res:t}=e,{path:n,method:i}=e.request;!this.methods.has(i)&&this.paths.has(n)&&(t.statusCode=405,t.end("405, method is not allowed")),this.methods.has(i)&&!this.paths.has(n)&&(t.statusCode=404,t.end("404, the request address does not exist")),this.methods.has(i)||this.paths.has(n)||(t.statusCode=501,t.end("501, not support the functionality needed to satisfy the request"))}}},e.Server=class{constructor(){v(this,"middleware"),v(this,"ctx");const e=new d.IncomingMessage(new l.Socket),t=new d.ServerResponse(e);this.ctx={ipv4:$t,req:e,res:t},this.middleware=[]}use(e){if(!e)throw new Error("the use function has an incorrect argument");this.middleware.push(e)}listen(...e){const t=function(e){if(!Array.isArray(e))throw new TypeError("Middleware stack must be an array!");for(const t of e)if("function"!=typeof t)throw new TypeError("Middleware must be composed of functions!");return function(t,n){let i=-1;function a(r){if(r<=i)return Promise.reject(new Error("next() called multiple times"));i=r;let o=e[r];if(r===e.length&&n&&(o=n),!o)return Promise.resolve();try{return Promise.resolve(o(t,a.bind(null,r+1)))}catch(s){return Promise.reject(s)}}return a(0)}}(this.middleware);return d.createServer(((e,n)=>{this.ctx.req=e,this.ctx.res=n,t(this.ctx).then().catch(Kt)})).listen(...e)}},e.SyncHook=class{constructor(){v(this,"_events"),v(this,"tap",((e,t)=>{this._events[e]&&e!==Symbol.for(Pt)&&this.call(Symbol.for(Pt),e);const n=this._events[e]||[];return"function"==typeof t?n.push({name:e,callback:t}):n.push(t),this._events[e]=n,this})),v(this,"call",((e,...t)=>{(this._events[e]||[]).forEach((e=>{const{callback:n}=e;n(...t)}))})),v(this,"callSync",(async(e,...t)=>{const n=this._events[e]||[];for(const i of n){const{callback:e}=i;await e(...t)}})),v(this,"once",((e,t)=>{let n;if("function"==typeof t)n={name:e,callback:(...i)=>{t(...i),this.off(e,n)},initialCallback:t};else{const{callback:i}=t;n={name:e,callback:(...t)=>{i(...t),this.off(e,n)},initialCallback:i}}return this.tap(e,n),this})),v(this,"off",((e,t)=>{const n=(this._events[e]||[]).filter((e=>{if("function"==typeof t)return e.callback!==t&&e.initialCallback!==t;{const{callback:n}=t;return e.callback!==n&&e.initialCallback!==n}}));return this._events[e]=n,this})),this._events={}}},e.TOTP=class{static generate(e,t){const n={digits:6,algorithm:"SHA-1",period:30,timestamp:Date.now(),...t},i=Math.floor(n.timestamp/1e3),a=this.leftpad(this.dec2hex(Math.floor(i/n.period)),16,"0"),r=new He(n.algorithm,"HEX");r.setHMACKey(this.base32tohex(e),"HEX"),r.update(a);const o=r.getHMAC("HEX"),s=this.hex2dec(o.substring(o.length-1));let c=(this.hex2dec(o.substr(2*s,8))&this.hex2dec("7fffffff"))+"";const p=Math.max(c.length-n.digits,0);c=c.substring(p,p+n.digits);return{otp:c,expires:Math.ceil((n.timestamp+1)/(1e3*n.period))*n.period*1e3}}static hex2dec(e){return parseInt(e,16)}static dec2hex(e){return(e<15.5?"0":"")+Math.round(e).toString(16)}static base32tohex(e){let t="",n="";const i=e.replace(/=+$/,"");for(let a=0;a<i.length;a++){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".indexOf(e.charAt(a).toUpperCase());if(-1===n)throw new Error("Invalid base32 character in key");t+=this.leftpad(n.toString(2),5,"0")}for(let a=0;a+8<=t.length;a+=8){const e=t.substr(a,8);n+=this.leftpad(parseInt(e,2).toString(16),2,"0")}return n}static leftpad(e,t,n){return t+1>=e.length&&(e=Array(t+1-e.length).join(n)+e),e}},e.WSS=function(e){Xt.call(this);const t=[];this.server=e,this.clients=t,this.broadcast=e=>{t.forEach((t=>{t.send(e)}))},e.on("upgrade",((e,n)=>{n.write(["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade","Sec-WebSocket-Accept: "+f.createHash("sha1").update(e.headers["sec-websocket-key"]+"258EAFA5-E914-47DA-95CA-C5AB0DC85B11").digest("base64")].join("\n")+"\n\n");const i={send(e,t){n.write(Gt(e,t))},ping(){n.write(Gt("",{opcode:9}))},pong(){n.write(Gt("",{opcode:10}))},close(){if(-1===t.indexOf(i))return!1;t.splice(t.indexOf(i),1),n.write(Gt("",{opcode:8})),i.emit("close"),n.destroy()},socket:n};Xt.call(i),this.emit("connect",i),t.push(i);let a=m.Buffer.allocUnsafe(0),r=m.Buffer.allocUnsafe(0);const o=[];let s=!0;function c(){const e=function(e){const t=m.Buffer.from(e),n=127&t[1];let i=0,a=0;const r=t[1]>=128;return 127===n?(i=t.readUInt32BE(6),a=10):126===n?(i=t.readUInt16BE(2),a=4):(i=n,a=2),{fin:t[0]>=128,opcode:15&t[0],mask:r,maskKey:r?t.subarray(a,a+(r?4:0)):null,len7:n,len:i,lenMeta:a+(r?4:0)}}(a);o.push({l:e.lenMeta,f:()=>{s=!1,o.push({l:e.len,f:t=>{if(r=m.Buffer.concat([r,Yt(t,e.maskKey)]),s=!0,e.fin){if(8===e.opcode)return i.close();if(9===e.opcode)return i.pong();i.emit("message",r),r=m.Buffer.allocUnsafe(0)}}})}})}n.on("data",(e=>{for(a=m.Buffer.concat([a,e]),s&&c();o[0]&&a.byteLength>=o[0].l;){const e=o[0].l;o[0].f(a.subarray(0,e)),a=a.subarray(e),o.splice(0,1)}})),n.on("end",(()=>{i.close()})),n.on("error",(e=>{i.emit("error",e),i.close()}))}))},e.addClassToElement=(e,t)=>{if("undefined"==typeof document)return;const n=e.classList;n.contains(t)||n.add(t)},e.appendFile=(e,n)=>new Promise(((i,a)=>{t.appendFile(e,n,(t=>{t?a({success:!1,_identification:!1,data:t}):Ht(e).then((e=>{i(e)}))}))})),e.appendUrl=function(e,t={}){let n=e;0===n.indexOf("//")&&(n=n.replace("//","https://"));const i=new URL(n);return t&&Object.keys(t).forEach((e=>{t[e]&&i.searchParams.set(e,t[e])})),i.href},e.audioVendor=()=>new Promise(((e,t)=>{T||t("window is undefined");const n=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,44100,44100),i=n.createOscillator();i.type="triangle",i.frequency.setValueAtTime(1e4,n.currentTime);const a=n.createDynamicsCompressor();!function(e,t){if(Array.prototype.forEach&&e.forEach===Array.prototype.forEach)e.forEach(t);else if(e.length===+e.length)for(let n=0,i=e.length;n<i;n++)t(e[n],n,e);else for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(e[n],Number(n),e)}([["threshold",-50],["knee",40],["ratio",12],["reduction",-20],["attack",0],["release",.25]],(function(e){if(a[e[0]]&&"number"!=typeof a[e[0]]){const{setValueAtTime:t}=a[e[0]];t(e[1],n.currentTime)}})),i.connect(a),a.connect(n.destination),i.start(0),n.startRendering();const r=setTimeout((function(){return n.oncomplete=()=>{},t("audioTimeout"),"audioTimeout"}),100);n.oncomplete=n=>{try{clearTimeout(r);const t=n.renderedBuffer.getChannelData(0).slice(4500,5e3).reduce((function(e,t){return e+Math.abs(t)}),0).toString();return i.disconnect(),a.disconnect(),e(t),t}catch(o){return void t(o)}}})),e.body=(e={})=>{const{uploadDir:n=".",encoding:i="",urlencoded:a=!0,json:r=!0}=e;return(e,a)=>{var o;const{req:s,res:c}=e,{url:p,method:l}=s,[d="",u=""]=(null==p?void 0:p.split("?"))||[],h=u?new URLSearchParams(u):{};e.request||(e.request={}),e.request.method=l,e.request.path=d,e.request.url=p,e.request.query=h;const m=s.headers["content-type"];if("application/json"===m){i?s.setEncoding(i):s.setEncoding("utf-8");let t="";s.on("data",(e=>{t+=e})),s.on("end",(()=>{c.setHeader("content-type","application/json;charset=UTF-8");try{e.request.body=r?JSON.parse(t):t}catch(n){e.request.body=t}a()}))}if(null==m?void 0:m.includes("multipart/form-data;")){const[e,r]=(null==(o=s.headers["content-type"])?void 0:o.split(";").map((e=>e.trim())))||[],[p,l]=r.split("=");i?s.setEncoding(i):s.setEncoding("binary");let d="";s.on("data",(e=>{d+=e})),s.on("end",(()=>{const e={};d.split("\r\n").slice(0,4).forEach((t=>{Object.assign(e,ze(t,";",/=|:/))}));const i=e["Content-Type"],r=Buffer.from(e.filename,"latin1").toString("utf8"),o=d.indexOf(i)+i.length,s=d.substring(o).replace(/^\s+/,""),p=s.substring(0,s.indexOf(`--${l}--`));t.writeFile(`${n}/${r}`,p,{encoding:"binary"},(e=>{if(e)throw e;c.setHeader("content-type","application/json;charset=UTF-8"),a()}))}))}}},e.canvasVendor=()=>{const e=document.createElement("canvas"),t=e.getContext("2d"),n="BrowserLeaks,com <canvas> 1.0";if(!t)return null;t.textBaseline="top",t.font="14px 'Arial'",t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(125,1,62,20),t.fillStyle="#069",t.fillText(n,2,15),t.fillStyle="rgba(102, 204, 0, 0.7)",t.fillText(n,4,17);return e.toDataURL()},e.changeHumpToLowerCase=function(e){const t=e.split("");return e=t.map((e=>e.toUpperCase()===e?"_"+e.toLowerCase():e)).join("")},e.clearBr=(e="")=>0===e.length?"":e.replace(/\s+/g,"").replace(/<\/?.+?>/g,"").replace(/[\r\n]/g,""),e.clearStr=qe,e.colors=It,e.componentToHex=at,e.compose=function(e){if(!Array.isArray(e))throw new TypeError("Middleware stack must be an array!");for(const t of e)if("function"!=typeof t)throw new TypeError("Middleware must be composed of functions!");return function(t,n){let i=-1;return function a(r){if(r<=i)return Promise.reject(new Error("next() called multiple times"));i=r;let o=e[r];r===e.length&&n&&(o=n);if(!o)return Promise.resolve();try{return Promise.resolve(o(t,a.bind(null,r+1)))}catch(s){return Promise.reject(s)}}(0)}},e.connect=function(e){const t=e.length<3?qt:_t;return function(n,i){return t(n,e,i)}},e.connection=()=>{if("undefined"!=typeof window)return window.navigator.connection},e.convertImageToBase64=e=>new Promise(((t,n)=>{const i=new FileReader;i.onload=function(){t({success:!0,data:i.result,message:""})},i.onerror=e=>{n({success:!1,data:e,message:""})},i.readAsDataURL(e)})),e.create=(e,t)=>new yt(e,t),e.createData=Et,e.createDocumentFragment=e=>{if("undefined"==typeof document)return;const t=document.createDocumentFragment();return e.forEach((e=>t.appendChild(e))),t},e.createObjectURL=async e=>{if("string"==typeof e)return e;if(e instanceof Blob)return URL.createObjectURL(e);if(e instanceof ArrayBuffer)return URL.createObjectURL(new Blob([e]));if(e instanceof Response){const t=await e.blob();return URL.createObjectURL(t)}return e},e.currentDevice=O,e.debounce=(e,t=500)=>{let n;return(...i)=>{clearTimeout(n),n=setTimeout((()=>{e.apply(void 0,i)}),t)}},e.durationHandler=Ye,e.encodeUrl=function(e){return String(e).replace(We,"$1�$2").replace(Ve,encodeURI)},e.escapeHtml=function(e){const t=""+e,n=vt.exec(t);if(!n)return t;let i,a="",r=0,o=0;for(r=n.index;r<t.length;r++){switch(t.charCodeAt(r)){case 34:i="&quot;";break;case 38:i="&amp;";break;case 39:i="&#39;";break;case 60:i="&lt;";break;case 62:i="&gt;";break;default:continue}o!==r&&(a+=t.substring(o,r)),o=r+1,a+=i}return o!==r?a+t.substring(o,r):a},e.filterObj=(e,t)=>{const n={};return Object.keys(e).forEach((i=>{t.includes(i)||(n[i]=e[i])})),n},e.formatJson=(e,t=(()=>{}))=>{let n="",i=0;let a=((e,t=(e=>{}))=>{let n="";if("[object String]"!==Object.prototype.toString.call(e))try{n=JSON.stringify(e)}catch(i){t(i)}else try{e="string"==typeof e?e.replace(/(')/g,'"'):JSON.stringify(e),n=JSON.stringify(JSON.parse(e))}catch(i){t(i)}return n})(e,t);if(!a)return a;const r=[];let o=null,s=null,c=[];return a=a.replace(/([{}])/g,"\r\n$1\r\n"),a=a.replace(/([[\]])/g,"\r\n$1\r\n"),a=a.replace(/(,)/g,"$1\r\n"),a=a.replace(/(\r\n\r\n)/g,"\r\n"),a=a.replace(/\r\n,/g,","),c=a.split("\r\n"),c.forEach((function(e,t){var n;const i=e.match(/"/g)&&(null==(n=e.match(/"/g))?void 0:n.length)||0;i%2&&!o&&(o=t),i%2&&o&&o!==t&&(s=t),o&&s&&(r.push({start:o,end:s}),o=null,s=null)})),r.reverse().forEach((function(e,t){const n=c.slice(e.start,e.end+1);c.splice(e.start,e.end+1-e.start,n.join(""))})),a=c.join("\r\n"),a=a.replace(/:\r\n\{/g,":{"),a=a.replace(/:\r\n\[/g,":["),c=a.split("\r\n"),c.forEach((function(e,t){let a=0,r=0,o="";for(e.match(/\{$/)||e.match(/\[$/)?r+=1:e.match(/\}$/)||e.match(/\]$/)||e.match(/\},$/)||e.match(/\],$/)?0!==i&&(i-=1):r=0,a=0;a<i;a++)o+=" ";n+=o+e+"\r\n",i+=r})),n.trim()},e.generateThrottle=()=>{let e;return function(t,n=300){return function(...i){e&&(clearTimeout(e),e=void 0);const a=this;e||(e=setTimeout((()=>{t.apply(a,i),clearTimeout(e),e=void 0}),n))}}},e.get=({url:e})=>new Promise(((t,n)=>{s.get(e,(e=>{const n=[];e.on("data",(e=>{n.push(e)})),e.on("end",(()=>{const{data:e=[]}=JSON.parse(Buffer.concat(n).toString());e.forEach((e=>{})),t({success:!0,data:e,message:"request success"})}))})).on("error",(e=>{console.log("Error: ",e.message),n({success:!1,data:e,message:e.message})}))})),e.getAllQueryString=e=>{if("undefined"!=typeof window){const t={},n=e||window.location.href;if(n.split("?")[1]){n.split("?")[1].split("&").forEach((e=>{const[n,i]=e.split("=");n&&i&&(t[n]=decodeURIComponent(i))}))}return t}return{}},e.getCookie=_e,e.getCookieByName=function(e){if("undefined"!=typeof window){const t=document.cookie.match(new RegExp(`(^| )${e}(?:=([^;]*))?(;|$)`));if(t&&t[2])return t[2]}return""},e.getFrame=(e=10)=>{const t=[];let n,i=0;return new Promise((a=>{const r=()=>{const o=De(),s=o-i;if(0!==i&&t.push(s),i=o,t.length>e){const i=t.reduce(((e,t)=>e+t));a(1/(i/e)),cancelAnimationFrame(n)}n=requestAnimationFrame(r)};t.length<=e&&(n=requestAnimationFrame(r))}))},e.getHost=$e,e.getIPAdress=()=>{const e=c.networkInterfaces();for(const t in e){const n=e[t];for(let e=0;e<n.length;e++){const t=n[e];if("IPv4"===t.family&&"127.0.0.1"!==t.address&&!t.internal)return t.address}}},e.getMime=St,e.getPerformance=Ct,e.getPixelRatio=e=>{const t=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||1;return(T&&window.devicePixelRatio||1)/t},e.getStatus=function(e){if("number"==typeof e)return Bt(e);if("string"!=typeof e)throw new TypeError("code must be a number or string");const t=parseInt(e,10);return!isNaN(t)&&Mt.codes.includes(t)?Bt(t):function(e){const t=e.toLowerCase();if(Mt.code.has(t),!Mt.code.has(t))throw new Error('invalid status message: "'+e+'"');return Mt.code.get(t)}(e)},e.getWindow=Ke,e.handleConsole=gt,e.handleError=xt,e.handleFetchHook=Ot,e.hexToRgb=it,e.hsbToRgb=pt,e.hslToRgb=ct,e.hsvToHsl=dt,e.hsvToRgb=lt,e.hue2rgb=st,e.imageRequest=Ge,e.isBangDevice=()=>{if(!T)return!1;const e=/iphone/i.test(window.navigator.userAgent),t=window.devicePixelRatio&&2===window.devicePixelRatio,n=window.devicePixelRatio&&3===window.devicePixelRatio,i=360===window.screen.width&&780===window.screen.height,a=375===window.screen.width&&812===window.screen.height,r=390===window.screen.width&&844===window.screen.height,o=414===window.screen.width&&896===window.screen.height,s=428===window.screen.width&&926===window.screen.height;switch(!0){case e&&n&&i:case e&&n&&a:case e&&n&&r:case e&&t&&o:case e&&n&&o:case e&&n&&s:return!0;default:return!1}},e.isClient=T,e.isColorSupported=jt,e.isImageSize=(e,t,n)=>new Promise(((i,a)=>{T||a("window is undefined");const r=window.URL||window.webkitURL,o=new Image;o.onload=function(){let e=!1;t&&(e=o.width===t),n&&(e=o.height===n),r.revokeObjectURL(o.src),i(e)},o.src=r.createObjectURL(e)})),e.isMobile=()=>{if(!T)return!1;const e=window.navigator.userAgent;return!!/Android|webOS|iPhone|iPod|iPad|BlackBerry/i.test(e)},e.isString=Ie,e.isWeiXin=()=>{if(T){return window.navigator.userAgent.toLowerCase().includes("micromessenger")}return!1},e.localStorageGetItem=e=>T&&localStorage.getItem(e)||"",e.localStorageSetItem=(e,t)=>{T&&localStorage.setItem(e,t)},e.mathjs=function e(t,n,i){function a(e){const[t,n]=e.toString().split(".");return n?n.length:0}const r=(e,t=15)=>parseFloat(Number(e).toPrecision(t)),o=Math.pow(10,Math.max(a(t),a(i)));let s=0;switch(t=r(t*o),i=r(i*o),n){case"+":s=(t+i)/o;break;case"-":s=(t-i)/o;break;case"*":s=t*i/(o*o);break;case"/":s=t/i}return s=r(s),{result:s,next:(t,n)=>e(s,t,n)}},e.memoize=ut,e.merge=(e,t)=>{if(e&&t)for(const n in t)e[n]=t[n];return e},e.mergeExports=ft,e.networkSpeed=async e=>{const{url:t,duration:n=3e3,count:i=5}=e;let a=0,r=0;const o=[];for(let s=0;s<i;s++){const e=Ye(Ge,t),i=await e(n);o.push(i)}return a=Math.max(...o)-Math.min(...o),r=o.reduce(((e,t)=>e+t))/o.length,{ping:r,jitter:a}},e.noop=A,e.ocr=async({images:e=[],language:t="eng",langPath:n=""})=>{if(0===e.length)return{success:!1,data:null,message:"images must be a array"};if(!t)return{success:!1,data:null,message:"languages must be a array"};let i={};n&&(i={langPath:n});const a=jn.createScheduler(),r=await jn.createWorker(t,3,i);a.addWorker(r);const o=await Promise.all(e.map((e=>a.addJob("recognize",e))));return await a.terminate(),{success:!0,data:o,message:"success"}},e.paresUrl=function(e){const t=e.url;if(void 0===t)return;let n=e._parsedUrl;if(n&&n._raw===t)return n;n={},n.query=n.search=void 0,n.href=n.path=n.pathname=t;const i=t.indexOf("?",1);return-1!==i&&(n.search=t.substring(i),n.query=n.search.substring(1),n.pathname=t.substring(0,i)),n._raw=t,e._parsedUrl=n},e.perToNum=(e="")=>{if(0===e.length)return 0;if(e.endsWith("%")){const t=Number(e.replace("%",""));return t>1?t/100:t}return Number(e)},e.performanceTime=De,e.prompt=({message:e,stream:t=process.stderr,defaultResponse:n="Y"})=>{const i=o.createInterface({input:process.stdin,output:t});return new Promise((t=>{i.question(`${e} `,(e=>{i.close();const a=(e||n).toLowerCase();t("y"===a||"yes"===a)}))}))},e.queryFileInfo=e=>new Promise(((n,i)=>{t.stat(e,((e,t)=>{e?i({success:!1,_identification:!1,data:e}):n({success:!0,_identification:!0,data:t})}))})),e.querystring=ht,e.randomColor=function(){const e="#"+Math.random().toString(16).slice(2,8);return new nt(e)},e.randomString=Ne,e.range=(e,t=0,n=1)=>Math.min(n,Math.max(t,e)),e.reactify=e=>{class t extends n.Component{constructor(e){super(e),v(this,"eventHandlers"),v(this,"ref"),this.eventHandlers=[];const{innerRef:t}=e;this.ref=t||n.createRef()}setEvent(e,t){var n;this.eventHandlers.push([e,t]),null==(n=this.ref.current)||n.addEventListener(e,t)}setProperty(e,t){this.ref.current&&(this.ref.current[e]=t)}setAttribute(e,t){var n,i;"string"==typeof t?null==(n=this.ref.current)||n.setAttribute(e,t):null==(i=this.ref.current)||i.setAttribute(e,JSON.stringify(t))}update(){this.clearEventHandlers(),Object.entries(this.props).forEach((([e,t])=>{if("style"===e&&"string"!=typeof t)return;if("children"===e)return;if("classname"===e.toLowerCase()&&this.ref.current)return this.ref.current.className=t;if(["string","number","boolean"].includes(typeof t))return this.setProperty(e,t),void this.setAttribute(e,t);if("function"==typeof t&&e.match(/^on[A-Za-z]/)){const n=e.substring(2).toLowerCase();return this.setEvent(n,t)}this.setProperty(e,t)}))}componentDidUpdate(){this.update()}componentDidMount(){this.update()}componentWillUnmount(){this.clearEventHandlers()}clearEventHandlers(){this.eventHandlers.forEach((([e,t])=>{var n;null==(n=this.ref.current)||n.removeEventListener(e,t)})),this.eventHandlers=[]}render(){const{children:t,className:i,...a}=this.props;return n.createElement(e,{class:i,...a,ref:this.ref},t)}}return n.forwardRef(((e,i)=>n.createElement(t,{...e,innerRef:i})))},e.readDir=e=>{const{dirPath:n}=e;try{return t.readdirSync(n)}catch(i){throw i}},e.readFile=Ht,e.readStream=e=>{const{path:n}=e;if(n){return t.createReadStream(n)}throw new Error("path is not defined")},e.removeClassToElement=(e,t)=>{if("undefined"==typeof document)return;const n=e.classList;n.contains(t)&&n.remove(t)},e.removeGhosting=e=>{const t=document.createElement("img");t.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",t.width=0,t.height=0,t.style.opacity="0",e.dataTransfer&&e.dataTransfer.setDragImage(t,0,0)},e.replaceOld=mt,e.report=At,e.requestAnimation=e=>{if(!T)return;let t=!1;return function(){const n=this,i=arguments;t||(window.requestAnimationFrame((function(){e.apply(n,i),t=!1})),t=!0)}},e.requestUrlToBuffer=(e,t)=>new Promise((function(n,i){const a=new XMLHttpRequest;a.open(t.method||"GET",e,!0),a.responseType=t.responseType||"arraybuffer",a.onload=function(){200===a.status?n({success:!0,data:a.response,message:""}):i({success:!1,data:a.status,message:`The request status is${a.status}`})},a.onerror=function(e){i({success:!1,data:e,message:""})},a.onprogress=e=>{t.onProgress&&t.onProgress(e)},a.withCredentials=t.withCredentials||!1,t.headers&&Object.keys(t.headers).forEach((function(e){var n;(null==(n=t.headers)?void 0:n[e])&&a.setRequestHeader(e,t.headers[e])})),a.send(t.body)})),e.retain=(e=A)=>{const t=()=>{e(),T&&window.removeEventListener("popstate",t)};T&&window.history.pushState(null,"",window.location.href),setTimeout((()=>{T&&window.addEventListener("popstate",t)}),500)},e.rgbToHex=rt,e.rgbToHsb=function(e,t,n){let i,a,r=0;e/=255,t/=255,n/=255;const o=Math.max(e,t,n),s=Math.min(e,t,n);a=o;const c=o-s;if(i=0===o?0:c/o,o===s)r=0;else{switch(o){case e:r=(t-n)/c+(t<n?6:0);break;case t:r=(n-e)/c+2;break;case n:r=(e-t)/c+4}r/=6}return r=Je(360*r),i=Je(100*i),a=Je(100*a),[r,i,a]},e.rgbToHsl=ot,e.runCommand=(e,t)=>new Promise(((n,i)=>{const a=r.spawn(e,t,{stdio:"inherit",shell:!0});a.on("error",(e=>i(e))),a.on("exit",(e=>0===e?n():i(new Error(`Command exited with code ${e}`))))})),e.scriptOnLoad=(e,t,n)=>{const i=(e=Array.isArray(e)?e:[e]).map((e=>{let n;if(/\w*.css$/.test(e)){const t=document.createElement("link");t.type="text/css",t.rel="stylesheet",t.href=e,n=t}else n=document.createElement("script"),n.type="text/javascript",n.src=e;const i=document.getElementsByTagName("body")[0];return(t||i).appendChild(n),new Promise((e=>{n.onload=()=>{e()}}))}));return new Promise((e=>{Promise.all(i).then((()=>{"function"==typeof n&&n(),e()}))}))},e.setAttributeByGlobal=(e,t)=>{"undefined"!=typeof window&&(window[e]=t),"undefined"!=typeof global&&(global[e]=t)},e.setFontSize2html=(e=375)=>{let t=e;const{documentElement:n}=document,i=window.matchMedia("(orientation: portrait)");let a,r=667/375;function o(){const e=!i.matches;let a=window.screen.width,o=window.screen.height;a<o&&([a,o]=[o,a]);let s=n.clientWidth,c=o;s/c>=r?(s=c*r,n.classList.remove("adjustHeight"),n.classList.add("adjustWidth")):(c=s/r,n.classList.remove("adjustWidth"),n.classList.add("adjustHeight"));let p=s/t*16;e&&(p/=r),n.style.fontSize=`${p}px`;const l=window.getComputedStyle(n).fontSize.replace("px","")||0;p!==l&&(n.style.fontSize=p/Number(l)*p+"px")}O()===E.IPAD&&(r=1024/768,t=768),window.addEventListener("resize",(function(){clearTimeout(a),a=setTimeout(o,300)}),!1),window.addEventListener("pageshow",(function(e){e.persisted&&(clearTimeout(a),a=setTimeout(o,300))}),!1),window.addEventListener("orientationchange",(function(){o()}),!1),o()},e.setMime=kt,e.startTask=()=>{if("undefined"!=typeof window){const e=window.performance.now();return Symbol.for(`${e}`)}if("undefined"!=typeof process){const e=a.hrtime.bigint();return Symbol.for(`${e}`)}return Symbol.for(`${Date.now()}`)},e.staticMiddleware=(e={})=>{const{pathname:n,fileTypes:i={}}=e;return async(e,a)=>{try{const{req:o,res:s}=e;if(o.url){const e="text/html",a=n||process.cwd(),c=p.normalize(p.resolve(a)),l=p.extname(o.url).slice(1);Object.keys(i).forEach((e=>kt(e,i[e])));const d=l?St(l):e;if(!Boolean(d))return s.writeHead(404,{"Content-Type":"text/html"}),void s.end("404: File not found");let u=o.url;if("/"===o.url)u="index.html";else if(!l)try{t.accessSync(p.join(c,o.url+".html"),t.constants.F_OK),u=o.url+".html"}catch(r){u=p.join(o.url,"index.html")}const h=p.join(c,u);if(!p.normalize(p.resolve(h)).startsWith(c))return s.writeHead(404,{"Content-Type":"text/html"}),void s.end("404: File not found");t.readFile(h,((e,t)=>{e?(s.writeHead(404,{"Content-Type":"text/html"}),s.end("404: File not found")):(s.writeHead(200,{"Content-Type":d}),s.end(t))}))}else console.log("request has not url");await a()}catch(o){}}},e.status=Mt,e.str2Xml=(e,t="text/xml")=>{if(window.DOMParser)return(new window.DOMParser).parseFromString(e,t).documentElement;if(void 0!==window.ActiveXObject){const t=new window.ActiveXObject("Microsoft.XMLDOM");return t.async="false",t.loadXML(e),t}},e.strParse=ze,e.taskEnd=e=>{const t=Symbol.keyFor(e);return"undefined"!=typeof window&&t?window.performance.now()-Number(t):"undefined"!=typeof process&&t?a.hrtime.bigint()-BigInt(t):Date.now()-Number(t)},e.throttle=Lt,e.timeFormat=e=>{if(0===e)return"00:00";if(!e)return"";const t=Math.trunc(e/3600),n=Math.trunc(e%3600/60),i=je(Math.trunc(e-3600*t-60*n));return 0===t?`${je(n)}:${i}`:`${je(t)}:${je(n)}:${i}`},e.timestampToTime=function(e){let t=new Date;return e&&(t=new Date(e)),t.format=(e="YYYY-MM-DD HH:mm:ss")=>{const n=t.getFullYear(),i=je(t.getMonth()+1),a=je(t.getDate()),r=je(t.getHours()),o=je(t.getMinutes()),s=je(t.getSeconds());return e.replace(/Y+/gi,`${n}`).replace(/M+/g,`${i}`).replace(/D+/gi,`${a}`).replace(/H+/gi,`${r}`).replace(/m+/g,`${o}`).replace(/S+/gi,`${s}`)},t},e.traverse=async function e(t,n,i=""){t=p.resolve(".",t),await Wt(t).then((a=>Promise.all(a.map((a=>{const r=p.join(t,a);return Vt(r).then((t=>t.isDirectory()?e(r,n,p.join(i,a)):n(p.join(i,a),r,t)))})))))},e.traverseSync=function e(n,i,a=""){n=p.resolve(".",n);const r=t.readdirSync(n);let o,s,c=0;for(;c<r.length;c++)o=p.join(n,r[c]),s=t.statSync(o),s.isDirectory()?e(o,i,p.join(a,r[c])):i(p.join(a,r[c]),o,s)},e.watchFile=(e,n=20)=>new Promise(((i,a)=>{t.watchFile(e,{interval:n},((n,a)=>{n.mtime!==a.mtime?(t.unwatchFile(e),i({success:!0,_identification:!0,data:{},message:"file is changed"})):i({success:!1,_identification:!1,data:{},message:"file is not changed"})}))})),e.webglVendor=()=>{const e=document.createElement("canvas").getContext("webgl2");return e?function(e){const t=e.getExtension("WEBGL_debug_renderer_info");return t?{vendor:e.getParameter(t.UNMASKED_VENDOR_WEBGL),renderer:e.getParameter(t.UNMASKED_RENDERER_WEBGL)}:null}(e):null},e.writeStream=e=>{const{path:n}=e;if(n){return t.createWriteStream(n)}throw new Error("path is not defined")},Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));