@logrocket/react-native 0.22.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -37,10 +37,10 @@ Now you can build your app with [EAS Build](https://docs.expo.io/build/introduct
37
37
  | View Redaction | :heavy_check_mark: | :heavy_check_mark: |
38
38
  | Touch Events | :heavy_check_mark: | :heavy_check_mark: |
39
39
  | Identify and User Traits | :heavy_check_mark: | :heavy_check_mark: |
40
- | Network Requests & Responses | :heavy_check_mark: | :x: |
40
+ | Network Requests & Responses | :heavy_check_mark: | :heavy_check_mark: |
41
41
  | Console Logs | :heavy_check_mark: | :heavy_check_mark: |
42
42
  | Exceptions | :heavy_check_mark: | :heavy_check_mark: |
43
- | Custom Events | :heavy_check_mark: | :x: |
43
+ | Custom Events | :heavy_check_mark: | :heavy_check_mark: |
44
44
  | getSessionURL | :heavy_check_mark: | :heavy_check_mark: |
45
45
  | [Redux middleware][redux-middleware] | :heavy_check_mark: | :x: |
46
46
  | Connection quality config | :heavy_check_mark: | :x: |
@@ -14,7 +14,7 @@ def DEFAULT_COMPILE_SDK_VERSION = 28
14
14
  def DEFAULT_BUILD_TOOLS_VERSION = '28.0.3'
15
15
  def DEFAULT_MIN_SDK_VERSION = 19
16
16
  def DEFAULT_TARGET_SDK_VERSION = 28
17
- def SDK_VERSION = "0.22.0"
17
+ def SDK_VERSION = "0.23.0"
18
18
 
19
19
  def PACKAGE_ROOT_DIR = rootProject.name == 'LogRocket SDK' ? "$rootDir/../packages/@logrocket/react-native" : "$rootDir/..";
20
20
 
@@ -1,7 +1,12 @@
1
1
  package com.logrocket.plugins.react;
2
2
 
3
+ import android.content.BroadcastReceiver;
4
+ import android.content.Context;
5
+ import android.content.Intent;
6
+ import android.content.IntentFilter;
3
7
  import androidx.annotation.Keep;
4
8
  import androidx.annotation.NonNull;
9
+ import com.facebook.react.bridge.Arguments;
5
10
  import com.facebook.react.bridge.Callback;
6
11
  import com.facebook.react.bridge.Promise;
7
12
  import com.facebook.react.bridge.ReactApplicationContext;
@@ -9,6 +14,8 @@ import com.facebook.react.bridge.ReactContextBaseJavaModule;
9
14
  import com.facebook.react.bridge.ReactMethod;
10
15
  import com.facebook.react.bridge.ReadableArray;
11
16
  import com.facebook.react.bridge.ReadableMap;
17
+ import com.facebook.react.bridge.WritableMap;
18
+ import com.facebook.react.modules.core.DeviceEventManagerModule;
12
19
  import com.logrocket.core.CustomEventBuilder;
13
20
  import com.logrocket.core.EventType;
14
21
  import com.logrocket.core.IdentifyHelper;
@@ -40,6 +47,12 @@ public class LogRocketNativeModule extends ReactContextBaseJavaModule {
40
47
  public LogRocketNativeModule(ReactApplicationContext reactContext) {
41
48
  super(reactContext);
42
49
  this.reactContext = reactContext;
50
+ LogRocketReceiver receiver = new LogRocketReceiver(this.reactContext);
51
+
52
+ IntentFilter filter = new IntentFilter();
53
+ filter.addAction("LogRocketSDK.Error");
54
+
55
+ this.reactContext.registerReceiver(receiver, filter);
43
56
  }
44
57
 
45
58
  @NonNull
@@ -48,6 +61,12 @@ public class LogRocketNativeModule extends ReactContextBaseJavaModule {
48
61
  return "LogRocketNativeModule";
49
62
  }
50
63
 
64
+ @ReactMethod
65
+ public void addListener(String eventName) {}
66
+
67
+ @ReactMethod
68
+ public void removeListeners(Integer count) {}
69
+
51
70
  @Keep
52
71
  @ReactMethod
53
72
  public void initWithConfig(String appID, ReadableMap config, Promise promise) {
@@ -391,4 +410,38 @@ public class LogRocketNativeModule extends ReactContextBaseJavaModule {
391
410
 
392
411
  return formattedMap;
393
412
  }
413
+
414
+ class LogRocketReceiver extends BroadcastReceiver {
415
+ private final ReactApplicationContext reactContext;
416
+ private final Logger logger = new TaggedLogger("logrocket-receiver");
417
+
418
+ public LogRocketReceiver(ReactApplicationContext reactContext) {
419
+ this.reactContext = reactContext;
420
+ }
421
+
422
+ @Override
423
+ public void onReceive(Context context, Intent intent) {
424
+ try {
425
+ String errorMessage = intent.getStringExtra("errorMessage");
426
+ boolean shouldDisableAndFreeMemory =
427
+ intent.getBooleanExtra("shouldDisableAndFreeMemory", false);
428
+ boolean shouldWarnAboutReduxSize =
429
+ intent.getBooleanExtra("shouldWarnAboutReduxSize", false);
430
+ WritableMap params = Arguments.createMap();
431
+ if (errorMessage.length() > 0) {
432
+ params.putString("errorMessage", errorMessage);
433
+ }
434
+
435
+ params.putBoolean("shouldDisableAndFreeMemory", shouldDisableAndFreeMemory);
436
+ params.putBoolean("shouldWarnAboutReduxSize", shouldWarnAboutReduxSize);
437
+
438
+ this.reactContext
439
+ .getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class)
440
+ .emit("LogRocketSDKOnError", params);
441
+ } catch (Throwable th) {
442
+ this.logger.error("Error while sending event from Native Module", th);
443
+ TelemetryReporter.sendErrorTelemetry(th);
444
+ }
445
+ }
446
+ }
394
447
  }
package/dist/build.js CHANGED
@@ -1,4 +1,4 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.LogRocketReactNative=e():t.LogRocketReactNative=e()}(window,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=75)}([function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){var n=r(57),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},function(t,e){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){function r(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(t.exports=r=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=r=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),r(e)}t.exports=r,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){var r=Array.isArray;t.exports=r},function(t,e,r){var n=r(155),o=r(160);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){var n=r(12),o=r(156),i=r(157),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,r){"use strict";(function(n){var o=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(r(3)),a=-2,u=Object.create(null),s=function(t,e){function r(r){if("function"!=typeof e[r])throw new Error("second argument to ARSON.registerType("+JSON.stringify(t)+", ...) must be an object with a "+r+" method")}r("deconstruct"),r("reconstruct"),u[t]=e},f=Object.prototype.toString;"function"==typeof n&&"function"==typeof n.isBuffer&&s("Buffer",{deconstruct:function(t){return n.isBuffer(t)&&[t.toString("base64"),"base64"]},reconstruct:function(t){return t&&n.from(t[0],t[1])}}),s("Date",{deconstruct:function(t){return"[object Date]"===f.call(t)&&[t.toJSON()]},reconstruct:function(t){return t&&new Date(t[0])}}),s("RegExp",{deconstruct:function(t){if("[object RegExp]"===f.call(t)){var e=[t.source],r="";return t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.global&&(r+="g"),r&&e.push(r),e}},reconstruct:function(t){return t&&new RegExp(t[0],t[1])}}),"function"==typeof Set&&"function"==typeof Array.from&&s("Set",{deconstruct:function(t){if("[object Set]"===f.call(t))return Array.from(t)},reconstruct:function(t){if(!t)return new Set;t.forEach(this.add,this)}}),"function"==typeof Map&&"function"==typeof Array.from&&s("Map",{deconstruct:function(t){if("[object Map]"===f.call(t))return Array.from(t)},reconstruct:function(t){if(!t)return new Map;t.forEach((function(t){this.set(t[0],t[1])}),this)}});var c={encode:function(t){return JSON.stringify(function(t){var e=[],r="function"==typeof Map&&new Map;function n(t){switch((0,i.default)(t)){case"undefined":return-1;case"number":if(isNaN(t))return-3;if(!isFinite(t))return t<0?-5:-4}var n;return r?void 0===(n=r.get(t))&&(n=e.push(t)-1,r.set(t,n)):(n=e.indexOf(t))<0&&(n=e.push(t)-1),n}function o(t){var e=t;if(t&&"object"===(0,i.default)(t)){var r=Object.keys(t);if(function(t){if(t&&"object"===(0,i.default)(t)){return(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__)===Object.prototype}return!1}(t))e={};else{if(!Array.isArray(t)){for(var o in u){var a=u[o].deconstruct(t);if(a){for(f=0;f<a.length;++f)a[f]=n(a[f]);return a.unshift(o),a}}return{}.toString.call(t)}e=Array(t.length);var s=t.length;if(s>r.length)for(var f=0;f<s;++f)e[f]=-2}r.forEach((function(r){e[r]=n(t[r])}))}return e}var a=n(t);if(a<0)return a;for(var s=[],f=0;f<e.length;++f)s[f]=o(e[f]);return s}(t))},decode:function(t){return function(t){if("number"==typeof t&&t<0)return n(t);var e=new Array(t.length);function r(t){return t in e?e[t]:e[t]=n(t)}function n(e){if(e<0){if(-1===e)return;if(e===a)return;if(-3===e)return NaN;if(-4===e)return 1/0;if(-5===e)return-1/0;throw new Error("invalid ARSON index: "+e)}var n=t[e];if(n&&"object"===(0,i.default)(n)){if(Array.isArray(n)){var f=n[0];if("string"==typeof f&&f in u){var c=u[f].reconstruct,l=c();return l&&o.push({reconstruct:c,empty:l,argIndexes:n.slice(1)}),t[e]=l||c(n.slice(1).map(r))}}s.push(n)}return n}var o=[],s=[];return t.forEach((function(t,e){r(e)})),o.forEach((function(t){t.args=t.argIndexes.map(r)})),s.forEach((function(e){Object.keys(e).forEach((function(n){var o=e[n];if("number"==typeof o)if(o<0){if(o===a)return void delete e[n];e[n]=r(o)}else e[n]=t[o]}))})),o.forEach((function(t){t.reconstruct.call(t.empty,t.args)})),t[0]}(JSON.parse(t))}};e.default=c,t.exports=e.default}).call(this,r(104).Buffer)},function(t,e,r){var n=r(145),o=r(146),i=r(147),a=r(148),u=r(149);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},function(t,e,r){var n=r(55);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},function(t,e,r){var n=r(1).Symbol;t.exports=n},function(t,e,r){var n=r(5)(Object,"create");t.exports=n},function(t,e,r){var n=r(169);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},function(t,e,r){var n=r(7),o=r(8);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},function(t,e,r){var n=r(15);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e}},function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(null==t)return{};var r={};return Object.keys(t).forEach((function(n){r[n]=e(t[n])})),r},t.exports=e.default},function(t,e,r){var n=r(93),o=r(94),i=r(40),a=r(95);t.exports=function(t){return n(t)||o(t)||i(t)||a()},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,r){var n=t[e];return t[e]=function(){for(var t,e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];n&&(t=n.apply(this,o));return r.apply(this,o),t},function(){t[e]=n}},t.exports=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return t&&e&&t.substring(r,r+e.length)===e},t.exports=e.default},function(t,e,r){var n=r(3).default;function o(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(o=function(t){return t?r:e})(t)}t.exports=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!=typeof t)return{default:t};var r=o(e);if(r&&r.has(t))return r.get(t);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&Object.prototype.hasOwnProperty.call(t,u)){var s=a?Object.getOwnPropertyDescriptor(t,u):null;s&&(s.get||s.set)?Object.defineProperty(i,u,s):i[u]=t[u]}return i.default=t,r&&r.set(t,i),i},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";(function(r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={collectWindowErrors:!0,debug:!1},o="undefined"!=typeof window?window:void 0!==r?r:"undefined"!=typeof self?self:{},i=[].slice,a="?",u=/^(?:Uncaught (?:exception: )?)?((?:Eval|Internal|Range|Reference|Syntax|Type|URI)Error): ?(.*)$/;function s(){return"undefined"==typeof document||void 0===document.location?"":document.location.href}n.report=function(){var t,e,r=[],f=null,c=null,l=null;function p(t,e){var o=null;if(!e||n.collectWindowErrors){for(var a in r)if(r.hasOwnProperty(a))try{r[a].apply(null,[t].concat(i.call(arguments,2)))}catch(t){o=t}if(o)throw o}}function h(e,r,o,i,f){if(l)n.computeStackTrace.augmentStackTraceWithInitialElement(l,r,o,e),d();else if(f)p(n.computeStackTrace(f),!0);else{var c,h={url:r,line:o,column:i},v=void 0,g=e;if("[object String]"==={}.toString.call(e))(c=e.match(u))&&(v=c[1],g=c[2]);h.func=a,p({name:v,message:g,url:s(),stack:[h]},!0)}return!!t&&t.apply(this,arguments)}function d(){var t=l,e=f;f=null,l=null,c=null,p.apply(null,[t,!1].concat(e))}function v(t,e){var r=i.call(arguments,1);if(l){if(c===t)return;d()}var o=n.computeStackTrace(t);if(l=o,c=t,f=r,setTimeout((function(){c===t&&d()}),o.incomplete?2e3:0),!1!==e)throw t}return v.subscribe=function(n){!function(){if(e)return;t=o.onerror,o.onerror=h,e=!0}(),r.push(n)},v.unsubscribe=function(t){for(var e=r.length-1;e>=0;--e)r[e]===t&&r.splice(e,1)},v.uninstall=function(){!function(){if(!e)return;o.onerror=t,e=!1,t=void 0}(),r=[]},v}(),n.computeStackTrace=function(){function t(t){if(void 0!==t.stack&&t.stack){for(var e,r,n=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|<anonymous>).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,o=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|resource|\[native).*?)(?::(\d+))?(?::(\d+))?\s*$/i,i=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,u=t.stack.split("\n"),f=[],c=(/^(.*) is undefined$/.exec(t.message),0),l=u.length;c<l;++c){if(e=n.exec(u[c])){var p=e[2]&&-1!==e[2].indexOf("native");r={url:p?null:e[2],func:e[1]||a,args:p?[e[2]]:[],line:e[3]?+e[3]:null,column:e[4]?+e[4]:null}}else if(e=i.exec(u[c]))r={url:e[2],func:e[1]||a,args:[],line:+e[3],column:e[4]?+e[4]:null};else{if(!(e=o.exec(u[c])))continue;r={url:e[3],func:e[1]||a,args:e[2]?e[2].split(","):[],line:e[4]?+e[4]:null,column:e[5]?+e[5]:null}}!r.func&&r.line&&(r.func=a),f.push(r)}return f.length?(f[0].column||void 0===t.columnNumber||(f[0].column=t.columnNumber+1),{name:t.name,message:t.message,url:s(),stack:f}):null}}function e(t,e,r,n){var o={url:e,line:r};if(o.url&&o.line){if(t.incomplete=!1,o.func||(o.func=a),t.stack.length>0&&t.stack[0].url===o.url){if(t.stack[0].line===o.line)return!1;if(!t.stack[0].line&&t.stack[0].func===o.func)return t.stack[0].line=o.line,!1}return t.stack.unshift(o),t.partial=!0,!0}return t.incomplete=!0,!1}function r(t,i){for(var u,f,c=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,l=[],p={},h=!1,d=r.caller;d&&!h;d=d.caller)if(d!==o&&d!==n.report){if(f={url:null,func:a,line:null,column:null},d.name?f.func=d.name:(u=c.exec(d.toString()))&&(f.func=u[1]),void 0===f.func)try{f.func=u.input.substring(0,u.input.indexOf("{"))}catch(t){}p[""+d]?h=!0:p[""+d]=!0,l.push(f)}i&&l.splice(0,i);var v={name:t.name,message:t.message,url:s(),stack:l};return e(v,t.sourceURL||t.fileName,t.line||t.lineNumber,t.message||t.description),v}function o(e,o){var i=null;o=null==o?0:+o;try{if(i=t(e))return i}catch(t){if(n.debug)throw t}try{if(i=r(e,o+1))return i}catch(t){if(n.debug)throw t}return{name:e.name,message:e.message,url:s()}}return o.augmentStackTraceWithInitialElement=e,o.computeStackTraceFromStackProp=t,o}();var f=n;e.default=f,t.exports=e.default}).call(this,r(6))},function(t,e,r){var n=r(118),o=r(119),i=r(40),a=r(120);t.exports=function(t,e){return n(t)||o(t,e)||i(t,e)||a()},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){var n=r(5)(r(1),"Map");t.exports=n},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,r){var n=r(161),o=r(168),i=r(170),a=r(171),u=r(172);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e,r){var n=r(4),o=r(15),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||(a.test(t)||!i.test(t)||null!=e&&t in Object(e))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MAX_CUSTOM_PROPS_PER_SESSION=e.MAX_PROPERTY_NAME_LENGTH=e.SUPPORTED_TYPES=e.RESERVED_PROP_MAPPINGS=e.RESERVED_PROPS=e.VALIDATION_ERRORS=void 0;e.VALIDATION_ERRORS={EMPTY_ARRAY:"EMPTY_ARRAY",MIXED_TYPE_ARRAY:"MIXED_TYPE_ARRAY",UNSUPPORTED_TYPE:"UNSUPPORTED_TYPE",RESERVED_TYPE_MISMATCH:"RESERVED_TYPE_MISMATCH",MAX_PROPS_REACHED:"MAX_PROPS_REACHED",NAME_TOO_LONG:"NAME_TOO_LONG",MALFORMED_VARIANT:"MALFORMED_VARIANT"};e.RESERVED_PROPS={revenue:"number"};e.RESERVED_PROP_MAPPINGS={revenue:{type:"double"}};e.SUPPORTED_TYPES=["boolean","number","string"];e.MAX_PROPERTY_NAME_LENGTH=100;e.MAX_CUSTOM_PROPS_PER_SESSION=500},function(t,e,r){var n=r(33).Context,o=r(72),i=function(t,e){this.left=t,this.right=e,this.pipe="diff"};(i.prototype=new n).setResult=function(t){if(this.options.cloneDiffValues&&"object"==typeof t){var e="function"==typeof this.options.cloneDiffValues?this.options.cloneDiffValues:o;"object"==typeof t[0]&&(t[0]=e(t[0])),"object"==typeof t[1]&&(t[1]=e(t[1]))}return n.prototype.setResult.apply(this,arguments)},e.DiffContext=i},function(t,e,r){var n=r(71).Pipe,o=function(){};o.prototype.setResult=function(t){return this.result=t,this.hasResult=!0,this},o.prototype.exit=function(){return this.exiting=!0,this},o.prototype.switchTo=function(t,e){return"string"==typeof t||t instanceof n?this.nextPipe=t:(this.next=t,e&&(this.nextPipe=e)),this},o.prototype.push=function(t,e){return t.parent=this,void 0!==e&&(t.childName=e),t.root=this.root||this,t.options=t.options||this.options,this.children?(this.children[this.children.length-1].next=t,this.children.push(t)):(this.children=[t],this.nextAfterChildren=this.next||null,this.next=t),t.next=this,this},e.Context=o},function(t,e,r){var n=r(33).Context,o=function(t,e){this.left=t,this.delta=e,this.pipe="patch"};o.prototype=new n,e.PatchContext=o},function(t,e,r){var n=r(33).Context,o=function(t){this.delta=t,this.pipe="reverse"};o.prototype=new n,e.ReverseContext=o},function(t,e){t.exports=require("react-native")},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){var n=r(39);t.exports=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";var n=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.setActive=function(t){s=t},e.default=function(t){var e=t.addRequest,r=t.addResponse,n=t.isIgnored,c=t.logger,l=t.shouldAugmentNPS,p=void 0===l||l,h=t.shouldParseXHRBlob,d=void 0!==h&&h,v=XMLHttpRequest,g=new WeakMap,y=!1,_="xhr-";return window._lrXMLHttpRequest=XMLHttpRequest,XMLHttpRequest=function(t,l){var h=new v(t,l);if(!s)return h;g.set(h,{xhrId:++f,headers:{}});var b=h.open;var E=h.send;p&&(h.open=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];try{var n=e[1];if(window.URL&&"function"==typeof window.URL&&0===n.search(u.WOOTRIC_RESPONSES_REGEX)){var o=new window.URL(c.recordingURL);o.searchParams.set("nps","wootric");var i=new window.URL(n),a=i.searchParams.get("response[text]"),s=a?"".concat(a,"\n\n"):"";i.searchParams.set("response[text]","".concat(s,"<").concat(o.href,"|View LogRocket session>")),e[1]=i.href}}catch(t){}return b.apply(this,e)},h.send=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];try{var n=g.get(h);if(window.URL&&"function"==typeof window.URL&&n&&n.url&&0===n.url.search(u.DELIGHTED_RESPONSES_REGEX)&&e.length&&-1!==e[0].indexOf(u.DELIGHTED_FEEDBACK_PREFIX)){var o=new window.URL(c.recordingURL);o.searchParams.set("nps","delighted");var i=encodeURIComponent(o.href),s=e[0].split("&").map((function(t){if((0,a.default)(t,u.DELIGHTED_FEEDBACK_PREFIX)){var e=t===u.DELIGHTED_FEEDBACK_PREFIX;return"".concat(t).concat(e?"":"\n\n","<").concat(i,"|View LogRocket session>")}return t})).join("&");e[0]=s}}catch(t){}return E.apply(this,e)}),(0,i.default)(h,"open",(function(t,e){if(!y){var r=g.get(h);r.method=t,r.url=e}})),(0,i.default)(h,"send",(function(t){if(!y){var r=g.get(h);if(r){var n={url:r.url,method:r.method&&r.method.toUpperCase(),headers:(0,o.default)(r.headers||{},(function(t){return t.join(", ")})),body:t};e("".concat(_).concat(r.xhrId),n)}}})),(0,i.default)(h,"setRequestHeader",(function(t,e){if(!y){var r=g.get(h);r&&(r.headers=r.headers||{},r.headers[t]=r.headers[t]||[],r.headers[t].push(e))}}));var m={readystatechange:function(){if(!y&&4===h.readyState){var t=g.get(h);if(!t)return;if(n("".concat(_).concat(t.xhrId)))return;var e,o=h.getAllResponseHeaders().split(/[\r\n]+/).reduce((function(t,e){var r=t,n=e.split(": ");if(n.length>0){var o=n.shift(),i=n.join(": ");t[o]?r[o]+=", ".concat(i):r[o]=i}return r}),{});try{switch(h.responseType){case"json":e=c._shouldCloneResponse?JSON.parse(JSON.stringify(h.response)):h.response;break;case"arraybuffer":case"blob":e=h.response;break;case"document":e=h.responseXML;break;case"text":case"":e=h.responseText;break;default:e=""}}catch(t){e="LogRocket: Error accessing response."}var i={url:t.url,status:h.status,headers:o,body:e,method:(t.method||"").toUpperCase()};if(d&&i.body instanceof Blob){var a=new FileReader;a.readAsText(i.body),a.onload=function(){try{i.body=JSON.parse(a.result)}catch(t){}r("".concat(_).concat(t.xhrId),i)}}else r("".concat(_).concat(t.xhrId),i)}}};return Object.keys(m).forEach((function(t){h.addEventListener(t,m[t])})),h},XMLHttpRequest.prototype=v.prototype,["UNSENT","OPENED","HEADERS_RECEIVED","LOADING","DONE"].forEach((function(t){XMLHttpRequest[t]=v[t]})),function(){y=!0,XMLHttpRequest=v}};var o=n(r(19)),i=n(r(21)),a=n(r(22)),u=r(42),s=!0;var f=0},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DELIGHTED_FEEDBACK_PREFIX=e.DELIGHTED_RESPONSES_REGEX=e.WOOTRIC_RESPONSES_REGEX=void 0;e.WOOTRIC_RESPONSES_REGEX=/^https:\/\/production.wootric.com\/responses/;e.DELIGHTED_RESPONSES_REGEX=/^https:\/\/web.delighted.com\/e\/[a-zA-Z-]*\/c/;e.DELIGHTED_FEEDBACK_PREFIX="comment="},function(t,e,r){"use strict";var n=r(23),o=r(0);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"registerExceptions",{enumerable:!0,get:function(){return i.default}}),e.Capture=void 0;var i=o(r(99)),a=n(r(44));e.Capture=a},function(t,e,r){"use strict";var n=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.captureMessage=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o={exceptionType:n?"CONSOLE":"MESSAGE",message:e,browserHref:window.location?window.location.href:""};s(o,r),t.addEvent("lr.core.Exception",(function(){return o}))},e.captureException=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=n||i.default.computeStackTrace(e),u={exceptionType:"WINDOW",errorType:o.name,message:o.message,browserHref:window.location?window.location.href:""};s(u,r);var f={_stackTrace:(0,a.default)(o)};t.addEvent("lr.core.Exception",(function(){return u}),f)};var o=n(r(3)),i=n(r(24)),a=n(r(103));function u(t){return/boolean|number|string/.test((0,o.default)(t))}function s(t,e){if(e){for(var r=0,n=["level","logger"];r<n.length;r++){var o=n[r],i=e[o];u(i)&&(t[o]=i.toString())}for(var a=0,s=["tags","extra"];a<s.length;a++){for(var f=s[a],c=e[f]||{},l={},p=0,h=Object.keys(c);p<h.length;p++){var d=h[p],v=c[d];u(v)&&(l[d.toString()]=v.toString())}t[f]=l}}}},function(t,e,r){"use strict";var n=r(23),o=r(0);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"enhanceFunc",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"shallowArsonify",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"shallowDearsonify",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"deepArsonify",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"deepDearsonify",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"addListener",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"protectFunc",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"findIndex",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"find",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"flatten",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"selectorMatches",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"parseSelectorForMatch",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"parseSelectorForSearch",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"querySelectorWithShadowDom",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"sendErrorTelemetry",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"sendTelemetry",{enumerable:!0,get:function(){return b.sendTelemetry}}),Object.defineProperty(e,"sanitizeValue",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(e,"startsWith",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"endsWith",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(e,"contains",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"uuid",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"randomInt",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(e,"getNodeSelector",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(e,"getGraphQLOperation",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(e,"isSessionEvent",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(e,"isActivityEvent",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(e,"parseIntFromHex",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(e,"isRecordingSampled",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(e,"makeRecordingID",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(e,"setFromArray",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(e,"setToArray",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(e,"applyUrlSanitizer",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(e,"getMockDeveloperUser",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(e,"isDemoOrg",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(e,"LOG_FILTER_TYPES",{enumerable:!0,get:function(){return U.LOG_FILTER_TYPES}}),Object.defineProperty(e,"LOG_TYPES",{enumerable:!0,get:function(){return U.LOG_TYPES}}),Object.defineProperty(e,"METRIC_TIMESERIES_TYPE",{enumerable:!0,get:function(){return Y.METRIC_TIMESERIES_TYPE}}),Object.defineProperty(e,"HEATMAP_FOR_URL_OPERATOR",{enumerable:!0,get:function(){return Y.HEATMAP_FOR_URL_OPERATOR}}),Object.defineProperty(e,"DEFAULT_HEATMAP_FOR_URL_OPERATOR",{enumerable:!0,get:function(){return Y.DEFAULT_HEATMAP_FOR_URL_OPERATOR}}),Object.defineProperty(e,"DEFAULT_INSIGHTS_HEATMAP_FOR_URL_OPERATOR",{enumerable:!0,get:function(){return Y.DEFAULT_INSIGHTS_HEATMAP_FOR_URL_OPERATOR}}),Object.defineProperty(e,"SORT_DIRECTION",{enumerable:!0,get:function(){return Y.SORT_DIRECTION}}),Object.defineProperty(e,"FEEDBACK_SORT_COLUMN",{enumerable:!0,get:function(){return Y.FEEDBACK_SORT_COLUMN}}),Object.defineProperty(e,"ISSUE_TYPE",{enumerable:!0,get:function(){return F.ISSUE_TYPE}}),Object.defineProperty(e,"ISSUE_GROUP_TYPE",{enumerable:!0,get:function(){return F.ISSUE_GROUP_TYPE}}),Object.defineProperty(e,"ES_ISSUE_TYPE_BASE_FILTER",{enumerable:!0,get:function(){return F.ES_ISSUE_TYPE_BASE_FILTER}}),Object.defineProperty(e,"ES_ISSUE_TYPES",{enumerable:!0,get:function(){return F.ES_ISSUE_TYPES}}),Object.defineProperty(e,"DYNAMIC_ES_ISSUE_TYPES",{enumerable:!0,get:function(){return F.DYNAMIC_ES_ISSUE_TYPES}}),Object.defineProperty(e,"HASHED_ES_ISSUE_TYPES",{enumerable:!0,get:function(){return F.HASHED_ES_ISSUE_TYPES}}),Object.defineProperty(e,"ES_ISSUE_TYPE_GROUP_FIELD",{enumerable:!0,get:function(){return F.ES_ISSUE_TYPE_GROUP_FIELD}}),Object.defineProperty(e,"findKeyFrames",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(e,"interpolate",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(e,"interpolateMobile",{enumerable:!0,get:function(){return G.interpolateMobile}}),Object.defineProperty(e,"removeOutdated",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(e,"DEMO_ORG_SLUG",{enumerable:!0,get:function(){return q.DEMO_ORG_SLUG}}),Object.defineProperty(e,"DEMO_APP_SLUG",{enumerable:!0,get:function(){return q.DEMO_APP_SLUG}}),Object.defineProperty(e,"DEMO_APP_ID",{enumerable:!0,get:function(){return q.DEMO_APP_ID}}),Object.defineProperty(e,"knownMetricTypes",{enumerable:!0,get:function(){return X.knownMetricTypes}}),Object.defineProperty(e,"DELIGHTED_RESPONSES_REGEX",{enumerable:!0,get:function(){return V.DELIGHTED_RESPONSES_REGEX}}),Object.defineProperty(e,"WOOTRIC_RESPONSES_REGEX",{enumerable:!0,get:function(){return V.WOOTRIC_RESPONSES_REGEX}}),Object.defineProperty(e,"SDK_TYPES",{enumerable:!0,get:function(){return W.SDK_TYPES}}),Object.defineProperty(e,"SDK_TYPE_TO_DISPLAY",{enumerable:!0,get:function(){return W.SDK_TYPE_TO_DISPLAY}}),Object.defineProperty(e,"SESSION_TYPES",{enumerable:!0,get:function(){return W.SESSION_TYPES}}),Object.defineProperty(e,"SESSION_TYPE_TO_DISPLAY",{enumerable:!0,get:function(){return W.SESSION_TYPE_TO_DISPLAY}}),Object.defineProperty(e,"parseQueryString",{enumerable:!0,get:function(){return z.parseQueryString}}),Object.defineProperty(e,"likeOperator",{enumerable:!0,get:function(){return K.likeOperator}});var i=o(r(21)),a=o(r(109)),u=o(r(110)),s=o(r(111)),f=o(r(112)),c=o(r(113)),l=o(r(46)),p=o(r(49)),h=o(r(114)),d=o(r(115)),v=o(r(116)),g=o(r(117)),y=o(r(121)),_=o(r(122)),b=n(r(47)),E=o(r(123)),m=o(r(22)),O=o(r(124)),x=o(r(125)),w=o(r(50)),P=o(r(126)),S=o(r(127)),R=o(r(128)),A=o(r(129)),j=o(r(130)),T=o(r(51)),I=o(r(131)),M=o(r(132)),D=o(r(133)),L=o(r(134)),N=o(r(135)),C=o(r(136)),k=o(r(137)),U=r(138),Y=r(139),F=r(140),B=o(r(141)),G=n(r(224)),H=o(r(225)),q=r(52),X=r(226),V=r(42),W=r(227),z=r(228),K=r(229)},function(t,e,r){"use strict";var n=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return function(){var r;try{r=t.apply(void 0,arguments)}catch(t){if("undefined"!=typeof window&&window._lrdebug)throw t;var n=e(t);(0,i.default)("LogRocket",t),(0,o.default)(t,n)}return r}};var o=n(r(47)),i=n(r(48));t.exports=e.default},function(t,e,r){"use strict";var n=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.sendTelemetry=function(t,e){if("undefined"!=typeof window&&window._lrdebug)return void(0,i.default)(t);if(e&&e.extra&&e.extra.appID&&"function"==typeof e.extra.appID.indexOf&&0===e.extra.appID.indexOf("au2drp/")&&Math.random()>=.25)return;f(s({message:t},e))},e.default=function(t,e){try{var r,n,o=t.message;try{r=JSON.stringify(e).slice(0,1e3)}catch(t){try{r="Could not stringify payload: ".concat(Object.prototype.toString.call(e))}catch(t){}}try{n=a.default.computeStackTrace(t).stack.map((function(t){return{filename:t.url,lineno:t.line,colno:t.column,function:t.func||"?"}}))}catch(t){}f({message:o,extra:{stringPayload:r},exception:{values:[{type:t.type,value:o,stacktrace:{frames:n}}]}})}catch(t){(0,i.default)("Failed to send",t)}};var o=n(r(2)),i=n(r(48)),a=n(r(24));function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){(0,o.default)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function f(t){var e=window._lrXMLHttpRequest||XMLHttpRequest;try{var r=new e,n=t.message;r.open("POST","https://e.logrocket.com/api/3/store/?sentry_version=7&sentry_client=http%2F3.8.0&sentry_key=b64162b4187a4c5caae8a68a7e291793"),r.send(JSON.stringify(s({message:n,logger:"javascript",platform:"javascript",request:{headers:{"User-Agent":"undefined"!=typeof navigator&&navigator.userAgent},url:"undefined"!=typeof location&&location.href},release:"f87f61639d9be7dff55a84666aa4aab478c8d6fa",environment:"test"},t)))}catch(t){(0,i.default)("Failed to send",t)}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n="undefined"!=typeof console&&console.error&&console.error.bind?console.error.bind(console):function(){};e.default=n,t.exports=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){for(var r=0;r<t.length;r++)if(e(t[r]))return r;return-1},t.exports=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function t(e){return e?(e^16*Math.random()>>e/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,t)},t.exports=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.replace(/[^0-9a-f]/g,"");return parseInt("0x".concat(e),16)||0},t.exports=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEMO_APP_ID=e.DEMO_APP_SLUG=e.DEMO_ORG_SLUG=void 0;var n="demo-kdz7k";e.DEMO_ORG_SLUG=n;var o="logrocket";e.DEMO_APP_SLUG=o;var i="".concat(n,"/").concat(o);e.DEMO_APP_ID=i},function(t,e,r){var n=r(142),o=r(223);t.exports=function(t,e,r){return o(t,e,n(r,2),!0)}},function(t,e,r){var n=r(10),o=r(150),i=r(151),a=r(152),u=r(153),s=r(154);function f(t){var e=this.__data__=new n(t);this.size=e.size}f.prototype.clear=o,f.prototype.delete=i,f.prototype.get=a,f.prototype.has=u,f.prototype.set=s,t.exports=f},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,r){var n=r(7),o=r(27);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,r){(function(e){var r="object"==typeof e&&e&&e.Object===Object&&e;t.exports=r}).call(this,r(6))},function(t,e){var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,r){var n=r(173),o=r(8);t.exports=function t(e,r,i,a,u){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,a,t,u))}},function(t,e,r){var n=r(174),o=r(177),i=r(178);t.exports=function(t,e,r,a,u,s){var f=1&r,c=t.length,l=e.length;if(c!=l&&!(f&&l>c))return!1;var p=s.get(t),h=s.get(e);if(p&&h)return p==e&&h==t;var d=-1,v=!0,g=2&r?new n:void 0;for(s.set(t,e),s.set(e,t);++d<c;){var y=t[d],_=e[d];if(a)var b=f?a(_,y,d,e,t,s):a(y,_,d,t,e,s);if(void 0!==b){if(b)continue;v=!1;break}if(g){if(!o(e,(function(t,e){if(!i(g,e)&&(y===t||u(y,t,r,a,s)))return g.push(e)}))){v=!1;break}}else if(y!==_&&!u(y,_,r,a,s)){v=!1;break}}return s.delete(t),s.delete(e),v}},function(t,e,r){var n=r(190),o=r(197),i=r(201);t.exports=function(t){return i(t)?n(t):o(t)}},function(t,e,r){var n=r(192),o=r(8),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=s},function(t,e,r){(function(t){var n=r(1),o=r(193),i=e&&!e.nodeType&&e,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,u=a&&a.exports===i?n.Buffer:void 0,s=(u?u.isBuffer:void 0)||o;t.exports=s}).call(this,r(64)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){var r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,r){var n=r(194),o=r(195),i=r(196),a=i&&i.isTypedArray,u=a?o(a):n;t.exports=u},function(t,e,r){var n=r(27);t.exports=function(t){return t==t&&!n(t)}},function(t,e){t.exports=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}},function(t,e,r){var n=r(70),o=r(16);t.exports=function(t,e){for(var r=0,i=(e=n(e,t)).length;null!=t&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0}},function(t,e,r){var n=r(4),o=r(30),i=r(210),a=r(213);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(a(t))}},function(t,e){var r=function(t){this.name=t,this.filters=[]};r.prototype.process=function(t){if(!this.processor)throw new Error("add this pipe to a processor before using it");for(var e=this.debug,r=this.filters.length,n=t,o=0;o<r;o++){var i=this.filters[o];if(e&&this.log("filter: "+i.filterName),i(n),"object"==typeof n&&n.exiting){n.exiting=!1;break}}!n.next&&this.resultCheck&&this.resultCheck(n)},r.prototype.log=function(t){console.log("[jsondiffpatch] "+this.name+" pipe, "+t)},r.prototype.append=function(){return this.filters.push.apply(this.filters,arguments),this},r.prototype.prepend=function(){return this.filters.unshift.apply(this.filters,arguments),this},r.prototype.indexOf=function(t){if(!t)throw new Error("a filter name is required");for(var e=0;e<this.filters.length;e++){if(this.filters[e].filterName===t)return e}throw new Error("filter not found: "+t)},r.prototype.list=function(){for(var t=[],e=0;e<this.filters.length;e++){var r=this.filters[e];t.push(r.filterName)}return t},r.prototype.after=function(t){var e=this.indexOf(t),r=Array.prototype.slice.call(arguments,1);if(!r.length)throw new Error("a filter is required");return r.unshift(e+1,0),Array.prototype.splice.apply(this.filters,r),this},r.prototype.before=function(t){var e=this.indexOf(t),r=Array.prototype.slice.call(arguments,1);if(!r.length)throw new Error("a filter is required");return r.unshift(e,0),Array.prototype.splice.apply(this.filters,r),this},r.prototype.clear=function(){return this.filters.length=0,this},r.prototype.shouldHaveResult=function(t){if(!1!==t){if(!this.resultCheck){var e=this;return this.resultCheck=function(t){if(!t.hasResult){console.log(t);var r=new Error(e.name+" failed");throw r.noResult=!0,r}},this}}else this.resultCheck=null},e.Pipe=r},function(t,e){var r="function"==typeof Array.isArray?Array.isArray:function(t){return t instanceof Array};t.exports=function t(e){if("object"!=typeof e)return e;if(null===e)return null;if(r(e))return e.map(t);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return n=/^\/(.*)\/([gimyu]*)$/.exec(e.toString()),new RegExp(n[1],n[2]);var n,o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=t(e[i]));return o}},function(t,e){function r(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32}var n=-1;r.Diff,r.prototype.diff_main=function(t,e,r,n){void 0===n&&(n=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var o=n;if(null==t||null==e)throw new Error("Null input. (diff_main)");if(t==e)return t?[[0,t]]:[];void 0===r&&(r=!0);var i=r,a=this.diff_commonPrefix(t,e),u=t.substring(0,a);t=t.substring(a),e=e.substring(a),a=this.diff_commonSuffix(t,e);var s=t.substring(t.length-a);t=t.substring(0,t.length-a),e=e.substring(0,e.length-a);var f=this.diff_compute_(t,e,i,o);return u&&f.unshift([0,u]),s&&f.push([0,s]),this.diff_cleanupMerge(f),f},r.prototype.diff_compute_=function(t,e,r,o){var i;if(!t)return[[1,e]];if(!e)return[[n,t]];var a=t.length>e.length?t:e,u=t.length>e.length?e:t,s=a.indexOf(u);if(-1!=s)return i=[[1,a.substring(0,s)],[0,u],[1,a.substring(s+u.length)]],t.length>e.length&&(i[0][0]=i[2][0]=n),i;if(1==u.length)return[[n,t],[1,e]];a=u=null;var f=this.diff_halfMatch_(t,e);if(f){var c=f[0],l=f[1],p=f[2],h=f[3],d=f[4],v=this.diff_main(c,p,r,o),g=this.diff_main(l,h,r,o);return v.concat([[0,d]],g)}return r&&t.length>100&&e.length>100?this.diff_lineMode_(t,e,o):this.diff_bisect_(t,e,o)},r.prototype.diff_lineMode_=function(t,e,r){t=(l=this.diff_linesToChars_(t,e))[0],e=l[1];var o=l[2],i=this.diff_bisect_(t,e,r);this.diff_charsToLines_(i,o),this.diff_cleanupSemantic(i),i.push([0,""]);for(var a=0,u=0,s=0,f="",c="";a<i.length;){switch(i[a][0]){case 1:s++,c+=i[a][1];break;case n:u++,f+=i[a][1];break;case 0:if(u>=1&&s>=1){var l=this.diff_main(f,c,!1,r);i.splice(a-u-s,u+s),a=a-u-s;for(var p=l.length-1;p>=0;p--)i.splice(a,0,l[p]);a+=l.length}s=0,u=0,f="",c=""}a++}return i.pop(),i},r.prototype.diff_bisect_=function(t,e,r){for(var o=t.length,i=e.length,a=Math.ceil((o+i)/2),u=a,s=2*a,f=new Array(s),c=new Array(s),l=0;l<s;l++)f[l]=-1,c[l]=-1;f[u+1]=0,c[u+1]=0;for(var p=o-i,h=p%2!=0,d=0,v=0,g=0,y=0,_=0;_<a&&!((new Date).getTime()>r);_++){for(var b=-_+d;b<=_-v;b+=2){for(var E=u+b,m=(S=b==-_||b!=_&&f[E-1]<f[E+1]?f[E+1]:f[E-1]+1)-b;S<o&&m<i&&t.charAt(S)==e.charAt(m);)S++,m++;if(f[E]=S,S>o)v+=2;else if(m>i)d+=2;else if(h){if((w=u+p-b)>=0&&w<s&&-1!=c[w])if(S>=(x=o-c[w]))return this.diff_bisectSplit_(t,e,S,m,r)}}for(var O=-_+g;O<=_-y;O+=2){for(var x,w=u+O,P=(x=O==-_||O!=_&&c[w-1]<c[w+1]?c[w+1]:c[w-1]+1)-O;x<o&&P<i&&t.charAt(o-x-1)==e.charAt(i-P-1);)x++,P++;if(c[w]=x,x>o)y+=2;else if(P>i)g+=2;else if(!h){if((E=u+p-O)>=0&&E<s&&-1!=f[E]){var S;m=u+(S=f[E])-E;if(S>=(x=o-x))return this.diff_bisectSplit_(t,e,S,m,r)}}}}return[[n,t],[1,e]]},r.prototype.diff_bisectSplit_=function(t,e,r,n,o){var i=t.substring(0,r),a=e.substring(0,n),u=t.substring(r),s=e.substring(n),f=this.diff_main(i,a,!1,o),c=this.diff_main(u,s,!1,o);return f.concat(c)},r.prototype.diff_linesToChars_=function(t,e){var r=[],n={};function o(t){for(var e="",o=0,i=-1,a=r.length;i<t.length-1;){-1==(i=t.indexOf("\n",o))&&(i=t.length-1);var u=t.substring(o,i+1);o=i+1,(n.hasOwnProperty?n.hasOwnProperty(u):void 0!==n[u])?e+=String.fromCharCode(n[u]):(e+=String.fromCharCode(a),n[u]=a,r[a++]=u)}return e}return r[0]="",[o(t),o(e),r]},r.prototype.diff_charsToLines_=function(t,e){for(var r=0;r<t.length;r++){for(var n=t[r][1],o=[],i=0;i<n.length;i++)o[i]=e[n.charCodeAt(i)];t[r][1]=o.join("")}},r.prototype.diff_commonPrefix=function(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var r=0,n=Math.min(t.length,e.length),o=n,i=0;r<o;)t.substring(i,o)==e.substring(i,o)?i=r=o:n=o,o=Math.floor((n-r)/2+r);return o},r.prototype.diff_commonSuffix=function(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;for(var r=0,n=Math.min(t.length,e.length),o=n,i=0;r<o;)t.substring(t.length-o,t.length-i)==e.substring(e.length-o,e.length-i)?i=r=o:n=o,o=Math.floor((n-r)/2+r);return o},r.prototype.diff_commonOverlap_=function(t,e){var r=t.length,n=e.length;if(0==r||0==n)return 0;r>n?t=t.substring(r-n):r<n&&(e=e.substring(0,r));var o=Math.min(r,n);if(t==e)return o;for(var i=0,a=1;;){var u=t.substring(o-a),s=e.indexOf(u);if(-1==s)return i;a+=s,0!=s&&t.substring(o-a)!=e.substring(0,a)||(i=a,a++)}},r.prototype.diff_halfMatch_=function(t,e){if(this.Diff_Timeout<=0)return null;var r=t.length>e.length?t:e,n=t.length>e.length?e:t;if(r.length<4||2*n.length<r.length)return null;var o=this;function i(t,e,r){for(var n,i,a,u,s=t.substring(r,r+Math.floor(t.length/4)),f=-1,c="";-1!=(f=e.indexOf(s,f+1));){var l=o.diff_commonPrefix(t.substring(r),e.substring(f)),p=o.diff_commonSuffix(t.substring(0,r),e.substring(0,f));c.length<p+l&&(c=e.substring(f-p,f)+e.substring(f,f+l),n=t.substring(0,r-p),i=t.substring(r+l),a=e.substring(0,f-p),u=e.substring(f+l))}return 2*c.length>=t.length?[n,i,a,u,c]:null}var a,u,s,f,c,l=i(r,n,Math.ceil(r.length/4)),p=i(r,n,Math.ceil(r.length/2));return l||p?(a=p?l&&l[4].length>p[4].length?l:p:l,t.length>e.length?(u=a[0],s=a[1],f=a[2],c=a[3]):(f=a[0],c=a[1],u=a[2],s=a[3]),[u,s,f,c,a[4]]):null},r.prototype.diff_cleanupSemantic=function(t){for(var e=!1,r=[],o=0,i=null,a=0,u=0,s=0,f=0,c=0;a<t.length;)0==t[a][0]?(r[o++]=a,u=f,s=c,f=0,c=0,i=t[a][1]):(1==t[a][0]?f+=t[a][1].length:c+=t[a][1].length,null!==i&&i.length<=Math.max(u,s)&&i.length<=Math.max(f,c)&&(t.splice(r[o-1],0,[n,i]),t[r[o-1]+1][0]=1,o--,a=--o>0?r[o-1]:-1,u=0,s=0,f=0,c=0,i=null,e=!0)),a++;for(e&&this.diff_cleanupMerge(t),this.diff_cleanupSemanticLossless(t),a=1;a<t.length;){if(t[a-1][0]==n&&1==t[a][0]){var l=t[a-1][1],p=t[a][1],h=this.diff_commonOverlap_(l,p);(h>=l.length/2||h>=p.length/2)&&(t.splice(a,0,[0,p.substring(0,h)]),t[a-1][1]=l.substring(0,l.length-h),t[a+1][1]=p.substring(h),a++),a++}a++}},r.prototype.diff_cleanupSemanticLossless=function(t){var e=/[^a-zA-Z0-9]/,r=/\s/,n=/[\r\n]/,o=/\n\r?\n$/,i=/^\r?\n\r?\n/;function a(t,a){if(!t||!a)return 5;var u=0;return(t.charAt(t.length-1).match(e)||a.charAt(0).match(e))&&(u++,(t.charAt(t.length-1).match(r)||a.charAt(0).match(r))&&(u++,(t.charAt(t.length-1).match(n)||a.charAt(0).match(n))&&(u++,(t.match(o)||a.match(i))&&u++))),u}for(var u=1;u<t.length-1;){if(0==t[u-1][0]&&0==t[u+1][0]){var s=t[u-1][1],f=t[u][1],c=t[u+1][1],l=this.diff_commonSuffix(s,f);if(l){var p=f.substring(f.length-l);s=s.substring(0,s.length-l),f=p+f.substring(0,f.length-l),c=p+c}for(var h=s,d=f,v=c,g=a(s,f)+a(f,c);f.charAt(0)===c.charAt(0);){s+=f.charAt(0),f=f.substring(1)+c.charAt(0),c=c.substring(1);var y=a(s,f)+a(f,c);y>=g&&(g=y,h=s,d=f,v=c)}t[u-1][1]!=h&&(h?t[u-1][1]=h:(t.splice(u-1,1),u--),t[u][1]=d,v?t[u+1][1]=v:(t.splice(u+1,1),u--))}u++}},r.prototype.diff_cleanupEfficiency=function(t){for(var e=!1,r=[],o=0,i="",a=0,u=!1,s=!1,f=!1,c=!1;a<t.length;)0==t[a][0]?(t[a][1].length<this.Diff_EditCost&&(f||c)?(r[o++]=a,u=f,s=c,i=t[a][1]):(o=0,i=""),f=c=!1):(t[a][0]==n?c=!0:f=!0,i&&(u&&s&&f&&c||i.length<this.Diff_EditCost/2&&u+s+f+c==3)&&(t.splice(r[o-1],0,[n,i]),t[r[o-1]+1][0]=1,o--,i="",u&&s?(f=c=!0,o=0):(a=--o>0?r[o-1]:-1,f=c=!1),e=!0)),a++;e&&this.diff_cleanupMerge(t)},r.prototype.diff_cleanupMerge=function(t){t.push([0,""]);for(var e,r=0,o=0,i=0,a="",u="";r<t.length;)switch(t[r][0]){case 1:i++,u+=t[r][1],r++;break;case n:o++,a+=t[r][1],r++;break;case 0:o+i>1?(0!==o&&0!==i&&(0!==(e=this.diff_commonPrefix(u,a))&&(r-o-i>0&&0==t[r-o-i-1][0]?t[r-o-i-1][1]+=u.substring(0,e):(t.splice(0,0,[0,u.substring(0,e)]),r++),u=u.substring(e),a=a.substring(e)),0!==(e=this.diff_commonSuffix(u,a))&&(t[r][1]=u.substring(u.length-e)+t[r][1],u=u.substring(0,u.length-e),a=a.substring(0,a.length-e))),0===o?t.splice(r-o-i,o+i,[1,u]):0===i?t.splice(r-o-i,o+i,[n,a]):t.splice(r-o-i,o+i,[n,a],[1,u]),r=r-o-i+(o?1:0)+(i?1:0)+1):0!==r&&0==t[r-1][0]?(t[r-1][1]+=t[r][1],t.splice(r,1)):r++,i=0,o=0,a="",u=""}""===t[t.length-1][1]&&t.pop();var s=!1;for(r=1;r<t.length-1;)0==t[r-1][0]&&0==t[r+1][0]&&(t[r][1].substring(t[r][1].length-t[r-1][1].length)==t[r-1][1]?(t[r][1]=t[r-1][1]+t[r][1].substring(0,t[r][1].length-t[r-1][1].length),t[r+1][1]=t[r-1][1]+t[r+1][1],t.splice(r-1,1),s=!0):t[r][1].substring(0,t[r+1][1].length)==t[r+1][1]&&(t[r-1][1]+=t[r+1][1],t[r][1]=t[r][1].substring(t[r+1][1].length)+t[r+1][1],t.splice(r+1,1),s=!0)),r++;s&&this.diff_cleanupMerge(t)},r.prototype.diff_xIndex=function(t,e){var r,o=0,i=0,a=0,u=0;for(r=0;r<t.length&&(1!==t[r][0]&&(o+=t[r][1].length),t[r][0]!==n&&(i+=t[r][1].length),!(o>e));r++)a=o,u=i;return t.length!=r&&t[r][0]===n?u:u+(e-a)},r.prototype.diff_prettyHtml=function(t){for(var e=[],r=/&/g,o=/</g,i=/>/g,a=/\n/g,u=0;u<t.length;u++){var s=t[u][0],f=t[u][1],c=f.replace(r,"&amp;").replace(o,"&lt;").replace(i,"&gt;").replace(a,"&para;<br>");switch(s){case 1:e[u]='<ins style="background:#e6ffe6;">'+c+"</ins>";break;case n:e[u]='<del style="background:#ffe6e6;">'+c+"</del>";break;case 0:e[u]="<span>"+c+"</span>"}s!==n&&f.length}return e.join("")},r.prototype.diff_text1=function(t){for(var e=[],r=0;r<t.length;r++)1!==t[r][0]&&(e[r]=t[r][1]);return e.join("")},r.prototype.diff_text2=function(t){for(var e=[],r=0;r<t.length;r++)t[r][0]!==n&&(e[r]=t[r][1]);return e.join("")},r.prototype.diff_levenshtein=function(t){for(var e=0,r=0,o=0,i=0;i<t.length;i++){var a=t[i][0],u=t[i][1];switch(a){case 1:r+=u.length;break;case n:o+=u.length;break;case 0:e+=Math.max(r,o),r=0,o=0}}return e+=Math.max(r,o)},r.prototype.diff_toDelta=function(t){for(var e=[],r=0;r<t.length;r++)switch(t[r][0]){case 1:e[r]="+"+encodeURI(t[r][1]);break;case n:e[r]="-"+t[r][1].length;break;case 0:e[r]="="+t[r][1].length}return e.join("\t").replace(/%20/g," ")},r.prototype.diff_fromDelta=function(t,e){for(var r=[],o=0,i=0,a=e.split(/\t/g),u=0;u<a.length;u++){var s=a[u].substring(1);switch(a[u].charAt(0)){case"+":try{r[o++]=[1,decodeURI(s)]}catch(t){throw new Error("Illegal escape in diff_fromDelta: "+s)}break;case"-":case"=":var f=parseInt(s,10);if(isNaN(f)||f<0)throw new Error("Invalid number in diff_fromDelta: "+s);var c=t.substring(i,i+=f);"="==a[u].charAt(0)?r[o++]=[0,c]:r[o++]=[n,c];break;default:if(a[u])throw new Error("Invalid diff operation in diff_fromDelta: "+a[u])}}if(i!=t.length)throw new Error("Delta length ("+i+") does not equal source text length ("+t.length+").");return r},r.prototype.match_main=function(t,e,r){if(null==t||null==e||null==r)throw new Error("Null input. (match_main)");return r=Math.max(0,Math.min(r,t.length)),t==e?0:t.length?t.substring(r,r+e.length)==e?r:this.match_bitap_(t,e,r):-1},r.prototype.match_bitap_=function(t,e,r){if(e.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var n=this.match_alphabet_(e),o=this;function i(t,n){var i=t/e.length,a=Math.abs(r-n);return o.Match_Distance?i+a/o.Match_Distance:a?1:i}var a=this.Match_Threshold,u=t.indexOf(e,r);-1!=u&&(a=Math.min(i(0,u),a),-1!=(u=t.lastIndexOf(e,r+e.length))&&(a=Math.min(i(0,u),a)));var s,f,c=1<<e.length-1;u=-1;for(var l,p=e.length+t.length,h=0;h<e.length;h++){for(s=0,f=p;s<f;)i(h,r+f)<=a?s=f:p=f,f=Math.floor((p-s)/2+s);p=f;var d=Math.max(1,r-f+1),v=Math.min(r+f,t.length)+e.length,g=Array(v+2);g[v+1]=(1<<h)-1;for(var y=v;y>=d;y--){var _=n[t.charAt(y-1)];if(g[y]=0===h?(g[y+1]<<1|1)&_:(g[y+1]<<1|1)&_|(l[y+1]|l[y])<<1|1|l[y+1],g[y]&c){var b=i(h,y-1);if(b<=a){if(a=b,!((u=y-1)>r))break;d=Math.max(1,2*r-u)}}}if(i(h+1,r)>a)break;l=g}return u},r.prototype.match_alphabet_=function(t){for(var e={},r=0;r<t.length;r++)e[t.charAt(r)]=0;for(r=0;r<t.length;r++)e[t.charAt(r)]|=1<<t.length-r-1;return e},r.prototype.patch_addContext_=function(t,e){if(0!=e.length){for(var r=e.substring(t.start2,t.start2+t.length1),n=0;e.indexOf(r)!=e.lastIndexOf(r)&&r.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)n+=this.Patch_Margin,r=e.substring(t.start2-n,t.start2+t.length1+n);n+=this.Patch_Margin;var o=e.substring(t.start2-n,t.start2);o&&t.diffs.unshift([0,o]);var i=e.substring(t.start2+t.length1,t.start2+t.length1+n);i&&t.diffs.push([0,i]),t.start1-=o.length,t.start2-=o.length,t.length1+=o.length+i.length,t.length2+=o.length+i.length}},r.prototype.patch_make=function(t,e,o){var i,a;if("string"==typeof t&&"string"==typeof e&&void 0===o)i=t,(a=this.diff_main(i,e,!0)).length>2&&(this.diff_cleanupSemantic(a),this.diff_cleanupEfficiency(a));else if(t&&"object"==typeof t&&void 0===e&&void 0===o)a=t,i=this.diff_text1(a);else if("string"==typeof t&&e&&"object"==typeof e&&void 0===o)i=t,a=e;else{if("string"!=typeof t||"string"!=typeof e||!o||"object"!=typeof o)throw new Error("Unknown call format to patch_make.");i=t,a=o}if(0===a.length)return[];for(var u=[],s=new r.patch_obj,f=0,c=0,l=0,p=i,h=i,d=0;d<a.length;d++){var v=a[d][0],g=a[d][1];switch(f||0===v||(s.start1=c,s.start2=l),v){case 1:s.diffs[f++]=a[d],s.length2+=g.length,h=h.substring(0,l)+g+h.substring(l);break;case n:s.length1+=g.length,s.diffs[f++]=a[d],h=h.substring(0,l)+h.substring(l+g.length);break;case 0:g.length<=2*this.Patch_Margin&&f&&a.length!=d+1?(s.diffs[f++]=a[d],s.length1+=g.length,s.length2+=g.length):g.length>=2*this.Patch_Margin&&f&&(this.patch_addContext_(s,p),u.push(s),s=new r.patch_obj,f=0,p=h,c=l)}1!==v&&(c+=g.length),v!==n&&(l+=g.length)}return f&&(this.patch_addContext_(s,p),u.push(s)),u},r.prototype.patch_deepCopy=function(t){for(var e=[],n=0;n<t.length;n++){var o=t[n],i=new r.patch_obj;i.diffs=[];for(var a=0;a<o.diffs.length;a++)i.diffs[a]=o.diffs[a].slice();i.start1=o.start1,i.start2=o.start2,i.length1=o.length1,i.length2=o.length2,e[n]=i}return e},r.prototype.patch_apply=function(t,e){if(0==t.length)return[e,[]];t=this.patch_deepCopy(t);var r=this.patch_addPadding(t);e=r+e+r,this.patch_splitMax(t);for(var o=0,i=[],a=0;a<t.length;a++){var u,s,f=t[a].start2+o,c=this.diff_text1(t[a].diffs),l=-1;if(c.length>this.Match_MaxBits?-1!=(u=this.match_main(e,c.substring(0,this.Match_MaxBits),f))&&(-1==(l=this.match_main(e,c.substring(c.length-this.Match_MaxBits),f+c.length-this.Match_MaxBits))||u>=l)&&(u=-1):u=this.match_main(e,c,f),-1==u)i[a]=!1,o-=t[a].length2-t[a].length1;else if(i[a]=!0,o=u-f,c==(s=-1==l?e.substring(u,u+c.length):e.substring(u,l+this.Match_MaxBits)))e=e.substring(0,u)+this.diff_text2(t[a].diffs)+e.substring(u+c.length);else{var p=this.diff_main(c,s,!1);if(c.length>this.Match_MaxBits&&this.diff_levenshtein(p)/c.length>this.Patch_DeleteThreshold)i[a]=!1;else{this.diff_cleanupSemanticLossless(p);for(var h,d=0,v=0;v<t[a].diffs.length;v++){var g=t[a].diffs[v];0!==g[0]&&(h=this.diff_xIndex(p,d)),1===g[0]?e=e.substring(0,u+h)+g[1]+e.substring(u+h):g[0]===n&&(e=e.substring(0,u+h)+e.substring(u+this.diff_xIndex(p,d+g[1].length))),g[0]!==n&&(d+=g[1].length)}}}}return[e=e.substring(r.length,e.length-r.length),i]},r.prototype.patch_addPadding=function(t){for(var e=this.Patch_Margin,r="",n=1;n<=e;n++)r+=String.fromCharCode(n);for(n=0;n<t.length;n++)t[n].start1+=e,t[n].start2+=e;var o=t[0],i=o.diffs;if(0==i.length||0!=i[0][0])i.unshift([0,r]),o.start1-=e,o.start2-=e,o.length1+=e,o.length2+=e;else if(e>i[0][1].length){var a=e-i[0][1].length;i[0][1]=r.substring(i[0][1].length)+i[0][1],o.start1-=a,o.start2-=a,o.length1+=a,o.length2+=a}if(0==(i=(o=t[t.length-1]).diffs).length||0!=i[i.length-1][0])i.push([0,r]),o.length1+=e,o.length2+=e;else if(e>i[i.length-1][1].length){a=e-i[i.length-1][1].length;i[i.length-1][1]+=r.substring(0,a),o.length1+=a,o.length2+=a}return r},r.prototype.patch_splitMax=function(t){for(var e=this.Match_MaxBits,o=0;o<t.length;o++)if(t[o].length1>e){var i=t[o];t.splice(o--,1);for(var a=i.start1,u=i.start2,s="";0!==i.diffs.length;){var f=new r.patch_obj,c=!0;for(f.start1=a-s.length,f.start2=u-s.length,""!==s&&(f.length1=f.length2=s.length,f.diffs.push([0,s]));0!==i.diffs.length&&f.length1<e-this.Patch_Margin;){var l=i.diffs[0][0],p=i.diffs[0][1];1===l?(f.length2+=p.length,u+=p.length,f.diffs.push(i.diffs.shift()),c=!1):l===n&&1==f.diffs.length&&0==f.diffs[0][0]&&p.length>2*e?(f.length1+=p.length,a+=p.length,c=!1,f.diffs.push([l,p]),i.diffs.shift()):(p=p.substring(0,e-f.length1-this.Patch_Margin),f.length1+=p.length,a+=p.length,0===l?(f.length2+=p.length,u+=p.length):c=!1,f.diffs.push([l,p]),p==i.diffs[0][1]?i.diffs.shift():i.diffs[0][1]=i.diffs[0][1].substring(p.length))}s=(s=this.diff_text2(f.diffs)).substring(s.length-this.Patch_Margin);var h=this.diff_text1(i.diffs).substring(0,this.Patch_Margin);""!==h&&(f.length1+=h.length,f.length2+=h.length,0!==f.diffs.length&&0===f.diffs[f.diffs.length-1][0]?f.diffs[f.diffs.length-1][1]+=h:f.diffs.push([0,h])),c||t.splice(++o,0,f)}}},r.prototype.patch_toText=function(t){for(var e=[],r=0;r<t.length;r++)e[r]=t[r];return e.join("")},r.prototype.patch_fromText=function(t){var e=[];if(!t)return e;for(var o=t.split("\n"),i=0,a=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;i<o.length;){var u=o[i].match(a);if(!u)throw new Error("Invalid patch string: "+o[i]);var s=new r.patch_obj;for(e.push(s),s.start1=parseInt(u[1],10),""===u[2]?(s.start1--,s.length1=1):"0"==u[2]?s.length1=0:(s.start1--,s.length1=parseInt(u[2],10)),s.start2=parseInt(u[3],10),""===u[4]?(s.start2--,s.length2=1):"0"==u[4]?s.length2=0:(s.start2--,s.length2=parseInt(u[4],10)),i++;i<o.length;){var f=o[i].charAt(0);try{var c=decodeURI(o[i].substring(1))}catch(t){throw new Error("Illegal escape in patch_fromText: "+c)}if("-"==f)s.diffs.push([n,c]);else if("+"==f)s.diffs.push([1,c]);else if(" "==f)s.diffs.push([0,c]);else{if("@"==f)break;if(""!==f)throw new Error('Invalid patch mode "'+f+'" in: '+c)}i++}}return e},r.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},r.patch_obj.prototype.toString=function(){for(var t,e=["@@ -"+(0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1)+" +"+(0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2)+" @@\n"],r=0;r<this.diffs.length;r++){switch(this.diffs[r][0]){case 1:t="+";break;case n:t="-";break;case 0:t=" "}e[r+1]=t+encodeURI(this.diffs[r][1])+"\n"}return e.join("").replace(/%20/g," ")},this.diff_match_patch=r,this.DIFF_DELETE=n,this.DIFF_INSERT=1,this.DIFF_EQUAL=0},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=Date.now.bind(Date),o=n(),i="undefined"!=typeof performance&&performance.now?performance.now.bind(performance):function(){return n()-o};e.default=i,t.exports=e.default},function(t,e,r){t.exports=r(76)},function(t,e,r){"use strict";var n=r(17);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(r(77)),i=n(r(79)),a=n(r(81)),u=n(r(82)),s=n(r(18)),f=r(36),c=n(r(88)),l=r(246);function p(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?p(Object(r),!0).forEach((function(e){(0,s.default)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var d=f.NativeModules.LogRocketNativeModule,v=f.NativeModules.NativeUnimoduleProxy,g=d||{},y=g.initWithConfig,_=g.installShutdownHandler,b=g.getSessionURL,E=g.captureException,m=g.captureReduxAction,O=g.captureReduxInitialState,x=g.captureRequest,w=g.captureResponse,P=g.addLog,S=g.identifyWithTraits,R=g.track,A=g.shutdown,j=!0,T=function(){var t,e;return j&&["storeClient","standalone"].includes(null==v||null===(t=v.moduleConstants)||void 0===t||null===(e=t.ExponentConstants)||void 0===e?void 0:e.executionEnvironment)},I=(0,c.default)(),M=new Set,D=function(t){M.has(t)||(M.add(t),console.warn("@logrocket/react-native ".concat(t)))},L=/^[a-z0-9_-]+\/[a-z0-9_-]+$/,N="@logrocket/react-native cannot be used in Expo Go. See https://docs.logrocket.com/docs/react-native-expo-go for more information.",C=function(t){for(var e=h({},t),r=0,n=Object.entries(e);r<n.length;r++){var o=(0,u.default)(n[r],2),i=o[0];o[1]||(e[i]=function(){})}return e},k={init:function(t){var e=arguments;return(0,a.default)(o.default.mark((function r(){var n,a,u,s;return o.default.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=e.length>1&&void 0!==e[1]?e[1]:{},a=n.dangerouslySkipExpoGoCheck,u=void 0!==a&&a,s=(0,i.default)(n,["dangerouslySkipExpoGoCheck"]),j=!u,!T()){r.next=6;break}return console.warn(N),I.shutdown(),r.abrupt("return");case 6:if(y){r.next=10;break}return console.warn("@logrocket/react-native native module is missing. Please review installation instructions."),I.shutdown(),r.abrupt("return");case 10:if("string"==typeof t&&L.test(t)){r.next=13;break}return console.warn("LogRocket: must pass a valid application id to the LogRocket instance."),r.abrupt("return");case 13:return r.next=15,y(t,h({serverURL:"https://r.lr-in.com/i"},s));case 15:r.sent?(I.init(s,C({addLog:P,captureException:E,captureReduxAction:m,captureReduxInitialState:O,captureRequest:x,captureResponse:w,identifyWithTraits:S,shutdown:A,track:R})),_&&_((function(){return I.uninstall()}))):(I.disableAndClearBuffer(),__DEV__&&console.warn("LogRocket initialization failed! Check device logs for further details."));case 17:case"end":return r.stop()}}),r)})))()},captureException:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};I._run((function(r){r.captureException(t,e)}))},getSessionURL:function(t){b?b(t):t("@logrocket/react-native does not yet support retrieving session URL.")},identify:function(t,e){I._run((function(r){r.identify(t,e)}))},reduxMiddleware:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=function(){return function(t){return function(e){return t(e)}}};return T()?(console.warn(N),e):"function"==typeof O&&"function"==typeof m?(0,l.createMiddleware)(I,t):e},track:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"ios"!==f.Platform.OS?I._run((function(r){r.track(t,e)})):D("custom events are not yet support for this platform.")},shutdown:function(){T()||I.shutdown()}};e.default=k,t.exports=e.default},function(t,e,r){t.exports=r(78)},function(t,e,r){var n=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),a=new A(n||[]);return i._invoke=function(t,e,r){var n=l;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return T()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=P(a,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var s=c(t,e,r);if("normal"===s.type){if(n=r.done?d:p,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=d,r.method="throw",r.arg=s.arg)}}}(t,r,a),i}function c(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var l="suspendedStart",p="suspendedYield",h="executing",d="completed",v={};function g(){}function y(){}function _(){}var b={};b[i]=function(){return this};var E=Object.getPrototypeOf,m=E&&E(E(j([])));m&&m!==r&&n.call(m,i)&&(b=m);var O=_.prototype=g.prototype=Object.create(b);function x(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function r(o,i,a,u){var s=c(t[o],t,i);if("throw"!==s.type){var f=s.arg,l=f.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return r("throw",t,a,u)}))}u(s.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function P(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=c(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:T}}function T(){return{value:e,done:!0}}return y.prototype=O.constructor=_,_.constructor=y,y.displayName=s(_,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,s(t,u,"GeneratorFunction")),t.prototype=Object.create(O),t},t.awrap=function(t){return{__await:t}},x(w.prototype),w.prototype[a]=function(){return this},t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(O),s(O,u,"Generator"),O[i]=function(){return this},O.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=j,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(R),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),f=n.call(a,"finallyLoc");if(s&&f){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),R(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;R(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},function(t,e,r){var n=r(80);t.exports=function(t,e){if(null==t)return{};var r,o,i=n(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o<a.length;o++)r=a[o],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){function r(t,e,r,n,o,i,a){try{var u=t[i](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).then(n,o)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function u(t){r(a,o,i,u,s,"next",t)}function s(t){r(a,o,i,u,s,"throw",t)}u(void 0)}))}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){var n=r(83),o=r(84),i=r(85),a=r(87);t.exports=function(t,e){return n(t)||o(t,e)||i(t,e)||a()},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t){if(Array.isArray(t))return t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t,e){var r=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){var n=r(86);t.exports=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";(function(t){var n=r(17);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return new P},e.MAX_QUEUE_SIZE=void 0;var o=n(r(89)),i=n(r(37)),a=n(r(38)),u=n(r(18)),s=r(36),f=n(r(90)),c=n(r(97)),l=r(43),p=n(r(9)),h=r(108),d=r(31),v=r(230),g=r(231),y=r(45),_=n(r(232));function b(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function E(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?b(Object(r),!0).forEach((function(e){(0,u.default)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var m=new Set(["[object Error]","[object DOMError]","[object DOMException]"]),O=1e3;e.MAX_QUEUE_SIZE=O;var x=["%c prev state","%c next state","%c action ","%c error ","%c action","%c error"];function w(t){var e={}.toString.call(t),r=t;return m.has(e)&&(r="".concat(t.constructor.name,": ").concat(t.message||t.name)),p.default.encode(r)}var P=function(){function e(){var r=this;(0,i.default)(this,e),this._getConfig=function(t){if(null==r._config)return{};var e=t.split(".");switch(e[1]){case"network":return r._config.network;case"core":switch(e[2]){case"LogEvent":return r._config.console}default:return{}}},this._isReduxLogger=function(t){if(!t||!t.args)return!1;var e=t.args;return!!(Array.isArray(e)&&3===e.length&&x.indexOf(e[0])>-1)},this.textEncoder=t.TextEncoder&&new t.TextEncoder,this._customPropCount=0,this._reduxActions={},this._buffer=[],this._didWarnAboutReduxLogger=!1,this.wallByteStreams={},this.reduxEncoder=new _.default,this.reset()}return(0,a.default)(e,[{key:"_run",value:function(t){if(!this._isDisabled)if(this._didInit)t(this);else{if(this._buffer.length>=O)return console.warn("LogRocket has not been initialized. Event buffering is now disabled."),this.disableAndClearBuffer(),void this.uninstall();this._buffer.push(t)}}},{key:"_registerExceptions",value:function(){var e=this,n=ErrorUtils.getGlobalHandler&&ErrorUtils.getGlobalHandler();ErrorUtils.setGlobalHandler((function(t,r){e.captureException(t),n&&n(t,r)}));var o=r(244);o.disable(),o.enable({allRejections:!0,onUnhandled:function(t,r){e.addEvent("lr.core.Exception",(function(){return{exceptionType:"UNHANDLED_REJECTION",message:r.reason||"Unhandled Promise rejection"}}))}});var i=r(245),a=i._onHandle||i._Y,u=i._onReject||i._Z,s=t.Promise._onHandle,f=t.Promise._onReject,c=t.Promise._Y,l=t.Promise._X;i!==t.Promise&&void 0!==a&&void 0!==u&&("_onHandle"in t.Promise&&"_onReject"in t.Promise?(t.Promise._onHandle=a,t.Promise._onReject=u):"_Y"in t.Promise&&"_Z"in t.Promise&&(t.Promise._Y=a,t.Promise._Z=u)),this._installed.push((function(){n&&ErrorUtils.setGlobalHandler(n),o.disable(),t.Promise._onHandle=s,t.Promise._onReject=f,t.Promise._Y=c,t.Promise._X=l}))}},{key:"addEvent",value:function(t,e,r){var n=this;if(!this._isDisabled){var o=e(this._getConfig(t)),i=Date.now();if(null!=o&&!this._isDisabled){var a=function(){if("lr.redux.ReduxAction"===t&&o.action&&o.action.type){var e=o.action.type;n._reduxActions[e]?n._reduxActions[e]++:n._reduxActions[e]=1,o.count=n._reduxActions[e]}if("lr.core.LogEvent"===t&&n._isReduxLogger(o))n._didWarnAboutReduxLogger||(n._didWarnAboutReduxLogger=!0,console.warn("LogRocket: Redux logger detected, skipping data. Please use the LogRocket redux middleware to record production redux logs: https://docs.logrocket.com/docs/redux-middleware"));else switch(t){case"lr.redux.InitialState":n._captureReduxInitialState(n.reduxEncoder.encodeInitialState(o));break;case"lr.redux.ReduxAction":n._captureReduxAction(n.reduxEncoder.encodeReduxAction(o));break;case"lr.core.Exception":var a=o.exceptionType,u=o.message,s=o.errorType,f=void 0===s?"":s;n._captureException(w(u),f,a,r&&JSON.stringify(r._stackTrace)||"[]");break;case"lr.core.LogEvent":var c=o.logLevel,l=o.args,p=l&&l.map(w);n._addLog(c,p||[]);break;case"lr.network.RequestEvent":n._inflightNetwork[o.reqId]={time:i},n._captureRequest(o.reqId,(0,h.getRequestData)(o));break;case"lr.network.ResponseEvent":var d=n._inflightNetwork[o.reqId],v=(0,h.getResponseData)(o);d&&d.time&&(v.duration=i-d.time),n._captureResponse(o.reqId,v),delete n._inflightNetwork[o.reqId]}};if(this._didInit)a();else{if(this._buffer.length>=O)return console.warn("LogRocket has not been initialized. Event buffering is now disabled."),this.disableAndClearBuffer(),void this.uninstall();this._buffer.push(a)}}}}},{key:"shutdown",value:function(){this._didInit?(this.uninstall(),this._shutdown()):this.disableAndClearBuffer()}},{key:"track",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof t)if(0!==t.length){var r=(0,v.sanitizeEventProps)(e,d.MAX_CUSTOM_PROPS_PER_SESSION-this._customPropCount),n=r.eventProps,o=r.errors;this._customPropCount+=Object.keys(n).length,o.forEach((function(t){return console.warn("LogRocket Track API: ".concat((0,g.printEventPropError)(t)))})),this._track(t,n)}else console.warn("LogRocket: custom event name must be not be an empty string");else console.warn("LogRocket: must pass string to track()")}},{key:"captureException",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};l.Capture.captureException(this,t,e)}},{key:"_divineAnonymousId",value:function(){return this._lastIdentifyCall&&this._lastIdentifyCall.isAnonymous?this._lastIdentifyCall.userID:(0,y.uuid)()}},{key:"identify",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],i=e[1],a=!1;if(this._identifyCalls++,!(this._identifyCalls>10)){if(10===this._identifyCalls&&console.warn("LogRocket: More than 10 identify calls on this page. Ignoring future calls."),null==i&&"object"===(0,o.default)(n)&&null!==n&&null==(n=(i=n||{}).userID)&&this._lastIdentifyCall&&this._lastIdentifyCall.userID){var u=this._lastIdentifyCall;n=u.userID,a=u.isAnonymous}if(!n){if(i&&(i.name||i.email)){var s=i.name?"name":"email";return void console.warn("LogRocket: user ".concat(s," passed to identify, but no userID given: identify(userId, { ").concat(s,": '...' })."))}a=!0,n=this._divineAnonymousId()}if(/string|number/.test((0,o.default)(n))){if(!(n.toString().length>this._maxIdentityArgLength)){var f=i;if(i){for(var c={},l=["userID","name","email"],p=0,h=Object.keys(i||{});p<h.length;p++){var d=h[p],v=i[d];if(-1===l.indexOf(d)){if(/boolean|number|string/.test((0,o.default)(v))){var g=d.toString();if(this.textEncoder&&this.textEncoder.encode(g).length>this._maxUserTraitBytes){console.warn("LogRocket: Ignoring large user trait key ".concat(g));continue}if(v.toString().length>this._maxIdentityArgLength){console.warn('LogRocket: ignoring large user trait value for key "'.concat(g,'" (max ').concat(this._maxIdentityArgLength," characters)"));continue}c[g]=v.toString()}}else if(v&&"string"==typeof v){if(v.length>this._maxIdentityArgLength){console.warn('LogRocket: too large generic trait "'.concat(d,'" passed to identify() (max ').concat(this._maxIdentityArgLength," characters)"));continue}c[d]=v}}f=c}return this._lastIdentifyCall={userID:n.toString(),email:f?f.email:void 0,name:f?f.name:void 0,isAnonymous:a},this._identifyWithTraits(this._lastIdentifyCall.userID,f,a)}console.warn("LogRocket: too large userID passed to identify() (max ".concat(this._maxIdentityArgLength," characters)"))}else console.warn("LogRocket: must pass a valid user id to identify().")}}},{key:"init",value:function(t,e){var r=e.addLog,n=void 0===r?function(){}:r,o=e.captureException,i=void 0===o?function(){}:o,a=e.captureReduxAction,u=void 0===a?function(){}:a,l=e.captureReduxInitialState,p=void 0===l?function(){}:l,h=e.captureRequest,d=void 0===h?function(){}:h,v=e.captureResponse,g=void 0===v?function(){}:v,y=e.identifyWithTraits,_=void 0===y?function(){}:y,b=e.track,m=void 0===b?function(){}:b,O=e.shutdown,x=void 0===O?function(){}:O,w=t.maxUserTraitBytes,P=void 0===w?128:w;if(this._didInit)console.error("LogRocket.init() was already called. You may only call LogRocket.init() once.");else for((0,c.default)(this),this._registerExceptions(),"ios"!==s.Platform.OS&&(0,f.default)(this,{isReactNative:!0,shouldAugmentNPS:!1,shouldParseXHRBlob:!1}),this._didInit=!0,this._isDisabled=!1,this._addLog=n,this._captureException=i,this._captureReduxAction=u,this._captureReduxInitialState=p,this._captureRequest=d,this._captureResponse=g,this._config=function(t){return E(E({},t),{},{console:E(E({},t.console||{}),{},{shouldAggregateConsoleErrors:!1})})}(t),this._identifyWithTraits=_,this._maxUserTraitBytes=P,this._track=m,this._shutdown=x;this._buffer.length>0;){this._buffer.shift()(this)}}},{key:"uninstall",value:function(){this._installed&&this._installed.forEach((function(t){return t()})),this.reset()}},{key:"disableAndClearBuffer",value:function(){this._isDisabled=!0,this._buffer=[]}},{key:"reset",value:function(){this._didInit=!1,this._config=null,this._installed=[],this._isDisabled=!1,this._addLog=function(){},this._captureRequest=function(){},this._captureResponse=function(){},this._track=function(){},this._inflightNetwork={},this._maxIdentityArgLength=1024,this._maxUserTraitBytes=128,this._buffer=[],this._customPropCount=0,this._identifyCalls=0,this._reduxActions={},this._didWarnAboutReduxLogger=!1,this.wallByteStreams={}}}]),e}()}).call(this,r(6))},function(t,e){function r(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(t.exports=r=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=r=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),r(e)}t.exports=r,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";var n=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{isReactNative:!1},r=e.isReactNative,n=e.shouldAugmentNPS,o=e.shouldParseXHRBlob,c={},p=function(t){var e=t;if("object"===(0,i.default)(t)&&null!=t){var r=Object.getPrototypeOf(t);r!==Object.prototype&&null!==r||(e=JSON.stringify(t))}if(e&&e.length&&e.length>4096e3&&"string"==typeof e){var n=e.substring(0,1e3);return"".concat(n," ... LogRocket truncating to first 1000 characters.\n Keep data under 4MB to prevent truncation. https://docs.logrocket.com/reference#network")}return t},h=function(e,r){var n=r.method;t.addEvent("lr.network.RequestEvent",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=t.isEnabled,i=void 0===o||o,a=t.requestSanitizer,u=void 0===a?function(t){return t}:a;if(!i)return null;var s=null;try{s=u(l(l({},r),{},{reqId:e}))}catch(t){console.error(t)}if(s){var h=s.url;if("undefined"!=typeof document&&"function"==typeof document.createElement){var d=document.createElement("a");d.href=s.url,h=d.href}return{reqId:e,url:h,headers:(0,f.default)(s.headers,(function(t){return"".concat(t)})),body:p(s.body),method:n,referrer:s.referrer||void 0,mode:s.mode||void 0,credentials:s.credentials||void 0}}return c[e]=!0,null}))},d=function(e,r){var n=r.method,o=r.status;t.addEvent("lr.network.ResponseEvent",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.isEnabled,a=void 0===i||i,u=t.responseSanitizer,s=void 0===u?function(t){return t}:u;if(!a)return null;if(c[e])return delete c[e],null;var h=null;try{h=s(l(l({},r),{},{reqId:e}))}catch(t){console.error(t)}return h?{reqId:e,status:h.status,headers:(0,f.default)(h.headers,(function(t){return"".concat(t)})),body:p(h.body),method:n}:{reqId:e,status:o,headers:{},body:null,method:n}}))},v=function(e){return t.isDisabled||!0===c[e]},g=(0,a.default)({addRequest:h,addResponse:d,isIgnored:v}),y=(0,s.default)({addRequest:h,addResponse:d,isIgnored:v,logger:t,shouldAugmentNPS:n,shouldParseXHRBlob:o}),_=r?function(){}:(0,u.default)(t);return function(){_(),g(),y()}};var o=n(r(2)),i=n(r(3)),a=n(r(91)),u=n(r(96)),s=n(r(41)),f=n(r(19));function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){(0,o.default)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}t.exports=e.default},function(t,e,r){"use strict";var n=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.addRequest,r=t.addResponse,n=t.isIgnored,o="fetch-",i={};return a.default.register({request:function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];var u;if("undefined"!=typeof Request&&n[0]instanceof Request){var f;try{f=n[0].clone().text()}catch(t){f=Promise.resolve("LogRocket fetch error: ".concat(t.message))}u=f.then((function(t){return s(s({},c(n[0])),{},{body:t})}),(function(t){return s(s({},c(n[0])),{},{body:"LogRocket fetch error: ".concat(t.message)})}))}else u=Promise.resolve(s(s({},c(n[1])),{},{url:"".concat(n[0]),body:(n[1]||{}).body}));return u.then((function(r){return i[t]=r.method,e("".concat(o).concat(t),r),n}))},requestError:function(t,e){return Promise.reject(e)},response:function(t,e){var a;if(n("".concat(o).concat(t)))return e;try{a=e.clone().text()}catch(t){a=Promise.resolve("LogRocket fetch error: ".concat(t.message))}return a.catch((function(t){if(!("AbortError"===t.name&&t instanceof DOMException))throw t})).then((function(n){var a={url:e.url,status:e.status,headers:f(e.headers),body:n,method:i[t]};delete i[t],r("".concat(o).concat(t),a)})),e},responseError:function(t,e){var n={url:void 0,status:0,headers:{},body:"".concat(e)};return r("".concat(o).concat(t),n),Promise.reject(e)}})};var o=n(r(2)),i=n(r(19)),a=n(r(92));function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){(0,o.default)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var f=function(t){return(0,i.default)(function(t){if(null==t||"function"!=typeof t.forEach)return t;var e={};return t.forEach((function(t,r){e[r]?e[r]="".concat(e[r],",").concat(t):e[r]="".concat(t)})),e}(t),(function(t){return"".concat(t)}))};function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{url:t.url,headers:f(t.headers),method:t.method&&t.method.toUpperCase(),referrer:t.referrer||void 0,mode:t.mode||void 0,credentials:t.credentials||void 0}}t.exports=e.default},function(t,e,r){"use strict";var n=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(r(20)),i=r(41),a=[];function u(t,e){for(var r=a.reduce((function(t,e){return[e].concat(t)}),[]),n=arguments.length,u=new Array(n>2?n-2:0),s=2;s<n;s++)u[s-2]=arguments[s];var f=Promise.resolve(u);return r.forEach((function(t){var r=t.request,n=t.requestError;(r||n)&&(f=f.then((function(t){return r.apply(void 0,[e].concat((0,o.default)(t)))}),(function(t){return n.apply(void 0,[e].concat((0,o.default)(t)))})))})),f=f.then((function(e){var r,n;(0,i.setActive)(!1);try{r=t.apply(void 0,(0,o.default)(e))}catch(t){n=t}if((0,i.setActive)(!0),n)throw n;return r})),r.forEach((function(t){var r=t.response,n=t.responseError;(r||n)&&(f=f.then((function(t){return r(e,t)}),(function(t){return n&&n(e,t)})))})),f}var s=!1,f={register:function(t){return s||(s=!0,function(t){if(t.fetch&&t.Promise){var e,r,n=t.fetch.polyfill;t.fetch=(e=t.fetch,r=0,function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return u.apply(void 0,[e,r++].concat(n))}),n&&(t.fetch.polyfill=n)}}(window)),a.push(t),function(){var e=a.indexOf(t);e>=0&&a.splice(e,1)}},clear:function(){a=[]}};e.default=f,t.exports=e.default},function(t,e,r){var n=r(39);t.exports=function(t){if(Array.isArray(t))return n(t)},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=void 0;function r(){var r={online:window.navigator.onLine,effectiveType:"UNKOWN"};window.navigator.onLine?window.navigator.connection&&window.navigator.connection.effectiveType&&(r.effectiveType=n[window.navigator.connection.effectiveType]||"UNKNOWN"):r.effectiveType="NONE",e&&r.online===e.online&&r.effectiveType===e.effectiveType||(e=r,t.addEvent("lr.network.NetworkStatusEvent",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.isEnabled,n=void 0===e||e;return n?r:null})))}setTimeout(r),window.navigator.connection&&"function"==typeof window.navigator.connection.addEventListener&&window.navigator.connection.addEventListener("change",r);return window.addEventListener("online",r),window.addEventListener("offline",r),function(){window.removeEventListener("offline",r),window.removeEventListener("online",r),window.navigator.connection&&"function"==typeof window.navigator.connection.removeEventListener&&window.navigator.connection.removeEventListener("change",r)}};var n={"slow-2g":"SLOW2G","2g":"TWOG","3g":"THREEG","4g":"FOURG"};t.exports=e.default},function(t,e,r){"use strict";var n=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(r(98)).default;e.default=o,t.exports=e.default},function(t,e,r){"use strict";var n=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=[];return["log","warn","info","error","debug"].forEach((function(r){e.push((0,i.default)(console,r,(function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];t.addEvent("lr.core.LogEvent",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.isEnabled;return"object"===(0,o.default)(i)&&!1===i[r]||!1===i?null:("error"===r&&e.shouldAggregateConsoleErrors&&a.Capture.captureMessage(t,n[0],{},!0),{logLevel:r.toUpperCase(),args:n})}))})))})),function(){e.forEach((function(t){return t()}))}};var o=n(r(3)),i=n(r(21)),a=r(43);t.exports=e.default},function(t,e,r){"use strict";var n=r(23),o=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=new i.default({captureException:function(e){a.captureException(t,null,null,e)}}),r=function(e){t.addEvent("lr.core.Exception",(function(){return{exceptionType:"UNHANDLED_REJECTION",message:e.reason||"Unhandled Promise rejection"}}))};return window.addEventListener("unhandledrejection",r),function(){window.removeEventListener("unhandledrejection",r),e.uninstall()}};var i=o(r(100)),a=n(r(44));t.exports=e.default},function(t,e,r){"use strict";(function(n){var o=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(r(101)),a=o(r(102)),u=o(r(24)),s=Object.prototype;function f(t){return void 0===t}function c(t){return"function"==typeof t}function l(t,e){return s.hasOwnProperty.call(t,e)}function p(t,e,r,n){var o=t[e];t[e]=r(o),n&&n.push([t,e,o])}var h="undefined"!=typeof window?window:void 0!==n?n:"undefined"!=typeof self?self:{},d=(h.document,function(){function t(e){var r=e.captureException;(0,i.default)(this,t),this._errorHandler=this._errorHandler.bind(this),this._ignoreOnError=0,this._wrappedBuiltIns=[],this.captureException=r,u.default.report.subscribe(this._errorHandler),this._instrumentTryCatch()}return(0,a.default)(t,[{key:"uninstall",value:function(){var t;for(u.default.report.unsubscribe(this._errorHandler);this._wrappedBuiltIns.length;){var e=(t=this._wrappedBuiltIns.shift())[0],r=t[1],n=t[2];e[r]=n}}},{key:"_errorHandler",value:function(t){this._ignoreOnError||this.captureException(t)}},{key:"_ignoreNextOnError",value:function(){var t=this;this._ignoreOnError+=1,setTimeout((function(){t._ignoreOnError-=1}))}},{key:"context",value:function(t,e,r){return c(t)&&(r=e||[],e=t,t=void 0),this.wrap(t,e).apply(this,r)}},{key:"wrap",value:function(t,e,r){var n=this;if(f(e)&&!c(t))return t;if(c(t)&&(e=t,t=void 0),!c(e))return e;try{if(e.__lr__)return e;if(e.__lr_wrapper__)return e.__lr_wrapper__;if(!Object.isExtensible(e))return e}catch(t){return e}function o(){var o=[],i=arguments.length,a=!t||t&&!1!==t.deep;for(r&&c(r)&&r.apply(this,arguments);i--;)o[i]=a?n.wrap(t,arguments[i]):arguments[i];try{return e.apply(this,o)}catch(e){throw n._ignoreNextOnError(),n.captureException(u.default.computeStackTrace(e),t),e}}for(var i in e)l(e,i)&&(o[i]=e[i]);return o.prototype=e.prototype,e.__lr_wrapper__=o,o.__lr__=!0,o.__inner__=e,o}},{key:"_instrumentTryCatch",value:function(){var t=this,e=t._wrappedBuiltIns;function r(e){return function(r,n){for(var o=new Array(arguments.length),i=0;i<o.length;++i)o[i]=arguments[i];var a=o[0];return c(a)&&(o[0]=t.wrap(a)),e.apply?e.apply(this,o):e(o[0],o[1])}}function n(r){var n=h[r]&&h[r].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(p(n,"addEventListener",(function(e){return function(r,n,o,i){try{n&&n.handleEvent&&(n.handleEvent=t.wrap(n.handleEvent))}catch(t){}return e.call(this,r,t.wrap(n,void 0,undefined),o,i)}}),e),p(n,"removeEventListener",(function(t){return function(e,r,n,o){try{r=r&&(r.__lr_wrapper__?r.__lr_wrapper__:r)}catch(t){}return t.call(this,e,r,n,o)}}),e))}p(h,"setTimeout",r,e),p(h,"setInterval",r,e),h.requestAnimationFrame&&p(h,"requestAnimationFrame",(function(e){return function(r){return e(t.wrap(r))}}),e);for(var o=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],i=0;i<o.length;i++)n(o[i]);var a=h.jQuery||h.$;a&&a.fn&&a.fn.ready&&p(a.fn,"ready",(function(e){return function(r){return e.call(this,t.wrap(r))}}),e)}}]),t}());e.default=d,t.exports=e.default}).call(this,r(6))},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){function e(t){return null===t?void 0:t}return t.stack?t.stack.map((function(t){return{lineNumber:e(t.line),columnNumber:e(t.column),fileName:e(t.url),functionName:e(t.func)}})):void 0},t.exports=e.default},function(t,e,r){"use strict";(function(t){
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.LogRocketReactNative=e():t.LogRocketReactNative=e()}(window,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=75)}([function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){var n=r(57),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},function(t,e){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){function r(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(t.exports=r=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=r=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),r(e)}t.exports=r,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){var r=Array.isArray;t.exports=r},function(t,e,r){var n=r(155),o=r(160);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){var n=r(12),o=r(156),i=r(157),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,r){"use strict";(function(n){var o=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(r(3)),a=-2,u=Object.create(null),s=function(t,e){function r(r){if("function"!=typeof e[r])throw new Error("second argument to ARSON.registerType("+JSON.stringify(t)+", ...) must be an object with a "+r+" method")}r("deconstruct"),r("reconstruct"),u[t]=e},f=Object.prototype.toString;"function"==typeof n&&"function"==typeof n.isBuffer&&s("Buffer",{deconstruct:function(t){return n.isBuffer(t)&&[t.toString("base64"),"base64"]},reconstruct:function(t){return t&&n.from(t[0],t[1])}}),s("Date",{deconstruct:function(t){return"[object Date]"===f.call(t)&&[t.toJSON()]},reconstruct:function(t){return t&&new Date(t[0])}}),s("RegExp",{deconstruct:function(t){if("[object RegExp]"===f.call(t)){var e=[t.source],r="";return t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.global&&(r+="g"),r&&e.push(r),e}},reconstruct:function(t){return t&&new RegExp(t[0],t[1])}}),"function"==typeof Set&&"function"==typeof Array.from&&s("Set",{deconstruct:function(t){if("[object Set]"===f.call(t))return Array.from(t)},reconstruct:function(t){if(!t)return new Set;t.forEach(this.add,this)}}),"function"==typeof Map&&"function"==typeof Array.from&&s("Map",{deconstruct:function(t){if("[object Map]"===f.call(t))return Array.from(t)},reconstruct:function(t){if(!t)return new Map;t.forEach((function(t){this.set(t[0],t[1])}),this)}});var c={encode:function(t){return JSON.stringify(function(t){var e=[],r="function"==typeof Map&&new Map;function n(t){switch((0,i.default)(t)){case"undefined":return-1;case"number":if(isNaN(t))return-3;if(!isFinite(t))return t<0?-5:-4}var n;return r?void 0===(n=r.get(t))&&(n=e.push(t)-1,r.set(t,n)):(n=e.indexOf(t))<0&&(n=e.push(t)-1),n}function o(t){var e=t;if(t&&"object"===(0,i.default)(t)){var r=Object.keys(t);if(function(t){if(t&&"object"===(0,i.default)(t)){return(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__)===Object.prototype}return!1}(t))e={};else{if(!Array.isArray(t)){for(var o in u){var a=u[o].deconstruct(t);if(a){for(f=0;f<a.length;++f)a[f]=n(a[f]);return a.unshift(o),a}}return{}.toString.call(t)}e=Array(t.length);var s=t.length;if(s>r.length)for(var f=0;f<s;++f)e[f]=-2}r.forEach((function(r){e[r]=n(t[r])}))}return e}var a=n(t);if(a<0)return a;for(var s=[],f=0;f<e.length;++f)s[f]=o(e[f]);return s}(t))},decode:function(t){return function(t){if("number"==typeof t&&t<0)return n(t);var e=new Array(t.length);function r(t){return t in e?e[t]:e[t]=n(t)}function n(e){if(e<0){if(-1===e)return;if(e===a)return;if(-3===e)return NaN;if(-4===e)return 1/0;if(-5===e)return-1/0;throw new Error("invalid ARSON index: "+e)}var n=t[e];if(n&&"object"===(0,i.default)(n)){if(Array.isArray(n)){var f=n[0];if("string"==typeof f&&f in u){var c=u[f].reconstruct,l=c();return l&&o.push({reconstruct:c,empty:l,argIndexes:n.slice(1)}),t[e]=l||c(n.slice(1).map(r))}}s.push(n)}return n}var o=[],s=[];return t.forEach((function(t,e){r(e)})),o.forEach((function(t){t.args=t.argIndexes.map(r)})),s.forEach((function(e){Object.keys(e).forEach((function(n){var o=e[n];if("number"==typeof o)if(o<0){if(o===a)return void delete e[n];e[n]=r(o)}else e[n]=t[o]}))})),o.forEach((function(t){t.reconstruct.call(t.empty,t.args)})),t[0]}(JSON.parse(t))}};e.default=c,t.exports=e.default}).call(this,r(104).Buffer)},function(t,e,r){var n=r(145),o=r(146),i=r(147),a=r(148),u=r(149);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},function(t,e,r){var n=r(55);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},function(t,e,r){var n=r(1).Symbol;t.exports=n},function(t,e,r){var n=r(5)(Object,"create");t.exports=n},function(t,e,r){var n=r(169);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},function(t,e,r){var n=r(7),o=r(8);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},function(t,e,r){var n=r(15);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e}},function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(null==t)return{};var r={};return Object.keys(t).forEach((function(n){r[n]=e(t[n])})),r},t.exports=e.default},function(t,e,r){var n=r(93),o=r(94),i=r(40),a=r(95);t.exports=function(t){return n(t)||o(t)||i(t)||a()},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,r){var n=t[e];return t[e]=function(){for(var t,e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];n&&(t=n.apply(this,o));return r.apply(this,o),t},function(){t[e]=n}},t.exports=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return t&&e&&t.substring(r,r+e.length)===e},t.exports=e.default},function(t,e,r){var n=r(3).default;function o(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(o=function(t){return t?r:e})(t)}t.exports=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==n(t)&&"function"!=typeof t)return{default:t};var r=o(e);if(r&&r.has(t))return r.get(t);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&Object.prototype.hasOwnProperty.call(t,u)){var s=a?Object.getOwnPropertyDescriptor(t,u):null;s&&(s.get||s.set)?Object.defineProperty(i,u,s):i[u]=t[u]}return i.default=t,r&&r.set(t,i),i},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";(function(r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={collectWindowErrors:!0,debug:!1},o="undefined"!=typeof window?window:void 0!==r?r:"undefined"!=typeof self?self:{},i=[].slice,a="?",u=/^(?:Uncaught (?:exception: )?)?((?:Eval|Internal|Range|Reference|Syntax|Type|URI)Error): ?(.*)$/;function s(){return"undefined"==typeof document||void 0===document.location?"":document.location.href}n.report=function(){var t,e,r=[],f=null,c=null,l=null;function p(t,e){var o=null;if(!e||n.collectWindowErrors){for(var a in r)if(r.hasOwnProperty(a))try{r[a].apply(null,[t].concat(i.call(arguments,2)))}catch(t){o=t}if(o)throw o}}function h(e,r,o,i,f){if(l)n.computeStackTrace.augmentStackTraceWithInitialElement(l,r,o,e),d();else if(f)p(n.computeStackTrace(f),!0);else{var c,h={url:r,line:o,column:i},v=void 0,g=e;if("[object String]"==={}.toString.call(e))(c=e.match(u))&&(v=c[1],g=c[2]);h.func=a,p({name:v,message:g,url:s(),stack:[h]},!0)}return!!t&&t.apply(this,arguments)}function d(){var t=l,e=f;f=null,l=null,c=null,p.apply(null,[t,!1].concat(e))}function v(t,e){var r=i.call(arguments,1);if(l){if(c===t)return;d()}var o=n.computeStackTrace(t);if(l=o,c=t,f=r,setTimeout((function(){c===t&&d()}),o.incomplete?2e3:0),!1!==e)throw t}return v.subscribe=function(n){!function(){if(e)return;t=o.onerror,o.onerror=h,e=!0}(),r.push(n)},v.unsubscribe=function(t){for(var e=r.length-1;e>=0;--e)r[e]===t&&r.splice(e,1)},v.uninstall=function(){!function(){if(!e)return;o.onerror=t,e=!1,t=void 0}(),r=[]},v}(),n.computeStackTrace=function(){function t(t){if(void 0!==t.stack&&t.stack){for(var e,r,n=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|<anonymous>).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,o=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|resource|\[native).*?)(?::(\d+))?(?::(\d+))?\s*$/i,i=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,u=t.stack.split("\n"),f=[],c=(/^(.*) is undefined$/.exec(t.message),0),l=u.length;c<l;++c){if(e=n.exec(u[c])){var p=e[2]&&-1!==e[2].indexOf("native");r={url:p?null:e[2],func:e[1]||a,args:p?[e[2]]:[],line:e[3]?+e[3]:null,column:e[4]?+e[4]:null}}else if(e=i.exec(u[c]))r={url:e[2],func:e[1]||a,args:[],line:+e[3],column:e[4]?+e[4]:null};else{if(!(e=o.exec(u[c])))continue;r={url:e[3],func:e[1]||a,args:e[2]?e[2].split(","):[],line:e[4]?+e[4]:null,column:e[5]?+e[5]:null}}!r.func&&r.line&&(r.func=a),f.push(r)}return f.length?(f[0].column||void 0===t.columnNumber||(f[0].column=t.columnNumber+1),{name:t.name,message:t.message,url:s(),stack:f}):null}}function e(t,e,r,n){var o={url:e,line:r};if(o.url&&o.line){if(t.incomplete=!1,o.func||(o.func=a),t.stack.length>0&&t.stack[0].url===o.url){if(t.stack[0].line===o.line)return!1;if(!t.stack[0].line&&t.stack[0].func===o.func)return t.stack[0].line=o.line,!1}return t.stack.unshift(o),t.partial=!0,!0}return t.incomplete=!0,!1}function r(t,i){for(var u,f,c=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,l=[],p={},h=!1,d=r.caller;d&&!h;d=d.caller)if(d!==o&&d!==n.report){if(f={url:null,func:a,line:null,column:null},d.name?f.func=d.name:(u=c.exec(d.toString()))&&(f.func=u[1]),void 0===f.func)try{f.func=u.input.substring(0,u.input.indexOf("{"))}catch(t){}p[""+d]?h=!0:p[""+d]=!0,l.push(f)}i&&l.splice(0,i);var v={name:t.name,message:t.message,url:s(),stack:l};return e(v,t.sourceURL||t.fileName,t.line||t.lineNumber,t.message||t.description),v}function o(e,o){var i=null;o=null==o?0:+o;try{if(i=t(e))return i}catch(t){if(n.debug)throw t}try{if(i=r(e,o+1))return i}catch(t){if(n.debug)throw t}return{name:e.name,message:e.message,url:s()}}return o.augmentStackTraceWithInitialElement=e,o.computeStackTraceFromStackProp=t,o}();var f=n;e.default=f,t.exports=e.default}).call(this,r(6))},function(t,e,r){var n=r(118),o=r(119),i=r(40),a=r(120);t.exports=function(t,e){return n(t)||o(t,e)||i(t,e)||a()},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){var n=r(5)(r(1),"Map");t.exports=n},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,r){var n=r(161),o=r(168),i=r(170),a=r(171),u=r(172);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e,r){var n=r(4),o=r(15),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||(a.test(t)||!i.test(t)||null!=e&&t in Object(e))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MAX_CUSTOM_PROPS_PER_SESSION=e.MAX_PROPERTY_NAME_LENGTH=e.SUPPORTED_TYPES=e.RESERVED_PROP_MAPPINGS=e.RESERVED_PROPS=e.VALIDATION_ERRORS=void 0;e.VALIDATION_ERRORS={EMPTY_ARRAY:"EMPTY_ARRAY",MIXED_TYPE_ARRAY:"MIXED_TYPE_ARRAY",UNSUPPORTED_TYPE:"UNSUPPORTED_TYPE",RESERVED_TYPE_MISMATCH:"RESERVED_TYPE_MISMATCH",MAX_PROPS_REACHED:"MAX_PROPS_REACHED",NAME_TOO_LONG:"NAME_TOO_LONG",MALFORMED_VARIANT:"MALFORMED_VARIANT"};e.RESERVED_PROPS={revenue:"number"};e.RESERVED_PROP_MAPPINGS={revenue:{type:"double"}};e.SUPPORTED_TYPES=["boolean","number","string"];e.MAX_PROPERTY_NAME_LENGTH=100;e.MAX_CUSTOM_PROPS_PER_SESSION=500},function(t,e,r){var n=r(33).Context,o=r(72),i=function(t,e){this.left=t,this.right=e,this.pipe="diff"};(i.prototype=new n).setResult=function(t){if(this.options.cloneDiffValues&&"object"==typeof t){var e="function"==typeof this.options.cloneDiffValues?this.options.cloneDiffValues:o;"object"==typeof t[0]&&(t[0]=e(t[0])),"object"==typeof t[1]&&(t[1]=e(t[1]))}return n.prototype.setResult.apply(this,arguments)},e.DiffContext=i},function(t,e,r){var n=r(71).Pipe,o=function(){};o.prototype.setResult=function(t){return this.result=t,this.hasResult=!0,this},o.prototype.exit=function(){return this.exiting=!0,this},o.prototype.switchTo=function(t,e){return"string"==typeof t||t instanceof n?this.nextPipe=t:(this.next=t,e&&(this.nextPipe=e)),this},o.prototype.push=function(t,e){return t.parent=this,void 0!==e&&(t.childName=e),t.root=this.root||this,t.options=t.options||this.options,this.children?(this.children[this.children.length-1].next=t,this.children.push(t)):(this.children=[t],this.nextAfterChildren=this.next||null,this.next=t),t.next=this,this},e.Context=o},function(t,e,r){var n=r(33).Context,o=function(t,e){this.left=t,this.delta=e,this.pipe="patch"};o.prototype=new n,e.PatchContext=o},function(t,e,r){var n=r(33).Context,o=function(t){this.delta=t,this.pipe="reverse"};o.prototype=new n,e.ReverseContext=o},function(t,e){t.exports=require("react-native")},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){var n=r(39);t.exports=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";var n=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.setActive=function(t){s=t},e.default=function(t){var e=t.addRequest,r=t.addResponse,n=t.isIgnored,c=t.logger,l=t.shouldAugmentNPS,p=void 0===l||l,h=t.shouldParseXHRBlob,d=void 0!==h&&h,v=XMLHttpRequest,g=new WeakMap,y=!1,_="xhr-";return window._lrXMLHttpRequest=XMLHttpRequest,XMLHttpRequest=function(t,l){var h=new v(t,l);if(!s)return h;g.set(h,{xhrId:++f,headers:{}});var b=h.open;var E=h.send;p&&(h.open=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];try{var n=e[1];if(window.URL&&"function"==typeof window.URL&&0===n.search(u.WOOTRIC_RESPONSES_REGEX)){var o=new window.URL(c.recordingURL);o.searchParams.set("nps","wootric");var i=new window.URL(n),a=i.searchParams.get("response[text]"),s=a?"".concat(a,"\n\n"):"";i.searchParams.set("response[text]","".concat(s,"<").concat(o.href,"|View LogRocket session>")),e[1]=i.href}}catch(t){}return b.apply(this,e)},h.send=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];try{var n=g.get(h);if(window.URL&&"function"==typeof window.URL&&n&&n.url&&0===n.url.search(u.DELIGHTED_RESPONSES_REGEX)&&e.length&&-1!==e[0].indexOf(u.DELIGHTED_FEEDBACK_PREFIX)){var o=new window.URL(c.recordingURL);o.searchParams.set("nps","delighted");var i=encodeURIComponent(o.href),s=e[0].split("&").map((function(t){if((0,a.default)(t,u.DELIGHTED_FEEDBACK_PREFIX)){var e=t===u.DELIGHTED_FEEDBACK_PREFIX;return"".concat(t).concat(e?"":"\n\n","<").concat(i,"|View LogRocket session>")}return t})).join("&");e[0]=s}}catch(t){}return E.apply(this,e)}),(0,i.default)(h,"open",(function(t,e){if(!y){var r=g.get(h);r.method=t,r.url=e}})),(0,i.default)(h,"send",(function(t){if(!y){var r=g.get(h);if(r){var n={url:r.url,method:r.method&&r.method.toUpperCase(),headers:(0,o.default)(r.headers||{},(function(t){return t.join(", ")})),body:t};e("".concat(_).concat(r.xhrId),n)}}})),(0,i.default)(h,"setRequestHeader",(function(t,e){if(!y){var r=g.get(h);r&&(r.headers=r.headers||{},r.headers[t]=r.headers[t]||[],r.headers[t].push(e))}}));var m={readystatechange:function(){if(!y&&4===h.readyState){var t=g.get(h);if(!t)return;if(n("".concat(_).concat(t.xhrId)))return;var e,o=h.getAllResponseHeaders().split(/[\r\n]+/).reduce((function(t,e){var r=t,n=e.split(": ");if(n.length>0){var o=n.shift(),i=n.join(": ");t[o]?r[o]+=", ".concat(i):r[o]=i}return r}),{});try{switch(h.responseType){case"json":e=c._shouldCloneResponse?JSON.parse(JSON.stringify(h.response)):h.response;break;case"arraybuffer":case"blob":e=h.response;break;case"document":e=h.responseXML;break;case"text":case"":e=h.responseText;break;default:e=""}}catch(t){e="LogRocket: Error accessing response."}var i={url:t.url,status:h.status,headers:o,body:e,method:(t.method||"").toUpperCase()};if(d&&i.body instanceof Blob){var a=new FileReader;a.readAsText(i.body),a.onload=function(){try{i.body=JSON.parse(a.result)}catch(t){}r("".concat(_).concat(t.xhrId),i)}}else r("".concat(_).concat(t.xhrId),i)}}};return Object.keys(m).forEach((function(t){h.addEventListener(t,m[t])})),h},XMLHttpRequest.prototype=v.prototype,["UNSENT","OPENED","HEADERS_RECEIVED","LOADING","DONE"].forEach((function(t){XMLHttpRequest[t]=v[t]})),function(){y=!0,XMLHttpRequest=v}};var o=n(r(19)),i=n(r(21)),a=n(r(22)),u=r(42),s=!0;var f=0},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DELIGHTED_FEEDBACK_PREFIX=e.DELIGHTED_RESPONSES_REGEX=e.WOOTRIC_RESPONSES_REGEX=void 0;e.WOOTRIC_RESPONSES_REGEX=/^https:\/\/production.wootric.com\/responses/;e.DELIGHTED_RESPONSES_REGEX=/^https:\/\/web.delighted.com\/e\/[a-zA-Z-]*\/c/;e.DELIGHTED_FEEDBACK_PREFIX="comment="},function(t,e,r){"use strict";var n=r(23),o=r(0);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"registerExceptions",{enumerable:!0,get:function(){return i.default}}),e.Capture=void 0;var i=o(r(99)),a=n(r(44));e.Capture=a},function(t,e,r){"use strict";var n=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.captureMessage=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o={exceptionType:n?"CONSOLE":"MESSAGE",message:e,browserHref:window.location?window.location.href:""};s(o,r),t.addEvent("lr.core.Exception",(function(){return o}))},e.captureException=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=n||i.default.computeStackTrace(e),u={exceptionType:"WINDOW",errorType:o.name,message:o.message,browserHref:window.location?window.location.href:""};s(u,r);var f={_stackTrace:(0,a.default)(o)};t.addEvent("lr.core.Exception",(function(){return u}),f)};var o=n(r(3)),i=n(r(24)),a=n(r(103));function u(t){return/boolean|number|string/.test((0,o.default)(t))}function s(t,e){if(e){for(var r=0,n=["level","logger"];r<n.length;r++){var o=n[r],i=e[o];u(i)&&(t[o]=i.toString())}for(var a=0,s=["tags","extra"];a<s.length;a++){for(var f=s[a],c=e[f]||{},l={},p=0,h=Object.keys(c);p<h.length;p++){var d=h[p],v=c[d];u(v)&&(l[d.toString()]=v.toString())}t[f]=l}}}},function(t,e,r){"use strict";var n=r(23),o=r(0);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"enhanceFunc",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"shallowArsonify",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"shallowDearsonify",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"deepArsonify",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"deepDearsonify",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"addListener",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"protectFunc",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"findIndex",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"find",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"flatten",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"selectorMatches",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"parseSelectorForMatch",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"parseSelectorForSearch",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"querySelectorWithShadowDom",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"sendErrorTelemetry",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"sendTelemetry",{enumerable:!0,get:function(){return b.sendTelemetry}}),Object.defineProperty(e,"sanitizeValue",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(e,"startsWith",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"endsWith",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(e,"contains",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"uuid",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"randomInt",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(e,"getNodeSelector",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(e,"getGraphQLOperation",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(e,"isSessionEvent",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(e,"isActivityEvent",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(e,"parseIntFromHex",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(e,"isRecordingSampled",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(e,"makeRecordingID",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(e,"setFromArray",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(e,"setToArray",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(e,"applyUrlSanitizer",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(e,"getMockDeveloperUser",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(e,"isDemoOrg",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(e,"LOG_FILTER_TYPES",{enumerable:!0,get:function(){return U.LOG_FILTER_TYPES}}),Object.defineProperty(e,"LOG_TYPES",{enumerable:!0,get:function(){return U.LOG_TYPES}}),Object.defineProperty(e,"METRIC_TIMESERIES_TYPE",{enumerable:!0,get:function(){return Y.METRIC_TIMESERIES_TYPE}}),Object.defineProperty(e,"HEATMAP_FOR_URL_OPERATOR",{enumerable:!0,get:function(){return Y.HEATMAP_FOR_URL_OPERATOR}}),Object.defineProperty(e,"DEFAULT_HEATMAP_FOR_URL_OPERATOR",{enumerable:!0,get:function(){return Y.DEFAULT_HEATMAP_FOR_URL_OPERATOR}}),Object.defineProperty(e,"DEFAULT_INSIGHTS_HEATMAP_FOR_URL_OPERATOR",{enumerable:!0,get:function(){return Y.DEFAULT_INSIGHTS_HEATMAP_FOR_URL_OPERATOR}}),Object.defineProperty(e,"SORT_DIRECTION",{enumerable:!0,get:function(){return Y.SORT_DIRECTION}}),Object.defineProperty(e,"FEEDBACK_SORT_COLUMN",{enumerable:!0,get:function(){return Y.FEEDBACK_SORT_COLUMN}}),Object.defineProperty(e,"ISSUE_TYPE",{enumerable:!0,get:function(){return F.ISSUE_TYPE}}),Object.defineProperty(e,"ISSUE_GROUP_TYPE",{enumerable:!0,get:function(){return F.ISSUE_GROUP_TYPE}}),Object.defineProperty(e,"ES_ISSUE_TYPE_BASE_FILTER",{enumerable:!0,get:function(){return F.ES_ISSUE_TYPE_BASE_FILTER}}),Object.defineProperty(e,"ES_ISSUE_TYPES",{enumerable:!0,get:function(){return F.ES_ISSUE_TYPES}}),Object.defineProperty(e,"DYNAMIC_ES_ISSUE_TYPES",{enumerable:!0,get:function(){return F.DYNAMIC_ES_ISSUE_TYPES}}),Object.defineProperty(e,"HASHED_ES_ISSUE_TYPES",{enumerable:!0,get:function(){return F.HASHED_ES_ISSUE_TYPES}}),Object.defineProperty(e,"ES_ISSUE_TYPE_GROUP_FIELD",{enumerable:!0,get:function(){return F.ES_ISSUE_TYPE_GROUP_FIELD}}),Object.defineProperty(e,"findKeyFrames",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(e,"interpolate",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(e,"interpolateMobile",{enumerable:!0,get:function(){return G.interpolateMobile}}),Object.defineProperty(e,"removeOutdated",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(e,"DEMO_ORG_SLUG",{enumerable:!0,get:function(){return q.DEMO_ORG_SLUG}}),Object.defineProperty(e,"DEMO_APP_SLUG",{enumerable:!0,get:function(){return q.DEMO_APP_SLUG}}),Object.defineProperty(e,"DEMO_APP_ID",{enumerable:!0,get:function(){return q.DEMO_APP_ID}}),Object.defineProperty(e,"knownMetricTypes",{enumerable:!0,get:function(){return W.knownMetricTypes}}),Object.defineProperty(e,"DELIGHTED_RESPONSES_REGEX",{enumerable:!0,get:function(){return X.DELIGHTED_RESPONSES_REGEX}}),Object.defineProperty(e,"WOOTRIC_RESPONSES_REGEX",{enumerable:!0,get:function(){return X.WOOTRIC_RESPONSES_REGEX}}),Object.defineProperty(e,"SDK_TYPES",{enumerable:!0,get:function(){return z.SDK_TYPES}}),Object.defineProperty(e,"SDK_TYPE_TO_DISPLAY",{enumerable:!0,get:function(){return z.SDK_TYPE_TO_DISPLAY}}),Object.defineProperty(e,"SESSION_TYPES",{enumerable:!0,get:function(){return z.SESSION_TYPES}}),Object.defineProperty(e,"SESSION_TYPE_TO_DISPLAY",{enumerable:!0,get:function(){return z.SESSION_TYPE_TO_DISPLAY}}),Object.defineProperty(e,"parseQueryString",{enumerable:!0,get:function(){return V.parseQueryString}}),Object.defineProperty(e,"likeOperator",{enumerable:!0,get:function(){return K.likeOperator}});var i=o(r(21)),a=o(r(109)),u=o(r(110)),s=o(r(111)),f=o(r(112)),c=o(r(113)),l=o(r(46)),p=o(r(49)),h=o(r(114)),d=o(r(115)),v=o(r(116)),g=o(r(117)),y=o(r(121)),_=o(r(122)),b=n(r(47)),E=o(r(123)),m=o(r(22)),O=o(r(124)),x=o(r(125)),w=o(r(50)),P=o(r(126)),S=o(r(127)),R=o(r(128)),A=o(r(129)),j=o(r(130)),T=o(r(51)),I=o(r(131)),M=o(r(132)),D=o(r(133)),L=o(r(134)),N=o(r(135)),C=o(r(136)),k=o(r(137)),U=r(138),Y=r(139),F=r(140),B=o(r(141)),G=n(r(224)),H=o(r(225)),q=r(52),W=r(226),X=r(42),z=r(227),V=r(228),K=r(229)},function(t,e,r){"use strict";var n=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return function(){var r;try{r=t.apply(void 0,arguments)}catch(t){if("undefined"!=typeof window&&window._lrdebug)throw t;var n=e(t);(0,i.default)("LogRocket",t),(0,o.default)(t,n)}return r}};var o=n(r(47)),i=n(r(48));t.exports=e.default},function(t,e,r){"use strict";var n=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.sendTelemetry=function(t,e){if("undefined"!=typeof window&&window._lrdebug)return void(0,i.default)(t);if(e&&e.extra&&e.extra.appID&&"function"==typeof e.extra.appID.indexOf&&0===e.extra.appID.indexOf("au2drp/")&&Math.random()>=.25)return;f(s({message:t},e))},e.default=function(t,e){try{var r,n,o=t.message;try{r=JSON.stringify(e).slice(0,1e3)}catch(t){try{r="Could not stringify payload: ".concat(Object.prototype.toString.call(e))}catch(t){}}try{n=a.default.computeStackTrace(t).stack.map((function(t){return{filename:t.url,lineno:t.line,colno:t.column,function:t.func||"?"}}))}catch(t){}f({message:o,extra:{stringPayload:r},exception:{values:[{type:t.type,value:o,stacktrace:{frames:n}}]}})}catch(t){(0,i.default)("Failed to send",t)}};var o=n(r(2)),i=n(r(48)),a=n(r(24));function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){(0,o.default)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function f(t){var e=window._lrXMLHttpRequest||XMLHttpRequest;try{var r=new e,n=t.message;r.open("POST","https://e.logrocket.com/api/3/store/?sentry_version=7&sentry_client=http%2F3.8.0&sentry_key=b64162b4187a4c5caae8a68a7e291793"),r.send(JSON.stringify(s({message:n,logger:"javascript",platform:"javascript",request:{headers:{"User-Agent":"undefined"!=typeof navigator&&navigator.userAgent},url:"undefined"!=typeof location&&location.href},release:"61ae5fc0161df866b85c965adac203fbeb89671b",environment:"test"},t)))}catch(t){(0,i.default)("Failed to send",t)}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n="undefined"!=typeof console&&console.error&&console.error.bind?console.error.bind(console):function(){};e.default=n,t.exports=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){for(var r=0;r<t.length;r++)if(e(t[r]))return r;return-1},t.exports=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function t(e){return e?(e^16*Math.random()>>e/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,t)},t.exports=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.replace(/[^0-9a-f]/g,"");return parseInt("0x".concat(e),16)||0},t.exports=e.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEMO_APP_ID=e.DEMO_APP_SLUG=e.DEMO_ORG_SLUG=void 0;var n="demo-kdz7k";e.DEMO_ORG_SLUG=n;var o="logrocket";e.DEMO_APP_SLUG=o;var i="".concat(n,"/").concat(o);e.DEMO_APP_ID=i},function(t,e,r){var n=r(142),o=r(223);t.exports=function(t,e,r){return o(t,e,n(r,2),!0)}},function(t,e,r){var n=r(10),o=r(150),i=r(151),a=r(152),u=r(153),s=r(154);function f(t){var e=this.__data__=new n(t);this.size=e.size}f.prototype.clear=o,f.prototype.delete=i,f.prototype.get=a,f.prototype.has=u,f.prototype.set=s,t.exports=f},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,r){var n=r(7),o=r(27);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,r){(function(e){var r="object"==typeof e&&e&&e.Object===Object&&e;t.exports=r}).call(this,r(6))},function(t,e){var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,r){var n=r(173),o=r(8);t.exports=function t(e,r,i,a,u){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,a,t,u))}},function(t,e,r){var n=r(174),o=r(177),i=r(178);t.exports=function(t,e,r,a,u,s){var f=1&r,c=t.length,l=e.length;if(c!=l&&!(f&&l>c))return!1;var p=s.get(t),h=s.get(e);if(p&&h)return p==e&&h==t;var d=-1,v=!0,g=2&r?new n:void 0;for(s.set(t,e),s.set(e,t);++d<c;){var y=t[d],_=e[d];if(a)var b=f?a(_,y,d,e,t,s):a(y,_,d,t,e,s);if(void 0!==b){if(b)continue;v=!1;break}if(g){if(!o(e,(function(t,e){if(!i(g,e)&&(y===t||u(y,t,r,a,s)))return g.push(e)}))){v=!1;break}}else if(y!==_&&!u(y,_,r,a,s)){v=!1;break}}return s.delete(t),s.delete(e),v}},function(t,e,r){var n=r(190),o=r(197),i=r(201);t.exports=function(t){return i(t)?n(t):o(t)}},function(t,e,r){var n=r(192),o=r(8),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=s},function(t,e,r){(function(t){var n=r(1),o=r(193),i=e&&!e.nodeType&&e,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,u=a&&a.exports===i?n.Buffer:void 0,s=(u?u.isBuffer:void 0)||o;t.exports=s}).call(this,r(64)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){var r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,r){var n=r(194),o=r(195),i=r(196),a=i&&i.isTypedArray,u=a?o(a):n;t.exports=u},function(t,e,r){var n=r(27);t.exports=function(t){return t==t&&!n(t)}},function(t,e){t.exports=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}},function(t,e,r){var n=r(70),o=r(16);t.exports=function(t,e){for(var r=0,i=(e=n(e,t)).length;null!=t&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0}},function(t,e,r){var n=r(4),o=r(30),i=r(210),a=r(213);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(a(t))}},function(t,e){var r=function(t){this.name=t,this.filters=[]};r.prototype.process=function(t){if(!this.processor)throw new Error("add this pipe to a processor before using it");for(var e=this.debug,r=this.filters.length,n=t,o=0;o<r;o++){var i=this.filters[o];if(e&&this.log("filter: "+i.filterName),i(n),"object"==typeof n&&n.exiting){n.exiting=!1;break}}!n.next&&this.resultCheck&&this.resultCheck(n)},r.prototype.log=function(t){console.log("[jsondiffpatch] "+this.name+" pipe, "+t)},r.prototype.append=function(){return this.filters.push.apply(this.filters,arguments),this},r.prototype.prepend=function(){return this.filters.unshift.apply(this.filters,arguments),this},r.prototype.indexOf=function(t){if(!t)throw new Error("a filter name is required");for(var e=0;e<this.filters.length;e++){if(this.filters[e].filterName===t)return e}throw new Error("filter not found: "+t)},r.prototype.list=function(){for(var t=[],e=0;e<this.filters.length;e++){var r=this.filters[e];t.push(r.filterName)}return t},r.prototype.after=function(t){var e=this.indexOf(t),r=Array.prototype.slice.call(arguments,1);if(!r.length)throw new Error("a filter is required");return r.unshift(e+1,0),Array.prototype.splice.apply(this.filters,r),this},r.prototype.before=function(t){var e=this.indexOf(t),r=Array.prototype.slice.call(arguments,1);if(!r.length)throw new Error("a filter is required");return r.unshift(e,0),Array.prototype.splice.apply(this.filters,r),this},r.prototype.clear=function(){return this.filters.length=0,this},r.prototype.shouldHaveResult=function(t){if(!1!==t){if(!this.resultCheck){var e=this;return this.resultCheck=function(t){if(!t.hasResult){console.log(t);var r=new Error(e.name+" failed");throw r.noResult=!0,r}},this}}else this.resultCheck=null},e.Pipe=r},function(t,e){var r="function"==typeof Array.isArray?Array.isArray:function(t){return t instanceof Array};t.exports=function t(e){if("object"!=typeof e)return e;if(null===e)return null;if(r(e))return e.map(t);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return n=/^\/(.*)\/([gimyu]*)$/.exec(e.toString()),new RegExp(n[1],n[2]);var n,o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=t(e[i]));return o}},function(t,e){function r(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32}var n=-1;r.Diff,r.prototype.diff_main=function(t,e,r,n){void 0===n&&(n=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var o=n;if(null==t||null==e)throw new Error("Null input. (diff_main)");if(t==e)return t?[[0,t]]:[];void 0===r&&(r=!0);var i=r,a=this.diff_commonPrefix(t,e),u=t.substring(0,a);t=t.substring(a),e=e.substring(a),a=this.diff_commonSuffix(t,e);var s=t.substring(t.length-a);t=t.substring(0,t.length-a),e=e.substring(0,e.length-a);var f=this.diff_compute_(t,e,i,o);return u&&f.unshift([0,u]),s&&f.push([0,s]),this.diff_cleanupMerge(f),f},r.prototype.diff_compute_=function(t,e,r,o){var i;if(!t)return[[1,e]];if(!e)return[[n,t]];var a=t.length>e.length?t:e,u=t.length>e.length?e:t,s=a.indexOf(u);if(-1!=s)return i=[[1,a.substring(0,s)],[0,u],[1,a.substring(s+u.length)]],t.length>e.length&&(i[0][0]=i[2][0]=n),i;if(1==u.length)return[[n,t],[1,e]];a=u=null;var f=this.diff_halfMatch_(t,e);if(f){var c=f[0],l=f[1],p=f[2],h=f[3],d=f[4],v=this.diff_main(c,p,r,o),g=this.diff_main(l,h,r,o);return v.concat([[0,d]],g)}return r&&t.length>100&&e.length>100?this.diff_lineMode_(t,e,o):this.diff_bisect_(t,e,o)},r.prototype.diff_lineMode_=function(t,e,r){t=(l=this.diff_linesToChars_(t,e))[0],e=l[1];var o=l[2],i=this.diff_bisect_(t,e,r);this.diff_charsToLines_(i,o),this.diff_cleanupSemantic(i),i.push([0,""]);for(var a=0,u=0,s=0,f="",c="";a<i.length;){switch(i[a][0]){case 1:s++,c+=i[a][1];break;case n:u++,f+=i[a][1];break;case 0:if(u>=1&&s>=1){var l=this.diff_main(f,c,!1,r);i.splice(a-u-s,u+s),a=a-u-s;for(var p=l.length-1;p>=0;p--)i.splice(a,0,l[p]);a+=l.length}s=0,u=0,f="",c=""}a++}return i.pop(),i},r.prototype.diff_bisect_=function(t,e,r){for(var o=t.length,i=e.length,a=Math.ceil((o+i)/2),u=a,s=2*a,f=new Array(s),c=new Array(s),l=0;l<s;l++)f[l]=-1,c[l]=-1;f[u+1]=0,c[u+1]=0;for(var p=o-i,h=p%2!=0,d=0,v=0,g=0,y=0,_=0;_<a&&!((new Date).getTime()>r);_++){for(var b=-_+d;b<=_-v;b+=2){for(var E=u+b,m=(S=b==-_||b!=_&&f[E-1]<f[E+1]?f[E+1]:f[E-1]+1)-b;S<o&&m<i&&t.charAt(S)==e.charAt(m);)S++,m++;if(f[E]=S,S>o)v+=2;else if(m>i)d+=2;else if(h){if((w=u+p-b)>=0&&w<s&&-1!=c[w])if(S>=(x=o-c[w]))return this.diff_bisectSplit_(t,e,S,m,r)}}for(var O=-_+g;O<=_-y;O+=2){for(var x,w=u+O,P=(x=O==-_||O!=_&&c[w-1]<c[w+1]?c[w+1]:c[w-1]+1)-O;x<o&&P<i&&t.charAt(o-x-1)==e.charAt(i-P-1);)x++,P++;if(c[w]=x,x>o)y+=2;else if(P>i)g+=2;else if(!h){if((E=u+p-O)>=0&&E<s&&-1!=f[E]){var S;m=u+(S=f[E])-E;if(S>=(x=o-x))return this.diff_bisectSplit_(t,e,S,m,r)}}}}return[[n,t],[1,e]]},r.prototype.diff_bisectSplit_=function(t,e,r,n,o){var i=t.substring(0,r),a=e.substring(0,n),u=t.substring(r),s=e.substring(n),f=this.diff_main(i,a,!1,o),c=this.diff_main(u,s,!1,o);return f.concat(c)},r.prototype.diff_linesToChars_=function(t,e){var r=[],n={};function o(t){for(var e="",o=0,i=-1,a=r.length;i<t.length-1;){-1==(i=t.indexOf("\n",o))&&(i=t.length-1);var u=t.substring(o,i+1);o=i+1,(n.hasOwnProperty?n.hasOwnProperty(u):void 0!==n[u])?e+=String.fromCharCode(n[u]):(e+=String.fromCharCode(a),n[u]=a,r[a++]=u)}return e}return r[0]="",[o(t),o(e),r]},r.prototype.diff_charsToLines_=function(t,e){for(var r=0;r<t.length;r++){for(var n=t[r][1],o=[],i=0;i<n.length;i++)o[i]=e[n.charCodeAt(i)];t[r][1]=o.join("")}},r.prototype.diff_commonPrefix=function(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var r=0,n=Math.min(t.length,e.length),o=n,i=0;r<o;)t.substring(i,o)==e.substring(i,o)?i=r=o:n=o,o=Math.floor((n-r)/2+r);return o},r.prototype.diff_commonSuffix=function(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;for(var r=0,n=Math.min(t.length,e.length),o=n,i=0;r<o;)t.substring(t.length-o,t.length-i)==e.substring(e.length-o,e.length-i)?i=r=o:n=o,o=Math.floor((n-r)/2+r);return o},r.prototype.diff_commonOverlap_=function(t,e){var r=t.length,n=e.length;if(0==r||0==n)return 0;r>n?t=t.substring(r-n):r<n&&(e=e.substring(0,r));var o=Math.min(r,n);if(t==e)return o;for(var i=0,a=1;;){var u=t.substring(o-a),s=e.indexOf(u);if(-1==s)return i;a+=s,0!=s&&t.substring(o-a)!=e.substring(0,a)||(i=a,a++)}},r.prototype.diff_halfMatch_=function(t,e){if(this.Diff_Timeout<=0)return null;var r=t.length>e.length?t:e,n=t.length>e.length?e:t;if(r.length<4||2*n.length<r.length)return null;var o=this;function i(t,e,r){for(var n,i,a,u,s=t.substring(r,r+Math.floor(t.length/4)),f=-1,c="";-1!=(f=e.indexOf(s,f+1));){var l=o.diff_commonPrefix(t.substring(r),e.substring(f)),p=o.diff_commonSuffix(t.substring(0,r),e.substring(0,f));c.length<p+l&&(c=e.substring(f-p,f)+e.substring(f,f+l),n=t.substring(0,r-p),i=t.substring(r+l),a=e.substring(0,f-p),u=e.substring(f+l))}return 2*c.length>=t.length?[n,i,a,u,c]:null}var a,u,s,f,c,l=i(r,n,Math.ceil(r.length/4)),p=i(r,n,Math.ceil(r.length/2));return l||p?(a=p?l&&l[4].length>p[4].length?l:p:l,t.length>e.length?(u=a[0],s=a[1],f=a[2],c=a[3]):(f=a[0],c=a[1],u=a[2],s=a[3]),[u,s,f,c,a[4]]):null},r.prototype.diff_cleanupSemantic=function(t){for(var e=!1,r=[],o=0,i=null,a=0,u=0,s=0,f=0,c=0;a<t.length;)0==t[a][0]?(r[o++]=a,u=f,s=c,f=0,c=0,i=t[a][1]):(1==t[a][0]?f+=t[a][1].length:c+=t[a][1].length,null!==i&&i.length<=Math.max(u,s)&&i.length<=Math.max(f,c)&&(t.splice(r[o-1],0,[n,i]),t[r[o-1]+1][0]=1,o--,a=--o>0?r[o-1]:-1,u=0,s=0,f=0,c=0,i=null,e=!0)),a++;for(e&&this.diff_cleanupMerge(t),this.diff_cleanupSemanticLossless(t),a=1;a<t.length;){if(t[a-1][0]==n&&1==t[a][0]){var l=t[a-1][1],p=t[a][1],h=this.diff_commonOverlap_(l,p);(h>=l.length/2||h>=p.length/2)&&(t.splice(a,0,[0,p.substring(0,h)]),t[a-1][1]=l.substring(0,l.length-h),t[a+1][1]=p.substring(h),a++),a++}a++}},r.prototype.diff_cleanupSemanticLossless=function(t){var e=/[^a-zA-Z0-9]/,r=/\s/,n=/[\r\n]/,o=/\n\r?\n$/,i=/^\r?\n\r?\n/;function a(t,a){if(!t||!a)return 5;var u=0;return(t.charAt(t.length-1).match(e)||a.charAt(0).match(e))&&(u++,(t.charAt(t.length-1).match(r)||a.charAt(0).match(r))&&(u++,(t.charAt(t.length-1).match(n)||a.charAt(0).match(n))&&(u++,(t.match(o)||a.match(i))&&u++))),u}for(var u=1;u<t.length-1;){if(0==t[u-1][0]&&0==t[u+1][0]){var s=t[u-1][1],f=t[u][1],c=t[u+1][1],l=this.diff_commonSuffix(s,f);if(l){var p=f.substring(f.length-l);s=s.substring(0,s.length-l),f=p+f.substring(0,f.length-l),c=p+c}for(var h=s,d=f,v=c,g=a(s,f)+a(f,c);f.charAt(0)===c.charAt(0);){s+=f.charAt(0),f=f.substring(1)+c.charAt(0),c=c.substring(1);var y=a(s,f)+a(f,c);y>=g&&(g=y,h=s,d=f,v=c)}t[u-1][1]!=h&&(h?t[u-1][1]=h:(t.splice(u-1,1),u--),t[u][1]=d,v?t[u+1][1]=v:(t.splice(u+1,1),u--))}u++}},r.prototype.diff_cleanupEfficiency=function(t){for(var e=!1,r=[],o=0,i="",a=0,u=!1,s=!1,f=!1,c=!1;a<t.length;)0==t[a][0]?(t[a][1].length<this.Diff_EditCost&&(f||c)?(r[o++]=a,u=f,s=c,i=t[a][1]):(o=0,i=""),f=c=!1):(t[a][0]==n?c=!0:f=!0,i&&(u&&s&&f&&c||i.length<this.Diff_EditCost/2&&u+s+f+c==3)&&(t.splice(r[o-1],0,[n,i]),t[r[o-1]+1][0]=1,o--,i="",u&&s?(f=c=!0,o=0):(a=--o>0?r[o-1]:-1,f=c=!1),e=!0)),a++;e&&this.diff_cleanupMerge(t)},r.prototype.diff_cleanupMerge=function(t){t.push([0,""]);for(var e,r=0,o=0,i=0,a="",u="";r<t.length;)switch(t[r][0]){case 1:i++,u+=t[r][1],r++;break;case n:o++,a+=t[r][1],r++;break;case 0:o+i>1?(0!==o&&0!==i&&(0!==(e=this.diff_commonPrefix(u,a))&&(r-o-i>0&&0==t[r-o-i-1][0]?t[r-o-i-1][1]+=u.substring(0,e):(t.splice(0,0,[0,u.substring(0,e)]),r++),u=u.substring(e),a=a.substring(e)),0!==(e=this.diff_commonSuffix(u,a))&&(t[r][1]=u.substring(u.length-e)+t[r][1],u=u.substring(0,u.length-e),a=a.substring(0,a.length-e))),0===o?t.splice(r-o-i,o+i,[1,u]):0===i?t.splice(r-o-i,o+i,[n,a]):t.splice(r-o-i,o+i,[n,a],[1,u]),r=r-o-i+(o?1:0)+(i?1:0)+1):0!==r&&0==t[r-1][0]?(t[r-1][1]+=t[r][1],t.splice(r,1)):r++,i=0,o=0,a="",u=""}""===t[t.length-1][1]&&t.pop();var s=!1;for(r=1;r<t.length-1;)0==t[r-1][0]&&0==t[r+1][0]&&(t[r][1].substring(t[r][1].length-t[r-1][1].length)==t[r-1][1]?(t[r][1]=t[r-1][1]+t[r][1].substring(0,t[r][1].length-t[r-1][1].length),t[r+1][1]=t[r-1][1]+t[r+1][1],t.splice(r-1,1),s=!0):t[r][1].substring(0,t[r+1][1].length)==t[r+1][1]&&(t[r-1][1]+=t[r+1][1],t[r][1]=t[r][1].substring(t[r+1][1].length)+t[r+1][1],t.splice(r+1,1),s=!0)),r++;s&&this.diff_cleanupMerge(t)},r.prototype.diff_xIndex=function(t,e){var r,o=0,i=0,a=0,u=0;for(r=0;r<t.length&&(1!==t[r][0]&&(o+=t[r][1].length),t[r][0]!==n&&(i+=t[r][1].length),!(o>e));r++)a=o,u=i;return t.length!=r&&t[r][0]===n?u:u+(e-a)},r.prototype.diff_prettyHtml=function(t){for(var e=[],r=/&/g,o=/</g,i=/>/g,a=/\n/g,u=0;u<t.length;u++){var s=t[u][0],f=t[u][1],c=f.replace(r,"&amp;").replace(o,"&lt;").replace(i,"&gt;").replace(a,"&para;<br>");switch(s){case 1:e[u]='<ins style="background:#e6ffe6;">'+c+"</ins>";break;case n:e[u]='<del style="background:#ffe6e6;">'+c+"</del>";break;case 0:e[u]="<span>"+c+"</span>"}s!==n&&f.length}return e.join("")},r.prototype.diff_text1=function(t){for(var e=[],r=0;r<t.length;r++)1!==t[r][0]&&(e[r]=t[r][1]);return e.join("")},r.prototype.diff_text2=function(t){for(var e=[],r=0;r<t.length;r++)t[r][0]!==n&&(e[r]=t[r][1]);return e.join("")},r.prototype.diff_levenshtein=function(t){for(var e=0,r=0,o=0,i=0;i<t.length;i++){var a=t[i][0],u=t[i][1];switch(a){case 1:r+=u.length;break;case n:o+=u.length;break;case 0:e+=Math.max(r,o),r=0,o=0}}return e+=Math.max(r,o)},r.prototype.diff_toDelta=function(t){for(var e=[],r=0;r<t.length;r++)switch(t[r][0]){case 1:e[r]="+"+encodeURI(t[r][1]);break;case n:e[r]="-"+t[r][1].length;break;case 0:e[r]="="+t[r][1].length}return e.join("\t").replace(/%20/g," ")},r.prototype.diff_fromDelta=function(t,e){for(var r=[],o=0,i=0,a=e.split(/\t/g),u=0;u<a.length;u++){var s=a[u].substring(1);switch(a[u].charAt(0)){case"+":try{r[o++]=[1,decodeURI(s)]}catch(t){throw new Error("Illegal escape in diff_fromDelta: "+s)}break;case"-":case"=":var f=parseInt(s,10);if(isNaN(f)||f<0)throw new Error("Invalid number in diff_fromDelta: "+s);var c=t.substring(i,i+=f);"="==a[u].charAt(0)?r[o++]=[0,c]:r[o++]=[n,c];break;default:if(a[u])throw new Error("Invalid diff operation in diff_fromDelta: "+a[u])}}if(i!=t.length)throw new Error("Delta length ("+i+") does not equal source text length ("+t.length+").");return r},r.prototype.match_main=function(t,e,r){if(null==t||null==e||null==r)throw new Error("Null input. (match_main)");return r=Math.max(0,Math.min(r,t.length)),t==e?0:t.length?t.substring(r,r+e.length)==e?r:this.match_bitap_(t,e,r):-1},r.prototype.match_bitap_=function(t,e,r){if(e.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var n=this.match_alphabet_(e),o=this;function i(t,n){var i=t/e.length,a=Math.abs(r-n);return o.Match_Distance?i+a/o.Match_Distance:a?1:i}var a=this.Match_Threshold,u=t.indexOf(e,r);-1!=u&&(a=Math.min(i(0,u),a),-1!=(u=t.lastIndexOf(e,r+e.length))&&(a=Math.min(i(0,u),a)));var s,f,c=1<<e.length-1;u=-1;for(var l,p=e.length+t.length,h=0;h<e.length;h++){for(s=0,f=p;s<f;)i(h,r+f)<=a?s=f:p=f,f=Math.floor((p-s)/2+s);p=f;var d=Math.max(1,r-f+1),v=Math.min(r+f,t.length)+e.length,g=Array(v+2);g[v+1]=(1<<h)-1;for(var y=v;y>=d;y--){var _=n[t.charAt(y-1)];if(g[y]=0===h?(g[y+1]<<1|1)&_:(g[y+1]<<1|1)&_|(l[y+1]|l[y])<<1|1|l[y+1],g[y]&c){var b=i(h,y-1);if(b<=a){if(a=b,!((u=y-1)>r))break;d=Math.max(1,2*r-u)}}}if(i(h+1,r)>a)break;l=g}return u},r.prototype.match_alphabet_=function(t){for(var e={},r=0;r<t.length;r++)e[t.charAt(r)]=0;for(r=0;r<t.length;r++)e[t.charAt(r)]|=1<<t.length-r-1;return e},r.prototype.patch_addContext_=function(t,e){if(0!=e.length){for(var r=e.substring(t.start2,t.start2+t.length1),n=0;e.indexOf(r)!=e.lastIndexOf(r)&&r.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)n+=this.Patch_Margin,r=e.substring(t.start2-n,t.start2+t.length1+n);n+=this.Patch_Margin;var o=e.substring(t.start2-n,t.start2);o&&t.diffs.unshift([0,o]);var i=e.substring(t.start2+t.length1,t.start2+t.length1+n);i&&t.diffs.push([0,i]),t.start1-=o.length,t.start2-=o.length,t.length1+=o.length+i.length,t.length2+=o.length+i.length}},r.prototype.patch_make=function(t,e,o){var i,a;if("string"==typeof t&&"string"==typeof e&&void 0===o)i=t,(a=this.diff_main(i,e,!0)).length>2&&(this.diff_cleanupSemantic(a),this.diff_cleanupEfficiency(a));else if(t&&"object"==typeof t&&void 0===e&&void 0===o)a=t,i=this.diff_text1(a);else if("string"==typeof t&&e&&"object"==typeof e&&void 0===o)i=t,a=e;else{if("string"!=typeof t||"string"!=typeof e||!o||"object"!=typeof o)throw new Error("Unknown call format to patch_make.");i=t,a=o}if(0===a.length)return[];for(var u=[],s=new r.patch_obj,f=0,c=0,l=0,p=i,h=i,d=0;d<a.length;d++){var v=a[d][0],g=a[d][1];switch(f||0===v||(s.start1=c,s.start2=l),v){case 1:s.diffs[f++]=a[d],s.length2+=g.length,h=h.substring(0,l)+g+h.substring(l);break;case n:s.length1+=g.length,s.diffs[f++]=a[d],h=h.substring(0,l)+h.substring(l+g.length);break;case 0:g.length<=2*this.Patch_Margin&&f&&a.length!=d+1?(s.diffs[f++]=a[d],s.length1+=g.length,s.length2+=g.length):g.length>=2*this.Patch_Margin&&f&&(this.patch_addContext_(s,p),u.push(s),s=new r.patch_obj,f=0,p=h,c=l)}1!==v&&(c+=g.length),v!==n&&(l+=g.length)}return f&&(this.patch_addContext_(s,p),u.push(s)),u},r.prototype.patch_deepCopy=function(t){for(var e=[],n=0;n<t.length;n++){var o=t[n],i=new r.patch_obj;i.diffs=[];for(var a=0;a<o.diffs.length;a++)i.diffs[a]=o.diffs[a].slice();i.start1=o.start1,i.start2=o.start2,i.length1=o.length1,i.length2=o.length2,e[n]=i}return e},r.prototype.patch_apply=function(t,e){if(0==t.length)return[e,[]];t=this.patch_deepCopy(t);var r=this.patch_addPadding(t);e=r+e+r,this.patch_splitMax(t);for(var o=0,i=[],a=0;a<t.length;a++){var u,s,f=t[a].start2+o,c=this.diff_text1(t[a].diffs),l=-1;if(c.length>this.Match_MaxBits?-1!=(u=this.match_main(e,c.substring(0,this.Match_MaxBits),f))&&(-1==(l=this.match_main(e,c.substring(c.length-this.Match_MaxBits),f+c.length-this.Match_MaxBits))||u>=l)&&(u=-1):u=this.match_main(e,c,f),-1==u)i[a]=!1,o-=t[a].length2-t[a].length1;else if(i[a]=!0,o=u-f,c==(s=-1==l?e.substring(u,u+c.length):e.substring(u,l+this.Match_MaxBits)))e=e.substring(0,u)+this.diff_text2(t[a].diffs)+e.substring(u+c.length);else{var p=this.diff_main(c,s,!1);if(c.length>this.Match_MaxBits&&this.diff_levenshtein(p)/c.length>this.Patch_DeleteThreshold)i[a]=!1;else{this.diff_cleanupSemanticLossless(p);for(var h,d=0,v=0;v<t[a].diffs.length;v++){var g=t[a].diffs[v];0!==g[0]&&(h=this.diff_xIndex(p,d)),1===g[0]?e=e.substring(0,u+h)+g[1]+e.substring(u+h):g[0]===n&&(e=e.substring(0,u+h)+e.substring(u+this.diff_xIndex(p,d+g[1].length))),g[0]!==n&&(d+=g[1].length)}}}}return[e=e.substring(r.length,e.length-r.length),i]},r.prototype.patch_addPadding=function(t){for(var e=this.Patch_Margin,r="",n=1;n<=e;n++)r+=String.fromCharCode(n);for(n=0;n<t.length;n++)t[n].start1+=e,t[n].start2+=e;var o=t[0],i=o.diffs;if(0==i.length||0!=i[0][0])i.unshift([0,r]),o.start1-=e,o.start2-=e,o.length1+=e,o.length2+=e;else if(e>i[0][1].length){var a=e-i[0][1].length;i[0][1]=r.substring(i[0][1].length)+i[0][1],o.start1-=a,o.start2-=a,o.length1+=a,o.length2+=a}if(0==(i=(o=t[t.length-1]).diffs).length||0!=i[i.length-1][0])i.push([0,r]),o.length1+=e,o.length2+=e;else if(e>i[i.length-1][1].length){a=e-i[i.length-1][1].length;i[i.length-1][1]+=r.substring(0,a),o.length1+=a,o.length2+=a}return r},r.prototype.patch_splitMax=function(t){for(var e=this.Match_MaxBits,o=0;o<t.length;o++)if(t[o].length1>e){var i=t[o];t.splice(o--,1);for(var a=i.start1,u=i.start2,s="";0!==i.diffs.length;){var f=new r.patch_obj,c=!0;for(f.start1=a-s.length,f.start2=u-s.length,""!==s&&(f.length1=f.length2=s.length,f.diffs.push([0,s]));0!==i.diffs.length&&f.length1<e-this.Patch_Margin;){var l=i.diffs[0][0],p=i.diffs[0][1];1===l?(f.length2+=p.length,u+=p.length,f.diffs.push(i.diffs.shift()),c=!1):l===n&&1==f.diffs.length&&0==f.diffs[0][0]&&p.length>2*e?(f.length1+=p.length,a+=p.length,c=!1,f.diffs.push([l,p]),i.diffs.shift()):(p=p.substring(0,e-f.length1-this.Patch_Margin),f.length1+=p.length,a+=p.length,0===l?(f.length2+=p.length,u+=p.length):c=!1,f.diffs.push([l,p]),p==i.diffs[0][1]?i.diffs.shift():i.diffs[0][1]=i.diffs[0][1].substring(p.length))}s=(s=this.diff_text2(f.diffs)).substring(s.length-this.Patch_Margin);var h=this.diff_text1(i.diffs).substring(0,this.Patch_Margin);""!==h&&(f.length1+=h.length,f.length2+=h.length,0!==f.diffs.length&&0===f.diffs[f.diffs.length-1][0]?f.diffs[f.diffs.length-1][1]+=h:f.diffs.push([0,h])),c||t.splice(++o,0,f)}}},r.prototype.patch_toText=function(t){for(var e=[],r=0;r<t.length;r++)e[r]=t[r];return e.join("")},r.prototype.patch_fromText=function(t){var e=[];if(!t)return e;for(var o=t.split("\n"),i=0,a=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;i<o.length;){var u=o[i].match(a);if(!u)throw new Error("Invalid patch string: "+o[i]);var s=new r.patch_obj;for(e.push(s),s.start1=parseInt(u[1],10),""===u[2]?(s.start1--,s.length1=1):"0"==u[2]?s.length1=0:(s.start1--,s.length1=parseInt(u[2],10)),s.start2=parseInt(u[3],10),""===u[4]?(s.start2--,s.length2=1):"0"==u[4]?s.length2=0:(s.start2--,s.length2=parseInt(u[4],10)),i++;i<o.length;){var f=o[i].charAt(0);try{var c=decodeURI(o[i].substring(1))}catch(t){throw new Error("Illegal escape in patch_fromText: "+c)}if("-"==f)s.diffs.push([n,c]);else if("+"==f)s.diffs.push([1,c]);else if(" "==f)s.diffs.push([0,c]);else{if("@"==f)break;if(""!==f)throw new Error('Invalid patch mode "'+f+'" in: '+c)}i++}}return e},r.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},r.patch_obj.prototype.toString=function(){for(var t,e=["@@ -"+(0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1)+" +"+(0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2)+" @@\n"],r=0;r<this.diffs.length;r++){switch(this.diffs[r][0]){case 1:t="+";break;case n:t="-";break;case 0:t=" "}e[r+1]=t+encodeURI(this.diffs[r][1])+"\n"}return e.join("").replace(/%20/g," ")},this.diff_match_patch=r,this.DIFF_DELETE=n,this.DIFF_INSERT=1,this.DIFF_EQUAL=0},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=Date.now.bind(Date),o=n(),i="undefined"!=typeof performance&&performance.now?performance.now.bind(performance):function(){return n()-o};e.default=i,t.exports=e.default},function(t,e,r){t.exports=r(76)},function(t,e,r){"use strict";var n=r(17);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(r(77)),i=n(r(79)),a=n(r(81)),u=n(r(82)),s=n(r(18)),f=r(36),c=n(r(88)),l=r(246);function p(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?p(Object(r),!0).forEach((function(e){(0,s.default)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var d=f.NativeModules.LogRocketNativeModule,v=f.NativeModules.NativeUnimoduleProxy,g=d||{},y=g.initWithConfig,_=g.installShutdownHandler,b=g.getSessionURL,E=g.captureException,m=g.captureReduxAction,O=g.captureReduxInitialState,x=g.captureRequest,w=g.captureResponse,P=g.addLog,S=g.identifyWithTraits,R=g.track,A=g.shutdown,j=!0,T=function(){var t,e;return j&&["storeClient","standalone"].includes(null==v||null===(t=v.moduleConstants)||void 0===t||null===(e=t.ExponentConstants)||void 0===e?void 0:e.executionEnvironment)},I=(0,c.default)(),M=/^[a-z0-9_-]+\/[a-z0-9_-]+$/,D="@logrocket/react-native cannot be used in Expo Go. See https://docs.logrocket.com/docs/react-native-expo-go for more information.",L=function(t){for(var e=h({},t),r=0,n=Object.entries(e);r<n.length;r++){var o=(0,u.default)(n[r],2),i=o[0];o[1]||(e[i]=function(){})}return e},N={init:function(t){var e=arguments;return(0,a.default)(o.default.mark((function r(){var n,a,u,s;return o.default.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=e.length>1&&void 0!==e[1]?e[1]:{},a=n.dangerouslySkipExpoGoCheck,u=void 0!==a&&a,s=(0,i.default)(n,["dangerouslySkipExpoGoCheck"]),j=!u,!T()){r.next=6;break}return console.warn(D),I.shutdown(),r.abrupt("return");case 6:if(y){r.next=10;break}return console.warn("@logrocket/react-native native module is missing. Please review installation instructions."),I.shutdown(),r.abrupt("return");case 10:if("string"==typeof t&&M.test(t)){r.next=13;break}return console.warn("LogRocket: must pass a valid application id to the LogRocket instance."),r.abrupt("return");case 13:return r.next=15,y(t,h({serverURL:"https://r.lr-in.com/i"},s));case 15:r.sent?(I.init(s,L({addLog:P,captureException:E,captureReduxAction:m,captureReduxInitialState:O,captureRequest:x,captureResponse:w,identifyWithTraits:S,shutdown:A,track:R})),_&&_((function(){return I.uninstall()}))):(I.disableAndClearBuffer(),__DEV__&&console.warn("LogRocket initialization failed! Check device logs for further details."));case 17:case"end":return r.stop()}}),r)})))()},captureException:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};I._run((function(r){r.captureException(t,e)}))},getSessionURL:function(t){b?b(t):t("@logrocket/react-native does not yet support retrieving session URL.")},identify:function(t,e){I._run((function(r){r.identify(t,e)}))},reduxMiddleware:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=function(){return function(t){return function(e){return t(e)}}};return T()?(console.warn(D),e):"function"==typeof O&&"function"==typeof m?(0,l.createMiddleware)(I,t):e},track:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};I._run((function(r){r.track(t,e)}))},shutdown:function(){T()||I.shutdown()}};e.default=N,t.exports=e.default},function(t,e,r){t.exports=r(78)},function(t,e,r){var n=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),a=new A(n||[]);return i._invoke=function(t,e,r){var n=l;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return T()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=P(a,r);if(u){if(u===v)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var s=c(t,e,r);if("normal"===s.type){if(n=r.done?d:p,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=d,r.method="throw",r.arg=s.arg)}}}(t,r,a),i}function c(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var l="suspendedStart",p="suspendedYield",h="executing",d="completed",v={};function g(){}function y(){}function _(){}var b={};b[i]=function(){return this};var E=Object.getPrototypeOf,m=E&&E(E(j([])));m&&m!==r&&n.call(m,i)&&(b=m);var O=_.prototype=g.prototype=Object.create(b);function x(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function r(o,i,a,u){var s=c(t[o],t,i);if("throw"!==s.type){var f=s.arg,l=f.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return r("throw",t,a,u)}))}u(s.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function P(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,P(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=c(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:T}}function T(){return{value:e,done:!0}}return y.prototype=O.constructor=_,_.constructor=y,y.displayName=s(_,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,s(t,u,"GeneratorFunction")),t.prototype=Object.create(O),t},t.awrap=function(t){return{__await:t}},x(w.prototype),w.prototype[a]=function(){return this},t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(O),s(O,u,"Generator"),O[i]=function(){return this},O.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=j,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(R),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),f=n.call(a,"finallyLoc");if(s&&f){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),R(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;R(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},function(t,e,r){var n=r(80);t.exports=function(t,e){if(null==t)return{};var r,o,i=n(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o<a.length;o++)r=a[o],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){function r(t,e,r,n,o,i,a){try{var u=t[i](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).then(n,o)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function u(t){r(a,o,i,u,s,"next",t)}function s(t){r(a,o,i,u,s,"throw",t)}u(void 0)}))}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){var n=r(83),o=r(84),i=r(85),a=r(87);t.exports=function(t,e){return n(t)||o(t,e)||i(t,e)||a()},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t){if(Array.isArray(t))return t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t,e){var r=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){var n=r(86);t.exports=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";(function(t){var n=r(17);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return new P},e.MAX_QUEUE_SIZE=void 0;var o=n(r(89)),i=n(r(37)),a=n(r(38)),u=n(r(18)),s=r(36),f=n(r(90)),c=n(r(97)),l=r(43),p=n(r(9)),h=r(108),d=r(31),v=r(230),g=r(231),y=r(45),_=n(r(232));function b(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function E(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?b(Object(r),!0).forEach((function(e){(0,u.default)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var m=new Set(["[object Error]","[object DOMError]","[object DOMException]"]),O=1e3;e.MAX_QUEUE_SIZE=O;var x=["%c prev state","%c next state","%c action ","%c error ","%c action","%c error"];function w(t){var e={}.toString.call(t),r=t;return m.has(e)&&(r="".concat(t.constructor.name,": ").concat(t.message||t.name)),p.default.encode(r)}var P=function(){function e(){var r=this;(0,i.default)(this,e),this._getConfig=function(t){if(null==r._config)return{};var e=t.split(".");switch(e[1]){case"network":return r._config.network;case"core":switch(e[2]){case"LogEvent":return r._config.console}default:return{}}},this._isReduxLogger=function(t){if(!t||!t.args)return!1;var e=t.args;return!!(Array.isArray(e)&&3===e.length&&x.indexOf(e[0])>-1)},this.textEncoder=t.TextEncoder&&new t.TextEncoder,this._customPropCount=0,this._reduxActions={},this._buffer=[],this._didWarnAboutReduxLogger=!1,this._didWarnAboutReduxSize=!1,this.wallByteStreams={},this.reduxEncoder=new _.default;var n=new s.NativeEventEmitter(s.NativeModules.LogRocketNativeModule);this.eventListener=n.addListener("LogRocketSDKOnError",(function(t){t.errorMessage&&(t.shouldWarnAboutReduxSize||console.warn(t.errorMessage),t.shouldWarnAboutReduxSize&&!r._didWarnAboutReduxSize&&(r._didWarnAboutReduxSize=!0,console.warn(t.errorMessage))),t.shouldDisableAndFreeMemory&&r.disableAndClearBuffer()})),this.reset()}return(0,a.default)(e,[{key:"_run",value:function(t){if(!this._isDisabled)if(this._didInit)t(this);else{if(this._buffer.length>=O)return console.warn("LogRocket has not been initialized. Event buffering is now disabled."),this.disableAndClearBuffer(),void this.uninstall();this._buffer.push(t)}}},{key:"_registerExceptions",value:function(){var e=this,n=ErrorUtils.getGlobalHandler&&ErrorUtils.getGlobalHandler();ErrorUtils.setGlobalHandler((function(t,r){e.captureException(t),n&&n(t,r)}));var o=r(244);o.disable(),o.enable({allRejections:!0,onUnhandled:function(t,r){e.addEvent("lr.core.Exception",(function(){return{exceptionType:"UNHANDLED_REJECTION",message:r.reason||"Unhandled Promise rejection"}}))}});var i=r(245),a=i._onHandle||i._Y,u=i._onReject||i._Z,s=t.Promise._onHandle,f=t.Promise._onReject,c=t.Promise._Y,l=t.Promise._X;i!==t.Promise&&void 0!==a&&void 0!==u&&("_onHandle"in t.Promise&&"_onReject"in t.Promise?(t.Promise._onHandle=a,t.Promise._onReject=u):"_Y"in t.Promise&&"_Z"in t.Promise&&(t.Promise._Y=a,t.Promise._Z=u)),this._installed.push((function(){n&&ErrorUtils.setGlobalHandler(n),o.disable(),t.Promise._onHandle=s,t.Promise._onReject=f,t.Promise._Y=c,t.Promise._X=l}))}},{key:"addEvent",value:function(t,e,r){var n=this;if(!this._isDisabled){var o=e(this._getConfig(t)),i=Date.now();if(null!=o&&!this._isDisabled){var a=function(){if("lr.redux.ReduxAction"===t&&o.action&&o.action.type){var e=o.action.type;n._reduxActions[e]?n._reduxActions[e]++:n._reduxActions[e]=1,o.count=n._reduxActions[e]}if("lr.core.LogEvent"===t&&n._isReduxLogger(o))n._didWarnAboutReduxLogger||(n._didWarnAboutReduxLogger=!0,console.warn("LogRocket: Redux logger detected, skipping data. Please use the LogRocket redux middleware to record production redux logs: https://docs.logrocket.com/docs/redux-middleware"));else switch(t){case"lr.redux.InitialState":n._captureReduxInitialState(n.reduxEncoder.encodeInitialState(o));break;case"lr.redux.ReduxAction":n._captureReduxAction(n.reduxEncoder.encodeReduxAction(o));break;case"lr.core.Exception":var a=o.exceptionType,u=o.message,s=o.errorType,f=void 0===s?"":s;n._captureException(w(u),f,a,r&&JSON.stringify(r._stackTrace)||"[]");break;case"lr.core.LogEvent":var c=o.logLevel,l=o.args,p=l&&l.map(w);n._addLog(c,p||[]);break;case"lr.network.RequestEvent":n._inflightNetwork[o.reqId]={time:i},n._captureRequest(o.reqId,(0,h.getRequestData)(o));break;case"lr.network.ResponseEvent":var d=n._inflightNetwork[o.reqId],v=(0,h.getResponseData)(o);d&&d.time&&(v.duration=i-d.time),n._captureResponse(o.reqId,v),delete n._inflightNetwork[o.reqId]}};if(this._didInit)a();else{if(this._buffer.length>=O)return console.warn("LogRocket has not been initialized. Event buffering is now disabled."),this.disableAndClearBuffer(),void this.uninstall();this._buffer.push(a)}}}}},{key:"shutdown",value:function(){this._didInit?(this.uninstall(),this._shutdown()):this.disableAndClearBuffer(),this.eventListener&&this.eventListener.remove()}},{key:"track",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof t)if(0!==t.length){var r=(0,v.sanitizeEventProps)(e,d.MAX_CUSTOM_PROPS_PER_SESSION-this._customPropCount),n=r.eventProps,o=r.errors;this._customPropCount+=Object.keys(n).length,o.forEach((function(t){return console.warn("LogRocket Track API: ".concat((0,g.printEventPropError)(t)))})),this._track(t,n)}else console.warn("LogRocket: custom event name must be not be an empty string");else console.warn("LogRocket: must pass string to track()")}},{key:"captureException",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};l.Capture.captureException(this,t,e)}},{key:"_divineAnonymousId",value:function(){return this._lastIdentifyCall&&this._lastIdentifyCall.isAnonymous?this._lastIdentifyCall.userID:(0,y.uuid)()}},{key:"identify",value:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],i=e[1],a=!1;if(this._identifyCalls++,!(this._identifyCalls>10)){if(10===this._identifyCalls&&console.warn("LogRocket: More than 10 identify calls on this page. Ignoring future calls."),null==i&&"object"===(0,o.default)(n)&&null!==n&&null==(n=(i=n||{}).userID)&&this._lastIdentifyCall&&this._lastIdentifyCall.userID){var u=this._lastIdentifyCall;n=u.userID,a=u.isAnonymous}if(!n){if(i&&(i.name||i.email)){var s=i.name?"name":"email";return void console.warn("LogRocket: user ".concat(s," passed to identify, but no userID given: identify(userId, { ").concat(s,": '...' })."))}a=!0,n=this._divineAnonymousId()}if(/string|number/.test((0,o.default)(n))){if(!(n.toString().length>this._maxIdentityArgLength)){var f=i;if(i){for(var c={},l=["userID","name","email"],p=0,h=Object.keys(i||{});p<h.length;p++){var d=h[p],v=i[d];if(-1===l.indexOf(d)){if(/boolean|number|string/.test((0,o.default)(v))){var g=d.toString();if(this.textEncoder&&this.textEncoder.encode(g).length>this._maxUserTraitBytes){console.warn("LogRocket: Ignoring large user trait key ".concat(g));continue}if(v.toString().length>this._maxIdentityArgLength){console.warn('LogRocket: ignoring large user trait value for key "'.concat(g,'" (max ').concat(this._maxIdentityArgLength," characters)"));continue}c[g]=v.toString()}}else if(v&&"string"==typeof v){if(v.length>this._maxIdentityArgLength){console.warn('LogRocket: too large generic trait "'.concat(d,'" passed to identify() (max ').concat(this._maxIdentityArgLength," characters)"));continue}c[d]=v}}f=c}return this._lastIdentifyCall={userID:n.toString(),email:f?f.email:void 0,name:f?f.name:void 0,isAnonymous:a},this._identifyWithTraits(this._lastIdentifyCall.userID,f,a)}console.warn("LogRocket: too large userID passed to identify() (max ".concat(this._maxIdentityArgLength," characters)"))}else console.warn("LogRocket: must pass a valid user id to identify().")}}},{key:"init",value:function(t,e){var r=e.addLog,n=void 0===r?function(){}:r,o=e.captureException,i=void 0===o?function(){}:o,a=e.captureReduxAction,u=void 0===a?function(){}:a,s=e.captureReduxInitialState,l=void 0===s?function(){}:s,p=e.captureRequest,h=void 0===p?function(){}:p,d=e.captureResponse,v=void 0===d?function(){}:d,g=e.identifyWithTraits,y=void 0===g?function(){}:g,_=e.track,b=void 0===_?function(){}:_,m=e.shutdown,O=void 0===m?function(){}:m,x=t.maxUserTraitBytes,w=void 0===x?128:x;if(this._didInit)console.error("LogRocket.init() was already called. You may only call LogRocket.init() once.");else for((0,c.default)(this),(0,f.default)(this,{isReactNative:!0,shouldAugmentNPS:!1,shouldParseXHRBlob:!1}),this._registerExceptions(),this._didInit=!0,this._isDisabled=!1,this._addLog=n,this._captureException=i,this._captureReduxAction=u,this._captureReduxInitialState=l,this._captureRequest=h,this._captureResponse=v,this._config=function(t){return E(E({},t),{},{console:E(E({},t.console||{}),{},{shouldAggregateConsoleErrors:!1})})}(t),this._identifyWithTraits=y,this._maxUserTraitBytes=w,this._track=b,this._shutdown=O;this._buffer.length>0;){this._buffer.shift()(this)}}},{key:"uninstall",value:function(){this._installed&&this._installed.forEach((function(t){return t()})),this.reset()}},{key:"disableAndClearBuffer",value:function(){this._isDisabled=!0,this._buffer=[]}},{key:"reset",value:function(){this._didInit=!1,this._config=null,this._installed=[],this._isDisabled=!1,this._didWarnAboutReduxSize=!1,this._addLog=function(){},this._captureRequest=function(){},this._captureResponse=function(){},this._track=function(){},this._inflightNetwork={},this._maxIdentityArgLength=1024,this._maxUserTraitBytes=128,this._buffer=[],this._customPropCount=0,this._identifyCalls=0,this._reduxActions={},this._didWarnAboutReduxLogger=!1,this.wallByteStreams={}}}]),e}()}).call(this,r(6))},function(t,e){function r(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(t.exports=r=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=r=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),r(e)}t.exports=r,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";var n=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{isReactNative:!1},r=e.isReactNative,n=e.shouldAugmentNPS,o=e.shouldParseXHRBlob,c={},p=function(t){var e=t;if("object"===(0,i.default)(t)&&null!=t){var r=Object.getPrototypeOf(t);r!==Object.prototype&&null!==r||(e=JSON.stringify(t))}if(e&&e.length&&e.length>4096e3&&"string"==typeof e){var n=e.substring(0,1e3);return"".concat(n," ... LogRocket truncating to first 1000 characters.\n Keep data under 4MB to prevent truncation. https://docs.logrocket.com/reference#network")}return t},h=function(e,r){var n=r.method;t.addEvent("lr.network.RequestEvent",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=t.isEnabled,i=void 0===o||o,a=t.requestSanitizer,u=void 0===a?function(t){return t}:a;if(!i)return null;var s=null;try{s=u(l(l({},r),{},{reqId:e}))}catch(t){console.error(t)}if(s){var h=s.url;if("undefined"!=typeof document&&"function"==typeof document.createElement){var d=document.createElement("a");d.href=s.url,h=d.href}return{reqId:e,url:h,headers:(0,f.default)(s.headers,(function(t){return"".concat(t)})),body:p(s.body),method:n,referrer:s.referrer||void 0,mode:s.mode||void 0,credentials:s.credentials||void 0}}return c[e]=!0,null}))},d=function(e,r){var n=r.method,o=r.status;t.addEvent("lr.network.ResponseEvent",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.isEnabled,a=void 0===i||i,u=t.responseSanitizer,s=void 0===u?function(t){return t}:u;if(!a)return null;if(c[e])return delete c[e],null;var h=null;try{h=s(l(l({},r),{},{reqId:e}))}catch(t){console.error(t)}return h?{reqId:e,status:h.status,headers:(0,f.default)(h.headers,(function(t){return"".concat(t)})),body:p(h.body),method:n}:{reqId:e,status:o,headers:{},body:null,method:n}}))},v=function(e){return t.isDisabled||!0===c[e]},g=(0,a.default)({addRequest:h,addResponse:d,isIgnored:v}),y=(0,s.default)({addRequest:h,addResponse:d,isIgnored:v,logger:t,shouldAugmentNPS:n,shouldParseXHRBlob:o}),_=r?function(){}:(0,u.default)(t);return function(){_(),g(),y()}};var o=n(r(2)),i=n(r(3)),a=n(r(91)),u=n(r(96)),s=n(r(41)),f=n(r(19));function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){(0,o.default)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}t.exports=e.default},function(t,e,r){"use strict";var n=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.addRequest,r=t.addResponse,n=t.isIgnored,o="fetch-",i={};return a.default.register({request:function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];var u;if("undefined"!=typeof Request&&n[0]instanceof Request){var f;try{f=n[0].clone().text()}catch(t){f=Promise.resolve("LogRocket fetch error: ".concat(t.message))}u=f.then((function(t){return s(s({},c(n[0])),{},{body:t})}),(function(t){return s(s({},c(n[0])),{},{body:"LogRocket fetch error: ".concat(t.message)})}))}else u=Promise.resolve(s(s({},c(n[1])),{},{url:"".concat(n[0]),body:(n[1]||{}).body}));return u.then((function(r){return i[t]=r.method,e("".concat(o).concat(t),r),n}))},requestError:function(t,e){return Promise.reject(e)},response:function(t,e){var a;if(n("".concat(o).concat(t)))return e;try{a=e.clone().text()}catch(t){a=Promise.resolve("LogRocket fetch error: ".concat(t.message))}return a.catch((function(t){if(!("AbortError"===t.name&&t instanceof DOMException))throw t})).then((function(n){var a={url:e.url,status:e.status,headers:f(e.headers),body:n,method:i[t]};delete i[t],r("".concat(o).concat(t),a)})),e},responseError:function(t,e){var n={url:void 0,status:0,headers:{},body:"".concat(e)};return r("".concat(o).concat(t),n),Promise.reject(e)}})};var o=n(r(2)),i=n(r(19)),a=n(r(92));function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){(0,o.default)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var f=function(t){return(0,i.default)(function(t){if(null==t||"function"!=typeof t.forEach)return t;var e={};return t.forEach((function(t,r){e[r]?e[r]="".concat(e[r],",").concat(t):e[r]="".concat(t)})),e}(t),(function(t){return"".concat(t)}))};function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{url:t.url,headers:f(t.headers),method:t.method&&t.method.toUpperCase(),referrer:t.referrer||void 0,mode:t.mode||void 0,credentials:t.credentials||void 0}}t.exports=e.default},function(t,e,r){"use strict";var n=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(r(20)),i=r(41),a=[];function u(t,e){for(var r=a.reduce((function(t,e){return[e].concat(t)}),[]),n=arguments.length,u=new Array(n>2?n-2:0),s=2;s<n;s++)u[s-2]=arguments[s];var f=Promise.resolve(u);return r.forEach((function(t){var r=t.request,n=t.requestError;(r||n)&&(f=f.then((function(t){return r.apply(void 0,[e].concat((0,o.default)(t)))}),(function(t){return n.apply(void 0,[e].concat((0,o.default)(t)))})))})),f=f.then((function(e){var r,n;(0,i.setActive)(!1);try{r=t.apply(void 0,(0,o.default)(e))}catch(t){n=t}if((0,i.setActive)(!0),n)throw n;return r})),r.forEach((function(t){var r=t.response,n=t.responseError;(r||n)&&(f=f.then((function(t){return r(e,t)}),(function(t){return n&&n(e,t)})))})),f}var s=!1,f={register:function(t){return s||(s=!0,function(t){if(t.fetch&&t.Promise){var e,r,n=t.fetch.polyfill;t.fetch=(e=t.fetch,r=0,function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return u.apply(void 0,[e,r++].concat(n))}),n&&(t.fetch.polyfill=n)}}(window)),a.push(t),function(){var e=a.indexOf(t);e>=0&&a.splice(e,1)}},clear:function(){a=[]}};e.default=f,t.exports=e.default},function(t,e,r){var n=r(39);t.exports=function(t){if(Array.isArray(t))return n(t)},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=void 0;function r(){var r={online:window.navigator.onLine,effectiveType:"UNKOWN"};window.navigator.onLine?window.navigator.connection&&window.navigator.connection.effectiveType&&(r.effectiveType=n[window.navigator.connection.effectiveType]||"UNKNOWN"):r.effectiveType="NONE",e&&r.online===e.online&&r.effectiveType===e.effectiveType||(e=r,t.addEvent("lr.network.NetworkStatusEvent",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.isEnabled,n=void 0===e||e;return n?r:null})))}setTimeout(r),window.navigator.connection&&"function"==typeof window.navigator.connection.addEventListener&&window.navigator.connection.addEventListener("change",r);return window.addEventListener("online",r),window.addEventListener("offline",r),function(){window.removeEventListener("offline",r),window.removeEventListener("online",r),window.navigator.connection&&"function"==typeof window.navigator.connection.removeEventListener&&window.navigator.connection.removeEventListener("change",r)}};var n={"slow-2g":"SLOW2G","2g":"TWOG","3g":"THREEG","4g":"FOURG"};t.exports=e.default},function(t,e,r){"use strict";var n=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(r(98)).default;e.default=o,t.exports=e.default},function(t,e,r){"use strict";var n=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=[];return["log","warn","info","error","debug"].forEach((function(r){e.push((0,i.default)(console,r,(function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];t.addEvent("lr.core.LogEvent",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.isEnabled;return"object"===(0,o.default)(i)&&!1===i[r]||!1===i?null:("error"===r&&e.shouldAggregateConsoleErrors&&a.Capture.captureMessage(t,n[0],{},!0),{logLevel:r.toUpperCase(),args:n})}))})))})),function(){e.forEach((function(t){return t()}))}};var o=n(r(3)),i=n(r(21)),a=r(43);t.exports=e.default},function(t,e,r){"use strict";var n=r(23),o=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=new i.default({captureException:function(e){a.captureException(t,null,null,e)}}),r=function(e){t.addEvent("lr.core.Exception",(function(){return{exceptionType:"UNHANDLED_REJECTION",message:e.reason||"Unhandled Promise rejection"}}))};return window.addEventListener("unhandledrejection",r),function(){window.removeEventListener("unhandledrejection",r),e.uninstall()}};var i=o(r(100)),a=n(r(44));t.exports=e.default},function(t,e,r){"use strict";(function(n){var o=r(0);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(r(101)),a=o(r(102)),u=o(r(24)),s=Object.prototype;function f(t){return void 0===t}function c(t){return"function"==typeof t}function l(t,e){return s.hasOwnProperty.call(t,e)}function p(t,e,r,n){var o=t[e];t[e]=r(o),n&&n.push([t,e,o])}var h="undefined"!=typeof window?window:void 0!==n?n:"undefined"!=typeof self?self:{},d=(h.document,function(){function t(e){var r=e.captureException;(0,i.default)(this,t),this._errorHandler=this._errorHandler.bind(this),this._ignoreOnError=0,this._wrappedBuiltIns=[],this.captureException=r,u.default.report.subscribe(this._errorHandler),this._instrumentTryCatch()}return(0,a.default)(t,[{key:"uninstall",value:function(){var t;for(u.default.report.unsubscribe(this._errorHandler);this._wrappedBuiltIns.length;){var e=(t=this._wrappedBuiltIns.shift())[0],r=t[1],n=t[2];e[r]=n}}},{key:"_errorHandler",value:function(t){this._ignoreOnError||this.captureException(t)}},{key:"_ignoreNextOnError",value:function(){var t=this;this._ignoreOnError+=1,setTimeout((function(){t._ignoreOnError-=1}))}},{key:"context",value:function(t,e,r){return c(t)&&(r=e||[],e=t,t=void 0),this.wrap(t,e).apply(this,r)}},{key:"wrap",value:function(t,e,r){var n=this;if(f(e)&&!c(t))return t;if(c(t)&&(e=t,t=void 0),!c(e))return e;try{if(e.__lr__)return e;if(e.__lr_wrapper__)return e.__lr_wrapper__;if(!Object.isExtensible(e))return e}catch(t){return e}function o(){var o=[],i=arguments.length,a=!t||t&&!1!==t.deep;for(r&&c(r)&&r.apply(this,arguments);i--;)o[i]=a?n.wrap(t,arguments[i]):arguments[i];try{return e.apply(this,o)}catch(e){throw n._ignoreNextOnError(),n.captureException(u.default.computeStackTrace(e),t),e}}for(var i in e)l(e,i)&&(o[i]=e[i]);return o.prototype=e.prototype,e.__lr_wrapper__=o,o.__lr__=!0,o.__inner__=e,o}},{key:"_instrumentTryCatch",value:function(){var t=this,e=t._wrappedBuiltIns;function r(e){return function(r,n){for(var o=new Array(arguments.length),i=0;i<o.length;++i)o[i]=arguments[i];var a=o[0];return c(a)&&(o[0]=t.wrap(a)),e.apply?e.apply(this,o):e(o[0],o[1])}}function n(r){var n=h[r]&&h[r].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(p(n,"addEventListener",(function(e){return function(r,n,o,i){try{n&&n.handleEvent&&(n.handleEvent=t.wrap(n.handleEvent))}catch(t){}return e.call(this,r,t.wrap(n,void 0,undefined),o,i)}}),e),p(n,"removeEventListener",(function(t){return function(e,r,n,o){try{r=r&&(r.__lr_wrapper__?r.__lr_wrapper__:r)}catch(t){}return t.call(this,e,r,n,o)}}),e))}p(h,"setTimeout",r,e),p(h,"setInterval",r,e),h.requestAnimationFrame&&p(h,"requestAnimationFrame",(function(e){return function(r){return e(t.wrap(r))}}),e);for(var o=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],i=0;i<o.length;i++)n(o[i]);var a=h.jQuery||h.$;a&&a.fn&&a.fn.ready&&p(a.fn,"ready",(function(e){return function(r){return e.call(this,t.wrap(r))}}),e)}}]),t}());e.default=d,t.exports=e.default}).call(this,r(6))},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){function e(t){return null===t?void 0:t}return t.stack?t.stack.map((function(t){return{lineNumber:e(t.line),columnNumber:e(t.column),fileName:e(t.url),functionName:e(t.func)}})):void 0},t.exports=e.default},function(t,e,r){"use strict";(function(t){
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *
@@ -28,6 +28,22 @@ RCT_EXPORT_METHOD(getSessionURL:(RCTResponseSenderBlock)callback)
28
28
  [LROSDK getSessionURL:completion];
29
29
  }
30
30
 
31
+ NSMutableDictionary<NSString *, LROResponseBuilder *> *capturedRequests;
32
+
33
+ - (id)init {
34
+ self = [super init];
35
+
36
+ if (self) {
37
+ capturedRequests = [[NSMutableDictionary alloc] init];
38
+ }
39
+
40
+ return self;
41
+ }
42
+
43
+ + (BOOL)requiresMainQueueSetup {
44
+ return YES;
45
+ }
46
+
31
47
  RCT_EXPORT_METHOD(initWithConfig:(NSString *)appID
32
48
  config:(NSDictionary *)config
33
49
  resolver:(RCTPromiseResolveBlock)resolve
@@ -88,4 +104,77 @@ RCT_EXPORT_METHOD(shutdown:(RCTPromiseResolveBlock)resolve
88
104
  }
89
105
  }
90
106
 
107
+ RCT_EXPORT_METHOD(track:(NSString *)customEventName eventProperties:(NSDictionary *)eventProperties)
108
+ {
109
+ LROCustomEventBuilder *builder = [[LROCustomEventBuilder alloc] initWithName:customEventName];
110
+
111
+ for (NSString *key in eventProperties) {
112
+ NSDictionary *value = [eventProperties objectForKey:key];
113
+
114
+ if ([value objectForKey:@"doubleVal"]) {
115
+ NSArray *doubleArray = [value objectForKey:@"doubleVal"];
116
+ [builder putDoubleArrayWithKey:key value:doubleArray];
117
+ } else if ([value objectForKey:@"boolVal"]) {
118
+ NSArray *boolArray = [value objectForKey:@"boolVal"];
119
+ [builder putBoolArrayWithKey:key value:boolArray];
120
+ } else if ([value objectForKey:@"stringVal"]) {
121
+ NSArray *stringArray = [value objectForKey:@"stringVal"];
122
+ [builder putStringArrayWithKey:key value:stringArray];
123
+ }
124
+ }
125
+
126
+ [LROSDK track:builder];
127
+ }
128
+
129
+
130
+ RCT_EXPORT_METHOD(captureRequest:(NSString *)reqID request:(NSDictionary *)request)
131
+ {
132
+ LRORequestBuilder *builder = [LROSDK newRequestBuilder];
133
+ builder.url = request[@"url"];
134
+
135
+ if ([request objectForKey:@"body"]) {
136
+ NSDictionary *arson = [request objectForKey:@"body"];
137
+ if (arson && [arson objectForKey:@"arson"]) {
138
+ builder.arsonBody = [arson objectForKey:@"arson"];
139
+ }
140
+ }
141
+
142
+ if ([request objectForKey:@"method"]) {
143
+ builder.method = [request objectForKey:@"method"];
144
+ }
145
+
146
+ if ([request objectForKey:@"headers"]) {
147
+ builder.headers = [request objectForKey:@"headers"];
148
+ }
149
+
150
+ capturedRequests[reqID] = [builder capture];
151
+ }
152
+
153
+ RCT_EXPORT_METHOD(captureResponse:(NSString *)reqID response:(NSDictionary *)response)
154
+ {
155
+ LROResponseBuilder *builder = capturedRequests[reqID];
156
+
157
+ if (builder) {
158
+ if ([response objectForKey:@"body"]) {
159
+ NSDictionary *arson = [response objectForKey:@"body"];
160
+ if (arson && [arson objectForKey:@"arson"]) {
161
+ builder.arsonBody = [arson objectForKey:@"arson"];
162
+ }
163
+ }
164
+
165
+ if ([response objectForKey:@"statusCode"]) {
166
+ NSNumber *statusCode = (NSNumber *) [response objectForKey:@"statusCode"];
167
+ builder.status = [statusCode longValue];
168
+ }
169
+
170
+ if ([response objectForKey:@"headers"]) {
171
+ builder.headers = [response objectForKey:@"headers"];
172
+ }
173
+
174
+ [builder capture];
175
+ }
176
+
177
+ [capturedRequests removeObjectForKey:reqID];
178
+ }
179
+
91
180
  @end
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
16
16
  s.source_files = "ios/**/*.{h,c,m,swift}"
17
17
  s.requires_arc = true
18
18
 
19
- s.dependency "LogRocket", "0.22.0"
19
+ s.dependency "LogRocket", "0.23.0"
20
20
  s.dependency "React"
21
21
  end
22
22
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@logrocket/react-native",
3
3
  "title": "Logrocket Native Module",
4
- "version": "0.22.0",
4
+ "version": "0.23.0",
5
5
  "description": "LogRocket SDK for react-native",
6
6
  "typings": "types.d.ts",
7
7
  "files": [