diff --git a/build/assets/audio-tab-off 3.svg b/build/assets/audio-tab-off 3.svg new file mode 100644 index 0000000..9a97455 --- /dev/null +++ b/build/assets/audio-tab-off 3.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/build/assets/audio-tab-on 2.svg b/build/assets/audio-tab-on 2.svg new file mode 100644 index 0000000..f14a573 --- /dev/null +++ b/build/assets/audio-tab-on 2.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/build/assets/backup-favicon 2.ico b/build/assets/backup-favicon 2.ico new file mode 100644 index 0000000..a53e9c3 Binary files /dev/null and b/build/assets/backup-favicon 2.ico differ diff --git a/build/assets/backup-icon 2.svg b/build/assets/backup-icon 2.svg new file mode 100644 index 0000000..a3554e3 --- /dev/null +++ b/build/assets/backup-icon 2.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/build/assets/blank 2.mp4 b/build/assets/blank 2.mp4 new file mode 100644 index 0000000..d8982b6 Binary files /dev/null and b/build/assets/blank 2.mp4 differ diff --git a/build/assets/camera-off 2.svg b/build/assets/camera-off 2.svg new file mode 100644 index 0000000..0cea3fe --- /dev/null +++ b/build/assets/camera-off 2.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/build/assets/camera-off-blue 2.svg b/build/assets/camera-off-blue 2.svg new file mode 100644 index 0000000..33c7bcf --- /dev/null +++ b/build/assets/camera-off-blue 2.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/build/assets/camera-on 2.svg b/build/assets/camera-on 2.svg new file mode 100644 index 0000000..36c0812 --- /dev/null +++ b/build/assets/camera-on 2.svg @@ -0,0 +1,3 @@ + + + diff --git a/build/assets/camera-tab-icon 2.svg b/build/assets/camera-tab-icon 2.svg new file mode 100644 index 0000000..573a355 --- /dev/null +++ b/build/assets/camera-tab-icon 2.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/build/assets/camera-tab-icon-off 2.svg b/build/assets/camera-tab-icon-off 2.svg new file mode 100644 index 0000000..026369a --- /dev/null +++ b/build/assets/camera-tab-icon-off 2.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/build/assets/camera-tab-icon-on 2.svg b/build/assets/camera-tab-icon-on 2.svg new file mode 100644 index 0000000..06fa0f4 --- /dev/null +++ b/build/assets/camera-tab-icon-on 2.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/build/assets/check-white 3.svg b/build/assets/check-white 3.svg new file mode 100644 index 0000000..4ae1a88 --- /dev/null +++ b/build/assets/check-white 3.svg @@ -0,0 +1,3 @@ + + + diff --git a/build/assets/copy-link 2.svg b/build/assets/copy-link 2.svg new file mode 100644 index 0000000..d3da25f --- /dev/null +++ b/build/assets/copy-link 2.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/build/assets/dropdown 2.svg b/build/assets/dropdown 2.svg new file mode 100644 index 0000000..ff8ccb0 --- /dev/null +++ b/build/assets/dropdown 2.svg @@ -0,0 +1,3 @@ + + + diff --git a/build/assets/grab-icon-popup 2.svg b/build/assets/grab-icon-popup 2.svg new file mode 100644 index 0000000..5f7b05a --- /dev/null +++ b/build/assets/grab-icon-popup 2.svg @@ -0,0 +1,3 @@ + + + diff --git a/build/assets/icon-128 2.png b/build/assets/icon-128 2.png new file mode 100644 index 0000000..dcbc4df Binary files /dev/null and b/build/assets/icon-128 2.png differ diff --git a/build/assets/icon-34 2.png b/build/assets/icon-34 2.png new file mode 100644 index 0000000..c7ad7b8 Binary files /dev/null and b/build/assets/icon-34 2.png differ diff --git a/build/assets/loading-camera 2.svg b/build/assets/loading-camera 2.svg new file mode 100644 index 0000000..e89eaab --- /dev/null +++ b/build/assets/loading-camera 2.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/build/assets/logo-text 2.svg b/build/assets/logo-text 2.svg new file mode 100644 index 0000000..2ac763b --- /dev/null +++ b/build/assets/logo-text 2.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/build/assets/mic-off-blue 2.svg b/build/assets/mic-off-blue 2.svg new file mode 100644 index 0000000..2483fb6 --- /dev/null +++ b/build/assets/mic-off-blue 2.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/build/assets/mic-on 2.svg b/build/assets/mic-on 2.svg new file mode 100644 index 0000000..eab6fc5 --- /dev/null +++ b/build/assets/mic-on 2.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/build/assets/mockup-tab-off 2.svg b/build/assets/mockup-tab-off 2.svg new file mode 100644 index 0000000..b165b8b --- /dev/null +++ b/build/assets/mockup-tab-off 2.svg @@ -0,0 +1,4 @@ + + + + diff --git a/build/assets/more-actions 2.svg b/build/assets/more-actions 2.svg new file mode 100644 index 0000000..024e0cd --- /dev/null +++ b/build/assets/more-actions 2.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/build/assets/more-icon-popup 2.svg b/build/assets/more-icon-popup 2.svg new file mode 100644 index 0000000..ec09828 --- /dev/null +++ b/build/assets/more-icon-popup 2.svg @@ -0,0 +1,3 @@ + + + diff --git a/build/assets/pfp 2.png b/build/assets/pfp 2.png new file mode 100644 index 0000000..f31f8a1 Binary files /dev/null and b/build/assets/pfp 2.png differ diff --git a/build/assets/pip-mode 2.svg b/build/assets/pip-mode 2.svg new file mode 100644 index 0000000..245380b --- /dev/null +++ b/build/assets/pip-mode 2.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/build/assets/plyr 2.svg b/build/assets/plyr 2.svg new file mode 100644 index 0000000..62ab257 --- /dev/null +++ b/build/assets/plyr 2.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/build/assets/record-tab-active 2.png b/build/assets/record-tab-active 2.png new file mode 100644 index 0000000..600ed49 Binary files /dev/null and b/build/assets/record-tab-active 2.png differ diff --git a/build/assets/record-tab-inactive 2.svg b/build/assets/record-tab-inactive 2.svg new file mode 100644 index 0000000..f0a8409 --- /dev/null +++ b/build/assets/record-tab-inactive 2.svg @@ -0,0 +1,4 @@ + + + + diff --git a/build/assets/recording-logo 2.png b/build/assets/recording-logo 2.png new file mode 100644 index 0000000..abf5e40 Binary files /dev/null and b/build/assets/recording-logo 2.png differ diff --git a/build/assets/region-tab-on 2.svg b/build/assets/region-tab-on 2.svg new file mode 100644 index 0000000..00335fd --- /dev/null +++ b/build/assets/region-tab-on 2.svg @@ -0,0 +1,3 @@ + + + diff --git a/build/assets/satoshi 2.css b/build/assets/satoshi 2.css new file mode 100644 index 0000000..c7faaa7 --- /dev/null +++ b/build/assets/satoshi 2.css @@ -0,0 +1,178 @@ +/** + * @license + * + * Font Family: Satoshi + * Designed by: Deni Anggara + * URL: https://www.fontshare.com/fonts/satoshi + * © 2023 Indian Type Foundry + * + * Font Styles: + * Satoshi Variable(Variable font) + * Satoshi Variable Italic(Variable font) + * Satoshi Light + * Satoshi Light Italic + * Satoshi Regular + * Satoshi Italic + * Satoshi Medium + * Satoshi Medium Italic + * Satoshi Bold + * Satoshi Bold Italic + * Satoshi Black + * Satoshi Black Italic + * +*/ + + +/** +* This is a variable font +* You can controll variable axes as shown below: +* font-variation-settings: 'wght' 900.0; +* +* available axes: + +* 'wght' (range from 300.0 to 900.0) + +*/ + +@font-face { + font-family: 'Satoshi-Variable'; + src: url('../fonts/Satoshi-Variable.woff2') format('woff2'), + url('../fonts/Satoshi-Variable.woff') format('woff'), + url('../fonts/Satoshi-Variable.ttf') format('truetype'); + font-weight: 300 900; + font-display: swap; + font-style: normal; +} + + +/** +* This is a variable font +* You can controll variable axes as shown below: +* font-variation-settings: 'wght' 900.0; +* +* available axes: + +* 'wght' (range from 300.0 to 900.0) + +*/ + +@font-face { + font-family: 'Satoshi-VariableItalic'; + src: url('../fonts/Satoshi-VariableItalic.woff2') format('woff2'), + url('../fonts/Satoshi-VariableItalic.woff') format('woff'), + url('../fonts/Satoshi-VariableItalic.ttf') format('truetype'); + font-weight: 300 900; + font-display: swap; + font-style: italic; +} + + +@font-face { + font-family: 'Satoshi-Light'; + src: url('../fonts/Satoshi-Light.woff2') format('woff2'), + url('../fonts/Satoshi-Light.woff') format('woff'), + url('../fonts/Satoshi-Light.ttf') format('truetype'); + font-weight: 300; + font-display: swap; + font-style: normal; +} + + +@font-face { + font-family: 'Satoshi-LightItalic'; + src: url('../fonts/Satoshi-LightItalic.woff2') format('woff2'), + url('../fonts/Satoshi-LightItalic.woff') format('woff'), + url('../fonts/Satoshi-LightItalic.ttf') format('truetype'); + font-weight: 300; + font-display: swap; + font-style: italic; +} + + +@font-face { + font-family: 'Satoshi-Regular'; + src: url('../fonts/Satoshi-Regular.woff2') format('woff2'), + url('../fonts/Satoshi-Regular.woff') format('woff'), + url('../fonts/Satoshi-Regular.ttf') format('truetype'); + font-weight: 400; + font-display: swap; + font-style: normal; +} + + +@font-face { + font-family: 'Satoshi-Italic'; + src: url('../fonts/Satoshi-Italic.woff2') format('woff2'), + url('../fonts/Satoshi-Italic.woff') format('woff'), + url('../fonts/Satoshi-Italic.ttf') format('truetype'); + font-weight: 400; + font-display: swap; + font-style: italic; +} + + +@font-face { + font-family: 'Satoshi-Medium'; + src: url('../fonts/Satoshi-Medium.woff2') format('woff2'), + url('../fonts/Satoshi-Medium.woff') format('woff'), + url('../fonts/Satoshi-Medium.ttf') format('truetype'); + font-weight: 500; + font-display: swap; + font-style: normal; +} + + +@font-face { + font-family: 'Satoshi-MediumItalic'; + src: url('../fonts/Satoshi-MediumItalic.woff2') format('woff2'), + url('../fonts/Satoshi-MediumItalic.woff') format('woff'), + url('../fonts/Satoshi-MediumItalic.ttf') format('truetype'); + font-weight: 500; + font-display: swap; + font-style: italic; +} + + +@font-face { + font-family: 'Satoshi-Bold'; + src: url('../fonts/Satoshi-Bold.woff2') format('woff2'), + url('../fonts/Satoshi-Bold.woff') format('woff'), + url('../fonts/Satoshi-Bold.ttf') format('truetype'); + font-weight: 700; + font-display: swap; + font-style: normal; +} + + +@font-face { + font-family: 'Satoshi-BoldItalic'; + src: url('../fonts/Satoshi-BoldItalic.woff2') format('woff2'), + url('../fonts/Satoshi-BoldItalic.woff') format('woff'), + url('../fonts/Satoshi-BoldItalic.ttf') format('truetype'); + font-weight: 700; + font-display: swap; + font-style: italic; +} + + +@font-face { + font-family: 'Satoshi-Black'; + src: url('../fonts/Satoshi-Black.woff2') format('woff2'), + url('../fonts/Satoshi-Black.woff') format('woff'), + url('../fonts/Satoshi-Black.ttf') format('truetype'); + font-weight: 900; + font-display: swap; + font-style: normal; +} + + +@font-face { + font-family: 'Satoshi-BlackItalic'; + src: url('../fonts/Satoshi-BlackItalic.woff2') format('woff2'), + url('../fonts/Satoshi-BlackItalic.woff') format('woff'), + url('../fonts/Satoshi-BlackItalic.ttf') format('truetype'); + font-weight: 900; + font-display: swap; + font-style: italic; +} + diff --git a/build/assets/screen-tab-off 2.svg b/build/assets/screen-tab-off 2.svg new file mode 100644 index 0000000..b2339af --- /dev/null +++ b/build/assets/screen-tab-off 2.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/build/assets/screen-tab-on 2.svg b/build/assets/screen-tab-on 2.svg new file mode 100644 index 0000000..e888060 --- /dev/null +++ b/build/assets/screen-tab-on 2.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/build/assets/selfieSegmentation 2.js b/build/assets/selfieSegmentation 2.js new file mode 100644 index 0000000..e8e11ec --- /dev/null +++ b/build/assets/selfieSegmentation 2.js @@ -0,0 +1 @@ +(function(){"use strict";var t;function e(t){var e=0;return function(){return e>>0)+"_",i=0;return function t(r){if(this instanceof t)throw new TypeError("Symbol is not a constructor");return new e(n+(r||"")+"_"+i++,r)}})),i("Symbol.iterator",(function(t){if(t)return t;t=Symbol("Symbol.iterator");for(var i="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),a=0;ae&&(e=Math.max(0,n+e)),(null==r||r>n)&&(r=n),0>(r=Number(r))&&(r=Math.max(0,n+r)),e=Number(e||0);e(e=e||0)&&(e=Math.max(e+n,0));e>4),64!=a&&(e(o<<4&240|a>>2),64!=u&&e(a<<6&192|u))}}(t,(function(t){n[i++]=t})),i!==r?n.subarray(0,i):n}function U(){if(!k){k={};for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],r=0;5>r;r++){var n=t.concat(e[r].split(""));_[r]=n;for(var i=0;i>2];a=e[(3&a)<<4|u>>4],u=e[(15&u)<<2|s>>6],s=e[63&s],r[o++]=f+a+u+s}switch(f=0,s=n,t.length-i){case 2:s=e[(15&(f=t[i+1]))<<2]||n;case 1:t=t[i],r[o]=e[t>>2]+e[(3&t)<<4|f>>4]+s+n}return r.join("")}for(e="";10240t,r=(t=Math.abs(t))>>>0;t=Math.floor((t-r)/4294967296),e&&(e=(r=a(J(r,t))).next().value,t=r.next().value,r=e),V=r>>>0,W=t>>>0}var X,Y="function"==typeof BigInt;function J(t,e){return e=~e,t?t=1+~t:e+=1,[t,e]}function K(t,e){this.i=t>>>0,this.h=e>>>0}function Z(t){if(!t)return X||(X=new K(0,0));if(!/^-?\d+$/.test(t))return null;if(16>t.length)H(Number(t));else if(Y)t=BigInt(t),V=Number(t&BigInt(4294967295))>>>0,W=Number(t>>BigInt(32)&BigInt(4294967295));else{var e=+("-"===t[0]);W=V=0;for(var r=t.length,n=e,i=(r-e)%6+e;i<=r;n=i,i+=6)n=Number(t.slice(n,i)),W*=1e6,4294967296<=(V=1e6*V+n)&&(W+=V/4294967296|0,V%=4294967296);e&&(t=(e=a(J(V,W))).next().value,e=e.next().value,V=t,W=e)}return new K(V,W)}function q(t,e){return Error("Invalid wire type: "+t+" (at position "+e+")")}function $(){return Error("Failed to read varint, encoding is invalid.")}function Q(t,e){return Error("Tried to read past the end of the data "+e+" > "+t)}function tt(){throw Error("Invalid UTF8")}function et(t,e){return e=String.fromCharCode.apply(null,e),null==t?e:t+e}var rt,nt,it,ot=void 0,at="undefined"!=typeof TextDecoder,ut="undefined"!=typeof TextEncoder;function st(t){if(t!==G)throw Error("illegal external caller")}function ft(t,e){if(st(e),this.V=t,null!=t&&0===t.length)throw Error("ByteString should be constructed with non-empty values")}function lt(){return it||(it=new ft(null,G))}function ht(t){st(G);var e=t.V;return null==(e=null==e||C&&null!=e&&e instanceof Uint8Array?e:"string"==typeof e?N(e):null)?e:t.V=e}function ct(t,e){this.i=null,this.m=!1,this.h=this.j=this.l=0,pt(this,t,e)}function pt(t,e,r){r=void 0===r?{}:r,t.S=void 0!==r.S&&r.S,e&&(e=function(t){if("string"==typeof t)return{buffer:N(t),C:!1};if(Array.isArray(t))return{buffer:new Uint8Array(t),C:!1};if(t.constructor===Uint8Array)return{buffer:t,C:!1};if(t.constructor===ArrayBuffer)return{buffer:new Uint8Array(t),C:!1};if(t.constructor===ft)return{buffer:ht(t)||D(),C:!0};if(t instanceof Uint8Array)return{buffer:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),C:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers")}(e),t.i=e.buffer,t.m=e.C,t.l=0,t.j=t.i.length,t.h=t.l)}function vt(t,e){if(t.h=e,e>t.j)throw Q(t.j,e)}function dt(t){var e=t.i,r=t.h,n=e[r++],i=127&n;if(128&n&&(i|=(127&(n=e[r++]))<<7,128&n&&(i|=(127&(n=e[r++]))<<14,128&n&&(i|=(127&(n=e[r++]))<<21,128&n&&(i|=(n=e[r++])<<28,128&n&&128&e[r++]&&128&e[r++]&&128&e[r++]&&128&e[r++]&&128&e[r++])))))throw $();return vt(t,r),i}function yt(t,e){if(0>e)throw Error("Tried to read a negative byte length: "+e);var r=t.h,n=r+e;if(n>t.j)throw Q(e,t.j-r);return t.h=n,r}ct.prototype.reset=function(){this.h=this.l};var gt=[];function mt(){this.h=[]}function bt(t,e,r){for(;0>>7|r<<25)>>>0,r>>>=7;t.h.push(e)}function wt(t,e){for(;127>>=7;t.h.push(e)}function At(t,e){if(gt.length){var r=gt.pop();pt(r,t,e),t=r}else t=new ct(t,e);this.h=t,this.j=this.h.h,this.i=this.l=-1,this.setOptions(e)}function jt(t){var e=t.h;if(e.h==e.j)return!1;t.j=t.h.h;var r=dt(t.h)>>>0;if(e=r>>>3,!(0<=(r&=7)&&5>=r))throw q(r,t.j);if(1>e)throw Error("Invalid field number: "+e+" (at position "+t.j+")");return t.l=e,t.i=r,!0}function xt(t){switch(t.i){case 0:if(0!=t.i)xt(t);else t:{for(var e=(t=t.h).h,r=e+10,n=t.i;e>>0,vt(t=t.h,t.h+e));break;case 5:vt(t=t.h,t.h+4);break;case 3:for(e=t.l;;){if(!jt(t))throw Error("Unmatched start-group tag: stream EOF");if(4==t.i){if(t.l!=e)throw Error("Unmatched end-group tag");break}xt(t)}break;default:throw q(t.i,t.j)}}mt.prototype.length=function(){return this.h.length},mt.prototype.end=function(){var t=this.h;return this.h=[],t},At.prototype.setOptions=function(t){t=void 0===t?{}:t,this.ca=void 0!==t.ca&&t.ca},At.prototype.reset=function(){this.h.reset(),this.j=this.h.h,this.i=this.l=-1};var Et=[];function Ot(){this.j=[],this.i=0,this.h=new mt}function Ft(t,e){0!==e.length&&(t.j.push(e),t.i+=e.length)}var St="function"==typeof Symbol&&"symbol"==typeof Symbol()?Symbol():void 0;function Tt(t,e){return St?t[St]|=e:void 0!==t.A?t.A|=e:(Object.defineProperties(t,{A:{value:e,configurable:!0,writable:!0,enumerable:!1}}),e)}function _t(t,e){St?t[St]&&(t[St]&=~e):void 0!==t.A&&(t.A&=~e)}function kt(t){var e;return null==(e=St?t[St]:t.A)?0:e}function Rt(t,e){St?t[St]=e:void 0!==t.A?t.A=e:Object.defineProperties(t,{A:{value:e,configurable:!0,writable:!0,enumerable:!1}})}function Ut(t){return Tt(t,1),t}function Ct(t,e){Rt(e,-51&(0|t))}function Pt(t,e){Rt(e,-41&(18|t))}var Bt={};function Mt(t){return null!==t&&"object"==typeof t&&!Array.isArray(t)&&t.constructor===Object}var It,Lt,Nt=[];function Dt(t){if(2&kt(t.o))throw Error("Cannot mutate an immutable Message")}function Gt(t){var e=t.length;(e=e?t[e-1]:void 0)&&Mt(e)?e.g=1:(e={},t.push((e.g=1,e)))}function zt(t){var e=t.i+t.G;return t.B||(t.B=t.o[e]={})}function Vt(t,e){return-1===e?null:e>=t.i?t.B?t.B[e]:void 0:t.o[e+t.G]}function Wt(t,e,r,n){Dt(t),Ht(t,e,r,n)}function Ht(t,e,r,n){t.j&&(t.j=void 0),e>=t.i||n?zt(t)[e]=r:(t.o[e+t.G]=r,(t=t.B)&&e in t&&delete t[e])}function Xt(t,e,r,n){var i=Vt(t,e);Array.isArray(i)||(i=It);var o=kt(i);if(1&o||Ut(i),n)2&o||Tt(i,2),1&r||Object.freeze(i);else{n=!(2&r);var a=2&o;1&r||!a?n&&16&o&&!a&&_t(i,16):Ht(t,e,i=Ut(Array.prototype.slice.call(i)))}return i}function Yt(t,e){var r=Vt(t,e),n=null==r?r:"number"==typeof r||"NaN"===r||"Infinity"===r||"-Infinity"===r?Number(r):void 0;return null!=n&&n!==r&&Ht(t,e,n),n}function Jt(t,e,r,n,i){t.h||(t.h={});var o=t.h[r],a=Xt(t,r,3,i);if(!o){var u=a;o=[];var s=!!(16&kt(t.o));a=!!(2&kt(u));var f=u;!i&&a&&(u=Array.prototype.slice.call(u));for(var l=a,h=0;ha&&"number"!=typeof t[a]){var u=t[a++];r(e,u)}for(;a>>0)>>31)+1,o=a>>>23&255,a&=8388607,Wt(e,r,255==o?a?NaN:1/0*t:0==o?t*Math.pow(2,-149)*a:t*Math.pow(2,o-150)*(a+Math.pow(2,23))),!0}),(function(t,e,r){if(null!=(e=Yt(e,r))){wt(t.h,8*r+5),t=t.h;var n=+e;0===n?0<1/n?V=W=0:(W=0,V=2147483648):isNaN(n)?(W=0,V=2147483647):34028234663852886e22<(n=(r=0>n?-2147483648:0)?-n:n)?(W=0,V=(2139095040|r)>>>0):11754943508222875e-54>n?(n=Math.round(n/Math.pow(2,-149)),W=0,V=(r|n)>>>0):(e=Math.floor(Math.log(n)/Math.LN2),n*=Math.pow(2,-e),16777216<=(n=Math.round(8388608*n))&&++e,W=0,V=(r|e+127<<23|8388607&n)>>>0),r=V,t.h.push(r>>>0&255),t.h.push(r>>>8&255),t.h.push(r>>>16&255),t.h.push(r>>>24&255)}})),Me=Pe((function(t,e,r){if(0!==t.i)return!1;var n=t.h,i=0,o=t=0,a=n.i,u=n.h;do{var s=a[u++];i|=(127&s)<o&&128&s);for(32>4),o=3;32>o&&128&s;o+=7)t|=(127&(s=a[u++]))<s))throw $();return n=i>>>0,(t=2147483648&(s=t>>>0))&&(s=~s>>>0,0==(n=1+~n>>>0)&&(s=s+1>>>0)),n=4294967296*s+(n>>>0),Wt(e,r,t?-n:n),!0}),(function(t,e,r){null!=(e=Vt(e,r))&&("string"==typeof e&&Z(e),null!=e&&(wt(t.h,8*r),"number"==typeof e?(t=t.h,H(e),bt(t,V,W)):(r=Z(e),bt(t.h,r.i,r.h))))})),Ie=Pe((function(t,e,r){return 0===t.i&&(Wt(e,r,dt(t.h)),!0)}),(function(t,e,r){if(null!=(e=Vt(e,r))&&null!=e)if(wt(t.h,8*r),t=t.h,0<=(r=e))wt(t,r);else{for(e=0;9>e;e++)t.h.push(127&r|128),r>>=7;t.h.push(1)}})),Le=Pe((function(t,e,r){if(2!==t.i)return!1;var n=dt(t.h)>>>0,i=yt(t=t.h,n);if(t=t.i,at){var o,a=t;(o=rt)||(o=rt=new TextDecoder("utf-8",{fatal:!0})),t=i+n,a=0===i&&t===a.length?a:a.subarray(i,t);try{var u=o.decode(a)}catch(t){if(void 0===ot){try{o.decode(new Uint8Array([128]))}catch(t){}try{o.decode(new Uint8Array([97])),ot=!0}catch(t){ot=!1}}throw!ot&&(rt=void 0),t}}else{n=(u=i)+n,i=[];for(var s,f,l=null;u(s=t[u++])?i.push(s):224>s?u>=n?tt():(f=t[u++],194>s||128!=(192&f)?(u--,tt()):i.push((31&s)<<6|63&f)):240>s?u>=n-1?tt():128!=(192&(f=t[u++]))||224===s&&160>f||237===s&&160<=f||128!=(192&(a=t[u++]))?(u--,tt()):i.push((15&s)<<12|(63&f)<<6|63&a):244>=s?u>=n-2?tt():128!=(192&(f=t[u++]))||0!=f-144+(s<<28)>>30||128!=(192&(a=t[u++]))||128!=(192&(o=t[u++]))?(u--,tt()):(s=(7&s)<<18|(63&f)<<12|(63&a)<<6|63&o,s-=65536,i.push(55296+(s>>10&1023),56320+(1023&s))):tt(),8192<=i.length&&(l=et(l,i),i.length=0);u=et(l,i)}return Wt(e,r,u),!0}),(function(t,e,r){if(null!=(e=Vt(e,r))){var n=!1;if(n=void 0!==n&&n,ut){if(n&&/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(e))throw Error("Found an unpaired surrogate");e=(nt||(nt=new TextEncoder)).encode(e)}else{for(var i=0,o=new Uint8Array(3*e.length),a=0;au)o[i++]=u;else{if(2048>u)o[i++]=u>>6|192;else{if(55296<=u&&57343>=u){if(56319>=u&&a=s){u=1024*(u-55296)+s-56320+65536,o[i++]=u>>18|240,o[i++]=u>>12&63|128,o[i++]=u>>6&63|128,o[i++]=63&u|128;continue}a--}if(n)throw Error("Found an unpaired surrogate");u=65533}o[i++]=u>>12|224,o[i++]=u>>6&63|128}o[i++]=63&u|128}}e=i===o.length?o:o.subarray(0,i)}wt(t.h,8*r+2),wt(t.h,e.length),Ft(t,t.h.end()),Ft(t,e)}})),Ne=Pe((function(t,e,r,n,i){if(2!==t.i)return!1;e=qt(e,r,n),r=t.h.j,n=dt(t.h)>>>0;var o=t.h.h+n,a=o-r;if(0>=a&&(t.h.j=o,i(e,t,void 0,void 0,void 0),a=o-t.h.h),a)throw Error("Message parsing ended unexpectedly. Expected to read "+n+" bytes, instead read "+(n-a)+" bytes, either the data ended unexpectedly or the message misreported its own length");return t.h.h=o,t.h.j=r,!0}),(function(t,e,r,n,i){if(null!=(e=Kt(e,n,r)))for(n=0;n>>=7,a.i++;o.push(u),a.i++}}));function De(t){return function(e,r){t:{if(Et.length){var n=Et.pop();n.setOptions(r),pt(n.h,e,r),e=n}else e=new At(e,r);try{var i=Re(t),o=Ue(new i.P,e,i);break t}finally{(i=e.h).i=null,i.m=!1,i.l=0,i.j=0,i.h=0,i.S=!1,e.l=-1,e.i=-1,100>Et.length&&Et.push(e)}o=void 0}return o}}function Ge(t){return function(){var e=new Ot;Ce(this,e,Oe(t)),Ft(e,e.h.end());for(var r=new Uint8Array(e.i),n=e.j,i=n.length,o=0,a=0;a + + + + + + + + + diff --git a/build/assets/video-tab-active 2.svg b/build/assets/video-tab-active 2.svg new file mode 100644 index 0000000..c8fba74 --- /dev/null +++ b/build/assets/video-tab-active 2.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/build/assets/video-tab-inactive 2.svg b/build/assets/video-tab-inactive 2.svg new file mode 100644 index 0000000..dd792b7 --- /dev/null +++ b/build/assets/video-tab-inactive 2.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/build/assets/waveform 2.svg b/build/assets/waveform 2.svg new file mode 100644 index 0000000..c59e16b --- /dev/null +++ b/build/assets/waveform 2.svg @@ -0,0 +1,3 @@ + + + diff --git a/build/background.bundle 3.js b/build/background.bundle 3.js deleted file mode 100644 index 4ee5a02..0000000 --- a/build/background.bundle 3.js +++ /dev/null @@ -1,8 +0,0 @@ -(()=>{var e={9483:(e,t,r)=>{ -/*! - localForage -- Offline Storage, Improved - Version 1.10.0 - https://localforage.github.io/localForage - (c) 2013-2017 Mozilla, Apache License 2.0 -*/ -e.exports=function e(t,r,n){function o(i,c){if(!r[i]){if(!t[i]){if(a)return a(i,!0);var u=new Error("Cannot find module '"+i+"'");throw u.code="MODULE_NOT_FOUND",u}var s=r[i]={exports:{}};t[i][0].call(s.exports,(function(e){var r=t[i][1][e];return o(r||e)}),s,s.exports,e,t,r,n)}return r[i].exports}for(var a=void 0,i=0;i=43)}})).catch((function(){return!1}))}function k(e){return"boolean"==typeof m?s.resolve(m):x(e).then((function(e){return m=e}))}function E(e){var t=v[e.name],r={};r.promise=new s((function(e,t){r.resolve=e,r.reject=t})),t.deferredOperations.push(r),t.dbReady?t.dbReady=t.dbReady.then((function(){return r.promise})):t.dbReady=r.promise}function _(e){var t=v[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function I(e,t){var r=v[e.name].deferredOperations.pop();if(r)return r.reject(t),r.promise}function T(e,t){return new s((function(r,n){if(v[e.name]=v[e.name]||P(),e.db){if(!t)return r(e.db);E(e),e.db.close()}var o=[e.name];t&&o.push(e.version);var a=i.open.apply(i,o);t&&(a.onupgradeneeded=function(t){var r=a.result;try{r.createObjectStore(e.storeName),t.oldVersion<=1&&r.createObjectStore(d)}catch(r){if("ConstraintError"!==r.name)throw r;console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),a.onerror=function(e){e.preventDefault(),n(a.error)},a.onsuccess=function(){var t=a.result;t.onversionchange=function(e){e.target.close()},r(t),_(e)}}))}function S(e){return T(e,!1)}function L(e){return T(e,!0)}function j(e,t){if(!e.db)return!0;var r=!e.db.objectStoreNames.contains(e.storeName),n=e.versione.db.version;if(n&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),o||r){if(r){var a=e.db.version+1;a>e.version&&(e.version=a)}return!0}return!1}function O(e){return new s((function(t,r){var n=new FileReader;n.onerror=r,n.onloadend=function(r){var n=btoa(r.target.result||"");t({__local_forage_encoded_blob:!0,data:n,type:e.type})},n.readAsBinaryString(e)}))}function A(e){return u([w(atob(e.data))],{type:e.type})}function N(e){return e&&e.__local_forage_encoded_blob}function D(e){var t=this,r=t._initReady().then((function(){var e=v[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady}));return l(r,e,e),r}function R(e){E(e);for(var t=v[e.name],r=t.forages,n=0;n0&&(!e.db||"InvalidStateError"===o.name||"NotFoundError"===o.name))return s.resolve().then((function(){if(!e.db||"NotFoundError"===o.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),L(e)})).then((function(){return R(e).then((function(){C(e,t,r,n-1)}))})).catch(r);r(o)}}function P(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function F(e){var t=this,r={db:null};if(e)for(var n in e)r[n]=e[n];var o=v[r.name];o||(o=P(),v[r.name]=o),o.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=D);var a=[];function i(){return s.resolve()}for(var c=0;c>4,f[u++]=(15&n)<<4|o>>2,f[u++]=(3&o)<<6|63&a;return s}function de(e){var t,r=new Uint8Array(e),n="";for(t=0;t>2],n+=X[(3&r[t])<<4|r[t+1]>>4],n+=X[(15&r[t+1])<<2|r[t+2]>>6],n+=X[63&r[t+2]];return r.length%3==2?n=n.substring(0,n.length-1)+"=":r.length%3==1&&(n=n.substring(0,n.length-2)+"=="),n}function me(e,t){var r="";if(e&&(r=he.call(e)),e&&("[object ArrayBuffer]"===r||e.buffer&&"[object ArrayBuffer]"===he.call(e.buffer))){var n,o=Z;e instanceof ArrayBuffer?(n=e,o+=ee):(n=e.buffer,"[object Int8Array]"===r?o+=re:"[object Uint8Array]"===r?o+=ne:"[object Uint8ClampedArray]"===r?o+=oe:"[object Int16Array]"===r?o+=ae:"[object Uint16Array]"===r?o+=ce:"[object Int32Array]"===r?o+=ie:"[object Uint32Array]"===r?o+=ue:"[object Float32Array]"===r?o+=se:"[object Float64Array]"===r?o+=fe:t(new Error("Failed to get type for BinaryArray"))),t(o+de(n))}else if("[object Blob]"===r){var a=new FileReader;a.onload=function(){var r=J+e.type+"~"+de(this.result);t(Z+te+r)},a.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(r){console.error("Couldn't convert value into a JSON string: ",e),t(null,r)}}function ve(e){if(e.substring(0,$)!==Z)return JSON.parse(e);var t,r=e.substring(le),n=e.substring($,le);if(n===te&&Q.test(r)){var o=r.match(Q);t=o[1],r=r.substring(o[0].length)}var a=pe(r);switch(n){case ee:return a;case te:return u([a],{type:t});case re:return new Int8Array(a);case ne:return new Uint8Array(a);case oe:return new Uint8ClampedArray(a);case ae:return new Int16Array(a);case ce:return new Uint16Array(a);case ie:return new Int32Array(a);case ue:return new Uint32Array(a);case se:return new Float32Array(a);case fe:return new Float64Array(a);default:throw new Error("Unkown type: "+n)}}var ge={serialize:me,deserialize:ve,stringToBuffer:pe,bufferToString:de};function ye(e,t,r,n){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],r,n)}function be(e){var t=this,r={db:null};if(e)for(var n in e)r[n]="string"!=typeof e[n]?e[n].toString():e[n];var o=new s((function(e,n){try{r.db=openDatabase(r.name,String(r.version),r.description,r.size)}catch(e){return n(e)}r.db.transaction((function(o){ye(o,r,(function(){t._dbInfo=r,e()}),(function(e,t){n(t)}))}),n)}));return r.serializer=ge,o}function we(e,t,r,n,o,a){e.executeSql(r,n,o,(function(e,i){i.code===i.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],(function(e,c){c.rows.length?a(e,i):ye(e,t,(function(){e.executeSql(r,n,o,a)}),a)}),a):a(e,i)}),a)}function xe(e,t){var r=this;e=h(e);var n=new s((function(t,n){r.ready().then((function(){var o=r._dbInfo;o.db.transaction((function(r){we(r,o,"SELECT * FROM "+o.storeName+" WHERE key = ? LIMIT 1",[e],(function(e,r){var n=r.rows.length?r.rows.item(0).value:null;n&&(n=o.serializer.deserialize(n)),t(n)}),(function(e,t){n(t)}))}))})).catch(n)}));return f(n,t),n}function ke(e,t){var r=this,n=new s((function(t,n){r.ready().then((function(){var o=r._dbInfo;o.db.transaction((function(r){we(r,o,"SELECT * FROM "+o.storeName,[],(function(r,n){for(var a=n.rows,i=a.length,c=0;c0)return void a(Ee.apply(o,[e,c,r,n-1]));i(t)}}))}))})).catch(i)}));return f(a,r),a}function _e(e,t,r){return Ee.apply(this,[e,t,r,1])}function Ie(e,t){var r=this;e=h(e);var n=new s((function(t,n){r.ready().then((function(){var o=r._dbInfo;o.db.transaction((function(r){we(r,o,"DELETE FROM "+o.storeName+" WHERE key = ?",[e],(function(){t()}),(function(e,t){n(t)}))}))})).catch(n)}));return f(n,t),n}function Te(e){var t=this,r=new s((function(e,r){t.ready().then((function(){var n=t._dbInfo;n.db.transaction((function(t){we(t,n,"DELETE FROM "+n.storeName,[],(function(){e()}),(function(e,t){r(t)}))}))})).catch(r)}));return f(r,e),r}function Se(e){var t=this,r=new s((function(e,r){t.ready().then((function(){var n=t._dbInfo;n.db.transaction((function(t){we(t,n,"SELECT COUNT(key) as c FROM "+n.storeName,[],(function(t,r){var n=r.rows.item(0).c;e(n)}),(function(e,t){r(t)}))}))})).catch(r)}));return f(r,e),r}function Le(e,t){var r=this,n=new s((function(t,n){r.ready().then((function(){var o=r._dbInfo;o.db.transaction((function(r){we(r,o,"SELECT key FROM "+o.storeName+" WHERE id = ? LIMIT 1",[e+1],(function(e,r){var n=r.rows.length?r.rows.item(0).key:null;t(n)}),(function(e,t){n(t)}))}))})).catch(n)}));return f(n,t),n}function je(e){var t=this,r=new s((function(e,r){t.ready().then((function(){var n=t._dbInfo;n.db.transaction((function(t){we(t,n,"SELECT key FROM "+n.storeName,[],(function(t,r){for(var n=[],o=0;o '__WebKitDatabaseInfoTable__'",[],(function(r,n){for(var o=[],a=0;a0}function Fe(e){var t=this,r={};if(e)for(var n in e)r[n]=e[n];return r.keyPrefix=Re(e,t._defaultConfig),Pe()?(t._dbInfo=r,r.serializer=ge,s.resolve()):s.reject()}function Ue(e){var t=this,r=t.ready().then((function(){for(var e=t._dbInfo.keyPrefix,r=localStorage.length-1;r>=0;r--){var n=localStorage.key(r);0===n.indexOf(e)&&localStorage.removeItem(n)}}));return f(r,e),r}function Me(e,t){var r=this;e=h(e);var n=r.ready().then((function(){var t=r._dbInfo,n=localStorage.getItem(t.keyPrefix+e);return n&&(n=t.serializer.deserialize(n)),n}));return f(n,t),n}function Be(e,t){var r=this,n=r.ready().then((function(){for(var t=r._dbInfo,n=t.keyPrefix,o=n.length,a=localStorage.length,i=1,c=0;c=0;t--){var r=localStorage.key(t);0===r.indexOf(e)&&localStorage.removeItem(r)}})):s.reject("Invalid arguments"),f(n,t),n}var Ke={_driver:"localStorageWrapper",_initStorage:Fe,_support:De(),iterate:Be,getItem:Me,setItem:Ye,removeItem:We,clear:Ue,length:ze,key:qe,keys:Ge,dropInstance:Ve},He=function(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)},Xe=function(e,t){for(var r=e.length,n=0;n{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t=function(){return n};var r,n={},o=Object.prototype,a=o.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",s=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(r){l=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),c=new N(n||[]);return i(a,"_invoke",{value:L(e,r,c)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}n.wrap=h;var d="suspendedStart",m="suspendedYield",v="executing",g="completed",y={};function b(){}function w(){}function x(){}var k={};l(k,u,(function(){return this}));var E=Object.getPrototypeOf,_=E&&E(E(D([])));_&&_!==o&&a.call(_,u)&&(k=_);var I=x.prototype=b.prototype=Object.create(k);function T(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function S(t,r){function n(o,i,c,u){var s=p(t[o],t,i);if("throw"!==s.type){var f=s.arg,l=f.value;return l&&"object"==e(l)&&a.call(l,"__await")?r.resolve(l.__await).then((function(e){n("next",e,c,u)}),(function(e){n("throw",e,c,u)})):r.resolve(l).then((function(e){f.value=e,c(f)}),(function(e){return n("throw",e,c,u)}))}u(s.arg)}var o;i(this,"_invoke",{value:function(e,t){function a(){return new r((function(r,o){n(e,t,r,o)}))}return o=o?o.then(a,a):a()}})}function L(e,t,n){var o=d;return function(a,i){if(o===v)throw new Error("Generator is already running");if(o===g){if("throw"===a)throw i;return{value:r,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=j(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=p(e,t,n);if("normal"===s.type){if(o=n.done?g:m,s.arg===y)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=g,n.method="throw",n.arg=s.arg)}}}function j(e,t){var n=t.method,o=e.iterator[n];if(o===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=r,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=p(o,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,y;var i=a.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,y):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,y)}function O(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 A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function e(){for(;++o=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=a.call(i,"catchLoc"),s=a.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),A(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:D(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),y}},n}function n(e,t,r,n,o,a,i){try{var c=e[a](i),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}const o=function(){var e,r=(e=t().mark((function e(){var r;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,chrome.identity.getAuthToken({interactive:!0});case 3:if(r=e.sent){e.next=6;break}throw new Error("User cancelled sign-in or failed to get token");case 6:return e.next=8,new Promise((function(e){return chrome.storage.local.set({token:r.token},(function(){return e()}))}));case 8:return e.next=10,chrome.identity.getProfileUserInfo();case 10:return e.sent,e.abrupt("return",r.token);case 14:return e.prev=14,e.t0=e.catch(0),console.error("Error signing in:",e.t0.message),e.abrupt("return",null);case 19:case"end":return e.stop()}}),e,null,[[0,14]])})),function(){var t=this,r=arguments;return new Promise((function(o,a){var i=e.apply(t,r);function c(e){n(i,o,a,c,u,"next",e)}function u(e){n(i,o,a,c,u,"throw",e)}c(void 0)}))});return function(){return r.apply(this,arguments)}}();function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",s=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var a=t&&t.prototype instanceof b?t:b,i=Object.create(a.prototype),c=new N(n||[]);return o(i,"_invoke",{value:L(e,r,c)}),i}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var d="suspendedStart",m="suspendedYield",v="executing",g="completed",y={};function b(){}function w(){}function x(){}var k={};l(k,u,(function(){return this}));var E=Object.getPrototypeOf,_=E&&E(E(D([])));_&&_!==r&&n.call(_,u)&&(k=_);var I=x.prototype=b.prototype=Object.create(k);function T(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(o,i,c,u){var s=p(e[o],e,i);if("throw"!==s.type){var f=s.arg,l=f.value;return l&&"object"==a(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,c,u)}),(function(e){r("throw",e,c,u)})):t.resolve(l).then((function(e){f.value=e,c(f)}),(function(e){return r("throw",e,c,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function L(t,r,n){var o=d;return function(a,i){if(o===v)throw new Error("Generator is already running");if(o===g){if("throw"===a)throw i;return{value:e,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var u=j(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=p(t,r,n);if("normal"===s.type){if(o=n.done?g:m,s.arg===y)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=g,n.method="throw",n.arg=s.arg)}}}function j(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,j(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=p(o,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function O(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 A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function D(t){if(t||""===t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),A(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:D(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function c(e,t,r,n,o,a,i){try{var c=e[a](i),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}function u(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function i(e){c(a,n,o,i,u,"next",e)}function u(e){c(a,n,o,i,u,"throw",e)}i(void 0)}))}}const s=function(){var e=u(i().mark((function e(t,r,n){var a,c;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=function(){return c=u(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,t){chrome.storage.local.get(["token"],function(){var r=u(i().mark((function r(n){var a,c,u,s;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!chrome.runtime.lastError){r.next=4;break}t(new Error(chrome.runtime.lastError)),r.next=24;break;case 4:if((a=n.token)&&null!==a){r.next=13;break}return r.next=8,o();case 8:(c=r.sent)&&null!==c||t(new Error("Sign-in failed")),e(c),r.next=24;break;case 13:r.prev=13,u=JSON.parse(atob(a.split(".")[1])),r.next=21;break;case 17:return r.prev=17,r.t0=r.catch(13),chrome.identity.getAuthToken({interactive:!0},(function(r){chrome.runtime.lastError?t(new Error(chrome.runtime.lastError)):e(r)})),r.abrupt("return");case 21:s=1e3*u.exp,Date.now()>=s?chrome.identity.getAuthToken({interactive:!0},(function(r){chrome.runtime.lastError?t(new Error(chrome.runtime.lastError)):e(r)})):e(a);case 24:case"end":return r.stop()}}),r,null,[[13,17]])})));return function(e){return r.apply(this,arguments)}}())})));case 1:case"end":return e.stop()}}),e)}))),c.apply(this,arguments)},a=function(){return c.apply(this,arguments)},e.abrupt("return",new Promise(function(){var e=u(i().mark((function e(o,c){var u,s,f,l,h,p,d,m;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,a();case 3:if((u=e.sent)&&null!==u){e.next=6;break}throw new Error("Sign-in failed");case 6:return s=new Headers({Authorization:"Bearer ".concat(u),"Content-Type":t.type}),e.next=9,fetch("https://www.googleapis.com/upload/drive/v3/files?uploadType=media",{method:"POST",headers:s,body:t});case 9:if((f=e.sent).ok){e.next=12;break}throw new Error("Error uploading to Google Drive: ".concat(f.status));case 12:return e.next=14,f.json();case 14:if(l=e.sent,h=l.id){e.next=18;break}throw new Error("File ID is undefined");case 18:return p={name:r},e.next=21,fetch("https://www.googleapis.com/drive/v3/files/".concat(h),{method:"PATCH",headers:new Headers({Authorization:"Bearer ".concat(u),"Content-Type":"application/json; charset=UTF-8"}),body:JSON.stringify(p)});case 21:if((d=e.sent).ok){e.next=28;break}return e.next=25,d.json();case 25:throw m=e.sent,console.error("Error updating file metadata:",d.status,m.error.message),new Error("Error updating file metadata: ".concat(d.status));case 28:n({status:"ok",url:h}),chrome.tabs.create({url:"https://drive.google.com/file/d/".concat(h,"/view")}),o("https://drive.google.com/file/d/".concat(h,"/view")),e.next=38;break;case 33:e.prev=33,e.t0=e.catch(0),console.error("Error uploading to Google Drive:",e.t0.message),n({status:"ew",url:null}),c(e.t0);case 38:case"end":return e.stop()}}),e,null,[[0,33]])})));return function(t,r){return e.apply(this,arguments)}}()));case 3:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}();function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,c=[],u=!0,s=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),A(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:D(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function d(e,t,r,n,o,a,i){try{var c=e[a](i),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}function m(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function i(e){d(a,n,o,i,c,"next",e)}function c(e){d(a,n,o,i,c,"throw",e)}i(void 0)}))}}var v=function(){var e=m(p().mark((function e(t,r){var n,o,a,i=arguments;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=i.length>2&&void 0!==i[2]?i[2]:null,o=i.length>3&&void 0!==i[3]?i[3]:null,null!==t&&null!==r){e.next=4;break}return e.abrupt("return",Promise.reject("Tab ID or message is null"));case 4:return e.prev=4,e.next=7,new Promise((function(e,r){chrome.tabs.get(t,(function(t){chrome.runtime.lastError?r(chrome.runtime.lastError.message):e(t)}))}));case 7:if((a=e.sent)&&a.url&&!a.url.startsWith("chrome://")&&!a.url.startsWith("chromewebstore.google.com")&&!a.url.startsWith("chrome.google.com/webstore")&&""!==a.url&&"about:blank"!==a.url){e.next=10;break}return e.abrupt("return",Promise.reject("Invalid tab URL"));case 10:return e.abrupt("return",new Promise((function(e,t){chrome.tabs.sendMessage(a.id,r,(function(r){chrome.runtime.lastError?t(chrome.runtime.lastError.message):n?n(r):e(r)}))})));case 13:return e.prev=13,e.t0=e.catch(4),console.error("Error sending message to tab:",e.t0),o&&"function"==typeof o&&o(),e.abrupt("return",Promise.reject(e.t0));case 18:case"end":return e.stop()}}),e,null,[[4,13]])})));return function(t,r){return e.apply(this,arguments)}}(),g=function(){var e=m(p().mark((function e(t){var r;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==t){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,new Promise((function(e){chrome.tabs.get(t,(function(t){e(t)}))}));case 5:(r=e.sent)&&r.id&&chrome.windows.update(r.windowId,{focused:!0}).then((function(){chrome.tabs.update(r.id,{active:!0})})),e.next=11;break;case 9:e.prev=9,e.t0=e.catch(2);case 11:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(t){return e.apply(this,arguments)}}(),y=function(){var e=m(p().mark((function e(t){var r;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==t){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,new Promise((function(e){chrome.tabs.get(t,(function(t){e(t)}))}));case 5:(r=e.sent)&&r.id&&chrome.tabs.remove(r.id),e.next=11;break;case 9:e.prev=9,e.t0=e.catch(2);case 11:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(t){return e.apply(this,arguments)}}(),b=function(){var e=m(p().mark((function e(){var t,r,n,o;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={active:!0,lastFocusedWindow:!0},e.next=3,chrome.tabs.query(t);case 3:return r=e.sent,n=l(r,1),o=n[0],e.abrupt("return",o);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),w=function(){var e=m(p().mark((function e(t){var r,n,o,a=arguments;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=a.length>1&&void 0!==a[1]&&a[1],n=a.length>2&&void 0!==a[2]&&a[2],t){e.next=4;break}return e.abrupt("return");case 4:r&&((o=chrome.i18n.getMessage("@@ui_locale")).includes("en")||(t="http://translate.google.com/translate?js=n&sl=auto&tl="+o+"&u="+t)),chrome.tabs.create({url:t,active:n});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),x=r(9483),k=r.n(x);function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function _(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=T(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw a}}}}function I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,c=[],u=!0,s=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return c}}(e,t)||T(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t){if(e){if("string"==typeof e)return S(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S(e,t):void 0}}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),A(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:D(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function j(e,t,r,n,o,a,i){try{var c=e[a](i),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}function O(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function i(e){j(a,n,o,i,c,"next",e)}function c(e){j(a,n,o,i,c,"throw",e)}i(void 0)}))}}k().config({driver:k().INDEXEDDB,name:"screenity",version:1});var A=k().createInstance({name:"chunks"}),N=k().createInstance({name:"localDirectory"}),D=function(){var e=O(L().mark((function e(){var t,r,n,o;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,chrome.storage.local.get(["recordingTab"]);case 2:return t=e.sent,r=t.recordingTab,e.next=6,chrome.storage.local.get(["offscreen"]);case 6:n=e.sent,o=n.offscreen,(null!=r||o)&&(chrome.storage.local.set({recording:!0}),P());case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),R=function(){var e=O(L().mark((function e(){var t,r;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"editor.html",navigator.userAgent.includes("Chrome/")&&parseInt(navigator.userAgent.match(/Chrome\/([0-9]+)/)[1])<=109&&"editorfallback.html",e.next=4,chrome.storage.local.get(["activeTab"]);case 4:t=e.sent,r=t.activeTab,chrome.tabs.get(r,(function(e){e&&chrome.windows.update(e.windowId,{focused:!0},O(L().mark((function e(){var t;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return chrome.tabs.update(r,{active:!0,selected:!0,highlighted:!0}),g(r),v(r,{type:"ready-to-record"}),e.next=5,chrome.storage.local.get(["countdown"]);case 5:t=e.sent,t.countdown?setTimeout((function(){D()}),3500):setTimeout((function(){D()}),500);case 8:case"end":return e.stop()}}),e)}))))}));case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),C=function(){var e=O(L().mark((function e(){var t,r;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,chrome.storage.local.get(["activeTab"]);case 2:t=e.sent,r=t.activeTab,g(r).then(O(L().mark((function e(){var t;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return v(r,{type:"ready-to-record"}),e.next=3,chrome.storage.local.get(["countdown"]);case 3:t=e.sent,t.countdown?setTimeout((function(){D()}),3e3):P();case 6:case"end":return e.stop()}}),e)}))));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),P=function(){var e=O(L().mark((function e(){var t,r,n,o,a,i,c;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return chrome.storage.local.set({recordingStartTime:Date.now(),restarting:!1,recording:!0}),e.next=3,chrome.storage.local.get(["customRegion"]);case 3:return t=e.sent,r=t.customRegion,J(r?{type:"start-recording-tab",region:!0}:{type:"start-recording-tab"}),chrome.action.setIcon({path:"assets/recording-logo.png"}),e.next=9,chrome.storage.local.get(["alarm"]);case 9:return n=e.sent,o=n.alarm,e.next=13,chrome.storage.local.get(["alarmTime"]);case 13:a=e.sent,i=a.alarmTime,o&&(c=parseFloat(i),chrome.alarms.create("recording-alarm",{delayInMinutes:c/60}));case 16:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();chrome.commands.onCommand.addListener(function(){var e=O(L().mark((function e(t){var r,n,o;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("start-recording"!==t){e.next=7;break}return e.next=3,b();case 3:r=e.sent,!1===navigator.onLine&&!r.url.includes("/playground.html")&&!r.url.includes("/setup.html")||r.url.startsWith("chrome://")||r.url.startsWith("chrome-extension://")&&!r.url.includes("/playground.html")&&!r.url.includes("/setup.html")||r.url.includes("stackoverflow.com/")||r.url.includes("chrome.google.com/webstore")||r.url.includes("chromewebstore.google.com")?chrome.tabs.create({url:"playground.html",active:!0}).then((function(e){chrome.storage.local.set({activeTab:e.id}),chrome.tabs.onUpdated.addListener((function e(t,r,n){t===n.id&&"complete"===r.status&&(setTimeout((function(){v(n.id,{type:"start-stream"})}),500),chrome.tabs.onUpdated.removeListener(e))}))})):v(r.id,{type:"start-stream"}),e.next=19;break;case 7:if("cancel-recording"!==t){e.next=14;break}return e.next=10,b();case 10:n=e.sent,v(n.id,{type:"cancel-recording"}),e.next=19;break;case 14:if("pause-recording"!=t){e.next=19;break}return e.next=17,b();case 17:o=e.sent,v(o.id,{type:"pause-recording"});case 19:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());var F=function(){var e=O(L().mark((function e(t){var r,n,o,a,i,c;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("recording-alarm"!==t.name){e.next=22;break}return e.next=3,chrome.storage.local.get(["recording"]);case 3:if(r=e.sent,!r.recording){e.next=21;break}return W(),e.next=9,chrome.storage.local.get(["recordingTab"]);case 9:return n=e.sent,o=n.recordingTab,v(o,{type:"stop-recording-tab"}),e.next=14,chrome.storage.local.get(["activeTab"]);case 14:return a=e.sent,i=a.activeTab,v(i,{type:"stop-recording-tab"}),e.next=19,b();case 19:c=e.sent,v(c.id,{type:"stop-recording-tab"});case 21:chrome.alarms.clear("recording-alarm");case 22:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),U=function(e){F(e)},M=function(){chrome.alarms.onAlarm.hasListener(U)||chrome.alarms.onAlarm.addListener(U)};chrome.permissions&&chrome.permissions.contains({permissions:["alarms"]},(function(e){e&&M()}));var B=function(){var e=O(L().mark((function e(t){var r,n,o,a,i,c,u,s,f,l,h,p,d,m,g,y,b,w,x,k;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,chrome.storage.local.get(["recordingStartTime"]);case 2:return r=e.sent,n=r.recordingStartTime,e.next=6,chrome.tabs.get(t.tabId);case 6:return o=e.sent,e.next=9,chrome.storage.local.get(["recording"]);case 9:return a=e.sent,i=a.recording,e.next=13,chrome.storage.local.get(["restarting"]);case 13:if(c=e.sent,u=c.restarting,!i){e.next=32;break}return e.next=18,chrome.storage.local.get(["tabRecordedID"]);case 18:return s=e.sent,(f=s.tabRecordedID)&&f!=t.tabId?v(t.tabId,{type:"hide-popup-recording"}):o.url.includes("backup.html")&&o.url.includes("chrome-extension://")||chrome.storage.local.set({activeTab:t.tabId}),e.next=23,chrome.storage.local.get(["region"]);case 23:return l=e.sent,h=l.region,e.next=27,chrome.storage.local.get(["customRegion"]);case 27:p=e.sent,d=p.customRegion,h||d||v(t.tabId,{type:"recording-check"}),e.next=33;break;case 32:i||u||v(t.tabId,{type:"recording-ended"});case 33:if(!n){e.next=51;break}return e.next=36,chrome.storage.local.get(["alarm"]);case 36:if(m=e.sent,!m.alarm){e.next=49;break}return e.next=41,chrome.storage.local.get(["alarmTime"]);case 41:g=e.sent,y=g.alarmTime,b=parseFloat(y),w=Math.floor((Date.now()-n)/1e3),x=b-w,v(t.tabId,{type:"time",time:x}),e.next=51;break;case 49:k=Math.floor((Date.now()-n)/1e3),v(t.tabId,{type:"time",time:k});case 51:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function q(e){return new Promise((function(t,r){var n=new FileReader;n.onload=function(){t(n.result)},n.onerror=function(e){r(e)},n.readAsDataURL(e)}))}chrome.windows.onFocusChanged.addListener(function(){var e=O(L().mark((function e(t){var r,n,o;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t!==chrome.windows.WINDOW_ID_NONE){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,chrome.tabs.query({active:!0,windowId:t});case 4:r=e.sent,n=I(r,1),(o=n[0])&&B({tabId:o.id});case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),chrome.tabs.onActivated.addListener(function(){var e=O(L().mark((function e(t){return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:B(t);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),chrome.tabs.onUpdated.addListener(function(){var e=O(L().mark((function e(t,r,n){var o,a,i,c,u,s,f,l,h,p,d,m,g,y,b,w;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("complete"!==r.status){e.next=44;break}return e.next=3,chrome.storage.local.get(["recording"]);case 3:return o=e.sent,a=o.recording,e.next=7,chrome.storage.local.get(["restarting"]);case 7:return i=e.sent,c=i.restarting,e.next=11,chrome.storage.local.get(["tabRecordedID"]);case 11:return u=e.sent,s=u.tabRecordedID,a||c?a&&s&&s==t&&v(t,{type:"recording-check",force:!0}):v(t,{type:"recording-ended"}),e.next=16,chrome.storage.local.get(["recordingStartTime"]);case 16:return f=e.sent,l=f.recordingStartTime,e.next=20,chrome.tabs.get(t);case 20:if(h=e.sent,!l){e.next=39;break}return e.next=24,chrome.storage.local.get(["alarm"]);case 24:if(p=e.sent,!p.alarm){e.next=37;break}return e.next=29,chrome.storage.local.get(["alarmTime"]);case 29:d=e.sent,m=d.alarmTime,g=parseFloat(m),y=Math.floor((Date.now()-l)/1e3),v(t,{type:"time",time:g-y}),e.next=39;break;case 37:b=Math.floor((Date.now()-l)/1e3),v(t,{type:"time",time:b});case 39:return e.next=41,chrome.commands.getAll();case 41:w=e.sent,v(t,{type:"commands",commands:w}),h.url.includes(chrome.runtime.getURL("playground.html"))&&"complete"===r.status&&v(h.id,{type:"toggle-popup"});case 44:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}());var G=function(){var e=O(L().mark((function e(t){var r,n,o,a,i,c,u,s,f,l,h,p=arguments;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=p.length>1&&void 0!==p[1]&&p[1],e.next=3,chrome.storage.local.get(["sendingChunks","sandboxTab"]);case 3:if(n=e.sent,o=n.sendingChunks,a=n.sandboxTab,!o){e.next=9;break}return console.warn("Chunks are already being sent, skipping..."),e.abrupt("return");case 9:return e.next=11,chrome.storage.local.set({sendingChunks:!0});case 11:if(0!==t.length){e.next=16;break}return e.next=14,chrome.storage.local.set({sendingChunks:!1});case 14:return v(a,{type:"make-video-tab",override:r}),e.abrupt("return");case 16:t.sort((function(e,t){return e.timestamp-t.timestamp})),i=0,c=10,3,1e3,u=t.length,v(a,{type:"chunk-count",count:u,override:r}),s=function(){var e=O(L().mark((function e(t){var r,n=arguments;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.length>1&&void 0!==n[1]?n[1]:0,e.prev=1,e.next=4,v(a,{type:"new-chunk-tab",chunks:t});case 4:if(e.sent){e.next=7;break}throw new Error("No response or failed response from tab.");case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),r<3?(console.error("Sending batch failed, retrying... Attempt ".concat(r+1),e.t0),setTimeout((function(){return s(t,r+1)}),1e3)):console.error("Maximum retry attempts reached for this batch.",e.t0);case 12:case"end":return e.stop()}}),e,null,[[1,9]])})));return function(t){return e.apply(this,arguments)}}();case 24:if(!(i0)){e.next=33;break}return e.next=33,s(h);case 33:i+=c,e.next=24;break;case 36:return e.next=38,chrome.storage.local.set({sendingChunks:!1});case 38:v(a,{type:"make-video-tab",override:r});case 39:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),z=function(){var e=O(L().mark((function e(){var t,r,n=arguments;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]&&n[0],e.prev=1,r=[],e.next=5,A.iterate((function(e,t){r.push(e)}));case 5:G(r,t),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),chrome.runtime.reload();case 11:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(){return e.apply(this,arguments)}}(),W=function(){var e=O(L().mark((function e(){var t,r,n,o;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return chrome.storage.local.set({restarting:!1}),e.next=3,chrome.storage.local.get(["recordingStartTime"]);case 3:return t=e.sent,r=t.recordingStartTime,n=Date.now()-r,42e4,0===r&&(n=0),chrome.storage.local.set({recording:!1,recordingDuration:n,tabRecordedID:null}),chrome.storage.local.set({recordingStartTime:0}),n>42e4?chrome.tabs.create({url:"editorfallback.html",active:!0},(function(e){chrome.tabs.onUpdated.addListener((function t(r,n,o){r===e.id&&"complete"===n.status&&(chrome.tabs.onUpdated.removeListener(t),chrome.storage.local.set({sandboxTab:e.id}),z())}))})):chrome.tabs.create({url:"editor.html",active:!0},(function(e){chrome.tabs.onUpdated.addListener((function t(r,n,o){r===e.id&&"complete"===n.status&&(chrome.tabs.onUpdated.removeListener(t),chrome.storage.local.set({sandboxTab:e.id}),z())}))})),chrome.action.setIcon({path:"assets/icon-34.png"}),e.next=14,chrome.storage.local.get(["wasRegion"]);case 14:o=e.sent,o.wasRegion&&chrome.storage.local.set({wasRegion:!1,region:!0}),chrome.alarms.clear("recording-alarm"),ee();case 19:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Y=function(){var e=O(L().mark((function e(){var t,r,n;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t="editor.html",e.next=3,chrome.storage.local.get(["sandboxTab"]);case 3:r=e.sent,n=r.sandboxTab,chrome.tabs.create({url:t,active:!0},(function(e){chrome.tabs.onUpdated.addListener((function t(r,o,a){r===e.id&&"complete"===o.status&&(chrome.tabs.onUpdated.removeListener(t),y(n),chrome.storage.local.set({sandboxTab:e.id}),z(!0))}))}));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();chrome.runtime.onStartup.addListener((function(){console.log("Starting...")})),chrome.action.onClicked.addListener(function(){var e=O(L().mark((function e(t){var r,n,o,a,i;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,chrome.storage.local.get(["recording"]);case 2:if(r=e.sent,!r.recording){e.next=14;break}return W(),J({type:"stop-recording-tab"}),e.next=9,chrome.storage.local.get(["activeTab"]);case 9:n=e.sent,o=n.activeTab,chrome.tabs.get(o,(function(e){e?v(o,{type:"stop-recording-tab"}):(v(t.id,{type:"stop-recording-tab"}),chrome.storage.local.set({activeTab:t.id}))})),e.next=15;break;case 14:!1===navigator.onLine&&!t.url.includes("/playground.html")&&!t.url.includes("/setup.html")||t.url.startsWith("chrome://")||t.url.startsWith("chrome-extension://")&&!t.url.includes("/playground.html")&&!t.url.includes("/setup.html")||t.url.includes("stackoverflow.com/")||t.url.includes("chrome.google.com/webstore")||t.url.includes("chromewebstore.google.com")?chrome.tabs.create({url:"playground.html",active:!0}).then((function(e){chrome.storage.local.set({activeTab:e.id})})):(v(t.id,{type:"toggle-popup"}),chrome.storage.local.set({activeTab:t.id}));case 15:return e.next=17,chrome.storage.local.get(["firstTime"]);case 17:if(a=e.sent,!a.firstTime||!t.url.includes(chrome.runtime.getURL("setup.html"))){e.next=25;break}return chrome.storage.local.set({firstTime:!1}),e.next=23,b();case 23:i=e.sent,v(i.id,{type:"setup-complete"});case 25:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());var V=function(){var e=O(L().mark((function e(){var t;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,b();case 2:t=e.sent,v(t.id,{type:"ready-to-record"});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),K=function(){var e=O(L().mark((function e(){var t,r,n,o,a,i,c;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,chrome.storage.local.get(["micActive","defaultAudioInput","defaultAudioOutput","defaultVideoInput","systemAudio","recordingType"]);case 2:return t=e.sent,r=t.micActive,n=t.defaultAudioInput,o=t.defaultAudioOutput,a=t.defaultVideoInput,i=t.systemAudio,c=t.recordingType,e.abrupt("return",{micActive:r,defaultAudioInput:n,defaultAudioOutput:o,defaultVideoInput:a,systemAudio:i,recordingType:c});case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),H=function(){var e=O(L().mark((function e(){var t,r;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return chrome.storage.local.set({restarting:!0}),e.next=3,chrome.storage.local.get(["region"]);case 3:return t=e.sent,t.region,e.next=7,chrome.storage.local.get(["wasRegion"]);case 7:r=e.sent,r.wasRegion&&chrome.storage.local.set({wasRegion:!1,region:!0}),chrome.action.setIcon({path:"assets/icon-34.png"});case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),X=function(){var e=O(L().mark((function e(){return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:chrome.storage.local.set({restarting:!0}),"editor.html",navigator.userAgent.includes("Chrome/")&&parseInt(navigator.userAgent.match(/Chrome\/([0-9]+)/)[1])<=109&&"editorfallback.html",C();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),J=function(){var e=O(L().mark((function e(t){return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:chrome.storage.local.get(["recordingTab","offscreen"],(function(e){e.offscreen?chrome.runtime.sendMessage(t):v(e.recordingTab,t)}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Q=function(){var e=O(L().mark((function e(t,r){var n,o,a;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,chrome.storage.local.get(["backupTab"]);case 2:n=e.sent,o=n.backupTab,a=chrome.runtime.getURL("backup.html"),o?chrome.tabs.get(o,(function(e){e?v(e.id,{type:"init-backup",request:t,tabId:r}):chrome.tabs.create({url:a,active:!0,pinned:!0,index:0},(function(e){chrome.storage.local.set({backupTab:e.id}),chrome.tabs.onUpdated.addListener((function n(o,a,i){o===e.id&&"complete"===a.status&&(v(e.id,{type:"init-backup",request:t,tabId:r}),chrome.tabs.onUpdated.removeListener(n))}))}))})):chrome.tabs.create({url:a,active:!0,pinned:!0,index:0},(function(e){chrome.storage.local.set({backupTab:e.id}),chrome.tabs.onUpdated.addListener((function n(o,a,i){o===e.id&&"complete"===a.status&&(v(e.id,{type:"init-backup",request:t,tabId:r}),chrome.tabs.onUpdated.removeListener(n))}))}));case 6:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),Z=function(){var e=O(L().mark((function e(t){var r,n,o,a,i,c,u,s,f,l,h,p,d,m=arguments;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=m.length>1&&void 0!==m[1]?m[1]:null,e.next=3,chrome.storage.local.get(["backup"]);case 3:return n=e.sent,o=n.backup,e.next=7,b();case 7:if(a=e.sent,null===r){e.next=12;break}return e.next=11,chrome.tabs.get(r);case 11:a=e.sent;case 12:return chrome.storage.local.set({activeTab:a.id,tabRecordedID:null,memoryError:!1}),a.url.includes(chrome.runtime.getURL("playground.html"))?chrome.storage.local.set({tabPreferred:!0}):chrome.storage.local.set({tabPreferred:!1}),e.prev=14,e.next=17,chrome.runtime.getContexts({});case 17:if(i=e.sent,!i.find((function(e){return"OFFSCREEN_DOCUMENT"===e.contextType}))){e.next=22;break}return e.next=22,chrome.offscreen.closeDocument();case 22:e.next=26;break;case 24:e.prev=24,e.t0=e.catch(14);case 26:if(!t.region){e.next=56;break}if(null!==r&&chrome.tabs.update(r,{active:!0}),chrome.storage.local.set({recordingTab:a.id,offscreen:!1,region:!0}),!t.customRegion){e.next=33;break}J({type:"loaded",request:t,backup:o,region:!0}),e.next=54;break;case 33:throw e.prev=33,new Error("Exit offscreen recording");case 37:if(c=e.sent,!c.find((function(e){return"OFFSCREEN_DOCUMENT"===e.contextType}))){e.next=42;break}return e.next=42,chrome.offscreen.closeDocument();case 42:return e.next=44,chrome.offscreen.createDocument({url:"recorderoffscreen.html",reasons:["USER_MEDIA","AUDIO_PLAYBACK","DISPLAY_MEDIA"],justification:"Recording from getDisplayMedia API and tabCapture API"});case 44:return e.next=46,chrome.tabCapture.getMediaStreamId({targetTabId:a.id});case 46:u=e.sent,chrome.storage.local.set({recordingTab:null,offscreen:!0,region:!1,wasRegion:!0}),J({type:"loaded",request:t,isTab:!0,tabID:u}),e.next=54;break;case 51:e.prev=51,e.t1=e.catch(33),chrome.tabs.create({url:"recorder.html",pinned:!0,index:0,active:!!a.url.includes(chrome.runtime.getURL("playground.html"))}).then((function(e){chrome.storage.local.set({recordingTab:e.id,offscreen:!1,region:!1,wasRegion:!0,tabRecordedID:a.id}),chrome.tabs.onUpdated.addListener((function r(n,i,c){n===e.id&&"complete"===i.status&&(chrome.tabs.onUpdated.removeListener(r),J({type:"loaded",request:t,tabID:a.id,backup:o,isTab:!0}))}))}));case 54:e.next=86;break;case 56:if(e.prev=56,t.offscreenRecording&&!t.camera){e.next=59;break}throw new Error("Exit offscreen recording");case 59:return null!==r&&chrome.tabs.update(r,{active:!0}),e.next=62,chrome.storage.local.get(["qualityValue"]);case 62:return s=e.sent,f=s.qualityValue,e.next=66,chrome.storage.local.get(["fpsValue"]);case 66:return l=e.sent,h=l.fpsValue,e.next=70,chrome.runtime.getContexts({});case 70:if(p=e.sent,!p.find((function(e){return"OFFSCREEN_DOCUMENT"===e.contextType}))){e.next=75;break}return e.next=75,chrome.offscreen.closeDocument();case 75:return e.next=77,chrome.offscreen.createDocument({url:"recorderoffscreen.html",reasons:["USER_MEDIA","AUDIO_PLAYBACK","DISPLAY_MEDIA"],justification:"Recording from getDisplayMedia API"});case 77:chrome.storage.local.set({recordingTab:null,offscreen:!0,region:!1,wasRegion:!1}),J({type:"loaded",request:t,isTab:!1,quality:f,fps:h,backup:o}),e.next=86;break;case 81:e.prev=81,e.t2=e.catch(56),d=!0,t.camera&&(d=!1),chrome.tabs.create({url:"recorder.html",pinned:!0,index:0,active:d}).then((function(e){chrome.storage.local.set({recordingTab:e.id,offscreen:!1,region:!1,wasRegion:!1}),chrome.tabs.onUpdated.addListener((function r(n,a,i){n===e.id&&"complete"===a.status&&(chrome.tabs.onUpdated.removeListener(r),J({type:"loaded",request:t,backup:o}))}))}));case 86:case"end":return e.stop()}}),e,null,[[14,24],[33,51],[56,81]])})));return function(t){return e.apply(this,arguments)}}(),$=function(){var e=O(L().mark((function e(){var t,r;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,chrome.storage.local.get(["sandboxTab"]);case 2:t=e.sent,r=t.sandboxTab,v(r,{type:"saved-to-drive"});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ee=function(){var e=O(L().mark((function e(){var t;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,chrome.runtime.getContexts({});case 3:if(t=e.sent,!t.find((function(e){return"OFFSCREEN_DOCUMENT"===e.contextType}))){e.next=8;break}return e.next=8,chrome.offscreen.closeDocument();case 8:e.next=12;break;case 10:e.prev=10,e.t0=e.catch(0);case 12:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}(),te=function(){var e=O(L().mark((function e(){var t,r,n,o,a,i,c,u,s,f,l;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=chrome.runtime.getManifest().content_scripts,r=t.map((function(e){return chrome.tabs.query({url:e.matches})})),e.next=4,Promise.all(r);case 4:for(n=e.sent,o=[],a=0;a2&&void 0!==d[2]&&d[2]){e.next=7;break}n=se(r.base64),o=r.title+".mp4",s(n,o,t).then((function(){$()})),e.next=25;break;case 7:return a=[],e.next=10,A.iterate((function(e,t){a.push(e)}));case 10:i=[],c=0,u=0,f=a;case 13:if(!(u0&&void 0!==o[0]&&o[0],e.next=3,chrome.storage.local.get(["activeTab"]);case 3:r=e.sent,n=r.activeTab,v(n,t?{type:"pip-started"}:{type:"pip-ended"});case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Te=function(){var e=O(L().mark((function e(){var t,r;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,chrome.storage.local.get(["token"]);case 2:t=e.sent,r=t.token,fetch("https://accounts.google.com/o/oauth2/revoke?token="+r),chrome.identity.removeCachedAuthToken({token:r}),chrome.storage.local.set({token:!1});case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Se=function(){var e=O(L().mark((function e(t){var r,n;return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return chrome.storage.local.set({recording:!1,restarting:!1,tabRecordedID:null,memoryError:!0}),J({type:"stop-recording-tab"}),e.next=4,chrome.storage.local.get(["activeTab"]);case 4:r=e.sent,n=r.activeTab,v(n,{type:"stop-pending"}),g(n);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Le=function(){var e=O(L().mark((function e(){return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:A.clear();case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),je=function(){var e=O(L().mark((function e(t,r){return L().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==t&&0!==r){e.next=2;break}return e.abrupt("return");case 2:chrome.windows.getCurrent((function(e){chrome.windows.update(e.id,{width:t,height:r})}));case 3:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}();chrome.runtime.onMessage.addListener((function(e,t,r){if("desktop-capture"===e.type)le(e);else if("backup-created"===e.type)Z(e.request,e.tabId);else if("write-file"===e.type)he(e);else if("handle-restart"===e.type)X();else if("handle-dismiss"===e.type)H();else if("reset-active-tab"===e.type)R();else if("reset-active-tab-restart"===e.type)C();else if("start-rec"===e.type)P();else if("video-ready"===e.type)pe();else if("start-recording"===e.type)P();else if("restarted"===e.type)V();else{if("new-chunk"===e.type)return de(e),!0;if("get-streaming-data"===e.type)me();else if("cancel-recording"===e.type)ve();else if("stop-recording-tab"===e.type)ge(e);else if("restart-recording-tab"===e.type)ye();else if("dismiss-recording-tab"===e.type)be();else if("pause-recording-tab"===e.type)J({type:"pause-recording-tab"});else if("resume-recording-tab"===e.type)J({type:"resume-recording-tab"});else if("set-mic-active-tab"===e.type)we(e);else if("recording-error"===e.type)xe(e);else if("on-get-permissions"===e.type)ke(e);else if("recording-complete"===e.type)Ee();else if("check-recording"===e.type)ne();else if("review-screenity"===e.type)w("https://chrome.google.com/webstore/detail/screenity-screen-recorder/kbbdabhdfibnancpjfhlkhafgdilcnji/reviews",!1,!0);else if("follow-twitter"===e.type)w("https://alyssax.substack.com/",!1,!0);else if("open-processing-info"===e.type)w("https://help.screenity.io/editing-and-exporting/dJRFpGq56JFKC7k8zEvsqb/why-is-there-a-5-minute-limit-for-editing/ddy4e4TpbnrFJ8VoRT37tQ",!0,!0);else if("upgrade-info"===e.type)w("https://help.screenity.io/getting-started/77KizPC8MHVGfpKpqdux9D/what-are-the-technical-requirements-for-using-screenity/6kdB6qru6naVD8ZLFvX3m9",!0,!0);else if("trim-info"===e.type)w("https://help.screenity.io/editing-and-exporting/dJRFpGq56JFKC7k8zEvsqb/how-to-cut-trim-or-mute-parts-of-your-video/svNbM7YHYY717MuSWXrKXH",!0,!0);else if("join-waitlist"===e.type)w("https://tally.so/r/npojNV",!0,!0);else if("chrome-update-info"===e.type)w("https://help.screenity.io/getting-started/77KizPC8MHVGfpKpqdux9D/what-are-the-technical-requirements-for-using-screenity/6kdB6qru6naVD8ZLFvX3m9",!0,!0);else if("set-surface"===e.type)_e(e);else if("pip-ended"===e.type)Ie(!1);else if("pip-started"===e.type)Ie(!0);else if("new-sandbox-page-restart"===e.type)oe();else if("sign-out-drive"===e.type)Te();else if("open-help"===e.type)w("https://help.screenity.io/",!0,!0);else if("memory-limit-help"===e.type)w("https://help.screenity.io/troubleshooting/9Jy5RGjNrBB42hqUdREQ7W/what-does-%E2%80%9Cmemory-limit-reached%E2%80%9D-mean-when-recording/8WkwHbt3puuXunYqQnyPcb",!0,!0);else if("open-home"===e.type)w("https://screenity.io/",!1,!0);else if("report-bug"===e.type)w("https://tally.so/r/3ElpXq?version="+chrome.runtime.getManifest().version,!1,!0);else if("clear-recordings"===e.type)Le();else if("force-processing"===e.type)Y();else if("focus-this-tab"===e.type)g(t.tab.id);else if("stop-recording-tab-backup"===e.type)Se(e);else if("indexed-db-download"===e.type)ie();else{if("get-platform-info"===e.type)return function(e){chrome.runtime.getPlatformInfo((function(t){e(t)}))}(r),!0;if("restore-recording"===e.type)ce();else{if("check-restore"===e.type)return ue(r),!0;if("check-capture-permissions"===e.type)return chrome.permissions.contains({permissions:["desktopCapture","alarms","offscreen"]},(function(e){e?r({status:"ok"}):chrome.permissions.request({permissions:["desktopCapture","alarms","offscreen"]},(function(e){e?(M(),r({status:"ok"})):r({status:"error"})}))})),!0;if("is-pinned"===e.type)return function(e){chrome.action.getUserSettings().then((function(t){e({pinned:t.isOnToolbar})}))}(r),!0;if("save-to-drive"===e.type)return fe(r,e,!1),!0;if("save-to-drive-fallback"===e.type)return fe(r,e,!0),!0;if("request-download"===e.type)ae(e.base64,e.title);else if("resize-window"===e.type)je(e.width,e.height);else{if("available-memory"===e.type)return function(e){navigator.storage.estimate().then((function(t){e({data:t})}))}(r),!0;"extension-media-permissions"===e.type?w("chrome://settings/content/siteDetails?site=chrome-extension://"+chrome.runtime.id,!1,!0):"add-alarm-listener"===e.type&&M()}}}}}))})()})(); \ No newline at end of file diff --git a/build/contentScript.bundle 2.js b/build/contentScript.bundle 2.js deleted file mode 100644 index 6a7bc32..0000000 --- a/build/contentScript.bundle 2.js +++ /dev/null @@ -1,66 +0,0 @@ -(()=>{var e,t,n={5846:(e,t,n)=>{"use strict";var r=n(7418),i=n(7294); -/** @license React v17.0.2 - * react-dom-server.browser.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nO;O++)T[O]=O+1;T[15]=0;var P=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,A=Object.prototype.hasOwnProperty,D={},j={};function M(e){return!!A.call(j,e)||!A.call(D,e)&&(P.test(e)?j[e]=!0:(D[e]=!0,!1))}function R(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var I={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){I[e]=new R(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];I[t]=new R(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){I[e]=new R(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){I[e]=new R(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){I[e]=new R(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){I[e]=new R(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){I[e]=new R(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){I[e]=new R(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){I[e]=new R(e,5,!1,e.toLowerCase(),null,!1,!1)}));var F=/[\-:]([a-z])/g;function L(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(F,L);I[t]=new R(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(F,L);I[t]=new R(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(F,L);I[t]=new R(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){I[e]=new R(e,1,!1,e.toLowerCase(),null,!1,!1)})),I.xlinkHref=new R("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){I[e]=new R(e,1,!1,e.toLowerCase(),null,!0,!0)}));var z=/["'&<>]/;function N(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=z.exec(e);if(t){var n,r="",i=0;for(n=t.index;nt}return!1}(e,t,r,!1)?"":null!==r?(e=r.attributeName,3===(n=r.type)||4===n&&!0===t?e+'=""':(r.sanitizeURL&&(t=""+t),e+'="'+N(t)+'"')):M(e)?e+'="'+N(t)+'"':""}var W="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},U=null,H=null,V=null,X=!1,Y=!1,G=null,q=0;function K(){if(null===U)throw Error(o(321));return U}function $(){if(0q))throw Error(o(301));if(e===U)if(Y=!0,e={action:n,next:null},null===G&&(G=new Map),void 0===(n=G.get(t)))G.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function ie(){}var oe=null,ae={readContext:function(e){var t=oe.threadID;return k(e,t),e[t]},useContext:function(e){K();var t=oe.threadID;return k(e,t),e[t]},useMemo:ne,useReducer:te,useRef:function(e){U=K();var t=(V=Z()).memoizedState;return null===t?(e={current:e},V.memoizedState=e):t},useState:function(e){return te(ee,e)},useLayoutEffect:function(){},useCallback:function(e,t){return ne((function(){return e}),t)},useImperativeHandle:ie,useEffect:ie,useDebugValue:ie,useDeferredValue:function(e){return K(),e},useTransition:function(){return K(),[function(e){e()},!1]},useOpaqueIdentifier:function(){return(oe.identifierPrefix||"")+"R:"+(oe.uniqueID++).toString(36)},useMutableSource:function(e,t){return K(),t(e._source)}},se="http://www.w3.org/1999/xhtml";function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}var ce={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},ue=r({menuitem:!0},ce),fe={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},de=["Webkit","ms","Moz","O"];Object.keys(fe).forEach((function(e){de.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]}))}));var he=/([A-Z])/g,pe=/^ms-/,me=i.Children.toArray,ge=E.ReactCurrentDispatcher,ve={listing:!0,pre:!0,textarea:!0},be=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ye={},we={};var xe=Object.prototype.hasOwnProperty,Se={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function _e(e,t){if(void 0===e)throw Error(o(152,_(t)||"Component"))}function Ee(e,t,n){function a(i,a){var s=a.prototype&&a.prototype.isReactComponent,l=function(e,t,n,r){if(r&&"object"==typeof(r=e.contextType)&&null!==r)return k(r,n),r[n];if(e=e.contextTypes){for(var i in n={},e)n[i]=t[i];t=n}else t=C;return t}(a,t,n,s),c=[],u=!1,f={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===c)return null},enqueueReplaceState:function(e,t){u=!0,c=[t]},enqueueSetState:function(e,t){if(null===c)return null;c.push(t)}};if(s){if(s=new a(i.props,l,f),"function"==typeof a.getDerivedStateFromProps){var d=a.getDerivedStateFromProps.call(null,i.props,s.state);null!=d&&(s.state=r({},s.state,d))}}else if(U={},s=a(i.props,l,f),null==(s=Q(a,i.props,s,l))||null==s.render)return void _e(e=s,a);if(s.props=i.props,s.context=l,s.updater=f,void 0===(f=s.state)&&(s.state=f=null),"function"==typeof s.UNSAFE_componentWillMount||"function"==typeof s.componentWillMount)if("function"==typeof s.componentWillMount&&"function"!=typeof a.getDerivedStateFromProps&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&"function"!=typeof a.getDerivedStateFromProps&&s.UNSAFE_componentWillMount(),c.length){f=c;var h=u;if(c=null,u=!1,h&&1===f.length)s.state=f[0];else{d=h?f[0]:s.state;var p=!0;for(h=h?1:0;h=l))throw Error(o(304));var c=new Uint16Array(l);for(c.set(a),(T=c)[0]=r+1,a=r;a=s.children.length){var l=s.footer;if(""!==l&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===s.type)this.currentSelectValue=null;else if(null!=s.type&&null!=s.type.type&&s.type.type.$$typeof===u)this.popProvider(s.type);else if(s.type===h){this.suspenseDepth--;var c=r.pop();if(i){i=!1;var f=s.fallbackFrame;if(!f)throw Error(o(303));this.stack.push(f),r[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}r[this.suspenseDepth]+=c}r[this.suspenseDepth]+=l}else{var d=s.children[s.childIndex++],p="";try{p+=this.render(d,s.context,s.domNamespace)}catch(e){if(null!=e&&"function"==typeof e.then)throw Error(o(294));throw e}r.length<=this.suspenseDepth&&r.push(""),r[this.suspenseDepth]+=p}}return r[0]}finally{ge.current=n,oe=t,J()}},t.render=function(e,t,n){if("string"==typeof e||"number"==typeof e)return""===(n=""+e)?"":this.makeStaticMarkup?N(n):this.previousWasTextNode?"\x3c!-- --\x3e"+N(n):(this.previousWasTextNode=!0,N(n));if(e=(t=Ee(e,t,this.threadID)).child,t=t.context,null===e||!1===e)return"";if(!i.isValidElement(e)){if(null!=e&&null!=e.$$typeof){if((n=e.$$typeof)===a)throw Error(o(257));throw Error(o(258,n.toString()))}return e=me(e),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}var v=e.type;if("string"==typeof v)return this.renderDOM(e,t,n);switch(v){case x:case w:case l:case c:case p:case s:return e=me(e.props.children),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case h:throw Error(o(294));case y:throw Error(o(343))}if("object"==typeof v&&null!==v)switch(v.$$typeof){case d:U={};var S=v.render(e.props,e.ref);return S=Q(v.render,e.props,S,e.ref),S=me(S),this.stack.push({type:null,domNamespace:n,children:S,childIndex:0,context:t,footer:""}),"";case m:return e=[i.createElement(v.type,r({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case u:return n={type:e,domNamespace:n,children:v=me(e.props.children),childIndex:0,context:t,footer:""},this.pushProvider(e),this.stack.push(n),"";case f:v=e.type,S=e.props;var _=this.threadID;return k(v,_),v=me(S.children(v[_])),this.stack.push({type:e,domNamespace:n,children:v,childIndex:0,context:t,footer:""}),"";case b:throw Error(o(338));case g:return v=(S=(v=e.type)._init)(v._payload),e=[i.createElement(v,r({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}throw Error(o(130,null==v?v:typeof v,""))},t.renderDOM=function(e,t,n){var a=e.type.toLowerCase();if(n===se&&le(a),!ye.hasOwnProperty(a)){if(!be.test(a))throw Error(o(65,a));ye[a]=!0}var s=e.props;if("input"===a)s=r({type:void 0},s,{defaultChecked:void 0,defaultValue:void 0,value:null!=s.value?s.value:s.defaultValue,checked:null!=s.checked?s.checked:s.defaultChecked});else if("textarea"===a){var l=s.value;if(null==l){l=s.defaultValue;var c=s.children;if(null!=c){if(null!=l)throw Error(o(92));if(Array.isArray(c)){if(!(1>=c.length))throw Error(o(93));c=c[0]}l=""+c}null==l&&(l="")}s=r({},s,{value:void 0,children:""+l})}else if("select"===a)this.currentSelectValue=null!=s.value?s.value:s.defaultValue,s=r({},s,{value:void 0});else if("option"===a){c=this.currentSelectValue;var u=function(e){if(null==e)return e;var t="";return i.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(s.children);if(null!=c){var f=null!=s.value?s.value+"":u;if(l=!1,Array.isArray(c)){for(var d=0;d":(x+=">",l="");e:{if(null!=(c=s.dangerouslySetInnerHTML)){if(null!=c.__html){c=c.__html;break e}}else if("string"==typeof(c=s.children)||"number"==typeof c){c=N(c);break e}c=null}return null!=c?(s=[],ve.hasOwnProperty(a)&&"\n"===c.charAt(0)&&(x+="\n"),x+=c):s=me(s.children),e=e.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?le(e):"http://www.w3.org/2000/svg"===n&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":n,this.stack.push({domNamespace:n,type:a,children:s,childIndex:0,context:t,footer:l}),this.previousWasTextNode=!1,x},e}();t.renderToString=function(e,t){e=new Ce(e,!1,t);try{return e.read(1/0)}finally{e.destroy()}}},1583:(e,t,n)=>{"use strict"; -/** @license React v17.0.2 - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var r=n(7294),i=n(7418),o=n(3840);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n