diff --git a/bundle-analysis.html b/bundle-analysis.html index c18ba720..4c71d75c 100644 --- a/bundle-analysis.html +++ b/bundle-analysis.html @@ -124,7 +124,7 @@
import PropTypes from 'prop-types';
export const videoPlayerProps = {
@@ -536,7 +540,9 @@
preload: false,
},
file: {
- attributes: {},
+ attributes: {
+ disablepictureinpicture: 'true',
+ },
tracks: [],
forceVideo: false,
forceAudio: false,
@@ -577,7 +583,7 @@
diff --git a/coverage/lcov-report/src/lib/components/warningBlock/index.html b/coverage/lcov-report/src/lib/components/warningBlock/index.html
index cf71107a..8df4bcbc 100644
--- a/coverage/lcov-report/src/lib/components/warningBlock/index.html
+++ b/coverage/lcov-report/src/lib/components/warningBlock/index.html
@@ -90,7 +90,7 @@
diff --git a/coverage/lcov-report/src/lib/components/warningBlock/index.js.html b/coverage/lcov-report/src/lib/components/warningBlock/index.js.html
index 8e949ff4..0dd67b17 100644
--- a/coverage/lcov-report/src/lib/components/warningBlock/index.js.html
+++ b/coverage/lcov-report/src/lib/components/warningBlock/index.js.html
@@ -58,7 +58,7 @@
diff --git a/coverage/lcov-report/src/lib/components/warningBlock/warningBlock.js.html b/coverage/lcov-report/src/lib/components/warningBlock/warningBlock.js.html
index ab317a93..a77bdb68 100644
--- a/coverage/lcov-report/src/lib/components/warningBlock/warningBlock.js.html
+++ b/coverage/lcov-report/src/lib/components/warningBlock/warningBlock.js.html
@@ -121,7 +121,7 @@
diff --git a/coverage/lcov-report/src/lib/index.html b/coverage/lcov-report/src/lib/index.html
index 16acb833..07a53520 100644
--- a/coverage/lcov-report/src/lib/index.html
+++ b/coverage/lcov-report/src/lib/index.html
@@ -77,7 +77,7 @@
diff --git a/coverage/lcov-report/src/lib/index.js.html b/coverage/lcov-report/src/lib/index.js.html
index 5986c01b..0ca26fac 100644
--- a/coverage/lcov-report/src/lib/index.js.html
+++ b/coverage/lcov-report/src/lib/index.js.html
@@ -61,7 +61,7 @@
diff --git a/coverage/lcov-report/src/lib/utils/airtableLoader/airtableLoader.js.html b/coverage/lcov-report/src/lib/utils/airtableLoader/airtableLoader.js.html
index 174edfbd..fec61dad 100644
--- a/coverage/lcov-report/src/lib/utils/airtableLoader/airtableLoader.js.html
+++ b/coverage/lcov-report/src/lib/utils/airtableLoader/airtableLoader.js.html
@@ -286,7 +286,7 @@
diff --git a/coverage/lcov-report/src/lib/utils/airtableLoader/index.html b/coverage/lcov-report/src/lib/utils/airtableLoader/index.html
index e7514674..d854a803 100644
--- a/coverage/lcov-report/src/lib/utils/airtableLoader/index.html
+++ b/coverage/lcov-report/src/lib/utils/airtableLoader/index.html
@@ -90,7 +90,7 @@
diff --git a/coverage/lcov-report/src/lib/utils/airtableLoader/index.js.html b/coverage/lcov-report/src/lib/utils/airtableLoader/index.js.html
index 5e961e07..d9057d0d 100644
--- a/coverage/lcov-report/src/lib/utils/airtableLoader/index.js.html
+++ b/coverage/lcov-report/src/lib/utils/airtableLoader/index.js.html
@@ -52,7 +52,7 @@
diff --git a/coverage/lcov-report/src/lib/utils/bugsnag/bugsnag.js.html b/coverage/lcov-report/src/lib/utils/bugsnag/bugsnag.js.html
index 6de97e8e..bf332449 100644
--- a/coverage/lcov-report/src/lib/utils/bugsnag/bugsnag.js.html
+++ b/coverage/lcov-report/src/lib/utils/bugsnag/bugsnag.js.html
@@ -103,7 +103,7 @@
diff --git a/coverage/lcov-report/src/lib/utils/bugsnag/index.html b/coverage/lcov-report/src/lib/utils/bugsnag/index.html
index b9d167e8..c3614623 100644
--- a/coverage/lcov-report/src/lib/utils/bugsnag/index.html
+++ b/coverage/lcov-report/src/lib/utils/bugsnag/index.html
@@ -90,7 +90,7 @@
diff --git a/coverage/lcov-report/src/lib/utils/bugsnag/index.js.html b/coverage/lcov-report/src/lib/utils/bugsnag/index.js.html
index bd8e4055..c5625e79 100644
--- a/coverage/lcov-report/src/lib/utils/bugsnag/index.js.html
+++ b/coverage/lcov-report/src/lib/utils/bugsnag/index.js.html
@@ -58,7 +58,7 @@
diff --git a/coverage/lcov-report/src/lib/utils/componentPropTypes.ignore.js.html b/coverage/lcov-report/src/lib/utils/componentPropTypes.ignore.js.html
index f0c8e227..abb1d073 100644
--- a/coverage/lcov-report/src/lib/utils/componentPropTypes.ignore.js.html
+++ b/coverage/lcov-report/src/lib/utils/componentPropTypes.ignore.js.html
@@ -88,7 +88,7 @@
diff --git a/coverage/lcov-report/src/lib/utils/componentPropTypes.js.html b/coverage/lcov-report/src/lib/utils/componentPropTypes.js.html
index acaa30e1..126110da 100644
--- a/coverage/lcov-report/src/lib/utils/componentPropTypes.js.html
+++ b/coverage/lcov-report/src/lib/utils/componentPropTypes.js.html
@@ -88,7 +88,7 @@
diff --git a/coverage/lcov-report/src/lib/utils/helpers.js.html b/coverage/lcov-report/src/lib/utils/helpers.js.html
index d1e327de..f412f4d3 100644
--- a/coverage/lcov-report/src/lib/utils/helpers.js.html
+++ b/coverage/lcov-report/src/lib/utils/helpers.js.html
@@ -58,7 +58,7 @@
diff --git a/coverage/lcov-report/src/lib/utils/hocs/index.html b/coverage/lcov-report/src/lib/utils/hocs/index.html
index 3fb30ae7..6822a661 100644
--- a/coverage/lcov-report/src/lib/utils/hocs/index.html
+++ b/coverage/lcov-report/src/lib/utils/hocs/index.html
@@ -90,7 +90,7 @@
diff --git a/coverage/lcov-report/src/lib/utils/hocs/index.js.html b/coverage/lcov-report/src/lib/utils/hocs/index.js.html
index a1b3ecef..ca4a2932 100644
--- a/coverage/lcov-report/src/lib/utils/hocs/index.js.html
+++ b/coverage/lcov-report/src/lib/utils/hocs/index.js.html
@@ -58,7 +58,7 @@
diff --git a/coverage/lcov-report/src/lib/utils/hocs/withValidation.js.html b/coverage/lcov-report/src/lib/utils/hocs/withValidation.js.html
index 1feab2b5..608bb67d 100644
--- a/coverage/lcov-report/src/lib/utils/hocs/withValidation.js.html
+++ b/coverage/lcov-report/src/lib/utils/hocs/withValidation.js.html
@@ -265,7 +265,7 @@
diff --git a/coverage/lcov-report/src/lib/utils/index.html b/coverage/lcov-report/src/lib/utils/index.html
index 172aac0d..f5a45bf7 100644
--- a/coverage/lcov-report/src/lib/utils/index.html
+++ b/coverage/lcov-report/src/lib/utils/index.html
@@ -116,7 +116,7 @@
diff --git a/coverage/lcov-report/src/lib/utils/index.js.html b/coverage/lcov-report/src/lib/utils/index.js.html
index 379d7766..bd4db734 100644
--- a/coverage/lcov-report/src/lib/utils/index.js.html
+++ b/coverage/lcov-report/src/lib/utils/index.js.html
@@ -88,7 +88,7 @@
diff --git a/coverage/lcov-report/src/lib/utils/localStorage/index.html b/coverage/lcov-report/src/lib/utils/localStorage/index.html
index 61e6d66f..c9b390b7 100644
--- a/coverage/lcov-report/src/lib/utils/localStorage/index.html
+++ b/coverage/lcov-report/src/lib/utils/localStorage/index.html
@@ -90,7 +90,7 @@
diff --git a/coverage/lcov-report/src/lib/utils/localStorage/index.js.html b/coverage/lcov-report/src/lib/utils/localStorage/index.js.html
index cdf4f379..55e130ef 100644
--- a/coverage/lcov-report/src/lib/utils/localStorage/index.js.html
+++ b/coverage/lcov-report/src/lib/utils/localStorage/index.js.html
@@ -58,7 +58,7 @@
diff --git a/coverage/lcov-report/src/lib/utils/localStorage/localStorage.js.html b/coverage/lcov-report/src/lib/utils/localStorage/localStorage.js.html
index 734ca03f..e1dd48af 100644
--- a/coverage/lcov-report/src/lib/utils/localStorage/localStorage.js.html
+++ b/coverage/lcov-report/src/lib/utils/localStorage/localStorage.js.html
@@ -163,7 +163,7 @@
diff --git a/coverage/lcov-report/src/lib/utils/request/index.html b/coverage/lcov-report/src/lib/utils/request/index.html
index 722265f1..9ab714e6 100644
--- a/coverage/lcov-report/src/lib/utils/request/index.html
+++ b/coverage/lcov-report/src/lib/utils/request/index.html
@@ -90,7 +90,7 @@
diff --git a/coverage/lcov-report/src/lib/utils/request/index.js.html b/coverage/lcov-report/src/lib/utils/request/index.js.html
index 9e87ffbf..98ac0e96 100644
--- a/coverage/lcov-report/src/lib/utils/request/index.js.html
+++ b/coverage/lcov-report/src/lib/utils/request/index.js.html
@@ -58,7 +58,7 @@
diff --git a/coverage/lcov-report/src/lib/utils/request/request.js.html b/coverage/lcov-report/src/lib/utils/request/request.js.html
index f22d0460..a65a5e80 100644
--- a/coverage/lcov-report/src/lib/utils/request/request.js.html
+++ b/coverage/lcov-report/src/lib/utils/request/request.js.html
@@ -175,7 +175,7 @@
diff --git a/coverage/lcov-report/src/lib/utils/validation/index.html b/coverage/lcov-report/src/lib/utils/validation/index.html
index 9be6b674..87edd2dd 100644
--- a/coverage/lcov-report/src/lib/utils/validation/index.html
+++ b/coverage/lcov-report/src/lib/utils/validation/index.html
@@ -90,7 +90,7 @@
diff --git a/coverage/lcov-report/src/lib/utils/validation/index.js.html b/coverage/lcov-report/src/lib/utils/validation/index.js.html
index 471cffed..c05f16bb 100644
--- a/coverage/lcov-report/src/lib/utils/validation/index.js.html
+++ b/coverage/lcov-report/src/lib/utils/validation/index.js.html
@@ -142,7 +142,7 @@
diff --git a/coverage/lcov-report/src/lib/utils/validation/validation.js.html b/coverage/lcov-report/src/lib/utils/validation/validation.js.html
index 807b9ec5..bfaf96c6 100644
--- a/coverage/lcov-report/src/lib/utils/validation/validation.js.html
+++ b/coverage/lcov-report/src/lib/utils/validation/validation.js.html
@@ -334,7 +334,7 @@
diff --git a/coverage/lcov.info b/coverage/lcov.info
index 5e292cc3..a89f6732 100644
--- a/coverage/lcov.info
+++ b/coverage/lcov.info
@@ -630,18 +630,18 @@ BRH:0
end_of_record
TN:
SF:/Applications/XAMPP/xamppfiles/htdocs/aime/blueprint/src/lib/components/videoPlayer/videoPlayerProps.ignore.js
-FN:164,(anonymous_0)
-FN:165,(anonymous_1)
-FN:166,(anonymous_2)
-FN:167,(anonymous_3)
-FN:168,(anonymous_4)
-FN:169,(anonymous_5)
-FN:170,(anonymous_6)
-FN:171,(anonymous_7)
-FN:172,(anonymous_8)
-FN:173,(anonymous_9)
-FN:174,(anonymous_10)
-FN:175,(anonymous_11)
+FN:166,(anonymous_0)
+FN:167,(anonymous_1)
+FN:168,(anonymous_2)
+FN:169,(anonymous_3)
+FN:170,(anonymous_4)
+FN:171,(anonymous_5)
+FN:172,(anonymous_6)
+FN:173,(anonymous_7)
+FN:174,(anonymous_8)
+FN:175,(anonymous_9)
+FN:176,(anonymous_10)
+FN:177,(anonymous_11)
FNF:12
FNH:0
FNDA:0,(anonymous_0)
diff --git a/lib/index.esm.js b/lib/index.esm.js
index ea1bff03..ee96c8ce 100644
--- a/lib/index.esm.js
+++ b/lib/index.esm.js
@@ -42938,7 +42938,9 @@ var videoPlayerDefaultProps = {
preload: false
},
file: {
- attributes: {},
+ attributes: {
+ disablepictureinpicture: 'true'
+ },
tracks: [],
forceVideo: false,
forceAudio: false,
@@ -42974,7 +42976,7 @@ var videoPlayerDefaultProps = {
onDisablePIP: function onDisablePIP() {}
};
-var css$c = "";
+var css$c = "video::-webkit-media-controls-current-time-display,\nvideo::-webkit-media-controls-time-remaining-display {\n display: none; }\n";
var styles$9 = {};
styleInject(css$c);
diff --git a/lib/index.js b/lib/index.js
index 4f22fee3..3e6e3670 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -42944,7 +42944,9 @@ var videoPlayerDefaultProps = {
preload: false
},
file: {
- attributes: {},
+ attributes: {
+ disablepictureinpicture: 'true'
+ },
tracks: [],
forceVideo: false,
forceAudio: false,
@@ -42980,7 +42982,7 @@ var videoPlayerDefaultProps = {
onDisablePIP: function onDisablePIP() {}
};
-var css$c = "";
+var css$c = "video::-webkit-media-controls-current-time-display,\nvideo::-webkit-media-controls-time-remaining-display {\n display: none; }\n";
var styles$9 = {};
styleInject(css$c);
diff --git a/src/lib/components/videoPlayer/videoPlayer.md b/src/lib/components/videoPlayer/videoPlayer.md
index cb91c859..44df83c9 100644
--- a/src/lib/components/videoPlayer/videoPlayer.md
+++ b/src/lib/components/videoPlayer/videoPlayer.md
@@ -10,7 +10,10 @@
```
```js
-
+
```
```js
diff --git a/src/lib/components/videoPlayer/videoPlayer.module.scss b/src/lib/components/videoPlayer/videoPlayer.module.scss
index e69de29b..d5c2c9d0 100644
--- a/src/lib/components/videoPlayer/videoPlayer.module.scss
+++ b/src/lib/components/videoPlayer/videoPlayer.module.scss
@@ -0,0 +1,4 @@
+video::-webkit-media-controls-current-time-display,
+video::-webkit-media-controls-time-remaining-display {
+ display: none;
+}
diff --git a/src/lib/components/videoPlayer/videoPlayerProps.ignore.js b/src/lib/components/videoPlayer/videoPlayerProps.ignore.js
index 7a38b698..889c7ba1 100644
--- a/src/lib/components/videoPlayer/videoPlayerProps.ignore.js
+++ b/src/lib/components/videoPlayer/videoPlayerProps.ignore.js
@@ -139,7 +139,9 @@ export const videoPlayerDefaultProps = {
preload: false,
},
file: {
- attributes: {},
+ attributes: {
+ disablepictureinpicture: 'true',
+ },
tracks: [],
forceVideo: false,
forceAudio: false,
diff --git a/styleguide/asset-manifest.json b/styleguide/asset-manifest.json
index 0d7ba2d1..cb6b60fa 100644
--- a/styleguide/asset-manifest.json
+++ b/styleguide/asset-manifest.json
@@ -1,7 +1,7 @@
{
- "main.css": "/static/css/main.d40b8604.css",
- "main.js": "/build/bundle.e2efec6d.js",
+ "main.css": "/static/css/main.623121ec.css",
+ "main.js": "/build/bundle.59bfa978.js",
"index.html": "/index.html",
- "precache-manifest.44b0f07c6e58594549637d3d42514626.js": "/precache-manifest.44b0f07c6e58594549637d3d42514626.js",
+ "precache-manifest.4d73c290b8346efa6cf336c7c43decb8.js": "/precache-manifest.4d73c290b8346efa6cf336c7c43decb8.js",
"service-worker.js": "/service-worker.js"
}
\ No newline at end of file
diff --git a/styleguide/build/bundle.e2efec6d.js b/styleguide/build/bundle.59bfa978.js
similarity index 78%
rename from styleguide/build/bundle.e2efec6d.js
rename to styleguide/build/bundle.59bfa978.js
index f0dfb172..4cf58ac2 100644
--- a/styleguide/build/bundle.e2efec6d.js
+++ b/styleguide/build/bundle.59bfa978.js
@@ -17,7 +17,7 @@ object-assign
* @author Feross Aboukhadijeh
* @license MIT
*/
-var r=n(440),i=n(441),a=n(442);function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function createBuffer(e,t){if(kMaxLength()=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|e}function byteLength(e,t){if(Buffer.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return utf8ToBytes(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return base64ToBytes(e).length;default:if(r)return utf8ToBytes(e).length;t=(""+t).toLowerCase(),r=!0}}function slowToString(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return hexSlice(this,t,n);case"utf8":case"utf-8":return utf8Slice(this,t,n);case"ascii":return asciiSlice(this,t,n);case"latin1":case"binary":return latin1Slice(this,t,n);case"base64":return base64Slice(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function swap(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function bidirectionalIndexOf(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=Buffer.from(t,r)),Buffer.isBuffer(t))return 0===t.length?-1:arrayIndexOf(e,t,n,r,i);if("number"==typeof t)return t&=255,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):arrayIndexOf(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(e,t,n,r,i){var a,o=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,u/=2,n/=2}function read(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var l=-1;for(a=n;as&&(n=s-u),a=n;a>=0;a--){for(var c=!0,d=0;di&&(r=i):r=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o239?4:l>223?3:l>191?2:1;if(i+d<=n)switch(d){case 1:l<128&&(c=l);break;case 2:128==(192&(a=e[i+1]))&&(u=(31&l)<<6|63&a)>127&&(c=u);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(u=(15&l)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(u=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return decodeCodePointsArray(r)}t.Buffer=Buffer,t.SlowBuffer=function SlowBuffer(e){+e!=e&&(e=0);return Buffer.alloc(+e)},t.INSPECT_MAX_BYTES=50,Buffer.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function typedArraySupport(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function foo(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=kMaxLength(),Buffer.poolSize=8192,Buffer._augment=function(e){return e.__proto__=Buffer.prototype,e},Buffer.from=function(e,t,n){return from(null,e,t,n)},Buffer.TYPED_ARRAY_SUPPORT&&(Buffer.prototype.__proto__=Uint8Array.prototype,Buffer.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Buffer[Symbol.species]===Buffer&&Object.defineProperty(Buffer,Symbol.species,{value:null,configurable:!0})),Buffer.alloc=function(e,t,n){return alloc(null,e,t,n)},Buffer.allocUnsafe=function(e){return allocUnsafe(null,e)},Buffer.allocUnsafeSlow=function(e){return allocUnsafe(null,e)},Buffer.isBuffer=function isBuffer(e){return!(null==e||!e._isBuffer)},Buffer.compare=function compare(e,t){if(!Buffer.isBuffer(e)||!Buffer.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},Buffer.prototype.compare=function compare(e,t,n,r,i){if(!Buffer.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),u=this.slice(r,i),l=e.slice(t,n),c=0;ci)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return hexWrite(this,e,t,n);case"utf8":case"utf-8":return utf8Write(this,e,t,n);case"ascii":return asciiWrite(this,e,t,n);case"latin1":case"binary":return latin1Write(this,e,t,n);case"base64":return base64Write(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},Buffer.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var o=4096;function decodeCodePointsArray(e){var t=e.length;if(t<=o)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr)&&(n=r);for(var i="",a=t;an)throw new RangeError("Trying to access beyond buffer length")}function checkInt(e,t,n,r,i,a){if(!Buffer.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function objectWriteUInt16(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function objectWriteUInt32(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function checkIEEE754(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function writeFloat(e,t,n,r,a){return a||checkIEEE754(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function writeDouble(e,t,n,r,a){return a||checkIEEE754(e,0,n,8),i.write(e,t,n,r,52,8),n+8}Buffer.prototype.slice=function slice(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},Buffer.prototype.readUInt8=function readUInt8(e,t){return t||checkOffset(e,1,this.length),this[e]},Buffer.prototype.readUInt16LE=function readUInt16LE(e,t){return t||checkOffset(e,2,this.length),this[e]|this[e+1]<<8},Buffer.prototype.readUInt16BE=function readUInt16BE(e,t){return t||checkOffset(e,2,this.length),this[e]<<8|this[e+1]},Buffer.prototype.readUInt32LE=function readUInt32LE(e,t){return t||checkOffset(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Buffer.prototype.readUInt32BE=function readUInt32BE(e,t){return t||checkOffset(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Buffer.prototype.readIntLE=function readIntLE(e,t,n){e|=0,t|=0,n||checkOffset(e,t,this.length);for(var r=this[e],i=1,a=0;++a=(i*=128)&&(r-=Math.pow(2,8*t)),r},Buffer.prototype.readIntBE=function readIntBE(e,t,n){e|=0,t|=0,n||checkOffset(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},Buffer.prototype.readInt8=function readInt8(e,t){return t||checkOffset(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Buffer.prototype.readInt16LE=function readInt16LE(e,t){t||checkOffset(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Buffer.prototype.readInt16BE=function readInt16BE(e,t){t||checkOffset(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Buffer.prototype.readInt32LE=function readInt32LE(e,t){return t||checkOffset(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Buffer.prototype.readInt32BE=function readInt32BE(e,t){return t||checkOffset(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Buffer.prototype.readFloatLE=function readFloatLE(e,t){return t||checkOffset(e,4,this.length),i.read(this,e,!0,23,4)},Buffer.prototype.readFloatBE=function readFloatBE(e,t){return t||checkOffset(e,4,this.length),i.read(this,e,!1,23,4)},Buffer.prototype.readDoubleLE=function readDoubleLE(e,t){return t||checkOffset(e,8,this.length),i.read(this,e,!0,52,8)},Buffer.prototype.readDoubleBE=function readDoubleBE(e,t){return t||checkOffset(e,8,this.length),i.read(this,e,!1,52,8)},Buffer.prototype.writeUIntLE=function writeUIntLE(e,t,n,r){(e=+e,t|=0,n|=0,r)||checkInt(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+i]=e/a&255;return t+n},Buffer.prototype.writeUInt8=function writeUInt8(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,1,255,0),Buffer.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Buffer.prototype.writeUInt16LE=function writeUInt16LE(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):objectWriteUInt16(this,e,t,!0),t+2},Buffer.prototype.writeUInt16BE=function writeUInt16BE(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):objectWriteUInt16(this,e,t,!1),t+2},Buffer.prototype.writeUInt32LE=function writeUInt32LE(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):objectWriteUInt32(this,e,t,!0),t+4},Buffer.prototype.writeUInt32BE=function writeUInt32BE(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):objectWriteUInt32(this,e,t,!1),t+4},Buffer.prototype.writeIntLE=function writeIntLE(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);checkInt(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+n},Buffer.prototype.writeIntBE=function writeIntBE(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);checkInt(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},Buffer.prototype.writeInt8=function writeInt8(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Buffer.prototype.writeInt16LE=function writeInt16LE(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):objectWriteUInt16(this,e,t,!0),t+2},Buffer.prototype.writeInt16BE=function writeInt16BE(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):objectWriteUInt16(this,e,t,!1),t+2},Buffer.prototype.writeInt32LE=function writeInt32LE(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):objectWriteUInt32(this,e,t,!0),t+4},Buffer.prototype.writeInt32BE=function writeInt32BE(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):objectWriteUInt32(this,e,t,!1),t+4},Buffer.prototype.writeFloatLE=function writeFloatLE(e,t,n){return writeFloat(this,e,t,!0,n)},Buffer.prototype.writeFloatBE=function writeFloatBE(e,t,n){return writeFloat(this,e,t,!1,n)},Buffer.prototype.writeDoubleLE=function writeDoubleLE(e,t,n){return writeDouble(this,e,t,!0,n)},Buffer.prototype.writeDoubleBE=function writeDoubleBE(e,t,n){return writeDouble(this,e,t,!1,n)},Buffer.prototype.copy=function copy(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(a<1e3||!Buffer.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function asciiToBytes(e){for(var t=[],n=0;n>8,i=n%256,a.push(i),a.push(r);return a}function base64ToBytes(e){return r.toByteArray(base64clean(e))}function blitBuffer(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(18))},function(e,t,n){var r=n(42).f,i=n(64),a=n(26)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},function(e,t,n){var r=n(76),i=n(89),a=n(31);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],o={};o[e]=t(n),r(r.S+r.F*a(function(){n(1)}),"Object",o)}},function(e,t){e.exports=function arrayMap(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++np))return!1;var h=c.get(e);if(h&&c.get(t))return h==t;var m=-1,g=!0,y=n&s?new r:void 0;for(c.set(e,t),c.set(t,e);++my;)m(g[y++]);d.constructor=l,l.prototype=d,n(63)(r,"RegExp",l)}n(498)("RegExp")},function(e,t,n){var r=n(32),i=n(112),a=NaN,o=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function toNumber(e){if("number"==typeof e)return e;if(i(e))return a;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=u.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):s.test(e)?a:+e}},function(e,t,n){"use strict";n(500);var r=n(25),i=n(100),a=n(30),o=/./.toString,s=function define(e){n(63)(RegExp.prototype,"toString",e,!0)};n(31)(function(){return"/a/b"!=o.call({source:"a",flags:"b"})})?s(function toString(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!a&&e instanceof RegExp?i.call(e):void 0)}):"toString"!=o.name&&s(function toString(){return o.call(this)})},function(e,t,n){"use strict";var r=n(25),i=n(93),a=n(145),o=n(98);n(99)("match",1,function(e,t,n,s){return[function match(n){var r=e(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=s(n,e,this);if(t.done)return t.value;var u=r(e),l=String(this);if(!u.global)return o(u,l);var c=u.unicode;u.lastIndex=0;for(var d,p=[],f=0;null!==(d=o(u,l));){var h=String(d[0]);p[f]=h,""===h&&(u.lastIndex=a(l,i(u.lastIndex),c)),f++}return 0===f?null:p}]})},function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return h});var r=n(4),i=n(5),a=n(6),o=n(8),s=n(7),u=n(9),l=n(0),c=n.n(l),d=n(12),p=n(190),f=n.n(p),h=function(e){function Avatar(){return Object(i.a)(this,Avatar),Object(o.a)(this,Object(s.a)(Avatar).apply(this,arguments))}return Object(u.a)(Avatar,e),Object(a.a)(Avatar,[{key:"getInitials",value:function getInitials(e){var t=e.trim().split("(")[0].split(" ");return(t.length>1?"".concat(t[0][0]).concat(t.slice(-1)[0][0]):"".concat(t[0][0]).concat(t[0][1])).toUpperCase()}},{key:"render",value:function render(){var e=this.props,t=e.photo,n=e.text,r=e.theme;return c.a.createElement("div",{className:f.a["theme-".concat(r)]},c.a.createElement("div",{className:f.a.profileAvatar},t&&t.length&&t[0].url?c.a.createElement("img",{alt:n,src:t[0].url}):c.a.createElement("span",null,this.getInitials(n))))}}]),Avatar}(l.PureComponent);h.defaultProps=Object(r.a)({},d.defaultComponentPropTypes,{photo:null})},function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return h});var r=n(4),i=n(5),a=n(6),o=n(8),s=n(7),u=n(9),l=n(0),c=n.n(l),d=n(12),p=n(61),f=n.n(p),h=function(e){function Button(){return Object(i.a)(this,Button),Object(o.a)(this,Object(s.a)(Button).apply(this,arguments))}return Object(u.a)(Button,e),Object(a.a)(Button,[{key:"render",value:function render(){var e=this.props,t=e.onClickFunction,n=e.text,r=e.type,i=e.underneathLabel,a=e.disabled,o=e.url,s=e.containerClassName,u=e.className,l=e.theme,d=e.children;return c.a.createElement("div",{className:f.a["theme-".concat(l)]},c.a.createElement("div",{className:"".concat(f.a.container," ").concat(s)},"link"===r&&o?c.a.createElement("a",{href:o,className:"".concat(u," ").concat(f.a.linkButton)},n||d):c.a.createElement("div",{className:f.a.buttonGroup},c.a.createElement("button",{type:r,className:"".concat(u," ").concat(f.a.button),onClick:t,disabled:a},n||d),i&&c.a.createElement("label",{className:f.a.underneathLabel},i))))}}]),Button}(l.PureComponent);h.defaultProps=Object(r.a)({},d.defaultComponentPropTypes,{onClickFunction:function onClickFunction(){},underneathLabel:null,disabled:!1,url:null})},function(e,t,n){"use strict";n.r(t);var r=n(4),i=n(5),a=n(6),o=n(8),s=n(7),u=n(9),l=n(0),c=n.n(l),d=n(12),p=n(50),f=n(74),h=n.n(f),m=function(e){function Checkbox(){var e,t;Object(i.a)(this,Checkbox);for(var n=arguments.length,r=new Array(n),a=0;a=0||(i[n]=e[n]);return i}var s="unmounted";t.UNMOUNTED=s;var u="exited";t.EXITED=u;var l="entering";t.ENTERING=l;var c="entered";t.ENTERED=c;t.EXITING="exiting";var d=function(e){var t,n;function Transition(t,n){var r;r=e.call(this,t,n)||this;var i,a=n.transitionGroup,o=a&&!a.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=u,r.appearStatus=l):i=c:i=t.unmountOnExit||t.mountOnEnter?s:u,r.state={status:i},r.nextCallback=null,r}n=e,(t=Transition).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=Transition.prototype;return r.getChildContext=function getChildContext(){return{transitionGroup:null}},Transition.getDerivedStateFromProps=function getDerivedStateFromProps(e,t){return e.in&&t.status===s?{status:u}:null},r.componentDidMount=function componentDidMount(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function componentDidUpdate(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==l&&n!==c&&(t=l):n!==l&&n!==c||(t="exiting")}this.updateStatus(!1,t)},r.componentWillUnmount=function componentWillUnmount(){this.cancelNextCallback()},r.getTimeouts=function getTimeouts(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=r.appear),{exit:e,enter:t,appear:n}},r.updateStatus=function updateStatus(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=a.default.findDOMNode(this);t===l?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===u&&this.setState({status:s})},r.performEnter=function performEnter(e,t){var n=this,r=this.props.enter,i=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,a=this.getTimeouts();t||r?(this.props.onEnter(e,i),this.safeSetState({status:l},function(){n.props.onEntering(e,i),n.onTransitionEnd(e,a.enter,function(){n.safeSetState({status:c},function(){n.props.onEntered(e,i)})})})):this.safeSetState({status:c},function(){n.props.onEntered(e)})},r.performExit=function performExit(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:"exiting"},function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,function(){t.safeSetState({status:u},function(){t.props.onExited(e)})})})):this.safeSetState({status:u},function(){t.props.onExited(e)})},r.cancelNextCallback=function cancelNextCallback(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function safeSetState(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function setNextCallback(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function onTransitionEnd(e,t,n){this.setNextCallback(n),e?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},r.render=function render(){var e=this.state.status;if(e===s)return null;var t=this.props,n=t.children,r=_objectWithoutPropertiesLoose(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(e,r);var a=i.default.Children.only(n);return i.default.cloneElement(a,r)},Transition}(i.default.Component);function noop(){}d.contextTypes={transitionGroup:r.object},d.childContextTypes={transitionGroup:function transitionGroup(){}},d.propTypes={},d.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop,onEntering:noop,onEntered:noop,onExit:noop,onExiting:noop,onExited:noop},d.UNMOUNTED=0,d.EXITED=1,d.ENTERING=2,d.ENTERED=3,d.EXITING=4;var p=(0,o.polyfill)(d);t.default=p},function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;(function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}})(n(2));t.timeoutsShape=null;t.classNamesShape=null},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=_interopRequireDefault(n(2)),i=_interopRequireDefault(n(0)),a=n(67),o=n(528);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t0?n.end(n.length-1):t}},{key:"getCurrentTime",value:function getCurrentTime(){return this.player?this.player.currentTime:null}},{key:"getSecondsLoaded",value:function getSecondsLoaded(){if(!this.player)return null;var e=this.player.buffered;if(0===e.length)return 0;var t=e.end(e.length-1),n=this.getDuration();return t>n?n:t}},{key:"getSource",value:function getSource(e){var t=this.shouldUseHLS(e),n=this.shouldUseDASH(e);if(!(e instanceof Array||(0,s.isMediaStream)(e)||t||n))return h.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}},{key:"render",value:function render(){var e=this.props,t=e.url,n=e.playing,i=e.loop,a=e.controls,s=e.muted,u=e.config,l=e.width,c=e.height,d=this.shouldUseAudio(this.props)?"audio":"video",p={width:"auto"===l?l:"100%",height:"auto"===c?c:"100%"};return o.default.createElement(d,r({ref:this.ref,src:this.getSource(t),style:p,preload:"auto",autoPlay:n||void 0,controls:a,muted:s,loop:i},u.file.attributes),t instanceof Array&&t.map(this.renderSourceElement),u.file.tracks.map(this.renderTrack))}}]),FilePlayer}();m.displayName="FilePlayer",m.canPlay=canPlay,m.canEnablePIP=function canEnablePIP(e){return canPlay(e)&&!!document.pictureInPictureEnabled&&!c.test(e)},t.default=(0,u.default)(m)},function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return h});var r=n(4),i=n(5),a=n(6),o=n(8),s=n(7),u=n(9),l=n(0),c=n.n(l),d=n(12),p=n(192),f=n.n(p),h=function(e){function WarningBlock(){return Object(i.a)(this,WarningBlock),Object(o.a)(this,Object(s.a)(WarningBlock).apply(this,arguments))}return Object(u.a)(WarningBlock,e),Object(a.a)(WarningBlock,[{key:"render",value:function render(){var e=this.props,t=e.theme,n=e.children,r=e.className;return c.a.createElement("div",{className:f.a["theme-".concat(t)]},c.a.createElement("div",{className:"".concat(f.a.warningBlock," ").concat(r)},n))}}]),WarningBlock}(l.PureComponent);h.defaultProps=Object(r.a)({},d.defaultComponentPropTypes)},function(e,t){e.exports=function arrayEach(e,t){for(var n=-1,r=null==e?0:e.length;++n1&&console.warn("Airtable: `select` takes only one parameter, but it was given "+arguments.length+" parameters. Use `eachPage` or `firstPage` to fetch records."),r(e)){var t=c.validateParams(e);if(t.errors.length){var n=o(t.errors,function(e){return" * "+e});s(!1,"Airtable: invalid parameters for `select`:\n"+n.join("\n"))}return t.ignoredKeys.length&&console.warn("Airtable: the following parameters to `select` will be ignored: "+t.ignoredKeys.join(", ")),new c(this,t.validParams)}s(!1,"Airtable: the parameter for `select` should be a plain object or undefined.")},_urlEncodedNameOrId:function _urlEncodedNameOrId(){return this.id||encodeURIComponent(this.name)},_createRecord:function _createRecord(e,t,n){var r=this;n||(n=t,t={});var a=i({fields:e},t);this._base.runAction("post","/"+r._urlEncodedNameOrId()+"/",{},a,function(e,t,i){if(e)n(e);else{var a=new d(r,i.id,i);n(null,a)}})},_updateRecord:function _updateRecord(e,t,n,r){var i=new d(this,e);r?i.patchUpdate(t,n,r):(r=n,i.patchUpdate(t,r))},_replaceRecord:function _replaceRecord(e,t,n,r){var i=new d(this,e);r?i.putUpdate(t,n,r):(r=n,i.putUpdate(t,r))},_destroyRecord:function _destroyRecord(e,t){new d(this,e).destroy(t)},_listRecords:function _listRecords(e,t,n,r){var a=this;r||(r=n,n={});var s=i({limit:e,offset:t},n);this._base.runAction("get","/"+this._urlEncodedNameOrId()+"/",s,null,function(e,t,n){if(e)r(e);else{var i=o(n.records,function(e){return new d(a,null,e)});r(null,i,n.offset)}})},_forEachRecord:function _forEachRecord(e,t,n){2===arguments.length&&(n=t,t=e,e={});var r=this,i=f.__recordsPerPageForIteration||100,o=null;!function nextPage(){r._listRecords(i,o,e,function(e,r,i){e?n(e):(a(r,t),i?(o=i,nextPage()):n())})}()}});e.exports=f},function(e,t,n){var r=n(48),i=n(172),a=n(35),o="[object Object]",s=Function.prototype,u=Object.prototype,l=s.toString,c=u.hasOwnProperty,d=l.call(Object);e.exports=function isPlainObject(e){if(!a(e)||r(e)!=o)return!1;var t=i(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==d}},function(e,t,n){var r=n(173),i=n(81),a=n(594),o=n(58),s=n(116),u=n(39),l=Object.prototype.hasOwnProperty,c=a(function(e,t){if(s(t)||o(t))i(t,u(t),e);else for(var n in t)l.call(t,n)&&r(e,n,t[n])});e.exports=c},function(e,t,n){var r=n(271);e.exports=function baseAssignValue(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(59),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t){var n=Function.prototype.toString;e.exports=function toSource(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(174),i=n(603),a=n(657),o=n(21);e.exports=function map(e,t){return(o(e)?r:a)(e,i(t,3))}},function(e,t,n){var r=n(628),i=n(35);e.exports=function baseIsEqual(e,t,n,a,o){return e===t||(null==e||null==t||!i(e)&&!i(t)?e!=e&&t!=t:r(e,t,n,a,baseIsEqual,o))}},function(e,t,n){var r=n(629),i=n(632),a=n(633),o=1,s=2;e.exports=function equalArrays(e,t,n,u,l,c){var d=n&o,p=e.length,f=t.length;if(p!=f&&!(d&&f>p))return!1;var h=c.get(e);if(h&&c.get(t))return h==t;var m=-1,g=!0,y=n&s?new r:void 0;for(c.set(e,t),c.set(t,e);++m-1:!!c&&r(e,t,n)>-1}},function(e,t,n){var r=n(261),i=n(674),a=n(58);e.exports=function keysIn(e){return a(e)?r(e,!0):i(e)}},function(e,t,n){var r=n(279),i=n(172),a=n(178),o=n(280),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,a(e)),e=i(e);return t}:o;e.exports=s},function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return createBugsnagClient});var r=n(0),i=n.n(r),a=n(326),o=n.n(a),s=n(327),u=n.n(s),l=["production","staging"];function createBugsnagClient(e,t,n){var r=null;return"test"!==e&&(r=o()({apiKey:t,releaseStage:n,notifyReleaseStages:l})).use(u.a,i.a),r}},function(e,t,n){"use strict";n.r(t);var r=n(4);function _arrayWithoutHoles(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0||(i[n]=e[n]);return i}function _objectWithoutProperties(e,t){if(null==e)return{};var n,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var i=n(5),a=n(6),o=n(8),s=n(7),u=n(9),l=n(0),c=n.n(l),d=n(324),p=n.n(d),f=n(12),h=n(2),m=n.n(h),g=(m.a.string,m.a.oneOfType([m.a.string,m.a.arrayOf(m.a.string),m.a.object]).isRequired,m.a.bool,m.a.bool,m.a.bool,m.a.oneOfType([m.a.bool,m.a.string]),m.a.number,m.a.bool,m.a.number,m.a.oneOfType([m.a.string,m.a.number]),m.a.oneOfType([m.a.string,m.a.number]),m.a.object,m.a.number,m.a.bool,m.a.bool,m.a.oneOfType([m.a.string,m.a.func,m.a.shape({render:m.a.func.isRequired})]),m.a.shape({soundcloud:m.a.shape({options:m.a.object}),youtube:m.a.shape({playerVars:m.a.object,embedOptions:m.a.object,preload:m.a.bool}),facebook:m.a.shape({appId:m.a.string}),dailymotion:m.a.shape({params:m.a.object,preload:m.a.bool}),vimeo:m.a.shape({playerOptions:m.a.object,preload:m.a.bool}),file:m.a.shape({attributes:m.a.object,tracks:m.a.array,forceVideo:m.a.bool,forceAudio:m.a.bool,forceHLS:m.a.bool,forceDASH:m.a.bool,hlsOptions:m.a.object,hlsVersion:m.a.string,dashVersion:m.a.string}),wistia:m.a.shape({options:m.a.object}),mixcloud:m.a.shape({options:m.a.object}),twitch:m.a.shape({options:m.a.object})}),m.a.func,m.a.func,m.a.func,m.a.func,m.a.func,m.a.func,m.a.func,m.a.func,m.a.func,m.a.func,m.a.func,m.a.func,n(325)),y=n.n(g);n.d(t,"default",function(){return v});var v=function(e){function VideoPlayer(){return Object(i.a)(this,VideoPlayer),Object(o.a)(this,Object(s.a)(VideoPlayer).apply(this,arguments))}return Object(u.a)(VideoPlayer,e),Object(a.a)(VideoPlayer,[{key:"render",value:function render(){var e=this.props,t=e.containerClassName,n=e.theme,r=_objectWithoutProperties(e,["containerClassName","theme"]);return c.a.createElement("div",{className:y.a["theme-".concat(n)]},c.a.createElement("div",{className:t},c.a.createElement(p.a,r)))}}]),VideoPlayer}(l.Component);v.defaultProps=Object(r.a)({},f.defaultComponentPropTypes,{containerClassName:"",playing:!1,loop:!1,controls:!1,light:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,wrapper:"div",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},preload:!1},facebook:{appId:"1309697205772819"},dailymotion:{params:{api:1,"endscreen-enable":!1},preload:!1},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},preload:!1},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,hlsOptions:{},hlsVersion:"0.10.1",dashVersion:"2.9.2"},wistia:{options:{}},mixcloud:{options:{hide_cover:1}},twitch:{options:{}}},onReady:function onReady(){},onStart:function onStart(){},onPlay:function onPlay(){},onPause:function onPause(){},onBuffer:function onBuffer(){},onEnded:function onEnded(){},onError:function onError(){},onDuration:function onDuration(){},onSeek:function onSeek(){},onProgress:function onProgress(){},onEnablePIP:function onEnablePIP(){},onDisablePIP:function onDisablePIP(){}})},function(e,t,n){"use strict";n.r(t);var r=n(41),i=n.n(r);function asyncGeneratorStep(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function _next(e){asyncGeneratorStep(a,r,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(a,r,i,_next,_throw,"throw",e)}_next(void 0)})}}n.d(t,"airtableFetchRecords",function(){return airtableFetchRecords}),n.d(t,"loadList",function(){return loadList}),n.d(t,"createRecord",function(){return createRecord}),n.d(t,"updateRecord",function(){return updateRecord});var a=n(572),o="https://api.airtable.com";function airtableFetchRecords(e){return _airtableFetchRecords.apply(this,arguments)}function _airtableFetchRecords(){return(_airtableFetchRecords=_asyncToGenerator(i.a.mark(function _callee(e){var t,n,r,s,u,l=arguments;return i.a.wrap(function _callee$(i){for(;;)switch(i.prev=i.next){case 0:return t=l.length>1&&void 0!==l[1]?l[1]:null,n=l.length>2&&void 0!==l[2]?l[2]:null,a.configure({endpointUrl:o,apiKey:"keyQwkepkcSrWl1du"}),r=a.base(e.baseName),s=[],u={view:e.gridView},t&&(u.filterByFormula=t),n&&(u.fields=n),i.abrupt("return",new Promise(function(t,n){r(e.table).select(u).eachPage(function(t,n){t.forEach(function(t){s.push(e.recordBuilder(t))}),n()},function(e){e?n(e):t(s)})}));case 9:case"end":return i.stop()}},_callee,this)}))).apply(this,arguments)}function loadList(e,t){return _loadList.apply(this,arguments)}function _loadList(){return(_loadList=_asyncToGenerator(i.a.mark(function _callee2(e,t){var n,r,a,o=arguments;return i.a.wrap(function _callee2$(i){for(;;)switch(i.prev=i.next){case 0:return n=o.length>2&&void 0!==o[2]?o[2]:null,r=o.length>3&&void 0!==o[3]?o[3]:null,a=r&&r.length?r.map(function(t){return e[t]}):Object.keys(e).map(function(t){return e[t]}),i.abrupt("return",airtableFetchRecords(t,n,a));case 4:case"end":return i.stop()}},_callee2,this)}))).apply(this,arguments)}function createRecord(e,t){return _createRecord.apply(this,arguments)}function _createRecord(){return(_createRecord=_asyncToGenerator(i.a.mark(function _callee3(e,t){var n;return i.a.wrap(function _callee3$(r){for(;;)switch(r.prev=r.next){case 0:return a.configure({endpointUrl:o,apiKey:"keyQwkepkcSrWl1du"}),n=a.base(e.baseName),r.abrupt("return",new Promise(function(r,i){n(e.table).create(t,function(e){e&&i(e),r()})}));case 3:case"end":return r.stop()}},_callee3,this)}))).apply(this,arguments)}function updateRecord(e,t,n){return _updateRecord.apply(this,arguments)}function _updateRecord(){return(_updateRecord=_asyncToGenerator(i.a.mark(function _callee4(e,t,n){var r;return i.a.wrap(function _callee4$(i){for(;;)switch(i.prev=i.next){case 0:return a.configure({endpointUrl:o,apiKey:"keyQwkepkcSrWl1du"}),r=a.base(e.baseName),i.abrupt("return",new Promise(function(i,a){r(e.table).update(n,t,function(e){e&&a(e),i()})}));case 3:case"end":return i.stop()}},_callee4,this)}))).apply(this,arguments)}},function(e,t,n){"use strict";n.r(t);var r=n(4),i=n(328),a=n.n(i),o=n(82);function checkStatus(e){if(e.status>=200&&e.status<300)return e;var t=new Error(e.statusText);throw t.response=e,t}function request(e,t){var n=Object(r.a)({},t);return"POST"!==t.method&&"PUT"!==t.method||(n.headers=Object(r.a)({Accept:"application/json","Content-Type":"application/json; charset=utf-8"},t.headers),t.hasAuthorization&&(n.headers.Authorization="Bearer ".concat(Object(o.getFromStorage)("loginToken")),t.hasAuthorization=void 0),n.body=JSON.stringify(t.body)),a()(e,n).then(checkStatus).then(function(e){return 204!==e.status?e.json():{}})}n.d(t,"default",function(){return request})},function(e,t,n){"use strict";function symbolObservablePonyfill(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",function(){return symbolObservablePonyfill})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=!1,n=[],r=void 0,i=void 0,a=function setSelector(){i.selector=n.join(",\n")},o=p(a);return{onProcessRule:function onProcessRule(a,u){if(!u||u===r||"style"!==a.type)return;if(!d(a,u,e))return;i||(r=a.options.jss.createStyleSheet(null,s),i=r.addRule("reset",l(e.reset)),r.attach());var c=a.selector;-1===n.indexOf(c)&&(n.push(c),t=o())},onProcessSheet:function onProcessSheet(){!t&&n.length&&a()}}};var a=_interopRequireDefault(n(361)),o=_interopRequireDefault(n(362));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var s={meta:"jss-isolate",index:-1/0,link:!0},u={inherited:a.default,all:o.default},l=function getStyle(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"inherited";if("string"==typeof e)return u[e];if("object"===(void 0===e?"undefined":i(e))){if(Array.isArray(e)){var t=e[0],n=e[1];return r({},u[t],n)}return r({},a.default,e)}return a.default},c={keyframes:!0,conditional:!0},d=function shouldIsolate(e,t,n){var r=e.options.parent;if(r&&c[r.type])return!1;var i=null==n.isolate||n.isolate;return null!=t.options.isolate&&(i=t.options.isolate),null!=e.style.isolate&&(i=e.style.isolate,delete e.style.isolate),"string"==typeof i?i===e.key:i},p=function createDebounced(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Date.now();return function(){var r=Date.now();return!(r-n0&&void 0!==arguments[0]?arguments[0]:{});return{onProcessStyle:function onProcessStyle(t,n){if("style"!==n.type)return t;for(var r in t)t[r]=iterate(r,t[r],e);return t},onChangeValue:function onChangeValue(t,n){return iterate(n,t,e)}}};var i=addCamelCasedVersion(function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(n(364)).default);function iterate(e,t,n){if(!t)return t;var a=t,o=void 0===t?"undefined":r(t);switch("object"===o&&Array.isArray(t)&&(o="array"),o){case"object":if("fallbacks"===e){for(var s in t)t[s]=iterate(s,t[s],n);break}for(var u in t)t[u]=iterate(e+"-"+u,t[u],n);break;case"array":for(var l=0;l-1)return registerClass(e,t.split(" "));var i=e.options.parent;if("$"===t[0]){var a=i.getRule(t.substr(1));return a?a===e?((0,r.default)(!1,"[JSS] Cyclic composition detected. \r\n%s",e),!1):(i.classes[e.key]+=" "+i.classes[a.key],!0):((0,r.default)(!1,"[JSS] Referenced rule is not defined. \r\n%s",e),!1)}return e.options.parent.classes[e.key]+=" "+t,!0}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=13,s=9,u=8,l=89,c=90,d=77,p=57,f=219,h=222,m=192,g=100,y=3e3,v="navigator"in e&&/Win/i.test(navigator.platform),b="navigator"in e&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),_="npm__react-simple-code-editor__textarea",x=function(e){function Editor(){var e,t,n;_classCallCheck(this,Editor);for(var i=arguments.length,a=Array(i),_=0;_1&&void 0!==arguments[1]&&arguments[1],i=n._history,a=i.stack,o=i.offset;if(a.length&&o>-1){n._history.stack=a.slice(0,o+1);var s=n._history.stack.length;if(s>g){var u=s-g;n._history.stack=a.slice(u,s),n._history.offset=Math.max(n._history.offset-u,0)}}var l=Date.now();if(t){var c=n._history.stack[n._history.offset];if(c&&l-c.timestamp=C&&t<=E&&e.startsWith(S)?e.substring(S.length):e}).join("\n");if(_!==P){var $=w[C];n._applyEdits({value:P,selectionStart:$.startsWith(S)?x-S.length:x,selectionEnd:k-(_.length-P.length)})}}else if(x!==k){var O=n._getLines(_,x),T=O.length-1,R=n._getLines(_,k).length-1,A=O[T];n._applyEdits({value:_.split("\n").map(function(e,t){return t>=T&&t<=R?S+e:e}).join("\n"),selectionStart:/\S/.test(A)?x+S.length:x,selectionEnd:k+S.length*(R-T+1)})}else{var I=x+S.length;n._applyEdits({value:_.substring(0,x)+S+_.substring(k),selectionStart:I,selectionEnd:I})}else if(e.keyCode===u){var D=x!==k;if(_.substring(0,x).endsWith(S)&&!D){e.preventDefault();var j=x-S.length;n._applyEdits({value:_.substring(0,x-S.length)+_.substring(k),selectionStart:j,selectionEnd:j})}}else if(e.keyCode===o){if(x===k){var M=n._getLines(_,x).pop().match(/^\s+/);if(M&&M[0]){e.preventDefault();var L="\n"+M[0],N=x+L.length;n._applyEdits({value:_.substring(0,x)+L+_.substring(k),selectionStart:N,selectionEnd:N})}}}else if(e.keyCode===p||e.keyCode===f||e.keyCode===h||e.keyCode===m){var F=void 0;e.keyCode===p&&e.shiftKey?F=["(",")"]:e.keyCode===f?F=e.shiftKey?["{","}"]:["[","]"]:e.keyCode===h?F=e.shiftKey?['"','"']:["'","'"]:e.keyCode!==m||e.shiftKey||(F=["`","`"]),x!==k&&F&&(e.preventDefault(),n._applyEdits({value:_.substring(0,x)+F[0]+_.substring(x,k)+F[1]+_.substring(k),selectionStart:x,selectionEnd:k+2}))}else(b?e.metaKey&&e.keyCode===c:e.ctrlKey&&e.keyCode===c)&&!e.shiftKey&&!e.altKey?(e.preventDefault(),n._undoEdit()):(b?e.metaKey&&e.keyCode===c&&e.shiftKey:v?e.ctrlKey&&e.keyCode===l:e.ctrlKey&&e.keyCode===c&&e.shiftKey)&&!e.altKey?(e.preventDefault(),n._redoEdit()):e.keyCode!==d||!e.ctrlKey||b&&!e.shiftKey||(e.preventDefault(),n.setState(function(e){return{capture:!e.capture}}))}},n._handleChange=function(e){var t=e.target,r=t.value,i=t.selectionStart,a=t.selectionEnd;n._recordChange({value:r,selectionStart:i,selectionEnd:a},!0),n.props.onValueChange(r)},n._history={stack:[],offset:-1},_possibleConstructorReturn(n,t)}return _inherits(Editor,a.Component),i(Editor,[{key:"componentDidMount",value:function componentDidMount(){this._recordCurrentState()}},{key:"render",value:function render(){var e=this,t=this.props,n=t.value,i=t.style,o=t.padding,s=t.highlight,u=t.textareaId,l=t.autoFocus,c=t.disabled,d=t.form,p=t.maxLength,f=t.minLength,h=t.name,m=t.placeholder,g=t.readOnly,y=t.required,v=t.onClick,b=t.onFocus,x=t.onBlur,S=t.onKeyUp,w=(t.onKeyDown,t.onValueChange,t.tabSize,t.insertSpaces,t.ignoreTabKey,_objectWithoutProperties(t,["value","style","padding","highlight","textareaId","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey"])),C={paddingTop:o,paddingRight:o,paddingBottom:o,paddingLeft:o},E=s(n);return a.createElement("div",r({},w,{style:r({},k.container,i)}),a.createElement("textarea",{ref:function ref(t){return e._input=t},style:r({},k.editor,k.textarea,C),className:_,id:u,value:n,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:v,onKeyUp:S,onFocus:b,onBlur:x,disabled:c,form:d,maxLength:p,minLength:f,name:h,placeholder:m,readOnly:g,required:y,autoFocus:l,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),a.createElement("pre",r({"aria-hidden":"true",style:r({},k.editor,k.highlight,C)},"string"==typeof E?{dangerouslySetInnerHTML:{__html:E+"
"}}:{children:E})),a.createElement("style",{type:"text/css",dangerouslySetInnerHTML:{__html:"\n/**\n * Reset the text fill color so that placeholder is visible\n */\n.npm__react-simple-code-editor__textarea:empty {\n -webkit-text-fill-color: inherit !important;\n}\n\n/**\n * Hack to apply on some CSS on IE10 and IE11\n */\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n /**\n * IE doesn't support '-webkit-text-fill-color'\n * So we use 'color: transparent' to make the text transparent on IE\n * Unlike other browsers, it doesn't affect caret color in IE\n */\n .npm__react-simple-code-editor__textarea {\n color: transparent !important;\n }\n\n .npm__react-simple-code-editor__textarea::selection {\n background-color: #accef7 !important;\n color: transparent !important;\n }\n}\n"}}))}},{key:"session",get:function get(){return{history:this._history}},set:function set(e){this._history=e.history}}]),Editor}();x.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t.default=x;var k={container:{position:"relative",textAlign:"left",whiteSpace:"pre-wrap",wordBreak:"keep-all",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"inherit",wordBreak:"inherit"}}}).call(this,n(18))},function(e,t,n){(function(t){e.exports=function(){var e=/[\\\'\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'",'"':'\\"',"\\":"\\\\"};function escapeChar(e){var t=n[e];return t||"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}var r={};"break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield".split(" ").map(function(e){r[e]=!0});var i=/^[A-Za-z_$][A-Za-z0-9_$]*$/;function isValidVariableName(e){return!r[e]&&i.test(e)}function toGlobalVariable(e){return"Function("+stringify("return this;")+")()"}function toPath(e){for(var t="",n=0;n-1)return void p.push(u.slice(),d[r]);c.push(e),d.push(u.slice())}if(!(u.length>i||s--<=0))return t(e,n,next)}:function(e,t){var r=l.indexOf(e);if(!(r>-1||u.length>i||s--<=0)){l.push(e);var e=t(e,n,next);return l.pop(),e}};if("function"==typeof t){var h=f;f=function recurse(e,n){return h(e,function(e,r,i){return t(e,r,function(e){return n(e,r,i)})})}}var m=f(e,stringify);if(p.length){for(var g=n?"\n":"",y=n?" = ":"=",v=";"+g,h=n?"(function () {":"(function(){",b=["var x"+y+m],_=0;_=t||n<0||y&&e-m>=d}function timerExpired(){var e=i();if(shouldInvoke(e))return trailingEdge(e);f=setTimeout(timerExpired,remainingWait(e))}function trailingEdge(e){return f=void 0,v&&l?invokeFunc(e):(l=c=void 0,p)}function debounced(){var e=i(),n=shouldInvoke(e);if(l=arguments,c=this,h=e,n){if(void 0===f)return leadingEdge(h);if(y)return f=setTimeout(timerExpired,t),invokeFunc(h)}return void 0===f&&(f=setTimeout(timerExpired,t)),p}return t=a(t)||0,r(n)&&(g=!!n.leading,d=(y="maxWait"in n)?s(a(n.maxWait)||0,t):d,v="trailing"in n?!!n.trailing:v),debounced.cancel=function cancel(){void 0!==f&&clearTimeout(f),m=0,l=h=c=f=void 0},debounced.flush=function flush(){return void 0===f?p:trailingEdge(i())},debounced}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return transform});var r=n(310),i=n(312),a={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},o=/^[\da-fA-F]+$/,s=/^\d+$/,u="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}var l=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function injectDynamicImport(e){var t=e.tokTypes;function parseDynamicImport(){var e=this.startNode();return this.next(),this.type!==t.parenL&&this.unexpected(),this.finishNode(e,n)}function peekNext(){return this.input[this.pos]}return t._import.startsExpr=!0,e.plugins.dynamicImport=function dynamicImportPlugin(e){e.extend("parseStatement",function(e){return function parseStatement(){var n=this.startNode();if(this.type===t._import&&peekNext.call(this)===t.parenL.label){var r=this.parseExpression();return this.parseExpressionStatement(n,r)}for(var i=arguments.length,a=Array(i),o=0;ot)return{line:n+1,column:t-a,char:n};a=o}throw new Error("Could not determine location of character")}function repeat(e,t){for(var n="";t--;)n+=e;return n}function getSnippet(e,t,n){void 0===n&&(n=1);var r=Math.max(t.line-5,0),i=t.line,a=String(i).length,o=e.split("\n").slice(r,i),s=o[o.length-1].slice(0,t.column).replace(/\t/g," ").length,u=o.map(function(e,t){return n=a,(i=String(t+r+1))+repeat(" ",n-i.length)+" : "+e.replace(/\t/g," ");var n,i}).join("\n");return u+="\n"+repeat(" ",a+3+s)+repeat("^",n)}"do if in for let new try var case else enum eval null this true void with await break catch class const false super throw while yield delete export import public return static switch typeof default extends finally package private continue debugger function arguments interface protected implements instanceof".split(" ").forEach(function(e){return f[e]=!0}),Scope.prototype={addDeclaration:function addDeclaration(e,t){for(var n=0,r=extractNames(e);n1&&(c=t(a),s.push(function(t,n,s){e.prependRight(i.start,(o?"":n+"var ")+c+" = "),e.overwrite(i.start,r=i.start+1,a),e.appendLeft(r,s),e.overwrite(i.start,r=i.start+1,(o?"":n+"var ")+c+" = "+a+s),e.move(i.start,r,t)})),destructureObjectPattern(e,t,n,i,c,o,s);break;case"ArrayPattern":if(e.remove(r,r=i.start),i.elements.filter(Boolean).length>1){var d=t(a);s.push(function(t,n,s){e.prependRight(i.start,(o?"":n+"var ")+d+" = "),e.overwrite(i.start,r=i.start+1,a,{contentOnly:!0}),e.appendLeft(r,s),e.move(i.start,r,t)}),i.elements.forEach(function(i,a){i&&("RestElement"===i.type?handleProperty(e,t,n,r,i.argument,d+".slice("+a+")",o,s):handleProperty(e,t,n,r,i,d+"["+a+"]",o,s),r=i.end)})}else{var p=findIndex(i.elements,Boolean),f=i.elements[p];"RestElement"===f.type?handleProperty(e,t,n,r,f.argument,a+".slice("+p+")",o,s):handleProperty(e,t,n,r,f,a+"["+p+"]",o,s),r=f.end}e.remove(r,i.end);break;default:throw new Error("Unexpected node type in destructuring ("+i.type+")")}}var g=function(e){function BlockStatement(){e.apply(this,arguments)}return e&&(BlockStatement.__proto__=e),BlockStatement.prototype=Object.create(e&&e.prototype),BlockStatement.prototype.constructor=BlockStatement,BlockStatement.prototype.createScope=function createScope(){var e=this;this.parentIsFunction=/Function/.test(this.parent.type),this.isFunctionBlock=this.parentIsFunction||"Root"===this.parent.type,this.scope=new Scope({block:!this.isFunctionBlock,parent:this.parent.findScope(!1),declare:function declare(t){return e.createdDeclarations.push(t)}}),this.parentIsFunction&&this.parent.params.forEach(function(t){e.scope.addDeclaration(t,"param")})},BlockStatement.prototype.initialise=function initialise(e){this.thisAlias=null,this.argumentsAlias=null,this.defaultParameters=[],this.createdDeclarations=[],this.scope||this.createScope(),this.body.forEach(function(t){return t.initialise(e)}),this.scope.consolidate()},BlockStatement.prototype.findLexicalBoundary=function findLexicalBoundary(){return"Program"===this.type?this:/^Function/.test(this.parent.type)?this:this.parent.findLexicalBoundary()},BlockStatement.prototype.findScope=function findScope(e){return e&&!this.isFunctionBlock?this.parent.findScope(e):this.scope},BlockStatement.prototype.getArgumentsAlias=function getArgumentsAlias(){return this.argumentsAlias||(this.argumentsAlias=this.scope.createIdentifier("arguments")),this.argumentsAlias},BlockStatement.prototype.getArgumentsArrayAlias=function getArgumentsArrayAlias(){return this.argumentsArrayAlias||(this.argumentsArrayAlias=this.scope.createIdentifier("argsArray")),this.argumentsArrayAlias},BlockStatement.prototype.getThisAlias=function getThisAlias(){return this.thisAlias||(this.thisAlias=this.scope.createIdentifier("this")),this.thisAlias},BlockStatement.prototype.getIndentation=function getIndentation(){if(void 0===this.indentation){for(var e=this.program.magicString.original,t=this.synthetic||!this.body.length,n=t?this.start:this.body[0].start;n&&"\n"!==e[n];)n-=1;for(this.indentation="";;){var r=e[n+=1];if(" "!==r&&"\t"!==r)break;this.indentation+=r}for(var i=this.program.magicString.getIndentString(),a=this.parent;a;)"constructor"!==a.kind||a.parent.parent.superClass||(this.indentation=this.indentation.replace(i,"")),a=a.parent;t&&(this.indentation+=i)}return this.indentation},BlockStatement.prototype.transpile=function transpile(t,n){var r,i,a=this,o=this.getIndentation(),s=[];if(this.argumentsAlias&&s.push(function(e,n,r){var i=n+"var "+a.argumentsAlias+" = arguments"+r;t.appendLeft(e,i)}),this.thisAlias&&s.push(function(e,n,r){var i=n+"var "+a.thisAlias+" = this"+r;t.appendLeft(e,i)}),this.argumentsArrayAlias&&s.push(function(e,n,r){var i=a.scope.createIdentifier("i"),s=n+"var "+i+" = arguments.length, "+a.argumentsArrayAlias+" = Array("+i+");\n"+o+"while ( "+i+"-- ) "+a.argumentsArrayAlias+"["+i+"] = arguments["+i+"]"+r;t.appendLeft(e,s)}),/Function/.test(this.parent.type)?this.transpileParameters(this.parent.params,t,n,o,s):"CatchClause"===this.parent.type&&this.transpileParameters([this.parent.param],t,n,o,s),n.letConst&&this.isFunctionBlock&&this.transpileBlockScopedIdentifiers(t),e.prototype.transpile.call(this,t,n),this.createdDeclarations.length&&s.push(function(e,n,r){var i=n+"var "+a.createdDeclarations.join(", ")+r;t.appendLeft(e,i)}),this.synthetic)if("ArrowFunctionExpression"===this.parent.type){var u=this.body[0];s.length?(t.appendLeft(this.start,"{").prependRight(this.end,this.parent.getIndentation()+"}"),t.prependRight(u.start,"\n"+o+"return "),t.appendLeft(u.end,";\n")):n.arrow&&(t.prependRight(u.start,"{ return "),t.appendLeft(u.end,"; }"))}else s.length&&t.prependRight(this.start,"{").appendLeft(this.end,"}");i=this.body[0],r=i&&"ExpressionStatement"===i.type&&"Literal"===i.expression.type&&"use strict"===i.expression.value?this.body[0].end:this.synthetic||"Root"===this.parent.type?this.start:this.start+1;var l="\n"+o,c=";";s.forEach(function(e,t){t===s.length-1&&(c=";\n"),e(r,l,c)})},BlockStatement.prototype.transpileParameters=function transpileParameters(e,t,n,r,i){var a=this;e.forEach(function(o){if("AssignmentPattern"===o.type&&"Identifier"===o.left.type)n.defaultParameter&&i.push(function(e,n,r){var i=n+"if ( "+o.left.name+" === void 0 ) "+o.left.name;t.prependRight(o.left.end,i).move(o.left.end,o.right.end,e).appendLeft(o.right.end,r)});else if("RestElement"===o.type)n.spreadRest&&i.push(function(n,i,s){var u=e[e.length-2];if(u)t.remove(u?u.end:o.start,o.end);else{for(var l=o.start,c=o.end;/\s/.test(t.original[l-1]);)l-=1;for(;/\s/.test(t.original[c]);)c+=1;t.remove(l,c)}var d=o.argument.name,p=a.scope.createIdentifier("len"),f=e.length-1;f?t.prependRight(n,i+"var "+d+" = [], "+p+" = arguments.length - "+f+";\n"+r+"while ( "+p+"-- > 0 ) "+d+"[ "+p+" ] = arguments[ "+p+" + "+f+" ]"+s):t.prependRight(n,i+"var "+d+" = [], "+p+" = arguments.length;\n"+r+"while ( "+p+"-- ) "+d+"[ "+p+" ] = arguments[ "+p+" ]"+s)});else if("Identifier"!==o.type&&n.parameterDestructuring){var s=a.scope.createIdentifier("ref");destructure(t,function(e){return a.scope.createIdentifier(e)},function(e){var t=e.name;return a.scope.resolveName(t)},o,s,!1,i),t.prependRight(o.start,s)}})},BlockStatement.prototype.transpileBlockScopedIdentifiers=function transpileBlockScopedIdentifiers(e){var t=this;Object.keys(this.scope.blockScopedDeclarations).forEach(function(n){for(var r=0,i=t.scope.blockScopedDeclarations[n];r0},ArrowFunctionExpression}(d);function checkConst(e,t){var n=t.findDeclaration(e.name);if(n&&"const"===n.kind)throw new h(e.name+" is read-only",e)}var b=function(e){function AssignmentExpression(){e.apply(this,arguments)}return e&&(AssignmentExpression.__proto__=e),AssignmentExpression.prototype=Object.create(e&&e.prototype),AssignmentExpression.prototype.constructor=AssignmentExpression,AssignmentExpression.prototype.initialise=function initialise(t){if("Identifier"===this.left.type){var n=this.findScope(!1).findDeclaration(this.left.name),r=n&&n.node.ancestor(3);r&&"ForStatement"===r.type&&r.body.contains(this)&&(r.reassigned[this.left.name]=!0)}e.prototype.initialise.call(this,t)},AssignmentExpression.prototype.transpile=function transpile(t,n){"Identifier"===this.left.type&&checkConst(this.left,this.findScope(!1)),"**="===this.operator&&n.exponentiation?this.transpileExponentiation(t,n):/Pattern/.test(this.left.type)&&n.destructuring&&this.transpileDestructuring(t,n),e.prototype.transpile.call(this,t,n)},AssignmentExpression.prototype.transpileDestructuring=function transpileDestructuring(e){var t=this,n=this.findScope(!0),r=this.findScope(!1),i=n.createDeclaration("assign");e.appendRight(this.left.end,"("+i),e.appendLeft(this.right.end,", ");var a=[];destructure(e,function(e){return n.createDeclaration(e)},function(e){var t=r.resolveName(e.name);return checkConst(e,r),t},this.left,i,!0,a);var o=", ";a.forEach(function(e,n){n===a.length-1&&(o=""),e(t.end,"",o)}),"ExpressionStatement"===this.unparenthesizedParent().type?e.prependRight(this.end,")"):e.appendRight(this.end,", "+i+")")},AssignmentExpression.prototype.transpileExponentiation=function transpileExponentiation(e){for(var t,n=this.findScope(!1),r=this.left.end;"*"!==e.original[r];)r+=1;e.remove(r,r+2);var i=this.left.unparenthesize();if("Identifier"===i.type)t=n.resolveName(i.name);else if("MemberExpression"===i.type){var a,o,s=!1,u=!1,l=this.findNearest(/(?:Statement|Declaration)$/),c=l.getIndentation();"Identifier"===i.property.type?o=i.computed?n.resolveName(i.property.name):i.property.name:(o=n.createDeclaration("property"),u=!0),"Identifier"===i.object.type?a=n.resolveName(i.object.name):(a=n.createDeclaration("object"),s=!0),i.start===l.start?s&&u?(e.prependRight(l.start,a+" = "),e.overwrite(i.object.end,i.property.start,";\n"+c+o+" = "),e.overwrite(i.property.end,i.end,";\n"+c+a+"["+o+"]")):s?(e.prependRight(l.start,a+" = "),e.appendLeft(i.object.end,";\n"+c),e.appendLeft(i.object.end,a)):u&&(e.prependRight(i.property.start,o+" = "),e.appendLeft(i.property.end,";\n"+c),e.move(i.property.start,i.property.end,this.start),e.appendLeft(i.object.end,"["+o+"]"),e.remove(i.object.end,i.property.start),e.remove(i.property.end,i.end)):(s&&u?(e.prependRight(i.start,"( "+a+" = "),e.overwrite(i.object.end,i.property.start,", "+o+" = "),e.overwrite(i.property.end,i.end,", "+a+"["+o+"]")):s?(e.prependRight(i.start,"( "+a+" = "),e.appendLeft(i.object.end,", "+a)):u&&(e.prependRight(i.property.start,"( "+o+" = "),e.appendLeft(i.property.end,", "),e.move(i.property.start,i.property.end,i.start),e.overwrite(i.object.end,i.property.start,"["+o+"]"),e.remove(i.property.end,i.end)),u&&e.appendLeft(this.end," )")),t=a+(i.computed||u?"["+o+"]":"."+o)}e.prependRight(this.right.start,"Math.pow( "+t+", "),e.appendLeft(this.right.end," )")},AssignmentExpression}(d),_=function(e){function BinaryExpression(){e.apply(this,arguments)}return e&&(BinaryExpression.__proto__=e),BinaryExpression.prototype=Object.create(e&&e.prototype),BinaryExpression.prototype.constructor=BinaryExpression,BinaryExpression.prototype.transpile=function transpile(t,n){"**"===this.operator&&n.exponentiation&&(t.prependRight(this.start,"Math.pow( "),t.overwrite(this.left.end,this.right.start,", "),t.appendLeft(this.end," )")),e.prototype.transpile.call(this,t,n)},BinaryExpression}(d),x=/(?:For(?:In|Of)?|While)Statement/,k=function(e){function BreakStatement(){e.apply(this,arguments)}return e&&(BreakStatement.__proto__=e),BreakStatement.prototype=Object.create(e&&e.prototype),BreakStatement.prototype.constructor=BreakStatement,BreakStatement.prototype.initialise=function initialise(){var e=this.findNearest(x),t=this.findNearest("SwitchCase");e&&(!t||e.depth>t.depth)&&(e.canBreak=!0,this.loop=e)},BreakStatement.prototype.transpile=function transpile(e){if(this.loop&&this.loop.shouldRewriteAsFunction){if(this.label)throw new h("Labels are not currently supported in a loop with locally-scoped variables",this);e.overwrite(this.start,this.start+5,"return 'break'")}},BreakStatement}(d),S=function(e){function CallExpression(){e.apply(this,arguments)}return e&&(CallExpression.__proto__=e),CallExpression.prototype=Object.create(e&&e.prototype),CallExpression.prototype.constructor=CallExpression,CallExpression.prototype.initialise=function initialise(t){if(t.spreadRest&&this.arguments.length>1)for(var n=this.findLexicalBoundary(),r=this.arguments.length;r--;){var i=this.arguments[r];"SpreadElement"===i.type&&isArguments(i.argument)&&(this.argumentsArrayAlias=n.getArgumentsArrayAlias())}e.prototype.initialise.call(this,t)},CallExpression.prototype.transpile=function transpile(t,n){if(n.spreadRest&&this.arguments.length){var r,i=!1,a=this.arguments[0];if(1===this.arguments.length?"SpreadElement"===a.type&&(t.remove(a.start,a.argument.start),i=!0):i=spread(t,this.arguments,a.start,this.argumentsArrayAlias),i){var o=null;if("Super"===this.callee.type?o=this.callee:"MemberExpression"===this.callee.type&&"Super"===this.callee.object.type&&(o=this.callee.object),o||"MemberExpression"!==this.callee.type)r="void 0";else if("Identifier"===this.callee.object.type)r=this.callee.object.name;else{r=this.findScope(!0).createDeclaration("ref");var s=this.callee.object;t.prependRight(s.start,"("+r+" = "),t.appendLeft(s.end,")")}t.appendLeft(this.callee.end,".apply"),o?(o.noCall=!0,this.arguments.length>1&&("SpreadElement"!==a.type&&t.prependRight(a.start,"[ "),t.appendLeft(this.arguments[this.arguments.length-1].end," )"))):1===this.arguments.length?t.prependRight(a.start,r+", "):("SpreadElement"===a.type?t.appendLeft(a.start,r+", "):t.appendLeft(a.start,r+", [ "),t.appendLeft(this.arguments[this.arguments.length-1].end," )"))}}n.trailingFunctionCommas&&this.arguments.length&&removeTrailingComma(t,this.arguments[this.arguments.length-1].end),e.prototype.transpile.call(this,t,n)},CallExpression}(d),w=function(e){function ClassBody(){e.apply(this,arguments)}return e&&(ClassBody.__proto__=e),ClassBody.prototype=Object.create(e&&e.prototype),ClassBody.prototype.constructor=ClassBody,ClassBody.prototype.transpile=function transpile(t,n,r,i){var a=this;if(n.classes){var o=this.parent.name,s=t.getIndentString(),u=this.getIndentation()+(r?s:""),l=u+s,c=findIndex(this.body,function(e){return"constructor"===e.kind}),d=this.body[c],p="",h="";if(this.body.length?(t.remove(this.start,this.body[0].start),t.remove(this.body[this.body.length-1].end,this.end)):t.remove(this.start,this.end),d){d.value.body.isConstructorBody=!0;var m=this.body[c-1],g=this.body[c+1];c>0&&(t.remove(m.end,d.start),t.move(d.start,g?g.start:this.end-1,this.body[0].start)),r||t.appendLeft(d.end,";")}var y=!1!==this.program.options.namedFunctionExpressions,v=y||this.parent.superClass||"ClassDeclaration"!==this.parent.type;if(this.parent.superClass){var b="if ( "+i+" ) "+o+".__proto__ = "+i+";\n"+u+o+".prototype = Object.create( "+i+" && "+i+".prototype );\n"+u+o+".prototype.constructor = "+o+";";if(d)p+="\n\n"+u+b;else p+=(b="function "+o+" () {"+(i?"\n"+l+i+".apply(this, arguments);\n"+u+"}":"}")+(r?"":";")+(this.body.length?"\n\n"+u:"")+b)+"\n\n"+u}else if(!d){var _="function "+(v?o+" ":"")+"() {}";"ClassDeclaration"===this.parent.type&&(_+=";"),this.body.length&&(_+="\n\n"+u),p+=_}var x,k,S=this.findScope(!1),w=[],C=[];if(this.body.forEach(function(e,n){if("constructor"!==e.kind){if(e.static){var r=" "==t.original[e.start+6]?7:6;t.remove(e.start,e.start+r)}var i,s="method"!==e.kind,l=e.key.name;(f[l]||e.value.body.scope.references[l])&&(l=S.createIdentifier(l));var d=!1;if(e.computed||"Literal"!==e.key.type||(d=!0,e.computed=!0),s){if(e.computed)throw new Error("Computed accessor properties are not currently supported");t.remove(e.start,e.key.start),e.static?(~C.indexOf(e.key.name)||C.push(e.key.name),k||(k=S.createIdentifier("staticAccessors")),i=""+k):(~w.indexOf(e.key.name)||w.push(e.key.name),x||(x=S.createIdentifier("prototypeAccessors")),i=""+x)}else i=e.static?""+o:o+".prototype";e.computed||(i+="."),(c>0&&n===c+1||0===n&&c===a.body.length-1)&&(i="\n\n"+u+i);var p=e.key.end;if(e.computed)if(d)t.prependRight(e.key.start,"["),t.appendLeft(e.key.end,"]");else{for(;"]"!==t.original[p];)p+=1;p+=1}var h=e.computed||s||!y?"":l+" ",m=(s?"."+e.kind:"")+" = function"+(e.value.generator?"* ":" ")+h;t.remove(p,e.value.start),t.prependRight(e.value.start,m),t.appendLeft(e.end,";"),e.value.generator&&t.remove(e.start,e.key.start),t.prependRight(e.start,i)}else{var g=v?" "+o:"";t.overwrite(e.key.start,e.key.end,"function"+g)}}),w.length||C.length){var E=[],P=[];w.length&&(E.push("var "+x+" = { "+w.map(function(e){return e+": { configurable: true }"}).join(",")+" };"),P.push("Object.defineProperties( "+o+".prototype, "+x+" );")),C.length&&(E.push("var "+k+" = { "+C.map(function(e){return e+": { configurable: true }"}).join(",")+" };"),P.push("Object.defineProperties( "+o+", "+k+" );")),d&&(p+="\n\n"+u),p+=E.join("\n"+u),d||(p+="\n\n"+u),h+="\n\n"+u+P.join("\n"+u)}d?t.appendLeft(d.end,p):t.prependRight(this.start,p),t.appendLeft(this.end,h)}e.prototype.transpile.call(this,t,n)},ClassBody}(d);function deindent(e,t){var n=e.start,r=e.end,i=t.getIndentString(),a=i.length,o=n-a;e.program.indentExclusions[o]||t.original.slice(o,n)!==i||t.remove(o,n);for(var s,u=new RegExp(i+"\\S","g"),l=t.original.slice(n,r);s=u.exec(l);){var c=n+s.index;e.program.indentExclusions[c]||t.remove(c,c+a)}}var C=function(e){function ClassDeclaration(){e.apply(this,arguments)}return e&&(ClassDeclaration.__proto__=e),ClassDeclaration.prototype=Object.create(e&&e.prototype),ClassDeclaration.prototype.constructor=ClassDeclaration,ClassDeclaration.prototype.initialise=function initialise(t){this.id?(this.name=this.id.name,this.findScope(!0).addDeclaration(this.id,"class")):this.name=this.findScope(!0).createIdentifier("defaultExport"),e.prototype.initialise.call(this,t)},ClassDeclaration.prototype.transpile=function transpile(e,t){if(t.classes){this.superClass||deindent(this.body,e);var n=this.superClass&&(this.superClass.name||"superclass"),r=this.getIndentation(),i=r+e.getIndentString(),a="ExportDefaultDeclaration"===this.parent.type;a&&e.remove(this.parent.start,this.start);var o=this.start;this.id?(e.overwrite(o,this.id.start,"var "),o=this.id.end):e.prependLeft(o,"var "+this.name),this.superClass?this.superClass.end===this.body.start?(e.remove(o,this.superClass.start),e.appendLeft(o," = (function ("+n+") {\n"+i)):(e.overwrite(o,this.superClass.start," = "),e.overwrite(this.superClass.end,this.body.start,"(function ("+n+") {\n"+i)):o===this.body.start?e.appendLeft(o," = "):e.overwrite(o,this.body.start," = "),this.body.transpile(e,t,!!this.superClass,n);var s=a?"\n\n"+r+"export default "+this.name+";":"";this.superClass?(e.appendLeft(this.end,"\n\n"+i+"return "+this.name+";\n"+r+"}("),e.move(this.superClass.start,this.superClass.end,this.end),e.prependRight(this.end,"));"+s)):s&&e.prependRight(this.end,s)}else this.body.transpile(e,t,!1,null)},ClassDeclaration}(d),E=function(e){function ClassExpression(){e.apply(this,arguments)}return e&&(ClassExpression.__proto__=e),ClassExpression.prototype=Object.create(e&&e.prototype),ClassExpression.prototype.constructor=ClassExpression,ClassExpression.prototype.initialise=function initialise(t){this.name=(this.id?this.id.name:"VariableDeclarator"===this.parent.type?this.parent.id.name:"AssignmentExpression"!==this.parent.type?null:"Identifier"===this.parent.left.type?this.parent.left.name:"MemberExpression"===this.parent.left.type?this.parent.left.property.name:null)||this.findScope(!0).createIdentifier("anonymous"),e.prototype.initialise.call(this,t)},ClassExpression.prototype.transpile=function transpile(e,t){if(t.classes){var n=this.superClass&&(this.superClass.name||"superclass"),r=this.getIndentation(),i=r+e.getIndentString();this.superClass?(e.remove(this.start,this.superClass.start),e.remove(this.superClass.end,this.body.start),e.appendLeft(this.start,"(function ("+n+") {\n"+i)):e.overwrite(this.start,this.body.start,"(function () {\n"+i),this.body.transpile(e,t,!0,n);var a="\n\n"+i+"return "+this.name+";\n"+r+"}(";this.superClass?(e.appendLeft(this.end,a),e.move(this.superClass.start,this.superClass.end,this.end),e.prependRight(this.end,"))")):e.appendLeft(this.end,"\n\n"+i+"return "+this.name+";\n"+r+"}())")}else this.body.transpile(e,t,!1)},ClassExpression}(d),P=function(e){function ContinueStatement(){e.apply(this,arguments)}return e&&(ContinueStatement.__proto__=e),ContinueStatement.prototype=Object.create(e&&e.prototype),ContinueStatement.prototype.constructor=ContinueStatement,ContinueStatement.prototype.transpile=function transpile(e){if(this.findNearest(x).shouldRewriteAsFunction){if(this.label)throw new h("Labels are not currently supported in a loop with locally-scoped variables",this);e.overwrite(this.start,this.start+8,"return")}},ContinueStatement}(d),$=function(e){function ExportDefaultDeclaration(){e.apply(this,arguments)}return e&&(ExportDefaultDeclaration.__proto__=e),ExportDefaultDeclaration.prototype=Object.create(e&&e.prototype),ExportDefaultDeclaration.prototype.constructor=ExportDefaultDeclaration,ExportDefaultDeclaration.prototype.initialise=function initialise(t){if(t.moduleExport)throw new h("export is not supported",this);e.prototype.initialise.call(this,t)},ExportDefaultDeclaration}(d),O=function(e){function ExportNamedDeclaration(){e.apply(this,arguments)}return e&&(ExportNamedDeclaration.__proto__=e),ExportNamedDeclaration.prototype=Object.create(e&&e.prototype),ExportNamedDeclaration.prototype.constructor=ExportNamedDeclaration,ExportNamedDeclaration.prototype.initialise=function initialise(t){if(t.moduleExport)throw new h("export is not supported",this);e.prototype.initialise.call(this,t)},ExportNamedDeclaration}(d),T=function(e){function LoopStatement(){e.apply(this,arguments)}return e&&(LoopStatement.__proto__=e),LoopStatement.prototype=Object.create(e&&e.prototype),LoopStatement.prototype.constructor=LoopStatement,LoopStatement.prototype.findScope=function findScope(e){return e||!this.createdScope?this.parent.findScope(e):this.body.scope},LoopStatement.prototype.initialise=function initialise(t){if(this.body.createScope(),this.createdScope=!0,this.reassigned=Object.create(null),this.aliases=Object.create(null),e.prototype.initialise.call(this,t),t.letConst)for(var n=Object.keys(this.body.scope.declarations),r=n.length;r--;){for(var i=n[r],a=this.body.scope.declarations[i],o=a.instances.length;o--;){var s=a.instances[o].findNearest(/Function/);if(s&&s.depth>this.depth){this.shouldRewriteAsFunction=!0;break}}if(this.shouldRewriteAsFunction)break}},LoopStatement.prototype.transpile=function transpile(t,n){var r="ForOfStatement"!=this.type&&("BlockStatement"!==this.body.type||"BlockStatement"===this.body.type&&this.body.synthetic);if(this.shouldRewriteAsFunction){var i=this.getIndentation(),a=i+t.getIndentString(),o=this.args?" "+this.args.join(", ")+" ":"",s=this.params?" "+this.params.join(", ")+" ":"",u=this.findScope(!0),l=u.createIdentifier("loop"),c="var "+l+" = function ("+s+") "+(this.body.synthetic?"{\n"+i+t.getIndentString():""),d=(this.body.synthetic?"\n"+i+"}":"")+";\n\n"+i;if(t.prependRight(this.body.start,c),t.appendLeft(this.body.end,d),t.move(this.start,this.body.start,this.body.end),this.canBreak||this.canReturn){var p=u.createIdentifier("returned"),f="{\n"+a+"var "+p+" = "+l+"("+o+");\n";this.canBreak&&(f+="\n"+a+"if ( "+p+" === 'break' ) break;"),this.canReturn&&(f+="\n"+a+"if ( "+p+" ) return "+p+".v;"),f+="\n"+i+"}",t.prependRight(this.body.end,f)}else{var h=l+"("+o+");";"DoWhileStatement"===this.type?t.overwrite(this.start,this.body.start,"do {\n"+a+h+"\n"+i+"}"):t.prependRight(this.body.end,h)}}else r&&(t.appendLeft(this.body.start,"{ "),t.prependRight(this.body.end," }"));e.prototype.transpile.call(this,t,n)},LoopStatement}(d),R=function(e){function ForStatement(){e.apply(this,arguments)}return e&&(ForStatement.__proto__=e),ForStatement.prototype=Object.create(e&&e.prototype),ForStatement.prototype.constructor=ForStatement,ForStatement.prototype.findScope=function findScope(e){return e||!this.createdScope?this.parent.findScope(e):this.body.scope},ForStatement.prototype.transpile=function transpile(t,n){var r=this,i=this.getIndentation()+t.getIndentString();if(this.shouldRewriteAsFunction){var a="VariableDeclaration"===this.init.type?this.init.declarations.map(function(e){return extractNames(e.id)}):[],o=this.aliases;this.args=a.map(function(e){return e in r.aliases?r.aliases[e].outer:e}),this.params=a.map(function(e){return e in r.aliases?r.aliases[e].inner:e});var s=Object.keys(this.reassigned).map(function(e){return o[e].outer+" = "+o[e].inner+";"});if(s.length)if(this.body.synthetic)t.appendLeft(this.body.body[0].end,"; "+s.join(" "));else{var u=this.body.body[this.body.body.length-1];t.appendLeft(u.end,"\n\n"+i+s.join("\n"+i))}}e.prototype.transpile.call(this,t,n)},ForStatement}(T),A=function(e){function ForInStatement(){e.apply(this,arguments)}return e&&(ForInStatement.__proto__=e),ForInStatement.prototype=Object.create(e&&e.prototype),ForInStatement.prototype.constructor=ForInStatement,ForInStatement.prototype.findScope=function findScope(e){return e||!this.createdScope?this.parent.findScope(e):this.body.scope},ForInStatement.prototype.transpile=function transpile(t,n){var r=this,i="VariableDeclaration"===this.left.type;if(this.shouldRewriteAsFunction){var a=i?this.left.declarations.map(function(e){return extractNames(e.id)}):[];this.args=a.map(function(e){return e in r.aliases?r.aliases[e].outer:e}),this.params=a.map(function(e){return e in r.aliases?r.aliases[e].inner:e})}e.prototype.transpile.call(this,t,n);var o=i?this.left.declarations[0].id:this.left;"Identifier"!==o.type&&this.destructurePattern(t,o,i)},ForInStatement.prototype.destructurePattern=function destructurePattern(e,t,n){var r=this.findScope(!0),i=this.getIndentation()+e.getIndentString(),a=r.createIdentifier("ref"),o=this.body.body.length?this.body.body[0].start:this.body.start+1;e.move(t.start,t.end,o),e.prependRight(t.end,n?a:"var "+a);var s=[];destructure(e,function(e){return r.createIdentifier(e)},function(e){var t=e.name;return r.resolveName(t)},t,a,!1,s);var u=";\n"+i;s.forEach(function(e,t){t===s.length-1&&(u=";\n\n"+i),e(o,"",u)})},ForInStatement}(T),I=function(e){function ForOfStatement(){e.apply(this,arguments)}return e&&(ForOfStatement.__proto__=e),ForOfStatement.prototype=Object.create(e&&e.prototype),ForOfStatement.prototype.constructor=ForOfStatement,ForOfStatement.prototype.initialise=function initialise(t){if(t.forOf&&!t.dangerousForOf)throw new h("for...of statements are not supported. Use `transforms: { forOf: false }` to skip transformation and disable this error, or `transforms: { dangerousForOf: true }` if you know what you're doing",this);e.prototype.initialise.call(this,t)},ForOfStatement.prototype.transpile=function transpile(t,n){if(e.prototype.transpile.call(this,t,n),n.dangerousForOf)if(this.body.body[0]){var r=this.findScope(!0),i=this.getIndentation(),a=i+t.getIndentString(),o=r.createIdentifier("i"),s=r.createIdentifier("list");this.body.synthetic&&(t.prependRight(this.left.start,"{\n"+a),t.appendLeft(this.body.body[0].end,"\n"+i+"}"));var u=this.body.body[0].start;t.remove(this.left.end,this.right.start),t.move(this.left.start,this.left.end,u),t.prependRight(this.right.start,"var "+o+" = 0, "+s+" = "),t.appendLeft(this.right.end,"; "+o+" < "+s+".length; "+o+" += 1");var l="VariableDeclaration"===this.left.type,c=l?this.left.declarations[0].id:this.left;if("Identifier"!==c.type){var d=[],p=r.createIdentifier("ref");destructure(t,function(e){return r.createIdentifier(e)},function(e){var t=e.name;return r.resolveName(t)},c,p,!l,d);var f=";\n"+a;d.forEach(function(e,t){t===d.length-1&&(f=";\n\n"+a),e(u,"",f)}),l?(t.appendLeft(this.left.start+this.left.kind.length+1,p),t.appendLeft(this.left.end," = "+s+"["+o+"];\n"+a)):t.appendLeft(this.left.end,"var "+p+" = "+s+"["+o+"];\n"+a)}else t.appendLeft(this.left.end," = "+s+"["+o+"];\n\n"+a)}else"VariableDeclaration"===this.left.type&&"var"===this.left.kind?(t.remove(this.start,this.left.start),t.appendLeft(this.left.end,";"),t.remove(this.left.end,this.end)):t.remove(this.start,this.end)},ForOfStatement}(T),D=function(e){function FunctionDeclaration(){e.apply(this,arguments)}return e&&(FunctionDeclaration.__proto__=e),FunctionDeclaration.prototype=Object.create(e&&e.prototype),FunctionDeclaration.prototype.constructor=FunctionDeclaration,FunctionDeclaration.prototype.initialise=function initialise(t){if(this.generator&&t.generator)throw new h("Generators are not supported",this);this.body.createScope(),this.id&&this.findScope(!0).addDeclaration(this.id,"function"),e.prototype.initialise.call(this,t)},FunctionDeclaration.prototype.transpile=function transpile(t,n){e.prototype.transpile.call(this,t,n),n.trailingFunctionCommas&&this.params.length&&removeTrailingComma(t,this.params[this.params.length-1].end)},FunctionDeclaration}(d),j=function(e){function FunctionExpression(){e.apply(this,arguments)}return e&&(FunctionExpression.__proto__=e),FunctionExpression.prototype=Object.create(e&&e.prototype),FunctionExpression.prototype.constructor=FunctionExpression,FunctionExpression.prototype.initialise=function initialise(t){if(this.generator&&t.generator)throw new h("Generators are not supported",this);this.body.createScope(),this.id&&this.body.scope.addDeclaration(this.id,"function"),e.prototype.initialise.call(this,t);var n,r=this.parent;if(t.conciseMethodProperty&&"Property"===r.type&&"init"===r.kind&&r.method&&"Identifier"===r.key.type?n=r.key.name:t.classes&&"MethodDefinition"===r.type&&"method"===r.kind&&"Identifier"===r.key.type?n=r.key.name:this.id&&"Identifier"===this.id.type&&(n=this.id.alias||this.id.name),n)for(var i=0,a=this.params;it.depth&&(this.alias=t.getArgumentsAlias()),r&&r.body.contains(this)&&r.depth>t.depth&&(this.alias=t.getArgumentsAlias())}this.findScope(!1).addReference(this)}},Identifier.prototype.transpile=function transpile(e){this.alias&&e.overwrite(this.start,this.end,this.alias,{storeName:!0,contentOnly:!0})},Identifier}(d),L=function(e){function IfStatement(){e.apply(this,arguments)}return e&&(IfStatement.__proto__=e),IfStatement.prototype=Object.create(e&&e.prototype),IfStatement.prototype.constructor=IfStatement,IfStatement.prototype.initialise=function initialise(t){e.prototype.initialise.call(this,t)},IfStatement.prototype.transpile=function transpile(t,n){("BlockStatement"!==this.consequent.type||"BlockStatement"===this.consequent.type&&this.consequent.synthetic)&&(t.appendLeft(this.consequent.start,"{ "),t.prependRight(this.consequent.end," }")),this.alternate&&"IfStatement"!==this.alternate.type&&("BlockStatement"!==this.alternate.type||"BlockStatement"===this.alternate.type&&this.alternate.synthetic)&&(t.appendLeft(this.alternate.start,"{ "),t.prependRight(this.alternate.end," }")),e.prototype.transpile.call(this,t,n)},IfStatement}(d),N=function(e){function ImportDeclaration(){e.apply(this,arguments)}return e&&(ImportDeclaration.__proto__=e),ImportDeclaration.prototype=Object.create(e&&e.prototype),ImportDeclaration.prototype.constructor=ImportDeclaration,ImportDeclaration.prototype.initialise=function initialise(t){if(t.moduleImport)throw new h("import is not supported",this);e.prototype.initialise.call(this,t)},ImportDeclaration}(d),F=function(e){function ImportDefaultSpecifier(){e.apply(this,arguments)}return e&&(ImportDefaultSpecifier.__proto__=e),ImportDefaultSpecifier.prototype=Object.create(e&&e.prototype),ImportDefaultSpecifier.prototype.constructor=ImportDefaultSpecifier,ImportDefaultSpecifier.prototype.initialise=function initialise(t){this.findScope(!0).addDeclaration(this.local,"import"),e.prototype.initialise.call(this,t)},ImportDefaultSpecifier}(d),B=function(e){function ImportSpecifier(){e.apply(this,arguments)}return e&&(ImportSpecifier.__proto__=e),ImportSpecifier.prototype=Object.create(e&&e.prototype),ImportSpecifier.prototype.constructor=ImportSpecifier,ImportSpecifier.prototype.initialise=function initialise(t){this.findScope(!0).addDeclaration(this.local,"import"),e.prototype.initialise.call(this,t)},ImportSpecifier}(d),V=function hasDashes(e){return/-/.test(e)},U=function formatKey(e){return V(e)?"'"+e+"'":e},q=function formatVal(e){return e?"":"true"},z=function(e){function JSXAttribute(){e.apply(this,arguments)}return e&&(JSXAttribute.__proto__=e),JSXAttribute.prototype=Object.create(e&&e.prototype),JSXAttribute.prototype.constructor=JSXAttribute,JSXAttribute.prototype.transpile=function transpile(t,n){var r=this.name,i=r.start,a=r.name,o=this.value?this.value.start:this.name.end;t.overwrite(i,o,U(a)+": "+q(this.value)),e.prototype.transpile.call(this,t,n)},JSXAttribute}(d);var W=function(e){function JSXClosingElement(){e.apply(this,arguments)}return e&&(JSXClosingElement.__proto__=e),JSXClosingElement.prototype=Object.create(e&&e.prototype),JSXClosingElement.prototype.constructor=JSXClosingElement,JSXClosingElement.prototype.transpile=function transpile(e){var t,n=!0,r=this.parent.children[this.parent.children.length-1];(r&&("JSXText"===(t=r).type&&!/\S/.test(t.value)&&/\n/.test(t.value))||this.parent.openingElement.attributes.length)&&(n=!1),e.overwrite(this.start,this.end,n?" )":")")},JSXClosingElement}(d);var H=function(e){function JSXClosingFragment(){e.apply(this,arguments)}return e&&(JSXClosingFragment.__proto__=e),JSXClosingFragment.prototype=Object.create(e&&e.prototype),JSXClosingFragment.prototype.constructor=JSXClosingFragment,JSXClosingFragment.prototype.transpile=function transpile(e){var t,n=!0,r=this.parent.children[this.parent.children.length-1];r&&("JSXText"===(t=r).type&&!/\S/.test(t.value)&&/\n/.test(t.value))&&(n=!1),e.overwrite(this.start,this.end,n?" )":")")},JSXClosingFragment}(d);function normalise(e,t){return e=e.replace(/\u00a0/g," "),t&&/\n/.test(e)&&(e=e.replace(/\s+$/,"")),e=e.replace(/^\n\r?\s+/,"").replace(/\s*\n\r?\s*/gm," "),JSON.stringify(e)}var G=function(e){function JSXElement(){e.apply(this,arguments)}return e&&(JSXElement.__proto__=e),JSXElement.prototype=Object.create(e&&e.prototype),JSXElement.prototype.constructor=JSXElement,JSXElement.prototype.transpile=function transpile(t,n){e.prototype.transpile.call(this,t,n);var r=this.children.filter(function(e){return"JSXText"!==e.type||(/\S/.test(e.raw)||!/\n/.test(e.raw))});if(r.length){var i,a=this.openingElement.end;for(i=0;i0&&(c.start===a?t.prependRight(a,", "):t.overwrite(a,c.start,", ")),l&&"JSXSpreadAttribute"!==c.type){var d=this.attributes[o-1],p=this.attributes[o+1];d&&"JSXSpreadAttribute"!==d.type||t.prependRight(c.start,"{ "),p&&"JSXSpreadAttribute"!==p.type||t.appendLeft(c.end," }")}a=c.end}if(l)if(1===i)u=r?"',":",";else{if(!this.program.options.objectAssign)throw new h("Mixed JSX attributes ending in spread requires specified objectAssign option with 'Object.assign' or polyfill helper.",this);u=r?"', "+this.program.options.objectAssign+"({},":", "+this.program.options.objectAssign+"({},",s=")"}else u=r?"', {":", {",s=" }";t.prependRight(this.name.end,u),s&&t.appendLeft(this.attributes[i-1].end,s)}else t.appendLeft(this.name.end,r?"', null":", null"),a=this.name.end;this.selfClosing?t.overwrite(a,this.end,this.attributes.length?")":" )"):t.remove(a,this.end)},JSXOpeningElement}(d),Z=function(e){function JSXOpeningFragment(){e.apply(this,arguments)}return e&&(JSXOpeningFragment.__proto__=e),JSXOpeningFragment.prototype=Object.create(e&&e.prototype),JSXOpeningFragment.prototype.constructor=JSXOpeningFragment,JSXOpeningFragment.prototype.transpile=function transpile(e){e.overwrite(this.start,this.end,this.program.jsx+"( React.Fragment, null")},JSXOpeningFragment}(d),X=function(e){function JSXSpreadAttribute(){e.apply(this,arguments)}return e&&(JSXSpreadAttribute.__proto__=e),JSXSpreadAttribute.prototype=Object.create(e&&e.prototype),JSXSpreadAttribute.prototype.constructor=JSXSpreadAttribute,JSXSpreadAttribute.prototype.transpile=function transpile(t,n){t.remove(this.start,this.argument.start),t.remove(this.argument.end,this.end),e.prototype.transpile.call(this,t,n)},JSXSpreadAttribute}(d),Q=createCommonjsModule(function(e,t){
+var r=n(440),i=n(441),a=n(442);function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function createBuffer(e,t){if(kMaxLength()=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|e}function byteLength(e,t){if(Buffer.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return utf8ToBytes(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return base64ToBytes(e).length;default:if(r)return utf8ToBytes(e).length;t=(""+t).toLowerCase(),r=!0}}function slowToString(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return hexSlice(this,t,n);case"utf8":case"utf-8":return utf8Slice(this,t,n);case"ascii":return asciiSlice(this,t,n);case"latin1":case"binary":return latin1Slice(this,t,n);case"base64":return base64Slice(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function swap(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function bidirectionalIndexOf(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=Buffer.from(t,r)),Buffer.isBuffer(t))return 0===t.length?-1:arrayIndexOf(e,t,n,r,i);if("number"==typeof t)return t&=255,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):arrayIndexOf(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(e,t,n,r,i){var a,o=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,u/=2,n/=2}function read(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var l=-1;for(a=n;as&&(n=s-u),a=n;a>=0;a--){for(var c=!0,d=0;di&&(r=i):r=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o239?4:l>223?3:l>191?2:1;if(i+d<=n)switch(d){case 1:l<128&&(c=l);break;case 2:128==(192&(a=e[i+1]))&&(u=(31&l)<<6|63&a)>127&&(c=u);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(u=(15&l)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(u=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return decodeCodePointsArray(r)}t.Buffer=Buffer,t.SlowBuffer=function SlowBuffer(e){+e!=e&&(e=0);return Buffer.alloc(+e)},t.INSPECT_MAX_BYTES=50,Buffer.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function typedArraySupport(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function foo(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=kMaxLength(),Buffer.poolSize=8192,Buffer._augment=function(e){return e.__proto__=Buffer.prototype,e},Buffer.from=function(e,t,n){return from(null,e,t,n)},Buffer.TYPED_ARRAY_SUPPORT&&(Buffer.prototype.__proto__=Uint8Array.prototype,Buffer.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Buffer[Symbol.species]===Buffer&&Object.defineProperty(Buffer,Symbol.species,{value:null,configurable:!0})),Buffer.alloc=function(e,t,n){return alloc(null,e,t,n)},Buffer.allocUnsafe=function(e){return allocUnsafe(null,e)},Buffer.allocUnsafeSlow=function(e){return allocUnsafe(null,e)},Buffer.isBuffer=function isBuffer(e){return!(null==e||!e._isBuffer)},Buffer.compare=function compare(e,t){if(!Buffer.isBuffer(e)||!Buffer.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},Buffer.prototype.compare=function compare(e,t,n,r,i){if(!Buffer.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),u=this.slice(r,i),l=e.slice(t,n),c=0;ci)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return hexWrite(this,e,t,n);case"utf8":case"utf-8":return utf8Write(this,e,t,n);case"ascii":return asciiWrite(this,e,t,n);case"latin1":case"binary":return latin1Write(this,e,t,n);case"base64":return base64Write(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},Buffer.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var o=4096;function decodeCodePointsArray(e){var t=e.length;if(t<=o)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr)&&(n=r);for(var i="",a=t;an)throw new RangeError("Trying to access beyond buffer length")}function checkInt(e,t,n,r,i,a){if(!Buffer.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function objectWriteUInt16(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function objectWriteUInt32(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function checkIEEE754(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function writeFloat(e,t,n,r,a){return a||checkIEEE754(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function writeDouble(e,t,n,r,a){return a||checkIEEE754(e,0,n,8),i.write(e,t,n,r,52,8),n+8}Buffer.prototype.slice=function slice(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},Buffer.prototype.readUInt8=function readUInt8(e,t){return t||checkOffset(e,1,this.length),this[e]},Buffer.prototype.readUInt16LE=function readUInt16LE(e,t){return t||checkOffset(e,2,this.length),this[e]|this[e+1]<<8},Buffer.prototype.readUInt16BE=function readUInt16BE(e,t){return t||checkOffset(e,2,this.length),this[e]<<8|this[e+1]},Buffer.prototype.readUInt32LE=function readUInt32LE(e,t){return t||checkOffset(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Buffer.prototype.readUInt32BE=function readUInt32BE(e,t){return t||checkOffset(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Buffer.prototype.readIntLE=function readIntLE(e,t,n){e|=0,t|=0,n||checkOffset(e,t,this.length);for(var r=this[e],i=1,a=0;++a=(i*=128)&&(r-=Math.pow(2,8*t)),r},Buffer.prototype.readIntBE=function readIntBE(e,t,n){e|=0,t|=0,n||checkOffset(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},Buffer.prototype.readInt8=function readInt8(e,t){return t||checkOffset(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Buffer.prototype.readInt16LE=function readInt16LE(e,t){t||checkOffset(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Buffer.prototype.readInt16BE=function readInt16BE(e,t){t||checkOffset(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Buffer.prototype.readInt32LE=function readInt32LE(e,t){return t||checkOffset(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Buffer.prototype.readInt32BE=function readInt32BE(e,t){return t||checkOffset(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Buffer.prototype.readFloatLE=function readFloatLE(e,t){return t||checkOffset(e,4,this.length),i.read(this,e,!0,23,4)},Buffer.prototype.readFloatBE=function readFloatBE(e,t){return t||checkOffset(e,4,this.length),i.read(this,e,!1,23,4)},Buffer.prototype.readDoubleLE=function readDoubleLE(e,t){return t||checkOffset(e,8,this.length),i.read(this,e,!0,52,8)},Buffer.prototype.readDoubleBE=function readDoubleBE(e,t){return t||checkOffset(e,8,this.length),i.read(this,e,!1,52,8)},Buffer.prototype.writeUIntLE=function writeUIntLE(e,t,n,r){(e=+e,t|=0,n|=0,r)||checkInt(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+i]=e/a&255;return t+n},Buffer.prototype.writeUInt8=function writeUInt8(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,1,255,0),Buffer.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Buffer.prototype.writeUInt16LE=function writeUInt16LE(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):objectWriteUInt16(this,e,t,!0),t+2},Buffer.prototype.writeUInt16BE=function writeUInt16BE(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):objectWriteUInt16(this,e,t,!1),t+2},Buffer.prototype.writeUInt32LE=function writeUInt32LE(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):objectWriteUInt32(this,e,t,!0),t+4},Buffer.prototype.writeUInt32BE=function writeUInt32BE(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):objectWriteUInt32(this,e,t,!1),t+4},Buffer.prototype.writeIntLE=function writeIntLE(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);checkInt(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+n},Buffer.prototype.writeIntBE=function writeIntBE(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);checkInt(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},Buffer.prototype.writeInt8=function writeInt8(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Buffer.prototype.writeInt16LE=function writeInt16LE(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):objectWriteUInt16(this,e,t,!0),t+2},Buffer.prototype.writeInt16BE=function writeInt16BE(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):objectWriteUInt16(this,e,t,!1),t+2},Buffer.prototype.writeInt32LE=function writeInt32LE(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):objectWriteUInt32(this,e,t,!0),t+4},Buffer.prototype.writeInt32BE=function writeInt32BE(e,t,n){return e=+e,t|=0,n||checkInt(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):objectWriteUInt32(this,e,t,!1),t+4},Buffer.prototype.writeFloatLE=function writeFloatLE(e,t,n){return writeFloat(this,e,t,!0,n)},Buffer.prototype.writeFloatBE=function writeFloatBE(e,t,n){return writeFloat(this,e,t,!1,n)},Buffer.prototype.writeDoubleLE=function writeDoubleLE(e,t,n){return writeDouble(this,e,t,!0,n)},Buffer.prototype.writeDoubleBE=function writeDoubleBE(e,t,n){return writeDouble(this,e,t,!1,n)},Buffer.prototype.copy=function copy(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(a<1e3||!Buffer.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function asciiToBytes(e){for(var t=[],n=0;n>8,i=n%256,a.push(i),a.push(r);return a}function base64ToBytes(e){return r.toByteArray(base64clean(e))}function blitBuffer(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(18))},function(e,t,n){var r=n(42).f,i=n(64),a=n(26)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},function(e,t,n){var r=n(76),i=n(89),a=n(31);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],o={};o[e]=t(n),r(r.S+r.F*a(function(){n(1)}),"Object",o)}},function(e,t){e.exports=function arrayMap(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++np))return!1;var h=c.get(e);if(h&&c.get(t))return h==t;var m=-1,g=!0,y=n&s?new r:void 0;for(c.set(e,t),c.set(t,e);++my;)m(g[y++]);d.constructor=l,l.prototype=d,n(63)(r,"RegExp",l)}n(498)("RegExp")},function(e,t,n){var r=n(32),i=n(112),a=NaN,o=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function toNumber(e){if("number"==typeof e)return e;if(i(e))return a;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=u.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):s.test(e)?a:+e}},function(e,t,n){"use strict";n(500);var r=n(25),i=n(100),a=n(30),o=/./.toString,s=function define(e){n(63)(RegExp.prototype,"toString",e,!0)};n(31)(function(){return"/a/b"!=o.call({source:"a",flags:"b"})})?s(function toString(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!a&&e instanceof RegExp?i.call(e):void 0)}):"toString"!=o.name&&s(function toString(){return o.call(this)})},function(e,t,n){"use strict";var r=n(25),i=n(93),a=n(145),o=n(98);n(99)("match",1,function(e,t,n,s){return[function match(n){var r=e(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=s(n,e,this);if(t.done)return t.value;var u=r(e),l=String(this);if(!u.global)return o(u,l);var c=u.unicode;u.lastIndex=0;for(var d,p=[],f=0;null!==(d=o(u,l));){var h=String(d[0]);p[f]=h,""===h&&(u.lastIndex=a(l,i(u.lastIndex),c)),f++}return 0===f?null:p}]})},function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return h});var r=n(4),i=n(5),a=n(6),o=n(8),s=n(7),u=n(9),l=n(0),c=n.n(l),d=n(12),p=n(190),f=n.n(p),h=function(e){function Avatar(){return Object(i.a)(this,Avatar),Object(o.a)(this,Object(s.a)(Avatar).apply(this,arguments))}return Object(u.a)(Avatar,e),Object(a.a)(Avatar,[{key:"getInitials",value:function getInitials(e){var t=e.trim().split("(")[0].split(" ");return(t.length>1?"".concat(t[0][0]).concat(t.slice(-1)[0][0]):"".concat(t[0][0]).concat(t[0][1])).toUpperCase()}},{key:"render",value:function render(){var e=this.props,t=e.photo,n=e.text,r=e.theme;return c.a.createElement("div",{className:f.a["theme-".concat(r)]},c.a.createElement("div",{className:f.a.profileAvatar},t&&t.length&&t[0].url?c.a.createElement("img",{alt:n,src:t[0].url}):c.a.createElement("span",null,this.getInitials(n))))}}]),Avatar}(l.PureComponent);h.defaultProps=Object(r.a)({},d.defaultComponentPropTypes,{photo:null})},function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return h});var r=n(4),i=n(5),a=n(6),o=n(8),s=n(7),u=n(9),l=n(0),c=n.n(l),d=n(12),p=n(61),f=n.n(p),h=function(e){function Button(){return Object(i.a)(this,Button),Object(o.a)(this,Object(s.a)(Button).apply(this,arguments))}return Object(u.a)(Button,e),Object(a.a)(Button,[{key:"render",value:function render(){var e=this.props,t=e.onClickFunction,n=e.text,r=e.type,i=e.underneathLabel,a=e.disabled,o=e.url,s=e.containerClassName,u=e.className,l=e.theme,d=e.children;return c.a.createElement("div",{className:f.a["theme-".concat(l)]},c.a.createElement("div",{className:"".concat(f.a.container," ").concat(s)},"link"===r&&o?c.a.createElement("a",{href:o,className:"".concat(u," ").concat(f.a.linkButton)},n||d):c.a.createElement("div",{className:f.a.buttonGroup},c.a.createElement("button",{type:r,className:"".concat(u," ").concat(f.a.button),onClick:t,disabled:a},n||d),i&&c.a.createElement("label",{className:f.a.underneathLabel},i))))}}]),Button}(l.PureComponent);h.defaultProps=Object(r.a)({},d.defaultComponentPropTypes,{onClickFunction:function onClickFunction(){},underneathLabel:null,disabled:!1,url:null})},function(e,t,n){"use strict";n.r(t);var r=n(4),i=n(5),a=n(6),o=n(8),s=n(7),u=n(9),l=n(0),c=n.n(l),d=n(12),p=n(50),f=n(74),h=n.n(f),m=function(e){function Checkbox(){var e,t;Object(i.a)(this,Checkbox);for(var n=arguments.length,r=new Array(n),a=0;a=0||(i[n]=e[n]);return i}var s="unmounted";t.UNMOUNTED=s;var u="exited";t.EXITED=u;var l="entering";t.ENTERING=l;var c="entered";t.ENTERED=c;t.EXITING="exiting";var d=function(e){var t,n;function Transition(t,n){var r;r=e.call(this,t,n)||this;var i,a=n.transitionGroup,o=a&&!a.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=u,r.appearStatus=l):i=c:i=t.unmountOnExit||t.mountOnEnter?s:u,r.state={status:i},r.nextCallback=null,r}n=e,(t=Transition).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=Transition.prototype;return r.getChildContext=function getChildContext(){return{transitionGroup:null}},Transition.getDerivedStateFromProps=function getDerivedStateFromProps(e,t){return e.in&&t.status===s?{status:u}:null},r.componentDidMount=function componentDidMount(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function componentDidUpdate(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==l&&n!==c&&(t=l):n!==l&&n!==c||(t="exiting")}this.updateStatus(!1,t)},r.componentWillUnmount=function componentWillUnmount(){this.cancelNextCallback()},r.getTimeouts=function getTimeouts(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=r.appear),{exit:e,enter:t,appear:n}},r.updateStatus=function updateStatus(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=a.default.findDOMNode(this);t===l?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===u&&this.setState({status:s})},r.performEnter=function performEnter(e,t){var n=this,r=this.props.enter,i=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,a=this.getTimeouts();t||r?(this.props.onEnter(e,i),this.safeSetState({status:l},function(){n.props.onEntering(e,i),n.onTransitionEnd(e,a.enter,function(){n.safeSetState({status:c},function(){n.props.onEntered(e,i)})})})):this.safeSetState({status:c},function(){n.props.onEntered(e)})},r.performExit=function performExit(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:"exiting"},function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,function(){t.safeSetState({status:u},function(){t.props.onExited(e)})})})):this.safeSetState({status:u},function(){t.props.onExited(e)})},r.cancelNextCallback=function cancelNextCallback(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function safeSetState(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function setNextCallback(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function onTransitionEnd(e,t,n){this.setNextCallback(n),e?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},r.render=function render(){var e=this.state.status;if(e===s)return null;var t=this.props,n=t.children,r=_objectWithoutPropertiesLoose(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(e,r);var a=i.default.Children.only(n);return i.default.cloneElement(a,r)},Transition}(i.default.Component);function noop(){}d.contextTypes={transitionGroup:r.object},d.childContextTypes={transitionGroup:function transitionGroup(){}},d.propTypes={},d.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop,onEntering:noop,onEntered:noop,onExit:noop,onExiting:noop,onExited:noop},d.UNMOUNTED=0,d.EXITED=1,d.ENTERING=2,d.ENTERED=3,d.EXITING=4;var p=(0,o.polyfill)(d);t.default=p},function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;(function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}})(n(2));t.timeoutsShape=null;t.classNamesShape=null},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=_interopRequireDefault(n(2)),i=_interopRequireDefault(n(0)),a=n(67),o=n(528);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t0?n.end(n.length-1):t}},{key:"getCurrentTime",value:function getCurrentTime(){return this.player?this.player.currentTime:null}},{key:"getSecondsLoaded",value:function getSecondsLoaded(){if(!this.player)return null;var e=this.player.buffered;if(0===e.length)return 0;var t=e.end(e.length-1),n=this.getDuration();return t>n?n:t}},{key:"getSource",value:function getSource(e){var t=this.shouldUseHLS(e),n=this.shouldUseDASH(e);if(!(e instanceof Array||(0,s.isMediaStream)(e)||t||n))return h.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}},{key:"render",value:function render(){var e=this.props,t=e.url,n=e.playing,i=e.loop,a=e.controls,s=e.muted,u=e.config,l=e.width,c=e.height,d=this.shouldUseAudio(this.props)?"audio":"video",p={width:"auto"===l?l:"100%",height:"auto"===c?c:"100%"};return o.default.createElement(d,r({ref:this.ref,src:this.getSource(t),style:p,preload:"auto",autoPlay:n||void 0,controls:a,muted:s,loop:i},u.file.attributes),t instanceof Array&&t.map(this.renderSourceElement),u.file.tracks.map(this.renderTrack))}}]),FilePlayer}();m.displayName="FilePlayer",m.canPlay=canPlay,m.canEnablePIP=function canEnablePIP(e){return canPlay(e)&&!!document.pictureInPictureEnabled&&!c.test(e)},t.default=(0,u.default)(m)},function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return h});var r=n(4),i=n(5),a=n(6),o=n(8),s=n(7),u=n(9),l=n(0),c=n.n(l),d=n(12),p=n(192),f=n.n(p),h=function(e){function WarningBlock(){return Object(i.a)(this,WarningBlock),Object(o.a)(this,Object(s.a)(WarningBlock).apply(this,arguments))}return Object(u.a)(WarningBlock,e),Object(a.a)(WarningBlock,[{key:"render",value:function render(){var e=this.props,t=e.theme,n=e.children,r=e.className;return c.a.createElement("div",{className:f.a["theme-".concat(t)]},c.a.createElement("div",{className:"".concat(f.a.warningBlock," ").concat(r)},n))}}]),WarningBlock}(l.PureComponent);h.defaultProps=Object(r.a)({},d.defaultComponentPropTypes)},function(e,t){e.exports=function arrayEach(e,t){for(var n=-1,r=null==e?0:e.length;++n1&&console.warn("Airtable: `select` takes only one parameter, but it was given "+arguments.length+" parameters. Use `eachPage` or `firstPage` to fetch records."),r(e)){var t=c.validateParams(e);if(t.errors.length){var n=o(t.errors,function(e){return" * "+e});s(!1,"Airtable: invalid parameters for `select`:\n"+n.join("\n"))}return t.ignoredKeys.length&&console.warn("Airtable: the following parameters to `select` will be ignored: "+t.ignoredKeys.join(", ")),new c(this,t.validParams)}s(!1,"Airtable: the parameter for `select` should be a plain object or undefined.")},_urlEncodedNameOrId:function _urlEncodedNameOrId(){return this.id||encodeURIComponent(this.name)},_createRecord:function _createRecord(e,t,n){var r=this;n||(n=t,t={});var a=i({fields:e},t);this._base.runAction("post","/"+r._urlEncodedNameOrId()+"/",{},a,function(e,t,i){if(e)n(e);else{var a=new d(r,i.id,i);n(null,a)}})},_updateRecord:function _updateRecord(e,t,n,r){var i=new d(this,e);r?i.patchUpdate(t,n,r):(r=n,i.patchUpdate(t,r))},_replaceRecord:function _replaceRecord(e,t,n,r){var i=new d(this,e);r?i.putUpdate(t,n,r):(r=n,i.putUpdate(t,r))},_destroyRecord:function _destroyRecord(e,t){new d(this,e).destroy(t)},_listRecords:function _listRecords(e,t,n,r){var a=this;r||(r=n,n={});var s=i({limit:e,offset:t},n);this._base.runAction("get","/"+this._urlEncodedNameOrId()+"/",s,null,function(e,t,n){if(e)r(e);else{var i=o(n.records,function(e){return new d(a,null,e)});r(null,i,n.offset)}})},_forEachRecord:function _forEachRecord(e,t,n){2===arguments.length&&(n=t,t=e,e={});var r=this,i=f.__recordsPerPageForIteration||100,o=null;!function nextPage(){r._listRecords(i,o,e,function(e,r,i){e?n(e):(a(r,t),i?(o=i,nextPage()):n())})}()}});e.exports=f},function(e,t,n){var r=n(48),i=n(172),a=n(35),o="[object Object]",s=Function.prototype,u=Object.prototype,l=s.toString,c=u.hasOwnProperty,d=l.call(Object);e.exports=function isPlainObject(e){if(!a(e)||r(e)!=o)return!1;var t=i(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==d}},function(e,t,n){var r=n(173),i=n(81),a=n(594),o=n(58),s=n(116),u=n(39),l=Object.prototype.hasOwnProperty,c=a(function(e,t){if(s(t)||o(t))i(t,u(t),e);else for(var n in t)l.call(t,n)&&r(e,n,t[n])});e.exports=c},function(e,t,n){var r=n(271);e.exports=function baseAssignValue(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(59),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t){var n=Function.prototype.toString;e.exports=function toSource(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(174),i=n(603),a=n(657),o=n(21);e.exports=function map(e,t){return(o(e)?r:a)(e,i(t,3))}},function(e,t,n){var r=n(628),i=n(35);e.exports=function baseIsEqual(e,t,n,a,o){return e===t||(null==e||null==t||!i(e)&&!i(t)?e!=e&&t!=t:r(e,t,n,a,baseIsEqual,o))}},function(e,t,n){var r=n(629),i=n(632),a=n(633),o=1,s=2;e.exports=function equalArrays(e,t,n,u,l,c){var d=n&o,p=e.length,f=t.length;if(p!=f&&!(d&&f>p))return!1;var h=c.get(e);if(h&&c.get(t))return h==t;var m=-1,g=!0,y=n&s?new r:void 0;for(c.set(e,t),c.set(t,e);++m-1:!!c&&r(e,t,n)>-1}},function(e,t,n){var r=n(261),i=n(674),a=n(58);e.exports=function keysIn(e){return a(e)?r(e,!0):i(e)}},function(e,t,n){var r=n(279),i=n(172),a=n(178),o=n(280),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,a(e)),e=i(e);return t}:o;e.exports=s},function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return createBugsnagClient});var r=n(0),i=n.n(r),a=n(326),o=n.n(a),s=n(327),u=n.n(s),l=["production","staging"];function createBugsnagClient(e,t,n){var r=null;return"test"!==e&&(r=o()({apiKey:t,releaseStage:n,notifyReleaseStages:l})).use(u.a,i.a),r}},function(e,t,n){"use strict";n.r(t);var r=n(4);function _arrayWithoutHoles(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0||(i[n]=e[n]);return i}function _objectWithoutProperties(e,t){if(null==e)return{};var n,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var i=n(5),a=n(6),o=n(8),s=n(7),u=n(9),l=n(0),c=n.n(l),d=n(324),p=n.n(d),f=n(12),h=n(2),m=n.n(h),g=(m.a.string,m.a.oneOfType([m.a.string,m.a.arrayOf(m.a.string),m.a.object]).isRequired,m.a.bool,m.a.bool,m.a.bool,m.a.oneOfType([m.a.bool,m.a.string]),m.a.number,m.a.bool,m.a.number,m.a.oneOfType([m.a.string,m.a.number]),m.a.oneOfType([m.a.string,m.a.number]),m.a.object,m.a.number,m.a.bool,m.a.bool,m.a.oneOfType([m.a.string,m.a.func,m.a.shape({render:m.a.func.isRequired})]),m.a.shape({soundcloud:m.a.shape({options:m.a.object}),youtube:m.a.shape({playerVars:m.a.object,embedOptions:m.a.object,preload:m.a.bool}),facebook:m.a.shape({appId:m.a.string}),dailymotion:m.a.shape({params:m.a.object,preload:m.a.bool}),vimeo:m.a.shape({playerOptions:m.a.object,preload:m.a.bool}),file:m.a.shape({attributes:m.a.object,tracks:m.a.array,forceVideo:m.a.bool,forceAudio:m.a.bool,forceHLS:m.a.bool,forceDASH:m.a.bool,hlsOptions:m.a.object,hlsVersion:m.a.string,dashVersion:m.a.string}),wistia:m.a.shape({options:m.a.object}),mixcloud:m.a.shape({options:m.a.object}),twitch:m.a.shape({options:m.a.object})}),m.a.func,m.a.func,m.a.func,m.a.func,m.a.func,m.a.func,m.a.func,m.a.func,m.a.func,m.a.func,m.a.func,m.a.func,n(325)),y=n.n(g);n.d(t,"default",function(){return v});var v=function(e){function VideoPlayer(){return Object(i.a)(this,VideoPlayer),Object(o.a)(this,Object(s.a)(VideoPlayer).apply(this,arguments))}return Object(u.a)(VideoPlayer,e),Object(a.a)(VideoPlayer,[{key:"render",value:function render(){var e=this.props,t=e.containerClassName,n=e.theme,r=_objectWithoutProperties(e,["containerClassName","theme"]);return c.a.createElement("div",{className:y.a["theme-".concat(n)]},c.a.createElement("div",{className:t},c.a.createElement(p.a,r)))}}]),VideoPlayer}(l.Component);v.defaultProps=Object(r.a)({},f.defaultComponentPropTypes,{containerClassName:"",playing:!1,loop:!1,controls:!1,light:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,wrapper:"div",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},preload:!1},facebook:{appId:"1309697205772819"},dailymotion:{params:{api:1,"endscreen-enable":!1},preload:!1},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},preload:!1},file:{attributes:{disablepictureinpicture:"true"},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,hlsOptions:{},hlsVersion:"0.10.1",dashVersion:"2.9.2"},wistia:{options:{}},mixcloud:{options:{hide_cover:1}},twitch:{options:{}}},onReady:function onReady(){},onStart:function onStart(){},onPlay:function onPlay(){},onPause:function onPause(){},onBuffer:function onBuffer(){},onEnded:function onEnded(){},onError:function onError(){},onDuration:function onDuration(){},onSeek:function onSeek(){},onProgress:function onProgress(){},onEnablePIP:function onEnablePIP(){},onDisablePIP:function onDisablePIP(){}})},function(e,t,n){"use strict";n.r(t);var r=n(41),i=n.n(r);function asyncGeneratorStep(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function _next(e){asyncGeneratorStep(a,r,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(a,r,i,_next,_throw,"throw",e)}_next(void 0)})}}n.d(t,"airtableFetchRecords",function(){return airtableFetchRecords}),n.d(t,"loadList",function(){return loadList}),n.d(t,"createRecord",function(){return createRecord}),n.d(t,"updateRecord",function(){return updateRecord});var a=n(572),o="https://api.airtable.com";function airtableFetchRecords(e){return _airtableFetchRecords.apply(this,arguments)}function _airtableFetchRecords(){return(_airtableFetchRecords=_asyncToGenerator(i.a.mark(function _callee(e){var t,n,r,s,u,l=arguments;return i.a.wrap(function _callee$(i){for(;;)switch(i.prev=i.next){case 0:return t=l.length>1&&void 0!==l[1]?l[1]:null,n=l.length>2&&void 0!==l[2]?l[2]:null,a.configure({endpointUrl:o,apiKey:"keyQwkepkcSrWl1du"}),r=a.base(e.baseName),s=[],u={view:e.gridView},t&&(u.filterByFormula=t),n&&(u.fields=n),i.abrupt("return",new Promise(function(t,n){r(e.table).select(u).eachPage(function(t,n){t.forEach(function(t){s.push(e.recordBuilder(t))}),n()},function(e){e?n(e):t(s)})}));case 9:case"end":return i.stop()}},_callee,this)}))).apply(this,arguments)}function loadList(e,t){return _loadList.apply(this,arguments)}function _loadList(){return(_loadList=_asyncToGenerator(i.a.mark(function _callee2(e,t){var n,r,a,o=arguments;return i.a.wrap(function _callee2$(i){for(;;)switch(i.prev=i.next){case 0:return n=o.length>2&&void 0!==o[2]?o[2]:null,r=o.length>3&&void 0!==o[3]?o[3]:null,a=r&&r.length?r.map(function(t){return e[t]}):Object.keys(e).map(function(t){return e[t]}),i.abrupt("return",airtableFetchRecords(t,n,a));case 4:case"end":return i.stop()}},_callee2,this)}))).apply(this,arguments)}function createRecord(e,t){return _createRecord.apply(this,arguments)}function _createRecord(){return(_createRecord=_asyncToGenerator(i.a.mark(function _callee3(e,t){var n;return i.a.wrap(function _callee3$(r){for(;;)switch(r.prev=r.next){case 0:return a.configure({endpointUrl:o,apiKey:"keyQwkepkcSrWl1du"}),n=a.base(e.baseName),r.abrupt("return",new Promise(function(r,i){n(e.table).create(t,function(e){e&&i(e),r()})}));case 3:case"end":return r.stop()}},_callee3,this)}))).apply(this,arguments)}function updateRecord(e,t,n){return _updateRecord.apply(this,arguments)}function _updateRecord(){return(_updateRecord=_asyncToGenerator(i.a.mark(function _callee4(e,t,n){var r;return i.a.wrap(function _callee4$(i){for(;;)switch(i.prev=i.next){case 0:return a.configure({endpointUrl:o,apiKey:"keyQwkepkcSrWl1du"}),r=a.base(e.baseName),i.abrupt("return",new Promise(function(i,a){r(e.table).update(n,t,function(e){e&&a(e),i()})}));case 3:case"end":return i.stop()}},_callee4,this)}))).apply(this,arguments)}},function(e,t,n){"use strict";n.r(t);var r=n(4),i=n(328),a=n.n(i),o=n(82);function checkStatus(e){if(e.status>=200&&e.status<300)return e;var t=new Error(e.statusText);throw t.response=e,t}function request(e,t){var n=Object(r.a)({},t);return"POST"!==t.method&&"PUT"!==t.method||(n.headers=Object(r.a)({Accept:"application/json","Content-Type":"application/json; charset=utf-8"},t.headers),t.hasAuthorization&&(n.headers.Authorization="Bearer ".concat(Object(o.getFromStorage)("loginToken")),t.hasAuthorization=void 0),n.body=JSON.stringify(t.body)),a()(e,n).then(checkStatus).then(function(e){return 204!==e.status?e.json():{}})}n.d(t,"default",function(){return request})},function(e,t,n){"use strict";function symbolObservablePonyfill(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",function(){return symbolObservablePonyfill})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=!1,n=[],r=void 0,i=void 0,a=function setSelector(){i.selector=n.join(",\n")},o=p(a);return{onProcessRule:function onProcessRule(a,u){if(!u||u===r||"style"!==a.type)return;if(!d(a,u,e))return;i||(r=a.options.jss.createStyleSheet(null,s),i=r.addRule("reset",l(e.reset)),r.attach());var c=a.selector;-1===n.indexOf(c)&&(n.push(c),t=o())},onProcessSheet:function onProcessSheet(){!t&&n.length&&a()}}};var a=_interopRequireDefault(n(361)),o=_interopRequireDefault(n(362));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var s={meta:"jss-isolate",index:-1/0,link:!0},u={inherited:a.default,all:o.default},l=function getStyle(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"inherited";if("string"==typeof e)return u[e];if("object"===(void 0===e?"undefined":i(e))){if(Array.isArray(e)){var t=e[0],n=e[1];return r({},u[t],n)}return r({},a.default,e)}return a.default},c={keyframes:!0,conditional:!0},d=function shouldIsolate(e,t,n){var r=e.options.parent;if(r&&c[r.type])return!1;var i=null==n.isolate||n.isolate;return null!=t.options.isolate&&(i=t.options.isolate),null!=e.style.isolate&&(i=e.style.isolate,delete e.style.isolate),"string"==typeof i?i===e.key:i},p=function createDebounced(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Date.now();return function(){var r=Date.now();return!(r-n0&&void 0!==arguments[0]?arguments[0]:{});return{onProcessStyle:function onProcessStyle(t,n){if("style"!==n.type)return t;for(var r in t)t[r]=iterate(r,t[r],e);return t},onChangeValue:function onChangeValue(t,n){return iterate(n,t,e)}}};var i=addCamelCasedVersion(function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(n(364)).default);function iterate(e,t,n){if(!t)return t;var a=t,o=void 0===t?"undefined":r(t);switch("object"===o&&Array.isArray(t)&&(o="array"),o){case"object":if("fallbacks"===e){for(var s in t)t[s]=iterate(s,t[s],n);break}for(var u in t)t[u]=iterate(e+"-"+u,t[u],n);break;case"array":for(var l=0;l-1)return registerClass(e,t.split(" "));var i=e.options.parent;if("$"===t[0]){var a=i.getRule(t.substr(1));return a?a===e?((0,r.default)(!1,"[JSS] Cyclic composition detected. \r\n%s",e),!1):(i.classes[e.key]+=" "+i.classes[a.key],!0):((0,r.default)(!1,"[JSS] Referenced rule is not defined. \r\n%s",e),!1)}return e.options.parent.classes[e.key]+=" "+t,!0}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=13,s=9,u=8,l=89,c=90,d=77,p=57,f=219,h=222,m=192,g=100,y=3e3,v="navigator"in e&&/Win/i.test(navigator.platform),b="navigator"in e&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),_="npm__react-simple-code-editor__textarea",x=function(e){function Editor(){var e,t,n;_classCallCheck(this,Editor);for(var i=arguments.length,a=Array(i),_=0;_1&&void 0!==arguments[1]&&arguments[1],i=n._history,a=i.stack,o=i.offset;if(a.length&&o>-1){n._history.stack=a.slice(0,o+1);var s=n._history.stack.length;if(s>g){var u=s-g;n._history.stack=a.slice(u,s),n._history.offset=Math.max(n._history.offset-u,0)}}var l=Date.now();if(t){var c=n._history.stack[n._history.offset];if(c&&l-c.timestamp=C&&t<=E&&e.startsWith(S)?e.substring(S.length):e}).join("\n");if(_!==P){var $=w[C];n._applyEdits({value:P,selectionStart:$.startsWith(S)?x-S.length:x,selectionEnd:k-(_.length-P.length)})}}else if(x!==k){var O=n._getLines(_,x),T=O.length-1,R=n._getLines(_,k).length-1,A=O[T];n._applyEdits({value:_.split("\n").map(function(e,t){return t>=T&&t<=R?S+e:e}).join("\n"),selectionStart:/\S/.test(A)?x+S.length:x,selectionEnd:k+S.length*(R-T+1)})}else{var I=x+S.length;n._applyEdits({value:_.substring(0,x)+S+_.substring(k),selectionStart:I,selectionEnd:I})}else if(e.keyCode===u){var D=x!==k;if(_.substring(0,x).endsWith(S)&&!D){e.preventDefault();var j=x-S.length;n._applyEdits({value:_.substring(0,x-S.length)+_.substring(k),selectionStart:j,selectionEnd:j})}}else if(e.keyCode===o){if(x===k){var M=n._getLines(_,x).pop().match(/^\s+/);if(M&&M[0]){e.preventDefault();var L="\n"+M[0],N=x+L.length;n._applyEdits({value:_.substring(0,x)+L+_.substring(k),selectionStart:N,selectionEnd:N})}}}else if(e.keyCode===p||e.keyCode===f||e.keyCode===h||e.keyCode===m){var F=void 0;e.keyCode===p&&e.shiftKey?F=["(",")"]:e.keyCode===f?F=e.shiftKey?["{","}"]:["[","]"]:e.keyCode===h?F=e.shiftKey?['"','"']:["'","'"]:e.keyCode!==m||e.shiftKey||(F=["`","`"]),x!==k&&F&&(e.preventDefault(),n._applyEdits({value:_.substring(0,x)+F[0]+_.substring(x,k)+F[1]+_.substring(k),selectionStart:x,selectionEnd:k+2}))}else(b?e.metaKey&&e.keyCode===c:e.ctrlKey&&e.keyCode===c)&&!e.shiftKey&&!e.altKey?(e.preventDefault(),n._undoEdit()):(b?e.metaKey&&e.keyCode===c&&e.shiftKey:v?e.ctrlKey&&e.keyCode===l:e.ctrlKey&&e.keyCode===c&&e.shiftKey)&&!e.altKey?(e.preventDefault(),n._redoEdit()):e.keyCode!==d||!e.ctrlKey||b&&!e.shiftKey||(e.preventDefault(),n.setState(function(e){return{capture:!e.capture}}))}},n._handleChange=function(e){var t=e.target,r=t.value,i=t.selectionStart,a=t.selectionEnd;n._recordChange({value:r,selectionStart:i,selectionEnd:a},!0),n.props.onValueChange(r)},n._history={stack:[],offset:-1},_possibleConstructorReturn(n,t)}return _inherits(Editor,a.Component),i(Editor,[{key:"componentDidMount",value:function componentDidMount(){this._recordCurrentState()}},{key:"render",value:function render(){var e=this,t=this.props,n=t.value,i=t.style,o=t.padding,s=t.highlight,u=t.textareaId,l=t.autoFocus,c=t.disabled,d=t.form,p=t.maxLength,f=t.minLength,h=t.name,m=t.placeholder,g=t.readOnly,y=t.required,v=t.onClick,b=t.onFocus,x=t.onBlur,S=t.onKeyUp,w=(t.onKeyDown,t.onValueChange,t.tabSize,t.insertSpaces,t.ignoreTabKey,_objectWithoutProperties(t,["value","style","padding","highlight","textareaId","autoFocus","disabled","form","maxLength","minLength","name","placeholder","readOnly","required","onClick","onFocus","onBlur","onKeyUp","onKeyDown","onValueChange","tabSize","insertSpaces","ignoreTabKey"])),C={paddingTop:o,paddingRight:o,paddingBottom:o,paddingLeft:o},E=s(n);return a.createElement("div",r({},w,{style:r({},k.container,i)}),a.createElement("textarea",{ref:function ref(t){return e._input=t},style:r({},k.editor,k.textarea,C),className:_,id:u,value:n,onChange:this._handleChange,onKeyDown:this._handleKeyDown,onClick:v,onKeyUp:S,onFocus:b,onBlur:x,disabled:c,form:d,maxLength:p,minLength:f,name:h,placeholder:m,readOnly:g,required:y,autoFocus:l,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),a.createElement("pre",r({"aria-hidden":"true",style:r({},k.editor,k.highlight,C)},"string"==typeof E?{dangerouslySetInnerHTML:{__html:E+"
"}}:{children:E})),a.createElement("style",{type:"text/css",dangerouslySetInnerHTML:{__html:"\n/**\n * Reset the text fill color so that placeholder is visible\n */\n.npm__react-simple-code-editor__textarea:empty {\n -webkit-text-fill-color: inherit !important;\n}\n\n/**\n * Hack to apply on some CSS on IE10 and IE11\n */\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n /**\n * IE doesn't support '-webkit-text-fill-color'\n * So we use 'color: transparent' to make the text transparent on IE\n * Unlike other browsers, it doesn't affect caret color in IE\n */\n .npm__react-simple-code-editor__textarea {\n color: transparent !important;\n }\n\n .npm__react-simple-code-editor__textarea::selection {\n background-color: #accef7 !important;\n color: transparent !important;\n }\n}\n"}}))}},{key:"session",get:function get(){return{history:this._history}},set:function set(e){this._history=e.history}}]),Editor}();x.defaultProps={tabSize:2,insertSpaces:!0,ignoreTabKey:!1,padding:0},t.default=x;var k={container:{position:"relative",textAlign:"left",whiteSpace:"pre-wrap",wordBreak:"keep-all",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"inherit",wordBreak:"inherit"}}}).call(this,n(18))},function(e,t,n){(function(t){e.exports=function(){var e=/[\\\'\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'",'"':'\\"',"\\":"\\\\"};function escapeChar(e){var t=n[e];return t||"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}var r={};"break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield".split(" ").map(function(e){r[e]=!0});var i=/^[A-Za-z_$][A-Za-z0-9_$]*$/;function isValidVariableName(e){return!r[e]&&i.test(e)}function toGlobalVariable(e){return"Function("+stringify("return this;")+")()"}function toPath(e){for(var t="",n=0;n-1)return void p.push(u.slice(),d[r]);c.push(e),d.push(u.slice())}if(!(u.length>i||s--<=0))return t(e,n,next)}:function(e,t){var r=l.indexOf(e);if(!(r>-1||u.length>i||s--<=0)){l.push(e);var e=t(e,n,next);return l.pop(),e}};if("function"==typeof t){var h=f;f=function recurse(e,n){return h(e,function(e,r,i){return t(e,r,function(e){return n(e,r,i)})})}}var m=f(e,stringify);if(p.length){for(var g=n?"\n":"",y=n?" = ":"=",v=";"+g,h=n?"(function () {":"(function(){",b=["var x"+y+m],_=0;_=t||n<0||y&&e-m>=d}function timerExpired(){var e=i();if(shouldInvoke(e))return trailingEdge(e);f=setTimeout(timerExpired,remainingWait(e))}function trailingEdge(e){return f=void 0,v&&l?invokeFunc(e):(l=c=void 0,p)}function debounced(){var e=i(),n=shouldInvoke(e);if(l=arguments,c=this,h=e,n){if(void 0===f)return leadingEdge(h);if(y)return f=setTimeout(timerExpired,t),invokeFunc(h)}return void 0===f&&(f=setTimeout(timerExpired,t)),p}return t=a(t)||0,r(n)&&(g=!!n.leading,d=(y="maxWait"in n)?s(a(n.maxWait)||0,t):d,v="trailing"in n?!!n.trailing:v),debounced.cancel=function cancel(){void 0!==f&&clearTimeout(f),m=0,l=h=c=f=void 0},debounced.flush=function flush(){return void 0===f?p:trailingEdge(i())},debounced}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return transform});var r=n(310),i=n(312),a={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},o=/^[\da-fA-F]+$/,s=/^\d+$/,u="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}var l=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function injectDynamicImport(e){var t=e.tokTypes;function parseDynamicImport(){var e=this.startNode();return this.next(),this.type!==t.parenL&&this.unexpected(),this.finishNode(e,n)}function peekNext(){return this.input[this.pos]}return t._import.startsExpr=!0,e.plugins.dynamicImport=function dynamicImportPlugin(e){e.extend("parseStatement",function(e){return function parseStatement(){var n=this.startNode();if(this.type===t._import&&peekNext.call(this)===t.parenL.label){var r=this.parseExpression();return this.parseExpressionStatement(n,r)}for(var i=arguments.length,a=Array(i),o=0;ot)return{line:n+1,column:t-a,char:n};a=o}throw new Error("Could not determine location of character")}function repeat(e,t){for(var n="";t--;)n+=e;return n}function getSnippet(e,t,n){void 0===n&&(n=1);var r=Math.max(t.line-5,0),i=t.line,a=String(i).length,o=e.split("\n").slice(r,i),s=o[o.length-1].slice(0,t.column).replace(/\t/g," ").length,u=o.map(function(e,t){return n=a,(i=String(t+r+1))+repeat(" ",n-i.length)+" : "+e.replace(/\t/g," ");var n,i}).join("\n");return u+="\n"+repeat(" ",a+3+s)+repeat("^",n)}"do if in for let new try var case else enum eval null this true void with await break catch class const false super throw while yield delete export import public return static switch typeof default extends finally package private continue debugger function arguments interface protected implements instanceof".split(" ").forEach(function(e){return f[e]=!0}),Scope.prototype={addDeclaration:function addDeclaration(e,t){for(var n=0,r=extractNames(e);n1&&(c=t(a),s.push(function(t,n,s){e.prependRight(i.start,(o?"":n+"var ")+c+" = "),e.overwrite(i.start,r=i.start+1,a),e.appendLeft(r,s),e.overwrite(i.start,r=i.start+1,(o?"":n+"var ")+c+" = "+a+s),e.move(i.start,r,t)})),destructureObjectPattern(e,t,n,i,c,o,s);break;case"ArrayPattern":if(e.remove(r,r=i.start),i.elements.filter(Boolean).length>1){var d=t(a);s.push(function(t,n,s){e.prependRight(i.start,(o?"":n+"var ")+d+" = "),e.overwrite(i.start,r=i.start+1,a,{contentOnly:!0}),e.appendLeft(r,s),e.move(i.start,r,t)}),i.elements.forEach(function(i,a){i&&("RestElement"===i.type?handleProperty(e,t,n,r,i.argument,d+".slice("+a+")",o,s):handleProperty(e,t,n,r,i,d+"["+a+"]",o,s),r=i.end)})}else{var p=findIndex(i.elements,Boolean),f=i.elements[p];"RestElement"===f.type?handleProperty(e,t,n,r,f.argument,a+".slice("+p+")",o,s):handleProperty(e,t,n,r,f,a+"["+p+"]",o,s),r=f.end}e.remove(r,i.end);break;default:throw new Error("Unexpected node type in destructuring ("+i.type+")")}}var g=function(e){function BlockStatement(){e.apply(this,arguments)}return e&&(BlockStatement.__proto__=e),BlockStatement.prototype=Object.create(e&&e.prototype),BlockStatement.prototype.constructor=BlockStatement,BlockStatement.prototype.createScope=function createScope(){var e=this;this.parentIsFunction=/Function/.test(this.parent.type),this.isFunctionBlock=this.parentIsFunction||"Root"===this.parent.type,this.scope=new Scope({block:!this.isFunctionBlock,parent:this.parent.findScope(!1),declare:function declare(t){return e.createdDeclarations.push(t)}}),this.parentIsFunction&&this.parent.params.forEach(function(t){e.scope.addDeclaration(t,"param")})},BlockStatement.prototype.initialise=function initialise(e){this.thisAlias=null,this.argumentsAlias=null,this.defaultParameters=[],this.createdDeclarations=[],this.scope||this.createScope(),this.body.forEach(function(t){return t.initialise(e)}),this.scope.consolidate()},BlockStatement.prototype.findLexicalBoundary=function findLexicalBoundary(){return"Program"===this.type?this:/^Function/.test(this.parent.type)?this:this.parent.findLexicalBoundary()},BlockStatement.prototype.findScope=function findScope(e){return e&&!this.isFunctionBlock?this.parent.findScope(e):this.scope},BlockStatement.prototype.getArgumentsAlias=function getArgumentsAlias(){return this.argumentsAlias||(this.argumentsAlias=this.scope.createIdentifier("arguments")),this.argumentsAlias},BlockStatement.prototype.getArgumentsArrayAlias=function getArgumentsArrayAlias(){return this.argumentsArrayAlias||(this.argumentsArrayAlias=this.scope.createIdentifier("argsArray")),this.argumentsArrayAlias},BlockStatement.prototype.getThisAlias=function getThisAlias(){return this.thisAlias||(this.thisAlias=this.scope.createIdentifier("this")),this.thisAlias},BlockStatement.prototype.getIndentation=function getIndentation(){if(void 0===this.indentation){for(var e=this.program.magicString.original,t=this.synthetic||!this.body.length,n=t?this.start:this.body[0].start;n&&"\n"!==e[n];)n-=1;for(this.indentation="";;){var r=e[n+=1];if(" "!==r&&"\t"!==r)break;this.indentation+=r}for(var i=this.program.magicString.getIndentString(),a=this.parent;a;)"constructor"!==a.kind||a.parent.parent.superClass||(this.indentation=this.indentation.replace(i,"")),a=a.parent;t&&(this.indentation+=i)}return this.indentation},BlockStatement.prototype.transpile=function transpile(t,n){var r,i,a=this,o=this.getIndentation(),s=[];if(this.argumentsAlias&&s.push(function(e,n,r){var i=n+"var "+a.argumentsAlias+" = arguments"+r;t.appendLeft(e,i)}),this.thisAlias&&s.push(function(e,n,r){var i=n+"var "+a.thisAlias+" = this"+r;t.appendLeft(e,i)}),this.argumentsArrayAlias&&s.push(function(e,n,r){var i=a.scope.createIdentifier("i"),s=n+"var "+i+" = arguments.length, "+a.argumentsArrayAlias+" = Array("+i+");\n"+o+"while ( "+i+"-- ) "+a.argumentsArrayAlias+"["+i+"] = arguments["+i+"]"+r;t.appendLeft(e,s)}),/Function/.test(this.parent.type)?this.transpileParameters(this.parent.params,t,n,o,s):"CatchClause"===this.parent.type&&this.transpileParameters([this.parent.param],t,n,o,s),n.letConst&&this.isFunctionBlock&&this.transpileBlockScopedIdentifiers(t),e.prototype.transpile.call(this,t,n),this.createdDeclarations.length&&s.push(function(e,n,r){var i=n+"var "+a.createdDeclarations.join(", ")+r;t.appendLeft(e,i)}),this.synthetic)if("ArrowFunctionExpression"===this.parent.type){var u=this.body[0];s.length?(t.appendLeft(this.start,"{").prependRight(this.end,this.parent.getIndentation()+"}"),t.prependRight(u.start,"\n"+o+"return "),t.appendLeft(u.end,";\n")):n.arrow&&(t.prependRight(u.start,"{ return "),t.appendLeft(u.end,"; }"))}else s.length&&t.prependRight(this.start,"{").appendLeft(this.end,"}");i=this.body[0],r=i&&"ExpressionStatement"===i.type&&"Literal"===i.expression.type&&"use strict"===i.expression.value?this.body[0].end:this.synthetic||"Root"===this.parent.type?this.start:this.start+1;var l="\n"+o,c=";";s.forEach(function(e,t){t===s.length-1&&(c=";\n"),e(r,l,c)})},BlockStatement.prototype.transpileParameters=function transpileParameters(e,t,n,r,i){var a=this;e.forEach(function(o){if("AssignmentPattern"===o.type&&"Identifier"===o.left.type)n.defaultParameter&&i.push(function(e,n,r){var i=n+"if ( "+o.left.name+" === void 0 ) "+o.left.name;t.prependRight(o.left.end,i).move(o.left.end,o.right.end,e).appendLeft(o.right.end,r)});else if("RestElement"===o.type)n.spreadRest&&i.push(function(n,i,s){var u=e[e.length-2];if(u)t.remove(u?u.end:o.start,o.end);else{for(var l=o.start,c=o.end;/\s/.test(t.original[l-1]);)l-=1;for(;/\s/.test(t.original[c]);)c+=1;t.remove(l,c)}var d=o.argument.name,p=a.scope.createIdentifier("len"),f=e.length-1;f?t.prependRight(n,i+"var "+d+" = [], "+p+" = arguments.length - "+f+";\n"+r+"while ( "+p+"-- > 0 ) "+d+"[ "+p+" ] = arguments[ "+p+" + "+f+" ]"+s):t.prependRight(n,i+"var "+d+" = [], "+p+" = arguments.length;\n"+r+"while ( "+p+"-- ) "+d+"[ "+p+" ] = arguments[ "+p+" ]"+s)});else if("Identifier"!==o.type&&n.parameterDestructuring){var s=a.scope.createIdentifier("ref");destructure(t,function(e){return a.scope.createIdentifier(e)},function(e){var t=e.name;return a.scope.resolveName(t)},o,s,!1,i),t.prependRight(o.start,s)}})},BlockStatement.prototype.transpileBlockScopedIdentifiers=function transpileBlockScopedIdentifiers(e){var t=this;Object.keys(this.scope.blockScopedDeclarations).forEach(function(n){for(var r=0,i=t.scope.blockScopedDeclarations[n];r0},ArrowFunctionExpression}(d);function checkConst(e,t){var n=t.findDeclaration(e.name);if(n&&"const"===n.kind)throw new h(e.name+" is read-only",e)}var b=function(e){function AssignmentExpression(){e.apply(this,arguments)}return e&&(AssignmentExpression.__proto__=e),AssignmentExpression.prototype=Object.create(e&&e.prototype),AssignmentExpression.prototype.constructor=AssignmentExpression,AssignmentExpression.prototype.initialise=function initialise(t){if("Identifier"===this.left.type){var n=this.findScope(!1).findDeclaration(this.left.name),r=n&&n.node.ancestor(3);r&&"ForStatement"===r.type&&r.body.contains(this)&&(r.reassigned[this.left.name]=!0)}e.prototype.initialise.call(this,t)},AssignmentExpression.prototype.transpile=function transpile(t,n){"Identifier"===this.left.type&&checkConst(this.left,this.findScope(!1)),"**="===this.operator&&n.exponentiation?this.transpileExponentiation(t,n):/Pattern/.test(this.left.type)&&n.destructuring&&this.transpileDestructuring(t,n),e.prototype.transpile.call(this,t,n)},AssignmentExpression.prototype.transpileDestructuring=function transpileDestructuring(e){var t=this,n=this.findScope(!0),r=this.findScope(!1),i=n.createDeclaration("assign");e.appendRight(this.left.end,"("+i),e.appendLeft(this.right.end,", ");var a=[];destructure(e,function(e){return n.createDeclaration(e)},function(e){var t=r.resolveName(e.name);return checkConst(e,r),t},this.left,i,!0,a);var o=", ";a.forEach(function(e,n){n===a.length-1&&(o=""),e(t.end,"",o)}),"ExpressionStatement"===this.unparenthesizedParent().type?e.prependRight(this.end,")"):e.appendRight(this.end,", "+i+")")},AssignmentExpression.prototype.transpileExponentiation=function transpileExponentiation(e){for(var t,n=this.findScope(!1),r=this.left.end;"*"!==e.original[r];)r+=1;e.remove(r,r+2);var i=this.left.unparenthesize();if("Identifier"===i.type)t=n.resolveName(i.name);else if("MemberExpression"===i.type){var a,o,s=!1,u=!1,l=this.findNearest(/(?:Statement|Declaration)$/),c=l.getIndentation();"Identifier"===i.property.type?o=i.computed?n.resolveName(i.property.name):i.property.name:(o=n.createDeclaration("property"),u=!0),"Identifier"===i.object.type?a=n.resolveName(i.object.name):(a=n.createDeclaration("object"),s=!0),i.start===l.start?s&&u?(e.prependRight(l.start,a+" = "),e.overwrite(i.object.end,i.property.start,";\n"+c+o+" = "),e.overwrite(i.property.end,i.end,";\n"+c+a+"["+o+"]")):s?(e.prependRight(l.start,a+" = "),e.appendLeft(i.object.end,";\n"+c),e.appendLeft(i.object.end,a)):u&&(e.prependRight(i.property.start,o+" = "),e.appendLeft(i.property.end,";\n"+c),e.move(i.property.start,i.property.end,this.start),e.appendLeft(i.object.end,"["+o+"]"),e.remove(i.object.end,i.property.start),e.remove(i.property.end,i.end)):(s&&u?(e.prependRight(i.start,"( "+a+" = "),e.overwrite(i.object.end,i.property.start,", "+o+" = "),e.overwrite(i.property.end,i.end,", "+a+"["+o+"]")):s?(e.prependRight(i.start,"( "+a+" = "),e.appendLeft(i.object.end,", "+a)):u&&(e.prependRight(i.property.start,"( "+o+" = "),e.appendLeft(i.property.end,", "),e.move(i.property.start,i.property.end,i.start),e.overwrite(i.object.end,i.property.start,"["+o+"]"),e.remove(i.property.end,i.end)),u&&e.appendLeft(this.end," )")),t=a+(i.computed||u?"["+o+"]":"."+o)}e.prependRight(this.right.start,"Math.pow( "+t+", "),e.appendLeft(this.right.end," )")},AssignmentExpression}(d),_=function(e){function BinaryExpression(){e.apply(this,arguments)}return e&&(BinaryExpression.__proto__=e),BinaryExpression.prototype=Object.create(e&&e.prototype),BinaryExpression.prototype.constructor=BinaryExpression,BinaryExpression.prototype.transpile=function transpile(t,n){"**"===this.operator&&n.exponentiation&&(t.prependRight(this.start,"Math.pow( "),t.overwrite(this.left.end,this.right.start,", "),t.appendLeft(this.end," )")),e.prototype.transpile.call(this,t,n)},BinaryExpression}(d),x=/(?:For(?:In|Of)?|While)Statement/,k=function(e){function BreakStatement(){e.apply(this,arguments)}return e&&(BreakStatement.__proto__=e),BreakStatement.prototype=Object.create(e&&e.prototype),BreakStatement.prototype.constructor=BreakStatement,BreakStatement.prototype.initialise=function initialise(){var e=this.findNearest(x),t=this.findNearest("SwitchCase");e&&(!t||e.depth>t.depth)&&(e.canBreak=!0,this.loop=e)},BreakStatement.prototype.transpile=function transpile(e){if(this.loop&&this.loop.shouldRewriteAsFunction){if(this.label)throw new h("Labels are not currently supported in a loop with locally-scoped variables",this);e.overwrite(this.start,this.start+5,"return 'break'")}},BreakStatement}(d),S=function(e){function CallExpression(){e.apply(this,arguments)}return e&&(CallExpression.__proto__=e),CallExpression.prototype=Object.create(e&&e.prototype),CallExpression.prototype.constructor=CallExpression,CallExpression.prototype.initialise=function initialise(t){if(t.spreadRest&&this.arguments.length>1)for(var n=this.findLexicalBoundary(),r=this.arguments.length;r--;){var i=this.arguments[r];"SpreadElement"===i.type&&isArguments(i.argument)&&(this.argumentsArrayAlias=n.getArgumentsArrayAlias())}e.prototype.initialise.call(this,t)},CallExpression.prototype.transpile=function transpile(t,n){if(n.spreadRest&&this.arguments.length){var r,i=!1,a=this.arguments[0];if(1===this.arguments.length?"SpreadElement"===a.type&&(t.remove(a.start,a.argument.start),i=!0):i=spread(t,this.arguments,a.start,this.argumentsArrayAlias),i){var o=null;if("Super"===this.callee.type?o=this.callee:"MemberExpression"===this.callee.type&&"Super"===this.callee.object.type&&(o=this.callee.object),o||"MemberExpression"!==this.callee.type)r="void 0";else if("Identifier"===this.callee.object.type)r=this.callee.object.name;else{r=this.findScope(!0).createDeclaration("ref");var s=this.callee.object;t.prependRight(s.start,"("+r+" = "),t.appendLeft(s.end,")")}t.appendLeft(this.callee.end,".apply"),o?(o.noCall=!0,this.arguments.length>1&&("SpreadElement"!==a.type&&t.prependRight(a.start,"[ "),t.appendLeft(this.arguments[this.arguments.length-1].end," )"))):1===this.arguments.length?t.prependRight(a.start,r+", "):("SpreadElement"===a.type?t.appendLeft(a.start,r+", "):t.appendLeft(a.start,r+", [ "),t.appendLeft(this.arguments[this.arguments.length-1].end," )"))}}n.trailingFunctionCommas&&this.arguments.length&&removeTrailingComma(t,this.arguments[this.arguments.length-1].end),e.prototype.transpile.call(this,t,n)},CallExpression}(d),w=function(e){function ClassBody(){e.apply(this,arguments)}return e&&(ClassBody.__proto__=e),ClassBody.prototype=Object.create(e&&e.prototype),ClassBody.prototype.constructor=ClassBody,ClassBody.prototype.transpile=function transpile(t,n,r,i){var a=this;if(n.classes){var o=this.parent.name,s=t.getIndentString(),u=this.getIndentation()+(r?s:""),l=u+s,c=findIndex(this.body,function(e){return"constructor"===e.kind}),d=this.body[c],p="",h="";if(this.body.length?(t.remove(this.start,this.body[0].start),t.remove(this.body[this.body.length-1].end,this.end)):t.remove(this.start,this.end),d){d.value.body.isConstructorBody=!0;var m=this.body[c-1],g=this.body[c+1];c>0&&(t.remove(m.end,d.start),t.move(d.start,g?g.start:this.end-1,this.body[0].start)),r||t.appendLeft(d.end,";")}var y=!1!==this.program.options.namedFunctionExpressions,v=y||this.parent.superClass||"ClassDeclaration"!==this.parent.type;if(this.parent.superClass){var b="if ( "+i+" ) "+o+".__proto__ = "+i+";\n"+u+o+".prototype = Object.create( "+i+" && "+i+".prototype );\n"+u+o+".prototype.constructor = "+o+";";if(d)p+="\n\n"+u+b;else p+=(b="function "+o+" () {"+(i?"\n"+l+i+".apply(this, arguments);\n"+u+"}":"}")+(r?"":";")+(this.body.length?"\n\n"+u:"")+b)+"\n\n"+u}else if(!d){var _="function "+(v?o+" ":"")+"() {}";"ClassDeclaration"===this.parent.type&&(_+=";"),this.body.length&&(_+="\n\n"+u),p+=_}var x,k,S=this.findScope(!1),w=[],C=[];if(this.body.forEach(function(e,n){if("constructor"!==e.kind){if(e.static){var r=" "==t.original[e.start+6]?7:6;t.remove(e.start,e.start+r)}var i,s="method"!==e.kind,l=e.key.name;(f[l]||e.value.body.scope.references[l])&&(l=S.createIdentifier(l));var d=!1;if(e.computed||"Literal"!==e.key.type||(d=!0,e.computed=!0),s){if(e.computed)throw new Error("Computed accessor properties are not currently supported");t.remove(e.start,e.key.start),e.static?(~C.indexOf(e.key.name)||C.push(e.key.name),k||(k=S.createIdentifier("staticAccessors")),i=""+k):(~w.indexOf(e.key.name)||w.push(e.key.name),x||(x=S.createIdentifier("prototypeAccessors")),i=""+x)}else i=e.static?""+o:o+".prototype";e.computed||(i+="."),(c>0&&n===c+1||0===n&&c===a.body.length-1)&&(i="\n\n"+u+i);var p=e.key.end;if(e.computed)if(d)t.prependRight(e.key.start,"["),t.appendLeft(e.key.end,"]");else{for(;"]"!==t.original[p];)p+=1;p+=1}var h=e.computed||s||!y?"":l+" ",m=(s?"."+e.kind:"")+" = function"+(e.value.generator?"* ":" ")+h;t.remove(p,e.value.start),t.prependRight(e.value.start,m),t.appendLeft(e.end,";"),e.value.generator&&t.remove(e.start,e.key.start),t.prependRight(e.start,i)}else{var g=v?" "+o:"";t.overwrite(e.key.start,e.key.end,"function"+g)}}),w.length||C.length){var E=[],P=[];w.length&&(E.push("var "+x+" = { "+w.map(function(e){return e+": { configurable: true }"}).join(",")+" };"),P.push("Object.defineProperties( "+o+".prototype, "+x+" );")),C.length&&(E.push("var "+k+" = { "+C.map(function(e){return e+": { configurable: true }"}).join(",")+" };"),P.push("Object.defineProperties( "+o+", "+k+" );")),d&&(p+="\n\n"+u),p+=E.join("\n"+u),d||(p+="\n\n"+u),h+="\n\n"+u+P.join("\n"+u)}d?t.appendLeft(d.end,p):t.prependRight(this.start,p),t.appendLeft(this.end,h)}e.prototype.transpile.call(this,t,n)},ClassBody}(d);function deindent(e,t){var n=e.start,r=e.end,i=t.getIndentString(),a=i.length,o=n-a;e.program.indentExclusions[o]||t.original.slice(o,n)!==i||t.remove(o,n);for(var s,u=new RegExp(i+"\\S","g"),l=t.original.slice(n,r);s=u.exec(l);){var c=n+s.index;e.program.indentExclusions[c]||t.remove(c,c+a)}}var C=function(e){function ClassDeclaration(){e.apply(this,arguments)}return e&&(ClassDeclaration.__proto__=e),ClassDeclaration.prototype=Object.create(e&&e.prototype),ClassDeclaration.prototype.constructor=ClassDeclaration,ClassDeclaration.prototype.initialise=function initialise(t){this.id?(this.name=this.id.name,this.findScope(!0).addDeclaration(this.id,"class")):this.name=this.findScope(!0).createIdentifier("defaultExport"),e.prototype.initialise.call(this,t)},ClassDeclaration.prototype.transpile=function transpile(e,t){if(t.classes){this.superClass||deindent(this.body,e);var n=this.superClass&&(this.superClass.name||"superclass"),r=this.getIndentation(),i=r+e.getIndentString(),a="ExportDefaultDeclaration"===this.parent.type;a&&e.remove(this.parent.start,this.start);var o=this.start;this.id?(e.overwrite(o,this.id.start,"var "),o=this.id.end):e.prependLeft(o,"var "+this.name),this.superClass?this.superClass.end===this.body.start?(e.remove(o,this.superClass.start),e.appendLeft(o," = (function ("+n+") {\n"+i)):(e.overwrite(o,this.superClass.start," = "),e.overwrite(this.superClass.end,this.body.start,"(function ("+n+") {\n"+i)):o===this.body.start?e.appendLeft(o," = "):e.overwrite(o,this.body.start," = "),this.body.transpile(e,t,!!this.superClass,n);var s=a?"\n\n"+r+"export default "+this.name+";":"";this.superClass?(e.appendLeft(this.end,"\n\n"+i+"return "+this.name+";\n"+r+"}("),e.move(this.superClass.start,this.superClass.end,this.end),e.prependRight(this.end,"));"+s)):s&&e.prependRight(this.end,s)}else this.body.transpile(e,t,!1,null)},ClassDeclaration}(d),E=function(e){function ClassExpression(){e.apply(this,arguments)}return e&&(ClassExpression.__proto__=e),ClassExpression.prototype=Object.create(e&&e.prototype),ClassExpression.prototype.constructor=ClassExpression,ClassExpression.prototype.initialise=function initialise(t){this.name=(this.id?this.id.name:"VariableDeclarator"===this.parent.type?this.parent.id.name:"AssignmentExpression"!==this.parent.type?null:"Identifier"===this.parent.left.type?this.parent.left.name:"MemberExpression"===this.parent.left.type?this.parent.left.property.name:null)||this.findScope(!0).createIdentifier("anonymous"),e.prototype.initialise.call(this,t)},ClassExpression.prototype.transpile=function transpile(e,t){if(t.classes){var n=this.superClass&&(this.superClass.name||"superclass"),r=this.getIndentation(),i=r+e.getIndentString();this.superClass?(e.remove(this.start,this.superClass.start),e.remove(this.superClass.end,this.body.start),e.appendLeft(this.start,"(function ("+n+") {\n"+i)):e.overwrite(this.start,this.body.start,"(function () {\n"+i),this.body.transpile(e,t,!0,n);var a="\n\n"+i+"return "+this.name+";\n"+r+"}(";this.superClass?(e.appendLeft(this.end,a),e.move(this.superClass.start,this.superClass.end,this.end),e.prependRight(this.end,"))")):e.appendLeft(this.end,"\n\n"+i+"return "+this.name+";\n"+r+"}())")}else this.body.transpile(e,t,!1)},ClassExpression}(d),P=function(e){function ContinueStatement(){e.apply(this,arguments)}return e&&(ContinueStatement.__proto__=e),ContinueStatement.prototype=Object.create(e&&e.prototype),ContinueStatement.prototype.constructor=ContinueStatement,ContinueStatement.prototype.transpile=function transpile(e){if(this.findNearest(x).shouldRewriteAsFunction){if(this.label)throw new h("Labels are not currently supported in a loop with locally-scoped variables",this);e.overwrite(this.start,this.start+8,"return")}},ContinueStatement}(d),$=function(e){function ExportDefaultDeclaration(){e.apply(this,arguments)}return e&&(ExportDefaultDeclaration.__proto__=e),ExportDefaultDeclaration.prototype=Object.create(e&&e.prototype),ExportDefaultDeclaration.prototype.constructor=ExportDefaultDeclaration,ExportDefaultDeclaration.prototype.initialise=function initialise(t){if(t.moduleExport)throw new h("export is not supported",this);e.prototype.initialise.call(this,t)},ExportDefaultDeclaration}(d),O=function(e){function ExportNamedDeclaration(){e.apply(this,arguments)}return e&&(ExportNamedDeclaration.__proto__=e),ExportNamedDeclaration.prototype=Object.create(e&&e.prototype),ExportNamedDeclaration.prototype.constructor=ExportNamedDeclaration,ExportNamedDeclaration.prototype.initialise=function initialise(t){if(t.moduleExport)throw new h("export is not supported",this);e.prototype.initialise.call(this,t)},ExportNamedDeclaration}(d),T=function(e){function LoopStatement(){e.apply(this,arguments)}return e&&(LoopStatement.__proto__=e),LoopStatement.prototype=Object.create(e&&e.prototype),LoopStatement.prototype.constructor=LoopStatement,LoopStatement.prototype.findScope=function findScope(e){return e||!this.createdScope?this.parent.findScope(e):this.body.scope},LoopStatement.prototype.initialise=function initialise(t){if(this.body.createScope(),this.createdScope=!0,this.reassigned=Object.create(null),this.aliases=Object.create(null),e.prototype.initialise.call(this,t),t.letConst)for(var n=Object.keys(this.body.scope.declarations),r=n.length;r--;){for(var i=n[r],a=this.body.scope.declarations[i],o=a.instances.length;o--;){var s=a.instances[o].findNearest(/Function/);if(s&&s.depth>this.depth){this.shouldRewriteAsFunction=!0;break}}if(this.shouldRewriteAsFunction)break}},LoopStatement.prototype.transpile=function transpile(t,n){var r="ForOfStatement"!=this.type&&("BlockStatement"!==this.body.type||"BlockStatement"===this.body.type&&this.body.synthetic);if(this.shouldRewriteAsFunction){var i=this.getIndentation(),a=i+t.getIndentString(),o=this.args?" "+this.args.join(", ")+" ":"",s=this.params?" "+this.params.join(", ")+" ":"",u=this.findScope(!0),l=u.createIdentifier("loop"),c="var "+l+" = function ("+s+") "+(this.body.synthetic?"{\n"+i+t.getIndentString():""),d=(this.body.synthetic?"\n"+i+"}":"")+";\n\n"+i;if(t.prependRight(this.body.start,c),t.appendLeft(this.body.end,d),t.move(this.start,this.body.start,this.body.end),this.canBreak||this.canReturn){var p=u.createIdentifier("returned"),f="{\n"+a+"var "+p+" = "+l+"("+o+");\n";this.canBreak&&(f+="\n"+a+"if ( "+p+" === 'break' ) break;"),this.canReturn&&(f+="\n"+a+"if ( "+p+" ) return "+p+".v;"),f+="\n"+i+"}",t.prependRight(this.body.end,f)}else{var h=l+"("+o+");";"DoWhileStatement"===this.type?t.overwrite(this.start,this.body.start,"do {\n"+a+h+"\n"+i+"}"):t.prependRight(this.body.end,h)}}else r&&(t.appendLeft(this.body.start,"{ "),t.prependRight(this.body.end," }"));e.prototype.transpile.call(this,t,n)},LoopStatement}(d),R=function(e){function ForStatement(){e.apply(this,arguments)}return e&&(ForStatement.__proto__=e),ForStatement.prototype=Object.create(e&&e.prototype),ForStatement.prototype.constructor=ForStatement,ForStatement.prototype.findScope=function findScope(e){return e||!this.createdScope?this.parent.findScope(e):this.body.scope},ForStatement.prototype.transpile=function transpile(t,n){var r=this,i=this.getIndentation()+t.getIndentString();if(this.shouldRewriteAsFunction){var a="VariableDeclaration"===this.init.type?this.init.declarations.map(function(e){return extractNames(e.id)}):[],o=this.aliases;this.args=a.map(function(e){return e in r.aliases?r.aliases[e].outer:e}),this.params=a.map(function(e){return e in r.aliases?r.aliases[e].inner:e});var s=Object.keys(this.reassigned).map(function(e){return o[e].outer+" = "+o[e].inner+";"});if(s.length)if(this.body.synthetic)t.appendLeft(this.body.body[0].end,"; "+s.join(" "));else{var u=this.body.body[this.body.body.length-1];t.appendLeft(u.end,"\n\n"+i+s.join("\n"+i))}}e.prototype.transpile.call(this,t,n)},ForStatement}(T),A=function(e){function ForInStatement(){e.apply(this,arguments)}return e&&(ForInStatement.__proto__=e),ForInStatement.prototype=Object.create(e&&e.prototype),ForInStatement.prototype.constructor=ForInStatement,ForInStatement.prototype.findScope=function findScope(e){return e||!this.createdScope?this.parent.findScope(e):this.body.scope},ForInStatement.prototype.transpile=function transpile(t,n){var r=this,i="VariableDeclaration"===this.left.type;if(this.shouldRewriteAsFunction){var a=i?this.left.declarations.map(function(e){return extractNames(e.id)}):[];this.args=a.map(function(e){return e in r.aliases?r.aliases[e].outer:e}),this.params=a.map(function(e){return e in r.aliases?r.aliases[e].inner:e})}e.prototype.transpile.call(this,t,n);var o=i?this.left.declarations[0].id:this.left;"Identifier"!==o.type&&this.destructurePattern(t,o,i)},ForInStatement.prototype.destructurePattern=function destructurePattern(e,t,n){var r=this.findScope(!0),i=this.getIndentation()+e.getIndentString(),a=r.createIdentifier("ref"),o=this.body.body.length?this.body.body[0].start:this.body.start+1;e.move(t.start,t.end,o),e.prependRight(t.end,n?a:"var "+a);var s=[];destructure(e,function(e){return r.createIdentifier(e)},function(e){var t=e.name;return r.resolveName(t)},t,a,!1,s);var u=";\n"+i;s.forEach(function(e,t){t===s.length-1&&(u=";\n\n"+i),e(o,"",u)})},ForInStatement}(T),I=function(e){function ForOfStatement(){e.apply(this,arguments)}return e&&(ForOfStatement.__proto__=e),ForOfStatement.prototype=Object.create(e&&e.prototype),ForOfStatement.prototype.constructor=ForOfStatement,ForOfStatement.prototype.initialise=function initialise(t){if(t.forOf&&!t.dangerousForOf)throw new h("for...of statements are not supported. Use `transforms: { forOf: false }` to skip transformation and disable this error, or `transforms: { dangerousForOf: true }` if you know what you're doing",this);e.prototype.initialise.call(this,t)},ForOfStatement.prototype.transpile=function transpile(t,n){if(e.prototype.transpile.call(this,t,n),n.dangerousForOf)if(this.body.body[0]){var r=this.findScope(!0),i=this.getIndentation(),a=i+t.getIndentString(),o=r.createIdentifier("i"),s=r.createIdentifier("list");this.body.synthetic&&(t.prependRight(this.left.start,"{\n"+a),t.appendLeft(this.body.body[0].end,"\n"+i+"}"));var u=this.body.body[0].start;t.remove(this.left.end,this.right.start),t.move(this.left.start,this.left.end,u),t.prependRight(this.right.start,"var "+o+" = 0, "+s+" = "),t.appendLeft(this.right.end,"; "+o+" < "+s+".length; "+o+" += 1");var l="VariableDeclaration"===this.left.type,c=l?this.left.declarations[0].id:this.left;if("Identifier"!==c.type){var d=[],p=r.createIdentifier("ref");destructure(t,function(e){return r.createIdentifier(e)},function(e){var t=e.name;return r.resolveName(t)},c,p,!l,d);var f=";\n"+a;d.forEach(function(e,t){t===d.length-1&&(f=";\n\n"+a),e(u,"",f)}),l?(t.appendLeft(this.left.start+this.left.kind.length+1,p),t.appendLeft(this.left.end," = "+s+"["+o+"];\n"+a)):t.appendLeft(this.left.end,"var "+p+" = "+s+"["+o+"];\n"+a)}else t.appendLeft(this.left.end," = "+s+"["+o+"];\n\n"+a)}else"VariableDeclaration"===this.left.type&&"var"===this.left.kind?(t.remove(this.start,this.left.start),t.appendLeft(this.left.end,";"),t.remove(this.left.end,this.end)):t.remove(this.start,this.end)},ForOfStatement}(T),D=function(e){function FunctionDeclaration(){e.apply(this,arguments)}return e&&(FunctionDeclaration.__proto__=e),FunctionDeclaration.prototype=Object.create(e&&e.prototype),FunctionDeclaration.prototype.constructor=FunctionDeclaration,FunctionDeclaration.prototype.initialise=function initialise(t){if(this.generator&&t.generator)throw new h("Generators are not supported",this);this.body.createScope(),this.id&&this.findScope(!0).addDeclaration(this.id,"function"),e.prototype.initialise.call(this,t)},FunctionDeclaration.prototype.transpile=function transpile(t,n){e.prototype.transpile.call(this,t,n),n.trailingFunctionCommas&&this.params.length&&removeTrailingComma(t,this.params[this.params.length-1].end)},FunctionDeclaration}(d),j=function(e){function FunctionExpression(){e.apply(this,arguments)}return e&&(FunctionExpression.__proto__=e),FunctionExpression.prototype=Object.create(e&&e.prototype),FunctionExpression.prototype.constructor=FunctionExpression,FunctionExpression.prototype.initialise=function initialise(t){if(this.generator&&t.generator)throw new h("Generators are not supported",this);this.body.createScope(),this.id&&this.body.scope.addDeclaration(this.id,"function"),e.prototype.initialise.call(this,t);var n,r=this.parent;if(t.conciseMethodProperty&&"Property"===r.type&&"init"===r.kind&&r.method&&"Identifier"===r.key.type?n=r.key.name:t.classes&&"MethodDefinition"===r.type&&"method"===r.kind&&"Identifier"===r.key.type?n=r.key.name:this.id&&"Identifier"===this.id.type&&(n=this.id.alias||this.id.name),n)for(var i=0,a=this.params;it.depth&&(this.alias=t.getArgumentsAlias()),r&&r.body.contains(this)&&r.depth>t.depth&&(this.alias=t.getArgumentsAlias())}this.findScope(!1).addReference(this)}},Identifier.prototype.transpile=function transpile(e){this.alias&&e.overwrite(this.start,this.end,this.alias,{storeName:!0,contentOnly:!0})},Identifier}(d),L=function(e){function IfStatement(){e.apply(this,arguments)}return e&&(IfStatement.__proto__=e),IfStatement.prototype=Object.create(e&&e.prototype),IfStatement.prototype.constructor=IfStatement,IfStatement.prototype.initialise=function initialise(t){e.prototype.initialise.call(this,t)},IfStatement.prototype.transpile=function transpile(t,n){("BlockStatement"!==this.consequent.type||"BlockStatement"===this.consequent.type&&this.consequent.synthetic)&&(t.appendLeft(this.consequent.start,"{ "),t.prependRight(this.consequent.end," }")),this.alternate&&"IfStatement"!==this.alternate.type&&("BlockStatement"!==this.alternate.type||"BlockStatement"===this.alternate.type&&this.alternate.synthetic)&&(t.appendLeft(this.alternate.start,"{ "),t.prependRight(this.alternate.end," }")),e.prototype.transpile.call(this,t,n)},IfStatement}(d),N=function(e){function ImportDeclaration(){e.apply(this,arguments)}return e&&(ImportDeclaration.__proto__=e),ImportDeclaration.prototype=Object.create(e&&e.prototype),ImportDeclaration.prototype.constructor=ImportDeclaration,ImportDeclaration.prototype.initialise=function initialise(t){if(t.moduleImport)throw new h("import is not supported",this);e.prototype.initialise.call(this,t)},ImportDeclaration}(d),F=function(e){function ImportDefaultSpecifier(){e.apply(this,arguments)}return e&&(ImportDefaultSpecifier.__proto__=e),ImportDefaultSpecifier.prototype=Object.create(e&&e.prototype),ImportDefaultSpecifier.prototype.constructor=ImportDefaultSpecifier,ImportDefaultSpecifier.prototype.initialise=function initialise(t){this.findScope(!0).addDeclaration(this.local,"import"),e.prototype.initialise.call(this,t)},ImportDefaultSpecifier}(d),B=function(e){function ImportSpecifier(){e.apply(this,arguments)}return e&&(ImportSpecifier.__proto__=e),ImportSpecifier.prototype=Object.create(e&&e.prototype),ImportSpecifier.prototype.constructor=ImportSpecifier,ImportSpecifier.prototype.initialise=function initialise(t){this.findScope(!0).addDeclaration(this.local,"import"),e.prototype.initialise.call(this,t)},ImportSpecifier}(d),V=function hasDashes(e){return/-/.test(e)},U=function formatKey(e){return V(e)?"'"+e+"'":e},q=function formatVal(e){return e?"":"true"},z=function(e){function JSXAttribute(){e.apply(this,arguments)}return e&&(JSXAttribute.__proto__=e),JSXAttribute.prototype=Object.create(e&&e.prototype),JSXAttribute.prototype.constructor=JSXAttribute,JSXAttribute.prototype.transpile=function transpile(t,n){var r=this.name,i=r.start,a=r.name,o=this.value?this.value.start:this.name.end;t.overwrite(i,o,U(a)+": "+q(this.value)),e.prototype.transpile.call(this,t,n)},JSXAttribute}(d);var W=function(e){function JSXClosingElement(){e.apply(this,arguments)}return e&&(JSXClosingElement.__proto__=e),JSXClosingElement.prototype=Object.create(e&&e.prototype),JSXClosingElement.prototype.constructor=JSXClosingElement,JSXClosingElement.prototype.transpile=function transpile(e){var t,n=!0,r=this.parent.children[this.parent.children.length-1];(r&&("JSXText"===(t=r).type&&!/\S/.test(t.value)&&/\n/.test(t.value))||this.parent.openingElement.attributes.length)&&(n=!1),e.overwrite(this.start,this.end,n?" )":")")},JSXClosingElement}(d);var H=function(e){function JSXClosingFragment(){e.apply(this,arguments)}return e&&(JSXClosingFragment.__proto__=e),JSXClosingFragment.prototype=Object.create(e&&e.prototype),JSXClosingFragment.prototype.constructor=JSXClosingFragment,JSXClosingFragment.prototype.transpile=function transpile(e){var t,n=!0,r=this.parent.children[this.parent.children.length-1];r&&("JSXText"===(t=r).type&&!/\S/.test(t.value)&&/\n/.test(t.value))&&(n=!1),e.overwrite(this.start,this.end,n?" )":")")},JSXClosingFragment}(d);function normalise(e,t){return e=e.replace(/\u00a0/g," "),t&&/\n/.test(e)&&(e=e.replace(/\s+$/,"")),e=e.replace(/^\n\r?\s+/,"").replace(/\s*\n\r?\s*/gm," "),JSON.stringify(e)}var G=function(e){function JSXElement(){e.apply(this,arguments)}return e&&(JSXElement.__proto__=e),JSXElement.prototype=Object.create(e&&e.prototype),JSXElement.prototype.constructor=JSXElement,JSXElement.prototype.transpile=function transpile(t,n){e.prototype.transpile.call(this,t,n);var r=this.children.filter(function(e){return"JSXText"!==e.type||(/\S/.test(e.raw)||!/\n/.test(e.raw))});if(r.length){var i,a=this.openingElement.end;for(i=0;i0&&(c.start===a?t.prependRight(a,", "):t.overwrite(a,c.start,", ")),l&&"JSXSpreadAttribute"!==c.type){var d=this.attributes[o-1],p=this.attributes[o+1];d&&"JSXSpreadAttribute"!==d.type||t.prependRight(c.start,"{ "),p&&"JSXSpreadAttribute"!==p.type||t.appendLeft(c.end," }")}a=c.end}if(l)if(1===i)u=r?"',":",";else{if(!this.program.options.objectAssign)throw new h("Mixed JSX attributes ending in spread requires specified objectAssign option with 'Object.assign' or polyfill helper.",this);u=r?"', "+this.program.options.objectAssign+"({},":", "+this.program.options.objectAssign+"({},",s=")"}else u=r?"', {":", {",s=" }";t.prependRight(this.name.end,u),s&&t.appendLeft(this.attributes[i-1].end,s)}else t.appendLeft(this.name.end,r?"', null":", null"),a=this.name.end;this.selfClosing?t.overwrite(a,this.end,this.attributes.length?")":" )"):t.remove(a,this.end)},JSXOpeningElement}(d),Z=function(e){function JSXOpeningFragment(){e.apply(this,arguments)}return e&&(JSXOpeningFragment.__proto__=e),JSXOpeningFragment.prototype=Object.create(e&&e.prototype),JSXOpeningFragment.prototype.constructor=JSXOpeningFragment,JSXOpeningFragment.prototype.transpile=function transpile(e){e.overwrite(this.start,this.end,this.program.jsx+"( React.Fragment, null")},JSXOpeningFragment}(d),X=function(e){function JSXSpreadAttribute(){e.apply(this,arguments)}return e&&(JSXSpreadAttribute.__proto__=e),JSXSpreadAttribute.prototype=Object.create(e&&e.prototype),JSXSpreadAttribute.prototype.constructor=JSXSpreadAttribute,JSXSpreadAttribute.prototype.transpile=function transpile(t,n){t.remove(this.start,this.argument.start),t.remove(this.argument.end,this.end),e.prototype.transpile.call(this,t,n)},JSXSpreadAttribute}(d),Q=createCommonjsModule(function(e,t){
/*!
* regjsgen 0.3.0
* Copyright 2014-2016 Benjamin Tan
@@ -58,4 +58,4 @@ var r;r=function(){"use strict";function isFunction(e){return"function"==typeof
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
-Object.defineProperty(n,"__esModule",{value:!0});var i=null,a=!1,o=3,s=-1,l=-1,c=!1,d=!1;function p(){if(!c){var e=i.expirationTime;d?S():d=!0,k(t,e)}}function u(){var e=i,t=i.next;if(i===t)i=null;else{var n=i.previous;i=n.next=t,t.previous=n}e.next=e.previous=null,n=e.callback,t=e.expirationTime,e=e.priorityLevel;var r=o,a=l;o=e,l=t;try{var s=n()}finally{o=r,l=a}if("function"==typeof s)if(s={callback:s,priorityLevel:e,expirationTime:t,next:null,previous:null},null===i)i=s.next=s.previous=s;else{n=null,e=i;do{if(e.expirationTime>=t){n=e;break}e=e.next}while(e!==i);null===n?n=i:n===i&&(i=s,p()),(t=n.previous).next=n.previous=s,s.next=n,s.previous=t}}function v(){if(-1===s&&null!==i&&1===i.priorityLevel){c=!0;try{do{u()}while(null!==i&&1===i.priorityLevel)}finally{c=!1,null!==i?p():d=!1}}}function t(e){c=!0;var t=a;a=e;try{if(e)for(;null!==i;){var r=n.unstable_now();if(!(i.expirationTime<=r))break;do{u()}while(null!==i&&i.expirationTime<=r)}else if(null!==i)do{u()}while(null!==i&&!C())}finally{c=!1,a=t,null!==i?p():d=!1,v()}}var f,h,m=Date,g="function"==typeof setTimeout?setTimeout:void 0,y="function"==typeof clearTimeout?clearTimeout:void 0,b="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,_="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function E(e){f=b(function(t){y(h),e(t)}),h=g(function(){_(f),e(n.unstable_now())},100)}if("object"==typeof performance&&"function"==typeof performance.now){var x=performance;n.unstable_now=function(){return x.now()}}else n.unstable_now=function(){return m.now()};var k,S,C,P=null;if("undefined"!=typeof window?P=window:void 0!==e&&(P=e),P&&P._schedMock){var $=P._schedMock;k=$[0],S=$[1],C=$[2],n.unstable_now=$[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var O=null,T=function J(e){if(null!==O)try{O(e)}finally{O=null}};k=function r(e){null!==O?setTimeout(k,0,e):(O=e,setTimeout(T,0,!1))},S=function q(){O=null},C=function w(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof b&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof _&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var R=null,A=!1,I=-1,D=!1,j=!1,M=0,L=33,N=33;C=function w(){return M<=n.unstable_now()};var F=new MessageChannel,B=F.port2;F.port1.onmessage=function(){A=!1;var e=R,t=I;R=null,I=-1;var r=n.unstable_now(),i=!1;if(0>=M-r){if(!(-1!==t&&t<=r))return D||(D=!0,E(U)),R=e,void(I=t);i=!0}if(null!==e){j=!0;try{e(i)}finally{j=!1}}};var U=function V(e){if(null!==R){E(V);var t=e-M+N;tt&&(t=8),N=tt?B.postMessage(void 0):D||(D=!0,E(U))},S=function q(){R=null,A=!1,I=-1}}n.unstable_ImmediatePriority=1,n.unstable_UserBlockingPriority=2,n.unstable_NormalPriority=3,n.unstable_IdlePriority=5,n.unstable_LowPriority=4,n.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=o,i=s;o=e,s=n.unstable_now();try{return t()}finally{o=r,s=i,v()}},n.unstable_scheduleCallback=function(e,t){var r=-1!==s?s:n.unstable_now();if("object"==typeof t&&null!==t&&"number"==typeof t.timeout)t=r+t.timeout;else switch(o){case 1:t=r+-1;break;case 2:t=r+250;break;case 5:t=r+1073741823;break;case 4:t=r+1e4;break;default:t=r+5e3}if(e={callback:e,priorityLevel:o,expirationTime:t,next:null,previous:null},null===i)i=e.next=e.previous=e,p();else{r=null;var a=i;do{if(a.expirationTime>t){r=a;break}a=a.next}while(a!==i);null===r?r=i:r===i&&(i=e,p()),(t=r.previous).next=r.previous=e,e.next=r,e.previous=t}return e},n.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)i=null;else{e===i&&(i=t);var n=e.previous;n.next=t,t.previous=n}e.next=e.previous=null}},n.unstable_wrapCallback=function(e){var t=o;return function(){var r=o,i=s;o=t,s=n.unstable_now();try{return e.apply(this,arguments)}finally{o=r,s=i,v()}}},n.unstable_getCurrentPriorityLevel=function(){return o},n.unstable_shouldYield=function(){return!a&&(null!==i&&i.expirationTime=l?e?"":void 0:(a=s.charCodeAt(u))<55296||a>56319||u+1===l||(o=s.charCodeAt(u+1))<56320||o>57343?e?s.charAt(u):a:e?s.slice(u,u+2):o-56320+(a-55296<<10)+65536}}},function(e,t,n){var r=n(146),i=n(211),a=n(213),o=n(405),s=n(32),u=n(218),l=n(217);e.exports=function baseMerge(e,t,n,c,d){e!==t&&a(t,function(a,u){if(s(a))d||(d=new r),o(e,t,u,n,baseMerge,c,d);else{var p=c?c(l(e,u),a,u+"",e,t,d):void 0;void 0===p&&(p=a),i(e,u,p)}},u)}},function(e,t){e.exports=function listCacheClear(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(103),i=Array.prototype.splice;e.exports=function listCacheDelete(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))}},function(e,t,n){var r=n(103);e.exports=function listCacheGet(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(103);e.exports=function listCacheHas(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(103);e.exports=function listCacheSet(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},function(e,t,n){var r=n(102);e.exports=function stackClear(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function stackDelete(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function stackGet(e){return this.__data__.get(e)}},function(e,t){e.exports=function stackHas(e){return this.__data__.has(e)}},function(e,t,n){var r=n(102),i=n(147),a=n(149),o=200;e.exports=function stackSet(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(a--,o):void 0,s&&i(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);++r0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(79),i=n(46),a=n(152),o=n(32);e.exports=function isIterateeCall(e,t,n){if(!o(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&a(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},function(e,t){Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/[a-z0-9_]+(?=\()/i,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/}},function(e,t){Prism.languages.markup={comment://,prolog:/<\?[\s\S]+?\?>/,doctype://i,cdata://i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/i,inside:{punctuation:[/^=/,{pattern:/(^|[^\\])["']/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/?[\da-z]{1,8};/i},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),Prism.languages.xml=Prism.languages.markup,Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup},function(e,t){Prism.languages.javascript=Prism.languages.extend("clike",{keyword:/\b(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|var|void|while|with|yield)\b/,number:/\b(?:0[xX][\dA-Fa-f]+|0[bB][01]+|0[oO][0-7]+|NaN|Infinity)\b|(?:\b\d+\.?\d*|\B\.\d+)(?:[Ee][+-]?\d+)?/,function:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*\()/i,operator:/-[-=]?|\+[+=]?|!=?=?|<=?|>>?>?=?|=(?:==?|>)?|&[&=]?|\|[|=]?|\*\*?=?|\/=?|~|\^=?|%=?|\?|\.{3}/}),Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(\[[^\]\r\n]+]|\\.|[^\/\\\[\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})\]]))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=\s*(?:function\b|(?:\([^()]*\)|[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/i,alias:"function"},constant:/\b[A-Z][A-Z\d_]*\b/}),Prism.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\${[^}]+}|[^\\`])*`/,greedy:!0,inside:{interpolation:{pattern:/\${[^}]+}/,inside:{"interpolation-punctuation":{pattern:/^\${|}$/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}}}),Prism.languages.javascript["template-string"].inside.interpolation.inside.rest=Prism.languages.javascript,Prism.languages.markup&&Prism.languages.insertBefore("markup","tag",{script:{pattern:/(