/*! For license information please see vendor-881ef50682618d9bd3d3.js.LICENSE.txt */ (self.webpackChunkExcalidraw=self.webpackChunkExcalidraw||[]).push([[736],{6233:function(t,e){var a;a=function(t){t.version="0.3.0";var e=function(){for(var t=0,e=new Array(256),a=0;256!=a;++a)t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=a)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1,e[a]=t;return"undefined"!=typeof Int32Array?new Int32Array(e):e}(),a="undefined"!=typeof Buffer;function n(t){for(var a=-1,n=0,i=t.length-7;n>>8^e[255&(a^t[n++])])>>>8^e[255&(a^t[n++])])>>>8^e[255&(a^t[n++])])>>>8^e[255&(a^t[n++])])>>>8^e[255&(a^t[n++])])>>>8^e[255&(a^t[n++])])>>>8^e[255&(a^t[n++])])>>>8^e[255&(a^t[n++])];for(;n>>8^e[255&(a^t[n++])];return-1^a}t.table=e,t.bstr=function(t){if(t.length>32768&&a)return n(new Buffer(t));for(var i=-1,r=t.length-1,s=0;s>>8,i=e[255&(i^t.charCodeAt(s++))]^i>>>8;return s===r&&(i=i>>>8^e[255&(i^t.charCodeAt(s))]),-1^i},t.buf=function(t){if(t.length>1e4)return n(t);for(var a=-1,i=0,r=t.length-3;i>>8^e[255&(a^t[i++])])>>>8^e[255&(a^t[i++])])>>>8^e[255&(a^t[i++])])>>>8^e[255&(a^t[i++])];for(;i>>8^e[255&(a^t[i++])];return-1^a},t.str=function(t){for(var a,n,i=-1,r=0,s=t.length;r>>8^e[255&(i^a)]:a<2048?i=(i=i>>>8^e[255&(i^(192|a>>6&31))])>>>8^e[255&(i^(128|63&a))]:a>=55296&&a<57344?(a=64+(1023&a),n=1023&t.charCodeAt(r++),i=(i=(i=(i=i>>>8^e[255&(i^(240|a>>8&7))])>>>8^e[255&(i^(128|a>>2&63))])>>>8^e[255&(i^(128|n>>6&15|3&a))])>>>8^e[255&(i^(128|63&n))]):i=(i=(i=i>>>8^e[255&(i^(224|a>>12&15))])>>>8^e[255&(i^(128|a>>6&63))])>>>8^e[255&(i^(128|63&a))];return-1^i}},"undefined"==typeof DO_NOT_EXPORT_CRC?a(e):a({})},2744:function(t,e,a){"use strict";var n={};(0,a(9187).assign)(n,a(4395),a(578),a(2684)),t.exports=n},4395:function(t,e,a){"use strict";var n=a(7651),i=a(9187),r=a(8592),s=a(5604),o=a(249),l=Object.prototype.toString;function h(t){if(!(this instanceof h))return new h(t);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var a=n.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==a)throw new Error(s[a]);if(e.header&&n.deflateSetHeader(this.strm,e.header),e.dictionary){var d;if(d="string"==typeof e.dictionary?r.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(a=n.deflateSetDictionary(this.strm,d)))throw new Error(s[a]);this._dict_set=!0}}function d(t,e){var a=new h(e);if(a.push(t,!0),a.err)throw a.msg||s[a.err];return a.result}h.prototype.push=function(t,e){var a,s,o=this.strm,h=this.options.chunkSize;if(this.ended)return!1;s=e===~~e?e:!0===e?4:0,"string"==typeof t?o.input=r.string2buf(t):"[object ArrayBuffer]"===l.call(t)?o.input=new Uint8Array(t):o.input=t,o.next_in=0,o.avail_in=o.input.length;do{if(0===o.avail_out&&(o.output=new i.Buf8(h),o.next_out=0,o.avail_out=h),1!==(a=n.deflate(o,s))&&0!==a)return this.onEnd(a),this.ended=!0,!1;0!==o.avail_out&&(0!==o.avail_in||4!==s&&2!==s)||("string"===this.options.to?this.onData(r.buf2binstring(i.shrinkBuf(o.output,o.next_out))):this.onData(i.shrinkBuf(o.output,o.next_out)))}while((o.avail_in>0||0===o.avail_out)&&1!==a);return 4===s?(a=n.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,0===a):2!==s||(this.onEnd(0),o.avail_out=0,!0)},h.prototype.onData=function(t){this.chunks.push(t)},h.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=h,e.deflate=d,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,d(t,e)}},578:function(t,e,a){"use strict";var n=a(7823),i=a(9187),r=a(8592),s=a(2684),o=a(5604),l=a(249),h=a(9968),d=Object.prototype.toString;function f(t){if(!(this instanceof f))return new f(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var a=n.inflateInit2(this.strm,e.windowBits);if(a!==s.Z_OK)throw new Error(o[a]);if(this.header=new h,n.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=r.string2buf(e.dictionary):"[object ArrayBuffer]"===d.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(a=n.inflateSetDictionary(this.strm,e.dictionary))!==s.Z_OK))throw new Error(o[a])}function u(t,e){var a=new f(e);if(a.push(t,!0),a.err)throw a.msg||o[a.err];return a.result}f.prototype.push=function(t,e){var a,o,l,h,f,u=this.strm,c=this.options.chunkSize,_=this.options.dictionary,w=!1;if(this.ended)return!1;o=e===~~e?e:!0===e?s.Z_FINISH:s.Z_NO_FLUSH,"string"==typeof t?u.input=r.binstring2buf(t):"[object ArrayBuffer]"===d.call(t)?u.input=new Uint8Array(t):u.input=t,u.next_in=0,u.avail_in=u.input.length;do{if(0===u.avail_out&&(u.output=new i.Buf8(c),u.next_out=0,u.avail_out=c),(a=n.inflate(u,s.Z_NO_FLUSH))===s.Z_NEED_DICT&&_&&(a=n.inflateSetDictionary(this.strm,_)),a===s.Z_BUF_ERROR&&!0===w&&(a=s.Z_OK,w=!1),a!==s.Z_STREAM_END&&a!==s.Z_OK)return this.onEnd(a),this.ended=!0,!1;u.next_out&&(0!==u.avail_out&&a!==s.Z_STREAM_END&&(0!==u.avail_in||o!==s.Z_FINISH&&o!==s.Z_SYNC_FLUSH)||("string"===this.options.to?(l=r.utf8border(u.output,u.next_out),h=u.next_out-l,f=r.buf2string(u.output,l),u.next_out=h,u.avail_out=c-h,h&&i.arraySet(u.output,u.output,l,h,0),this.onData(f)):this.onData(i.shrinkBuf(u.output,u.next_out)))),0===u.avail_in&&0===u.avail_out&&(w=!0)}while((u.avail_in>0||0===u.avail_out)&&a!==s.Z_STREAM_END);return a===s.Z_STREAM_END&&(o=s.Z_FINISH),o===s.Z_FINISH?(a=n.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===s.Z_OK):o!==s.Z_SYNC_FLUSH||(this.onEnd(s.Z_OK),u.avail_out=0,!0)},f.prototype.onData=function(t){this.chunks.push(t)},f.prototype.onEnd=function(t){t===s.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Inflate=f,e.inflate=u,e.inflateRaw=function(t,e){return(e=e||{}).raw=!0,u(t,e)},e.ungzip=u},9187:function(t,e){"use strict";var a="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(var i in a)n(a,i)&&(t[i]=a[i])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var i={arraySet:function(t,e,a,n,i){if(e.subarray&&t.subarray)t.set(e.subarray(a,a+n),i);else for(var r=0;r=252?6:o>=248?5:o>=240?4:o>=224?3:o>=192?2:1;function l(t,e){if(e<65534&&(t.subarray&&r||!t.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(t,e));for(var a="",s=0;s>>6,e[s++]=128|63&a):a<65536?(e[s++]=224|a>>>12,e[s++]=128|a>>>6&63,e[s++]=128|63&a):(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63,e[s++]=128|a>>>6&63,e[s++]=128|63&a);return e},e.buf2binstring=function(t){return l(t,t.length)},e.binstring2buf=function(t){for(var e=new n.Buf8(t.length),a=0,i=e.length;a4)h[n++]=65533,a+=r-1;else{for(i&=2===r?31:3===r?15:7;r>1&&a1?h[n++]=65533:i<65536?h[n++]=i:(i-=65536,h[n++]=55296|i>>10&1023,h[n++]=56320|1023&i)}return l(h,n)},e.utf8border=function(t,e){var a;for((e=e||t.length)>t.length&&(e=t.length),a=e-1;a>=0&&128==(192&t[a]);)a--;return a<0||0===a?e:a+s[t[a]]>e?a:e}},3693:function(t){"use strict";t.exports=function(t,e,a,n){for(var i=65535&t|0,r=t>>>16&65535|0,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{r=r+(i=i+e[n++]|0)|0}while(--s);i%=65521,r%=65521}return i|r<<16|0}},2684:function(t){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},8464:function(t){"use strict";var e=function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}();t.exports=function(t,a,n,i){var r=e,s=i+n;t^=-1;for(var o=i;o>>8^r[255&(t^a[o])];return-1^t}},7651:function(t,e,a){"use strict";var n,i=a(9187),r=a(8676),s=a(3693),o=a(8464),l=a(5604),h=-2,d=258,f=262,u=103,c=113,_=666;function w(t,e){return t.msg=l[e],e}function g(t){return(t<<1)-(t>4?9:0)}function p(t){for(var e=t.length;--e>=0;)t[e]=0}function m(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(i.arraySet(t.output,e.pending_buf,e.pending_out,a,t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))}function b(t,e){r._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,m(t.strm)}function v(t,e){t.pending_buf[t.pending++]=e}function k(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function y(t,e){var a,n,i=t.max_chain_length,r=t.strstart,s=t.prev_length,o=t.nice_match,l=t.strstart>t.w_size-f?t.strstart-(t.w_size-f):0,h=t.window,u=t.w_mask,c=t.prev,_=t.strstart+d,w=h[r+s-1],g=h[r+s];t.prev_length>=t.good_match&&(i>>=2),o>t.lookahead&&(o=t.lookahead);do{if(h[(a=e)+s]===g&&h[a+s-1]===w&&h[a]===h[r]&&h[++a]===h[r+1]){r+=2,a++;do{}while(h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&h[++r]===h[++a]&&r<_);if(n=d-(_-r),r=_-d,n>s){if(t.match_start=e,s=n,n>=o)break;w=h[r+s-1],g=h[r+s]}}}while((e=c[e&u])>l&&0!=--i);return s<=t.lookahead?s:t.lookahead}function x(t){var e,a,n,r,l,h,d,u,c,_,w=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=w+(w-f)){i.arraySet(t.window,t.window,w,w,0),t.match_start-=w,t.strstart-=w,t.block_start-=w,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=w?n-w:0}while(--a);e=a=w;do{n=t.prev[--e],t.prev[e]=n>=w?n-w:0}while(--a);r+=w}if(0===t.strm.avail_in)break;if(h=t.strm,d=t.window,u=t.strstart+t.lookahead,c=r,_=void 0,(_=h.avail_in)>c&&(_=c),a=0===_?0:(h.avail_in-=_,i.arraySet(d,h.input,h.next_in,_,u),1===h.state.wrap?h.adler=s(h.adler,d,_,u):2===h.state.wrap&&(h.adler=o(h.adler,d,_,u)),h.next_in+=_,h.total_in+=_,_),t.lookahead+=a,t.lookahead+t.insert>=3)for(l=t.strstart-t.insert,t.ins_h=t.window[l],t.ins_h=(t.ins_h<=3&&(t.ins_h=(t.ins_h<=3)if(n=r._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<=3&&(t.ins_h=(t.ins_h<4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,n=r._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<15&&(o=2,n-=16),r<1||r>9||8!==a||n<8||n>15||e<0||e>9||s<0||s>4)return w(t,h);8===n&&(n=9);var l=new S;return t.state=l,l.strm=t,l.wrap=o,l.gzhead=null,l.w_bits=n,l.w_size=1<t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(x(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,b(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-f&&(b(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(b(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(b(t,!1),t.strm.avail_out),1)})),new E(4,4,8,4,z),new E(4,5,16,8,z),new E(4,6,32,32,z),new E(4,4,16,16,A),new E(8,16,32,32,A),new E(8,16,128,128,A),new E(8,32,128,256,A),new E(32,128,258,1024,A),new E(32,258,258,4096,A)],e.deflateInit=function(t,e){return I(t,e,8,15,8,0)},e.deflateInit2=I,e.deflateReset=C,e.deflateResetKeep=B,e.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?h:(t.state.gzhead=e,0):h},e.deflate=function(t,e){var a,i,s,l;if(!t||!t.state||e>5||e<0)return t?w(t,h):h;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||i.status===_&&4!==e)return w(t,0===t.avail_out?-5:h);if(i.strm=t,a=i.last_flush,i.last_flush=e,42===i.status)if(2===i.wrap)t.adler=0,v(i,31),v(i,139),v(i,8),i.gzhead?(v(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),v(i,255&i.gzhead.time),v(i,i.gzhead.time>>8&255),v(i,i.gzhead.time>>16&255),v(i,i.gzhead.time>>24&255),v(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),v(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(v(i,255&i.gzhead.extra.length),v(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=o(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(v(i,0),v(i,0),v(i,0),v(i,0),v(i,0),v(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),v(i,3),i.status=c);else{var f=8+(i.w_bits-8<<4)<<8;f|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(f|=32),f+=31-f%31,i.status=c,k(i,f),0!==i.strstart&&(k(i,t.adler>>>16),k(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(s=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>s&&(t.adler=o(t.adler,i.pending_buf,i.pending-s,s)),m(t),s=i.pending,i.pending!==i.pending_buf_size));)v(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>s&&(t.adler=o(t.adler,i.pending_buf,i.pending-s,s)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(t.adler=o(t.adler,i.pending_buf,i.pending-s,s)),m(t),s=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindexs&&(t.adler=o(t.adler,i.pending_buf,i.pending-s,s)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(t.adler=o(t.adler,i.pending_buf,i.pending-s,s)),m(t),s=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindexs&&(t.adler=o(t.adler,i.pending_buf,i.pending-s,s)),0===l&&(i.status=u)}else i.status=u;if(i.status===u&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&m(t),i.pending+2<=i.pending_buf_size&&(v(i,255&t.adler),v(i,t.adler>>8&255),t.adler=0,i.status=c)):i.status=c),0!==i.pending){if(m(t),0===t.avail_out)return i.last_flush=-1,0}else if(0===t.avail_in&&g(e)<=g(a)&&4!==e)return w(t,-5);if(i.status===_&&0!==t.avail_in)return w(t,-5);if(0!==t.avail_in||0!==i.lookahead||0!==e&&i.status!==_){var y=2===i.strategy?function(t,e){for(var a;;){if(0===t.lookahead&&(x(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,a=r._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(b(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(b(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(b(t,!1),0===t.strm.avail_out)?1:2}(i,e):3===i.strategy?function(t,e){for(var a,n,i,s,o=t.window;;){if(t.lookahead<=d){if(x(t),t.lookahead<=d&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=o[i=t.strstart-1])===o[++i]&&n===o[++i]&&n===o[++i]){s=t.strstart+d;do{}while(n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&n===o[++i]&&it.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=r._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=r._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(b(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(b(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(b(t,!1),0===t.strm.avail_out)?1:2}(i,e):n[i.level].func(i,e);if(3!==y&&4!==y||(i.status=_),1===y||3===y)return 0===t.avail_out&&(i.last_flush=-1),0;if(2===y&&(1===e?r._tr_align(i):5!==e&&(r._tr_stored_block(i,0,0,!1),3===e&&(p(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),m(t),0===t.avail_out))return i.last_flush=-1,0}return 4!==e?0:i.wrap<=0?1:(2===i.wrap?(v(i,255&t.adler),v(i,t.adler>>8&255),v(i,t.adler>>16&255),v(i,t.adler>>24&255),v(i,255&t.total_in),v(i,t.total_in>>8&255),v(i,t.total_in>>16&255),v(i,t.total_in>>24&255)):(k(i,t.adler>>>16),k(i,65535&t.adler)),m(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},e.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&e!==u&&e!==c&&e!==_?w(t,h):(t.state=null,e===c?w(t,-3):0):h},e.deflateSetDictionary=function(t,e){var a,n,r,o,l,d,f,u,c=e.length;if(!t||!t.state)return h;if(2===(o=(a=t.state).wrap)||1===o&&42!==a.status||a.lookahead)return h;for(1===o&&(t.adler=s(t.adler,e,c,0)),a.wrap=0,c>=a.w_size&&(0===o&&(p(a.head),a.strstart=0,a.block_start=0,a.insert=0),u=new i.Buf8(a.w_size),i.arraySet(u,e,c-a.w_size,a.w_size,0),e=u,c=a.w_size),l=t.avail_in,d=t.next_in,f=t.input,t.avail_in=c,t.next_in=0,t.input=e,x(a);a.lookahead>=3;){n=a.strstart,r=a.lookahead-2;do{a.ins_h=(a.ins_h<>>=v=b>>>24,_-=v,0===(v=b>>>16&255))E[r++]=65535&b;else{if(!(16&v)){if(0==(64&v)){b=w[(65535&b)+(c&(1<>>=v,_-=v),_<15&&(c+=A[n++]<<_,_+=8,c+=A[n++]<<_,_+=8),b=g[c&m];a:for(;;){if(c>>>=v=b>>>24,_-=v,!(16&(v=b>>>16&255))){if(0==(64&v)){b=g[(65535&b)+(c&(1<l){t.msg="invalid distance too far back",a.mode=30;break t}if(c>>>=v,_-=v,y>(v=r-s)){if((v=y-v)>d&&a.sane){t.msg="invalid distance too far back",a.mode=30;break t}if(x=0,z=u,0===f){if(x+=h-v,v2;)E[r++]=z[x++],E[r++]=z[x++],E[r++]=z[x++],k-=3;k&&(E[r++]=z[x++],k>1&&(E[r++]=z[x++]))}else{x=r-y;do{E[r++]=E[x++],E[r++]=E[x++],E[r++]=E[x++],k-=3}while(k>2);k&&(E[r++]=E[x++],k>1&&(E[r++]=E[x++]))}break}}break}}while(n>3,c&=(1<<(_-=k<<3))-1,t.next_in=n,t.next_out=r,t.avail_in=n>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function u(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function c(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new n.Buf32(852),e.distcode=e.distdyn=new n.Buf32(592),e.sane=1,e.back=-1,0):l}function _(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,c(t)):l}function w(t,e){var a,n;return t&&t.state?(n=t.state,e<0?(a=0,e=-e):(a=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?l:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=a,n.wbits=e,_(t))):l}function g(t,e){var a,n;return t?(n=new u,t.state=n,n.window=null,0!==(a=w(t,e))&&(t.state=null),a):l}var p,m,b=!0;function v(t){if(b){var e;for(p=new n.Buf32(512),m=new n.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(o(1,t.lens,0,288,p,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;o(2,t.lens,0,32,m,0,t.work,{bits:5}),b=!1}t.lencode=p,t.lenbits=9,t.distcode=m,t.distbits=5}function k(t,e,a,i){var r,s=t.state;return null===s.window&&(s.wsize=1<=s.wsize?(n.arraySet(s.window,e,a-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):((r=s.wsize-s.wnext)>i&&(r=i),n.arraySet(s.window,e,a-i,r,s.wnext),(i-=r)?(n.arraySet(s.window,e,a-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=r,s.wnext===s.wsize&&(s.wnext=0),s.whave>>8&255,a.check=r(a.check,F,2,0),m=0,b=0,a.mode=2;break}if(a.flags=0,a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&m)<<8)+(m>>8))%31){t.msg="incorrect header check",a.mode=d;break}if(8!=(15&m)){t.msg="unknown compression method",a.mode=d;break}if(b-=4,O=8+(15&(m>>>=4)),0===a.wbits)a.wbits=O;else if(O>a.wbits){t.msg="invalid window size",a.mode=d;break}a.dmax=1<>8&1),512&a.flags&&(F[0]=255&m,F[1]=m>>>8&255,a.check=r(a.check,F,2,0)),m=0,b=0,a.mode=3;case 3:for(;b<32;){if(0===g)break t;g--,m+=u[_++]<>>8&255,F[2]=m>>>16&255,F[3]=m>>>24&255,a.check=r(a.check,F,4,0)),m=0,b=0,a.mode=4;case 4:for(;b<16;){if(0===g)break t;g--,m+=u[_++]<>8),512&a.flags&&(F[0]=255&m,F[1]=m>>>8&255,a.check=r(a.check,F,2,0)),m=0,b=0,a.mode=5;case 5:if(1024&a.flags){for(;b<16;){if(0===g)break t;g--,m+=u[_++]<>>8&255,a.check=r(a.check,F,2,0)),m=0,b=0}else a.head&&(a.head.extra=null);a.mode=6;case 6:if(1024&a.flags&&((z=a.length)>g&&(z=g),z&&(a.head&&(O=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Array(a.head.extra_len)),n.arraySet(a.head.extra,u,_,z,O)),512&a.flags&&(a.check=r(a.check,u,z,_)),g-=z,_+=z,a.length-=z),a.length))break t;a.length=0,a.mode=7;case 7:if(2048&a.flags){if(0===g)break t;z=0;do{O=u[_+z++],a.head&&O&&a.length<65536&&(a.head.name+=String.fromCharCode(O))}while(O&&z>9&1,a.head.done=!0),t.adler=a.check=0,a.mode=h;break;case 10:for(;b<32;){if(0===g)break t;g--,m+=u[_++]<>>=7&b,b-=7&b,a.mode=27;break}for(;b<3;){if(0===g)break t;g--,m+=u[_++]<>>=1)){case 0:a.mode=14;break;case 1:if(v(a),a.mode=20,6===e){m>>>=2,b-=2;break t}break;case 2:a.mode=17;break;case 3:t.msg="invalid block type",a.mode=d}m>>>=2,b-=2;break;case 14:for(m>>>=7&b,b-=7&b;b<32;){if(0===g)break t;g--,m+=u[_++]<>>16^65535)){t.msg="invalid stored block lengths",a.mode=d;break}if(a.length=65535&m,m=0,b=0,a.mode=15,6===e)break t;case 15:a.mode=16;case 16:if(z=a.length){if(z>g&&(z=g),z>p&&(z=p),0===z)break t;n.arraySet(c,u,_,z,w),g-=z,_+=z,p-=z,w+=z,a.length-=z;break}a.mode=h;break;case 17:for(;b<14;){if(0===g)break t;g--,m+=u[_++]<>>=5,b-=5,a.ndist=1+(31&m),m>>>=5,b-=5,a.ncode=4+(15&m),m>>>=4,b-=4,a.nlen>286||a.ndist>30){t.msg="too many length or distance symbols",a.mode=d;break}a.have=0,a.mode=18;case 18:for(;a.have>>=3,b-=3}for(;a.have<19;)a.lens[L[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,N={bits:a.lenbits},U=o(0,a.lens,0,19,a.lencode,0,a.work,N),a.lenbits=N.bits,U){t.msg="invalid code lengths set",a.mode=d;break}a.have=0,a.mode=19;case 19:for(;a.have>>16&255,C=65535&T,!((S=T>>>24)<=b);){if(0===g)break t;g--,m+=u[_++]<>>=S,b-=S,a.lens[a.have++]=C;else{if(16===C){for(D=S+2;b>>=S,b-=S,0===a.have){t.msg="invalid bit length repeat",a.mode=d;break}O=a.lens[a.have-1],z=3+(3&m),m>>>=2,b-=2}else if(17===C){for(D=S+3;b>>=S)),m>>>=3,b-=3}else{for(D=S+7;b>>=S)),m>>>=7,b-=7}if(a.have+z>a.nlen+a.ndist){t.msg="invalid bit length repeat",a.mode=d;break}for(;z--;)a.lens[a.have++]=O}}if(a.mode===d)break;if(0===a.lens[256]){t.msg="invalid code -- missing end-of-block",a.mode=d;break}if(a.lenbits=9,N={bits:a.lenbits},U=o(1,a.lens,0,a.nlen,a.lencode,0,a.work,N),a.lenbits=N.bits,U){t.msg="invalid literal/lengths set",a.mode=d;break}if(a.distbits=6,a.distcode=a.distdyn,N={bits:a.distbits},U=o(2,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,N),a.distbits=N.bits,U){t.msg="invalid distances set",a.mode=d;break}if(a.mode=20,6===e)break t;case 20:a.mode=21;case 21:if(g>=6&&p>=258){t.next_out=w,t.avail_out=p,t.next_in=_,t.avail_in=g,a.hold=m,a.bits=b,s(t,x),w=t.next_out,c=t.output,p=t.avail_out,_=t.next_in,u=t.input,g=t.avail_in,m=a.hold,b=a.bits,a.mode===h&&(a.back=-1);break}for(a.back=0;B=(T=a.lencode[m&(1<>>16&255,C=65535&T,!((S=T>>>24)<=b);){if(0===g)break t;g--,m+=u[_++]<>I)])>>>16&255,C=65535&T,!(I+(S=T>>>24)<=b);){if(0===g)break t;g--,m+=u[_++]<>>=I,b-=I,a.back+=I}if(m>>>=S,b-=S,a.back+=S,a.length=C,0===B){a.mode=26;break}if(32&B){a.back=-1,a.mode=h;break}if(64&B){t.msg="invalid literal/length code",a.mode=d;break}a.extra=15&B,a.mode=22;case 22:if(a.extra){for(D=a.extra;b>>=a.extra,b-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=23;case 23:for(;B=(T=a.distcode[m&(1<>>16&255,C=65535&T,!((S=T>>>24)<=b);){if(0===g)break t;g--,m+=u[_++]<>I)])>>>16&255,C=65535&T,!(I+(S=T>>>24)<=b);){if(0===g)break t;g--,m+=u[_++]<>>=I,b-=I,a.back+=I}if(m>>>=S,b-=S,a.back+=S,64&B){t.msg="invalid distance code",a.mode=d;break}a.offset=C,a.extra=15&B,a.mode=24;case 24:if(a.extra){for(D=a.extra;b>>=a.extra,b-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){t.msg="invalid distance too far back",a.mode=d;break}a.mode=25;case 25:if(0===p)break t;if(z=x-p,a.offset>z){if((z=a.offset-z)>a.whave&&a.sane){t.msg="invalid distance too far back",a.mode=d;break}z>a.wnext?(z-=a.wnext,A=a.wsize-z):A=a.wnext-z,z>a.length&&(z=a.length),E=a.window}else E=c,A=w-a.offset,z=a.length;z>p&&(z=p),p-=z,a.length-=z;do{c[w++]=E[A++]}while(--z);0===a.length&&(a.mode=21);break;case 26:if(0===p)break t;c[w++]=a.length,p--,a.mode=21;break;case 27:if(a.wrap){for(;b<32;){if(0===g)break t;g--,m|=u[_++]<=1&&0===D[S];S--);if(B>S&&(B=S),0===S)return d[f++]=20971520,d[f++]=20971520,c.bits=1,0;for(E=1;E0&&(0===t||1!==S))return-1;for(T[1]=0,z=1;z852||2===t&&R>592)return 1;for(;;){v=z-I,u[A]b?(k=F[L+u[A]],y=U[N+u[A]]):(k=96,y=0),_=1<>I)+(w-=_)]=v<<24|k<<16|y|0}while(0!==w);for(_=1<>=1;if(0!==_?(O&=_-1,O+=_):O=0,A++,0==--D[z]){if(z===S)break;z=e[a+u[A]]}if(z>B&&(O&p)!==g){for(0===I&&(I=B),m+=E,Z=1<<(C=z-I);C+I852||2===t&&R>592)return 1;d[g=O&p]=B<<24|C<<16|m-f|0}}return 0!==O&&(d[m+O]=z-I<<24|64<<16|0),c.bits=B,0}},5604:function(t){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},8676:function(t,e,a){"use strict";var n=a(9187);function i(t){for(var e=t.length;--e>=0;)t[e]=0}var r=256,s=286,o=30,l=15,h=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],d=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],f=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],c=new Array(576);i(c);var _=new Array(60);i(_);var w=new Array(512);i(w);var g=new Array(256);i(g);var p=new Array(29);i(p);var m,b,v,k=new Array(o);function y(t,e,a,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function x(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function z(t){return t<256?w[t]:w[256+(t>>>7)]}function A(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function E(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<>>=1,a<<=1}while(--e>0);return a>>>1}function C(t,e,a){var n,i,r=new Array(16),s=0;for(n=1;n<=l;n++)r[n]=s=s+a[n-1]<<1;for(i=0;i<=e;i++){var o=t[2*i+1];0!==o&&(t[2*i]=B(r[o]++,o))}}function I(t){var e;for(e=0;e8?A(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function R(t,e,a,n){var i=2*e,r=2*a;return t[i]>1;a>=1;a--)O(t,r,a);i=h;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],O(t,r,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,r[2*i]=r[2*a]+r[2*n],t.depth[i]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,r[2*a+1]=r[2*n+1]=i,t.heap[1]=i++,O(t,r,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,i,r,s,o,h=e.dyn_tree,d=e.max_code,f=e.stat_desc.static_tree,u=e.stat_desc.has_stree,c=e.stat_desc.extra_bits,_=e.stat_desc.extra_base,w=e.stat_desc.max_length,g=0;for(r=0;r<=l;r++)t.bl_count[r]=0;for(h[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(r=h[2*h[2*(n=t.heap[a])+1]+1]+1)>w&&(r=w,g++),h[2*n+1]=r,n>d||(t.bl_count[r]++,s=0,n>=_&&(s=c[n-_]),o=h[2*n],t.opt_len+=o*(r+s),u&&(t.static_len+=o*(f[2*n+1]+s)));if(0!==g){do{for(r=w-1;0===t.bl_count[r];)r--;t.bl_count[r]--,t.bl_count[r+1]+=2,t.bl_count[w]--,g-=2}while(g>0);for(r=w;0!==r;r--)for(n=t.bl_count[r];0!==n;)(i=t.heap[--a])>d||(h[2*i+1]!==r&&(t.opt_len+=(r-h[2*i+1])*h[2*i],h[2*i+1]=r),n--)}}(t,e),C(r,d,t.bl_count)}function D(t,e,a){var n,i,r=-1,s=e[1],o=0,l=7,h=4;for(0===s&&(l=138,h=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)i=s,s=e[2*(n+1)+1],++o>=7;n0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e=3&&0===t.bl_tree[2*u[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=a+5,a+4<=i&&-1!==e?L(t,e,a,n):4===t.strategy||s===i?(E(t,2+(n?1:0),3),U(t,c,_)):(E(t,4+(n?1:0),3),function(t,e,a,n){var i;for(E(t,e-257,5),E(t,a-1,5),E(t,n-4,4),i=0;i>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(g[a]+r+1)]++,t.dyn_dtree[2*z(e)]++),t.last_lit===t.lit_bufsize-1},e._tr_align=function(t){E(t,2,3),S(t,256,c),function(t){16===t.bi_valid?(A(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},249:function(t){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},9066:function(t){t.exports=function(t){t.data&&t.name&&(t=t.data);for(var e=!0,a="",n="",i=0;i=80)throw new Error('Keyword "'+t+'" is longer than the 79-character limit imposed by the PNG specification');for(var a,n=t.length+e.length+1,i=new Uint8Array(n),r=0,s=0;sr;)n[i-r]=t[i];return n}},5756:function(t,e,a){"use strict";a.r(e);const n=async(t,e,a=t.name)=>{const i=[],r=[];for await(const s of t.values()){const o=`${a}/${s.name}`;"file"===s.kind?r.push(s.getFile().then((e=>(e.directoryHandle=t,Object.defineProperty(e,"webkitRelativePath",{configurable:!0,enumerable:!0,get:()=>o}))))):"directory"===s.kind&&e&&i.push(n(s,e,o))}return[...(await Promise.all(i)).flat(),...await Promise.all(r)]};e.default=async(t={})=>{t.recursive=t.recursive||!1;const e=await window.showDirectoryPicker({id:t.id,startIn:t.startIn});return n(e,t.recursive)}},6629:function(t,e,a){"use strict";a.r(e);const n=async t=>{const e=await t.getFile();return e.handle=t,e};e.default=async(t=[{}])=>{Array.isArray(t)||(t=[t]);const e=[];t.forEach(((t,a)=>{e[a]={description:t.description||"",accept:{}},t.mimeTypes?t.mimeTypes.map((n=>{e[a].accept[n]=t.extensions||[]})):e[a].accept["*/*"]=t.extensions||[]}));const a=await window.showOpenFilePicker({id:t[0].id,startIn:t[0].startIn,types:e,multiple:t[0].multiple||!1,excludeAcceptAllOption:t[0].excludeAcceptAllOption||!1}),i=await Promise.all(a.map(n));return t[0].multiple?i:i[0]}},4868:function(t,e,a){"use strict";a.r(e),e.default=async(t,e=[{}],a=null,n=!1)=>{Array.isArray(e)||(e=[e]),e[0].fileName=e[0].fileName||"Untitled";const i=[];if(e.forEach(((e,a)=>{i[a]={description:e.description||"",accept:{}},e.mimeTypes?(0===a&&e.mimeTypes.push(t.type),e.mimeTypes.map((t=>{i[a].accept[t]=e.extensions||[]}))):i[a].accept[t.type]=e.extensions||[]})),a)try{await a.getFile()}catch(t){if(a=null,n)throw t}const r=a||await window.showSaveFilePicker({suggestedName:e[0].fileName,id:e[0].id,startIn:e[0].startIn,types:i,excludeAcceptAllOption:e[0].excludeAcceptAllOption||!1}),s=await r.createWritable();return await s.write(t),await s.close(),r}},8396:function(t,e,a){"use strict";a.r(e),e.default=async(t=[{}])=>(Array.isArray(t)||(t=[t]),t[0].recursive=t[0].recursive||!1,new Promise(((e,a)=>{const n=document.createElement("input");n.type="file",n.webkitdirectory=!0;const i=t=>{"function"==typeof r&&r(),e(t)},r=t[0].legacySetup&&t[0].legacySetup(i,(()=>r(a)),n);n.addEventListener("change",(()=>{i(n.multiple?Array.from(n.files):n.files[0])})),n.addEventListener("change",(()=>{let e=Array.from(n.files);t[0].recursive||(e=e.filter((t=>2===t.webkitRelativePath.split("/").length))),i(e)})),n.click()})))},3112:function(t,e,a){"use strict";a.r(e),e.default=async(t=[{}])=>(Array.isArray(t)||(t=[t]),new Promise(((e,a)=>{const n=document.createElement("input");n.type="file";const i=[...t.map((t=>t.mimeTypes||[])).join(),t.map((t=>t.extensions||[])).join()].join();n.multiple=t[0].multiple||!1,n.accept=i||"";const r=t=>{"function"==typeof s&&s(),e(t)},s=t[0].legacySetup&&t[0].legacySetup(r,(()=>s(a)),n);n.addEventListener("change",(()=>{r(n.multiple?Array.from(n.files):n.files[0])})),n.click()})))},6882:function(t,e,a){"use strict";a.r(e),e.default=async(t,e={})=>{Array.isArray(e)&&(e=e[0]);const a=document.createElement("a");a.download=e.fileName||"Untitled",a.href=URL.createObjectURL(t);const n=t=>{"function"==typeof i&&i(),resolve(t)},i=e.legacySetup&&e.legacySetup(n,(()=>i(reject)),a);return a.addEventListener("click",(()=>{setTimeout((()=>URL.revokeObjectURL(a.href)),3e4),n(null)})),a.click(),null}}}]);