&&` helpers in initial condition allow es6 code\n // to co-exist with es5.\n // 2. Replace `for of` with es5 compliant iteration using `for`.\n // Basically, take:\n //\n // ```js\n // for (i of a.entries())\n // if (!b.has(i[0])) return false;\n // ```\n //\n // ... and convert to:\n //\n // ```js\n // it = a.entries();\n // while (!(i = it.next()).done)\n // if (!b.has(i.value[0])) return false;\n // ```\n //\n // **Note**: `i` access switches to `i.value`.\n var it;\n if (hasMap && a instanceof Map && b instanceof Map) {\n if (a.size !== b.size) return false;\n it = a.entries();\n while (!(i = it.next()).done) if (!b.has(i.value[0])) return false;\n it = a.entries();\n while (!(i = it.next()).done) if (!equal(i.value[1], b.get(i.value[0]))) return false;\n return true;\n }\n if (hasSet && a instanceof Set && b instanceof Set) {\n if (a.size !== b.size) return false;\n it = a.entries();\n while (!(i = it.next()).done) if (!b.has(i.value[0])) return false;\n return true;\n }\n // END: Modifications\n\n if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {\n length = a.length;\n if (length != b.length) return false;\n for (i = length; i-- !== 0;) if (a[i] !== b[i]) return false;\n return true;\n }\n if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;\n if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();\n if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) return false;\n for (i = length; i-- !== 0;) if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;\n // END: fast-deep-equal\n\n // START: react-fast-compare\n // custom handling for DOM elements\n if (hasElementType && a instanceof Element) return false;\n\n // custom handling for React/Preact\n for (i = length; i-- !== 0;) {\n if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {\n // React-specific: avoid traversing React elements' _owner\n // Preact-specific: avoid traversing Preact elements' __v and __o\n // __v = $_original / $_vnode\n // __o = $_owner\n // These properties contain circular references and are not needed when\n // comparing the actual elements (and not their owners)\n // .$$typeof and ._store on just reasonable markers of elements\n\n continue;\n }\n\n // all other properties should be traversed as usual\n if (!equal(a[keys[i]], b[keys[i]])) return false;\n }\n // END: react-fast-compare\n\n // START: fast-deep-equal\n return true;\n }\n return a !== a && b !== b;\n}\n// end fast-deep-equal\n\nmodule.exports = function isEqual(a, b) {\n try {\n return equal(a, b);\n } catch (error) {\n if ((error.message || '').match(/stack|recursion/i)) {\n // warn on circular references, don't crash\n // browsers give this different errors name and messages:\n // chrome/safari: \"RangeError\", \"Maximum call stack size exceeded\"\n // firefox: \"InternalError\", too much recursion\"\n // edge: \"Error\", \"Out of stack space\"\n console.warn('react-fast-compare cannot handle circular refs');\n return false;\n }\n // some other error. we should definitely know about these\n throw error;\n }\n};","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.defaultProps = exports.propTypes = void 0;\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\nvar string = _propTypes[\"default\"].string,\n bool = _propTypes[\"default\"].bool,\n number = _propTypes[\"default\"].number,\n array = _propTypes[\"default\"].array,\n oneOfType = _propTypes[\"default\"].oneOfType,\n shape = _propTypes[\"default\"].shape,\n object = _propTypes[\"default\"].object,\n func = _propTypes[\"default\"].func,\n node = _propTypes[\"default\"].node;\nvar propTypes = {\n url: oneOfType([string, array, object]),\n playing: bool,\n loop: bool,\n controls: bool,\n volume: number,\n muted: bool,\n playbackRate: number,\n width: oneOfType([string, number]),\n height: oneOfType([string, number]),\n style: object,\n progressInterval: number,\n playsinline: bool,\n pip: bool,\n stopOnUnmount: bool,\n light: oneOfType([bool, string, object]),\n playIcon: node,\n previewTabIndex: number,\n fallback: node,\n oEmbedUrl: string,\n wrapper: oneOfType([string, func, shape({\n render: func.isRequired\n })]),\n config: shape({\n soundcloud: shape({\n options: object\n }),\n youtube: shape({\n playerVars: object,\n embedOptions: object,\n onUnstarted: func\n }),\n facebook: shape({\n appId: string,\n version: string,\n playerId: string,\n attributes: object\n }),\n dailymotion: shape({\n params: object\n }),\n vimeo: shape({\n playerOptions: object,\n title: string\n }),\n file: shape({\n attributes: object,\n tracks: array,\n forceVideo: bool,\n forceAudio: bool,\n forceHLS: bool,\n forceDASH: bool,\n forceFLV: bool,\n hlsOptions: object,\n hlsVersion: string,\n dashVersion: string,\n flvVersion: string\n }),\n wistia: shape({\n options: object,\n playerId: string,\n customControls: array\n }),\n mixcloud: shape({\n options: object\n }),\n twitch: shape({\n options: object,\n playerId: string\n }),\n vidyard: shape({\n options: object\n })\n }),\n onReady: func,\n onStart: func,\n onPlay: func,\n onPause: func,\n onBuffer: func,\n onBufferEnd: func,\n onEnded: func,\n onError: func,\n onDuration: func,\n onSeek: func,\n onPlaybackRateChange: func,\n onProgress: func,\n onClickPreview: func,\n onEnablePIP: func,\n onDisablePIP: func\n};\nexports.propTypes = propTypes;\nvar noop = function noop() {};\nvar defaultProps = {\n playing: false,\n loop: false,\n controls: false,\n volume: null,\n muted: false,\n playbackRate: 1,\n width: '640px',\n height: '360px',\n style: {},\n progressInterval: 1000,\n playsinline: false,\n pip: false,\n stopOnUnmount: true,\n light: false,\n fallback: null,\n wrapper: 'div',\n previewTabIndex: 0,\n oEmbedUrl: 'https://noembed.com/embed?url={url}',\n config: {\n soundcloud: {\n options: {\n visual: true,\n // Undocumented, but makes player fill container and look better\n buying: false,\n liking: false,\n download: false,\n sharing: false,\n show_comments: false,\n show_playcount: false\n }\n },\n youtube: {\n playerVars: {\n playsinline: 1,\n showinfo: 0,\n rel: 0,\n iv_load_policy: 3,\n modestbranding: 1\n },\n embedOptions: {},\n onUnstarted: noop\n },\n facebook: {\n appId: '1309697205772819',\n version: 'v3.3',\n playerId: null,\n attributes: {}\n },\n dailymotion: {\n params: {\n api: 1,\n 'endscreen-enable': false\n }\n },\n vimeo: {\n playerOptions: {\n autopause: false,\n byline: false,\n portrait: false,\n title: false\n },\n title: null\n },\n file: {\n attributes: {},\n tracks: [],\n forceVideo: false,\n forceAudio: false,\n forceHLS: false,\n forceDASH: false,\n forceFLV: false,\n hlsOptions: {},\n hlsVersion: '1.1.4',\n dashVersion: '3.1.3',\n flvVersion: '1.5.0'\n },\n wistia: {\n options: {},\n playerId: null,\n customControls: null\n },\n mixcloud: {\n options: {\n hide_cover: 1\n }\n },\n twitch: {\n options: {},\n playerId: null\n },\n vidyard: {\n options: {}\n }\n },\n onReady: noop,\n onStart: noop,\n onPlay: noop,\n onPause: noop,\n onBuffer: noop,\n onBufferEnd: noop,\n onEnded: noop,\n onError: noop,\n onDuration: noop,\n onSeek: noop,\n onPlaybackRateChange: noop,\n onProgress: noop,\n onClickPreview: noop,\n onEnablePIP: noop,\n onDisablePIP: noop\n};\nexports.defaultProps = defaultProps;","var isObject = require('./isObject');\n\n/**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\nfunction isStrictComparable(value) {\n return value === value && !isObject(value);\n}\nmodule.exports = isStrictComparable;","/**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction matchesStrictComparable(key, srcValue) {\n return function (object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue && (srcValue !== undefined || key in Object(object));\n };\n}\nmodule.exports = matchesStrictComparable;","var castPath = require('./_castPath'),\n toKey = require('./_toKey');\n\n/**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\nfunction baseGet(object, path) {\n path = castPath(path, object);\n var index = 0,\n length = path.length;\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return index && index == length ? object : undefined;\n}\nmodule.exports = baseGet;","var isArray = require('./isArray'),\n isKey = require('./_isKey'),\n stringToPath = require('./_stringToPath'),\n toString = require('./toString');\n\n/**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\nfunction castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n}\nmodule.exports = castPath;","\"use strict\";\n\nvar __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function () {\n return m[k];\n }\n });\n} : function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar __exportStar = this && this.__exportStar || function (m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar Client_1 = require(\"./Client\");\n__exportStar(require(\"./types\"), exports);\n__exportStar(require(\"./Client\"), exports);\nexports.default = Client_1.createClientApp;","\"use strict\";\n\nvar __assign = this && this.__assign || function () {\n __assign = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __spreadArray = this && this.__spreadArray || function (to, from) {\n for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) to[j] = from[i];\n return to;\n};\nvar __importDefault = this && this.__importDefault || function (mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n};\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.createApp = exports.createAppWrapper = exports.createClientApp = exports.WINDOW_UNDEFINED_MESSAGE = void 0;\nvar helper_1 = require(\"../actions/helper\");\nvar Print_1 = require(\"../actions/Print\");\nvar Error_1 = require(\"../actions/Error\");\nvar MessageTransport_1 = require(\"../MessageTransport\");\nvar shared_1 = require(\"../util/shared\");\nvar env_1 = require(\"../util/env\");\nvar Client_1 = require(\"../actions/Client\");\nvar WebVitals_1 = require(\"../actions/WebVitals\");\nvar print_1 = require(\"./print\");\nvar redirect_1 = require(\"./redirect\");\nvar types_1 = require(\"./types\");\nvar Hooks_1 = __importDefault(require(\"./Hooks\"));\nexports.WINDOW_UNDEFINED_MESSAGE = 'window is not defined. Running an app outside a browser is not supported';\nfunction redirectHandler(hostFrame, config) {\n var apiKey = config.apiKey,\n host = config.host,\n _a = config.forceRedirect,\n forceRedirect = _a === void 0 ? !env_1.isDevelopmentClient : _a;\n var location = redirect_1.getLocation();\n if (env_1.isUnframed || !location || !apiKey || !host || !forceRedirect || !redirect_1.shouldRedirect(hostFrame)) {\n return;\n }\n var url = \"https://\" + host + \"/apps/\" + apiKey + location.pathname + (location.search || '');\n redirect_1.redirect(url);\n}\nfunction appSetUp(app) {\n app.subscribe(Print_1.Action.APP, print_1.handleAppPrint);\n app.dispatch(Client_1.initialize());\n WebVitals_1.initializeWebVitals(app);\n}\n/**\n * @internal\n */\nvar createClientApp = function (transport, middlewares) {\n if (middlewares === void 0) {\n middlewares = [];\n }\n var getStateListeners = [];\n var transportListener = MessageTransport_1.createTransportListener();\n var handler = function (event) {\n var message = event.data;\n var type = message.type,\n payload = message.payload;\n switch (type) {\n case 'getState':\n {\n var resolvers = getStateListeners.splice(0);\n resolvers.forEach(function (resolver) {\n return resolver(payload);\n });\n break;\n }\n case 'dispatch':\n {\n transportListener.handleMessage(payload);\n var hasCallback = transportListener.handleActionDispatch(payload);\n if (hasCallback) {\n return;\n }\n // Throw an error if there are no subscriptions to this error\n var errorType = helper_1.findMatchInEnum(Error_1.Action, payload.type);\n if (errorType) {\n Error_1.throwError(errorType, payload);\n }\n break;\n }\n default:\n // Silently swallow unknown actions\n }\n };\n\n transport.subscribe(handler);\n return function (config) {\n var decodedConfig = validateAndDecodeConfig(config);\n var dispatcher = createDispatcher(transport, decodedConfig);\n var subscribe = transportListener.createSubscribeHandler(dispatcher);\n // It is possible to initialize an app multiple times\n // Therefore we need to clear subscriptions to be safe\n dispatcher(types_1.MessageType.Unsubscribe);\n function dispatch(action) {\n dispatcher(types_1.MessageType.Dispatch, action);\n return action;\n }\n redirectHandler(transport.hostFrame, decodedConfig);\n var hostOrigin = new URL(\"https://\" + decodedConfig.host).origin;\n var hooks = new Hooks_1.default();\n var app = {\n hostOrigin: hostOrigin,\n localOrigin: transport.localOrigin,\n hooks: hooks,\n dispatch: function (action) {\n if (!app.hooks) {\n return dispatch(action);\n }\n return app.hooks.run(types_1.LifecycleHook.DispatchAction, dispatch, app, action);\n },\n featuresAvailable: function () {\n var features = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n features[_i] = arguments[_i];\n }\n var firstItem = features[0];\n var parsedFeatures = Array.isArray(firstItem) ? __spreadArray([], firstItem) : features;\n return app.getState('features').then(function (state) {\n if (parsedFeatures.length) {\n return parsedFeatures.reduce(function (acc, feature) {\n if (Object.keys(state).includes(feature)) {\n acc[feature] = state[feature];\n }\n return acc;\n }, {});\n }\n return state;\n });\n },\n getState: function (query) {\n if (query && typeof query !== 'string') {\n return Promise.resolve(undefined);\n }\n return new Promise(function (resolve) {\n getStateListeners.push(resolve);\n dispatcher(types_1.MessageType.GetState);\n }).then(function (state) {\n var newState = state;\n if (query) {\n for (var _i = 0, _a = query.split('.'); _i < _a.length; _i++) {\n var key = _a[_i];\n if (newState == null || typeof newState !== 'object' || Array.isArray(newState) || !Object.keys(newState).includes(key)) {\n return undefined;\n }\n newState = newState[key];\n }\n }\n return newState;\n });\n },\n subscribe: subscribe,\n error: function (listener, id) {\n var unsubscribeCb = [];\n helper_1.forEachInEnum(Error_1.Action, function (eventNameSpace) {\n unsubscribeCb.push(subscribe(eventNameSpace, listener, id));\n });\n return function () {\n unsubscribeCb.forEach(function (unsubscribe) {\n return unsubscribe();\n });\n };\n }\n };\n for (var _i = 0, middlewares_1 = middlewares; _i < middlewares_1.length; _i++) {\n var middleware = middlewares_1[_i];\n middleware(hooks, app);\n }\n appSetUp(app);\n return app;\n };\n};\nexports.createClientApp = createClientApp;\n/**\n * @internal\n */\nfunction validateAndDecodeConfig(config) {\n var _a;\n if (!config.host) {\n throw Error_1.fromAction('host must be provided', Error_1.AppActionType.INVALID_CONFIG);\n }\n if (!config.apiKey) {\n throw Error_1.fromAction('apiKey must be provided', Error_1.AppActionType.INVALID_CONFIG);\n }\n try {\n var host = atob((_a = config.host) === null || _a === void 0 ? void 0 : _a.replace(/_/g, '/').replace(/-/g, '+'));\n return __assign(__assign({}, config), {\n host: host\n });\n } catch (_b) {\n var message = \"not a valid host, please use the value provided by Shopify\";\n throw Error_1.fromAction(message, Error_1.AppActionType.INVALID_CONFIG);\n }\n}\n/**\n * @public\n */\nfunction createAppWrapper(frame, localOrigin, middleware) {\n if (middleware === void 0) {\n middleware = [];\n }\n if (!frame) {\n throw Error_1.fromAction(exports.WINDOW_UNDEFINED_MESSAGE, Error_1.AppActionType.WINDOW_UNDEFINED);\n }\n var location = redirect_1.getLocation();\n var origin = localOrigin || location && location.origin;\n if (!origin) {\n throw Error_1.fromAction('local origin cannot be blank', Error_1.AppActionType.MISSING_LOCAL_ORIGIN);\n }\n var transport = MessageTransport_1.fromWindow(frame, origin);\n var appCreator = exports.createClientApp(transport, middleware);\n return appCreator;\n}\nexports.createAppWrapper = createAppWrapper;\n/**\n * Creates your application instance.\n * @param config - `apiKey` and `host` are both required.\n * @remarks\n * You will need to store `host` during the authentication process and then retrieve it for the code to work properly. To learn more about this process, see {@link https://help.shopify.com/api/embedded-apps/shop-origin | Getting and storing the shop origin}.\n * @public\n */\nfunction createApp(config) {\n var currentWindow = redirect_1.getWindow();\n if (!currentWindow || !currentWindow.top) {\n return shared_1.serverAppBridge;\n }\n return createAppWrapper(currentWindow.top)(config);\n}\nexports.createApp = createApp;\nfunction createDispatcher(transport, config) {\n return function (type, payload) {\n transport.dispatch({\n payload: payload,\n source: config,\n type: type\n });\n };\n}\n/**\n * {@inheritdocs createApp}\n * @public\n */\nexports.default = createApp;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.SEPARATOR = exports.PREFIX = void 0;\nexports.PREFIX = 'APP';\nexports.SEPARATOR = '::';","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.app = exports.Action = void 0;\nvar helper_1 = require(\"../helper\");\nvar types_1 = require(\"../types\");\nvar Action;\n(function (Action) {\n Action[\"APP\"] = \"APP::PRINT::APP\";\n})(Action = exports.Action || (exports.Action = {}));\nfunction app() {\n return helper_1.actionWrapper({\n group: types_1.Group.Print,\n type: Action.APP\n });\n}\nexports.app = app;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.isAppMessage = exports.isPermitted = exports.getPermissionKey = exports.isFromApp = exports.isPerformanceOrWebVitalsAction = exports.isAppBridgeAction = void 0;\nvar types_1 = require(\"../client/types\");\nvar constants_1 = require(\"./constants\");\nvar helper_1 = require(\"./helper\");\n/**\n * Predicate to determine if an action is an App Bridge action.\n * @public\n */\nfunction isAppBridgeAction(action) {\n return action instanceof Object && Object.prototype.hasOwnProperty.call(action, 'type') && action.type.toString().startsWith(constants_1.PREFIX);\n}\nexports.isAppBridgeAction = isAppBridgeAction;\n/**\n * Function used to determine if an action is in the Performance or WebVitals groups\n * @public\n */\nfunction isPerformanceOrWebVitalsAction(_a) {\n var type = _a.type;\n return type.match(/^APP::(PERFORMANCE|WEB_VITALS)::/);\n}\nexports.isPerformanceOrWebVitalsAction = isPerformanceOrWebVitalsAction;\n/**\n * Predicate to determine if an action originated from an application.\n * @internal\n */\nfunction isFromApp(action) {\n if (typeof action !== 'object' || typeof action.source !== 'object') {\n return false;\n }\n return typeof action.source.apiKey === 'string';\n}\nexports.isFromApp = isFromApp;\n/**\n * Returns the action type without the prefix and group\n * @internal\n */\nfunction getPermissionKey(type) {\n return type.replace(new RegExp(\"^\" + constants_1.PREFIX + constants_1.SEPARATOR + \"\\\\w+\" + constants_1.SEPARATOR), '');\n}\nexports.getPermissionKey = getPermissionKey;\n/**\n * Predicate to determine if an action is permitted\n * @internal\n */\nfunction isPermitted(features, _a, permissionType) {\n var group = _a.group,\n type = _a.type;\n if (!group || !Object.prototype.hasOwnProperty.call(features, group)) {\n return false;\n }\n var feature = features[group];\n if (!feature) {\n return false;\n }\n var actionType = getPermissionKey(type);\n return feature[actionType] ? feature[actionType][permissionType] === true : false;\n}\nexports.isPermitted = isPermitted;\n/**\n * Predicate to determine if an event originated from an application.\n * @internal\n */\nfunction isAppMessage(event) {\n if (typeof event !== 'object' || !event.data || typeof event.data !== 'object') {\n return false;\n }\n var data = event.data;\n return Object.prototype.hasOwnProperty.call(data, 'type') && helper_1.findMatchInEnum(types_1.MessageType, data.type) !== undefined;\n}\nexports.isAppMessage = isAppMessage;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.initialize = exports.Action = void 0;\nvar types_1 = require(\"../types\");\nvar helper_1 = require(\"../helper\");\nvar Action;\n(function (Action) {\n Action[\"INITIALIZE\"] = \"APP::CLIENT::INITIALIZE\";\n})(Action = exports.Action || (exports.Action = {}));\nfunction initialize() {\n return helper_1.actionWrapper({\n group: types_1.Group.Client,\n type: Action.INITIALIZE\n });\n}\nexports.initialize = initialize;","\"use strict\";\n\nvar __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function () {\n return m[k];\n }\n });\n} : function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar __exportStar = this && this.__exportStar || function (m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n__exportStar(require(\"./actions\"), exports);","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getWindow = exports.getLocation = exports.redirect = exports.shouldRedirect = void 0;\nfunction shouldRedirect(frame) {\n return frame === window;\n}\nexports.shouldRedirect = shouldRedirect;\nfunction redirect(url) {\n var location = getLocation();\n if (!location) {\n return;\n }\n location.assign(url);\n}\nexports.redirect = redirect;\nfunction getLocation() {\n return hasWindow() ? window.location : undefined;\n}\nexports.getLocation = getLocation;\nfunction getWindow() {\n return hasWindow() ? window : undefined;\n}\nexports.getWindow = getWindow;\nfunction hasWindow() {\n return typeof window !== 'undefined';\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.generateUuid = void 0;\n/**\n * Convert a number or array of integers to a string of padded hex octets.\n */\nfunction asHex(value) {\n return Array.from(value).map(function (i) {\n return (\"00\" + i.toString(16)).slice(-2);\n }).join('');\n}\n/**\n * Attempt to securely generate random bytes/\n */\nfunction getRandomBytes(size) {\n // SPRNG\n if (typeof Uint8Array === 'function' && typeof window === 'object' && window.crypto) {\n var buffer = new Uint8Array(size);\n var randomValues = window.crypto.getRandomValues(buffer);\n if (randomValues) {\n return randomValues;\n }\n }\n // Insecure random\n return Array.from(new Array(size), function () {\n return Math.random() * 255 | 0;\n });\n}\n/**\n * Generate a RFC4122-compliant v4 UUID.\n *\n * @see http://www.ietf.org/rfc/rfc4122.txt\n */\nfunction generateUuid() {\n var version = 64;\n var clockSeqHiAndReserved = getRandomBytes(1);\n var timeHiAndVersion = getRandomBytes(2);\n clockSeqHiAndReserved[0] &= 63 | 128;\n // tslint:disable-next-line:binary-expression-operand-order\n timeHiAndVersion[0] &= 15 | version;\n return [\n // time-low\n asHex(getRandomBytes(4)), '-',\n // time-mid\n asHex(getRandomBytes(2)), '-',\n // time-high-and-version\n asHex(timeHiAndVersion), '-',\n // clock-seq-and-reserved\n asHex(clockSeqHiAndReserved),\n // clock-seq-loq\n asHex(getRandomBytes(1)), '-',\n // node\n asHex(getRandomBytes(6))].join('');\n}\nexports.generateUuid = generateUuid;\n// Default\nexports.default = generateUuid;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.isShopifyPing = exports.isShopifyPOS = exports.isShopifyMobile = exports.isMobile = void 0;\nfunction isMobile() {\n return isShopifyMobile() || isShopifyPOS() || isShopifyPing();\n}\nexports.isMobile = isMobile;\nfunction isShopifyMobile() {\n return typeof navigator !== 'undefined' && navigator.userAgent.indexOf('Shopify Mobile') >= 0;\n}\nexports.isShopifyMobile = isShopifyMobile;\nfunction isShopifyPOS() {\n return typeof navigator !== 'undefined' && navigator.userAgent.indexOf('Shopify POS') >= 0;\n}\nexports.isShopifyPOS = isShopifyPOS;\nfunction isShopifyPing() {\n return typeof navigator !== 'undefined' && navigator.userAgent.indexOf('Shopify Ping') >= 0;\n}\nexports.isShopifyPing = isShopifyPing;","\"use strict\";\n\nvar __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function () {\n return m[k];\n }\n });\n} : function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar __setModuleDefault = this && this.__setModuleDefault || (Object.create ? function (o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function (o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = this && this.__importStar || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function (resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = this && this.__generator || function (thisArg, body) {\n var _ = {\n label: 0,\n sent: function () {\n if (t[0] & 1) throw t[1];\n return t[1];\n },\n trys: [],\n ops: []\n },\n f,\n y,\n t,\n g;\n return g = {\n next: verb(0),\n \"throw\": verb(1),\n \"return\": verb(2)\n }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function () {\n return this;\n }), g;\n function verb(n) {\n return function (v) {\n return step([n, v]);\n };\n }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0:\n case 1:\n t = op;\n break;\n case 4:\n _.label++;\n return {\n value: op[1],\n done: false\n };\n case 5:\n _.label++;\n y = op[1];\n op = [0];\n continue;\n case 7:\n op = _.ops.pop();\n _.trys.pop();\n continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n _ = 0;\n continue;\n }\n if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {\n _.label = op[1];\n break;\n }\n if (op[0] === 6 && _.label < t[1]) {\n _.label = t[1];\n t = op;\n break;\n }\n if (t && _.label < t[2]) {\n _.label = t[2];\n _.ops.push(op);\n break;\n }\n if (t[2]) _.ops.pop();\n _.trys.pop();\n continue;\n }\n op = body.call(thisArg, _);\n } catch (e) {\n op = [6, e];\n y = 0;\n } finally {\n f = t = 0;\n }\n if (op[0] & 5) throw op[1];\n return {\n value: op[0] ? op[1] : void 0,\n done: true\n };\n }\n};\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getSessionToken = void 0;\nvar SessionToken = __importStar(require(\"@shopify/app-bridge/actions/SessionToken\"));\nvar Error_1 = require(\"@shopify/app-bridge/actions/Error\");\nfunction getSessionToken(appBridge) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, new Promise(function (resolve, reject) {\n var unsubscribe = appBridge.subscribe(SessionToken.Action.RESPOND, function (_a) {\n var sessionToken = _a.sessionToken;\n if (sessionToken) {\n resolve(sessionToken);\n } else {\n reject(Error_1.fromAction('Failed to retrieve a session token', Error_1.Action.FAILED_AUTHENTICATION));\n }\n unsubscribe();\n });\n appBridge.dispatch(SessionToken.request());\n })];\n });\n });\n}\nexports.getSessionToken = getSessionToken;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.respond = exports.request = exports.Action = void 0;\nvar helper_1 = require(\"../helper\");\nvar types_1 = require(\"../types\");\nvar Action;\n(function (Action) {\n Action[\"REQUEST\"] = \"APP::SESSION_TOKEN::REQUEST\";\n Action[\"RESPOND\"] = \"APP::SESSION_TOKEN::RESPOND\";\n})(Action = exports.Action || (exports.Action = {}));\nfunction request() {\n return helper_1.actionWrapper({\n group: types_1.Group.SessionToken,\n type: Action.REQUEST\n });\n}\nexports.request = request;\nfunction respond(sessionToken) {\n return helper_1.actionWrapper({\n payload: sessionToken,\n group: types_1.Group.SessionToken,\n type: Action.RESPOND\n });\n}\nexports.respond = respond;","\"use strict\";\n\nvar __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function () {\n return m[k];\n }\n });\n} : function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar __setModuleDefault = this && this.__setModuleDefault || (Object.create ? function (o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function (o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = this && this.__importStar || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function (resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = this && this.__generator || function (thisArg, body) {\n var _ = {\n label: 0,\n sent: function () {\n if (t[0] & 1) throw t[1];\n return t[1];\n },\n trys: [],\n ops: []\n },\n f,\n y,\n t,\n g;\n return g = {\n next: verb(0),\n \"throw\": verb(1),\n \"return\": verb(2)\n }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function () {\n return this;\n }), g;\n function verb(n) {\n return function (v) {\n return step([n, v]);\n };\n }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0:\n case 1:\n t = op;\n break;\n case 4:\n _.label++;\n return {\n value: op[1],\n done: false\n };\n case 5:\n _.label++;\n y = op[1];\n op = [0];\n continue;\n case 7:\n op = _.ops.pop();\n _.trys.pop();\n continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n _ = 0;\n continue;\n }\n if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {\n _.label = op[1];\n break;\n }\n if (op[0] === 6 && _.label < t[1]) {\n _.label = t[1];\n t = op;\n break;\n }\n if (t && _.label < t[2]) {\n _.label = t[2];\n _.ops.push(op);\n break;\n }\n if (t[2]) _.ops.pop();\n _.trys.pop();\n continue;\n }\n op = body.call(thisArg, _);\n } catch (e) {\n op = [6, e];\n y = 0;\n } finally {\n f = t = 0;\n }\n if (op[0] & 5) throw op[1];\n return {\n value: op[0] ? op[1] : void 0,\n done: true\n };\n }\n};\nvar __importDefault = this && this.__importDefault || function (mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n};\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getAuthorizationCodePayload = void 0;\nvar AuthCode = __importStar(require(\"@shopify/app-bridge/actions/AuthCode\"));\nvar Error_1 = require(\"@shopify/app-bridge/actions/Error\");\nvar uuid_1 = __importDefault(require(\"@shopify/app-bridge/actions/uuid\"));\nfunction getAuthorizationCodePayload(app) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, new Promise(function (resolve, reject) {\n var requestId = uuid_1.default();\n var unsubscribe = app.subscribe(AuthCode.Action.RESPOND, function (payload) {\n switch (payload === null || payload === void 0 ? void 0 : payload.status) {\n case 'needsExchange':\n resolve(payload);\n break;\n default:\n reject(Error_1.fromAction('Failed to retrieve an authorization code', Error_1.Action.FAILED_AUTHENTICATION));\n }\n unsubscribe();\n }, requestId);\n app.dispatch(AuthCode.request(requestId));\n })];\n });\n });\n}\nexports.getAuthorizationCodePayload = getAuthorizationCodePayload;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.respond = exports.request = exports.Action = void 0;\nvar helper_1 = require(\"../helper\");\nvar types_1 = require(\"../types\");\nvar Action;\n(function (Action) {\n Action[\"REQUEST\"] = \"APP::AUTH_CODE::REQUEST\";\n Action[\"RESPOND\"] = \"APP::AUTH_CODE::RESPOND\";\n})(Action = exports.Action || (exports.Action = {}));\nfunction request(id) {\n return helper_1.actionWrapper({\n group: types_1.Group.AuthCode,\n type: Action.REQUEST,\n payload: {\n id: id\n }\n });\n}\nexports.request = request;\nfunction respond(payload) {\n return helper_1.actionWrapper({\n payload: payload,\n group: types_1.Group.AuthCode,\n type: Action.RESPOND\n });\n}\nexports.respond = respond;","\"use strict\";\n\nvar __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function () {\n return m[k];\n }\n });\n} : function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar __exportStar = this && this.__exportStar || function (m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n__exportStar(require(\"./actions\"), exports);\n__exportStar(require(\"./types\"), exports);","\"use strict\";\n\nvar __extends = this && this.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null) throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __assign = this && this.__assign || function () {\n __assign = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.create = exports.ResourcePicker = exports.update = exports.close = exports.cancel = exports.open = exports.select = exports.ActionVerb = exports.ResourceType = exports.ProductStatus = exports.ProductVariantInventoryManagement = exports.ProductVariantInventoryPolicy = exports.WeightUnit = exports.FulfillmentServiceType = exports.CollectionSortOrder = exports.Action = void 0;\nvar helper_1 = require(\"../helper\");\nvar ActionSet_1 = require(\"../ActionSet\");\nvar types_1 = require(\"../types\");\nvar Action;\n(function (Action) {\n Action[\"OPEN\"] = \"APP::RESOURCE_PICKER::OPEN\";\n Action[\"SELECT\"] = \"APP::RESOURCE_PICKER::SELECT\";\n // Deprecated in 0.5.0 use 'APP::RESOURCE_PICKER::CANCEL' instead\n Action[\"CLOSE\"] = \"APP::RESOURCE_PICKER::CLOSE\";\n Action[\"UPDATE\"] = \"APP::RESOURCE_PICKER::UPDATE\";\n Action[\"CANCEL\"] = \"APP::RESOURCE_PICKER::CANCEL\";\n})(Action = exports.Action || (exports.Action = {}));\nvar CollectionSortOrder;\n(function (CollectionSortOrder) {\n CollectionSortOrder[\"Manual\"] = \"MANUAL\";\n CollectionSortOrder[\"BestSelling\"] = \"BEST_SELLING\";\n CollectionSortOrder[\"AlphaAsc\"] = \"ALPHA_ASC\";\n CollectionSortOrder[\"AlphaDesc\"] = \"ALPHA_DESC\";\n CollectionSortOrder[\"PriceDesc\"] = \"PRICE_DESC\";\n CollectionSortOrder[\"PriceAsc\"] = \"PRICE_ASC\";\n CollectionSortOrder[\"CreatedDesc\"] = \"CREATED_DESC\";\n CollectionSortOrder[\"Created\"] = \"CREATED\";\n})(CollectionSortOrder = exports.CollectionSortOrder || (exports.CollectionSortOrder = {}));\nvar FulfillmentServiceType;\n(function (FulfillmentServiceType) {\n FulfillmentServiceType[\"GiftCard\"] = \"GIFT_CARD\";\n FulfillmentServiceType[\"Manual\"] = \"MANUAL\";\n FulfillmentServiceType[\"ThirdParty\"] = \"THIRD_PARTY\";\n})(FulfillmentServiceType = exports.FulfillmentServiceType || (exports.FulfillmentServiceType = {}));\nvar WeightUnit;\n(function (WeightUnit) {\n WeightUnit[\"Kilograms\"] = \"KILOGRAMS\";\n WeightUnit[\"Grams\"] = \"GRAMS\";\n WeightUnit[\"Pounds\"] = \"POUNDS\";\n WeightUnit[\"Ounces\"] = \"OUNCES\";\n})(WeightUnit = exports.WeightUnit || (exports.WeightUnit = {}));\nvar ProductVariantInventoryPolicy;\n(function (ProductVariantInventoryPolicy) {\n ProductVariantInventoryPolicy[\"Deny\"] = \"DENY\";\n ProductVariantInventoryPolicy[\"Continue\"] = \"CONTINUE\";\n})(ProductVariantInventoryPolicy = exports.ProductVariantInventoryPolicy || (exports.ProductVariantInventoryPolicy = {}));\nvar ProductVariantInventoryManagement;\n(function (ProductVariantInventoryManagement) {\n ProductVariantInventoryManagement[\"Shopify\"] = \"SHOPIFY\";\n ProductVariantInventoryManagement[\"NotManaged\"] = \"NOT_MANAGED\";\n ProductVariantInventoryManagement[\"FulfillmentService\"] = \"FULFILLMENT_SERVICE\";\n})(ProductVariantInventoryManagement = exports.ProductVariantInventoryManagement || (exports.ProductVariantInventoryManagement = {}));\nvar ProductStatus;\n(function (ProductStatus) {\n ProductStatus[\"Active\"] = \"ACTIVE\";\n ProductStatus[\"Archived\"] = \"ARCHIVED\";\n ProductStatus[\"Draft\"] = \"DRAFT\";\n})(ProductStatus = exports.ProductStatus || (exports.ProductStatus = {}));\nvar ResourceType;\n(function (ResourceType) {\n ResourceType[\"Product\"] = \"product\";\n ResourceType[\"ProductVariant\"] = \"variant\";\n ResourceType[\"Collection\"] = \"collection\";\n})(ResourceType = exports.ResourceType || (exports.ResourceType = {}));\nvar ActionVerb;\n(function (ActionVerb) {\n ActionVerb[\"Add\"] = \"add\";\n ActionVerb[\"Select\"] = \"select\";\n})(ActionVerb = exports.ActionVerb || (exports.ActionVerb = {}));\nfunction select(payload) {\n return helper_1.actionWrapper({\n payload: payload,\n group: types_1.Group.ResourcePicker,\n type: Action.SELECT\n });\n}\nexports.select = select;\nfunction open(payload) {\n return helper_1.actionWrapper({\n payload: payload,\n group: types_1.Group.ResourcePicker,\n type: Action.OPEN\n });\n}\nexports.open = open;\nfunction cancel(payload) {\n return helper_1.actionWrapper({\n payload: payload,\n group: types_1.Group.ResourcePicker,\n type: Action.CANCEL\n });\n}\nexports.cancel = cancel;\nfunction close(payload) {\n return helper_1.actionWrapper({\n payload: payload,\n group: types_1.Group.ResourcePicker,\n type: Action.CANCEL\n });\n}\nexports.close = close;\nfunction update(payload) {\n return helper_1.actionWrapper({\n payload: payload,\n group: types_1.Group.ResourcePicker,\n type: Action.UPDATE\n });\n}\nexports.update = update;\nvar ResourcePicker = /** @class */function (_super) {\n __extends(ResourcePicker, _super);\n function ResourcePicker(app, options, resourceType) {\n var _this = _super.call(this, app, types_1.Group.ResourcePicker, types_1.Group.ResourcePicker) || this;\n _this.initialSelectionIds = [];\n _this.selection = [];\n _this.resourceType = resourceType;\n _this.set(options, false);\n return _this;\n }\n Object.defineProperty(ResourcePicker.prototype, \"payload\", {\n get: function () {\n return __assign(__assign({}, this.options), {\n id: this.id,\n resourceType: this.resourceType\n });\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(ResourcePicker.prototype, \"options\", {\n get: function () {\n var options = {\n initialQuery: this.initialQuery,\n selectMultiple: this.selectMultiple,\n initialSelectionIds: this.initialSelectionIds,\n showHidden: this.showHidden,\n actionVerb: this.actionVerb\n };\n if (this.resourceType === ResourceType.Product) {\n var productOptions = __assign(__assign({}, options), {\n showVariants: this.showVariants,\n showDraft: this.showDraft,\n showArchived: this.showArchived,\n showDraftBadge: this.showDraftBadge,\n showArchivedBadge: this.showArchivedBadge\n });\n return productOptions;\n }\n return options;\n },\n enumerable: false,\n configurable: true\n });\n ResourcePicker.prototype.set = function (options, shouldUpdate) {\n if (shouldUpdate === void 0) {\n shouldUpdate = true;\n }\n var mergedOptions = helper_1.getMergedProps(this.options, options);\n var initialQuery = mergedOptions.initialQuery,\n _a = mergedOptions.initialSelectionIds,\n initialSelectionIds = _a === void 0 ? [] : _a,\n _b = mergedOptions.showHidden,\n showHidden = _b === void 0 ? true : _b,\n _c = mergedOptions.showVariants,\n showVariants = _c === void 0 ? true : _c,\n _d = mergedOptions.showDraft,\n showDraft = _d === void 0 ? true : _d,\n _e = mergedOptions.showArchived,\n showArchived = _e === void 0 ? true : _e,\n _f = mergedOptions.showDraftBadge,\n showDraftBadge = _f === void 0 ? false : _f,\n _g = mergedOptions.showArchivedBadge,\n showArchivedBadge = _g === void 0 ? false : _g,\n _h = mergedOptions.selectMultiple,\n selectMultiple = _h === void 0 ? true : _h,\n _j = mergedOptions.actionVerb,\n actionVerb = _j === void 0 ? ActionVerb.Add : _j;\n this.initialQuery = initialQuery;\n this.initialSelectionIds = initialSelectionIds;\n this.showHidden = showHidden;\n this.showVariants = showVariants;\n this.showDraft = showDraft;\n this.showArchived = showArchived;\n this.showDraftBadge = showDraftBadge;\n this.showArchivedBadge = showArchivedBadge;\n this.selectMultiple = selectMultiple;\n this.actionVerb = actionVerb;\n if (shouldUpdate) {\n this.update();\n }\n return this;\n };\n ResourcePicker.prototype.dispatch = function (action, selection) {\n if (action === Action.OPEN) {\n this.open();\n } else if (action === Action.UPDATE) {\n this.update();\n } else if (action === Action.CLOSE || action === Action.CANCEL) {\n this.cancel();\n } else if (action === Action.SELECT) {\n this.selection = selection;\n this.app.dispatch(select({\n id: this.id,\n selection: this.selection\n }));\n }\n return this;\n };\n ResourcePicker.prototype.update = function () {\n this.app.dispatch(update(this.payload));\n };\n ResourcePicker.prototype.open = function () {\n this.app.dispatch(open(this.payload));\n };\n ResourcePicker.prototype.cancel = function () {\n this.app.dispatch(cancel({\n id: this.id\n }));\n };\n ResourcePicker.prototype.close = function () {\n this.cancel();\n };\n return ResourcePicker;\n}(ActionSet_1.ActionSet);\nexports.ResourcePicker = ResourcePicker;\nvar create = function (app, baseOptions) {\n var resourceType = baseOptions.resourceType,\n _a = baseOptions.options,\n options = _a === void 0 ? {} : _a;\n return new ResourcePicker(app, options, resourceType);\n};\nexports.create = create;","\"use strict\";\n\nvar __extends = this && this.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null) throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __assign = this && this.__assign || function () {\n __assign = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.create = exports.TitleBar = exports.update = exports.clickBreadcrumb = exports.clickActionButton = exports.Action = void 0;\nvar Button_1 = require(\"../Button\");\nvar ButtonGroup_1 = require(\"../ButtonGroup\");\nvar buttonGroupHelper_1 = require(\"../buttonGroupHelper\");\nvar buttonHelper_1 = require(\"../buttonHelper\");\nvar helper_1 = require(\"../helper\");\nvar ActionSet_1 = require(\"../ActionSet\");\nvar types_1 = require(\"../types\");\nvar Action;\n(function (Action) {\n Action[\"UPDATE\"] = \"APP::TITLEBAR::UPDATE\";\n Action[\"BUTTON_CLICK\"] = \"APP::TITLEBAR::BUTTONS::BUTTON::CLICK\";\n Action[\"BUTTON_UPDATE\"] = \"APP::TITLEBAR::BUTTONS::BUTTON::UPDATE\";\n Action[\"BUTTON_GROUP_UPDATE\"] = \"APP::TITLEBAR::BUTTONS::BUTTONGROUP::UPDATE\";\n Action[\"BREADCRUMBS_CLICK\"] = \"APP::TITLEBAR::BREADCRUMBS::BUTTON::CLICK\";\n Action[\"BREADCRUMBS_UPDATE\"] = \"APP::TITLEBAR::BREADCRUMBS::BUTTON::UPDATE\";\n})(Action = exports.Action || (exports.Action = {}));\nvar TITLEBAR_BUTTON_PROPS = {\n group: types_1.Group.TitleBar,\n subgroups: ['Buttons']\n};\nvar BREADCRUMB_BUTTON_PROPS = {\n group: types_1.Group.TitleBar,\n subgroups: ['Breadcrumbs'],\n type: types_1.ComponentType.Button\n};\nfunction clickActionButton(id, payload) {\n var type = types_1.ComponentType.Button;\n var component = __assign({\n id: id,\n type: type\n }, TITLEBAR_BUTTON_PROPS);\n return Button_1.clickButton(types_1.Group.TitleBar, component, payload);\n}\nexports.clickActionButton = clickActionButton;\nfunction clickBreadcrumb(id, payload) {\n var component = __assign({\n id: id\n }, BREADCRUMB_BUTTON_PROPS);\n return Button_1.clickButton(types_1.Group.TitleBar, component, payload);\n}\nexports.clickBreadcrumb = clickBreadcrumb;\nfunction update(payload) {\n return helper_1.actionWrapper({\n payload: payload,\n group: types_1.Group.TitleBar,\n type: Action.UPDATE\n });\n}\nexports.update = update;\nvar TitleBar = /** @class */function (_super) {\n __extends(TitleBar, _super);\n function TitleBar(app, options) {\n var _this = _super.call(this, app, types_1.Group.TitleBar, types_1.Group.TitleBar) || this;\n if (!options.title && !options.breadcrumbs && !options.buttons) {\n return _this;\n }\n // Trigger 'update' on creation\n _this.set(options);\n return _this;\n }\n Object.defineProperty(TitleBar.prototype, \"buttons\", {\n get: function () {\n if (!this.primary && !this.secondary) {\n return undefined;\n }\n return {\n primary: this.primary,\n secondary: this.secondary\n };\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(TitleBar.prototype, \"buttonsOptions\", {\n get: function () {\n if (!this.primaryOptions && !this.secondaryOptions) {\n return undefined;\n }\n return {\n primary: this.primaryOptions,\n secondary: this.secondaryOptions\n };\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(TitleBar.prototype, \"options\", {\n get: function () {\n return {\n breadcrumbs: this.breadcrumbsOption,\n buttons: this.buttonsOptions,\n title: this.title\n };\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(TitleBar.prototype, \"payload\", {\n get: function () {\n return __assign(__assign({}, this.options), {\n breadcrumbs: this.breadcrumb,\n buttons: this.buttons,\n id: this.id\n });\n },\n enumerable: false,\n configurable: true\n });\n TitleBar.prototype.set = function (options, shouldUpdate) {\n if (shouldUpdate === void 0) {\n shouldUpdate = true;\n }\n var mergedOptions = helper_1.getMergedProps(this.options, options);\n var title = mergedOptions.title,\n buttons = mergedOptions.buttons,\n breadcrumbs = mergedOptions.breadcrumbs;\n this.title = title;\n this.setBreadcrumbs(breadcrumbs);\n this.setPrimaryButton(buttons ? buttons.primary : undefined);\n this.setSecondaryButton(buttons ? buttons.secondary : undefined);\n if (shouldUpdate) {\n this.dispatch(Action.UPDATE);\n }\n return this;\n };\n TitleBar.prototype.dispatch = function (action) {\n switch (action) {\n case Action.UPDATE:\n this.app.dispatch(update(this.payload));\n break;\n }\n return this;\n };\n TitleBar.prototype.getButton = function (button, subgroups, updateCb) {\n if (button instanceof ButtonGroup_1.ButtonGroup) {\n return buttonGroupHelper_1.getGroupedButton(this, button, subgroups, updateCb);\n }\n return buttonHelper_1.getSingleButton(this, button, subgroups, updateCb);\n };\n TitleBar.prototype.updatePrimaryButton = function (newPayload) {\n if (!this.primary) {\n return;\n }\n if (helper_1.updateActionFromPayload(this.primary, newPayload)) {\n this.dispatch(Action.UPDATE);\n }\n };\n TitleBar.prototype.updateSecondaryButtons = function (newPayload) {\n if (!this.secondary) {\n return;\n }\n var buttonToUpdate = this.secondary.find(function (action) {\n return action.id === newPayload.id;\n });\n if (!buttonToUpdate) {\n return;\n }\n var updated = false;\n if (ButtonGroup_1.isGroupedButtonPayload(newPayload)) {\n updated = helper_1.updateActionFromPayload(buttonToUpdate, newPayload);\n } else {\n updated = helper_1.updateActionFromPayload(buttonToUpdate, newPayload);\n }\n if (updated) {\n this.dispatch(Action.UPDATE);\n }\n };\n TitleBar.prototype.updateBreadcrumbButton = function (newPayload) {\n if (!this.breadcrumb) {\n return;\n }\n if (helper_1.updateActionFromPayload(this.breadcrumb, newPayload)) {\n this.dispatch(Action.UPDATE);\n }\n };\n TitleBar.prototype.setPrimaryButton = function (newOptions) {\n this.primaryOptions = this.getChildButton(newOptions, this.primaryOptions);\n this.primary = this.primaryOptions ? this.getButton(this.primaryOptions, TITLEBAR_BUTTON_PROPS.subgroups, this.updatePrimaryButton) : undefined;\n };\n TitleBar.prototype.setSecondaryButton = function (newOptions) {\n var _this = this;\n var newButtons = newOptions || [];\n var currentButtons = this.secondaryOptions || [];\n this.secondaryOptions = this.getUpdatedChildActions(newButtons, currentButtons);\n this.secondary = this.secondaryOptions ? this.secondaryOptions.map(function (action) {\n return _this.getButton(action, TITLEBAR_BUTTON_PROPS.subgroups, _this.updateSecondaryButtons);\n }) : undefined;\n };\n TitleBar.prototype.setBreadcrumbs = function (breadcrumb) {\n this.breadcrumbsOption = this.getChildButton(breadcrumb, this.breadcrumbsOption);\n this.breadcrumb = this.breadcrumbsOption ? this.getButton(this.breadcrumbsOption, BREADCRUMB_BUTTON_PROPS.subgroups, this.updateBreadcrumbButton) : undefined;\n };\n TitleBar.prototype.getChildButton = function (newAction, currentAction) {\n var newButtons = newAction ? [newAction] : [];\n var currentButtons = currentAction ? [currentAction] : [];\n var updatedButton = this.getUpdatedChildActions(newButtons, currentButtons);\n return updatedButton ? updatedButton[0] : undefined;\n };\n return TitleBar;\n}(ActionSet_1.ActionSetWithChildren);\nexports.TitleBar = TitleBar;\nfunction create(app, options) {\n return new TitleBar(app, options);\n}\nexports.create = create;","\"use strict\";\n\nvar __extends = this && this.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null) throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __assign = this && this.__assign || function () {\n __assign = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.create = exports.ContextualSaveBar = exports.discard = exports.save = exports.hide = exports.show = exports.Action = void 0;\nvar helper_1 = require(\"../helper\");\nvar ActionSet_1 = require(\"../ActionSet\");\nvar types_1 = require(\"../types\");\n/**\n * ContextualSaveBar action enum\n */\nvar Action;\n(function (Action) {\n Action[\"DISCARD\"] = \"APP::CONTEXTUAL_SAVE_BAR::DISCARD\";\n Action[\"SAVE\"] = \"APP::CONTEXTUAL_SAVE_BAR::SAVE\";\n Action[\"SHOW\"] = \"APP::CONTEXTUAL_SAVE_BAR::SHOW\";\n Action[\"HIDE\"] = \"APP::CONTEXTUAL_SAVE_BAR::HIDE\";\n Action[\"UPDATE\"] = \"APP::CONTEXTUAL_SAVE_BAR::UPDATE\";\n})(Action = exports.Action || (exports.Action = {}));\nfunction createContextBarAction(action, payload) {\n return helper_1.actionWrapper({\n group: types_1.Group.ContextualSaveBar,\n type: action,\n payload: payload\n });\n}\nfunction show(payload) {\n return createContextBarAction(Action.SHOW, payload);\n}\nexports.show = show;\nfunction hide(payload) {\n return createContextBarAction(Action.HIDE, payload);\n}\nexports.hide = hide;\nfunction save(payload) {\n return createContextBarAction(Action.SAVE, payload);\n}\nexports.save = save;\nfunction discard(payload) {\n return createContextBarAction(Action.DISCARD, payload);\n}\nexports.discard = discard;\n/**\n * ContextualSaveBar action set\n */\nvar ContextualSaveBar = /** @class */function (_super) {\n __extends(ContextualSaveBar, _super);\n /**\n * Returns a new instance of a ContextualSaveBar action set\n * @param app the client application\n */\n function ContextualSaveBar(app, options) {\n if (options === void 0) {\n options = {};\n }\n var _this = _super.call(this, app, types_1.Group.ContextualSaveBar, types_1.Group.ContextualSaveBar) || this;\n _this.options = options;\n _this.set(options, false);\n return _this;\n }\n Object.defineProperty(ContextualSaveBar.prototype, \"payload\", {\n /**\n * Returns the action set payload\n */\n get: function () {\n return __assign({\n id: this.id\n }, this.options);\n },\n enumerable: false,\n configurable: true\n });\n ContextualSaveBar.prototype.set = function (options, shouldUpdate) {\n if (shouldUpdate === void 0) {\n shouldUpdate = true;\n }\n var mergedOptions = helper_1.getMergedProps(this.options, options);\n this.options = mergedOptions;\n if (shouldUpdate) {\n this.dispatch(Action.UPDATE);\n }\n return this;\n };\n /**\n * Dispatches a given action with the action set payload\n * @param action the action enum\n * @returns the action set instance\n */\n ContextualSaveBar.prototype.dispatch = function (action) {\n this.app.dispatch(createContextBarAction(action, this.payload));\n return this;\n };\n return ContextualSaveBar;\n}(ActionSet_1.ActionSet);\nexports.ContextualSaveBar = ContextualSaveBar;\n/**\n * Returns a new instance of a ContextualSaveBar action set\n * @param app the client application\n *\n */\nfunction create(app, options) {\n return new ContextualSaveBar(app, options);\n}\nexports.create = create;","\"use strict\";\n\nvar __extends = this && this.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null) throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nvar __assign = this && this.__assign || function () {\n __assign = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.create = exports.NavigationMenu = exports.update = exports.Action = void 0;\nvar AppLink_1 = require(\"../../Link/AppLink\");\nvar helper_1 = require(\"../../helper\");\nvar ActionSet_1 = require(\"../../ActionSet\");\nvar types_1 = require(\"../../types\");\nvar SUBGROUPS = ['Navigation_Menu'];\nvar Action;\n(function (Action) {\n Action[\"UPDATE\"] = \"APP::MENU::NAVIGATION_MENU::UPDATE\";\n Action[\"LINK_UPDATE\"] = \"APP::MENU::NAVIGATION_MENU::LINK::UPDATE\";\n})(Action = exports.Action || (exports.Action = {}));\nfunction update(payload) {\n return helper_1.actionWrapper({\n payload: payload,\n group: types_1.Group.Menu,\n type: Action.UPDATE\n });\n}\nexports.update = update;\nvar NavigationMenu = /** @class */function (_super) {\n __extends(NavigationMenu, _super);\n function NavigationMenu(app, options) {\n var _this = _super.call(this, app, 'Navigation_Menu', types_1.Group.Menu) || this;\n _this.items = [];\n // Trigger 'update' on creation\n _this.set(options);\n return _this;\n }\n Object.defineProperty(NavigationMenu.prototype, \"options\", {\n get: function () {\n return {\n items: this.itemsOptions,\n active: this.activeOptions\n };\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(NavigationMenu.prototype, \"payload\", {\n get: function () {\n return __assign(__assign({}, this.options), {\n active: this.active,\n items: this.items,\n id: this.id\n });\n },\n enumerable: false,\n configurable: true\n });\n NavigationMenu.prototype.set = function (options, shouldUpdate) {\n if (shouldUpdate === void 0) {\n shouldUpdate = true;\n }\n var mergedOptions = helper_1.getMergedProps(this.options, options);\n var items = mergedOptions.items,\n active = mergedOptions.active;\n this.setItems(items);\n this.activeOptions = active;\n this.active = active && active.id;\n if (shouldUpdate) {\n this.dispatch(Action.UPDATE);\n }\n return this;\n };\n NavigationMenu.prototype.dispatch = function (action) {\n switch (action) {\n case Action.UPDATE:\n this.app.dispatch(update(this.payload));\n break;\n }\n return this;\n };\n NavigationMenu.prototype.updateItem = function (newPayload) {\n if (!this.items) {\n return;\n }\n var itemToUpdate = this.items.find(function (action) {\n return action.id === newPayload.id;\n });\n if (!itemToUpdate) {\n return;\n }\n if (helper_1.updateActionFromPayload(itemToUpdate, newPayload)) {\n this.dispatch(Action.UPDATE);\n }\n };\n NavigationMenu.prototype.setItems = function (newOptions) {\n var _this = this;\n var newItems = newOptions || [];\n var currentItems = this.itemsOptions || [];\n this.itemsOptions = this.getUpdatedChildActions(newItems, currentItems);\n this.items = this.itemsOptions ? this.itemsOptions.map(function (action) {\n _this.addChild(action, _this.group, SUBGROUPS);\n _this.subscribeToChild(action, AppLink_1.Action.UPDATE, _this.updateItem);\n return action.payload;\n }) : [];\n };\n return NavigationMenu;\n}(ActionSet_1.ActionSetWithChildren);\nexports.NavigationMenu = NavigationMenu;\nfunction create(app, options) {\n return new NavigationMenu(app, options);\n}\nexports.create = create;","\"use strict\";\n\nvar __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function () {\n return m[k];\n }\n });\n} : function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar __setModuleDefault = this && this.__setModuleDefault || (Object.create ? function (o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function (o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = this && this.__importStar || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __spreadArray = this && this.__spreadArray || function (to, from) {\n for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) to[j] = from[i];\n return to;\n};\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.transformActions = exports.generateRedirect = void 0;\nvar Button = __importStar(require(\"@shopify/app-bridge/actions/Button\"));\nvar ButtonGroup = __importStar(require(\"@shopify/app-bridge/actions/ButtonGroup\"));\nvar Redirect = __importStar(require(\"@shopify/app-bridge/actions/Navigation/Redirect\"));\nfunction generateRedirect(appBridge, url, target, external) {\n if (target === void 0) {\n target = 'APP';\n }\n if (url == null) {\n return undefined;\n }\n var redirect = Redirect.create(appBridge);\n var payload = external === true ? {\n url: url,\n newContext: true\n } : url;\n return function () {\n redirect.dispatch(redirectAction(target, external), payload);\n };\n}\nexports.generateRedirect = generateRedirect;\nfunction redirectAction(target, external) {\n if (external === true) {\n return Redirect.Action.REMOTE;\n }\n return Redirect.Action[target];\n}\nfunction transformActions(appBridge, _a) {\n var primaryAction = _a.primaryAction,\n secondaryActions = _a.secondaryActions,\n actionGroups = _a.actionGroups;\n var primary = transformPrimaryAction(appBridge, primaryAction);\n var secondary = __spreadArray(__spreadArray([], transformSecondaryActions(appBridge, secondaryActions)), transformActionGroups(appBridge, actionGroups));\n return {\n primary: primary,\n secondary: secondary\n };\n}\nexports.transformActions = transformActions;\nfunction transformAction(appBridge, action) {\n var style = action.destructive === true ? Button.Style.Danger : undefined;\n var button = Button.create(appBridge, {\n label: action.content || '',\n disabled: action.disabled,\n loading: action.loading,\n plain: action.plain,\n style: style\n });\n if (action.onAction) {\n button.subscribe(Button.Action.CLICK, action.onAction);\n }\n var redirect = generateRedirect(appBridge, action.url, action.target, action.external);\n if (redirect != null) {\n button.subscribe(Button.Action.CLICK, redirect);\n }\n return button;\n}\nfunction transformPrimaryAction(appBridge, primaryAction) {\n if (primaryAction == null) {\n return undefined;\n }\n var primary = transformAction(appBridge, primaryAction);\n return primary;\n}\nfunction transformSecondaryActions(appBridge, secondaryActions) {\n if (secondaryActions === void 0) {\n secondaryActions = [];\n }\n var secondary = __spreadArray([], secondaryActions.map(function (secondaryAction) {\n return transformAction(appBridge, secondaryAction);\n }));\n return secondary;\n}\nfunction transformActionGroups(appBridge, actionGroups) {\n if (actionGroups === void 0) {\n actionGroups = [];\n }\n var buttonGroups = __spreadArray([], actionGroups.map(function (group) {\n var buttons = group.actions.map(function (groupAction) {\n return transformAction(appBridge, groupAction);\n });\n return ButtonGroup.create(appBridge, {\n label: group.title,\n plain: group.plain,\n buttons: buttons\n });\n }));\n return buttonGroups;\n}","\"use strict\";\n\nvar __importDefault = this && this.__importDefault || function (mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n};\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.useClientRouting = exports.ClientRouter = void 0;\nvar ClientRouter_1 = require(\"./ClientRouter\");\nObject.defineProperty(exports, \"ClientRouter\", {\n enumerable: true,\n get: function () {\n return __importDefault(ClientRouter_1).default;\n }\n});\nvar hook_1 = require(\"./hook\");\nObject.defineProperty(exports, \"useClientRouting\", {\n enumerable: true,\n get: function () {\n return __importDefault(hook_1).default;\n }\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.handleRouteChange = void 0;\nvar actions_1 = require(\"@shopify/app-bridge/actions\");\nfunction handleRouteChange(app, history) {\n return app.subscribe(actions_1.Redirect.Action.APP, function (_a) {\n var path = _a.path;\n history.replace(path);\n });\n}\nexports.handleRouteChange = handleRouteChange;","\"use strict\";\n\nvar __importDefault = this && this.__importDefault || function (mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n};\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.useRoutePropagation = exports.RoutePropagator = void 0;\nvar RoutePropagator_1 = require(\"./RoutePropagator\");\nObject.defineProperty(exports, \"RoutePropagator\", {\n enumerable: true,\n get: function () {\n return __importDefault(RoutePropagator_1).default;\n }\n});\nvar hook_1 = require(\"./hook\");\nObject.defineProperty(exports, \"useRoutePropagation\", {\n enumerable: true,\n get: function () {\n return __importDefault(hook_1).default;\n }\n});","\"use strict\";\n\nvar __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function (resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = this && this.__generator || function (thisArg, body) {\n var _ = {\n label: 0,\n sent: function () {\n if (t[0] & 1) throw t[1];\n return t[1];\n },\n trys: [],\n ops: []\n },\n f,\n y,\n t,\n g;\n return g = {\n next: verb(0),\n \"throw\": verb(1),\n \"return\": verb(2)\n }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function () {\n return this;\n }), g;\n function verb(n) {\n return function (v) {\n return step([n, v]);\n };\n }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0:\n case 1:\n t = op;\n break;\n case 4:\n _.label++;\n return {\n value: op[1],\n done: false\n };\n case 5:\n _.label++;\n y = op[1];\n op = [0];\n continue;\n case 7:\n op = _.ops.pop();\n _.trys.pop();\n continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n _ = 0;\n continue;\n }\n if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {\n _.label = op[1];\n break;\n }\n if (op[0] === 6 && _.label < t[1]) {\n _.label = t[1];\n t = op;\n break;\n }\n if (t && _.label < t[2]) {\n _.label = t[2];\n _.ops.push(op);\n break;\n }\n if (t[2]) _.ops.pop();\n _.trys.pop();\n continue;\n }\n op = body.call(thisArg, _);\n } catch (e) {\n op = [6, e];\n y = 0;\n } finally {\n f = t = 0;\n }\n if (op[0] & 5) throw op[1];\n return {\n value: op[0] ? op[1] : void 0,\n done: true\n };\n }\n};\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.updateHistory = void 0;\nvar MessageTransport_1 = require(\"@shopify/app-bridge/MessageTransport\");\nvar actions_1 = require(\"@shopify/app-bridge/actions\");\nvar globals_1 = require(\"./globals\");\n// These parameters are added to the iframe url but we don't want to propagate\n// them up to the address bar as they are not provided by the application\n// Removing hmac is especially important as its presence may cause infinite\n// oauth authentication loops\nvar embeddedFrameParamsToRemove = ['hmac', 'locale', 'protocol', 'session', 'shop', 'timestamp', 'host'];\nfunction updateHistory(app, location) {\n return __awaiter(this, void 0, void 0, function () {\n var selfWindow, topWindow, renderedInTheTopWindow, renderedAsMainApp, normalizedLocation, pathname, search, hash, locationStr;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n selfWindow = globals_1.getSelfWindow();\n topWindow = globals_1.getTopWindow();\n renderedInTheTopWindow = selfWindow === topWindow;\n return [4 /*yield*/, app.getState('context').then(function (context) {\n return context === MessageTransport_1.Context.Main;\n })];\n case 1:\n renderedAsMainApp = _a.sent();\n if (renderedInTheTopWindow || !renderedAsMainApp) {\n return [2 /*return*/];\n }\n\n normalizedLocation = getNormalizedURL(location);\n embeddedFrameParamsToRemove.forEach(function (param) {\n return normalizedLocation.searchParams.delete(param);\n });\n pathname = normalizedLocation.pathname, search = normalizedLocation.search, hash = normalizedLocation.hash;\n locationStr = \"\" + pathname + search + hash;\n actions_1.History.create(app).dispatch(actions_1.History.Action.REPLACE, locationStr);\n return [2 /*return*/];\n }\n });\n });\n}\n\nexports.updateHistory = updateHistory;\nfunction getNormalizedURL(location) {\n var origin = globals_1.getOrigin();\n if (typeof location === 'string') {\n return new URL(location, origin);\n }\n var pathname = location.pathname,\n search = location.search,\n hash = location.hash;\n return new URL(\"\" + pathname + search + hash, origin);\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.useFeaturesAvailable = void 0;\nvar useFeaturesAvailable_1 = require(\"./useFeaturesAvailable\");\nObject.defineProperty(exports, \"useFeaturesAvailable\", {\n enumerable: true,\n get: function () {\n return useFeaturesAvailable_1.useFeaturesAvailable;\n }\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.useNavigationHistory = void 0;\nvar useNavigationHistory_1 = require(\"./useNavigationHistory\");\nObject.defineProperty(exports, \"useNavigationHistory\", {\n enumerable: true,\n get: function () {\n return useNavigationHistory_1.useNavigationHistory;\n }\n});","import React, { createContext, useMemo, useContext, memo, Children, useCallback, useState, useLayoutEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport isDOM from 'is-dom';\nfunction unwrapExports(x) {\n return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\nfunction createCommonjsModule(fn, module) {\n return module = {\n exports: {}\n }, fn(module, module.exports), module.exports;\n}\nvar _extends_1 = createCommonjsModule(function (module) {\n function _extends() {\n module.exports = _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n module.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n return _extends.apply(this, arguments);\n }\n module.exports = _extends;\n module.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n});\nvar _extends = unwrapExports(_extends_1);\nvar objectWithoutPropertiesLoose = createCommonjsModule(function (module) {\n function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n }\n module.exports = _objectWithoutPropertiesLoose;\n module.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n});\nunwrapExports(objectWithoutPropertiesLoose);\nvar objectWithoutProperties = createCommonjsModule(function (module) {\n function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n }\n module.exports = _objectWithoutProperties;\n module.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n});\nvar _objectWithoutProperties = unwrapExports(objectWithoutProperties);\nvar theme$1 = {\n BASE_FONT_FAMILY: 'Menlo, monospace',\n BASE_FONT_SIZE: '11px',\n BASE_LINE_HEIGHT: 1.2,\n BASE_BACKGROUND_COLOR: 'rgb(36, 36, 36)',\n BASE_COLOR: 'rgb(213, 213, 213)',\n OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES: 10,\n OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES: 5,\n OBJECT_NAME_COLOR: 'rgb(227, 110, 236)',\n OBJECT_VALUE_NULL_COLOR: 'rgb(127, 127, 127)',\n OBJECT_VALUE_UNDEFINED_COLOR: 'rgb(127, 127, 127)',\n OBJECT_VALUE_REGEXP_COLOR: 'rgb(233, 63, 59)',\n OBJECT_VALUE_STRING_COLOR: 'rgb(233, 63, 59)',\n OBJECT_VALUE_SYMBOL_COLOR: 'rgb(233, 63, 59)',\n OBJECT_VALUE_NUMBER_COLOR: 'hsl(252, 100%, 75%)',\n OBJECT_VALUE_BOOLEAN_COLOR: 'hsl(252, 100%, 75%)',\n OBJECT_VALUE_FUNCTION_PREFIX_COLOR: 'rgb(85, 106, 242)',\n HTML_TAG_COLOR: 'rgb(93, 176, 215)',\n HTML_TAGNAME_COLOR: 'rgb(93, 176, 215)',\n HTML_TAGNAME_TEXT_TRANSFORM: 'lowercase',\n HTML_ATTRIBUTE_NAME_COLOR: 'rgb(155, 187, 220)',\n HTML_ATTRIBUTE_VALUE_COLOR: 'rgb(242, 151, 102)',\n HTML_COMMENT_COLOR: 'rgb(137, 137, 137)',\n HTML_DOCTYPE_COLOR: 'rgb(192, 192, 192)',\n ARROW_COLOR: 'rgb(145, 145, 145)',\n ARROW_MARGIN_RIGHT: 3,\n ARROW_FONT_SIZE: 12,\n ARROW_ANIMATION_DURATION: '0',\n TREENODE_FONT_FAMILY: 'Menlo, monospace',\n TREENODE_FONT_SIZE: '11px',\n TREENODE_LINE_HEIGHT: 1.2,\n TREENODE_PADDING_LEFT: 12,\n TABLE_BORDER_COLOR: 'rgb(85, 85, 85)',\n TABLE_TH_BACKGROUND_COLOR: 'rgb(44, 44, 44)',\n TABLE_TH_HOVER_COLOR: 'rgb(48, 48, 48)',\n TABLE_SORT_ICON_COLOR: 'black',\n TABLE_DATA_BACKGROUND_IMAGE: 'linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))',\n TABLE_DATA_BACKGROUND_SIZE: '128px 32px'\n};\nvar theme = {\n BASE_FONT_FAMILY: 'Menlo, monospace',\n BASE_FONT_SIZE: '11px',\n BASE_LINE_HEIGHT: 1.2,\n BASE_BACKGROUND_COLOR: 'white',\n BASE_COLOR: 'black',\n OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES: 10,\n OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES: 5,\n OBJECT_NAME_COLOR: 'rgb(136, 19, 145)',\n OBJECT_VALUE_NULL_COLOR: 'rgb(128, 128, 128)',\n OBJECT_VALUE_UNDEFINED_COLOR: 'rgb(128, 128, 128)',\n OBJECT_VALUE_REGEXP_COLOR: 'rgb(196, 26, 22)',\n OBJECT_VALUE_STRING_COLOR: 'rgb(196, 26, 22)',\n OBJECT_VALUE_SYMBOL_COLOR: 'rgb(196, 26, 22)',\n OBJECT_VALUE_NUMBER_COLOR: 'rgb(28, 0, 207)',\n OBJECT_VALUE_BOOLEAN_COLOR: 'rgb(28, 0, 207)',\n OBJECT_VALUE_FUNCTION_PREFIX_COLOR: 'rgb(13, 34, 170)',\n HTML_TAG_COLOR: 'rgb(168, 148, 166)',\n HTML_TAGNAME_COLOR: 'rgb(136, 18, 128)',\n HTML_TAGNAME_TEXT_TRANSFORM: 'lowercase',\n HTML_ATTRIBUTE_NAME_COLOR: 'rgb(153, 69, 0)',\n HTML_ATTRIBUTE_VALUE_COLOR: 'rgb(26, 26, 166)',\n HTML_COMMENT_COLOR: 'rgb(35, 110, 37)',\n HTML_DOCTYPE_COLOR: 'rgb(192, 192, 192)',\n ARROW_COLOR: '#6e6e6e',\n ARROW_MARGIN_RIGHT: 3,\n ARROW_FONT_SIZE: 12,\n ARROW_ANIMATION_DURATION: '0',\n TREENODE_FONT_FAMILY: 'Menlo, monospace',\n TREENODE_FONT_SIZE: '11px',\n TREENODE_LINE_HEIGHT: 1.2,\n TREENODE_PADDING_LEFT: 12,\n TABLE_BORDER_COLOR: '#aaa',\n TABLE_TH_BACKGROUND_COLOR: '#eee',\n TABLE_TH_HOVER_COLOR: 'hsla(0, 0%, 90%, 1)',\n TABLE_SORT_ICON_COLOR: '#6e6e6e',\n TABLE_DATA_BACKGROUND_IMAGE: 'linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))',\n TABLE_DATA_BACKGROUND_SIZE: '128px 32px'\n};\nvar themes = /*#__PURE__*/Object.freeze({\n __proto__: null,\n chromeDark: theme$1,\n chromeLight: theme\n});\nvar arrayWithHoles = createCommonjsModule(function (module) {\n function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n }\n module.exports = _arrayWithHoles;\n module.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n});\nunwrapExports(arrayWithHoles);\nvar iterableToArrayLimit = createCommonjsModule(function (module) {\n function _iterableToArrayLimit(arr, i) {\n if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n return _arr;\n }\n module.exports = _iterableToArrayLimit;\n module.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n});\nunwrapExports(iterableToArrayLimit);\nvar arrayLikeToArray = createCommonjsModule(function (module) {\n function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n return arr2;\n }\n module.exports = _arrayLikeToArray;\n module.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n});\nunwrapExports(arrayLikeToArray);\nvar unsupportedIterableToArray = createCommonjsModule(function (module) {\n function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n }\n module.exports = _unsupportedIterableToArray;\n module.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n});\nunwrapExports(unsupportedIterableToArray);\nvar nonIterableRest = createCommonjsModule(function (module) {\n function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n module.exports = _nonIterableRest;\n module.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n});\nunwrapExports(nonIterableRest);\nvar slicedToArray = createCommonjsModule(function (module) {\n function _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n }\n module.exports = _slicedToArray;\n module.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n});\nvar _slicedToArray = unwrapExports(slicedToArray);\nvar _typeof_1 = createCommonjsModule(function (module) {\n function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n module.exports = _typeof = function _typeof(obj) {\n return typeof obj;\n };\n module.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n } else {\n module.exports = _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n module.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n }\n return _typeof(obj);\n }\n module.exports = _typeof;\n module.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n});\nvar _typeof = unwrapExports(_typeof_1);\nvar runtime_1 = createCommonjsModule(function (module) {\n var runtime = function (exports) {\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined$1;\n var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n function define(obj, key, value) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n return obj[key];\n }\n try {\n define({}, \"\");\n } catch (err) {\n define = function (obj, key, value) {\n return obj[key] = value;\n };\n }\n function wrap(innerFn, outerFn, self, tryLocsList) {\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []);\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n return generator;\n }\n exports.wrap = wrap;\n function tryCatch(fn, obj, arg) {\n try {\n return {\n type: \"normal\",\n arg: fn.call(obj, arg)\n };\n } catch (err) {\n return {\n type: \"throw\",\n arg: err\n };\n }\n }\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n var ContinueSentinel = {};\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n var IteratorPrototype = {};\n IteratorPrototype[iteratorSymbol] = function () {\n return this;\n };\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n if (NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n IteratorPrototype = NativeIteratorPrototype;\n }\n var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;\n GeneratorFunctionPrototype.constructor = GeneratorFunction;\n GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, \"GeneratorFunction\");\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function (method) {\n define(prototype, method, function (arg) {\n return this._invoke(method, arg);\n });\n });\n }\n exports.isGeneratorFunction = function (genFun) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor ? ctor === GeneratorFunction || (ctor.displayName || ctor.name) === \"GeneratorFunction\" : false;\n };\n exports.mark = function (genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n define(genFun, toStringTagSymbol, \"GeneratorFunction\");\n }\n genFun.prototype = Object.create(Gp);\n return genFun;\n };\n exports.awrap = function (arg) {\n return {\n __await: arg\n };\n };\n function AsyncIterator(generator, PromiseImpl) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (record.type === \"throw\") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n if (value && typeof value === \"object\" && hasOwn.call(value, \"__await\")) {\n return PromiseImpl.resolve(value.__await).then(function (value) {\n invoke(\"next\", value, resolve, reject);\n }, function (err) {\n invoke(\"throw\", err, resolve, reject);\n });\n }\n return PromiseImpl.resolve(value).then(function (unwrapped) {\n result.value = unwrapped;\n resolve(result);\n }, function (error) {\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n }\n var previousPromise;\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new PromiseImpl(function (resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();\n }\n this._invoke = enqueue;\n }\n defineIteratorMethods(AsyncIterator.prototype);\n AsyncIterator.prototype[asyncIteratorSymbol] = function () {\n return this;\n };\n exports.AsyncIterator = AsyncIterator;\n exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {\n if (PromiseImpl === void 0) PromiseImpl = Promise;\n var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);\n return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {\n return result.done ? result.value : iter.next();\n });\n };\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n return doneResult();\n }\n context.method = method;\n context.arg = arg;\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n if (context.method === \"next\") {\n context.sent = context._sent = context.arg;\n } else if (context.method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n context.dispatchException(context.arg);\n } else if (context.method === \"return\") {\n context.abrupt(\"return\", context.arg);\n }\n state = GenStateExecuting;\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n state = context.done ? GenStateCompleted : GenStateSuspendedYield;\n if (record.arg === ContinueSentinel) {\n continue;\n }\n return {\n value: record.arg,\n done: context.done\n };\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n context.method = \"throw\";\n context.arg = record.arg;\n }\n }\n };\n }\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (method === undefined$1) {\n context.delegate = null;\n if (context.method === \"throw\") {\n if (delegate.iterator[\"return\"]) {\n context.method = \"return\";\n context.arg = undefined$1;\n maybeInvokeDelegate(delegate, context);\n if (context.method === \"throw\") {\n return ContinueSentinel;\n }\n }\n context.method = \"throw\";\n context.arg = new TypeError(\"The iterator does not provide a 'throw' method\");\n }\n return ContinueSentinel;\n }\n var record = tryCatch(method, delegate.iterator, context.arg);\n if (record.type === \"throw\") {\n context.method = \"throw\";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n var info = record.arg;\n if (!info) {\n context.method = \"throw\";\n context.arg = new TypeError(\"iterator result is not an object\");\n context.delegate = null;\n return ContinueSentinel;\n }\n if (info.done) {\n context[delegate.resultName] = info.value;\n context.next = delegate.nextLoc;\n if (context.method !== \"return\") {\n context.method = \"next\";\n context.arg = undefined$1;\n }\n } else {\n return info;\n }\n context.delegate = null;\n return ContinueSentinel;\n }\n defineIteratorMethods(Gp);\n define(Gp, toStringTagSymbol, \"Generator\");\n Gp[iteratorSymbol] = function () {\n return this;\n };\n Gp.toString = function () {\n return \"[object Generator]\";\n };\n function pushTryEntry(locs) {\n var entry = {\n tryLoc: locs[0]\n };\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n this.tryEntries.push(entry);\n }\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n function Context(tryLocsList) {\n this.tryEntries = [{\n tryLoc: \"root\"\n }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n exports.keys = function (object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n next.done = true;\n return next;\n };\n };\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n if (!isNaN(iterable.length)) {\n var i = -1,\n next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n next.value = undefined$1;\n next.done = true;\n return next;\n };\n return next.next = next;\n }\n }\n return {\n next: doneResult\n };\n }\n exports.values = values;\n function doneResult() {\n return {\n value: undefined$1,\n done: true\n };\n }\n Context.prototype = {\n constructor: Context,\n reset: function (skipTempReset) {\n this.prev = 0;\n this.next = 0;\n this.sent = this._sent = undefined$1;\n this.done = false;\n this.delegate = null;\n this.method = \"next\";\n this.arg = undefined$1;\n this.tryEntries.forEach(resetTryEntry);\n if (!skipTempReset) {\n for (var name in this) {\n if (name.charAt(0) === \"t\" && hasOwn.call(this, name) && !isNaN(+name.slice(1))) {\n this[name] = undefined$1;\n }\n }\n }\n },\n stop: function () {\n this.done = true;\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n return this.rval;\n },\n dispatchException: function (exception) {\n if (this.done) {\n throw exception;\n }\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n if (caught) {\n context.method = \"next\";\n context.arg = undefined$1;\n }\n return !!caught;\n }\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n if (entry.tryLoc === \"root\") {\n return handle(\"end\");\n }\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n abrupt: function (type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev && hasOwn.call(entry, \"finallyLoc\") && this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n if (finallyEntry && (type === \"break\" || type === \"continue\") && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc) {\n finallyEntry = null;\n }\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n if (finallyEntry) {\n this.method = \"next\";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n return this.complete(record);\n },\n complete: function (record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n if (record.type === \"break\" || record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = this.arg = record.arg;\n this.method = \"return\";\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n return ContinueSentinel;\n },\n finish: function (finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n \"catch\": function (tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n throw new Error(\"illegal catch attempt\");\n },\n delegateYield: function (iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n if (this.method === \"next\") {\n this.arg = undefined$1;\n }\n return ContinueSentinel;\n }\n };\n return exports;\n }(module.exports);\n try {\n regeneratorRuntime = runtime;\n } catch (accidentalStrictMode) {\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n }\n});\nvar regenerator = runtime_1;\nvar arrayWithoutHoles = createCommonjsModule(function (module) {\n function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n }\n module.exports = _arrayWithoutHoles;\n module.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n});\nunwrapExports(arrayWithoutHoles);\nvar iterableToArray = createCommonjsModule(function (module) {\n function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter);\n }\n module.exports = _iterableToArray;\n module.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n});\nunwrapExports(iterableToArray);\nvar nonIterableSpread = createCommonjsModule(function (module) {\n function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n module.exports = _nonIterableSpread;\n module.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n});\nunwrapExports(nonIterableSpread);\nvar toConsumableArray = createCommonjsModule(function (module) {\n function _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n }\n module.exports = _toConsumableArray;\n module.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n});\nvar _toConsumableArray = unwrapExports(toConsumableArray);\nvar defineProperty = createCommonjsModule(function (module) {\n function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n }\n module.exports = _defineProperty;\n module.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n});\nvar _defineProperty = unwrapExports(defineProperty);\nvar ExpandedPathsContext = createContext([{}, function () {}]);\nvar unselectable = {\n WebkitTouchCallout: 'none',\n WebkitUserSelect: 'none',\n KhtmlUserSelect: 'none',\n MozUserSelect: 'none',\n msUserSelect: 'none',\n OUserSelect: 'none',\n userSelect: 'none'\n};\nfunction ownKeys$7(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread$7(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) {\n ownKeys$7(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys$7(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n return target;\n}\nvar base = function (theme) {\n return {\n DOMNodePreview: {\n htmlOpenTag: {\n base: {\n color: theme.HTML_TAG_COLOR\n },\n tagName: {\n color: theme.HTML_TAGNAME_COLOR,\n textTransform: theme.HTML_TAGNAME_TEXT_TRANSFORM\n },\n htmlAttributeName: {\n color: theme.HTML_ATTRIBUTE_NAME_COLOR\n },\n htmlAttributeValue: {\n color: theme.HTML_ATTRIBUTE_VALUE_COLOR\n }\n },\n htmlCloseTag: {\n base: {\n color: theme.HTML_TAG_COLOR\n },\n offsetLeft: {\n marginLeft: -theme.TREENODE_PADDING_LEFT\n },\n tagName: {\n color: theme.HTML_TAGNAME_COLOR,\n textTransform: theme.HTML_TAGNAME_TEXT_TRANSFORM\n }\n },\n htmlComment: {\n color: theme.HTML_COMMENT_COLOR\n },\n htmlDoctype: {\n color: theme.HTML_DOCTYPE_COLOR\n }\n },\n ObjectPreview: {\n objectDescription: {\n fontStyle: 'italic'\n },\n preview: {\n fontStyle: 'italic'\n },\n arrayMaxProperties: theme.OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES,\n objectMaxProperties: theme.OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES\n },\n ObjectName: {\n base: {\n color: theme.OBJECT_NAME_COLOR\n },\n dimmed: {\n opacity: 0.6\n }\n },\n ObjectValue: {\n objectValueNull: {\n color: theme.OBJECT_VALUE_NULL_COLOR\n },\n objectValueUndefined: {\n color: theme.OBJECT_VALUE_UNDEFINED_COLOR\n },\n objectValueRegExp: {\n color: theme.OBJECT_VALUE_REGEXP_COLOR\n },\n objectValueString: {\n color: theme.OBJECT_VALUE_STRING_COLOR\n },\n objectValueSymbol: {\n color: theme.OBJECT_VALUE_SYMBOL_COLOR\n },\n objectValueNumber: {\n color: theme.OBJECT_VALUE_NUMBER_COLOR\n },\n objectValueBoolean: {\n color: theme.OBJECT_VALUE_BOOLEAN_COLOR\n },\n objectValueFunctionPrefix: {\n color: theme.OBJECT_VALUE_FUNCTION_PREFIX_COLOR,\n fontStyle: 'italic'\n },\n objectValueFunctionName: {\n fontStyle: 'italic'\n }\n },\n TreeView: {\n treeViewOutline: {\n padding: 0,\n margin: 0,\n listStyleType: 'none'\n }\n },\n TreeNode: {\n treeNodeBase: {\n color: theme.BASE_COLOR,\n backgroundColor: theme.BASE_BACKGROUND_COLOR,\n lineHeight: theme.TREENODE_LINE_HEIGHT,\n cursor: 'default',\n boxSizing: 'border-box',\n listStyle: 'none',\n fontFamily: theme.TREENODE_FONT_FAMILY,\n fontSize: theme.TREENODE_FONT_SIZE\n },\n treeNodePreviewContainer: {},\n treeNodePlaceholder: _objectSpread$7({\n whiteSpace: 'pre',\n fontSize: theme.ARROW_FONT_SIZE,\n marginRight: theme.ARROW_MARGIN_RIGHT\n }, unselectable),\n treeNodeArrow: {\n base: _objectSpread$7(_objectSpread$7({\n color: theme.ARROW_COLOR,\n display: 'inline-block',\n fontSize: theme.ARROW_FONT_SIZE,\n marginRight: theme.ARROW_MARGIN_RIGHT\n }, parseFloat(theme.ARROW_ANIMATION_DURATION) > 0 ? {\n transition: \"transform \".concat(theme.ARROW_ANIMATION_DURATION, \" ease 0s\")\n } : {}), unselectable),\n expanded: {\n WebkitTransform: 'rotateZ(90deg)',\n MozTransform: 'rotateZ(90deg)',\n transform: 'rotateZ(90deg)'\n },\n collapsed: {\n WebkitTransform: 'rotateZ(0deg)',\n MozTransform: 'rotateZ(0deg)',\n transform: 'rotateZ(0deg)'\n }\n },\n treeNodeChildNodesContainer: {\n margin: 0,\n paddingLeft: theme.TREENODE_PADDING_LEFT\n }\n },\n TableInspector: {\n base: {\n color: theme.BASE_COLOR,\n position: 'relative',\n border: \"1px solid \".concat(theme.TABLE_BORDER_COLOR),\n fontFamily: theme.BASE_FONT_FAMILY,\n fontSize: theme.BASE_FONT_SIZE,\n lineHeight: '120%',\n boxSizing: 'border-box',\n cursor: 'default'\n }\n },\n TableInspectorHeaderContainer: {\n base: {\n top: 0,\n height: '17px',\n left: 0,\n right: 0,\n overflowX: 'hidden'\n },\n table: {\n tableLayout: 'fixed',\n borderSpacing: 0,\n borderCollapse: 'separate',\n height: '100%',\n width: '100%',\n margin: 0\n }\n },\n TableInspectorDataContainer: {\n tr: {\n display: 'table-row'\n },\n td: {\n boxSizing: 'border-box',\n border: 'none',\n height: '16px',\n verticalAlign: 'top',\n padding: '1px 4px',\n WebkitUserSelect: 'text',\n whiteSpace: 'nowrap',\n textOverflow: 'ellipsis',\n overflow: 'hidden',\n lineHeight: '14px'\n },\n div: {\n position: 'static',\n top: '17px',\n bottom: 0,\n overflowY: 'overlay',\n transform: 'translateZ(0)',\n left: 0,\n right: 0,\n overflowX: 'hidden'\n },\n table: {\n positon: 'static',\n left: 0,\n top: 0,\n right: 0,\n bottom: 0,\n borderTop: '0 none transparent',\n margin: 0,\n backgroundImage: theme.TABLE_DATA_BACKGROUND_IMAGE,\n backgroundSize: theme.TABLE_DATA_BACKGROUND_SIZE,\n tableLayout: 'fixed',\n borderSpacing: 0,\n borderCollapse: 'separate',\n width: '100%',\n fontSize: theme.BASE_FONT_SIZE,\n lineHeight: '120%'\n }\n },\n TableInspectorTH: {\n base: {\n position: 'relative',\n height: 'auto',\n textAlign: 'left',\n backgroundColor: theme.TABLE_TH_BACKGROUND_COLOR,\n borderBottom: \"1px solid \".concat(theme.TABLE_BORDER_COLOR),\n fontWeight: 'normal',\n verticalAlign: 'middle',\n padding: '0 4px',\n whiteSpace: 'nowrap',\n textOverflow: 'ellipsis',\n overflow: 'hidden',\n lineHeight: '14px',\n ':hover': {\n backgroundColor: theme.TABLE_TH_HOVER_COLOR\n }\n },\n div: {\n whiteSpace: 'nowrap',\n textOverflow: 'ellipsis',\n overflow: 'hidden',\n fontSize: theme.BASE_FONT_SIZE,\n lineHeight: '120%'\n }\n },\n TableInspectorLeftBorder: {\n none: {\n borderLeft: 'none'\n },\n solid: {\n borderLeft: \"1px solid \".concat(theme.TABLE_BORDER_COLOR)\n }\n },\n TableInspectorSortIcon: _objectSpread$7({\n display: 'block',\n marginRight: 3,\n width: 8,\n height: 7,\n marginTop: -7,\n color: theme.TABLE_SORT_ICON_COLOR,\n fontSize: 12\n }, unselectable)\n };\n};\nvar DEFAULT_THEME_NAME = 'chromeLight';\nvar ThemeContext = createContext(base(themes[DEFAULT_THEME_NAME]));\nvar useStyles = function useStyles(baseStylesKey) {\n var themeStyles = useContext(ThemeContext);\n return themeStyles[baseStylesKey];\n};\nvar themeAcceptor = function themeAcceptor(WrappedComponent) {\n var ThemeAcceptor = function ThemeAcceptor(_ref) {\n var _ref$theme = _ref.theme,\n theme = _ref$theme === void 0 ? DEFAULT_THEME_NAME : _ref$theme,\n restProps = _objectWithoutProperties(_ref, [\"theme\"]);\n var themeStyles = useMemo(function () {\n switch (Object.prototype.toString.call(theme)) {\n case '[object String]':\n return base(themes[theme]);\n case '[object Object]':\n return base(theme);\n default:\n return base(themes[DEFAULT_THEME_NAME]);\n }\n }, [theme]);\n return React.createElement(ThemeContext.Provider, {\n value: themeStyles\n }, React.createElement(WrappedComponent, restProps));\n };\n ThemeAcceptor.propTypes = {\n theme: PropTypes.oneOfType([PropTypes.string, PropTypes.object])\n };\n return ThemeAcceptor;\n};\nfunction ownKeys$6(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread$6(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) {\n ownKeys$6(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys$6(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n return target;\n}\nvar Arrow = function Arrow(_ref) {\n var expanded = _ref.expanded,\n styles = _ref.styles;\n return React.createElement(\"span\", {\n style: _objectSpread$6(_objectSpread$6({}, styles.base), expanded ? styles.expanded : styles.collapsed)\n }, \"\\u25B6\");\n};\nvar TreeNode = memo(function (props) {\n props = _objectSpread$6({\n expanded: true,\n nodeRenderer: function nodeRenderer(_ref2) {\n var name = _ref2.name;\n return React.createElement(\"span\", null, name);\n },\n onClick: function onClick() {},\n shouldShowArrow: false,\n shouldShowPlaceholder: true\n }, props);\n var _props = props,\n expanded = _props.expanded,\n onClick = _props.onClick,\n children = _props.children,\n nodeRenderer = _props.nodeRenderer,\n title = _props.title,\n shouldShowArrow = _props.shouldShowArrow,\n shouldShowPlaceholder = _props.shouldShowPlaceholder;\n var styles = useStyles('TreeNode');\n var NodeRenderer = nodeRenderer;\n return React.createElement(\"li\", {\n \"aria-expanded\": expanded,\n role: \"treeitem\",\n style: styles.treeNodeBase,\n title: title\n }, React.createElement(\"div\", {\n style: styles.treeNodePreviewContainer,\n onClick: onClick\n }, shouldShowArrow || Children.count(children) > 0 ? React.createElement(Arrow, {\n expanded: expanded,\n styles: styles.treeNodeArrow\n }) : shouldShowPlaceholder && React.createElement(\"span\", {\n style: styles.treeNodePlaceholder\n }, \"\\xA0\"), React.createElement(NodeRenderer, props)), React.createElement(\"ol\", {\n role: \"group\",\n style: styles.treeNodeChildNodesContainer\n }, expanded ? children : undefined));\n});\nTreeNode.propTypes = {\n name: PropTypes.string,\n data: PropTypes.any,\n expanded: PropTypes.bool,\n shouldShowArrow: PropTypes.bool,\n shouldShowPlaceholder: PropTypes.bool,\n nodeRenderer: PropTypes.func,\n onClick: PropTypes.func\n};\nfunction ownKeys$5(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread$5(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) {\n ownKeys$5(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys$5(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n return target;\n}\nfunction _createForOfIteratorHelper$1(o, allowArrayLike) {\n var it;\n if (typeof Symbol === \"undefined\" || o[Symbol.iterator] == null) {\n if (Array.isArray(o) || (it = _unsupportedIterableToArray$1(o)) || allowArrayLike && o && typeof o.length === \"number\") {\n if (it) o = it;\n var i = 0;\n var F = function F() {};\n return {\n s: F,\n n: function n() {\n if (i >= o.length) return {\n done: true\n };\n return {\n done: false,\n value: o[i++]\n };\n },\n e: function e(_e) {\n throw _e;\n },\n f: F\n };\n }\n throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n var normalCompletion = true,\n didErr = false,\n err;\n return {\n s: function s() {\n it = o[Symbol.iterator]();\n },\n n: function n() {\n var step = it.next();\n normalCompletion = step.done;\n return step;\n },\n e: function e(_e2) {\n didErr = true;\n err = _e2;\n },\n f: function f() {\n try {\n if (!normalCompletion && it.return != null) it.return();\n } finally {\n if (didErr) throw err;\n }\n }\n };\n}\nfunction _unsupportedIterableToArray$1(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray$1(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen);\n}\nfunction _arrayLikeToArray$1(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n return arr2;\n}\nvar DEFAULT_ROOT_PATH = '$';\nvar WILDCARD = '*';\nfunction hasChildNodes(data, dataIterator) {\n return !dataIterator(data).next().done;\n}\nvar wildcardPathsFromLevel = function wildcardPathsFromLevel(level) {\n return Array.from({\n length: level\n }, function (_, i) {\n return [DEFAULT_ROOT_PATH].concat(Array.from({\n length: i\n }, function () {\n return '*';\n })).join('.');\n });\n};\nvar getExpandedPaths = function getExpandedPaths(data, dataIterator, expandPaths, expandLevel, prevExpandedPaths) {\n var wildcardPaths = [].concat(wildcardPathsFromLevel(expandLevel)).concat(expandPaths).filter(function (path) {\n return typeof path === 'string';\n });\n var expandedPaths = [];\n wildcardPaths.forEach(function (wildcardPath) {\n var keyPaths = wildcardPath.split('.');\n var populatePaths = function populatePaths(curData, curPath, depth) {\n if (depth === keyPaths.length) {\n expandedPaths.push(curPath);\n return;\n }\n var key = keyPaths[depth];\n if (depth === 0) {\n if (hasChildNodes(curData, dataIterator) && (key === DEFAULT_ROOT_PATH || key === WILDCARD)) {\n populatePaths(curData, DEFAULT_ROOT_PATH, depth + 1);\n }\n } else {\n if (key === WILDCARD) {\n var _iterator = _createForOfIteratorHelper$1(dataIterator(curData)),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var _step$value = _step.value,\n name = _step$value.name,\n _data = _step$value.data;\n if (hasChildNodes(_data, dataIterator)) {\n populatePaths(_data, \"\".concat(curPath, \".\").concat(name), depth + 1);\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n } else {\n var value = curData[key];\n if (hasChildNodes(value, dataIterator)) {\n populatePaths(value, \"\".concat(curPath, \".\").concat(key), depth + 1);\n }\n }\n }\n };\n populatePaths(data, '', 0);\n });\n return expandedPaths.reduce(function (obj, path) {\n obj[path] = true;\n return obj;\n }, _objectSpread$5({}, prevExpandedPaths));\n};\nfunction ownKeys$4(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread$4(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) {\n ownKeys$4(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys$4(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n return target;\n}\nvar ConnectedTreeNode = memo(function (props) {\n var data = props.data,\n dataIterator = props.dataIterator,\n path = props.path,\n depth = props.depth,\n nodeRenderer = props.nodeRenderer;\n var _useContext = useContext(ExpandedPathsContext),\n _useContext2 = _slicedToArray(_useContext, 2),\n expandedPaths = _useContext2[0],\n setExpandedPaths = _useContext2[1];\n var nodeHasChildNodes = hasChildNodes(data, dataIterator);\n var expanded = !!expandedPaths[path];\n var handleClick = useCallback(function () {\n return nodeHasChildNodes && setExpandedPaths(function (prevExpandedPaths) {\n return _objectSpread$4(_objectSpread$4({}, prevExpandedPaths), {}, _defineProperty({}, path, !expanded));\n });\n }, [nodeHasChildNodes, setExpandedPaths, path, expanded]);\n return React.createElement(TreeNode, _extends({\n expanded: expanded,\n onClick: handleClick,\n shouldShowArrow: nodeHasChildNodes,\n shouldShowPlaceholder: depth > 0,\n nodeRenderer: nodeRenderer\n }, props), expanded ? _toConsumableArray(dataIterator(data)).map(function (_ref) {\n var name = _ref.name,\n data = _ref.data,\n renderNodeProps = _objectWithoutProperties(_ref, [\"name\", \"data\"]);\n return React.createElement(ConnectedTreeNode, _extends({\n name: name,\n data: data,\n depth: depth + 1,\n path: \"\".concat(path, \".\").concat(name),\n key: name,\n dataIterator: dataIterator,\n nodeRenderer: nodeRenderer\n }, renderNodeProps));\n }) : null);\n});\nConnectedTreeNode.propTypes = {\n name: PropTypes.string,\n data: PropTypes.any,\n dataIterator: PropTypes.func,\n depth: PropTypes.number,\n expanded: PropTypes.bool,\n nodeRenderer: PropTypes.func\n};\nvar TreeView = memo(function (_ref2) {\n var name = _ref2.name,\n data = _ref2.data,\n dataIterator = _ref2.dataIterator,\n nodeRenderer = _ref2.nodeRenderer,\n expandPaths = _ref2.expandPaths,\n expandLevel = _ref2.expandLevel;\n var styles = useStyles('TreeView');\n var stateAndSetter = useState({});\n var _stateAndSetter = _slicedToArray(stateAndSetter, 2),\n setExpandedPaths = _stateAndSetter[1];\n useLayoutEffect(function () {\n return setExpandedPaths(function (prevExpandedPaths) {\n return getExpandedPaths(data, dataIterator, expandPaths, expandLevel, prevExpandedPaths);\n });\n }, [data, dataIterator, expandPaths, expandLevel]);\n return React.createElement(ExpandedPathsContext.Provider, {\n value: stateAndSetter\n }, React.createElement(\"ol\", {\n role: \"tree\",\n style: styles.treeViewOutline\n }, React.createElement(ConnectedTreeNode, {\n name: name,\n data: data,\n dataIterator: dataIterator,\n depth: 0,\n path: DEFAULT_ROOT_PATH,\n nodeRenderer: nodeRenderer\n })));\n});\nTreeView.propTypes = {\n name: PropTypes.string,\n data: PropTypes.any,\n dataIterator: PropTypes.func,\n nodeRenderer: PropTypes.func,\n expandPaths: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),\n expandLevel: PropTypes.number\n};\nfunction ownKeys$3(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread$3(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) {\n ownKeys$3(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys$3(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n return target;\n}\nvar ObjectName = function ObjectName(_ref) {\n var name = _ref.name,\n _ref$dimmed = _ref.dimmed,\n dimmed = _ref$dimmed === void 0 ? false : _ref$dimmed,\n _ref$styles = _ref.styles,\n styles = _ref$styles === void 0 ? {} : _ref$styles;\n var themeStyles = useStyles('ObjectName');\n var appliedStyles = _objectSpread$3(_objectSpread$3(_objectSpread$3({}, themeStyles.base), dimmed ? themeStyles['dimmed'] : {}), styles);\n return React.createElement(\"span\", {\n style: appliedStyles\n }, name);\n};\nObjectName.propTypes = {\n name: PropTypes.string,\n dimmed: PropTypes.bool\n};\nfunction ownKeys$2(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread$2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) {\n ownKeys$2(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys$2(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n return target;\n}\nvar ObjectValue = function ObjectValue(_ref) {\n var object = _ref.object,\n styles = _ref.styles;\n var themeStyles = useStyles('ObjectValue');\n var mkStyle = function mkStyle(key) {\n return _objectSpread$2(_objectSpread$2({}, themeStyles[key]), styles);\n };\n switch (_typeof(object)) {\n case 'bigint':\n return React.createElement(\"span\", {\n style: mkStyle('objectValueNumber')\n }, String(object), \"n\");\n case 'number':\n return React.createElement(\"span\", {\n style: mkStyle('objectValueNumber')\n }, String(object));\n case 'string':\n return React.createElement(\"span\", {\n style: mkStyle('objectValueString')\n }, \"\\\"\", object, \"\\\"\");\n case 'boolean':\n return React.createElement(\"span\", {\n style: mkStyle('objectValueBoolean')\n }, String(object));\n case 'undefined':\n return React.createElement(\"span\", {\n style: mkStyle('objectValueUndefined')\n }, \"undefined\");\n case 'object':\n if (object === null) {\n return React.createElement(\"span\", {\n style: mkStyle('objectValueNull')\n }, \"null\");\n }\n if (object instanceof Date) {\n return React.createElement(\"span\", null, object.toString());\n }\n if (object instanceof RegExp) {\n return React.createElement(\"span\", {\n style: mkStyle('objectValueRegExp')\n }, object.toString());\n }\n if (Array.isArray(object)) {\n return React.createElement(\"span\", null, \"Array(\".concat(object.length, \")\"));\n }\n if (!object.constructor) {\n return React.createElement(\"span\", null, \"Object\");\n }\n if (typeof object.constructor.isBuffer === 'function' && object.constructor.isBuffer(object)) {\n return React.createElement(\"span\", null, \"Buffer[\".concat(object.length, \"]\"));\n }\n return React.createElement(\"span\", null, object.constructor.name);\n case 'function':\n return React.createElement(\"span\", null, React.createElement(\"span\", {\n style: mkStyle('objectValueFunctionPrefix')\n }, \"\\u0192\\xA0\"), React.createElement(\"span\", {\n style: mkStyle('objectValueFunctionName')\n }, object.name, \"()\"));\n case 'symbol':\n return React.createElement(\"span\", {\n style: mkStyle('objectValueSymbol')\n }, object.toString());\n default:\n return React.createElement(\"span\", null);\n }\n};\nObjectValue.propTypes = {\n object: PropTypes.any\n};\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propertyIsEnumerable = Object.prototype.propertyIsEnumerable;\nfunction getPropertyValue(object, propertyName) {\n var propertyDescriptor = Object.getOwnPropertyDescriptor(object, propertyName);\n if (propertyDescriptor.get) {\n try {\n return propertyDescriptor.get();\n } catch (_unused) {\n return propertyDescriptor.get;\n }\n }\n return object[propertyName];\n}\nfunction intersperse(arr, sep) {\n if (arr.length === 0) {\n return [];\n }\n return arr.slice(1).reduce(function (xs, x) {\n return xs.concat([sep, x]);\n }, [arr[0]]);\n}\nvar ObjectPreview = function ObjectPreview(_ref) {\n var data = _ref.data;\n var styles = useStyles('ObjectPreview');\n var object = data;\n if (_typeof(object) !== 'object' || object === null || object instanceof Date || object instanceof RegExp) {\n return React.createElement(ObjectValue, {\n object: object\n });\n }\n if (Array.isArray(object)) {\n var maxProperties = styles.arrayMaxProperties;\n var previewArray = object.slice(0, maxProperties).map(function (element, index) {\n return React.createElement(ObjectValue, {\n key: index,\n object: element\n });\n });\n if (object.length > maxProperties) {\n previewArray.push(React.createElement(\"span\", {\n key: \"ellipsis\"\n }, \"\\u2026\"));\n }\n var arrayLength = object.length;\n return React.createElement(React.Fragment, null, React.createElement(\"span\", {\n style: styles.objectDescription\n }, arrayLength === 0 ? \"\" : \"(\".concat(arrayLength, \")\\xA0\")), React.createElement(\"span\", {\n style: styles.preview\n }, \"[\", intersperse(previewArray, ', '), \"]\"));\n } else {\n var _maxProperties = styles.objectMaxProperties;\n var propertyNodes = [];\n for (var propertyName in object) {\n if (hasOwnProperty.call(object, propertyName)) {\n var ellipsis = void 0;\n if (propertyNodes.length === _maxProperties - 1 && Object.keys(object).length > _maxProperties) {\n ellipsis = React.createElement(\"span\", {\n key: 'ellipsis'\n }, \"\\u2026\");\n }\n var propertyValue = getPropertyValue(object, propertyName);\n propertyNodes.push(React.createElement(\"span\", {\n key: propertyName\n }, React.createElement(ObjectName, {\n name: propertyName || \"\\\"\\\"\"\n }), \":\\xA0\", React.createElement(ObjectValue, {\n object: propertyValue\n }), ellipsis));\n if (ellipsis) break;\n }\n }\n var objectConstructorName = object.constructor ? object.constructor.name : 'Object';\n return React.createElement(React.Fragment, null, React.createElement(\"span\", {\n style: styles.objectDescription\n }, objectConstructorName === 'Object' ? '' : \"\".concat(objectConstructorName, \" \")), React.createElement(\"span\", {\n style: styles.preview\n }, '{', intersperse(propertyNodes, ', '), '}'));\n }\n};\nvar ObjectRootLabel = function ObjectRootLabel(_ref) {\n var name = _ref.name,\n data = _ref.data;\n if (typeof name === 'string') {\n return React.createElement(\"span\", null, React.createElement(ObjectName, {\n name: name\n }), React.createElement(\"span\", null, \": \"), React.createElement(ObjectPreview, {\n data: data\n }));\n } else {\n return React.createElement(ObjectPreview, {\n data: data\n });\n }\n};\nvar ObjectLabel = function ObjectLabel(_ref) {\n var name = _ref.name,\n data = _ref.data,\n _ref$isNonenumerable = _ref.isNonenumerable,\n isNonenumerable = _ref$isNonenumerable === void 0 ? false : _ref$isNonenumerable;\n var object = data;\n return React.createElement(\"span\", null, typeof name === 'string' ? React.createElement(ObjectName, {\n name: name,\n dimmed: isNonenumerable\n }) : React.createElement(ObjectPreview, {\n data: name\n }), React.createElement(\"span\", null, \": \"), React.createElement(ObjectValue, {\n object: object\n }));\n};\nObjectLabel.propTypes = {\n isNonenumerable: PropTypes.bool\n};\nfunction _createForOfIteratorHelper(o, allowArrayLike) {\n var it;\n if (typeof Symbol === \"undefined\" || o[Symbol.iterator] == null) {\n if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") {\n if (it) o = it;\n var i = 0;\n var F = function F() {};\n return {\n s: F,\n n: function n() {\n if (i >= o.length) return {\n done: true\n };\n return {\n done: false,\n value: o[i++]\n };\n },\n e: function e(_e) {\n throw _e;\n },\n f: F\n };\n }\n throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n var normalCompletion = true,\n didErr = false,\n err;\n return {\n s: function s() {\n it = o[Symbol.iterator]();\n },\n n: function n() {\n var step = it.next();\n normalCompletion = step.done;\n return step;\n },\n e: function e(_e2) {\n didErr = true;\n err = _e2;\n },\n f: function f() {\n try {\n if (!normalCompletion && it.return != null) it.return();\n } finally {\n if (didErr) throw err;\n }\n }\n };\n}\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n return arr2;\n}\nvar createIterator = function createIterator(showNonenumerable, sortObjectKeys) {\n var objectIterator = regenerator.mark(function objectIterator(data) {\n var shouldIterate, dataIsArray, i, _iterator, _step, entry, _entry, k, v, keys, _iterator2, _step2, propertyName, propertyValue, _propertyValue;\n return regenerator.wrap(function objectIterator$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n shouldIterate = _typeof(data) === 'object' && data !== null || typeof data === 'function';\n if (shouldIterate) {\n _context.next = 3;\n break;\n }\n return _context.abrupt(\"return\");\n case 3:\n dataIsArray = Array.isArray(data);\n if (!(!dataIsArray && data[Symbol.iterator])) {\n _context.next = 32;\n break;\n }\n i = 0;\n _iterator = _createForOfIteratorHelper(data);\n _context.prev = 7;\n _iterator.s();\n case 9:\n if ((_step = _iterator.n()).done) {\n _context.next = 22;\n break;\n }\n entry = _step.value;\n if (!(Array.isArray(entry) && entry.length === 2)) {\n _context.next = 17;\n break;\n }\n _entry = _slicedToArray(entry, 2), k = _entry[0], v = _entry[1];\n _context.next = 15;\n return {\n name: k,\n data: v\n };\n case 15:\n _context.next = 19;\n break;\n case 17:\n _context.next = 19;\n return {\n name: i.toString(),\n data: entry\n };\n case 19:\n i++;\n case 20:\n _context.next = 9;\n break;\n case 22:\n _context.next = 27;\n break;\n case 24:\n _context.prev = 24;\n _context.t0 = _context[\"catch\"](7);\n _iterator.e(_context.t0);\n case 27:\n _context.prev = 27;\n _iterator.f();\n return _context.finish(27);\n case 30:\n _context.next = 64;\n break;\n case 32:\n keys = Object.getOwnPropertyNames(data);\n if (sortObjectKeys === true && !dataIsArray) {\n keys.sort();\n } else if (typeof sortObjectKeys === 'function') {\n keys.sort(sortObjectKeys);\n }\n _iterator2 = _createForOfIteratorHelper(keys);\n _context.prev = 35;\n _iterator2.s();\n case 37:\n if ((_step2 = _iterator2.n()).done) {\n _context.next = 53;\n break;\n }\n propertyName = _step2.value;\n if (!propertyIsEnumerable.call(data, propertyName)) {\n _context.next = 45;\n break;\n }\n propertyValue = getPropertyValue(data, propertyName);\n _context.next = 43;\n return {\n name: propertyName || \"\\\"\\\"\",\n data: propertyValue\n };\n case 43:\n _context.next = 51;\n break;\n case 45:\n if (!showNonenumerable) {\n _context.next = 51;\n break;\n }\n _propertyValue = void 0;\n try {\n _propertyValue = getPropertyValue(data, propertyName);\n } catch (e) {}\n if (!(_propertyValue !== undefined)) {\n _context.next = 51;\n break;\n }\n _context.next = 51;\n return {\n name: propertyName,\n data: _propertyValue,\n isNonenumerable: true\n };\n case 51:\n _context.next = 37;\n break;\n case 53:\n _context.next = 58;\n break;\n case 55:\n _context.prev = 55;\n _context.t1 = _context[\"catch\"](35);\n _iterator2.e(_context.t1);\n case 58:\n _context.prev = 58;\n _iterator2.f();\n return _context.finish(58);\n case 61:\n if (!(showNonenumerable && data !== Object.prototype)) {\n _context.next = 64;\n break;\n }\n _context.next = 64;\n return {\n name: '__proto__',\n data: Object.getPrototypeOf(data),\n isNonenumerable: true\n };\n case 64:\n case \"end\":\n return _context.stop();\n }\n }\n }, objectIterator, null, [[7, 24, 27, 30], [35, 55, 58, 61]]);\n });\n return objectIterator;\n};\nvar defaultNodeRenderer = function defaultNodeRenderer(_ref) {\n var depth = _ref.depth,\n name = _ref.name,\n data = _ref.data,\n isNonenumerable = _ref.isNonenumerable;\n return depth === 0 ? React.createElement(ObjectRootLabel, {\n name: name,\n data: data\n }) : React.createElement(ObjectLabel, {\n name: name,\n data: data,\n isNonenumerable: isNonenumerable\n });\n};\nvar ObjectInspector = function ObjectInspector(_ref2) {\n var _ref2$showNonenumerab = _ref2.showNonenumerable,\n showNonenumerable = _ref2$showNonenumerab === void 0 ? false : _ref2$showNonenumerab,\n sortObjectKeys = _ref2.sortObjectKeys,\n nodeRenderer = _ref2.nodeRenderer,\n treeViewProps = _objectWithoutProperties(_ref2, [\"showNonenumerable\", \"sortObjectKeys\", \"nodeRenderer\"]);\n var dataIterator = createIterator(showNonenumerable, sortObjectKeys);\n var renderer = nodeRenderer ? nodeRenderer : defaultNodeRenderer;\n return React.createElement(TreeView, _extends({\n nodeRenderer: renderer,\n dataIterator: dataIterator\n }, treeViewProps));\n};\nObjectInspector.propTypes = {\n expandLevel: PropTypes.number,\n expandPaths: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),\n name: PropTypes.string,\n data: PropTypes.any,\n showNonenumerable: PropTypes.bool,\n sortObjectKeys: PropTypes.oneOfType([PropTypes.bool, PropTypes.func]),\n nodeRenderer: PropTypes.func\n};\nvar ObjectInspector$1 = themeAcceptor(ObjectInspector);\nif (!Array.prototype.includes) {\n Array.prototype.includes = function (searchElement) {\n var O = Object(this);\n var len = parseInt(O.length) || 0;\n if (len === 0) {\n return false;\n }\n var n = parseInt(arguments[1]) || 0;\n var k;\n if (n >= 0) {\n k = n;\n } else {\n k = len + n;\n if (k < 0) {\n k = 0;\n }\n }\n var currentElement;\n while (k < len) {\n currentElement = O[k];\n if (searchElement === currentElement || searchElement !== searchElement && currentElement !== currentElement) {\n return true;\n }\n k++;\n }\n return false;\n };\n}\nfunction getHeaders(data) {\n if (_typeof(data) === 'object') {\n var rowHeaders;\n if (Array.isArray(data)) {\n var nRows = data.length;\n rowHeaders = _toConsumableArray(Array(nRows).keys());\n } else if (data !== null) {\n rowHeaders = Object.keys(data);\n }\n var colHeaders = rowHeaders.reduce(function (colHeaders, rowHeader) {\n var row = data[rowHeader];\n if (_typeof(row) === 'object' && row !== null) {\n var cols = Object.keys(row);\n cols.reduce(function (xs, x) {\n if (!xs.includes(x)) {\n xs.push(x);\n }\n return xs;\n }, colHeaders);\n }\n return colHeaders;\n }, []);\n return {\n rowHeaders: rowHeaders,\n colHeaders: colHeaders\n };\n }\n return undefined;\n}\nfunction ownKeys$1(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread$1(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) {\n ownKeys$1(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys$1(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n return target;\n}\nvar DataContainer = function DataContainer(_ref) {\n var rows = _ref.rows,\n columns = _ref.columns,\n rowsData = _ref.rowsData;\n var styles = useStyles('TableInspectorDataContainer');\n var borderStyles = useStyles('TableInspectorLeftBorder');\n return React.createElement(\"div\", {\n style: styles.div\n }, React.createElement(\"table\", {\n style: styles.table\n }, React.createElement(\"colgroup\", null), React.createElement(\"tbody\", null, rows.map(function (row, i) {\n return React.createElement(\"tr\", {\n key: row,\n style: styles.tr\n }, React.createElement(\"td\", {\n style: _objectSpread$1(_objectSpread$1({}, styles.td), borderStyles.none)\n }, row), columns.map(function (column) {\n var rowData = rowsData[i];\n if (_typeof(rowData) === 'object' && rowData !== null && hasOwnProperty.call(rowData, column)) {\n return React.createElement(\"td\", {\n key: column,\n style: _objectSpread$1(_objectSpread$1({}, styles.td), borderStyles.solid)\n }, React.createElement(ObjectValue, {\n object: rowData[column]\n }));\n } else {\n return React.createElement(\"td\", {\n key: column,\n style: _objectSpread$1(_objectSpread$1({}, styles.td), borderStyles.solid)\n });\n }\n }));\n }))));\n};\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n return target;\n}\nvar SortIconContainer = function SortIconContainer(props) {\n return React.createElement(\"div\", {\n style: {\n position: 'absolute',\n top: 1,\n right: 0,\n bottom: 1,\n display: 'flex',\n alignItems: 'center'\n }\n }, props.children);\n};\nvar SortIcon = function SortIcon(_ref) {\n var sortAscending = _ref.sortAscending;\n var styles = useStyles('TableInspectorSortIcon');\n var glyph = sortAscending ? '▲' : '▼';\n return React.createElement(\"div\", {\n style: styles\n }, glyph);\n};\nvar TH = function TH(_ref2) {\n var _ref2$sortAscending = _ref2.sortAscending,\n sortAscending = _ref2$sortAscending === void 0 ? false : _ref2$sortAscending,\n _ref2$sorted = _ref2.sorted,\n sorted = _ref2$sorted === void 0 ? false : _ref2$sorted,\n _ref2$onClick = _ref2.onClick,\n onClick = _ref2$onClick === void 0 ? undefined : _ref2$onClick,\n _ref2$borderStyle = _ref2.borderStyle,\n borderStyle = _ref2$borderStyle === void 0 ? {} : _ref2$borderStyle,\n children = _ref2.children,\n thProps = _objectWithoutProperties(_ref2, [\"sortAscending\", \"sorted\", \"onClick\", \"borderStyle\", \"children\"]);\n var styles = useStyles('TableInspectorTH');\n var _useState = useState(false),\n _useState2 = _slicedToArray(_useState, 2),\n hovered = _useState2[0],\n setHovered = _useState2[1];\n var handleMouseEnter = useCallback(function () {\n return setHovered(true);\n }, []);\n var handleMouseLeave = useCallback(function () {\n return setHovered(false);\n }, []);\n return React.createElement(\"th\", _extends({}, thProps, {\n style: _objectSpread(_objectSpread(_objectSpread({}, styles.base), borderStyle), hovered ? styles.base[':hover'] : {}),\n onMouseEnter: handleMouseEnter,\n onMouseLeave: handleMouseLeave,\n onClick: onClick\n }), React.createElement(\"div\", {\n style: styles.div\n }, children), sorted && React.createElement(SortIconContainer, null, React.createElement(SortIcon, {\n sortAscending: sortAscending\n })));\n};\nvar HeaderContainer = function HeaderContainer(_ref) {\n var _ref$indexColumnText = _ref.indexColumnText,\n indexColumnText = _ref$indexColumnText === void 0 ? '(index)' : _ref$indexColumnText,\n _ref$columns = _ref.columns,\n columns = _ref$columns === void 0 ? [] : _ref$columns,\n sorted = _ref.sorted,\n sortIndexColumn = _ref.sortIndexColumn,\n sortColumn = _ref.sortColumn,\n sortAscending = _ref.sortAscending,\n onTHClick = _ref.onTHClick,\n onIndexTHClick = _ref.onIndexTHClick;\n var styles = useStyles('TableInspectorHeaderContainer');\n var borderStyles = useStyles('TableInspectorLeftBorder');\n return React.createElement(\"div\", {\n style: styles.base\n }, React.createElement(\"table\", {\n style: styles.table\n }, React.createElement(\"tbody\", null, React.createElement(\"tr\", null, React.createElement(TH, {\n borderStyle: borderStyles.none,\n sorted: sorted && sortIndexColumn,\n sortAscending: sortAscending,\n onClick: onIndexTHClick\n }, indexColumnText), columns.map(function (column) {\n return React.createElement(TH, {\n borderStyle: borderStyles.solid,\n key: column,\n sorted: sorted && sortColumn === column,\n sortAscending: sortAscending,\n onClick: onTHClick.bind(null, column)\n }, column);\n })))));\n};\nvar TableInspector = function TableInspector(_ref) {\n var data = _ref.data,\n columns = _ref.columns;\n var styles = useStyles('TableInspector');\n var _useState = useState({\n sorted: false,\n sortIndexColumn: false,\n sortColumn: undefined,\n sortAscending: false\n }),\n _useState2 = _slicedToArray(_useState, 2),\n _useState2$ = _useState2[0],\n sorted = _useState2$.sorted,\n sortIndexColumn = _useState2$.sortIndexColumn,\n sortColumn = _useState2$.sortColumn,\n sortAscending = _useState2$.sortAscending,\n setState = _useState2[1];\n var handleIndexTHClick = useCallback(function () {\n setState(function (_ref2) {\n var sortIndexColumn = _ref2.sortIndexColumn,\n sortAscending = _ref2.sortAscending;\n return {\n sorted: true,\n sortIndexColumn: true,\n sortColumn: undefined,\n sortAscending: sortIndexColumn ? !sortAscending : true\n };\n });\n }, []);\n var handleTHClick = useCallback(function (col) {\n setState(function (_ref3) {\n var sortColumn = _ref3.sortColumn,\n sortAscending = _ref3.sortAscending;\n return {\n sorted: true,\n sortIndexColumn: false,\n sortColumn: col,\n sortAscending: col === sortColumn ? !sortAscending : true\n };\n });\n }, []);\n if (_typeof(data) !== 'object' || data === null) {\n return React.createElement(\"div\", null);\n }\n var _getHeaders = getHeaders(data),\n rowHeaders = _getHeaders.rowHeaders,\n colHeaders = _getHeaders.colHeaders;\n if (columns !== undefined) {\n colHeaders = columns;\n }\n var rowsData = rowHeaders.map(function (rowHeader) {\n return data[rowHeader];\n });\n var columnDataWithRowIndexes;\n if (sortColumn !== undefined) {\n columnDataWithRowIndexes = rowsData.map(function (rowData, index) {\n if (_typeof(rowData) === 'object' && rowData !== null) {\n var columnData = rowData[sortColumn];\n return [columnData, index];\n }\n return [undefined, index];\n });\n } else {\n if (sortIndexColumn) {\n columnDataWithRowIndexes = rowHeaders.map(function (rowData, index) {\n var columnData = rowHeaders[index];\n return [columnData, index];\n });\n }\n }\n if (columnDataWithRowIndexes !== undefined) {\n var comparator = function comparator(mapper, ascending) {\n return function (a, b) {\n var v1 = mapper(a);\n var v2 = mapper(b);\n var type1 = _typeof(v1);\n var type2 = _typeof(v2);\n var lt = function lt(v1, v2) {\n if (v1 < v2) {\n return -1;\n } else if (v1 > v2) {\n return 1;\n } else {\n return 0;\n }\n };\n var result;\n if (type1 === type2) {\n result = lt(v1, v2);\n } else {\n var order = {\n string: 0,\n number: 1,\n object: 2,\n symbol: 3,\n boolean: 4,\n undefined: 5,\n function: 6\n };\n result = lt(order[type1], order[type2]);\n }\n if (!ascending) result = -result;\n return result;\n };\n };\n var sortedRowIndexes = columnDataWithRowIndexes.sort(comparator(function (item) {\n return item[0];\n }, sortAscending)).map(function (item) {\n return item[1];\n });\n rowHeaders = sortedRowIndexes.map(function (i) {\n return rowHeaders[i];\n });\n rowsData = sortedRowIndexes.map(function (i) {\n return rowsData[i];\n });\n }\n return React.createElement(\"div\", {\n style: styles.base\n }, React.createElement(HeaderContainer, {\n columns: colHeaders,\n sorted: sorted,\n sortIndexColumn: sortIndexColumn,\n sortColumn: sortColumn,\n sortAscending: sortAscending,\n onTHClick: handleTHClick,\n onIndexTHClick: handleIndexTHClick\n }), React.createElement(DataContainer, {\n rows: rowHeaders,\n columns: colHeaders,\n rowsData: rowsData\n }));\n};\nTableInspector.propTypes = {\n data: PropTypes.oneOfType([PropTypes.array, PropTypes.object]),\n columns: PropTypes.array\n};\nvar TableInspector$1 = themeAcceptor(TableInspector);\nvar TEXT_NODE_MAX_INLINE_CHARS = 80;\nvar shouldInline = function shouldInline(data) {\n return data.childNodes.length === 0 || data.childNodes.length === 1 && data.childNodes[0].nodeType === Node.TEXT_NODE && data.textContent.length < TEXT_NODE_MAX_INLINE_CHARS;\n};\nvar OpenTag = function OpenTag(_ref) {\n var tagName = _ref.tagName,\n attributes = _ref.attributes,\n styles = _ref.styles;\n return React.createElement(\"span\", {\n style: styles.base\n }, '<', React.createElement(\"span\", {\n style: styles.tagName\n }, tagName), function () {\n if (attributes) {\n var attributeNodes = [];\n for (var i = 0; i < attributes.length; i++) {\n var attribute = attributes[i];\n attributeNodes.push(React.createElement(\"span\", {\n key: i\n }, ' ', React.createElement(\"span\", {\n style: styles.htmlAttributeName\n }, attribute.name), '=\"', React.createElement(\"span\", {\n style: styles.htmlAttributeValue\n }, attribute.value), '\"'));\n }\n return attributeNodes;\n }\n }(), '>');\n};\nvar CloseTag = function CloseTag(_ref2) {\n var tagName = _ref2.tagName,\n _ref2$isChildNode = _ref2.isChildNode,\n isChildNode = _ref2$isChildNode === void 0 ? false : _ref2$isChildNode,\n styles = _ref2.styles;\n return React.createElement(\"span\", {\n style: _extends({}, styles.base, isChildNode && styles.offsetLeft)\n }, '', React.createElement(\"span\", {\n style: styles.tagName\n }, tagName), '>');\n};\nvar nameByNodeType = {\n 1: 'ELEMENT_NODE',\n 3: 'TEXT_NODE',\n 7: 'PROCESSING_INSTRUCTION_NODE',\n 8: 'COMMENT_NODE',\n 9: 'DOCUMENT_NODE',\n 10: 'DOCUMENT_TYPE_NODE',\n 11: 'DOCUMENT_FRAGMENT_NODE'\n};\nvar DOMNodePreview = function DOMNodePreview(_ref3) {\n var isCloseTag = _ref3.isCloseTag,\n data = _ref3.data,\n expanded = _ref3.expanded;\n var styles = useStyles('DOMNodePreview');\n if (isCloseTag) {\n return React.createElement(CloseTag, {\n styles: styles.htmlCloseTag,\n isChildNode: true,\n tagName: data.tagName\n });\n }\n switch (data.nodeType) {\n case Node.ELEMENT_NODE:\n return React.createElement(\"span\", null, React.createElement(OpenTag, {\n tagName: data.tagName,\n attributes: data.attributes,\n styles: styles.htmlOpenTag\n }), shouldInline(data) ? data.textContent : !expanded && '…', !expanded && React.createElement(CloseTag, {\n tagName: data.tagName,\n styles: styles.htmlCloseTag\n }));\n case Node.TEXT_NODE:\n return React.createElement(\"span\", null, data.textContent);\n case Node.CDATA_SECTION_NODE:\n return React.createElement(\"span\", null, '');\n case Node.COMMENT_NODE:\n return React.createElement(\"span\", {\n style: styles.htmlComment\n }, '');\n case Node.PROCESSING_INSTRUCTION_NODE:\n return React.createElement(\"span\", null, data.nodeName);\n case Node.DOCUMENT_TYPE_NODE:\n return React.createElement(\"span\", {\n style: styles.htmlDoctype\n }, '');\n case Node.DOCUMENT_NODE:\n return React.createElement(\"span\", null, data.nodeName);\n case Node.DOCUMENT_FRAGMENT_NODE:\n return React.createElement(\"span\", null, data.nodeName);\n default:\n return React.createElement(\"span\", null, nameByNodeType[data.nodeType]);\n }\n};\nDOMNodePreview.propTypes = {\n isCloseTag: PropTypes.bool,\n name: PropTypes.string,\n data: PropTypes.object.isRequired,\n expanded: PropTypes.bool.isRequired\n};\nvar domIterator = regenerator.mark(function domIterator(data) {\n var textInlined, i, node;\n return regenerator.wrap(function domIterator$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (!(data && data.childNodes)) {\n _context.next = 17;\n break;\n }\n textInlined = shouldInline(data);\n if (!textInlined) {\n _context.next = 4;\n break;\n }\n return _context.abrupt(\"return\");\n case 4:\n i = 0;\n case 5:\n if (!(i < data.childNodes.length)) {\n _context.next = 14;\n break;\n }\n node = data.childNodes[i];\n if (!(node.nodeType === Node.TEXT_NODE && node.textContent.trim().length === 0)) {\n _context.next = 9;\n break;\n }\n return _context.abrupt(\"continue\", 11);\n case 9:\n _context.next = 11;\n return {\n name: \"\".concat(node.tagName, \"[\").concat(i, \"]\"),\n data: node\n };\n case 11:\n i++;\n _context.next = 5;\n break;\n case 14:\n if (!data.tagName) {\n _context.next = 17;\n break;\n }\n _context.next = 17;\n return {\n name: 'CLOSE_TAG',\n data: {\n tagName: data.tagName\n },\n isCloseTag: true\n };\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, domIterator);\n});\nvar DOMInspector = function DOMInspector(props) {\n return React.createElement(TreeView, _extends({\n nodeRenderer: DOMNodePreview,\n dataIterator: domIterator\n }, props));\n};\nDOMInspector.propTypes = {\n data: PropTypes.object.isRequired\n};\nvar DOMInspector$1 = themeAcceptor(DOMInspector);\nvar Inspector = function Inspector(_ref) {\n var _ref$table = _ref.table,\n table = _ref$table === void 0 ? false : _ref$table,\n data = _ref.data,\n rest = _objectWithoutProperties(_ref, [\"table\", \"data\"]);\n if (table) {\n return React.createElement(TableInspector$1, _extends({\n data: data\n }, rest));\n }\n if (isDOM(data)) return React.createElement(DOMInspector$1, _extends({\n data: data\n }, rest));\n return React.createElement(ObjectInspector$1, _extends({\n data: data\n }, rest));\n};\nInspector.propTypes = {\n data: PropTypes.any,\n name: PropTypes.string,\n table: PropTypes.bool\n};\nexport default Inspector;\nexport { DOMInspector$1 as DOMInspector, Inspector, ObjectInspector$1 as ObjectInspector, ObjectLabel, ObjectName, ObjectPreview, ObjectRootLabel, ObjectValue, TableInspector$1 as TableInspector, theme$1 as chromeDark, theme as chromeLight };","\"use strict\";\n\nvar __importDefault = this && this.__importDefault || function (mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n};\nexports.__esModule = true;\nexports.Content = exports.Timestamp = exports.AmountIcon = exports.Icon = exports.Message = exports.Root = void 0;\nvar theme_1 = __importDefault(require(\"./theme\"));\n/**\n * Return themed log-method style\n * @param style The style\n * @param type The method\n */\nvar Themed = function (style, method, styles) {\n return styles[\"LOG_\" + method.toUpperCase() + \"_\" + style.toUpperCase()] || styles[\"LOG_\" + style.toUpperCase()];\n};\n/**\n * console-feed\n */\nexports.Root = theme_1[\"default\"]('div')({\n wordBreak: 'break-word',\n width: '100%'\n});\n/**\n * console-message\n */\nexports.Message = theme_1[\"default\"]('div')(function (_a) {\n var _b = _a.theme,\n styles = _b.styles,\n method = _b.method;\n return {\n position: 'relative',\n display: 'flex',\n color: Themed('color', method, styles),\n backgroundColor: Themed('background', method, styles),\n borderTop: \"1px solid \" + Themed('border', method, styles),\n borderBottom: \"1px solid \" + Themed('border', method, styles),\n marginTop: -1,\n marginBottom: +/^warn|error$/.test(method),\n paddingLeft: 10,\n boxSizing: 'border-box',\n '& *': {\n verticalAlign: 'top',\n boxSizing: 'border-box',\n fontFamily: styles.BASE_FONT_FAMILY,\n whiteSpace: 'pre-wrap',\n fontSize: styles.BASE_FONT_SIZE\n },\n '& a': {\n color: styles.LOG_LINK_COLOR\n }\n };\n});\n/**\n * message-icon\n */\nexports.Icon = theme_1[\"default\"]('div')(function (_a) {\n var _b = _a.theme,\n styles = _b.styles,\n method = _b.method;\n return {\n width: styles.LOG_ICON_WIDTH,\n height: styles.LOG_ICON_HEIGHT,\n backgroundImage: Themed('icon', method, styles),\n backgroundRepeat: 'no-repeat',\n backgroundSize: styles.LOG_ICON_BACKGROUND_SIZE,\n backgroundPosition: '50% 50%'\n };\n});\n/**\n * message-amount\n */\nexports.AmountIcon = theme_1[\"default\"]('div')(function (_a) {\n var _b = _a.theme,\n styles = _b.styles,\n method = _b.method;\n return {\n height: '16px',\n margin: '1px 0',\n whiteSpace: 'nowrap',\n fontSize: '10px',\n lineHeight: '17px',\n padding: '0px 3px',\n background: Themed('amount_background', method, styles),\n color: Themed('amount_color', method, styles),\n borderRadius: '8px',\n minWidth: '18px',\n textAlign: 'center'\n };\n});\n/**\n * timestamp\n */\nexports.Timestamp = theme_1[\"default\"]('div')(function (_a) {\n var _b = _a.theme,\n styles = _b.styles,\n method = _b.method;\n return {\n padding: '3px 0px 0px 5px',\n width: '110px',\n height: styles.LOG_ICON_HEIGHT,\n color: 'dimgray'\n };\n});\n/**\n * console-content\n */\nexports.Content = theme_1[\"default\"]('div')(function (_a) {\n var styles = _a.theme.styles;\n return {\n clear: 'right',\n position: 'relative',\n padding: styles.PADDING,\n marginLeft: 15,\n minHeight: 18,\n flex: 'auto',\n width: 'calc(100% - 15px)'\n };\n});","\"use strict\";\n\nvar __importDefault = this && this.__importDefault || function (mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n};\nexports.__esModule = true;\nvar styled_1 = __importDefault(require(\"@emotion/styled\"));\nexports[\"default\"] = styled_1[\"default\"];","\"use strict\";\n\nexports.__esModule = true;\nvar HTML5NamedCharRefs = {\n // We don't need the complete named character reference because linkifyHtml\n // does not modify the escape sequences. We do need so that\n // whitespace is parsed properly. Other types of whitespace should already\n // be accounted for\n nbsp: \"\\xA0\"\n};\nexports.default = HTML5NamedCharRefs;","\"use strict\";\n\nexports.__esModule = true;\nfunction EntityParser(named) {\n this.named = named;\n}\nvar HEXCHARCODE = /^#[xX]([A-Fa-f0-9]+)$/;\nvar CHARCODE = /^#([0-9]+)$/;\nvar NAMED = /^([A-Za-z0-9]+)$/;\nEntityParser.prototype.parse = function (entity) {\n if (!entity) {\n return;\n }\n var matches = entity.match(HEXCHARCODE);\n if (matches) {\n return \"\" + matches[1] + \";\";\n }\n matches = entity.match(CHARCODE);\n if (matches) {\n return \"\" + matches[1] + \";\";\n }\n matches = entity.match(NAMED);\n if (matches) {\n return this.named[matches[1]] || \"&\" + matches[1] + \";\";\n }\n};\nexports.default = EntityParser;","'use strict';\n\nexports.__esModule = true;\nvar _utils = require('./utils');\nfunction EventedTokenizer(delegate, entityParser) {\n this.delegate = delegate;\n this.entityParser = entityParser;\n this.state = null;\n this.input = null;\n this.index = -1;\n this.line = -1;\n this.column = -1;\n this.tagLine = -1;\n this.tagColumn = -1;\n this.reset();\n}\nEventedTokenizer.prototype = {\n reset: function reset() {\n this.state = 'beforeData';\n this.input = '';\n this.index = 0;\n this.line = 1;\n this.column = 0;\n this.tagLine = -1;\n this.tagColumn = -1;\n this.delegate.reset();\n },\n tokenize: function tokenize(input) {\n this.reset();\n this.tokenizePart(input);\n this.tokenizeEOF();\n },\n tokenizePart: function tokenizePart(input) {\n this.input += (0, _utils.preprocessInput)(input);\n while (this.index < this.input.length) {\n this.states[this.state].call(this);\n }\n },\n tokenizeEOF: function tokenizeEOF() {\n this.flushData();\n },\n flushData: function flushData() {\n if (this.state === 'data') {\n this.delegate.finishData();\n this.state = 'beforeData';\n }\n },\n peek: function peek() {\n return this.input.charAt(this.index);\n },\n consume: function consume() {\n var char = this.peek();\n this.index++;\n if (char === \"\\n\") {\n this.line++;\n this.column = 0;\n } else {\n this.column++;\n }\n return char;\n },\n consumeCharRef: function consumeCharRef() {\n var endIndex = this.input.indexOf(';', this.index);\n if (endIndex === -1) {\n return;\n }\n var entity = this.input.slice(this.index, endIndex);\n var chars = this.entityParser.parse(entity);\n if (chars) {\n var count = entity.length;\n // consume the entity chars\n while (count) {\n this.consume();\n count--;\n }\n // consume the `;`\n this.consume();\n return chars;\n }\n },\n markTagStart: function markTagStart() {\n // these properties to be removed in next major bump\n this.tagLine = this.line;\n this.tagColumn = this.column;\n if (this.delegate.tagOpen) {\n this.delegate.tagOpen();\n }\n },\n states: {\n beforeData: function beforeData() {\n var char = this.peek();\n if (char === \"<\") {\n this.state = 'tagOpen';\n this.markTagStart();\n this.consume();\n } else {\n this.state = 'data';\n this.delegate.beginData();\n }\n },\n data: function data() {\n var char = this.peek();\n if (char === \"<\") {\n this.delegate.finishData();\n this.state = 'tagOpen';\n this.markTagStart();\n this.consume();\n } else if (char === \"&\") {\n this.consume();\n this.delegate.appendToData(this.consumeCharRef() || \"&\");\n } else {\n this.consume();\n this.delegate.appendToData(char);\n }\n },\n tagOpen: function tagOpen() {\n var char = this.consume();\n if (char === \"!\") {\n this.state = 'markupDeclaration';\n } else if (char === \"/\") {\n this.state = 'endTagOpen';\n } else if ((0, _utils.isAlpha)(char)) {\n this.state = 'tagName';\n this.delegate.beginStartTag();\n this.delegate.appendToTagName(char.toLowerCase());\n }\n },\n markupDeclaration: function markupDeclaration() {\n var char = this.consume();\n if (char === \"-\" && this.input.charAt(this.index) === \"-\") {\n this.consume();\n this.state = 'commentStart';\n this.delegate.beginComment();\n }\n },\n commentStart: function commentStart() {\n var char = this.consume();\n if (char === \"-\") {\n this.state = 'commentStartDash';\n } else if (char === \">\") {\n this.delegate.finishComment();\n this.state = 'beforeData';\n } else {\n this.delegate.appendToCommentData(char);\n this.state = 'comment';\n }\n },\n commentStartDash: function commentStartDash() {\n var char = this.consume();\n if (char === \"-\") {\n this.state = 'commentEnd';\n } else if (char === \">\") {\n this.delegate.finishComment();\n this.state = 'beforeData';\n } else {\n this.delegate.appendToCommentData(\"-\");\n this.state = 'comment';\n }\n },\n comment: function comment() {\n var char = this.consume();\n if (char === \"-\") {\n this.state = 'commentEndDash';\n } else {\n this.delegate.appendToCommentData(char);\n }\n },\n commentEndDash: function commentEndDash() {\n var char = this.consume();\n if (char === \"-\") {\n this.state = 'commentEnd';\n } else {\n this.delegate.appendToCommentData(\"-\" + char);\n this.state = 'comment';\n }\n },\n commentEnd: function commentEnd() {\n var char = this.consume();\n if (char === \">\") {\n this.delegate.finishComment();\n this.state = 'beforeData';\n } else {\n this.delegate.appendToCommentData(\"--\" + char);\n this.state = 'comment';\n }\n },\n tagName: function tagName() {\n var char = this.consume();\n if ((0, _utils.isSpace)(char)) {\n this.state = 'beforeAttributeName';\n } else if (char === \"/\") {\n this.state = 'selfClosingStartTag';\n } else if (char === \">\") {\n this.delegate.finishTag();\n this.state = 'beforeData';\n } else {\n this.delegate.appendToTagName(char);\n }\n },\n beforeAttributeName: function beforeAttributeName() {\n var char = this.peek();\n if ((0, _utils.isSpace)(char)) {\n this.consume();\n return;\n } else if (char === \"/\") {\n this.state = 'selfClosingStartTag';\n this.consume();\n } else if (char === \">\") {\n this.consume();\n this.delegate.finishTag();\n this.state = 'beforeData';\n } else {\n this.state = 'attributeName';\n this.delegate.beginAttribute();\n this.consume();\n this.delegate.appendToAttributeName(char);\n }\n },\n attributeName: function attributeName() {\n var char = this.peek();\n if ((0, _utils.isSpace)(char)) {\n this.state = 'afterAttributeName';\n this.consume();\n } else if (char === \"/\") {\n this.delegate.beginAttributeValue(false);\n this.delegate.finishAttributeValue();\n this.consume();\n this.state = 'selfClosingStartTag';\n } else if (char === \"=\") {\n this.state = 'beforeAttributeValue';\n this.consume();\n } else if (char === \">\") {\n this.delegate.beginAttributeValue(false);\n this.delegate.finishAttributeValue();\n this.consume();\n this.delegate.finishTag();\n this.state = 'beforeData';\n } else {\n this.consume();\n this.delegate.appendToAttributeName(char);\n }\n },\n afterAttributeName: function afterAttributeName() {\n var char = this.peek();\n if ((0, _utils.isSpace)(char)) {\n this.consume();\n return;\n } else if (char === \"/\") {\n this.delegate.beginAttributeValue(false);\n this.delegate.finishAttributeValue();\n this.consume();\n this.state = 'selfClosingStartTag';\n } else if (char === \"=\") {\n this.consume();\n this.state = 'beforeAttributeValue';\n } else if (char === \">\") {\n this.delegate.beginAttributeValue(false);\n this.delegate.finishAttributeValue();\n this.consume();\n this.delegate.finishTag();\n this.state = 'beforeData';\n } else {\n this.delegate.beginAttributeValue(false);\n this.delegate.finishAttributeValue();\n this.consume();\n this.state = 'attributeName';\n this.delegate.beginAttribute();\n this.delegate.appendToAttributeName(char);\n }\n },\n beforeAttributeValue: function beforeAttributeValue() {\n var char = this.peek();\n if ((0, _utils.isSpace)(char)) {\n this.consume();\n } else if (char === '\"') {\n this.state = 'attributeValueDoubleQuoted';\n this.delegate.beginAttributeValue(true);\n this.consume();\n } else if (char === \"'\") {\n this.state = 'attributeValueSingleQuoted';\n this.delegate.beginAttributeValue(true);\n this.consume();\n } else if (char === \">\") {\n this.delegate.beginAttributeValue(false);\n this.delegate.finishAttributeValue();\n this.consume();\n this.delegate.finishTag();\n this.state = 'beforeData';\n } else {\n this.state = 'attributeValueUnquoted';\n this.delegate.beginAttributeValue(false);\n this.consume();\n this.delegate.appendToAttributeValue(char);\n }\n },\n attributeValueDoubleQuoted: function attributeValueDoubleQuoted() {\n var char = this.consume();\n if (char === '\"') {\n this.delegate.finishAttributeValue();\n this.state = 'afterAttributeValueQuoted';\n } else if (char === \"&\") {\n this.delegate.appendToAttributeValue(this.consumeCharRef('\"') || \"&\");\n } else {\n this.delegate.appendToAttributeValue(char);\n }\n },\n attributeValueSingleQuoted: function attributeValueSingleQuoted() {\n var char = this.consume();\n if (char === \"'\") {\n this.delegate.finishAttributeValue();\n this.state = 'afterAttributeValueQuoted';\n } else if (char === \"&\") {\n this.delegate.appendToAttributeValue(this.consumeCharRef(\"'\") || \"&\");\n } else {\n this.delegate.appendToAttributeValue(char);\n }\n },\n attributeValueUnquoted: function attributeValueUnquoted() {\n var char = this.peek();\n if ((0, _utils.isSpace)(char)) {\n this.delegate.finishAttributeValue();\n this.consume();\n this.state = 'beforeAttributeName';\n } else if (char === \"&\") {\n this.consume();\n this.delegate.appendToAttributeValue(this.consumeCharRef(\">\") || \"&\");\n } else if (char === \">\") {\n this.delegate.finishAttributeValue();\n this.consume();\n this.delegate.finishTag();\n this.state = 'beforeData';\n } else {\n this.consume();\n this.delegate.appendToAttributeValue(char);\n }\n },\n afterAttributeValueQuoted: function afterAttributeValueQuoted() {\n var char = this.peek();\n if ((0, _utils.isSpace)(char)) {\n this.consume();\n this.state = 'beforeAttributeName';\n } else if (char === \"/\") {\n this.consume();\n this.state = 'selfClosingStartTag';\n } else if (char === \">\") {\n this.consume();\n this.delegate.finishTag();\n this.state = 'beforeData';\n } else {\n this.state = 'beforeAttributeName';\n }\n },\n selfClosingStartTag: function selfClosingStartTag() {\n var char = this.peek();\n if (char === \">\") {\n this.consume();\n this.delegate.markTagAsSelfClosing();\n this.delegate.finishTag();\n this.state = 'beforeData';\n } else {\n this.state = 'beforeAttributeName';\n }\n },\n endTagOpen: function endTagOpen() {\n var char = this.consume();\n if ((0, _utils.isAlpha)(char)) {\n this.state = 'tagName';\n this.delegate.beginEndTag();\n this.delegate.appendToTagName(char.toLowerCase());\n }\n }\n }\n};\nexports.default = EventedTokenizer;","'use strict';\n\nexports.__esModule = true;\nvar _eventedTokenizer = require('./evented-tokenizer');\nvar _eventedTokenizer2 = _interopRequireDefault(_eventedTokenizer);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\nfunction Tokenizer(entityParser, options) {\n this.token = null;\n this.startLine = 1;\n this.startColumn = 0;\n this.options = options || {};\n this.tokenizer = new _eventedTokenizer2.default(this, entityParser);\n}\nTokenizer.prototype = {\n tokenize: function tokenize(input) {\n this.tokens = [];\n this.tokenizer.tokenize(input);\n return this.tokens;\n },\n tokenizePart: function tokenizePart(input) {\n this.tokens = [];\n this.tokenizer.tokenizePart(input);\n return this.tokens;\n },\n tokenizeEOF: function tokenizeEOF() {\n this.tokens = [];\n this.tokenizer.tokenizeEOF();\n return this.tokens[0];\n },\n reset: function reset() {\n this.token = null;\n this.startLine = 1;\n this.startColumn = 0;\n },\n addLocInfo: function addLocInfo() {\n if (this.options.loc) {\n this.token.loc = {\n start: {\n line: this.startLine,\n column: this.startColumn\n },\n end: {\n line: this.tokenizer.line,\n column: this.tokenizer.column\n }\n };\n }\n this.startLine = this.tokenizer.line;\n this.startColumn = this.tokenizer.column;\n },\n // Data\n\n beginData: function beginData() {\n this.token = {\n type: 'Chars',\n chars: ''\n };\n this.tokens.push(this.token);\n },\n appendToData: function appendToData(char) {\n this.token.chars += char;\n },\n finishData: function finishData() {\n this.addLocInfo();\n },\n // Comment\n\n beginComment: function beginComment() {\n this.token = {\n type: 'Comment',\n chars: ''\n };\n this.tokens.push(this.token);\n },\n appendToCommentData: function appendToCommentData(char) {\n this.token.chars += char;\n },\n finishComment: function finishComment() {\n this.addLocInfo();\n },\n // Tags - basic\n\n beginStartTag: function beginStartTag() {\n this.token = {\n type: 'StartTag',\n tagName: '',\n attributes: [],\n selfClosing: false\n };\n this.tokens.push(this.token);\n },\n beginEndTag: function beginEndTag() {\n this.token = {\n type: 'EndTag',\n tagName: ''\n };\n this.tokens.push(this.token);\n },\n finishTag: function finishTag() {\n this.addLocInfo();\n },\n markTagAsSelfClosing: function markTagAsSelfClosing() {\n this.token.selfClosing = true;\n },\n // Tags - name\n\n appendToTagName: function appendToTagName(char) {\n this.token.tagName += char;\n },\n // Tags - attributes\n\n beginAttribute: function beginAttribute() {\n this._currentAttribute = [\"\", \"\", null];\n this.token.attributes.push(this._currentAttribute);\n },\n appendToAttributeName: function appendToAttributeName(char) {\n this._currentAttribute[0] += char;\n },\n beginAttributeValue: function beginAttributeValue(isQuoted) {\n this._currentAttribute[2] = isQuoted;\n },\n appendToAttributeValue: function appendToAttributeValue(char) {\n this._currentAttribute[1] = this._currentAttribute[1] || \"\";\n this._currentAttribute[1] += char;\n },\n finishAttributeValue: function finishAttributeValue() {}\n};\nexports.default = Tokenizer;","'use strict';\n\nexports.__esModule = true;\nexports.tokenize = exports.test = exports.scanner = exports.parser = exports.options = exports.inherits = exports.find = undefined;\nvar _class = require('./linkify/utils/class');\nvar _options = require('./linkify/utils/options');\nvar options = _interopRequireWildcard(_options);\nvar _scanner = require('./linkify/core/scanner');\nvar scanner = _interopRequireWildcard(_scanner);\nvar _parser = require('./linkify/core/parser');\nvar parser = _interopRequireWildcard(_parser);\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n newObj.default = obj;\n return newObj;\n }\n}\nif (!Array.isArray) {\n Array.isArray = function (arg) {\n return Object.prototype.toString.call(arg) === '[object Array]';\n };\n}\n\n/**\n\tConverts a string into tokens that represent linkable and non-linkable bits\n\t@method tokenize\n\t@param {String} str\n\t@return {Array} tokens\n*/\nvar tokenize = function tokenize(str) {\n return parser.run(scanner.run(str));\n};\n\n/**\n\tReturns a list of linkable items in the given string.\n*/\nvar find = function find(str) {\n var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var tokens = tokenize(str);\n var filtered = [];\n for (var i = 0; i < tokens.length; i++) {\n var token = tokens[i];\n if (token.isLink && (!type || token.type === type)) {\n filtered.push(token.toObject());\n }\n }\n return filtered;\n};\n\n/**\n\tIs the given string valid linkable text of some sort\n\tNote that this does not trim the text for you.\n\n\tOptionally pass in a second `type` param, which is the type of link to test\n\tfor.\n\n\tFor example,\n\n\t\ttest(str, 'email');\n\n\tWill return `true` if str is a valid email.\n*/\nvar test = function test(str) {\n var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var tokens = tokenize(str);\n return tokens.length === 1 && tokens[0].isLink && (!type || tokens[0].type === type);\n};\n\n// Scanner and parser provide states and tokens for the lexicographic stage\n// (will be used to add additional link types)\nexports.find = find;\nexports.inherits = _class.inherits;\nexports.options = options;\nexports.parser = parser;\nexports.scanner = scanner;\nexports.test = test;\nexports.tokenize = tokenize;","'use strict';\n\nexports.__esModule = true;\nexports.stateify = exports.TokenState = exports.CharacterState = undefined;\nvar _class = require('../utils/class');\nfunction createStateClass() {\n return function (tClass) {\n this.j = [];\n this.T = tClass || null;\n };\n}\n\n/**\n\tA simple state machine that can emit token classes\n\n\tThe `j` property in this class refers to state jumps. It's a\n\tmultidimensional array where for each element:\n\n\t* index [0] is a symbol or class of symbols to transition to.\n\t* index [1] is a State instance which matches\n\n\tThe type of symbol will depend on the target implementation for this class.\n\tIn Linkify, we have a two-stage scanner. Each stage uses this state machine\n\tbut with a slighly different (polymorphic) implementation.\n\n\tThe `T` property refers to the token class.\n\n\tTODO: Can the `on` and `next` methods be combined?\n\n\t@class BaseState\n*/\nvar BaseState = createStateClass();\nBaseState.prototype = {\n defaultTransition: false,\n /**\n \t@method constructor\n \t@param {Class} tClass Pass in the kind of token to emit if there are\n \t\tno jumps after this state and the state is accepting.\n */\n\n /**\n \tOn the given symbol(s), this machine should go to the given state\n \t\t@method on\n \t@param {Array|Mixed} symbol\n \t@param {BaseState} state Note that the type of this state should be the\n \t\tsame as the current instance (i.e., don't pass in a different\n \t\tsubclass)\n */\n on: function on(symbol, state) {\n if (symbol instanceof Array) {\n for (var i = 0; i < symbol.length; i++) {\n this.j.push([symbol[i], state]);\n }\n return this;\n }\n this.j.push([symbol, state]);\n return this;\n },\n /**\n \tGiven the next item, returns next state for that item\n \t@method next\n \t@param {Mixed} item Should be an instance of the symbols handled by\n \t\tthis particular machine.\n \t@return {State} state Returns false if no jumps are available\n */\n next: function next(item) {\n for (var i = 0; i < this.j.length; i++) {\n var jump = this.j[i];\n var symbol = jump[0]; // Next item to check for\n var state = jump[1]; // State to jump to if items match\n\n // compare item with symbol\n if (this.test(item, symbol)) {\n return state;\n }\n }\n\n // Nowhere left to jump!\n return this.defaultTransition;\n },\n /**\n \tDoes this state accept?\n \t`true` only of `this.T` exists\n \t\t@method accepts\n \t@return {Boolean}\n */\n accepts: function accepts() {\n return !!this.T;\n },\n /**\n \tDetermine whether a given item \"symbolizes\" the symbol, where symbol is\n \ta class of items handled by this state machine.\n \t\tThis method should be overriden in extended classes.\n \t\t@method test\n \t@param {Mixed} item Does this item match the given symbol?\n \t@param {Mixed} symbol\n \t@return {Boolean}\n */\n test: function test(item, symbol) {\n return item === symbol;\n },\n /**\n \tEmit the token for this State (just return it in this case)\n \tIf this emits a token, this instance is an accepting state\n \t@method emit\n \t@return {Class} T\n */\n emit: function emit() {\n return this.T;\n }\n};\n\n/**\n\tState machine for string-based input\n\n\t@class CharacterState\n\t@extends BaseState\n*/\nvar CharacterState = (0, _class.inherits)(BaseState, createStateClass(), {\n /**\n \tDoes the given character match the given character or regular\n \texpression?\n \t\t@method test\n \t@param {String} char\n \t@param {String|RegExp} charOrRegExp\n \t@return {Boolean}\n */\n test: function test(character, charOrRegExp) {\n return character === charOrRegExp || charOrRegExp instanceof RegExp && charOrRegExp.test(character);\n }\n});\n\n/**\n\tState machine for input in the form of TextTokens\n\n\t@class TokenState\n\t@extends BaseState\n*/\nvar TokenState = (0, _class.inherits)(BaseState, createStateClass(), {\n /**\n * Similar to `on`, but returns the state the results in the transition from\n * the given item\n * @method jump\n * @param {Mixed} item\n * @param {Token} [token]\n * @return state\n */\n jump: function jump(token) {\n var tClass = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n var state = this.next(new token('')); // dummy temp token\n if (state === this.defaultTransition) {\n // Make a new state!\n state = new this.constructor(tClass);\n this.on(token, state);\n } else if (tClass) {\n state.T = tClass;\n }\n return state;\n },\n /**\n \tIs the given token an instance of the given token class?\n \t\t@method test\n \t@param {TextToken} token\n \t@param {Class} tokenClass\n \t@return {Boolean}\n */\n test: function test(token, tokenClass) {\n return token instanceof tokenClass;\n }\n});\n\n/**\n\tGiven a non-empty target string, generates states (if required) for each\n\tconsecutive substring of characters in str starting from the beginning of\n\tthe string. The final state will have a special value, as specified in\n\toptions. All other \"in between\" substrings will have a default end state.\n\n\tThis turns the state machine into a Trie-like data structure (rather than a\n\tintelligently-designed DFA).\n\n\tNote that I haven't really tried these with any strings other than\n\tDOMAIN.\n\n\t@param {String} str\n\t@param {CharacterState} start State to jump from the first character\n\t@param {Class} endToken Token class to emit when the given string has been\n\t\tmatched and no more jumps exist.\n\t@param {Class} defaultToken \"Filler token\", or which token type to emit when\n\t\twe don't have a full match\n\t@return {Array} list of newly-created states\n*/\nfunction stateify(str, start, endToken, defaultToken) {\n var i = 0,\n len = str.length,\n state = start,\n newStates = [],\n nextState = void 0;\n\n // Find the next state without a jump to the next character\n while (i < len && (nextState = state.next(str[i]))) {\n state = nextState;\n i++;\n }\n if (i >= len) {\n return [];\n } // no new tokens were added\n\n while (i < len - 1) {\n nextState = new CharacterState(defaultToken);\n newStates.push(nextState);\n state.on(str[i], nextState);\n state = nextState;\n i++;\n }\n nextState = new CharacterState(endToken);\n newStates.push(nextState);\n state.on(str[len - 1], nextState);\n return newStates;\n}\nexports.CharacterState = CharacterState;\nexports.TokenState = TokenState;\nexports.stateify = stateify;","\"use strict\";\n\nexports.__esModule = true;\nfunction createTokenClass() {\n return function (value) {\n if (value) {\n this.v = value;\n }\n };\n}\nexports.createTokenClass = createTokenClass;","module.exports = require('./lib/linkify-react').default;","\"use strict\";\n\nvar __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function () {\n return m[k];\n }\n });\n} : function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar __setModuleDefault = this && this.__setModuleDefault || (Object.create ? function (o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function (o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = this && this.__importStar || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __importDefault = this && this.__importDefault || function (mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n};\nexports.__esModule = true;\nvar React = __importStar(require(\"react\"));\nvar react_1 = __importDefault(require(\"linkifyjs/react\"));\nfunction splitMessage(message) {\n var breakIndex = message.indexOf('\\n');\n // consider that there can be line without a break\n if (breakIndex === -1) {\n return message;\n }\n return message.substr(0, breakIndex);\n}\nfunction ErrorPanel(_a) {\n var error = _a.error;\n /* This checks for error logTypes and shortens the message in the console by wrapping\n it a tag and putting the first line in a tag and the other lines\n follow after that. This creates a nice collapsible error message */\n var otherErrorLines;\n var firstLine = splitMessage(error);\n var msgArray = error.split('\\n');\n if (msgArray.length > 1) {\n otherErrorLines = msgArray.slice(1);\n }\n if (!otherErrorLines) {\n return React.createElement(react_1[\"default\"], null, error);\n }\n return React.createElement(\"details\", null, React.createElement(\"summary\", {\n style: {\n outline: 'none',\n cursor: 'pointer'\n }\n }, firstLine), React.createElement(react_1[\"default\"], null, otherErrorLines.join('\\n\\r')));\n}\nexports[\"default\"] = ErrorPanel;","\"use strict\";\n\nvar __importDefault = this && this.__importDefault || function (mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n};\nexports.__esModule = true;\nvar reducer_1 = __importDefault(require(\"./reducer\"));\nvar state_1 = require(\"./state\");\nfunction dispatch(action) {\n state_1.update(reducer_1[\"default\"](state_1.state, action));\n}\nexports[\"default\"] = dispatch;","\"use strict\";\n\nexports.__esModule = true;\nexports.timeEnd = exports.timeStart = exports.count = void 0;\nfunction count(name) {\n return {\n type: 'COUNT',\n name: name\n };\n}\nexports.count = count;\nfunction timeStart(name) {\n return {\n type: 'TIME_START',\n name: name\n };\n}\nexports.timeStart = timeStart;\nfunction timeEnd(name) {\n return {\n type: 'TIME_END',\n name: name\n };\n}\nexports.timeEnd = timeEnd;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n};\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\nvar _react = require('react');\nvar _react2 = _interopRequireDefault(_react);\nvar _reactDom = require('react-dom');\nvar _reactDom2 = _interopRequireDefault(_reactDom);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\nvar globalId = 0;\nvar HubspotForm = function (_React$Component) {\n _inherits(HubspotForm, _React$Component);\n function HubspotForm(props) {\n _classCallCheck(this, HubspotForm);\n var _this = _possibleConstructorReturn(this, (HubspotForm.__proto__ || Object.getPrototypeOf(HubspotForm)).call(this, props));\n _this.state = {\n loaded: false\n };\n _this.id = globalId++;\n _this.createForm = _this.createForm.bind(_this);\n _this.findFormElement = _this.findFormElement.bind(_this);\n return _this;\n }\n _createClass(HubspotForm, [{\n key: 'createForm',\n value: function createForm() {\n var _this2 = this;\n if (window.hbspt) {\n // protect against component unmounting before window.hbspt is available\n if (this.el === null) {\n return;\n }\n var props = _extends({}, this.props);\n delete props.loading;\n delete props.onSubmit;\n delete props.onReady;\n var options = _extends({}, props, {\n target: '#' + this.el.getAttribute('id'),\n onFormSubmit: function onFormSubmit($form) {\n // ref: https://developers.hubspot.com/docs/methods/forms/advanced_form_options\n var formData = $form.serializeArray();\n _this2.props.onSubmit(formData);\n }\n });\n window.hbspt.forms.create(options);\n return true;\n } else {\n setTimeout(this.createForm, 1);\n }\n }\n }, {\n key: 'loadScript',\n value: function loadScript() {\n var _this3 = this;\n var script = document.createElement('script');\n script.defer = true;\n script.onload = function () {\n _this3.createForm();\n _this3.findFormElement();\n };\n script.src = '//js.hsforms.net/forms/v2.js';\n document.head.appendChild(script);\n }\n }, {\n key: 'findFormElement',\n value: function findFormElement() {\n // protect against component unmounting before form is added\n if (this.el === null) {\n return;\n }\n var form = this.el.querySelector('iframe');\n if (form) {\n this.setState({\n loaded: true\n });\n if (this.props.onReady) {\n this.props.onReady(form);\n }\n } else {\n setTimeout(this.findFormElement, 1);\n }\n }\n }, {\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (!window.hbspt && !this.props.noScript) {\n this.loadScript();\n } else {\n this.createForm();\n this.findFormElement();\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {}\n }, {\n key: 'render',\n value: function render() {\n var _this4 = this;\n return _react2.default.createElement('div', null, _react2.default.createElement('div', {\n ref: function ref(el) {\n return _this4.el = el;\n },\n id: 'reactHubspotForm' + this.id,\n style: {\n display: this.state.loaded ? 'block' : 'none'\n }\n }), !this.state.loaded && this.props.loading);\n }\n }]);\n return HubspotForm;\n}(_react2.default.Component);\nexports.default = HubspotForm;\nmodule.exports = exports['default'];","!function (e, t) {\n \"object\" == typeof exports && \"object\" == typeof module ? module.exports = t(require(\"react\")) : \"function\" == typeof define && define.amd ? define([\"react\"], t) : \"object\" == typeof exports ? exports[\"embed-react\"] = t(require(\"react\")) : e[\"embed-react\"] = t(e.react);\n}(this, function (e) {\n return function () {\n var t = {\n 378: function (e) {\n \"use strict\";\n\n e.exports = function e(t, n) {\n if (t === n) return !0;\n if (t && n && \"object\" == typeof t && \"object\" == typeof n) {\n if (t.constructor !== n.constructor) return !1;\n var o, r, i;\n if (Array.isArray(t)) {\n if ((o = t.length) != n.length) return !1;\n for (r = o; 0 != r--;) if (!e(t[r], n[r])) return !1;\n return !0;\n }\n if (t.constructor === RegExp) return t.source === n.source && t.flags === n.flags;\n if (t.valueOf !== Object.prototype.valueOf) return t.valueOf() === n.valueOf();\n if (t.toString !== Object.prototype.toString) return t.toString() === n.toString();\n if ((o = (i = Object.keys(t)).length) !== Object.keys(n).length) return !1;\n for (r = o; 0 != r--;) if (!Object.prototype.hasOwnProperty.call(n, i[r])) return !1;\n for (r = o; 0 != r--;) {\n var a = i[r];\n if (!e(t[a], n[a])) return !1;\n }\n return !0;\n }\n return t != t && n != n;\n };\n },\n 145: function (e, t, n) {\n \"use strict\";\n\n n.r(t), t.default = \"@keyframes spin{to{transform:rotate(360deg)}}.tf-v1-popover{bottom:96px;position:fixed;right:16px;z-index:10001}.tf-v1-popover.open{max-width:100%;min-height:360px;min-width:360px}.tf-v1-popover-wrapper{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;opacity:0;transition:opacity 0.25s ease-in-out;border-radius:4px;box-shadow:rgba(0,0,0,0.08) 0 2px 4px,rgba(0,0,0,0.06) 0 2px 12px}.tf-v1-popover-wrapper iframe{width:100%;height:100%;border:none;overflow:hidden;border-radius:8px}.tf-v1-popover-close{display:none}.tf-v1-popover-button{width:54px;height:54px;position:fixed;box-shadow:0 2px 12px rgba(0,0,0,0.06),0 2px 4px rgba(0,0,0,0.08);color:white;right:26px;bottom:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;background:#3a7685;line-height:0;border:none;padding:0}.tf-v1-popover-button-icon{width:54px;height:54px;font-size:24px;border-radius:50%;overflow:hidden;display:flex;justify-content:center;align-items:center}.tf-v1-popover-button-icon svg.default{margin-top:6px}.tf-v1-popover-button-icon svg,.tf-v1-popover-button-icon img{max-width:54px;max-height:54px}.tf-v1-popover-button-icon img{width:100%;height:100%;object-fit:cover;border-radius:50%}.tf-v1-popover-tooltip{position:fixed;right:94px;bottom:33px;max-width:240px;padding:10px 25px 10px 10px;border-radius:8px;background:#ffffff;box-shadow:0 2px 4px rgba(0,0,0,0.08),0 2px 12px rgba(0,0,0,0.06);font-size:14px;font-family:Helvetica, Arial, sans-serif;line-height:22px}.tf-v1-popover-tooltip::before{background-color:#ffffff;content:'';display:block;width:12px;height:12px;position:absolute;right:-4px;bottom:15px;transform:rotate(45deg);box-shadow:2px -2px 2px 0 rgba(0,0,0,0.06)}.tf-v1-popover-tooltip-text{overflow:hidden}.tf-v1-popover-tooltip-close{color:rgba(0,0,0,0.2);cursor:pointer;margin-left:4px;display:inline-block;width:20px;height:20px;font-size:18px;text-align:center;position:absolute;top:8px;right:6px}.tf-v1-popover-tooltip-close:hover{color:rgba(0,0,0,0.3)}.tf-v1-popover-tooltip.closing{transition:opacity 0.25s ease-in-out;opacity:0}.tf-v1-popover-unread-dot{width:8px;height:8px;border-radius:50%;background-color:#fa6b05;border:2px solid #fff;position:absolute;top:2px;right:2px}.tf-v1-popover-unread-dot.closing{transition:opacity 0.25s ease-in-out;opacity:0}.tf-v1-spinner{border:3px solid #aaa;font-size:40px;width:1em;height:1em;border-radius:0.5em;box-sizing:border-box;animation:spin 1s linear infinite;border-top-color:#fff;position:absolute;top:50%;left:50%;margin:-20px 0 0 -20px}@media (max-width: 480px){.tf-v1-popover.open{top:0;left:0;bottom:0;right:0;width:100% !important;height:100% !important;width:100vw !important;height:100vh !important;max-height:stretch}.tf-v1-popover.open .tf-v1-popover-close{display:block}.tf-v1-popover-wrapper{border-radius:0;box-shadow:none}.tf-v1-popover-wrapper iframe{border-radius:0}.tf-v1-popover-close{position:absolute;font-size:32px;line-height:24px;width:24px;height:24px;text-align:center;cursor:pointer;opacity:0.75;transition:opacity 0.25s ease-in-out;text-decoration:none;color:#000;top:0.5rem;right:0.5rem;z-index:1;opacity:0}.tf-v1-popover-close:hover{opacity:1}}@media (max-width: 480px) and (min-width: 481px){.tf-v1-popover-close{color:#fff !important}}@media (max-width: 480px){.tf-v1-popover-button{width:44px;height:44px;right:8px;bottom:8px}.tf-v1-popover-button-icon{font-size:20px}.tf-v1-popover-button-icon svg{margin-top:4px;max-height:24px;max-width:24px}.tf-v1-popover-button-icon img{max-width:44px;max-height:44px}.tf-v1-popover-tooltip{position:fixed;right:66px;bottom:8px;left:auto;font-size:12px}.tf-v1-popover-tooltip::before{bottom:14px}.tf-v1-popover-unread-dot{top:0;right:0}.tf-v1-spinner{border:3px solid #aaa;font-size:32px;width:1em;height:1em;border-radius:0.5em;box-sizing:border-box;animation:spin 1s linear infinite;border-top-color:#fff;position:absolute;top:50%;left:50%;margin:-16px 0 0 -16px}}\\n\";\n },\n 792: function (e, t, n) {\n \"use strict\";\n\n n.r(t), t.default = \"@keyframes spin{to{transform:rotate(360deg)}}.tf-v1-popup{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.75);transition:opacity 0.25s ease-in-out;z-index:10001;display:flex;align-items:center;justify-content:center}.tf-v1-popup .tf-v1-iframe-wrapper{position:relative;transition:opacity 0.25s ease-in-out;min-width:360px;min-height:360px}.tf-v1-popup .tf-v1-iframe-wrapper iframe{width:100%;height:100%;border:none;overflow:hidden;border-radius:8px}.tf-v1-popup .tf-v1-close{position:absolute;font-size:32px;line-height:24px;width:24px;height:24px;text-align:center;cursor:pointer;opacity:0.75;transition:opacity 0.25s ease-in-out;text-decoration:none;color:#000;top:-34px;right:0}.tf-v1-popup .tf-v1-close:hover{opacity:1}@media (min-width: 481px){.tf-v1-popup .tf-v1-close{color:#fff !important}}.tf-v1-popup .tf-v1-spinner{border:3px solid #aaa;font-size:40px;width:1em;height:1em;border-radius:0.5em;box-sizing:border-box;animation:spin 1s linear infinite;border-top-color:#fff;position:absolute;top:50%;left:50%;margin:-20px 0 0 -20px}@media (max-width: 480px){.tf-v1-popup{width:100% !important;height:100% !important;width:100vw !important;height:100vh !important;max-height:stretch}.tf-v1-popup .tf-v1-iframe-wrapper{position:relative;transition:opacity 0.25s ease-in-out;min-width:100%;min-height:100%}.tf-v1-popup .tf-v1-iframe-wrapper iframe{border-radius:0}.tf-v1-popup .tf-v1-close{position:absolute;font-size:32px;line-height:24px;width:24px;height:24px;text-align:center;cursor:pointer;opacity:0.75;transition:opacity 0.25s ease-in-out;text-decoration:none;color:#000;top:6px;right:8px}.tf-v1-popup .tf-v1-close:hover{opacity:1}}@media (max-width: 480px) and (min-width: 481px){.tf-v1-popup .tf-v1-close{color:#fff !important}}\\n\";\n },\n 838: function (e, t, n) {\n \"use strict\";\n\n n.r(t), t.default = \"@keyframes spin{to{transform:rotate(360deg)}}.tf-v1-sidetab{position:fixed;top:50%;right:0;width:400px;height:580px;transform:translate(100%, -50%);box-shadow:0 2px 4px rgba(0,0,0,0.08),0 2px 12px rgba(0,0,0,0.06);z-index:10001;will-change:transform}.tf-v1-sidetab.ready{transition:transform 250ms ease-in-out}.tf-v1-sidetab iframe{width:100%;height:100%;border:none;overflow:hidden;border-radius:8px 0 0 8px}.tf-v1-sidetab.open{transform:translate(0, -50%)}.tf-v1-sidetab-wrapper{position:relative;height:100%}.tf-v1-sidetab-button{position:absolute;top:50%;left:-48px;transform:rotate(-90deg) translateX(-50%);transform-origin:left top;min-width:100px;max-width:540px;height:48px;display:flex;align-items:center;padding:12px 16px;border-radius:8px 8px 0 0;color:white;box-shadow:0 2px 4px rgba(0,0,0,0.08),0 2px 12px rgba(0,0,0,0.06);background-color:#3a7685;cursor:pointer;border:0;text-decoration:none;outline:none}.tf-v1-sidetab-button-text{flex:1;font-size:18px;font-family:Helvetica, Arial, sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tf-v1-sidetab-button-icon{width:24px;height:24px;font-size:24px;transform:rotate(90deg);margin-right:12px;position:relative;order:-1}.tf-v1-sidetab-button-icon>img{width:100%;height:100%;object-fit:contain}.tf-v1-sidetab-close{display:none}.tf-v1-sidetab .tf-v1-spinner{border:3px solid #aaa;font-size:24px;width:1em;height:1em;border-radius:0.5em;box-sizing:border-box;animation:spin 1s linear infinite;border-top-color:#fff;position:absolute;top:50%;left:50%;margin:-12px 0 0 -12px;top:0;left:0;margin:0}@media (max-width: 480px){.tf-v1-sidetab{transition:unset}.tf-v1-sidetab.ready{transition:unset}.tf-v1-sidetab.open{top:0;left:0;right:0;bottom:0;transform:translate(0, 0);width:100% !important;height:100% !important;width:100vw !important;height:100vh !important;max-height:stretch}.tf-v1-sidetab-close{position:absolute;font-size:32px;line-height:24px;width:24px;height:24px;text-align:center;cursor:pointer;opacity:0.75;transition:opacity 0.25s ease-in-out;text-decoration:none;color:#000;display:block;top:6px;right:8px;z-index:1}.tf-v1-sidetab-close:hover{opacity:1}}@media (max-width: 480px) and (min-width: 481px){.tf-v1-sidetab-close{color:#fff !important}}\\n\";\n },\n 630: function (e, t, n) {\n \"use strict\";\n\n n.r(t), t.default = \"@keyframes spin{to{transform:rotate(360deg)}}.tf-v1-slider{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.75);transition:opacity 0.25s ease-in-out;z-index:10001}.tf-v1-slider .tf-v1-iframe-wrapper{height:100%;position:absolute;top:0;transition:right 0.5s ease-in-out, left 0.5s ease-in-out}.tf-v1-slider .tf-v1-iframe-wrapper iframe{width:100%;height:100%;border:none;overflow:hidden}@media (min-width: 481px){.tf-v1-slider .tf-v1-iframe-wrapper iframe{border-radius:8px 0 0 8px}}.tf-v1-slider .tf-v1-close{position:absolute;font-size:32px;line-height:24px;width:24px;height:24px;text-align:center;cursor:pointer;opacity:0.75;transition:opacity 0.25s ease-in-out;text-decoration:none;color:#000}.tf-v1-slider .tf-v1-close:hover{opacity:1}@media (min-width: 481px){.tf-v1-slider .tf-v1-close{color:#fff !important}}@media (min-width: 481px){.tf-v1-slider .tf-v1-close{top:4px;left:-24px}}.tf-v1-slider .tf-v1-close:hover{opacity:1}.tf-v1-slider .tf-v1-spinner{border:3px solid #aaa;font-size:40px;width:1em;height:1em;border-radius:0.5em;box-sizing:border-box;animation:spin 1s linear infinite;border-top-color:#fff;position:absolute;top:50%;left:50%;margin:-20px 0 0 -20px}@media (min-width: 481px){.tf-v1-slider.left .tf-v1-iframe-wrapper iframe{border-radius:0 8px 8px 0}.tf-v1-slider.left .tf-v1-close{left:auto;right:-24px}}@media (max-width: 480px){.tf-v1-slider{width:100% !important;height:100% !important;width:100vw !important;height:100vh !important;max-height:stretch}.tf-v1-slider .tf-v1-iframe-wrapper{width:100% !important;height:100%;transition:unset}.tf-v1-slider .tf-v1-iframe-wrapper iframe{border-radius:none}.tf-v1-slider .tf-v1-close{position:absolute;font-size:32px;line-height:24px;width:24px;height:24px;text-align:center;cursor:pointer;opacity:0.75;transition:opacity 0.25s ease-in-out;text-decoration:none;color:#000;top:6px;right:8px;left:auto}.tf-v1-slider .tf-v1-close:hover{opacity:1}}@media (max-width: 480px) and (min-width: 481px){.tf-v1-slider .tf-v1-close{color:#fff !important}}\\n\";\n },\n 684: function (e, t, n) {\n \"use strict\";\n\n n.r(t), t.default = \".tf-v1-widget{width:100%;height:100%;position:relative}.tf-v1-widget iframe{width:100%;height:100%;border:none;overflow:hidden;border-radius:8px}.tf-v1-widget-close{display:none}.tf-v1-widget-iframe-overlay{width:100%;height:100%;border:none;overflow:hidden;border-radius:8px;position:absolute;top:0;left:0}.tf-v1-widget-fullscreen{position:fixed;top:0;left:0;right:0;bottom:0;z-index:10001;width:100% !important;height:100% !important;width:100vw !important;height:100vh !important;max-height:stretch}.tf-v1-widget-fullscreen .tf-v1-widget-close{display:block;position:absolute;font-size:32px;line-height:24px;width:24px;height:24px;text-align:center;cursor:pointer;opacity:0.75;transition:opacity 0.25s ease-in-out;text-decoration:none;color:#000;top:4px;right:6px;z-index:1}.tf-v1-widget-fullscreen .tf-v1-widget-close:hover{opacity:1}@media (min-width: 481px){.tf-v1-widget-fullscreen .tf-v1-widget-close{color:#fff !important}}.tf-v1-widget-fullscreen iframe{border-radius:0}\\n\";\n },\n 281: function (e, t, n) {\n \"use strict\";\n\n var o = this && this.__createBinding || (Object.create ? function (e, t, n, o) {\n void 0 === o && (o = n), Object.defineProperty(e, o, {\n enumerable: !0,\n get: function () {\n return t[n];\n }\n });\n } : function (e, t, n, o) {\n void 0 === o && (o = n), e[o] = t[n];\n }),\n r = this && this.__exportStar || function (e, t) {\n for (var n in e) \"default\" === n || Object.prototype.hasOwnProperty.call(t, n) || o(t, e, n);\n };\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), r(n(11), t), r(n(739), t), r(n(860), t);\n },\n 794: function (e, t, n) {\n \"use strict\";\n\n var o = this && this.__assign || function () {\n return (o = Object.assign || function (e) {\n for (var t, n = 1, o = arguments.length; n < o; n++) for (var r in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);\n return e;\n }).apply(this, arguments);\n },\n r = this && this.__importDefault || function (e) {\n return e && e.__esModule ? e : {\n default: e\n };\n };\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.InlineStyle = void 0;\n var i = r(n(297)),\n a = r(n(52));\n t.InlineStyle = function (e) {\n var t = e.filename,\n r = n(367)(\"./\" + t + \".css\"),\n s = a.default();\n return i.default.createElement(\"style\", o({}, s ? {\n nonce: s\n } : {}), r.default);\n };\n },\n 11: function (e, t, n) {\n \"use strict\";\n\n var o = this && this.__assign || function () {\n return (o = Object.assign || function (e) {\n for (var t, n = 1, o = arguments.length; n < o; n++) for (var r in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);\n return e;\n }).apply(this, arguments);\n },\n r = this && this.__createBinding || (Object.create ? function (e, t, n, o) {\n void 0 === o && (o = n), Object.defineProperty(e, o, {\n enumerable: !0,\n get: function () {\n return t[n];\n }\n });\n } : function (e, t, n, o) {\n void 0 === o && (o = n), e[o] = t[n];\n }),\n i = this && this.__setModuleDefault || (Object.create ? function (e, t) {\n Object.defineProperty(e, \"default\", {\n enumerable: !0,\n value: t\n });\n } : function (e, t) {\n e.default = t;\n }),\n a = this && this.__importStar || function (e) {\n if (e && e.__esModule) return e;\n var t = {};\n if (null != e) for (var n in e) \"default\" !== n && Object.prototype.hasOwnProperty.call(e, n) && r(t, e, n);\n return i(t, e), t;\n },\n s = this && this.__rest || function (e, t) {\n var n = {};\n for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);\n if (null != e && \"function\" == typeof Object.getOwnPropertySymbols) {\n var r = 0;\n for (o = Object.getOwnPropertySymbols(e); r < o.length; r++) t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);\n }\n return n;\n };\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.makeButtonComponent = void 0;\n var u = a(n(297)),\n c = n(794),\n d = {\n unmount: function () {},\n open: function () {}\n };\n t.makeButtonComponent = function (e, t) {\n return function (n) {\n var r = n.id,\n i = n.children,\n a = n.as,\n l = void 0 === a ? \"button\" : a,\n p = n.style,\n f = void 0 === p ? {} : p,\n v = n.className,\n m = void 0 === v ? \"\" : v,\n h = n.buttonProps,\n b = s(n, [\"id\", \"children\", \"as\", \"style\", \"className\", \"buttonProps\"]),\n g = u.useRef(d);\n u.useEffect(function () {\n return g.current = e(r, b), function () {\n return g.current.unmount();\n };\n }, [r, b]);\n var y = u.useMemo(function () {\n return function () {\n return g.current.open();\n };\n }, []),\n w = u.default.createElement(l, o({\n style: f,\n className: m,\n onClick: y,\n \"data-testid\": \"tf-v1-\" + t,\n children: i\n }, h));\n return u.default.createElement(u.default.Fragment, null, u.default.createElement(c.InlineStyle, {\n filename: t\n }), w);\n };\n };\n },\n 739: function (e, t, n) {\n \"use strict\";\n\n var o = this && this.__createBinding || (Object.create ? function (e, t, n, o) {\n void 0 === o && (o = n), Object.defineProperty(e, o, {\n enumerable: !0,\n get: function () {\n return t[n];\n }\n });\n } : function (e, t, n, o) {\n void 0 === o && (o = n), e[o] = t[n];\n }),\n r = this && this.__setModuleDefault || (Object.create ? function (e, t) {\n Object.defineProperty(e, \"default\", {\n enumerable: !0,\n value: t\n });\n } : function (e, t) {\n e.default = t;\n }),\n i = this && this.__importStar || function (e) {\n if (e && e.__esModule) return e;\n var t = {};\n if (null != e) for (var n in e) \"default\" !== n && Object.prototype.hasOwnProperty.call(e, n) && o(t, e, n);\n return r(t, e), t;\n },\n a = this && this.__rest || function (e, t) {\n var n = {};\n for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);\n if (null != e && \"function\" == typeof Object.getOwnPropertySymbols) {\n var r = 0;\n for (o = Object.getOwnPropertySymbols(e); r < o.length; r++) t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);\n }\n return n;\n };\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.makeInitializerComponent = void 0;\n var s = i(n(297)),\n u = n(794);\n t.makeInitializerComponent = function (e, t) {\n return function (n) {\n var o = n.id,\n r = a(n, [\"id\"]);\n return s.useEffect(function () {\n var t = e(o, r);\n return function () {\n t.unmount();\n };\n }, [o, r]), s.default.createElement(u.InlineStyle, {\n filename: t\n });\n };\n };\n },\n 860: function (e, t, n) {\n \"use strict\";\n\n var o = this && this.__assign || function () {\n return (o = Object.assign || function (e) {\n for (var t, n = 1, o = arguments.length; n < o; n++) for (var r in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);\n return e;\n }).apply(this, arguments);\n },\n r = this && this.__createBinding || (Object.create ? function (e, t, n, o) {\n void 0 === o && (o = n), Object.defineProperty(e, o, {\n enumerable: !0,\n get: function () {\n return t[n];\n }\n });\n } : function (e, t, n, o) {\n void 0 === o && (o = n), e[o] = t[n];\n }),\n i = this && this.__setModuleDefault || (Object.create ? function (e, t) {\n Object.defineProperty(e, \"default\", {\n enumerable: !0,\n value: t\n });\n } : function (e, t) {\n e.default = t;\n }),\n a = this && this.__importStar || function (e) {\n if (e && e.__esModule) return e;\n var t = {};\n if (null != e) for (var n in e) \"default\" !== n && Object.prototype.hasOwnProperty.call(e, n) && r(t, e, n);\n return i(t, e), t;\n },\n s = this && this.__rest || function (e, t) {\n var n = {};\n for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);\n if (null != e && \"function\" == typeof Object.getOwnPropertySymbols) {\n var r = 0;\n for (o = Object.getOwnPropertySymbols(e); r < o.length; r++) t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);\n }\n return n;\n };\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.Widget = void 0;\n var u = a(n(297)),\n c = n(611),\n d = n(794);\n t.Widget = function (e) {\n var t = e.id,\n n = e.style,\n r = void 0 === n ? {} : n,\n i = e.className,\n a = void 0 === i ? \"\" : i,\n l = s(e, [\"id\", \"style\", \"className\"]),\n p = u.useRef(null);\n return u.useEffect(function () {\n if (p.current) {\n var e = c.createWidget(t, o(o({}, l), {\n container: p.current\n }));\n return function () {\n e.unmount();\n };\n }\n }, [t, l]), u.default.createElement(u.default.Fragment, null, u.default.createElement(d.InlineStyle, {\n filename: \"widget\"\n }), u.default.createElement(\"div\", {\n style: r,\n className: a,\n ref: p\n }));\n };\n },\n 582: function (e, t, n) {\n \"use strict\";\n\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.Sidetab = t.Popover = t.SliderButton = t.PopupButton = t.Widget = void 0;\n var o = n(611),\n r = n(281),\n i = n(797),\n a = i.memoComponent(r.Widget);\n t.Widget = a;\n var s = i.memoComponent(r.makeButtonComponent(o.createPopup, \"popup\"));\n t.PopupButton = s;\n var u = i.memoComponent(r.makeButtonComponent(o.createSlider, \"slider\"));\n t.SliderButton = u;\n var c = i.memoComponent(r.makeInitializerComponent(o.createPopover, \"popover\"));\n t.Popover = c;\n var d = i.memoComponent(r.makeInitializerComponent(o.createSidetab, \"sidetab\"));\n t.Sidetab = d;\n },\n 797: function (e, t, n) {\n \"use strict\";\n\n var o = this && this.__createBinding || (Object.create ? function (e, t, n, o) {\n void 0 === o && (o = n), Object.defineProperty(e, o, {\n enumerable: !0,\n get: function () {\n return t[n];\n }\n });\n } : function (e, t, n, o) {\n void 0 === o && (o = n), e[o] = t[n];\n }),\n r = this && this.__exportStar || function (e, t) {\n for (var n in e) \"default\" === n || Object.prototype.hasOwnProperty.call(t, n) || o(t, e, n);\n };\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), r(n(553), t);\n },\n 553: function (e, t, n) {\n \"use strict\";\n\n var o = this && this.__importDefault || function (e) {\n return e && e.__esModule ? e : {\n default: e\n };\n };\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.memoComponent = t.propsAreEqual = void 0;\n var r = n(297),\n i = o(n(378));\n t.propsAreEqual = function (e, t) {\n return i.default(e, t);\n }, t.memoComponent = function (e) {\n return r.memo(e, t.propsAreEqual);\n };\n },\n 52: function (e, t, n) {\n \"use strict\";\n\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.default = function () {\n return void 0 !== n.g.__webpack_nonce__ ? n.g.__webpack_nonce__ : null;\n };\n },\n 367: function (e, t, n) {\n var o = {\n \"./popover.css\": 145,\n \"./popup.css\": 792,\n \"./sidetab.css\": 838,\n \"./slider.css\": 630,\n \"./widget.css\": 684\n };\n function r(e) {\n var t = i(e);\n return n(t);\n }\n function i(e) {\n if (!n.o(o, e)) {\n var t = new Error(\"Cannot find module '\" + e + \"'\");\n throw t.code = \"MODULE_NOT_FOUND\", t;\n }\n return o[e];\n }\n r.keys = function () {\n return Object.keys(o);\n }, r.resolve = i, e.exports = r, r.id = 367;\n },\n 611: function (e) {\n e.exports = function () {\n \"use strict\";\n\n var e = {\n 27: function (e, t) {\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.FORM_BASE_URL = t.POPUP_SIZE = t.SLIDER_WIDTH = t.SLIDER_POSITION = t.SIDETAB_ATTRIBUTE = t.WIDGET_ATTRIBUTE = t.SLIDER_ATTRIBUTE = t.POPUP_ATTRIBUTE = t.POPOVER_ATTRIBUTE = void 0, t.POPOVER_ATTRIBUTE = \"data-tf-popover\", t.POPUP_ATTRIBUTE = \"data-tf-popup\", t.SLIDER_ATTRIBUTE = \"data-tf-slider\", t.WIDGET_ATTRIBUTE = \"data-tf-widget\", t.SIDETAB_ATTRIBUTE = \"data-tf-sidetab\", t.SLIDER_POSITION = \"right\", t.SLIDER_WIDTH = 800, t.POPUP_SIZE = 100, t.FORM_BASE_URL = \"https://form.typeform.com\";\n },\n 528: function (e, t, n) {\n var o = this && this.__assign || function () {\n return (o = Object.assign || function (e) {\n for (var t, n = 1, o = arguments.length; n < o; n++) for (var r in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);\n return e;\n }).apply(this, arguments);\n };\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.createPopover = void 0;\n var r = n(747),\n i = n(320),\n a = function (e, t) {\n var n = e.parentNode;\n n && (n.removeChild(e), n.appendChild(t));\n },\n s = function (e, t) {\n void 0 === e && (e = \"div\"), void 0 === t && (t = \"tf-v1-popover-button-icon\");\n var n = document.createElement(e);\n return n.className = t + \" tf-v1-close-icon\", n.innerHTML = \"×\", n.dataset.testid = t, n;\n },\n u = {\n buttonColor: \"#3a7685\"\n };\n t.createPopover = function (e, t) {\n void 0 === t && (t = {});\n var n,\n c,\n d,\n l = o(o({}, u), t),\n p = r.createIframe(e, \"popover\", l),\n f = p.iframe,\n v = p.embedId,\n m = p.refresh,\n h = p.focus,\n b = function (e, t) {\n var n = document.createElement(\"div\");\n return n.className = \"tf-v1-popover\", n.dataset.testid = \"tf-v1-popover\", r.setElementSize(n, {\n width: e,\n height: t\n });\n }(l.width, l.height),\n g = function () {\n var e = document.createElement(\"div\");\n return e.className = \"tf-v1-popover-wrapper\", e.dataset.testid = \"tf-v1-popover-wrapper\", e;\n }(),\n y = function (e, t) {\n var n = r.getTextColor(t),\n o = document.createElement(\"div\");\n o.className = \"tf-v1-popover-button-icon\";\n var i = '',\n a = null == e ? void 0 : e.startsWith(\"http\");\n return o.innerHTML = a ? \"
\" : null != e ? e : i, o.dataset.testid = \"default-icon\", o;\n }(l.customIcon, l.buttonColor || u.buttonColor),\n w = function () {\n var e = document.createElement(\"div\");\n e.className = \"tf-v1-spinner\";\n var t = document.createElement(\"div\");\n return t.className = \"tf-v1-popover-button-icon\", t.dataset.testid = \"spinner-icon\", t.append(e), t;\n }(),\n x = s(),\n O = s(\"a\", \"tf-v1-popover-close\"),\n _ = function (e) {\n var t = r.getTextColor(e),\n n = document.createElement(\"button\");\n return n.className = \"tf-v1-popover-button\", n.dataset.testid = \"tf-v1-popover-button\", n.style.backgroundColor = e, n.style.color = t, n;\n }(l.buttonColor || u.buttonColor);\n (l.container || document.body).append(b), g.append(f), b.append(_), b.append(O), _.append(y);\n var j = function () {\n c && c.parentNode && (c.classList.add(\"closing\"), setTimeout(function () {\n r.unmountElement(c);\n }, 250));\n };\n l.tooltip && l.tooltip.length > 0 && (c = function (e, t) {\n var n = document.createElement(\"span\");\n n.className = \"tf-v1-popover-tooltip-close\", n.dataset.testid = \"tf-v1-popover-tooltip-close\", n.innerHTML = \"×\", n.onclick = t;\n var o = document.createElement(\"div\");\n o.className = \"tf-v1-popover-tooltip-text\", o.innerHTML = e;\n var r = document.createElement(\"div\");\n return r.className = \"tf-v1-popover-tooltip\", r.dataset.testid = \"tf-v1-popover-tooltip\", r.appendChild(o), r.appendChild(n), r;\n }(l.tooltip, j), b.append(c)), l.notificationDays && (l.enableSandbox || i.canBuildNotificationDot(e)) && (d = i.buildNotificationDot(), _.append(d)), f.onload = function () {\n b.classList.add(\"open\"), g.style.opacity = \"1\", O.style.opacity = \"1\", a(w, x), r.addCustomKeyboardListener(C);\n };\n var P = r.makeAutoResize(b),\n E = function () {\n r.isOpen(g) || (j(), d && (d.classList.add(\"closing\"), l.notificationDays && !l.enableSandbox && i.saveNotificationDotHideUntilTime(e, l.notificationDays), setTimeout(function () {\n r.unmountElement(d);\n }, 250)), P(), window.addEventListener(\"resize\", P), setTimeout(function () {\n r.isInPage(g) ? (g.style.opacity = \"0\", O.style.opacity = \"0\", g.style.display = \"flex\", setTimeout(function () {\n b.classList.add(\"open\"), g.style.opacity = \"1\", O.style.opacity = \"1\";\n }), a(y, x)) : (b.append(g), a(y, w), g.style.opacity = \"0\", O.style.opacity = \"0\");\n }));\n },\n C = function () {\n var e;\n r.isOpen(b) && (null === (e = t.onClose) || void 0 === e || e.call(t), setTimeout(function () {\n l.keepSession ? g.style.display = \"none\" : r.unmountElement(g), b.classList.remove(\"open\"), a(x, y);\n }, 250));\n };\n r.setAutoClose(v, l.autoClose, C);\n var I = function () {\n r.isOpen(g) ? C() : E();\n };\n return _.onclick = I, O.onclick = C, l.open && !r.isOpen(g) && (n = r.handleCustomOpen(E, l.open, l.openValue)), {\n open: E,\n close: C,\n toggle: I,\n refresh: m,\n focus: h,\n unmount: function () {\n r.unmountElement(b), window.removeEventListener(\"resize\", P), l.open && (null == n ? void 0 : n.remove) && n.remove();\n }\n };\n };\n },\n 797: function (e, t, n) {\n var o = this && this.__createBinding || (Object.create ? function (e, t, n, o) {\n void 0 === o && (o = n), Object.defineProperty(e, o, {\n enumerable: !0,\n get: function () {\n return t[n];\n }\n });\n } : function (e, t, n, o) {\n void 0 === o && (o = n), e[o] = t[n];\n }),\n r = this && this.__exportStar || function (e, t) {\n for (var n in e) \"default\" === n || Object.prototype.hasOwnProperty.call(t, n) || o(t, e, n);\n };\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), r(n(528), t), r(n(100), t);\n },\n 320: function (e, t) {\n var n = this && this.__assign || function () {\n return (n = Object.assign || function (e) {\n for (var t, n = 1, o = arguments.length; n < o; n++) for (var r in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);\n return e;\n }).apply(this, arguments);\n };\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.buildNotificationDot = t.canBuildNotificationDot = t.saveNotificationDotHideUntilTime = void 0;\n var o = \"tfNotificationData\",\n r = function () {\n var e = localStorage.getItem(o);\n return e ? JSON.parse(e) : {};\n },\n i = function (e) {\n e && localStorage.setItem(o, JSON.stringify(e));\n };\n t.saveNotificationDotHideUntilTime = function (e, t) {\n var o,\n a = new Date();\n a.setDate(a.getDate() + t), i(n(n({}, r()), ((o = {})[e] = {\n hideUntilTime: a.getTime()\n }, o)));\n }, t.canBuildNotificationDot = function (e) {\n var t = function (e) {\n var t;\n return (null === (t = r()[e]) || void 0 === t ? void 0 : t.hideUntilTime) || 0;\n }(e);\n return new Date().getTime() > t && (t && function (e) {\n var t = r();\n delete t[e], i(t);\n }(e), !0);\n }, t.buildNotificationDot = function () {\n var e = document.createElement(\"span\");\n return e.className = \"tf-v1-popover-unread-dot\", e.dataset.testid = \"tf-v1-popover-unread-dot\", e;\n };\n },\n 100: function (e, t) {\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n });\n },\n 630: function (e, t, n) {\n var o = this && this.__rest || function (e, t) {\n var n = {};\n for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);\n if (null != e && \"function\" == typeof Object.getOwnPropertySymbols) {\n var r = 0;\n for (o = Object.getOwnPropertySymbols(e); r < o.length; r++) t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);\n }\n return n;\n };\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.createPopup = void 0;\n var r = n(747),\n i = n(27),\n a = n(747);\n t.createPopup = function (e, t) {\n if (void 0 === t && (t = {}), !r.hasDom()) return {\n open: function () {},\n close: function () {},\n toggle: function () {},\n refresh: function () {},\n focus: function () {},\n unmount: function () {}\n };\n var n,\n s = t.width,\n u = t.height,\n c = t.size,\n d = void 0 === c ? i.POPUP_SIZE : c,\n l = t.onClose,\n p = o(t, [\"width\", \"height\", \"size\", \"onClose\"]),\n f = r.createIframe(e, \"popup\", p),\n v = f.iframe,\n m = f.embedId,\n h = f.refresh,\n b = f.focus,\n g = document.body.style.overflow,\n y = function () {\n var e = document.createElement(\"div\");\n return e.className = \"tf-v1-popup\", e.dataset.testid = \"tf-v1-popup\", e.style.opacity = \"0\", e;\n }(),\n w = function () {\n var e = document.createElement(\"div\");\n return e.className = \"tf-v1-spinner\", e;\n }(),\n x = function (e, t, n) {\n var o = document.createElement(\"div\");\n return o.className = \"tf-v1-iframe-wrapper\", o.style.opacity = \"0\", r.isDefined(e) && r.isDefined(t) ? r.setElementSize(o, {\n width: e,\n height: t\n }) : (o.style.width = \"calc(\" + n + \"% - 80px)\", o.style.height = \"calc(\" + n + \"% - 80px)\", o);\n }(s, u, d);\n x.append(v), y.append(w), y.append(x);\n var O = p.container || document.body;\n v.onload = function () {\n x.style.opacity = \"1\", setTimeout(function () {\n w.style.display = \"none\";\n }, 250), r.addCustomKeyboardListener(P);\n };\n var _ = a.makeAutoResize(y),\n j = function () {\n a.isOpen(y) || (a.isInPage(y) ? y.style.display = \"flex\" : (w.style.display = \"block\", O.append(y)), document.body.style.overflow = \"hidden\", _(), window.addEventListener(\"resize\", _), setTimeout(function () {\n y.style.opacity = \"1\";\n }));\n },\n P = function () {\n a.isOpen(y) && (null == l || l(), y.style.opacity = \"0\", document.body.style.overflow = g, setTimeout(function () {\n p.keepSession ? y.style.display = \"none\" : E();\n }, 250));\n };\n x.append(function (e) {\n var t = document.createElement(\"a\");\n return t.className = \"tf-v1-close tf-v1-close-icon\", t.innerHTML = \"×\", t.onclick = e, t;\n }(P)), r.setAutoClose(m, p.autoClose, P), p.open && !a.isOpen(y) && (n = r.handleCustomOpen(j, p.open, p.openValue));\n var E = function () {\n r.unmountElement(y), window.removeEventListener(\"resize\", _), p.open && (null == n ? void 0 : n.remove) && n.remove();\n };\n return {\n open: j,\n close: P,\n toggle: function () {\n a.isOpen(y) ? P() : j();\n },\n refresh: h,\n focus: b,\n unmount: E\n };\n };\n },\n 970: function (e, t, n) {\n var o = this && this.__createBinding || (Object.create ? function (e, t, n, o) {\n void 0 === o && (o = n), Object.defineProperty(e, o, {\n enumerable: !0,\n get: function () {\n return t[n];\n }\n });\n } : function (e, t, n, o) {\n void 0 === o && (o = n), e[o] = t[n];\n }),\n r = this && this.__exportStar || function (e, t) {\n for (var n in e) \"default\" === n || Object.prototype.hasOwnProperty.call(t, n) || o(t, e, n);\n };\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), r(n(630), t), r(n(394), t);\n },\n 394: function (e, t) {\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n });\n },\n 382: function (e, t, n) {\n var o = this && this.__assign || function () {\n return (o = Object.assign || function (e) {\n for (var t, n = 1, o = arguments.length; n < o; n++) for (var r in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);\n return e;\n }).apply(this, arguments);\n };\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.createSidetab = void 0;\n var r = n(747),\n i = {\n buttonColor: \"#3a7685\",\n buttonText: \"Launch me\"\n },\n a = function (e, t) {\n void 0 === e && (e = \"div\"), void 0 === t && (t = \"tf-v1-sidetab-button-icon\");\n var n = document.createElement(e);\n return n.className = t + \" tf-v1-close-icon\", n.innerHTML = \"×\", n.dataset.testid = t, n;\n },\n s = function (e, t) {\n var n = e.parentNode;\n n && (n.removeChild(e), n.appendChild(t));\n };\n t.createSidetab = function (e, t) {\n void 0 === t && (t = {});\n var n,\n u = o(o({}, i), t),\n c = r.createIframe(e, \"side-tab\", u),\n d = c.iframe,\n l = c.embedId,\n p = c.refresh,\n f = c.focus,\n v = function (e, t) {\n var n = document.createElement(\"div\");\n return n.className = \"tf-v1-sidetab\", n.dataset.testid = \"tf-v1-sidetab\", r.setElementSize(n, {\n width: e,\n height: t\n });\n }(u.width, u.height),\n m = function () {\n var e = document.createElement(\"div\");\n return e.className = \"tf-v1-sidetab-wrapper\", e.dataset.testid = \"tf-v1-sidetab-wrapper\", e;\n }(),\n h = function () {\n var e = document.createElement(\"div\");\n e.className = \"tf-v1-spinner\";\n var t = document.createElement(\"div\");\n return t.className = \"tf-v1-sidetab-button-icon\", t.dataset.testid = \"spinner-icon\", t.append(e), t;\n }(),\n b = function (e) {\n var t = r.getTextColor(e),\n n = document.createElement(\"button\");\n return n.className = \"tf-v1-sidetab-button\", n.style.backgroundColor = e, n.style.color = t, n;\n }(u.buttonColor || i.buttonColor),\n g = function (e) {\n var t = document.createElement(\"span\");\n return t.className = \"tf-v1-sidetab-button-text\", t.innerHTML = e, t;\n }(u.buttonText || i.buttonText),\n y = function (e, t) {\n var n = r.getTextColor(t),\n o = document.createElement(\"div\");\n o.className = \"tf-v1-sidetab-button-icon\";\n var i = '',\n a = null == e ? void 0 : e.startsWith(\"http\");\n return o.innerHTML = a ? \"
\" : null != e ? e : i, o.dataset.testid = \"default-icon\", o;\n }(u.customIcon, u.buttonColor || i.buttonColor),\n w = a(),\n x = a(\"a\", \"tf-v1-sidetab-close\");\n (u.container || document.body).append(v), m.append(d), v.append(b), v.append(x), b.append(y), b.append(g), setTimeout(function () {\n v.classList.add(\"ready\");\n }, 250), d.onload = function () {\n v.classList.add(\"open\"), s(h, w), r.addCustomKeyboardListener(j);\n };\n var O = r.makeAutoResize(v),\n _ = function () {\n r.isOpen(m) || (O(), window.addEventListener(\"resize\", O), r.isInPage(m) ? (m.style.display = \"flex\", v.classList.add(\"open\"), s(y, w)) : (v.append(m), s(y, h)));\n },\n j = function () {\n var e;\n r.isOpen(m) && (null === (e = u.onClose) || void 0 === e || e.call(u), v.classList.remove(\"open\"), setTimeout(function () {\n u.keepSession ? m.style.display = \"none\" : r.unmountElement(m), s(w, y);\n }, 250));\n };\n r.setAutoClose(l, u.autoClose, j);\n var P = function () {\n r.isOpen(m) ? j() : _();\n };\n return b.onclick = P, x.onclick = j, u.open && !r.isOpen(m) && (n = r.handleCustomOpen(_, u.open, u.openValue)), {\n open: _,\n close: j,\n toggle: P,\n refresh: p,\n focus: f,\n unmount: function () {\n r.unmountElement(v), window.removeEventListener(\"resize\", O), u.open && (null == n ? void 0 : n.remove) && n.remove();\n }\n };\n };\n },\n 434: function (e, t, n) {\n var o = this && this.__createBinding || (Object.create ? function (e, t, n, o) {\n void 0 === o && (o = n), Object.defineProperty(e, o, {\n enumerable: !0,\n get: function () {\n return t[n];\n }\n });\n } : function (e, t, n, o) {\n void 0 === o && (o = n), e[o] = t[n];\n }),\n r = this && this.__exportStar || function (e, t) {\n for (var n in e) \"default\" === n || Object.prototype.hasOwnProperty.call(t, n) || o(t, e, n);\n };\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), r(n(382), t), r(n(668), t);\n },\n 668: function (e, t) {\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n });\n },\n 603: function (e, t, n) {\n var o = this && this.__rest || function (e, t) {\n var n = {};\n for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);\n if (null != e && \"function\" == typeof Object.getOwnPropertySymbols) {\n var r = 0;\n for (o = Object.getOwnPropertySymbols(e); r < o.length; r++) t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);\n }\n return n;\n };\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.createSlider = void 0;\n var r = n(747),\n i = n(27);\n t.createSlider = function (e, t) {\n if (void 0 === t && (t = {}), !r.hasDom()) return {\n open: function () {},\n close: function () {},\n toggle: function () {},\n refresh: function () {},\n focus: function () {},\n unmount: function () {}\n };\n var n,\n a = t.position,\n s = void 0 === a ? i.SLIDER_POSITION : a,\n u = t.width,\n c = void 0 === u ? i.SLIDER_WIDTH : u,\n d = t.onClose,\n l = o(t, [\"position\", \"width\", \"onClose\"]),\n p = r.createIframe(e, \"slider\", l),\n f = p.iframe,\n v = p.embedId,\n m = p.refresh,\n h = p.focus,\n b = document.body.style.overflow,\n g = function (e) {\n var t = document.createElement(\"div\");\n return t.className = \"tf-v1-slider \" + e, t.dataset.testid = \"tf-v1-slider\", t.style.opacity = \"0\", t;\n }(s),\n y = function () {\n var e = document.createElement(\"div\");\n return e.className = \"tf-v1-spinner\", e;\n }(),\n w = function (e, t) {\n var n = document.createElement(\"div\");\n return n.className = \"tf-v1-iframe-wrapper\", n.style[e] = \"-100%\", r.setElementSize(n, {\n width: t\n });\n }(s, c);\n w.append(f), g.append(y), g.append(w);\n var x = l.container || document.body;\n f.onload = function () {\n w.style[s] = \"0\", setTimeout(function () {\n y.style.display = \"none\";\n }, 500), r.addCustomKeyboardListener(j);\n };\n var O = r.makeAutoResize(g),\n _ = function () {\n r.isOpen(g) || (O(), window.addEventListener(\"resize\", O), r.isInPage(g) ? (g.style.display = \"flex\", setTimeout(function () {\n w.style[s] = \"0\";\n })) : (x.append(g), y.style.display = \"block\"), document.body.style.overflow = \"hidden\", setTimeout(function () {\n g.style.opacity = \"1\";\n }));\n },\n j = function () {\n r.isOpen(g) && (null == d || d(), g.style.opacity = \"0\", w.style[s] = \"-100%\", document.body.style.overflow = b, setTimeout(function () {\n l.keepSession ? g.style.display = \"none\" : P();\n }, 500));\n };\n r.setAutoClose(v, l.autoClose, j), w.append(function (e) {\n var t = document.createElement(\"a\");\n return t.className = \"tf-v1-close tf-v1-close-icon\", t.innerHTML = \"×\", t.onclick = e, t;\n }(j)), l.open && !r.isOpen(g) && (n = r.handleCustomOpen(_, l.open, l.openValue));\n var P = function () {\n r.unmountElement(g), window.removeEventListener(\"resize\", O), l.open && (null == n ? void 0 : n.remove) && n.remove();\n };\n return {\n open: _,\n close: j,\n toggle: function () {\n r.isOpen(g) ? j() : _();\n },\n refresh: m,\n focus: h,\n unmount: P\n };\n };\n },\n 331: function (e, t, n) {\n var o = this && this.__createBinding || (Object.create ? function (e, t, n, o) {\n void 0 === o && (o = n), Object.defineProperty(e, o, {\n enumerable: !0,\n get: function () {\n return t[n];\n }\n });\n } : function (e, t, n, o) {\n void 0 === o && (o = n), e[o] = t[n];\n }),\n r = this && this.__exportStar || function (e, t) {\n for (var n in e) \"default\" === n || Object.prototype.hasOwnProperty.call(t, n) || o(t, e, n);\n };\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), r(n(603), t), r(n(162), t);\n },\n 162: function (e, t) {\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n });\n },\n 718: function (e, t, n) {\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.createWidget = void 0;\n var o = n(747),\n r = n(554),\n i = n(313);\n t.createWidget = function (e, t) {\n if (!o.hasDom()) return {\n refresh: function () {},\n focus: function () {},\n unmount: function () {}\n };\n var n = t;\n t.inlineOnMobile || !t.forceTouch && !o.isFullscreen() || (n.enableFullscreen = !0, n.forceTouch = !0);\n var a = o.createIframe(e, \"widget\", n),\n s = a.embedId,\n u = a.iframe,\n c = a.refresh,\n d = a.focus,\n l = i.buildWidget(u, t.width, t.height);\n if (n.autoResize) {\n var p = \"string\" == typeof n.autoResize ? n.autoResize.split(\",\").map(function (e) {\n return parseInt(e);\n }) : [],\n f = p[0],\n v = p[1];\n window.addEventListener(\"message\", r.getFormHeightChangedHandler(s, function (e) {\n var n = Math.max(e.height, f || 0);\n v && (n = Math.min(n, v)), t.container.style.height = n + \"px\";\n }));\n }\n n.autoFocus && window.addEventListener(\"message\", r.getFormReadyHandler(s, function () {\n setTimeout(function () {\n d();\n }, 1e3);\n }));\n var m,\n h = function () {\n return t.container.append(l);\n };\n if (t.container.innerHTML = \"\", t.lazy ? o.lazyInitialize(t.container, h) : h(), n.enableFullscreen) {\n var b = \"\",\n g = t.container,\n y = o.makeAutoResize(g),\n w = g.style.height;\n window.addEventListener(\"message\", r.getWelcomeScreenHiddenHandler(s, function () {\n g.classList.add(\"tf-v1-widget-fullscreen\"), void 0 !== t.opacity && (g.style.backgroundColor = b), y(), window.addEventListener(\"resize\", y);\n })), window.addEventListener(\"message\", r.getFormThemeHandler(s, function (e) {\n var t;\n b = o.changeColorOpacity(null === (t = null == e ? void 0 : e.theme) || void 0 === t ? void 0 : t.backgroundColor);\n }));\n var x = ((m = document.createElement(\"a\")).className = \"tf-v1-widget-close tf-v1-close-icon\", m.innerHTML = \"×\", m);\n x.onclick = function () {\n var e;\n if (window.removeEventListener(\"resize\", y), g.style.height = w, null === (e = t.onClose) || void 0 === e || e.call(t), g.classList.remove(\"tf-v1-widget-fullscreen\"), g.style.backgroundColor = \"\", t.keepSession) {\n var n = document.createElement(\"div\");\n n.className = \"tf-v1-widget-iframe-overlay\", n.onclick = function () {\n g.classList.add(\"tf-v1-widget-fullscreen\"), o.unmountElement(n);\n }, l.append(n);\n } else t.container.innerHTML = \"\", h(), g.append(x);\n }, g.append(x);\n }\n return {\n refresh: c,\n focus: d,\n unmount: function () {\n return o.unmountElement(l);\n }\n };\n };\n },\n 419: function (e, t, n) {\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.buildWidget = void 0;\n var o = n(747);\n t.buildWidget = function (e, t, n) {\n var r = document.createElement(\"div\");\n return r.className = \"tf-v1-widget\", r.dataset.testid = \"tf-v1-widget\", r.append(e), o.setElementSize(r, {\n width: t,\n height: n\n });\n };\n },\n 313: function (e, t, n) {\n var o = this && this.__createBinding || (Object.create ? function (e, t, n, o) {\n void 0 === o && (o = n), Object.defineProperty(e, o, {\n enumerable: !0,\n get: function () {\n return t[n];\n }\n });\n } : function (e, t, n, o) {\n void 0 === o && (o = n), e[o] = t[n];\n }),\n r = this && this.__exportStar || function (e, t) {\n for (var n in e) \"default\" === n || Object.prototype.hasOwnProperty.call(t, n) || o(t, e, n);\n };\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), r(n(419), t);\n },\n 321: function (e, t, n) {\n var o = this && this.__createBinding || (Object.create ? function (e, t, n, o) {\n void 0 === o && (o = n), Object.defineProperty(e, o, {\n enumerable: !0,\n get: function () {\n return t[n];\n }\n });\n } : function (e, t, n, o) {\n void 0 === o && (o = n), e[o] = t[n];\n }),\n r = this && this.__exportStar || function (e, t) {\n for (var n in e) \"default\" === n || Object.prototype.hasOwnProperty.call(t, n) || o(t, e, n);\n };\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), r(n(718), t), r(n(58), t);\n },\n 58: function (e, t) {\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n });\n },\n 920: function (e, t, n) {\n var o = this && this.__createBinding || (Object.create ? function (e, t, n, o) {\n void 0 === o && (o = n), Object.defineProperty(e, o, {\n enumerable: !0,\n get: function () {\n return t[n];\n }\n });\n } : function (e, t, n, o) {\n void 0 === o && (o = n), e[o] = t[n];\n }),\n r = this && this.__exportStar || function (e, t) {\n for (var n in e) \"default\" === n || Object.prototype.hasOwnProperty.call(t, n) || o(t, e, n);\n };\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), r(n(797), t), r(n(970), t), r(n(331), t), r(n(321), t), r(n(434), t);\n },\n 626: function (e, t, n) {\n var o = this && this.__assign || function () {\n return (o = Object.assign || function (e) {\n for (var t, n = 1, o = arguments.length; n < o; n++) for (var r in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);\n return e;\n }).apply(this, arguments);\n };\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.buildIframeSrc = void 0;\n var r = n(27),\n i = n(527),\n a = n(346),\n s = n(698),\n u = n(863),\n c = {\n widget: \"embed-widget\",\n popup: \"popup-blank\",\n slider: \"popup-drawer\",\n popover: \"popup-popover\",\n \"side-tab\": \"popup-side-panel\"\n };\n t.buildIframeSrc = function (e) {\n var t = e.formId,\n n = e.type,\n d = e.embedId,\n l = e.options,\n p = function (e, t, n) {\n var r = n.transitiveSearchParams,\n i = n.source,\n a = n.medium,\n u = n.mediumVersion,\n d = n.hideFooter,\n l = n.hideHeaders,\n p = n.opacity,\n f = n.disableTracking,\n v = n.enableSandbox,\n m = n.shareGaInstance,\n h = n.forceTouch,\n b = n.enableFullscreen,\n g = n.tracking,\n y = n.redirectTarget,\n w = n.autoResize,\n x = s.getTransitiveSearchParams(r);\n return o(o(o({}, {\n \"typeform-embed-id\": t,\n \"typeform-embed\": c[e],\n \"typeform-source\": i,\n \"typeform-medium\": a,\n \"typeform-medium-version\": u,\n \"embed-hide-footer\": d ? \"true\" : void 0,\n \"embed-hide-headers\": l ? \"true\" : void 0,\n \"embed-opacity\": p,\n \"disable-tracking\": f || v ? \"true\" : void 0,\n \"__dangerous-disable-submissions\": v ? \"true\" : void 0,\n \"share-ga-instance\": m ? \"true\" : void 0,\n \"force-touch\": h ? \"true\" : void 0,\n \"add-placeholder-ws\": \"widget\" === e && b ? \"true\" : void 0,\n \"typeform-embed-redirect-target\": y,\n \"typeform-embed-auto-resize\": w ? \"true\" : void 0\n }), x), g);\n }(n, d, function (e) {\n return o(o({}, {\n source: null === (t = null === window || void 0 === window ? void 0 : window.location) || void 0 === t ? void 0 : t.hostname.replace(/^www\\./, \"\"),\n medium: \"embed-sdk\",\n mediumVersion: \"next\"\n }), i.removeUndefinedKeys(e));\n var t;\n }(l)),\n f = function (e, t) {\n void 0 === t && (t = !1);\n var n = t ? \"c\" : \"to\";\n return new URL(e.startsWith(\"http://\") || e.startsWith(\"https://\") ? e : r.FORM_BASE_URL + \"/\" + n + \"/\" + e);\n }(t, l.chat);\n if (Object.entries(p).filter(function (e) {\n var t = e[1];\n return a.isDefined(t);\n }).forEach(function (e) {\n var t = e[0],\n n = e[1];\n f.searchParams.set(t, n);\n }), l.hubspot) {\n var v = u.getHubspotHiddenFields();\n l.hidden = o(o({}, l.hidden), v);\n }\n if (l.hidden) {\n var m = new URL(r.FORM_BASE_URL);\n Object.entries(l.hidden).filter(function (e) {\n var t = e[1];\n return a.isDefined(t);\n }).forEach(function (e) {\n var t = e[0],\n n = e[1];\n m.searchParams.set(t, n);\n });\n var h = m.searchParams.toString();\n h && (f.hash = h);\n }\n return f.href;\n };\n },\n 391: function (e, t) {\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.changeColorOpacity = void 0, t.changeColorOpacity = function (e, t) {\n return void 0 === e && (e = \"\"), void 0 === t && (t = 255), e.startsWith(\"rgba(\") ? null == e ? void 0 : e.replace(/, [\\d.]+\\)$/, \", \" + t + \")\") : e;\n };\n },\n 972: function (e, t) {\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.handleCustomOpen = void 0;\n var n = {\n remove: function () {}\n };\n t.handleCustomOpen = function (e, t, o) {\n switch (t) {\n case \"load\":\n return e(), n;\n case \"exit\":\n return o ? function (e, t) {\n var n = 0,\n o = function (r) {\n r.clientY < e && r.clientY < n ? (document.removeEventListener(\"mousemove\", o, !0), t()) : n = r.clientY;\n };\n return document.addEventListener(\"mousemove\", o, !0), {\n remove: function () {\n return document.removeEventListener(\"mousemove\", o, !0);\n }\n };\n }(o, e) : n;\n case \"time\":\n return setTimeout(function () {\n e();\n }, o), n;\n case \"scroll\":\n return o ? function (e, t) {\n function n() {\n var o = window.pageYOffset || document.documentElement.scrollTop,\n r = document.documentElement.clientTop || 0,\n i = document.documentElement.scrollHeight,\n a = o - r,\n s = a / i * 100,\n u = a + window.innerHeight >= i;\n (s >= e || u) && (t(), document.removeEventListener(\"scroll\", n));\n }\n return document.addEventListener(\"scroll\", n), {\n remove: function () {\n return document.removeEventListener(\"scroll\", n);\n }\n };\n }(o, e) : n;\n default:\n return n;\n }\n };\n },\n 553: function (e, t, n) {\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.createIframe = void 0;\n var o = n(626),\n r = n(747),\n i = n(866),\n a = n(554),\n s = n(256),\n u = n(144),\n c = n(511);\n t.createIframe = function (e, t, n) {\n var d = i.generateEmbedId(),\n l = n.iframeProps,\n p = void 0 === l ? {} : l,\n f = n.onReady,\n v = n.onQuestionChanged,\n m = n.onHeightChanged,\n h = n.onSubmit,\n b = n.onEndingButtonClick,\n g = n.shareGaInstance,\n y = o.buildIframeSrc({\n formId: e,\n embedId: d,\n type: t,\n options: n\n }),\n w = document.createElement(\"iframe\");\n return w.src = y, w.dataset.testid = \"iframe\", w.style.border = \"0px\", w.allow = \"microphone; camera\", Object.keys(p).forEach(function (e) {\n w.setAttribute(e, p[e]);\n }), w.addEventListener(\"load\", s.triggerIframeRedraw, {\n once: !0\n }), window.addEventListener(\"message\", a.getFormReadyHandler(d, f)), window.addEventListener(\"message\", a.getFormQuestionChangedHandler(d, v)), window.addEventListener(\"message\", a.getFormHeightChangedHandler(d, m)), window.addEventListener(\"message\", a.getFormSubmitHandler(d, h)), window.addEventListener(\"message\", a.getFormThemeHandler(d, function (e) {\n var t;\n if (null == e ? void 0 : e.theme) {\n var n = document.querySelector(\".tf-v1-close-icon\");\n n && (n.style.color = null === (t = e.theme) || void 0 === t ? void 0 : t.color);\n }\n })), window.addEventListener(\"message\", a.getThankYouScreenButtonClickHandler(d, b)), \"widget\" !== t && window.addEventListener(\"message\", u.dispatchCustomKeyEventFromIframe), g && window.addEventListener(\"message\", a.getFormReadyHandler(d, function () {\n r.setupGaInstance(w, d, g);\n })), {\n iframe: w,\n embedId: d,\n refresh: function () {\n return c.refreshIframe(w);\n },\n focus: function () {\n var e;\n null === (e = w.contentWindow) || void 0 === e || e.postMessage(\"embed-focus\", \"*\");\n }\n };\n };\n },\n 866: function (e, t) {\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.generateEmbedId = void 0, t.generateEmbedId = function () {\n var e = Math.random();\n return String(e).split(\".\")[1];\n };\n },\n 554: function (e, t) {\n var n = this && this.__rest || function (e, t) {\n var n = {};\n for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);\n if (null != e && \"function\" == typeof Object.getOwnPropertySymbols) {\n var r = 0;\n for (o = Object.getOwnPropertySymbols(e); r < o.length; r++) t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);\n }\n return n;\n };\n function o(e, t, o) {\n return function (r) {\n var i = r.data,\n a = i.type,\n s = i.embedId,\n u = n(i, [\"type\", \"embedId\"]);\n a === e && s === t && (null == o || o(u));\n };\n }\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.getThankYouScreenButtonClickHandler = t.getFormThemeHandler = t.getWelcomeScreenHiddenHandler = t.getFormSubmitHandler = t.getFormHeightChangedHandler = t.getFormQuestionChangedHandler = t.getFormReadyHandler = void 0, t.getFormReadyHandler = function (e, t) {\n return o(\"form-ready\", e, t);\n }, t.getFormQuestionChangedHandler = function (e, t) {\n return o(\"form-screen-changed\", e, t);\n }, t.getFormHeightChangedHandler = function (e, t) {\n return o(\"form-height-changed\", e, t);\n }, t.getFormSubmitHandler = function (e, t) {\n return o(\"form-submit\", e, t);\n }, t.getWelcomeScreenHiddenHandler = function (e, t) {\n return o(\"welcome-screen-hidden\", e, t);\n }, t.getFormThemeHandler = function (e, t) {\n return o(\"form-theme\", e, t);\n }, t.getThankYouScreenButtonClickHandler = function (e, t) {\n return o(\"thank-you-screen-button-click\", e, t);\n };\n },\n 339: function (e, t, n) {\n var o = this && this.__createBinding || (Object.create ? function (e, t, n, o) {\n void 0 === o && (o = n), Object.defineProperty(e, o, {\n enumerable: !0,\n get: function () {\n return t[n];\n }\n });\n } : function (e, t, n, o) {\n void 0 === o && (o = n), e[o] = t[n];\n }),\n r = this && this.__exportStar || function (e, t) {\n for (var n in e) \"default\" === n || Object.prototype.hasOwnProperty.call(t, n) || o(t, e, n);\n };\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), r(n(553), t), r(n(144), t);\n },\n 511: function (e, t) {\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.refreshIframe = void 0, t.refreshIframe = function (e) {\n if (e) {\n var t = e.src;\n if (t.includes(\"&refresh\")) {\n var n = t.split(\"&refresh#\");\n e.src = n.join(\"#\");\n } else (n = t.split(\"#\"))[0] = n[0] + \"&refresh\", e.src = n.join(\"#\");\n }\n };\n },\n 144: function (e, t) {\n var n = this && this.__awaiter || function (e, t, n, o) {\n return new (n || (n = Promise))(function (r, i) {\n function a(e) {\n try {\n u(o.next(e));\n } catch (e) {\n i(e);\n }\n }\n function s(e) {\n try {\n u(o.throw(e));\n } catch (e) {\n i(e);\n }\n }\n function u(e) {\n var t;\n e.done ? r(e.value) : (t = e.value, t instanceof n ? t : new n(function (e) {\n e(t);\n })).then(a, s);\n }\n u((o = o.apply(e, t || [])).next());\n });\n },\n o = this && this.__generator || function (e, t) {\n var n,\n o,\n r,\n i,\n a = {\n label: 0,\n sent: function () {\n if (1 & r[0]) throw r[1];\n return r[1];\n },\n trys: [],\n ops: []\n };\n return i = {\n next: s(0),\n throw: s(1),\n return: s(2)\n }, \"function\" == typeof Symbol && (i[Symbol.iterator] = function () {\n return this;\n }), i;\n function s(i) {\n return function (s) {\n return function (i) {\n if (n) throw new TypeError(\"Generator is already executing.\");\n for (; a;) try {\n if (n = 1, o && (r = 2 & i[0] ? o.return : i[0] ? o.throw || ((r = o.return) && r.call(o), 0) : o.next) && !(r = r.call(o, i[1])).done) return r;\n switch (o = 0, r && (i = [2 & i[0], r.value]), i[0]) {\n case 0:\n case 1:\n r = i;\n break;\n case 4:\n return a.label++, {\n value: i[1],\n done: !1\n };\n case 5:\n a.label++, o = i[1], i = [0];\n continue;\n case 7:\n i = a.ops.pop(), a.trys.pop();\n continue;\n default:\n if (!((r = (r = a.trys).length > 0 && r[r.length - 1]) || 6 !== i[0] && 2 !== i[0])) {\n a = 0;\n continue;\n }\n if (3 === i[0] && (!r || i[1] > r[0] && i[1] < r[3])) {\n a.label = i[1];\n break;\n }\n if (6 === i[0] && a.label < r[1]) {\n a.label = r[1], r = i;\n break;\n }\n if (r && a.label < r[2]) {\n a.label = r[2], a.ops.push(i);\n break;\n }\n r[2] && a.ops.pop(), a.trys.pop();\n continue;\n }\n i = t.call(e, a);\n } catch (e) {\n i = [6, e], o = 0;\n } finally {\n n = r = 0;\n }\n if (5 & i[0]) throw i[1];\n return {\n value: i[0] ? i[1] : void 0,\n done: !0\n };\n }([i, s]);\n };\n }\n };\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.dispatchCustomKeyEventFromIframe = t.removeCustomKeyboardListener = t.addCustomKeyboardListener = void 0;\n var r = \"Escape\",\n i = function (e, i) {\n return n(void 0, void 0, void 0, function () {\n return o(this, function (n) {\n return e.code === r && \"function\" == typeof i && (i(), t.removeCustomKeyboardListener()), [2];\n });\n });\n };\n t.addCustomKeyboardListener = function (e) {\n return window.document.addEventListener(\"keydown\", function (t) {\n return i(t, e);\n });\n }, t.removeCustomKeyboardListener = function () {\n return window.document.removeEventListener(\"keydown\", i);\n }, t.dispatchCustomKeyEventFromIframe = function (e) {\n \"form-close\" === e.data.type && window.document.dispatchEvent(new KeyboardEvent(\"keydown\", {\n code: r\n }));\n };\n },\n 256: function (e, t) {\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.triggerIframeRedraw = void 0, t.triggerIframeRedraw = function () {\n this.style.transform = \"translateZ(0)\";\n };\n },\n 939: function (e, t, n) {\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.getTextColor = void 0;\n var o = n(938);\n t.getTextColor = function (e) {\n if (!e) return \"#FFFFFF\";\n var t = e.startsWith(\"#\") ? o.hexRgb(e) : function (e) {\n var t = {\n red: 0,\n green: 0,\n blue: 0\n },\n n = e.match(/\\d+/g);\n return n && (t.red = parseInt(n[0], 10), t.green = parseInt(n[0], 10), t.blue = parseInt(n[0], 10)), t;\n }(e),\n n = t.red,\n r = t.green,\n i = t.blue;\n return Math.round((299 * n + 587 * r + 114 * i) / 1e3) > 125 ? \"#000000\" : \"#FFFFFF\";\n };\n },\n 698: function (e, t) {\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.getTransitiveSearchParams = void 0, t.getTransitiveSearchParams = function (e) {\n var t = new URL(window.location.href),\n n = {};\n return e && e.length > 0 && e.forEach(function (e) {\n t.searchParams.has(e) && (n[e] = t.searchParams.get(e));\n }), n;\n };\n },\n 252: function (e, t) {\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.hasDom = void 0, t.hasDom = function () {\n return \"undefined\" != typeof document && \"undefined\" != typeof window;\n };\n },\n 938: function (e, t) {\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.hexRgb = void 0;\n var n = new RegExp(\"[^#a-f\\\\d]\", \"gi\"),\n o = new RegExp(\"^#?[a-f\\\\d]{3}[a-f\\\\d]?$|^#?[a-f\\\\d]{6}([a-f\\\\d]{2})?$\", \"i\");\n t.hexRgb = function (e) {\n if (\"string\" != typeof e || n.test(e) || !o.test(e)) throw new TypeError(\"Expected a valid hex string\");\n 8 === (e = e.replace(/^#/, \"\")).length && (e = e.slice(0, 6)), 4 === e.length && (e = e.slice(0, 3)), 3 === e.length && (e = e[0] + e[0] + e[1] + e[1] + e[2] + e[2]);\n var t = Number.parseInt(e, 16);\n return {\n red: t >> 16,\n green: t >> 8 & 255,\n blue: 255 & t\n };\n };\n },\n 863: function (e, t) {\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.getHubspotHiddenFields = t.getHubspotCookieValue = void 0, t.getHubspotCookieValue = function () {\n var e = document.cookie.match(new RegExp(\"(^| )hubspotutk=([^;]+)\"));\n return e && e[2] || void 0;\n }, t.getHubspotHiddenFields = function () {\n return {\n hubspot_page_name: document.title,\n hubspot_page_url: window.location.href,\n hubspot_utk: t.getHubspotCookieValue()\n };\n };\n },\n 71: function (e, t) {\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.includeCss = void 0, t.includeCss = function (e) {\n var t = function (e) {\n return \"https://embed.typeform.com/next/css/\" + e;\n }(e);\n if (!document.querySelector('link[href=\"' + t + '\"]')) {\n var n = document.createElement(\"link\");\n n.rel = \"stylesheet\", n.href = t, document.head.append(n);\n }\n };\n },\n 747: function (e, t, n) {\n var o = this && this.__createBinding || (Object.create ? function (e, t, n, o) {\n void 0 === o && (o = n), Object.defineProperty(e, o, {\n enumerable: !0,\n get: function () {\n return t[n];\n }\n });\n } : function (e, t, n, o) {\n void 0 === o && (o = n), e[o] = t[n];\n }),\n r = this && this.__exportStar || function (e, t) {\n for (var n in e) \"default\" === n || Object.prototype.hasOwnProperty.call(t, n) || o(t, e, n);\n };\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), r(n(626), t), r(n(339), t), r(n(252), t), r(n(71), t), r(n(346), t), r(n(377), t), r(n(563), t), r(n(527), t), r(n(533), t), r(n(451), t), r(n(972), t), r(n(748), t), r(n(392), t), r(n(939), t), r(n(917), t), r(n(987), t), r(n(318), t), r(n(391), t);\n },\n 346: function (e, t) {\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.isDefined = void 0, t.isDefined = function (e) {\n return null != e;\n };\n },\n 987: function (e, t) {\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.isVisible = t.isInPage = t.isOpen = void 0, t.isOpen = function (e) {\n return t.isInPage(e) && t.isVisible(e);\n }, t.isInPage = function (e) {\n return !!e.parentNode;\n }, t.isVisible = function (e) {\n return \"none\" !== e.style.display;\n };\n },\n 917: function (e, t) {\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.lazyInitialize = void 0, t.lazyInitialize = function (e, t) {\n var n = new IntersectionObserver(function (e) {\n e.forEach(function (e) {\n e.isIntersecting && (t(), n.unobserve(e.target));\n });\n });\n n.observe(e);\n };\n },\n 377: function (e, t) {\n var n = this && this.__assign || function () {\n return (n = Object.assign || function (e) {\n for (var t, n = 1, o = arguments.length; n < o; n++) for (var r in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);\n return e;\n }).apply(this, arguments);\n };\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.loadOptionsFromAttributes = t.transformAttributeValue = t.camelCaseToKebabCase = void 0, t.camelCaseToKebabCase = function (e) {\n return e.split(\"\").map(function (e, t) {\n return e.toUpperCase() === e ? (0 !== t ? \"-\" : \"\") + e.toLowerCase() : e;\n }).join(\"\");\n };\n var o = function (e) {\n return e || void 0;\n },\n r = function (e) {\n return \"\" === e || \"yes\" === e || \"true\" === e;\n },\n i = function (e) {\n var t = e ? parseInt(e, 10) : NaN;\n return isNaN(t) ? void 0 : t;\n },\n a = \"%ESCAPED_COMMA%\";\n t.transformAttributeValue = function (e, t) {\n var s, u;\n switch (t) {\n case \"string\":\n return o(e);\n case \"boolean\":\n return r(e);\n case \"integer\":\n return i(e);\n case \"function\":\n return function (e) {\n var t = e && e in window ? window[e] : void 0;\n return \"function\" == typeof t ? t : void 0;\n }(e);\n case \"array\":\n return function (e) {\n if (e) return e.replace(/\\s/g, \"\").replace(/\\\\,/g, a).split(\",\").filter(function (e) {\n return !!e;\n }).map(function (e) {\n return e.replace(a, \",\");\n });\n }(e);\n case \"record\":\n return function (e) {\n if (e) return e.replace(/\\\\,/g, a).split(\",\").filter(function (e) {\n return !!e;\n }).map(function (e) {\n return e.replace(a, \",\");\n }).reduce(function (e, t) {\n var o,\n r = t.match(/^([^=]+)=(.*)$/);\n if (r) {\n var i = r[1],\n a = r[2];\n return n(n({}, e), ((o = {})[i.trim()] = a, o));\n }\n return e;\n }, {});\n }(e);\n case \"integerOrBoolean\":\n return null !== (s = i(e)) && void 0 !== s ? s : r(e);\n case \"stringOrBoolean\":\n return null !== (u = o(e)) && void 0 !== u ? u : r(e);\n default:\n throw new Error(\"Invalid attribute transformation \" + t);\n }\n }, t.loadOptionsFromAttributes = function (e, o) {\n return Object.keys(o).reduce(function (r, i) {\n var a;\n return n(n({}, r), ((a = {})[i] = t.transformAttributeValue(e.getAttribute(\"data-tf-\" + t.camelCaseToKebabCase(i)), o[i]), a));\n }, {});\n };\n },\n 318: function (e, t, n) {\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.makeAutoResize = void 0;\n var o = n(563);\n t.makeAutoResize = function (e) {\n return function () {\n e && o.isMobile() && e.style.setProperty(\"height\", window.innerHeight + \"px\", \"important\");\n };\n };\n },\n 563: function (e, t) {\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.isFullscreen = t.isMobile = t.isBigScreen = void 0, t.isBigScreen = function () {\n return window.screen.width >= 1024 && window.screen.height >= 768;\n }, t.isMobile = function () {\n return /mobile|tablet|android/i.test(navigator.userAgent.toLowerCase());\n }, t.isFullscreen = function () {\n return t.isMobile() && !t.isBigScreen();\n };\n },\n 527: function (e, t, n) {\n var o = this && this.__assign || function () {\n return (o = Object.assign || function (e) {\n for (var t, n = 1, o = arguments.length; n < o; n++) for (var r in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);\n return e;\n }).apply(this, arguments);\n };\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.removeUndefinedKeys = void 0;\n var r = n(346);\n t.removeUndefinedKeys = function (e) {\n return Object.entries(e).filter(function (e) {\n var t = e[1];\n return r.isDefined(t);\n }).reduce(function (e, t) {\n var n,\n r = t[0],\n i = t[1];\n return o(o({}, e), ((n = {})[r] = i, n));\n }, {});\n };\n },\n 748: function (e, t, n) {\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.setAutoClose = void 0;\n var o = n(554);\n t.setAutoClose = function (e, t, n) {\n if (t && n) {\n var r = \"number\" == typeof t ? t : 0;\n window.addEventListener(\"message\", o.getFormSubmitHandler(e, function () {\n return setTimeout(n, r);\n }));\n }\n };\n },\n 533: function (e, t) {\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.setElementSize = void 0, t.setElementSize = function (e, t) {\n var n = t.width,\n o = t.height;\n return n && (e.style.width = n + \"px\"), o && (e.style.height = o + \"px\"), e;\n };\n },\n 392: function (e, t) {\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.setupGaInstance = t.sendGaIdMessage = void 0, t.sendGaIdMessage = function (e, t, n) {\n var o = {\n embedId: e,\n gaClientId: t\n };\n setTimeout(function () {\n n && n.contentWindow && n.contentWindow.postMessage({\n type: \"ga-client-id\",\n data: o\n }, \"*\");\n }, 0);\n };\n var n = function (e) {\n console.error(e);\n };\n t.setupGaInstance = function (e, o, r) {\n try {\n var i = window[window.GoogleAnalyticsObject],\n a = \"string\" == typeof r ? r : void 0,\n s = function (e, t) {\n return t ? e.find(function (e) {\n return e.get(\"trackingId\") === t;\n }) : e[0];\n }(i.getAll(), a);\n s ? t.sendGaIdMessage(o, s.get(\"clientId\"), e) : n(\"Whoops! You enabled the shareGaInstance feature in your typeform embed but the tracker with ID \" + a + \" was not found. Make sure to include Google Analytics Javascript code before the Typeform Embed Javascript code in your page and use correct tracker ID. \");\n } catch (e) {\n n(\"Whoops! You enabled the shareGaInstance feature in your typeform embed but the Google Analytics object has not been found. Make sure to include Google Analytics Javascript code before the Typeform Embed Javascript code in your page. \"), n(e);\n }\n };\n },\n 451: function (e, t) {\n Object.defineProperty(t, \"__esModule\", {\n value: !0\n }), t.unmountElement = void 0, t.unmountElement = function (e) {\n var t;\n null === (t = e.parentNode) || void 0 === t || t.removeChild(e);\n };\n }\n },\n t = {};\n return function n(o) {\n if (t[o]) return t[o].exports;\n var r = t[o] = {\n exports: {}\n };\n return e[o].call(r.exports, r, r.exports, n), r.exports;\n }(920);\n }();\n },\n 297: function (t) {\n \"use strict\";\n\n t.exports = e;\n }\n },\n n = {};\n function o(e) {\n if (n[e]) return n[e].exports;\n var r = n[e] = {\n exports: {}\n };\n return t[e].call(r.exports, r, r.exports, o), r.exports;\n }\n return o.g = function () {\n if (\"object\" == typeof globalThis) return globalThis;\n try {\n return this || new Function(\"return this\")();\n } catch (e) {\n if (\"object\" == typeof window) return window;\n }\n }(), o.o = function (e, t) {\n return Object.prototype.hasOwnProperty.call(e, t);\n }, o.r = function (e) {\n \"undefined\" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {\n value: \"Module\"\n }), Object.defineProperty(e, \"__esModule\", {\n value: !0\n });\n }, o(582);\n }();\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _players = _interopRequireDefault(require(\"./players\"));\nvar _ReactPlayer = require(\"./ReactPlayer\");\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\n\n// Fall back to FilePlayer if nothing else can play the URL\nvar fallback = _players[\"default\"][_players[\"default\"].length - 1];\nvar _default = (0, _ReactPlayer.createReactPlayer)(_players[\"default\"], fallback);\nexports[\"default\"] = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"Chart\", {\n enumerable: true,\n get: function get() {\n return _chart[\"default\"];\n }\n});\nexports.defaults = exports.Scatter = exports.Bubble = exports.Polar = exports.Radar = exports.HorizontalBar = exports.Bar = exports.Line = exports.Pie = exports.Doughnut = exports[\"default\"] = void 0;\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\nvar _chart = _interopRequireDefault(require(\"chart.js\"));\nvar _isEqual = _interopRequireDefault(require(\"lodash/isEqual\"));\nvar _keyBy = _interopRequireDefault(require(\"lodash/keyBy\"));\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n return _typeof(obj);\n}\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = _objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n return target;\n}\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}\nfunction _createSuper(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct();\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n return _possibleConstructorReturn(this, result);\n };\n}\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n return _assertThisInitialized(self);\n}\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}\nfunction _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n try {\n Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nvar NODE_ENV = typeof process !== 'undefined' && process.env && process.env.NODE_ENV;\nvar ChartComponent = /*#__PURE__*/function (_React$Component) {\n _inherits(ChartComponent, _React$Component);\n var _super = _createSuper(ChartComponent);\n function ChartComponent() {\n var _this;\n _classCallCheck(this, ChartComponent);\n _this = _super.call(this);\n _defineProperty(_assertThisInitialized(_this), \"handleOnClick\", function (event) {\n var instance = _this.chartInstance;\n var _this$props = _this.props,\n getDatasetAtEvent = _this$props.getDatasetAtEvent,\n getElementAtEvent = _this$props.getElementAtEvent,\n getElementsAtEvent = _this$props.getElementsAtEvent,\n onElementsClick = _this$props.onElementsClick;\n getDatasetAtEvent && getDatasetAtEvent(instance.getDatasetAtEvent(event), event);\n getElementAtEvent && getElementAtEvent(instance.getElementAtEvent(event), event);\n getElementsAtEvent && getElementsAtEvent(instance.getElementsAtEvent(event), event);\n onElementsClick && onElementsClick(instance.getElementsAtEvent(event), event); // Backward compatibility\n });\n\n _defineProperty(_assertThisInitialized(_this), \"ref\", function (element) {\n _this.element = element;\n });\n _this.chartInstance = undefined;\n return _this;\n }\n _createClass(ChartComponent, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.renderChart();\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate() {\n if (this.props.redraw) {\n this.destroyChart();\n this.renderChart();\n return;\n }\n this.updateChart();\n }\n }, {\n key: \"shouldComponentUpdate\",\n value: function shouldComponentUpdate(nextProps) {\n var _this$props2 = this.props,\n redraw = _this$props2.redraw,\n type = _this$props2.type,\n options = _this$props2.options,\n plugins = _this$props2.plugins,\n legend = _this$props2.legend,\n height = _this$props2.height,\n width = _this$props2.width;\n if (nextProps.redraw === true) {\n return true;\n }\n if (height !== nextProps.height || width !== nextProps.width) {\n return true;\n }\n if (type !== nextProps.type) {\n return true;\n }\n if (!(0, _isEqual[\"default\"])(legend, nextProps.legend)) {\n return true;\n }\n if (!(0, _isEqual[\"default\"])(options, nextProps.options)) {\n return true;\n }\n var nextData = this.transformDataProp(nextProps);\n if (!(0, _isEqual[\"default\"])(this.shadowDataProp, nextData)) {\n return true;\n }\n return !(0, _isEqual[\"default\"])(plugins, nextProps.plugins);\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.destroyChart();\n }\n }, {\n key: \"transformDataProp\",\n value: function transformDataProp(props) {\n var data = props.data;\n if (typeof data == 'function') {\n var node = this.element;\n return data(node);\n } else {\n return data;\n }\n } // Chart.js directly mutates the data.dataset objects by adding _meta proprerty\n // this makes impossible to compare the current and next data changes\n // therefore we memoize the data prop while sending a fake to Chart.js for mutation.\n // see https://github.com/chartjs/Chart.js/blob/master/src/core/core.controller.js#L615-L617\n }, {\n key: \"memoizeDataProps\",\n value: function memoizeDataProps() {\n if (!this.props.data) {\n return;\n }\n var data = this.transformDataProp(this.props);\n this.shadowDataProp = _objectSpread(_objectSpread({}, data), {}, {\n datasets: data.datasets && data.datasets.map(function (set) {\n return _objectSpread({}, set);\n })\n });\n this.saveCurrentDatasets(); // to remove the dataset metadata from this chart when the chart is destroyed\n\n return data;\n }\n }, {\n key: \"checkDatasets\",\n value: function checkDatasets(datasets) {\n var isDev = NODE_ENV !== 'production' && NODE_ENV !== 'prod';\n var usingCustomKeyProvider = this.props.datasetKeyProvider !== ChartComponent.getLabelAsKey;\n var multipleDatasets = datasets.length > 1;\n if (isDev && multipleDatasets && !usingCustomKeyProvider) {\n var shouldWarn = false;\n datasets.forEach(function (dataset) {\n if (!dataset.label) {\n shouldWarn = true;\n }\n });\n if (shouldWarn) {\n console.error('[react-chartjs-2] Warning: Each dataset needs a unique key. By default, the \"label\" property on each dataset is used. Alternatively, you may provide a \"datasetKeyProvider\" as a prop that returns a unique key.');\n }\n }\n }\n }, {\n key: \"getCurrentDatasets\",\n value: function getCurrentDatasets() {\n return this.chartInstance && this.chartInstance.config.data && this.chartInstance.config.data.datasets || [];\n }\n }, {\n key: \"saveCurrentDatasets\",\n value: function saveCurrentDatasets() {\n var _this2 = this;\n this.datasets = this.datasets || {};\n var currentDatasets = this.getCurrentDatasets();\n currentDatasets.forEach(function (d) {\n _this2.datasets[_this2.props.datasetKeyProvider(d)] = d;\n });\n }\n }, {\n key: \"updateChart\",\n value: function updateChart() {\n var _this3 = this;\n var options = this.props.options;\n var data = this.memoizeDataProps(this.props);\n if (!this.chartInstance) return;\n if (options) {\n this.chartInstance.options = _chart[\"default\"].helpers.configMerge(this.chartInstance.options, options);\n } // Pipe datasets to chart instance datasets enabling\n // seamless transitions\n\n var currentDatasets = this.getCurrentDatasets();\n var nextDatasets = data.datasets || [];\n this.checkDatasets(currentDatasets);\n var currentDatasetsIndexed = (0, _keyBy[\"default\"])(currentDatasets, this.props.datasetKeyProvider); // We can safely replace the dataset array, as long as we retain the _meta property\n // on each dataset.\n\n this.chartInstance.config.data.datasets = nextDatasets.map(function (next) {\n var current = currentDatasetsIndexed[_this3.props.datasetKeyProvider(next)];\n if (current && current.type === next.type && next.data) {\n // Be robust to no data. Relevant for other update mechanisms as in chartjs-plugin-streaming.\n // The data array must be edited in place. As chart.js adds listeners to it.\n current.data.splice(next.data.length);\n next.data.forEach(function (point, pid) {\n current.data[pid] = next.data[pid];\n });\n var _data = next.data,\n otherProps = _objectWithoutProperties(next, [\"data\"]); // Merge properties. Notice a weakness here. If a property is removed\n // from next, it will be retained by current and never disappears.\n // Workaround is to set value to null or undefined in next.\n\n return _objectSpread(_objectSpread({}, current), otherProps);\n } else {\n return next;\n }\n });\n var datasets = data.datasets,\n rest = _objectWithoutProperties(data, [\"datasets\"]);\n this.chartInstance.config.data = _objectSpread(_objectSpread({}, this.chartInstance.config.data), rest);\n this.chartInstance.update();\n }\n }, {\n key: \"renderChart\",\n value: function renderChart() {\n var _this$props3 = this.props,\n options = _this$props3.options,\n legend = _this$props3.legend,\n type = _this$props3.type,\n plugins = _this$props3.plugins;\n var node = this.element;\n var data = this.memoizeDataProps();\n if (typeof legend !== 'undefined' && !(0, _isEqual[\"default\"])(ChartComponent.defaultProps.legend, legend)) {\n options.legend = legend;\n }\n this.chartInstance = new _chart[\"default\"](node, {\n type: type,\n data: data,\n options: options,\n plugins: plugins\n });\n }\n }, {\n key: \"destroyChart\",\n value: function destroyChart() {\n if (!this.chartInstance) {\n return;\n } // Put all of the datasets that have existed in the chart back on the chart\n // so that the metadata associated with this chart get destroyed.\n // This allows the datasets to be used in another chart. This can happen,\n // for example, in a tabbed UI where the chart gets created each time the\n // tab gets switched to the chart and uses the same data).\n\n this.saveCurrentDatasets();\n var datasets = Object.values(this.datasets);\n this.chartInstance.config.data.datasets = datasets;\n this.chartInstance.destroy();\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this$props4 = this.props,\n height = _this$props4.height,\n width = _this$props4.width,\n id = _this$props4.id;\n return /*#__PURE__*/_react[\"default\"].createElement(\"canvas\", {\n ref: this.ref,\n height: height,\n width: width,\n id: id,\n onClick: this.handleOnClick\n });\n }\n }]);\n return ChartComponent;\n}(_react[\"default\"].Component);\n_defineProperty(ChartComponent, \"getLabelAsKey\", function (d) {\n return d.label;\n});\n_defineProperty(ChartComponent, \"propTypes\", {\n data: _propTypes[\"default\"].oneOfType([_propTypes[\"default\"].object, _propTypes[\"default\"].func]).isRequired,\n getDatasetAtEvent: _propTypes[\"default\"].func,\n getElementAtEvent: _propTypes[\"default\"].func,\n getElementsAtEvent: _propTypes[\"default\"].func,\n height: _propTypes[\"default\"].number,\n legend: _propTypes[\"default\"].object,\n onElementsClick: _propTypes[\"default\"].func,\n options: _propTypes[\"default\"].object,\n plugins: _propTypes[\"default\"].arrayOf(_propTypes[\"default\"].object),\n redraw: _propTypes[\"default\"].bool,\n type: function type(props, propName, componentName) {\n if (!_chart[\"default\"].controllers[props[propName]]) {\n return new Error('Invalid chart type `' + props[propName] + '` supplied to' + ' `' + componentName + '`.');\n }\n },\n width: _propTypes[\"default\"].number,\n datasetKeyProvider: _propTypes[\"default\"].func\n});\n_defineProperty(ChartComponent, \"defaultProps\", {\n legend: {\n display: true,\n position: 'bottom'\n },\n type: 'doughnut',\n height: 150,\n width: 300,\n redraw: false,\n options: {},\n datasetKeyProvider: ChartComponent.getLabelAsKey\n});\nvar _default = ChartComponent;\nexports[\"default\"] = _default;\nvar Doughnut = /*#__PURE__*/function (_React$Component2) {\n _inherits(Doughnut, _React$Component2);\n var _super2 = _createSuper(Doughnut);\n function Doughnut() {\n _classCallCheck(this, Doughnut);\n return _super2.apply(this, arguments);\n }\n _createClass(Doughnut, [{\n key: \"render\",\n value: function render() {\n var _this4 = this;\n return /*#__PURE__*/_react[\"default\"].createElement(ChartComponent, _extends({}, this.props, {\n ref: function ref(_ref) {\n return _this4.chartInstance = _ref && _ref.chartInstance;\n },\n type: \"doughnut\"\n }));\n }\n }]);\n return Doughnut;\n}(_react[\"default\"].Component);\nexports.Doughnut = Doughnut;\nvar Pie = /*#__PURE__*/function (_React$Component3) {\n _inherits(Pie, _React$Component3);\n var _super3 = _createSuper(Pie);\n function Pie() {\n _classCallCheck(this, Pie);\n return _super3.apply(this, arguments);\n }\n _createClass(Pie, [{\n key: \"render\",\n value: function render() {\n var _this5 = this;\n return /*#__PURE__*/_react[\"default\"].createElement(ChartComponent, _extends({}, this.props, {\n ref: function ref(_ref2) {\n return _this5.chartInstance = _ref2 && _ref2.chartInstance;\n },\n type: \"pie\"\n }));\n }\n }]);\n return Pie;\n}(_react[\"default\"].Component);\nexports.Pie = Pie;\nvar Line = /*#__PURE__*/function (_React$Component4) {\n _inherits(Line, _React$Component4);\n var _super4 = _createSuper(Line);\n function Line() {\n _classCallCheck(this, Line);\n return _super4.apply(this, arguments);\n }\n _createClass(Line, [{\n key: \"render\",\n value: function render() {\n var _this6 = this;\n return /*#__PURE__*/_react[\"default\"].createElement(ChartComponent, _extends({}, this.props, {\n ref: function ref(_ref3) {\n return _this6.chartInstance = _ref3 && _ref3.chartInstance;\n },\n type: \"line\"\n }));\n }\n }]);\n return Line;\n}(_react[\"default\"].Component);\nexports.Line = Line;\nvar Bar = /*#__PURE__*/function (_React$Component5) {\n _inherits(Bar, _React$Component5);\n var _super5 = _createSuper(Bar);\n function Bar() {\n _classCallCheck(this, Bar);\n return _super5.apply(this, arguments);\n }\n _createClass(Bar, [{\n key: \"render\",\n value: function render() {\n var _this7 = this;\n return /*#__PURE__*/_react[\"default\"].createElement(ChartComponent, _extends({}, this.props, {\n ref: function ref(_ref4) {\n return _this7.chartInstance = _ref4 && _ref4.chartInstance;\n },\n type: \"bar\"\n }));\n }\n }]);\n return Bar;\n}(_react[\"default\"].Component);\nexports.Bar = Bar;\nvar HorizontalBar = /*#__PURE__*/function (_React$Component6) {\n _inherits(HorizontalBar, _React$Component6);\n var _super6 = _createSuper(HorizontalBar);\n function HorizontalBar() {\n _classCallCheck(this, HorizontalBar);\n return _super6.apply(this, arguments);\n }\n _createClass(HorizontalBar, [{\n key: \"render\",\n value: function render() {\n var _this8 = this;\n return /*#__PURE__*/_react[\"default\"].createElement(ChartComponent, _extends({}, this.props, {\n ref: function ref(_ref5) {\n return _this8.chartInstance = _ref5 && _ref5.chartInstance;\n },\n type: \"horizontalBar\"\n }));\n }\n }]);\n return HorizontalBar;\n}(_react[\"default\"].Component);\nexports.HorizontalBar = HorizontalBar;\nvar Radar = /*#__PURE__*/function (_React$Component7) {\n _inherits(Radar, _React$Component7);\n var _super7 = _createSuper(Radar);\n function Radar() {\n _classCallCheck(this, Radar);\n return _super7.apply(this, arguments);\n }\n _createClass(Radar, [{\n key: \"render\",\n value: function render() {\n var _this9 = this;\n return /*#__PURE__*/_react[\"default\"].createElement(ChartComponent, _extends({}, this.props, {\n ref: function ref(_ref6) {\n return _this9.chartInstance = _ref6 && _ref6.chartInstance;\n },\n type: \"radar\"\n }));\n }\n }]);\n return Radar;\n}(_react[\"default\"].Component);\nexports.Radar = Radar;\nvar Polar = /*#__PURE__*/function (_React$Component8) {\n _inherits(Polar, _React$Component8);\n var _super8 = _createSuper(Polar);\n function Polar() {\n _classCallCheck(this, Polar);\n return _super8.apply(this, arguments);\n }\n _createClass(Polar, [{\n key: \"render\",\n value: function render() {\n var _this10 = this;\n return /*#__PURE__*/_react[\"default\"].createElement(ChartComponent, _extends({}, this.props, {\n ref: function ref(_ref7) {\n return _this10.chartInstance = _ref7 && _ref7.chartInstance;\n },\n type: \"polarArea\"\n }));\n }\n }]);\n return Polar;\n}(_react[\"default\"].Component);\nexports.Polar = Polar;\nvar Bubble = /*#__PURE__*/function (_React$Component9) {\n _inherits(Bubble, _React$Component9);\n var _super9 = _createSuper(Bubble);\n function Bubble() {\n _classCallCheck(this, Bubble);\n return _super9.apply(this, arguments);\n }\n _createClass(Bubble, [{\n key: \"render\",\n value: function render() {\n var _this11 = this;\n return /*#__PURE__*/_react[\"default\"].createElement(ChartComponent, _extends({}, this.props, {\n ref: function ref(_ref8) {\n return _this11.chartInstance = _ref8 && _ref8.chartInstance;\n },\n type: \"bubble\"\n }));\n }\n }]);\n return Bubble;\n}(_react[\"default\"].Component);\nexports.Bubble = Bubble;\nvar Scatter = /*#__PURE__*/function (_React$Component10) {\n _inherits(Scatter, _React$Component10);\n var _super10 = _createSuper(Scatter);\n function Scatter() {\n _classCallCheck(this, Scatter);\n return _super10.apply(this, arguments);\n }\n _createClass(Scatter, [{\n key: \"render\",\n value: function render() {\n var _this12 = this;\n return /*#__PURE__*/_react[\"default\"].createElement(ChartComponent, _extends({}, this.props, {\n ref: function ref(_ref9) {\n return _this12.chartInstance = _ref9 && _ref9.chartInstance;\n },\n type: \"scatter\"\n }));\n }\n }]);\n return Scatter;\n}(_react[\"default\"].Component);\nexports.Scatter = Scatter;\nvar defaults = _chart[\"default\"].defaults;\nexports.defaults = defaults;","var isarray = require('isarray');\n\n/**\n * Expose `pathToRegexp`.\n */\nmodule.exports = pathToRegexp;\nmodule.exports.parse = parse;\nmodule.exports.compile = compile;\nmodule.exports.tokensToFunction = tokensToFunction;\nmodule.exports.tokensToRegExp = tokensToRegExp;\n\n/**\n * The main path matching regexp utility.\n *\n * @type {RegExp}\n */\nvar PATH_REGEXP = new RegExp([\n// Match escaped characters that would otherwise appear in future matches.\n// This allows the user to escape special characters that won't transform.\n'(\\\\\\\\.)',\n// Match Express-style parameters and un-named parameters with a prefix\n// and optional suffixes. Matches appear as:\n//\n// \"/:test(\\\\d+)?\" => [\"/\", \"test\", \"\\d+\", undefined, \"?\", undefined]\n// \"/route(\\\\d+)\" => [undefined, undefined, undefined, \"\\d+\", undefined, undefined]\n// \"/*\" => [\"/\", undefined, undefined, undefined, undefined, \"*\"]\n'([\\\\/.])?(?:(?:\\\\:(\\\\w+)(?:\\\\(((?:\\\\\\\\.|[^\\\\\\\\()])+)\\\\))?|\\\\(((?:\\\\\\\\.|[^\\\\\\\\()])+)\\\\))([+*?])?|(\\\\*))'].join('|'), 'g');\n\n/**\n * Parse a string for the raw tokens.\n *\n * @param {string} str\n * @param {Object=} options\n * @return {!Array}\n */\nfunction parse(str, options) {\n var tokens = [];\n var key = 0;\n var index = 0;\n var path = '';\n var defaultDelimiter = options && options.delimiter || '/';\n var res;\n while ((res = PATH_REGEXP.exec(str)) != null) {\n var m = res[0];\n var escaped = res[1];\n var offset = res.index;\n path += str.slice(index, offset);\n index = offset + m.length;\n\n // Ignore already escaped sequences.\n if (escaped) {\n path += escaped[1];\n continue;\n }\n var next = str[index];\n var prefix = res[2];\n var name = res[3];\n var capture = res[4];\n var group = res[5];\n var modifier = res[6];\n var asterisk = res[7];\n\n // Push the current path onto the tokens.\n if (path) {\n tokens.push(path);\n path = '';\n }\n var partial = prefix != null && next != null && next !== prefix;\n var repeat = modifier === '+' || modifier === '*';\n var optional = modifier === '?' || modifier === '*';\n var delimiter = res[2] || defaultDelimiter;\n var pattern = capture || group;\n tokens.push({\n name: name || key++,\n prefix: prefix || '',\n delimiter: delimiter,\n optional: optional,\n repeat: repeat,\n partial: partial,\n asterisk: !!asterisk,\n pattern: pattern ? escapeGroup(pattern) : asterisk ? '.*' : '[^' + escapeString(delimiter) + ']+?'\n });\n }\n\n // Match any characters still remaining.\n if (index < str.length) {\n path += str.substr(index);\n }\n\n // If the path exists, push it onto the end.\n if (path) {\n tokens.push(path);\n }\n return tokens;\n}\n\n/**\n * Compile a string to a template function for the path.\n *\n * @param {string} str\n * @param {Object=} options\n * @return {!function(Object=, Object=)}\n */\nfunction compile(str, options) {\n return tokensToFunction(parse(str, options), options);\n}\n\n/**\n * Prettier encoding of URI path segments.\n *\n * @param {string}\n * @return {string}\n */\nfunction encodeURIComponentPretty(str) {\n return encodeURI(str).replace(/[\\/?#]/g, function (c) {\n return '%' + c.charCodeAt(0).toString(16).toUpperCase();\n });\n}\n\n/**\n * Encode the asterisk parameter. Similar to `pretty`, but allows slashes.\n *\n * @param {string}\n * @return {string}\n */\nfunction encodeAsterisk(str) {\n return encodeURI(str).replace(/[?#]/g, function (c) {\n return '%' + c.charCodeAt(0).toString(16).toUpperCase();\n });\n}\n\n/**\n * Expose a method for transforming tokens into the path function.\n */\nfunction tokensToFunction(tokens, options) {\n // Compile all the tokens into regexps.\n var matches = new Array(tokens.length);\n\n // Compile all the patterns before compilation.\n for (var i = 0; i < tokens.length; i++) {\n if (typeof tokens[i] === 'object') {\n matches[i] = new RegExp('^(?:' + tokens[i].pattern + ')$', flags(options));\n }\n }\n return function (obj, opts) {\n var path = '';\n var data = obj || {};\n var options = opts || {};\n var encode = options.pretty ? encodeURIComponentPretty : encodeURIComponent;\n for (var i = 0; i < tokens.length; i++) {\n var token = tokens[i];\n if (typeof token === 'string') {\n path += token;\n continue;\n }\n var value = data[token.name];\n var segment;\n if (value == null) {\n if (token.optional) {\n // Prepend partial segment prefixes.\n if (token.partial) {\n path += token.prefix;\n }\n continue;\n } else {\n throw new TypeError('Expected \"' + token.name + '\" to be defined');\n }\n }\n if (isarray(value)) {\n if (!token.repeat) {\n throw new TypeError('Expected \"' + token.name + '\" to not repeat, but received `' + JSON.stringify(value) + '`');\n }\n if (value.length === 0) {\n if (token.optional) {\n continue;\n } else {\n throw new TypeError('Expected \"' + token.name + '\" to not be empty');\n }\n }\n for (var j = 0; j < value.length; j++) {\n segment = encode(value[j]);\n if (!matches[i].test(segment)) {\n throw new TypeError('Expected all \"' + token.name + '\" to match \"' + token.pattern + '\", but received `' + JSON.stringify(segment) + '`');\n }\n path += (j === 0 ? token.prefix : token.delimiter) + segment;\n }\n continue;\n }\n segment = token.asterisk ? encodeAsterisk(value) : encode(value);\n if (!matches[i].test(segment)) {\n throw new TypeError('Expected \"' + token.name + '\" to match \"' + token.pattern + '\", but received \"' + segment + '\"');\n }\n path += token.prefix + segment;\n }\n return path;\n };\n}\n\n/**\n * Escape a regular expression string.\n *\n * @param {string} str\n * @return {string}\n */\nfunction escapeString(str) {\n return str.replace(/([.+*?=^!:${}()[\\]|\\/\\\\])/g, '\\\\$1');\n}\n\n/**\n * Escape the capturing group by escaping special characters and meaning.\n *\n * @param {string} group\n * @return {string}\n */\nfunction escapeGroup(group) {\n return group.replace(/([=!:$\\/()])/g, '\\\\$1');\n}\n\n/**\n * Attach the keys as a property of the regexp.\n *\n * @param {!RegExp} re\n * @param {Array} keys\n * @return {!RegExp}\n */\nfunction attachKeys(re, keys) {\n re.keys = keys;\n return re;\n}\n\n/**\n * Get the flags for a regexp from the options.\n *\n * @param {Object} options\n * @return {string}\n */\nfunction flags(options) {\n return options && options.sensitive ? '' : 'i';\n}\n\n/**\n * Pull out keys from a regexp.\n *\n * @param {!RegExp} path\n * @param {!Array} keys\n * @return {!RegExp}\n */\nfunction regexpToRegexp(path, keys) {\n // Use a negative lookahead to match only capturing groups.\n var groups = path.source.match(/\\((?!\\?)/g);\n if (groups) {\n for (var i = 0; i < groups.length; i++) {\n keys.push({\n name: i,\n prefix: null,\n delimiter: null,\n optional: false,\n repeat: false,\n partial: false,\n asterisk: false,\n pattern: null\n });\n }\n }\n return attachKeys(path, keys);\n}\n\n/**\n * Transform an array into a regexp.\n *\n * @param {!Array} path\n * @param {Array} keys\n * @param {!Object} options\n * @return {!RegExp}\n */\nfunction arrayToRegexp(path, keys, options) {\n var parts = [];\n for (var i = 0; i < path.length; i++) {\n parts.push(pathToRegexp(path[i], keys, options).source);\n }\n var regexp = new RegExp('(?:' + parts.join('|') + ')', flags(options));\n return attachKeys(regexp, keys);\n}\n\n/**\n * Create a path regexp from string input.\n *\n * @param {string} path\n * @param {!Array} keys\n * @param {!Object} options\n * @return {!RegExp}\n */\nfunction stringToRegexp(path, keys, options) {\n return tokensToRegExp(parse(path, options), keys, options);\n}\n\n/**\n * Expose a function for taking tokens and returning a RegExp.\n *\n * @param {!Array} tokens\n * @param {(Array|Object)=} keys\n * @param {Object=} options\n * @return {!RegExp}\n */\nfunction tokensToRegExp(tokens, keys, options) {\n if (!isarray(keys)) {\n options = /** @type {!Object} */keys || options;\n keys = [];\n }\n options = options || {};\n var strict = options.strict;\n var end = options.end !== false;\n var route = '';\n\n // Iterate over the tokens and create our regexp string.\n for (var i = 0; i < tokens.length; i++) {\n var token = tokens[i];\n if (typeof token === 'string') {\n route += escapeString(token);\n } else {\n var prefix = escapeString(token.prefix);\n var capture = '(?:' + token.pattern + ')';\n keys.push(token);\n if (token.repeat) {\n capture += '(?:' + prefix + capture + ')*';\n }\n if (token.optional) {\n if (!token.partial) {\n capture = '(?:' + prefix + '(' + capture + '))?';\n } else {\n capture = prefix + '(' + capture + ')?';\n }\n } else {\n capture = prefix + '(' + capture + ')';\n }\n route += capture;\n }\n }\n var delimiter = escapeString(options.delimiter || '/');\n var endsWithDelimiter = route.slice(-delimiter.length) === delimiter;\n\n // In non-strict mode we allow a slash at the end of match. If the path to\n // match already ends with a slash, we remove it for consistency. The slash\n // is valid at the end of a path match, not in the middle. This is important\n // in non-ending mode, where \"/test/\" shouldn't match \"/test//route\".\n if (!strict) {\n route = (endsWithDelimiter ? route.slice(0, -delimiter.length) : route) + '(?:' + delimiter + '(?=$))?';\n }\n if (end) {\n route += '$';\n } else {\n // In non-ending mode, we need the capturing groups to match as much as\n // possible by using a positive lookahead to the end or next path segment.\n route += strict && endsWithDelimiter ? '' : '(?=' + delimiter + '|$)';\n }\n return attachKeys(new RegExp('^' + route, flags(options)), keys);\n}\n\n/**\n * Normalize the given path string, returning a regular expression.\n *\n * An empty array can be passed in for the keys, which will hold the\n * placeholder key descriptions. For example, using `/user/:id`, `keys` will\n * contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.\n *\n * @param {(string|RegExp|Array)} path\n * @param {(Array|Object)=} keys\n * @param {Object=} options\n * @return {!RegExp}\n */\nfunction pathToRegexp(path, keys, options) {\n if (!isarray(keys)) {\n options = /** @type {!Object} */keys || options;\n keys = [];\n }\n options = options || {};\n if (path instanceof RegExp) {\n return regexpToRegexp(path, /** @type {!Array} */keys);\n }\n if (isarray(path)) {\n return arrayToRegexp( /** @type {!Array} */path, /** @type {!Array} */keys, options);\n }\n return stringToRegexp( /** @type {string} */path, /** @type {!Array} */keys, options);\n}","'use strict';\n\n/**\n * Copyright 2015, Yahoo! Inc.\n * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\nvar REACT_STATICS = {\n childContextTypes: true,\n contextTypes: true,\n defaultProps: true,\n displayName: true,\n getDefaultProps: true,\n getDerivedStateFromProps: true,\n mixins: true,\n propTypes: true,\n type: true\n};\nvar KNOWN_STATICS = {\n name: true,\n length: true,\n prototype: true,\n caller: true,\n callee: true,\n arguments: true,\n arity: true\n};\nvar defineProperty = Object.defineProperty;\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar objectPrototype = getPrototypeOf && getPrototypeOf(Object);\nfunction hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {\n if (typeof sourceComponent !== 'string') {\n // don't hoist over string (html) components\n\n if (objectPrototype) {\n var inheritedComponent = getPrototypeOf(sourceComponent);\n if (inheritedComponent && inheritedComponent !== objectPrototype) {\n hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);\n }\n }\n var keys = getOwnPropertyNames(sourceComponent);\n if (getOwnPropertySymbols) {\n keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n }\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n if (!REACT_STATICS[key] && !KNOWN_STATICS[key] && (!blacklist || !blacklist[key])) {\n var descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n try {\n // Avoid failures from read-only properties\n defineProperty(targetComponent, key, descriptor);\n } catch (e) {}\n }\n }\n return targetComponent;\n }\n return targetComponent;\n}\nmodule.exports = hoistNonReactStatics;","'use strict';\n\nvar reactIs = require('react-is');\n\n/**\n * Copyright 2015, Yahoo! Inc.\n * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\nvar REACT_STATICS = {\n childContextTypes: true,\n contextType: true,\n contextTypes: true,\n defaultProps: true,\n displayName: true,\n getDefaultProps: true,\n getDerivedStateFromError: true,\n getDerivedStateFromProps: true,\n mixins: true,\n propTypes: true,\n type: true\n};\nvar KNOWN_STATICS = {\n name: true,\n length: true,\n prototype: true,\n caller: true,\n callee: true,\n arguments: true,\n arity: true\n};\nvar FORWARD_REF_STATICS = {\n '$$typeof': true,\n render: true,\n defaultProps: true,\n displayName: true,\n propTypes: true\n};\nvar MEMO_STATICS = {\n '$$typeof': true,\n compare: true,\n defaultProps: true,\n displayName: true,\n propTypes: true,\n type: true\n};\nvar TYPE_STATICS = {};\nTYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;\nTYPE_STATICS[reactIs.Memo] = MEMO_STATICS;\nfunction getStatics(component) {\n // React v16.11 and below\n if (reactIs.isMemo(component)) {\n return MEMO_STATICS;\n } // React v16.12 and above\n\n return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;\n}\nvar defineProperty = Object.defineProperty;\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar objectPrototype = Object.prototype;\nfunction hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {\n if (typeof sourceComponent !== 'string') {\n // don't hoist over string (html) components\n if (objectPrototype) {\n var inheritedComponent = getPrototypeOf(sourceComponent);\n if (inheritedComponent && inheritedComponent !== objectPrototype) {\n hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);\n }\n }\n var keys = getOwnPropertyNames(sourceComponent);\n if (getOwnPropertySymbols) {\n keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n }\n var targetStatics = getStatics(targetComponent);\n var sourceStatics = getStatics(sourceComponent);\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {\n var descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n try {\n // Avoid failures from read-only properties\n defineProperty(targetComponent, key, descriptor);\n } catch (e) {}\n }\n }\n }\n return targetComponent;\n}\nmodule.exports = hoistNonReactStatics;","var isObject = require('is-object');\nvar isWindow = require('is-window');\nfunction isNode(val) {\n if (!isObject(val) || !isWindow(window) || typeof window.Node !== 'function') {\n return false;\n }\n return typeof val.nodeType === 'number' && typeof val.nodeName === 'string';\n}\nmodule.exports = isNode;","function ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n })), keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nvar snippet = function snippet(_ref) {\n var orgId = _ref.orgId,\n _ref$namespace = _ref.namespace,\n namespace = _ref$namespace === void 0 ? 'FS' : _ref$namespace,\n _ref$debug = _ref.debug,\n _ref$host = _ref.host,\n host = _ref$host === void 0 ? 'fullstory.com' : _ref$host,\n _ref$script = _ref.script,\n script = _ref$script === void 0 ? 'edge.fullstory.com/s/fs.js' : _ref$script;\n if (!orgId) {\n throw new Error('FullStory orgId is a required parameter');\n }\n window['_fs_host'] = host;\n window['_fs_script'] = script;\n window['_fs_org'] = orgId;\n window['_fs_namespace'] = namespace;\n (function (m, n, e, t, l, o, g, y) {\n if (e in m) {\n if (m.console && m.console.log) {\n m.console.log('FullStory namespace conflict. Please set window[\"_fs_namespace\"].');\n }\n return;\n }\n g = m[e] = function (a, b, s) {\n g.q ? g.q.push([a, b, s]) : g._api(a, b, s);\n };\n g.q = [];\n o = n.createElement(t);\n o.async = 1;\n o.crossOrigin = 'anonymous';\n o.src = 'https://' + _fs_script;\n y = n.getElementsByTagName(t)[0];\n y.parentNode.insertBefore(o, y);\n g.identify = function (i, v, s) {\n g(l, {\n uid: i\n }, s);\n if (v) g(l, v, s);\n };\n g.setUserVars = function (v, s) {\n g(l, v, s);\n };\n g.event = function (i, v, s) {\n g('event', {\n n: i,\n p: v\n }, s);\n };\n g.anonymize = function () {\n g.identify(!!0);\n };\n g.shutdown = function () {\n g(\"rec\", !1);\n };\n g.restart = function () {\n g(\"rec\", !0);\n };\n g.log = function (a, b) {\n g(\"log\", [a, b]);\n };\n g.consent = function (a) {\n g(\"consent\", !arguments.length || a);\n };\n g.identifyAccount = function (i, v) {\n o = 'account';\n v = v || {};\n v.acctId = i;\n g(o, v);\n };\n g.clearUserCookie = function () {};\n g.setVars = function (n, p) {\n g('setVars', [n, p]);\n };\n g._w = {};\n y = 'XMLHttpRequest';\n g._w[y] = m[y];\n y = 'fetch';\n g._w[y] = m[y];\n if (m[y]) m[y] = function () {\n return g._w[y].apply(this, arguments);\n };\n g._v = \"1.3.0\";\n })(window, document, window['_fs_namespace'], 'script', 'user');\n};\nvar fs = function fs() {\n return window[window._fs_namespace];\n};\nvar ensureSnippetLoaded = function ensureSnippetLoaded() {\n var snippetLoaded = !!fs();\n if (!snippetLoaded) {\n throw Error('FullStory is not loaded, please ensure the init function is invoked before calling FullStory API functions');\n }\n};\nvar hasFullStoryWithFunction = function hasFullStoryWithFunction() {\n ensureSnippetLoaded();\n for (var _len = arguments.length, testNames = new Array(_len), _key = 0; _key < _len; _key++) {\n testNames[_key] = arguments[_key];\n }\n return testNames.every(function (current) {\n return fs()[current];\n });\n};\nvar guard = function guard(name) {\n return function () {\n if (window._fs_dev_mode) {\n var message = \"FullStory is in dev mode and is not recording: \".concat(name, \" method not executed\");\n console.warn(message);\n return message;\n }\n if (hasFullStoryWithFunction(name)) {\n var _fs;\n return (_fs = fs())[name].apply(_fs, arguments);\n }\n console.warn(\"FS.\".concat(name, \" not ready\"));\n return null;\n };\n};\nvar event = guard('event');\nvar log = guard('log');\nvar getCurrentSessionURL = guard('getCurrentSessionURL');\nvar identify = guard('identify');\nvar setUserVars = guard('setUserVars');\nvar consent = guard('consent');\nvar shutdown = guard('shutdown');\nvar restart = guard('restart');\nvar anonymize = guard('anonymize');\nvar setVars = guard('setVars');\nvar _init = function _init(inputOptions, readyCallback) {\n var options = _objectSpread2({}, inputOptions);\n if (fs()) {\n console.warn('The FullStory snippet has already been defined elsewhere (likely in the element)');\n return;\n }\n if (options.recordCrossDomainIFrames) {\n window._fs_run_in_iframe = true;\n }\n if (options.recordOnlyThisIFrame) {\n window._fs_is_outer_script = true;\n }\n if (options.debug === true) {\n if (!options.script) {\n options.script = 'edge.fullstory.com/s/fs-debug.js';\n } else {\n console.warn('Ignoring `debug = true` because `script` is set');\n }\n }\n snippet(options);\n if (readyCallback) {\n fs()('observe', {\n type: 'start',\n callback: readyCallback\n });\n }\n if (options.devMode === true) {\n var message = 'FullStory was initialized in devMode and will stop recording';\n event('FullStory Dev Mode', {\n message_str: message\n });\n shutdown();\n window._fs_dev_mode = true;\n console.warn(message);\n }\n};\nvar initOnce = function initOnce(fn, message) {\n return function () {\n if (window._fs_initialized) {\n if (message) console.warn(message);\n return;\n }\n fn.apply(void 0, arguments);\n window._fs_initialized = true;\n };\n};\nvar init = initOnce(_init, 'FullStory init has already been called once, additional invocations are ignored');\nvar isInitialized = function isInitialized() {\n return !!window._fs_initialized;\n};\nexport { anonymize, consent, event, getCurrentSessionURL, identify, init, isInitialized, log, restart, setUserVars, setVars, shutdown };","var styles = {\n \"BodyWrapper\": \"Polaris-Modal__BodyWrapper\",\n \"Body\": \"Polaris-Modal__Body\",\n \"IFrame\": \"Polaris-Modal__IFrame\",\n \"Spinner\": \"Polaris-Modal__Spinner\"\n};\nexport { styles as default };","var styles = {\n \"Container\": \"Polaris-Modal-Dialog__Container\",\n \"Dialog\": \"Polaris-Modal-Dialog\",\n \"Modal\": \"Polaris-Modal-Dialog__Modal\",\n \"limitHeight\": \"Polaris-Modal-Dialog--limitHeight\",\n \"sizeSmall\": \"Polaris-Modal-Dialog--sizeSmall\",\n \"sizeLarge\": \"Polaris-Modal-Dialog--sizeLarge\",\n \"animateFadeUp\": \"Polaris-Modal-Dialog--animateFadeUp\",\n \"entering\": \"Polaris-Modal-Dialog--entering\",\n \"exiting\": \"Polaris-Modal-Dialog--exiting\",\n \"exited\": \"Polaris-Modal-Dialog--exited\",\n \"entered\": \"Polaris-Modal-Dialog--entered\"\n};\nexport { styles as default };","import React, { useRef, useEffect } from 'react';\nimport { durationBase } from '@shopify/polaris-tokens';\nimport { Transition, CSSTransition } from 'react-transition-group';\nimport { classNames } from '../../../../utilities/css.js';\nimport { focusFirstFocusableNode } from '../../../../utilities/focus.js';\nimport { Key } from '../../../../types.js';\nimport styles from './Dialog.scss.js';\nimport { TrapFocus } from '../../../TrapFocus/TrapFocus.js';\nimport { KeypressListener } from '../../../KeypressListener/KeypressListener.js';\nfunction Dialog(_ref) {\n let {\n instant,\n labelledBy,\n children,\n onClose,\n onExited,\n onEntered,\n large,\n small,\n limitHeight,\n ...props\n } = _ref;\n const containerNode = useRef(null);\n const classes = classNames(styles.Modal, small && styles.sizeSmall, large && styles.sizeLarge, limitHeight && styles.limitHeight);\n const TransitionChild = instant ? Transition : FadeUp;\n useEffect(() => {\n containerNode.current && !containerNode.current.contains(document.activeElement) && focusFirstFocusableNode(containerNode.current);\n }, []);\n return /*#__PURE__*/React.createElement(TransitionChild, Object.assign({}, props, {\n nodeRef: containerNode,\n mountOnEnter: true,\n unmountOnExit: true,\n timeout: durationBase,\n onEntered: onEntered,\n onExited: onExited\n }), /*#__PURE__*/React.createElement(\"div\", {\n className: styles.Container,\n \"data-polaris-layer\": true,\n \"data-polaris-overlay\": true,\n ref: containerNode\n }, /*#__PURE__*/React.createElement(TrapFocus, null, /*#__PURE__*/React.createElement(\"div\", {\n role: \"dialog\",\n \"aria-modal\": true,\n \"aria-labelledby\": labelledBy,\n tabIndex: -1,\n className: styles.Dialog\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: classes\n }, /*#__PURE__*/React.createElement(KeypressListener, {\n keyCode: Key.Escape,\n handler: onClose\n }), children)))));\n}\nconst fadeUpClasses = {\n appear: classNames(styles.animateFadeUp, styles.entering),\n appearActive: classNames(styles.animateFadeUp, styles.entered),\n enter: classNames(styles.animateFadeUp, styles.entering),\n enterActive: classNames(styles.animateFadeUp, styles.entered),\n exit: classNames(styles.animateFadeUp, styles.exiting),\n exitActive: classNames(styles.animateFadeUp, styles.exited)\n};\nfunction FadeUp(_ref2) {\n let {\n children,\n ...props\n } = _ref2;\n return /*#__PURE__*/React.createElement(CSSTransition, Object.assign({}, props, {\n classNames: fadeUpClasses\n }), children);\n}\nexport { Dialog };","var styles = {\n \"Header\": \"Polaris-Modal-Header\",\n \"titleHidden\": \"Polaris-Modal-Header--titleHidden\",\n \"Title\": \"Polaris-Modal-Header__Title\"\n};\nexport { styles as default };","var styles = {\n \"CloseButton\": \"Polaris-Modal-CloseButton\"\n};\nexport { styles as default };","import React from 'react';\nimport { MobileCancelMajor } from '@shopify/polaris-icons';\nimport styles from './CloseButton.scss.js';\nimport { useI18n } from '../../../../utilities/i18n/hooks.js';\nimport { Icon } from '../../../Icon/Icon.js';\nfunction CloseButton(_ref) {\n let {\n onClick\n } = _ref;\n const i18n = useI18n();\n return /*#__PURE__*/React.createElement(\"button\", {\n onClick: onClick,\n className: styles.CloseButton,\n \"aria-label\": i18n.translate('Polaris.Common.close')\n }, /*#__PURE__*/React.createElement(Icon, {\n source: MobileCancelMajor,\n color: \"base\"\n }));\n}\nexport { CloseButton };","import React from 'react';\nimport styles from './Header.scss.js';\nimport { CloseButton } from '../CloseButton/CloseButton.js';\nimport { DisplayText } from '../../../DisplayText/DisplayText.js';\nfunction Header(_ref) {\n let {\n id,\n titleHidden,\n children,\n onClose\n } = _ref;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: titleHidden || !children ? styles.titleHidden : styles.Header\n }, /*#__PURE__*/React.createElement(\"div\", {\n id: id,\n className: styles.Title\n }, /*#__PURE__*/React.createElement(DisplayText, {\n element: \"h2\",\n size: \"small\"\n }, children)), /*#__PURE__*/React.createElement(CloseButton, {\n onClick: onClose\n }));\n}\nexport { Header };","var styles = {\n \"Section\": \"Polaris-Modal-Section\",\n \"subdued\": \"Polaris-Modal-Section--subdued\",\n \"flush\": \"Polaris-Modal-Section--flush\"\n};\nexport { styles as default };","import React from 'react';\nimport { classNames } from '../../../../utilities/css.js';\nimport styles from './Section.scss.js';\nfunction Section(_ref) {\n let {\n children,\n flush = false,\n subdued = false\n } = _ref;\n const className = classNames(styles.Section, flush && styles.flush, subdued && styles.subdued);\n return /*#__PURE__*/React.createElement(\"section\", {\n className: className\n }, children);\n}\nexport { Section };","var styles = {\n \"Footer\": \"Polaris-Modal-Footer\",\n \"FooterContent\": \"Polaris-Modal-Footer__FooterContent\"\n};\nexport { styles as default };","import React from 'react';\nimport styles from './Footer.scss.js';\nimport { buttonsFrom } from '../../../Button/utils.js';\nimport { Stack } from '../../../Stack/Stack.js';\nimport { ButtonGroup } from '../../../ButtonGroup/ButtonGroup.js';\nfunction Footer(_ref) {\n let {\n primaryAction,\n secondaryActions,\n children\n } = _ref;\n const primaryActionButton = primaryAction && buttonsFrom(primaryAction, {\n primary: true\n }) || null;\n const secondaryActionButtons = secondaryActions && buttonsFrom(secondaryActions) || null;\n const actions = primaryActionButton || secondaryActionButtons ? /*#__PURE__*/React.createElement(ButtonGroup, null, secondaryActionButtons, primaryActionButton) : null;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: styles.Footer\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: styles.FooterContent\n }, /*#__PURE__*/React.createElement(Stack, {\n alignment: \"center\"\n }, /*#__PURE__*/React.createElement(Stack.Item, {\n fill: true\n }, children), actions)));\n}\nexport { Footer };","import React, { useState, useRef, useCallback } from 'react';\nimport { TransitionGroup } from 'react-transition-group';\nimport { focusFirstFocusableNode } from '../../utilities/focus.js';\nimport { useUniqueId } from '../../utilities/unique-id/hooks.js';\nimport { WithinContentContext } from '../../utilities/within-content-context.js';\nimport { wrapWithComponent } from '../../utilities/components.js';\nimport styles from './Modal.scss.js';\nimport { Dialog } from './components/Dialog/Dialog.js';\nimport { Header } from './components/Header/Header.js';\nimport { Section } from './components/Section/Section.js';\nimport { Footer } from './components/Footer/Footer.js';\nimport { useI18n } from '../../utilities/i18n/hooks.js';\nimport { Spinner } from '../Spinner/Spinner.js';\nimport { Scrollable } from '../Scrollable/Scrollable.js';\nimport { Portal } from '../Portal/Portal.js';\nimport { Backdrop } from '../Backdrop/Backdrop.js';\nconst IFRAME_LOADING_HEIGHT = 200;\nconst DEFAULT_IFRAME_CONTENT_HEIGHT = 400;\nconst Modal = function Modal(_ref) {\n let {\n children,\n title,\n titleHidden = false,\n src,\n iFrameName,\n open,\n instant,\n sectioned,\n loading,\n large,\n small,\n limitHeight,\n footer,\n primaryAction,\n secondaryActions,\n onScrolledToBottom,\n activator,\n onClose,\n onIFrameLoad,\n onTransitionEnd,\n noScroll\n } = _ref;\n const [iframeHeight, setIframeHeight] = useState(IFRAME_LOADING_HEIGHT);\n const headerId = useUniqueId('modal-header');\n const activatorRef = useRef(null);\n const i18n = useI18n();\n const iframeTitle = i18n.translate('Polaris.Modal.iFrameTitle');\n let dialog;\n let backdrop;\n const handleEntered = useCallback(() => {\n if (onTransitionEnd) {\n onTransitionEnd();\n }\n }, [onTransitionEnd]);\n const handleExited = useCallback(() => {\n setIframeHeight(IFRAME_LOADING_HEIGHT);\n const activatorElement = activator && isRef(activator) ? activator && activator.current : activatorRef.current;\n if (activatorElement) {\n requestAnimationFrame(() => focusFirstFocusableNode(activatorElement));\n }\n }, [activator]);\n const handleIFrameLoad = useCallback(evt => {\n const iframe = evt.target;\n if (iframe && iframe.contentWindow) {\n try {\n setIframeHeight(iframe.contentWindow.document.body.scrollHeight);\n } catch (_error) {\n setIframeHeight(DEFAULT_IFRAME_CONTENT_HEIGHT);\n }\n }\n if (onIFrameLoad != null) {\n onIFrameLoad(evt);\n }\n }, [onIFrameLoad]);\n if (open) {\n const footerMarkup = !footer && !primaryAction && !secondaryActions ? null : /*#__PURE__*/React.createElement(Footer, {\n primaryAction: primaryAction,\n secondaryActions: secondaryActions\n }, footer);\n const content = sectioned ? wrapWithComponent(children, Section, {}) : children;\n const body = loading ? /*#__PURE__*/React.createElement(\"div\", {\n className: styles.Spinner\n }, /*#__PURE__*/React.createElement(Spinner, null)) : content;\n const scrollContainerMarkup = noScroll ? /*#__PURE__*/React.createElement(\"div\", {\n className: styles.Body\n }, body) : /*#__PURE__*/React.createElement(Scrollable, {\n shadow: true,\n className: styles.Body,\n onScrolledToBottom: onScrolledToBottom\n }, body);\n const bodyMarkup = src ? /*#__PURE__*/React.createElement(\"iframe\", {\n name: iFrameName,\n title: iframeTitle,\n src: src,\n className: styles.IFrame,\n onLoad: handleIFrameLoad,\n style: {\n height: `${iframeHeight}px`\n }\n }) : scrollContainerMarkup;\n dialog = /*#__PURE__*/React.createElement(Dialog, {\n instant: instant,\n labelledBy: headerId,\n onClose: onClose,\n onEntered: handleEntered,\n onExited: handleExited,\n large: large,\n small: small,\n limitHeight: limitHeight\n }, /*#__PURE__*/React.createElement(Header, {\n titleHidden: titleHidden,\n id: headerId,\n onClose: onClose\n }, title), /*#__PURE__*/React.createElement(\"div\", {\n className: styles.BodyWrapper\n }, bodyMarkup), footerMarkup);\n backdrop = /*#__PURE__*/React.createElement(Backdrop, null);\n }\n const animated = !instant;\n const activatorMarkup = activator && !isRef(activator) ? /*#__PURE__*/React.createElement(\"div\", {\n ref: activatorRef\n }, activator) : null;\n return /*#__PURE__*/React.createElement(WithinContentContext.Provider, {\n value: true\n }, activatorMarkup, /*#__PURE__*/React.createElement(Portal, {\n idPrefix: \"modal\"\n }, /*#__PURE__*/React.createElement(TransitionGroup, {\n appear: animated,\n enter: animated,\n exit: animated\n }, dialog), backdrop));\n};\nfunction isRef(ref) {\n return Object.prototype.hasOwnProperty.call(ref, 'current');\n}\nModal.Section = Section;\nexport { Modal };","import React from 'react';\nvar SvgCircleCancelMinor = function SvgCircleCancelMinor(props) {\n return /*#__PURE__*/React.createElement(\"svg\", Object.assign({\n viewBox: \"0 0 20 20\"\n }, props), /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n d: \"M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm-2.293 4.293a1 1 0 0 0-1.414 1.414l2.293 2.293-2.293 2.293a1 1 0 1 0 1.414 1.414l2.293-2.293 2.293 2.293a1 1 0 1 0 1.414-1.414l-2.293-2.293 2.293-2.293a1 1 0 0 0-1.414-1.414l-2.293 2.293-2.293-2.293z\"\n }));\n};\nexport { SvgCircleCancelMinor as S };","var styles = {\n \"TextField\": \"Polaris-TextField\",\n \"multiline\": \"Polaris-TextField--multiline\",\n \"Input\": \"Polaris-TextField__Input\",\n \"hasValue\": \"Polaris-TextField--hasValue\",\n \"focus\": \"Polaris-TextField--focus\",\n \"Backdrop\": \"Polaris-TextField__Backdrop\",\n \"error\": \"Polaris-TextField--error\",\n \"readOnly\": \"Polaris-TextField--readOnly\",\n \"disabled\": \"Polaris-TextField--disabled\",\n \"Prefix\": \"Polaris-TextField__Prefix\",\n \"Input-hasClearButton\": \"Polaris-TextField__Input--hasClearButton\",\n \"Input-suffixed\": \"Polaris-TextField__Input--suffixed\",\n \"Input-alignRight\": \"Polaris-TextField__Input--alignRight\",\n \"Input-alignLeft\": \"Polaris-TextField__Input--alignLeft\",\n \"Input-alignCenter\": \"Polaris-TextField__Input--alignCenter\",\n \"Suffix\": \"Polaris-TextField__Suffix\",\n \"CharacterCount\": \"Polaris-TextField__CharacterCount\",\n \"AlignFieldBottom\": \"Polaris-TextField__AlignFieldBottom\",\n \"ClearButton\": \"Polaris-TextField__ClearButton\",\n \"Hidden\": \"Polaris-TextField__Hidden\",\n \"Spinner\": \"Polaris-TextField__Spinner\",\n \"SpinnerIcon\": \"Polaris-TextField__SpinnerIcon\",\n \"Resizer\": \"Polaris-TextField__Resizer\",\n \"DummyInput\": \"Polaris-TextField__DummyInput\",\n \"Segment\": \"Polaris-TextField__Segment\",\n \"monospaced\": \"Polaris-TextField--monospaced\"\n};\nexport { styles as default };","var styles = {\n \"Connected\": \"Polaris-Connected\",\n \"Item\": \"Polaris-Connected__Item\",\n \"Item-primary\": \"Polaris-Connected__Item--primary\",\n \"Item-focused\": \"Polaris-Connected__Item--focused\"\n};\nexport { styles as default };","import React from 'react';\nimport { classNames } from '../../../../utilities/css.js';\nimport { useToggle } from '../../../../utilities/use-toggle.js';\nimport styles from '../../Connected.scss.js';\nfunction Item(_ref) {\n let {\n children,\n position\n } = _ref;\n const {\n value: focused,\n setTrue: forceTrueFocused,\n setFalse: forceFalseFocused\n } = useToggle(false);\n const className = classNames(styles.Item, focused && styles['Item-focused'], position === 'primary' ? styles['Item-primary'] : styles['Item-connection']);\n return /*#__PURE__*/React.createElement(\"div\", {\n onBlur: forceFalseFocused,\n onFocus: forceTrueFocused,\n className: className\n }, children);\n}\nexport { Item };","import React from 'react';\nimport styles from './Connected.scss.js';\nimport { Item } from './components/Item/Item.js';\nfunction Connected(_ref) {\n let {\n children,\n left,\n right\n } = _ref;\n const leftConnectionMarkup = left ? /*#__PURE__*/React.createElement(Item, {\n position: \"left\"\n }, left) : null;\n const rightConnectionMarkup = right ? /*#__PURE__*/React.createElement(Item, {\n position: \"right\"\n }, right) : null;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: styles.Connected\n }, leftConnectionMarkup, /*#__PURE__*/React.createElement(Item, {\n position: \"primary\"\n }, children), rightConnectionMarkup);\n}\nexport { Connected };","import React from 'react';\nimport { CaretUpMinor, CaretDownMinor } from '@shopify/polaris-icons';\nimport styles from '../../TextField.scss.js';\nimport { Icon } from '../../../Icon/Icon.js';\nfunction Spinner(_ref) {\n let {\n onChange,\n onClick,\n onMouseDown,\n onMouseUp\n } = _ref;\n function handleStep(step) {\n return () => onChange(step);\n }\n function handleMouseDown(onChange) {\n return event => {\n if (event.button !== 0) return;\n onMouseDown(onChange);\n };\n }\n return /*#__PURE__*/React.createElement(\"div\", {\n className: styles.Spinner,\n onClick: onClick,\n \"aria-hidden\": true\n }, /*#__PURE__*/React.createElement(\"div\", {\n role: \"button\",\n className: styles.Segment,\n tabIndex: -1,\n onClick: handleStep(1),\n onMouseDown: handleMouseDown(handleStep(1)),\n onMouseUp: onMouseUp\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: styles.SpinnerIcon\n }, /*#__PURE__*/React.createElement(Icon, {\n source: CaretUpMinor\n }))), /*#__PURE__*/React.createElement(\"div\", {\n role: \"button\",\n className: styles.Segment,\n tabIndex: -1,\n onClick: handleStep(-1),\n onMouseDown: handleMouseDown(handleStep(-1)),\n onMouseUp: onMouseUp\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: styles.SpinnerIcon\n }, /*#__PURE__*/React.createElement(Icon, {\n source: CaretDownMinor\n }))));\n}\nexport { Spinner };","import React, { useRef, useEffect, useCallback, useLayoutEffect } from 'react';\nimport styles from '../../TextField.scss.js';\nimport { EventListener } from '../../../EventListener/EventListener.js';\nfunction Resizer(_ref) {\n let {\n contents,\n currentHeight: currentHeightProp = null,\n minimumLines,\n onHeightChange\n } = _ref;\n const contentNode = useRef(null);\n const minimumLinesNode = useRef(null);\n const animationFrame = useRef();\n const currentHeight = useRef(currentHeightProp);\n if (currentHeightProp !== currentHeight.current) {\n currentHeight.current = currentHeightProp;\n }\n useEffect(() => {\n return () => {\n if (animationFrame.current) {\n cancelAnimationFrame(animationFrame.current);\n }\n };\n }, []);\n const minimumLinesMarkup = minimumLines ? /*#__PURE__*/React.createElement(\"div\", {\n ref: minimumLinesNode,\n className: styles.DummyInput,\n dangerouslySetInnerHTML: {\n __html: getContentsForMinimumLines(minimumLines)\n }\n }) : null;\n const handleHeightCheck = useCallback(() => {\n if (animationFrame.current) {\n cancelAnimationFrame(animationFrame.current);\n }\n animationFrame.current = requestAnimationFrame(() => {\n if (!contentNode.current || !minimumLinesNode.current) {\n return;\n }\n const newHeight = Math.max(contentNode.current.offsetHeight, minimumLinesNode.current.offsetHeight);\n if (newHeight !== currentHeight.current) {\n onHeightChange(newHeight);\n }\n });\n }, [onHeightChange]);\n useLayoutEffect(() => {\n handleHeightCheck();\n });\n return /*#__PURE__*/React.createElement(\"div\", {\n \"aria-hidden\": true,\n className: styles.Resizer\n }, /*#__PURE__*/React.createElement(EventListener, {\n event: \"resize\",\n handler: handleHeightCheck\n }), /*#__PURE__*/React.createElement(\"div\", {\n ref: contentNode,\n className: styles.DummyInput,\n dangerouslySetInnerHTML: {\n __html: getFinalContents(contents)\n }\n }), minimumLinesMarkup);\n}\nconst ENTITIES_TO_REPLACE = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\\n': '
',\n '\\r': ''\n};\nconst REPLACE_REGEX = new RegExp(`[${Object.keys(ENTITIES_TO_REPLACE).join()}]`, 'g');\nfunction replaceEntity(entity) {\n return ENTITIES_TO_REPLACE[entity];\n}\nfunction getContentsForMinimumLines(minimumLines) {\n let content = '';\n for (let line = 0; line < minimumLines; line++) {\n content += '
';\n }\n return content;\n}\nfunction getFinalContents(contents) {\n return contents ? `${contents.replace(REPLACE_REGEX, replaceEntity)}
` : '
';\n}\nexport { Resizer };","import React, { useState, useRef, useEffect, useCallback, createElement } from 'react';\nimport { CircleCancelMinor } from '@shopify/polaris-icons';\nimport { classNames, variationName } from '../../utilities/css.js';\nimport { useIsAfterInitialMount } from '../../utilities/use-is-after-initial-mount.js';\nimport { Key } from '../../types.js';\nimport styles from './TextField.scss.js';\nimport { Labelled, helpTextID } from '../Labelled/Labelled.js';\nimport { Connected } from '../Connected/Connected.js';\nimport { Spinner } from './components/Spinner/Spinner.js';\nimport { Resizer } from './components/Resizer/Resizer.js';\nimport { labelID } from '../Label/Label.js';\nimport { useI18n } from '../../utilities/i18n/hooks.js';\nimport { useUniqueId } from '../../utilities/unique-id/hooks.js';\nimport { VisuallyHidden } from '../VisuallyHidden/VisuallyHidden.js';\nimport { Icon } from '../Icon/Icon.js';\nfunction TextField(_ref) {\n let {\n prefix,\n suffix,\n placeholder,\n value,\n helpText,\n label,\n labelAction,\n labelHidden,\n disabled,\n clearButton,\n readOnly,\n autoFocus,\n focused,\n multiline,\n error,\n connectedRight,\n connectedLeft,\n type,\n name,\n id: idProp,\n role,\n step,\n autoComplete,\n max,\n maxLength,\n maxHeight,\n min,\n minLength,\n pattern,\n inputMode,\n spellCheck,\n ariaOwns,\n ariaControls,\n ariaExpanded,\n ariaActiveDescendant,\n ariaAutocomplete,\n showCharacterCount,\n align,\n onClearButtonClick,\n onChange,\n onFocus,\n onBlur,\n requiredIndicator,\n monospaced\n } = _ref;\n const i18n = useI18n();\n const [height, setHeight] = useState(null);\n const [focus, setFocus] = useState(Boolean(focused));\n const isAfterInitial = useIsAfterInitialMount();\n const id = useUniqueId('TextField', idProp);\n const inputRef = useRef(null);\n const prefixRef = useRef(null);\n const suffixRef = useRef(null);\n const buttonPressTimer = useRef();\n useEffect(() => {\n const input = inputRef.current;\n if (!input || focused === undefined) return;\n focused ? input.focus() : input.blur();\n }, [focused]); // Use a typeof check here as Typescript mostly protects us from non-stringy\n // values but overzealous usage of `any` in consuming apps means people have\n // been known to pass a number in, so make it clear that doesn't work.\n\n const normalizedValue = typeof value === 'string' ? value : '';\n const normalizedStep = step != null ? step : 1;\n const normalizedMax = max != null ? max : Infinity;\n const normalizedMin = min != null ? min : -Infinity;\n const className = classNames(styles.TextField, Boolean(normalizedValue) && styles.hasValue, disabled && styles.disabled, readOnly && styles.readOnly, error && styles.error, multiline && styles.multiline, focus && styles.focus);\n const inputType = type === 'currency' ? 'text' : type;\n const prefixMarkup = prefix ? /*#__PURE__*/React.createElement(\"div\", {\n className: styles.Prefix,\n id: `${id}Prefix`,\n ref: prefixRef\n }, prefix) : null;\n const suffixMarkup = suffix ? /*#__PURE__*/React.createElement(\"div\", {\n className: styles.Suffix,\n id: `${id}Suffix`,\n ref: suffixRef\n }, suffix) : null;\n let characterCountMarkup = null;\n if (showCharacterCount) {\n const characterCount = normalizedValue.length;\n const characterCountLabel = maxLength ? i18n.translate('Polaris.TextField.characterCountWithMaxLength', {\n count: characterCount,\n limit: maxLength\n }) : i18n.translate('Polaris.TextField.characterCount', {\n count: characterCount\n });\n const characterCountClassName = classNames(styles.CharacterCount, multiline && styles.AlignFieldBottom);\n const characterCountText = !maxLength ? characterCount : `${characterCount}/${maxLength}`;\n characterCountMarkup = /*#__PURE__*/React.createElement(\"div\", {\n id: `${id}CharacterCounter`,\n className: characterCountClassName,\n \"aria-label\": characterCountLabel,\n \"aria-live\": focus ? 'polite' : 'off',\n \"aria-atomic\": \"true\"\n }, characterCountText);\n }\n const clearButtonVisible = normalizedValue !== '';\n const clearButtonClassNames = classNames(styles.ClearButton, !clearButtonVisible && styles.Hidden);\n const clearButtonMarkup = clearButton ? /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n className: clearButtonClassNames,\n onClick: handleClearButtonPress,\n disabled: disabled\n }, /*#__PURE__*/React.createElement(VisuallyHidden, null, i18n.translate('Polaris.Common.clear')), /*#__PURE__*/React.createElement(Icon, {\n source: CircleCancelMinor,\n color: \"base\"\n })) : null;\n const handleNumberChange = useCallback(steps => {\n if (onChange == null) {\n return;\n } // Returns the length of decimal places in a number\n\n const dpl = num => (num.toString().split('.')[1] || []).length;\n const numericValue = value ? parseFloat(value) : 0;\n if (isNaN(numericValue)) {\n return;\n } // Making sure the new value has the same length of decimal places as the\n // step / value has.\n\n const decimalPlaces = Math.max(dpl(numericValue), dpl(normalizedStep));\n const newValue = Math.min(Number(normalizedMax), Math.max(numericValue + steps * normalizedStep, Number(normalizedMin)));\n onChange(String(newValue.toFixed(decimalPlaces)), id);\n }, [id, normalizedMax, normalizedMin, onChange, normalizedStep, value]);\n const handleButtonRelease = useCallback(() => {\n clearTimeout(buttonPressTimer.current);\n }, []);\n const handleButtonPress = useCallback(onChange => {\n const minInterval = 50;\n const decrementBy = 10;\n let interval = 200;\n const onChangeInterval = () => {\n if (interval > minInterval) interval -= decrementBy;\n onChange(0);\n buttonPressTimer.current = window.setTimeout(onChangeInterval, interval);\n };\n buttonPressTimer.current = window.setTimeout(onChangeInterval, interval);\n document.addEventListener('mouseup', handleButtonRelease, {\n once: true\n });\n }, [handleButtonRelease]);\n const spinnerMarkup = type === 'number' && step !== 0 && !disabled && !readOnly ? /*#__PURE__*/React.createElement(Spinner, {\n onChange: handleNumberChange,\n onMouseDown: handleButtonPress,\n onMouseUp: handleButtonRelease\n }) : null;\n const style = multiline && height ? {\n height,\n maxHeight\n } : null;\n const handleExpandingResize = useCallback(height => {\n setHeight(height);\n }, []);\n const resizer = multiline && isAfterInitial ? /*#__PURE__*/React.createElement(Resizer, {\n contents: normalizedValue || placeholder,\n currentHeight: height,\n minimumLines: typeof multiline === 'number' ? multiline : 1,\n onHeightChange: handleExpandingResize\n }) : null;\n const describedBy = [];\n if (error) {\n describedBy.push(`${id}Error`);\n }\n if (helpText) {\n describedBy.push(helpTextID(id));\n }\n if (showCharacterCount) {\n describedBy.push(`${id}CharacterCounter`);\n }\n const labelledBy = [];\n if (prefix) {\n labelledBy.push(`${id}Prefix`);\n }\n if (suffix) {\n labelledBy.push(`${id}Suffix`);\n }\n labelledBy.unshift(labelID(id));\n const inputClassName = classNames(styles.Input, align && styles[variationName('Input-align', align)], suffix && styles['Input-suffixed'], clearButton && styles['Input-hasClearButton'], monospaced && styles.monospaced);\n const input = /*#__PURE__*/createElement(multiline ? 'textarea' : 'input', {\n name,\n id,\n disabled,\n readOnly,\n role,\n autoFocus,\n value: normalizedValue,\n placeholder,\n onFocus,\n onBlur,\n onKeyPress: handleKeyPress,\n style,\n autoComplete,\n className: inputClassName,\n onChange: handleChange,\n ref: inputRef,\n min,\n max,\n step,\n minLength,\n maxLength,\n spellCheck,\n pattern,\n inputMode,\n type: inputType,\n 'aria-describedby': describedBy.length ? describedBy.join(' ') : undefined,\n 'aria-labelledby': labelledBy.join(' '),\n 'aria-invalid': Boolean(error),\n 'aria-owns': ariaOwns,\n 'aria-activedescendant': ariaActiveDescendant,\n 'aria-autocomplete': ariaAutocomplete,\n 'aria-controls': ariaControls,\n 'aria-expanded': ariaExpanded,\n 'aria-required': requiredIndicator,\n ...normalizeAriaMultiline(multiline)\n });\n const backdropClassName = classNames(styles.Backdrop, connectedLeft && styles['Backdrop-connectedLeft'], connectedRight && styles['Backdrop-connectedRight']);\n return /*#__PURE__*/React.createElement(Labelled, {\n label: label,\n id: id,\n error: error,\n action: labelAction,\n labelHidden: labelHidden,\n helpText: helpText,\n requiredIndicator: requiredIndicator\n }, /*#__PURE__*/React.createElement(Connected, {\n left: connectedLeft,\n right: connectedRight\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: className,\n onFocus: handleFocus,\n onBlur: handleBlur,\n onClick: handleClick\n }, prefixMarkup, input, suffixMarkup, characterCountMarkup, clearButtonMarkup, spinnerMarkup, /*#__PURE__*/React.createElement(\"div\", {\n className: backdropClassName\n }), resizer)));\n function handleClearButtonPress() {\n onClearButtonClick && onClearButtonClick(id);\n }\n function handleKeyPress(event) {\n const {\n key,\n which\n } = event;\n const numbersSpec = /[\\d.eE+-]$/;\n if (type !== 'number' || which === Key.Enter || numbersSpec.test(key)) {\n return;\n }\n event.preventDefault();\n }\n function containsAffix(target) {\n return target instanceof HTMLElement && (prefixRef.current && prefixRef.current.contains(target) || suffixRef.current && suffixRef.current.contains(target));\n }\n function handleChange(event) {\n onChange && onChange(event.currentTarget.value, id);\n }\n function handleFocus(_ref2) {\n let {\n target\n } = _ref2;\n if (containsAffix(target)) {\n return;\n }\n setFocus(true);\n }\n function handleBlur() {\n setFocus(false);\n }\n function handleClick(_ref3) {\n let {\n target\n } = _ref3;\n var _inputRef$current;\n if (containsAffix(target) || focus) {\n return;\n }\n (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();\n }\n}\nfunction normalizeAriaMultiline(multiline) {\n if (!multiline) return undefined;\n return Boolean(multiline) || multiline > 0 ? {\n 'aria-multiline': true\n } : undefined;\n}\nexport { TextField };","var EditableTarget;\n(function (EditableTarget) {\n EditableTarget[\"Input\"] = \"INPUT\";\n EditableTarget[\"Textarea\"] = \"TEXTAREA\";\n EditableTarget[\"Select\"] = \"SELECT\";\n EditableTarget[\"ContentEditable\"] = \"contenteditable\";\n})(EditableTarget || (EditableTarget = {}));\nfunction isInputFocused() {\n if (document == null || document.activeElement == null) {\n return false;\n }\n const {\n tagName\n } = document.activeElement;\n return tagName === EditableTarget.Input || tagName === EditableTarget.Textarea || tagName === EditableTarget.Select || document.activeElement.hasAttribute(EditableTarget.ContentEditable);\n}\nexport { isInputFocused };","import React from 'react';\nvar SvgChevronRightMinor = function SvgChevronRightMinor(props) {\n return /*#__PURE__*/React.createElement(\"svg\", Object.assign({\n viewBox: \"0 0 20 20\"\n }, props), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8 16a.999.999 0 0 1-.707-1.707l4.293-4.293-4.293-4.293a.999.999 0 1 1 1.414-1.414l5 5a.999.999 0 0 1 0 1.414l-5 5a.997.997 0 0 1-.707.293z\"\n }));\n};\nexport { SvgChevronRightMinor as S };","import { ChevronLeftMinor, ChevronRightMinor } from '@shopify/polaris-icons';\nimport React, { createRef } from 'react';\nimport { isInputFocused } from '../../utilities/is-input-focused.js';\nimport { Tooltip } from '../Tooltip/Tooltip.js';\nimport { useI18n } from '../../utilities/i18n/hooks.js';\nimport { KeypressListener } from '../KeypressListener/KeypressListener.js';\nimport { ButtonGroup } from '../ButtonGroup/ButtonGroup.js';\nimport { Button } from '../Button/Button.js';\nimport { TextStyle } from '../TextStyle/TextStyle.js';\nfunction Pagination(_ref) {\n let {\n hasNext,\n hasPrevious,\n nextURL,\n previousURL,\n onNext,\n onPrevious,\n nextTooltip,\n previousTooltip,\n nextKeys,\n previousKeys,\n accessibilityLabel,\n accessibilityLabels,\n label\n } = _ref;\n const i18n = useI18n();\n const node = /*#__PURE__*/createRef();\n const navLabel = accessibilityLabel || i18n.translate('Polaris.Pagination.pagination');\n const previousLabel = (accessibilityLabels === null || accessibilityLabels === void 0 ? void 0 : accessibilityLabels.previous) || i18n.translate('Polaris.Pagination.previous');\n const nextLabel = (accessibilityLabels === null || accessibilityLabels === void 0 ? void 0 : accessibilityLabels.next) || i18n.translate('Polaris.Pagination.next');\n const prev = /*#__PURE__*/React.createElement(Button, {\n outline: true,\n icon: ChevronLeftMinor,\n accessibilityLabel: previousLabel,\n url: previousURL,\n onClick: onPrevious,\n disabled: !hasPrevious,\n id: \"previousURL\"\n });\n const constructedPrevious = previousTooltip && hasPrevious ? /*#__PURE__*/React.createElement(Tooltip, {\n activatorWrapper: \"span\",\n content: previousTooltip\n }, prev) : prev;\n const next = /*#__PURE__*/React.createElement(Button, {\n outline: true,\n icon: ChevronRightMinor,\n accessibilityLabel: nextLabel,\n url: nextURL,\n onClick: onNext,\n disabled: !hasNext,\n id: \"nextURL\"\n });\n const constructedNext = nextTooltip && hasNext ? /*#__PURE__*/React.createElement(Tooltip, {\n activatorWrapper: \"span\",\n content: nextTooltip\n }, next) : next;\n const previousHandler = onPrevious || noop;\n const previousButtonEvents = previousKeys && (previousURL || onPrevious) && hasPrevious && previousKeys.map(key => /*#__PURE__*/React.createElement(KeypressListener, {\n key: key,\n keyCode: key,\n handler: previousURL ? handleCallback(clickPaginationLink('previousURL', node)) : handleCallback(previousHandler)\n }));\n const nextHandler = onNext || noop;\n const nextButtonEvents = nextKeys && (nextURL || onNext) && hasNext && nextKeys.map(key => /*#__PURE__*/React.createElement(KeypressListener, {\n key: key,\n keyCode: key,\n handler: nextURL ? handleCallback(clickPaginationLink('nextURL', node)) : handleCallback(nextHandler)\n }));\n const labelTextMarkup = hasNext && hasPrevious ? /*#__PURE__*/React.createElement(TextStyle, null, label) : /*#__PURE__*/React.createElement(TextStyle, {\n variation: \"subdued\"\n }, label);\n const labelMarkup = label ? /*#__PURE__*/React.createElement(\"div\", {\n \"aria-live\": \"polite\"\n }, labelTextMarkup) : null;\n return /*#__PURE__*/React.createElement(\"nav\", {\n \"aria-label\": navLabel,\n ref: node\n }, previousButtonEvents, nextButtonEvents, /*#__PURE__*/React.createElement(ButtonGroup, {\n segmented: !label\n }, constructedPrevious, labelMarkup, constructedNext));\n}\nfunction clickPaginationLink(id, node) {\n return () => {\n if (node.current == null) {\n return;\n }\n const link = node.current.querySelector(`#${id}`);\n if (link) {\n link.click();\n }\n };\n}\nfunction handleCallback(fn) {\n return () => {\n if (isInputFocused()) {\n return;\n }\n fn();\n };\n}\nfunction noop() {}\nexport { Pagination };","var styles = {\n \"CheckboxWrapper\": \"Polaris-ResourceItem__CheckboxWrapper\",\n \"ResourceItem\": \"Polaris-ResourceItem\",\n \"persistActions\": \"Polaris-ResourceItem--persistActions\",\n \"Actions\": \"Polaris-ResourceItem__Actions\",\n \"ItemWrapper\": \"Polaris-ResourceItem__ItemWrapper\",\n \"focusedInner\": \"Polaris-ResourceItem--focusedInner\",\n \"focused\": \"Polaris-ResourceItem--focused\",\n \"selected\": \"Polaris-ResourceItem--selected\",\n \"Link\": \"Polaris-ResourceItem__Link\",\n \"Button\": \"Polaris-ResourceItem__Button\",\n \"Container\": \"Polaris-ResourceItem__Container\",\n \"alignmentLeading\": \"Polaris-ResourceItem--alignmentLeading\",\n \"alignmentTrailing\": \"Polaris-ResourceItem--alignmentTrailing\",\n \"alignmentCenter\": \"Polaris-ResourceItem--alignmentCenter\",\n \"alignmentFill\": \"Polaris-ResourceItem--alignmentFill\",\n \"alignmentBaseline\": \"Polaris-ResourceItem--alignmentBaseline\",\n \"Owned\": \"Polaris-ResourceItem__Owned\",\n \"OwnedNoMedia\": \"Polaris-ResourceItem__OwnedNoMedia\",\n \"Handle\": \"Polaris-ResourceItem__Handle\",\n \"selectMode\": \"Polaris-ResourceItem--selectMode\",\n \"selectable\": \"Polaris-ResourceItem--selectable\",\n \"Media\": \"Polaris-ResourceItem__Media\",\n \"Content\": \"Polaris-ResourceItem__Content\",\n \"Disclosure\": \"Polaris-ResourceItem__Disclosure\",\n \"ListItem\": \"Polaris-ResourceItem__ListItem\"\n};\nexport { styles as default };","import React, { useContext, Component, createRef } from 'react';\nimport { HorizontalDotsMinor } from '@shopify/polaris-icons';\nimport isEqual from 'lodash/isEqual';\nimport { classNames, variationName } from '../../utilities/css.js';\nimport styles from './ResourceItem.scss.js';\nimport { SELECT_ALL_ITEMS } from '../../utilities/resource-list/types.js';\nimport { ResourceListContext } from '../../utilities/resource-list/context.js';\nimport { useI18n } from '../../utilities/i18n/hooks.js';\nimport { Checkbox } from '../Checkbox/Checkbox.js';\nimport { ButtonGroup } from '../ButtonGroup/ButtonGroup.js';\nimport { buttonsFrom } from '../Button/utils.js';\nimport { Popover } from '../Popover/Popover.js';\nimport { Button } from '../Button/Button.js';\nimport { ActionList } from '../ActionList/ActionList.js';\nimport { UnstyledLink } from '../UnstyledLink/UnstyledLink.js';\nimport { globalIdGeneratorFactory } from '../../utilities/unique-id/unique-id-factory.js';\nconst getUniqueCheckboxID = globalIdGeneratorFactory('ResourceListItemCheckbox');\nconst getUniqueOverlayID = globalIdGeneratorFactory('ResourceListItemOverlay');\nclass BaseResourceItem extends Component {\n constructor() {\n super(...arguments);\n this.state = {\n actionsMenuVisible: false,\n focused: false,\n focusedInner: false,\n selected: isSelected(this.props.id, this.props.context.selectedItems)\n };\n this.node = null;\n this.checkboxId = getUniqueCheckboxID();\n this.overlayId = getUniqueOverlayID();\n this.buttonOverlay = /*#__PURE__*/createRef();\n this.setNode = node => {\n this.node = node;\n };\n this.handleFocus = event => {\n if (event.target === this.buttonOverlay.current || this.node && event.target === this.node.querySelector(`#${this.overlayId}`)) {\n this.setState({\n focused: true,\n focusedInner: false\n });\n } else if (this.node && this.node.contains(event.target)) {\n this.setState({\n focused: true,\n focusedInner: true\n });\n }\n };\n this.handleBlur = _ref => {\n let {\n relatedTarget\n } = _ref;\n if (this.node && relatedTarget instanceof Element && this.node.contains(relatedTarget)) {\n return;\n }\n this.setState({\n focused: false,\n focusedInner: false\n });\n };\n this.handleMouseOut = () => {\n this.state.focused && this.setState({\n focused: false,\n focusedInner: false\n });\n };\n this.handleLargerSelectionArea = event => {\n stopPropagation(event);\n this.handleSelection(!this.state.selected, event.nativeEvent.shiftKey);\n };\n this.handleSelection = (value, shiftKey) => {\n const {\n id,\n sortOrder,\n context: {\n onSelectionChange\n }\n } = this.props;\n if (id == null || onSelectionChange == null) {\n return;\n }\n this.setState({\n focused: value,\n focusedInner: value\n });\n onSelectionChange(value, id, sortOrder, shiftKey);\n };\n this.handleClick = event => {\n stopPropagation(event);\n const {\n id,\n onClick,\n url,\n context: {\n selectMode\n }\n } = this.props;\n const {\n ctrlKey,\n metaKey\n } = event.nativeEvent;\n const anchor = this.node && this.node.querySelector('a');\n if (selectMode) {\n this.handleLargerSelectionArea(event);\n return;\n }\n if (anchor === event.target) {\n return;\n }\n if (onClick) {\n onClick(id);\n }\n if (url && (ctrlKey || metaKey)) {\n window.open(url, '_blank');\n return;\n }\n if (url && anchor) {\n anchor.click();\n }\n };\n this.handleKeyUp = event => {\n const {\n onClick = noop,\n context: {\n selectMode\n }\n } = this.props;\n const {\n key\n } = event;\n if (key === 'Enter' && this.props.url && !selectMode) {\n onClick();\n }\n };\n this.handleActionsClick = () => {\n this.setState(_ref2 => {\n let {\n actionsMenuVisible\n } = _ref2;\n return {\n actionsMenuVisible: !actionsMenuVisible\n };\n });\n };\n this.handleCloseRequest = () => {\n this.setState({\n actionsMenuVisible: false\n });\n };\n }\n static getDerivedStateFromProps(nextProps, prevState) {\n const selected = isSelected(nextProps.id, nextProps.context.selectedItems);\n if (prevState.selected === selected) {\n return null;\n }\n return {\n selected\n };\n }\n shouldComponentUpdate(nextProps, nextState) {\n const {\n children: nextChildren,\n context: {\n selectedItems: nextSelectedItems,\n ...restNextContext\n },\n ...restNextProps\n } = nextProps;\n const {\n children,\n context: {\n selectedItems,\n ...restContext\n },\n ...restProps\n } = this.props;\n const nextSelectMode = nextProps.context.selectMode;\n return !isEqual(this.state, nextState) || this.props.context.selectMode !== nextSelectMode || !nextProps.context.selectMode && (!isEqual(restProps, restNextProps) || !isEqual(restContext, restNextContext));\n }\n render() {\n const {\n children,\n url,\n external,\n media,\n shortcutActions,\n ariaControls,\n ariaExpanded,\n persistActions = false,\n accessibilityLabel,\n name,\n context: {\n selectable,\n selectMode,\n loading,\n resourceName\n },\n i18n,\n verticalAlignment,\n dataHref\n } = this.props;\n const {\n actionsMenuVisible,\n focused,\n focusedInner,\n selected\n } = this.state;\n let ownedMarkup = null;\n let handleMarkup = null;\n const mediaMarkup = media ? /*#__PURE__*/React.createElement(\"div\", {\n className: styles.Media\n }, media) : null;\n if (selectable) {\n const checkboxAccessibilityLabel = name || accessibilityLabel || i18n.translate('Polaris.Common.checkbox');\n handleMarkup = /*#__PURE__*/React.createElement(\"div\", {\n className: styles.Handle,\n onClick: this.handleLargerSelectionArea\n }, /*#__PURE__*/React.createElement(\"div\", {\n onClick: stopPropagation,\n className: styles.CheckboxWrapper\n }, /*#__PURE__*/React.createElement(\"div\", {\n onChange: this.handleLargerSelectionArea\n }, /*#__PURE__*/React.createElement(Checkbox, {\n id: this.checkboxId,\n label: checkboxAccessibilityLabel,\n labelHidden: true,\n checked: selected,\n disabled: loading\n }))));\n }\n if (media || selectable) {\n ownedMarkup = /*#__PURE__*/React.createElement(\"div\", {\n className: classNames(styles.Owned, !mediaMarkup && styles.OwnedNoMedia)\n }, handleMarkup, mediaMarkup);\n }\n const className = classNames(styles.ResourceItem, focused && styles.focused, selectable && styles.selectable, selected && styles.selected, selectMode && styles.selectMode, persistActions && styles.persistActions, focusedInner && styles.focusedInner);\n const listItemClassName = classNames(styles.ListItem, focused && !focusedInner && styles.focused);\n let actionsMarkup = null;\n let disclosureMarkup = null;\n if (shortcutActions && !loading) {\n if (persistActions) {\n actionsMarkup = /*#__PURE__*/React.createElement(\"div\", {\n className: styles.Actions,\n onClick: stopPropagation\n }, /*#__PURE__*/React.createElement(ButtonGroup, null, buttonsFrom(shortcutActions, {\n plain: true\n })));\n const disclosureAccessibilityLabel = name ? i18n.translate('Polaris.ResourceList.Item.actionsDropdownLabel', {\n accessibilityLabel: name\n }) : i18n.translate('Polaris.ResourceList.Item.actionsDropdown');\n disclosureMarkup = /*#__PURE__*/React.createElement(\"div\", {\n className: styles.Disclosure,\n onClick: stopPropagation\n }, /*#__PURE__*/React.createElement(Popover, {\n activator: /*#__PURE__*/React.createElement(Button, {\n accessibilityLabel: disclosureAccessibilityLabel,\n onClick: this.handleActionsClick,\n plain: true,\n icon: HorizontalDotsMinor\n }),\n onClose: this.handleCloseRequest,\n active: actionsMenuVisible\n }, /*#__PURE__*/React.createElement(ActionList, {\n items: shortcutActions\n })));\n } else {\n actionsMarkup = /*#__PURE__*/React.createElement(\"div\", {\n className: styles.Actions,\n onClick: stopPropagation\n }, /*#__PURE__*/React.createElement(ButtonGroup, {\n segmented: true\n }, buttonsFrom(shortcutActions, {\n size: 'slim'\n })));\n }\n }\n const content = children ? /*#__PURE__*/React.createElement(\"div\", {\n className: styles.Content\n }, children) : null;\n const containerClassName = classNames(styles.Container, verticalAlignment && styles[variationName('alignment', verticalAlignment)]);\n const containerMarkup = /*#__PURE__*/React.createElement(\"div\", {\n className: containerClassName,\n id: this.props.id\n }, ownedMarkup, content, actionsMarkup, disclosureMarkup);\n const tabIndex = loading ? -1 : 0;\n const ariaLabel = accessibilityLabel || i18n.translate('Polaris.ResourceList.Item.viewItem', {\n itemName: name || resourceName && resourceName.singular || ''\n });\n const accessibleMarkup = url ? /*#__PURE__*/React.createElement(UnstyledLink, {\n \"aria-describedby\": this.props.id,\n \"aria-label\": ariaLabel,\n className: styles.Link,\n url: url,\n external: external,\n tabIndex: tabIndex,\n id: this.overlayId\n }) : /*#__PURE__*/React.createElement(\"button\", {\n className: styles.Button,\n \"aria-label\": ariaLabel,\n \"aria-controls\": ariaControls,\n \"aria-expanded\": ariaExpanded,\n onClick: this.handleClick,\n tabIndex: tabIndex,\n ref: this.buttonOverlay\n });\n return /*#__PURE__*/React.createElement(\"li\", {\n className: listItemClassName,\n \"data-href\": dataHref\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: styles.ItemWrapper\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: this.setNode,\n className: className,\n onClick: this.handleClick,\n onFocus: this.handleFocus,\n onBlur: this.handleBlur,\n onKeyUp: this.handleKeyUp,\n onMouseOut: this.handleMouseOut,\n \"data-href\": url\n }, accessibleMarkup, containerMarkup)));\n }\n}\nfunction noop() {}\nfunction stopPropagation(event) {\n event.stopPropagation();\n}\nfunction isSelected(id, selectedItems) {\n return Boolean(selectedItems && (Array.isArray(selectedItems) && selectedItems.includes(id) || selectedItems === SELECT_ALL_ITEMS));\n}\nfunction ResourceItem(props) {\n return /*#__PURE__*/React.createElement(BaseResourceItem, Object.assign({}, props, {\n context: useContext(ResourceListContext),\n i18n: useI18n()\n }));\n}\nexport { ResourceItem };","var styles = {\n \"Select\": \"Polaris-Select\",\n \"disabled\": \"Polaris-Select--disabled\",\n \"Content\": \"Polaris-Select__Content\",\n \"InlineLabel\": \"Polaris-Select__InlineLabel\",\n \"Icon\": \"Polaris-Select__Icon\",\n \"Backdrop\": \"Polaris-Select__Backdrop\",\n \"SelectedOption\": \"Polaris-Select__SelectedOption\",\n \"Prefix\": \"Polaris-Select__Prefix\",\n \"Input\": \"Polaris-Select__Input\",\n \"error\": \"Polaris-Select--error\",\n \"hover\": \"Polaris-Select--hover\"\n};\nexport { styles as default };","import React from 'react';\nimport { SelectMinor } from '@shopify/polaris-icons';\nimport { classNames } from '../../utilities/css.js';\nimport styles from './Select.scss.js';\nimport { useUniqueId } from '../../utilities/unique-id/hooks.js';\nimport { Icon } from '../Icon/Icon.js';\nimport { Labelled, helpTextID } from '../Labelled/Labelled.js';\nconst PLACEHOLDER_VALUE = '';\nfunction Select(_ref) {\n let {\n options: optionsProp,\n label,\n labelAction,\n labelHidden: labelHiddenProp,\n labelInline,\n disabled,\n helpText,\n placeholder,\n id: idProp,\n name,\n value = PLACEHOLDER_VALUE,\n error,\n onChange,\n onFocus,\n onBlur,\n requiredIndicator\n } = _ref;\n const id = useUniqueId('Select', idProp);\n const labelHidden = labelInline ? true : labelHiddenProp;\n const className = classNames(styles.Select, error && styles.error, disabled && styles.disabled);\n const handleChange = onChange ? event => onChange(event.currentTarget.value, id) : undefined;\n const describedBy = [];\n if (helpText) {\n describedBy.push(helpTextID(id));\n }\n if (error) {\n describedBy.push(`${id}Error`);\n }\n const options = optionsProp || [];\n let normalizedOptions = options.map(normalizeOption);\n if (placeholder) {\n normalizedOptions = [{\n label: placeholder,\n value: PLACEHOLDER_VALUE,\n disabled: true\n }, ...normalizedOptions];\n }\n const inlineLabelMarkup = labelInline && /*#__PURE__*/React.createElement(\"span\", {\n className: styles.InlineLabel\n }, label);\n const selectedOption = getSelectedOption(normalizedOptions, value);\n const prefixMarkup = selectedOption.prefix && /*#__PURE__*/React.createElement(\"div\", {\n className: styles.Prefix\n }, selectedOption.prefix);\n const contentMarkup = /*#__PURE__*/React.createElement(\"div\", {\n className: styles.Content,\n \"aria-hidden\": true,\n \"aria-disabled\": disabled\n }, inlineLabelMarkup, prefixMarkup, /*#__PURE__*/React.createElement(\"span\", {\n className: styles.SelectedOption\n }, selectedOption.label), /*#__PURE__*/React.createElement(\"span\", {\n className: styles.Icon\n }, /*#__PURE__*/React.createElement(Icon, {\n source: SelectMinor\n })));\n const optionsMarkup = normalizedOptions.map(renderOption);\n return /*#__PURE__*/React.createElement(Labelled, {\n id: id,\n label: label,\n error: error,\n action: labelAction,\n labelHidden: labelHidden,\n helpText: helpText,\n requiredIndicator: requiredIndicator\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: className\n }, /*#__PURE__*/React.createElement(\"select\", {\n id: id,\n name: name,\n value: value,\n className: styles.Input,\n disabled: disabled,\n onFocus: onFocus,\n onBlur: onBlur,\n onChange: handleChange,\n \"aria-invalid\": Boolean(error),\n \"aria-describedby\": describedBy.length ? describedBy.join(' ') : undefined,\n \"aria-required\": requiredIndicator\n }, optionsMarkup), contentMarkup, /*#__PURE__*/React.createElement(\"div\", {\n className: styles.Backdrop\n })));\n}\nfunction isString(option) {\n return typeof option === 'string';\n}\nfunction isGroup(option) {\n return typeof option === 'object' && 'options' in option && option.options != null;\n}\nfunction normalizeStringOption(option) {\n return {\n label: option,\n value: option\n };\n}\n/**\n * Converts a string option (and each string option in a Group) into\n * an Option object.\n */\n\nfunction normalizeOption(option) {\n if (isString(option)) {\n return normalizeStringOption(option);\n } else if (isGroup(option)) {\n const {\n title,\n options\n } = option;\n return {\n title,\n options: options.map(option => {\n return isString(option) ? normalizeStringOption(option) : option;\n })\n };\n }\n return option;\n}\n/**\n * Gets the text to display in the UI, for the currently selected option\n */\n\nfunction getSelectedOption(options, value) {\n const flatOptions = flattenOptions(options);\n let selectedOption = flatOptions.find(option => value === option.value);\n if (selectedOption === undefined) {\n // Get the first visible option (not the hidden placeholder)\n selectedOption = flatOptions.find(option => !option.hidden);\n }\n return selectedOption || {\n value: '',\n label: ''\n };\n}\n/**\n * Ungroups an options array\n */\n\nfunction flattenOptions(options) {\n let flatOptions = [];\n options.forEach(optionOrGroup => {\n if (isGroup(optionOrGroup)) {\n flatOptions = flatOptions.concat(optionOrGroup.options);\n } else {\n flatOptions.push(optionOrGroup);\n }\n });\n return flatOptions;\n}\nfunction renderSingleOption(option) {\n const {\n value,\n label,\n prefix: _prefix,\n ...rest\n } = option;\n return /*#__PURE__*/React.createElement(\"option\", Object.assign({\n key: value,\n value: value\n }, rest), label);\n}\nfunction renderOption(optionOrGroup) {\n if (isGroup(optionOrGroup)) {\n const {\n title,\n options\n } = optionOrGroup;\n return /*#__PURE__*/React.createElement(\"optgroup\", {\n label: title,\n key: title\n }, options.map(renderSingleOption));\n }\n return renderSingleOption(optionOrGroup);\n}\nexport { Select };","var styles = {\n \"Collapsible\": \"Polaris-Collapsible\",\n \"isFullyClosed\": \"Polaris-Collapsible--isFullyClosed\",\n \"expandOnPrint\": \"Polaris-Collapsible--expandOnPrint\"\n};\nexport { styles as default };","import React, { useState, useRef, useCallback, useEffect } from 'react';\nimport { classNames } from '../../utilities/css.js';\nimport styles from './Collapsible.scss.js';\nfunction Collapsible(_ref) {\n let {\n id,\n expandOnPrint,\n open,\n transition,\n children\n } = _ref;\n const [height, setHeight] = useState(0);\n const [isOpen, setIsOpen] = useState(open);\n const [animationState, setAnimationState] = useState('idle');\n const collapsibleContainer = useRef(null);\n const isFullyOpen = animationState === 'idle' && open && isOpen;\n const isFullyClosed = animationState === 'idle' && !open && !isOpen;\n const content = expandOnPrint || !isFullyClosed ? children : null;\n const wrapperClassName = classNames(styles.Collapsible, isFullyClosed && styles.isFullyClosed, expandOnPrint && styles.expandOnPrint);\n const collapsibleStyles = {\n ...(transition && {\n transitionDuration: `${transition.duration}`,\n transitionTimingFunction: `${transition.timingFunction}`\n }),\n ...{\n maxHeight: isFullyOpen ? 'none' : `${height}px`,\n overflow: isFullyOpen ? 'visible' : 'hidden'\n }\n };\n const handleCompleteAnimation = useCallback(_ref2 => {\n let {\n target\n } = _ref2;\n if (target === collapsibleContainer.current) {\n setAnimationState('idle');\n setIsOpen(open);\n }\n }, [open]);\n useEffect(() => {\n if (open !== isOpen) {\n setAnimationState('measuring');\n }\n }, [open, isOpen]);\n useEffect(() => {\n if (!open || !collapsibleContainer.current) return; // If collapsible defaults to open, set an initial height\n\n setHeight(collapsibleContainer.current.scrollHeight); // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n useEffect(() => {\n if (!collapsibleContainer.current) return;\n switch (animationState) {\n case 'idle':\n break;\n case 'measuring':\n setHeight(collapsibleContainer.current.scrollHeight);\n setAnimationState('animating');\n break;\n case 'animating':\n setHeight(open ? collapsibleContainer.current.scrollHeight : 0);\n }\n }, [animationState, open, isOpen]);\n return /*#__PURE__*/React.createElement(\"div\", {\n id: id,\n style: collapsibleStyles,\n ref: collapsibleContainer,\n className: wrapperClassName,\n onTransitionEnd: handleCompleteAnimation,\n \"aria-expanded\": open\n }, content);\n}\nexport { Collapsible };","var styles = {\n \"Tag\": \"Polaris-Tag\",\n \"disabled\": \"Polaris-Tag--disabled\",\n \"clickable\": \"Polaris-Tag--clickable\",\n \"removable\": \"Polaris-Tag--removable\",\n \"linkable\": \"Polaris-Tag--linkable\",\n \"TagText\": \"Polaris-Tag__TagText\",\n \"Button\": \"Polaris-Tag__Button\",\n \"segmented\": \"Polaris-Tag--segmented\",\n \"Link\": \"Polaris-Tag__Link\",\n \"LinkText\": \"Polaris-Tag__LinkText\"\n};\nexport { styles as default };","import React from 'react';\nimport { CancelSmallMinor } from '@shopify/polaris-icons';\nimport { classNames } from '../../utilities/css.js';\nimport { handleMouseUpByBlurring } from '../../utilities/focus.js';\nimport styles from './Tag.scss.js';\nimport { useI18n } from '../../utilities/i18n/hooks.js';\nimport { Icon } from '../Icon/Icon.js';\nfunction Tag(_ref) {\n let {\n children,\n disabled = false,\n onClick,\n onRemove,\n accessibilityLabel,\n url\n } = _ref;\n const i18n = useI18n();\n const segmented = onRemove && url;\n const className = classNames(styles.Tag, disabled && styles.disabled, onClick && styles.clickable, onRemove && styles.removable, url && !disabled && styles.linkable, segmented && styles.segmented);\n if (onClick) {\n return /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n disabled: disabled,\n className: className,\n onClick: onClick\n }, children);\n }\n let tagTitle = accessibilityLabel;\n if (!tagTitle) {\n tagTitle = typeof children === 'string' ? children : undefined;\n }\n const ariaLabel = i18n.translate('Polaris.Tag.ariaLabel', {\n children: tagTitle || ''\n });\n const removeButton = onRemove ? /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n \"aria-label\": ariaLabel,\n className: classNames(styles.Button, segmented && styles.segmented),\n onClick: onRemove,\n onMouseUp: handleMouseUpByBlurring,\n disabled: disabled\n }, /*#__PURE__*/React.createElement(Icon, {\n source: CancelSmallMinor\n })) : null;\n const tagContent = url && !disabled ? /*#__PURE__*/React.createElement(\"a\", {\n className: classNames(styles.Link, segmented && styles.segmented),\n href: url\n }, /*#__PURE__*/React.createElement(\"span\", {\n title: tagTitle,\n className: styles.LinkText\n }, children)) : /*#__PURE__*/React.createElement(\"span\", {\n title: tagTitle,\n className: styles.TagText\n }, children);\n return /*#__PURE__*/React.createElement(\"span\", {\n className: className\n }, tagContent, removeButton);\n}\nexport { Tag };","var styles = {\n \"RadioButton\": \"Polaris-RadioButton\",\n \"Input\": \"Polaris-RadioButton__Input\",\n \"keyFocused\": \"Polaris-RadioButton--keyFocused\",\n \"Backdrop\": \"Polaris-RadioButton__Backdrop\",\n \"hover\": \"Polaris-RadioButton--hover\"\n};\nexport { styles as default };","import React, { useRef, useState } from 'react';\nimport { useToggle } from '../../utilities/use-toggle.js';\nimport { classNames } from '../../utilities/css.js';\nimport styles from './RadioButton.scss.js';\nimport { useUniqueId } from '../../utilities/unique-id/hooks.js';\nimport { Choice, helpTextID } from '../Choice/Choice.js';\nfunction RadioButton(_ref) {\n let {\n ariaDescribedBy: ariaDescribedByProp,\n label,\n labelHidden,\n helpText,\n checked,\n disabled,\n onChange,\n onFocus,\n onBlur,\n id: idProp,\n name: nameProp,\n value\n } = _ref;\n const id = useUniqueId('RadioButton', idProp);\n const name = nameProp || id;\n const inputNode = useRef(null);\n const [keyFocused, setKeyFocused] = useState(false);\n const {\n value: mouseOver,\n setTrue: handleMouseOver,\n setFalse: handleMouseOut\n } = useToggle(false);\n const handleKeyUp = () => {\n !keyFocused && setKeyFocused(true);\n };\n const handleBlur = () => {\n onBlur && onBlur();\n setKeyFocused(false);\n };\n function handleChange(_ref2) {\n let {\n currentTarget\n } = _ref2;\n onChange && onChange(currentTarget.checked, id);\n }\n const describedBy = [];\n if (helpText) {\n describedBy.push(helpTextID(id));\n }\n if (ariaDescribedByProp) {\n describedBy.push(ariaDescribedByProp);\n }\n const ariaDescribedBy = describedBy.length ? describedBy.join(' ') : undefined;\n const inputClassName = classNames(styles.Input, keyFocused && styles.keyFocused);\n const backdropClassName = classNames(styles.Backdrop, mouseOver && styles.hover);\n return /*#__PURE__*/React.createElement(Choice, {\n label: label,\n labelHidden: labelHidden,\n disabled: disabled,\n id: id,\n helpText: helpText,\n onMouseOver: handleMouseOver,\n onMouseOut: handleMouseOut\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: styles.RadioButton\n }, /*#__PURE__*/React.createElement(\"input\", {\n id: id,\n name: name,\n value: value,\n type: \"radio\",\n checked: checked,\n disabled: disabled,\n className: inputClassName,\n onChange: handleChange,\n onFocus: onFocus,\n onKeyUp: handleKeyUp,\n onBlur: handleBlur,\n \"aria-describedby\": ariaDescribedBy,\n ref: inputNode\n }), /*#__PURE__*/React.createElement(\"span\", {\n className: backdropClassName\n })));\n}\nexport { RadioButton };","export default {\n disabled: false\n};","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport config from './config';\nimport { timeoutsShape } from './utils/PropTypes';\nimport TransitionGroupContext from './TransitionGroupContext';\nimport { forceReflow } from './utils/reflow';\nexport var UNMOUNTED = 'unmounted';\nexport var EXITED = 'exited';\nexport var ENTERING = 'entering';\nexport var ENTERED = 'entered';\nexport var EXITING = 'exiting';\n/**\n * The Transition component lets you describe a transition from one component\n * state to another _over time_ with a simple declarative API. Most commonly\n * it's used to animate the mounting and unmounting of a component, but can also\n * be used to describe in-place transition states as well.\n *\n * ---\n *\n * **Note**: `Transition` is a platform-agnostic base component. If you're using\n * transitions in CSS, you'll probably want to use\n * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition)\n * instead. It inherits all the features of `Transition`, but contains\n * additional features necessary to play nice with CSS transitions (hence the\n * name of the component).\n *\n * ---\n *\n * By default the `Transition` component does not alter the behavior of the\n * component it renders, it only tracks \"enter\" and \"exit\" states for the\n * components. It's up to you to give meaning and effect to those states. For\n * example we can add styles to a component when it enters or exits:\n *\n * ```jsx\n * import { Transition } from 'react-transition-group';\n *\n * const duration = 300;\n *\n * const defaultStyle = {\n * transition: `opacity ${duration}ms ease-in-out`,\n * opacity: 0,\n * }\n *\n * const transitionStyles = {\n * entering: { opacity: 1 },\n * entered: { opacity: 1 },\n * exiting: { opacity: 0 },\n * exited: { opacity: 0 },\n * };\n *\n * const Fade = ({ in: inProp }) => (\n * \n * {state => (\n * \n * I'm a fade Transition!\n *
\n * )}\n * \n * );\n * ```\n *\n * There are 4 main states a Transition can be in:\n * - `'entering'`\n * - `'entered'`\n * - `'exiting'`\n * - `'exited'`\n *\n * Transition state is toggled via the `in` prop. When `true` the component\n * begins the \"Enter\" stage. During this stage, the component will shift from\n * its current transition state, to `'entering'` for the duration of the\n * transition and then to the `'entered'` stage once it's complete. Let's take\n * the following example (we'll use the\n * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook):\n *\n * ```jsx\n * function App() {\n * const [inProp, setInProp] = useState(false);\n * return (\n * \n * \n * {state => (\n * // ...\n * )}\n * \n * \n *
\n * );\n * }\n * ```\n *\n * When the button is clicked the component will shift to the `'entering'` state\n * and stay there for 500ms (the value of `timeout`) before it finally switches\n * to `'entered'`.\n *\n * When `in` is `false` the same thing happens except the state moves from\n * `'exiting'` to `'exited'`.\n */\n\nvar Transition = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(Transition, _React$Component);\n function Transition(props, context) {\n var _this;\n _this = _React$Component.call(this, props, context) || this;\n var parentGroup = context; // In the context of a TransitionGroup all enters are really appears\n\n var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;\n var initialStatus;\n _this.appearStatus = null;\n if (props.in) {\n if (appear) {\n initialStatus = EXITED;\n _this.appearStatus = ENTERING;\n } else {\n initialStatus = ENTERED;\n }\n } else {\n if (props.unmountOnExit || props.mountOnEnter) {\n initialStatus = UNMOUNTED;\n } else {\n initialStatus = EXITED;\n }\n }\n _this.state = {\n status: initialStatus\n };\n _this.nextCallback = null;\n return _this;\n }\n Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {\n var nextIn = _ref.in;\n if (nextIn && prevState.status === UNMOUNTED) {\n return {\n status: EXITED\n };\n }\n return null;\n } // getSnapshotBeforeUpdate(prevProps) {\n // let nextStatus = null\n // if (prevProps !== this.props) {\n // const { status } = this.state\n // if (this.props.in) {\n // if (status !== ENTERING && status !== ENTERED) {\n // nextStatus = ENTERING\n // }\n // } else {\n // if (status === ENTERING || status === ENTERED) {\n // nextStatus = EXITING\n // }\n // }\n // }\n // return { nextStatus }\n // }\n ;\n\n var _proto = Transition.prototype;\n _proto.componentDidMount = function componentDidMount() {\n this.updateStatus(true, this.appearStatus);\n };\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n var nextStatus = null;\n if (prevProps !== this.props) {\n var status = this.state.status;\n if (this.props.in) {\n if (status !== ENTERING && status !== ENTERED) {\n nextStatus = ENTERING;\n }\n } else {\n if (status === ENTERING || status === ENTERED) {\n nextStatus = EXITING;\n }\n }\n }\n this.updateStatus(false, nextStatus);\n };\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.cancelNextCallback();\n };\n _proto.getTimeouts = function getTimeouts() {\n var timeout = this.props.timeout;\n var exit, enter, appear;\n exit = enter = appear = timeout;\n if (timeout != null && typeof timeout !== 'number') {\n exit = timeout.exit;\n enter = timeout.enter; // TODO: remove fallback for next major\n\n appear = timeout.appear !== undefined ? timeout.appear : enter;\n }\n return {\n exit: exit,\n enter: enter,\n appear: appear\n };\n };\n _proto.updateStatus = function updateStatus(mounting, nextStatus) {\n if (mounting === void 0) {\n mounting = false;\n }\n if (nextStatus !== null) {\n // nextStatus will always be ENTERING or EXITING.\n this.cancelNextCallback();\n if (nextStatus === ENTERING) {\n if (this.props.unmountOnExit || this.props.mountOnEnter) {\n var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this); // https://github.com/reactjs/react-transition-group/pull/749\n // With unmountOnExit or mountOnEnter, the enter animation should happen at the transition between `exited` and `entering`.\n // To make the animation happen, we have to separate each rendering and avoid being processed as batched.\n\n if (node) forceReflow(node);\n }\n this.performEnter(mounting);\n } else {\n this.performExit();\n }\n } else if (this.props.unmountOnExit && this.state.status === EXITED) {\n this.setState({\n status: UNMOUNTED\n });\n }\n };\n _proto.performEnter = function performEnter(mounting) {\n var _this2 = this;\n var enter = this.props.enter;\n var appearing = this.context ? this.context.isMounting : mounting;\n var _ref2 = this.props.nodeRef ? [appearing] : [ReactDOM.findDOMNode(this), appearing],\n maybeNode = _ref2[0],\n maybeAppearing = _ref2[1];\n var timeouts = this.getTimeouts();\n var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED\n // if we are mounting and running this it means appear _must_ be set\n\n if (!mounting && !enter || config.disabled) {\n this.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(maybeNode);\n });\n return;\n }\n this.props.onEnter(maybeNode, maybeAppearing);\n this.safeSetState({\n status: ENTERING\n }, function () {\n _this2.props.onEntering(maybeNode, maybeAppearing);\n _this2.onTransitionEnd(enterTimeout, function () {\n _this2.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(maybeNode, maybeAppearing);\n });\n });\n });\n };\n _proto.performExit = function performExit() {\n var _this3 = this;\n var exit = this.props.exit;\n var timeouts = this.getTimeouts();\n var maybeNode = this.props.nodeRef ? undefined : ReactDOM.findDOMNode(this); // no exit animation skip right to EXITED\n\n if (!exit || config.disabled) {\n this.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(maybeNode);\n });\n return;\n }\n this.props.onExit(maybeNode);\n this.safeSetState({\n status: EXITING\n }, function () {\n _this3.props.onExiting(maybeNode);\n _this3.onTransitionEnd(timeouts.exit, function () {\n _this3.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(maybeNode);\n });\n });\n });\n };\n _proto.cancelNextCallback = function cancelNextCallback() {\n if (this.nextCallback !== null) {\n this.nextCallback.cancel();\n this.nextCallback = null;\n }\n };\n _proto.safeSetState = function safeSetState(nextState, callback) {\n // This shouldn't be necessary, but there are weird race conditions with\n // setState callbacks and unmounting in testing, so always make sure that\n // we can cancel any pending setState callbacks after we unmount.\n callback = this.setNextCallback(callback);\n this.setState(nextState, callback);\n };\n _proto.setNextCallback = function setNextCallback(callback) {\n var _this4 = this;\n var active = true;\n this.nextCallback = function (event) {\n if (active) {\n active = false;\n _this4.nextCallback = null;\n callback(event);\n }\n };\n this.nextCallback.cancel = function () {\n active = false;\n };\n return this.nextCallback;\n };\n _proto.onTransitionEnd = function onTransitionEnd(timeout, handler) {\n this.setNextCallback(handler);\n var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this);\n var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;\n if (!node || doesNotHaveTimeoutOrListener) {\n setTimeout(this.nextCallback, 0);\n return;\n }\n if (this.props.addEndListener) {\n var _ref3 = this.props.nodeRef ? [this.nextCallback] : [node, this.nextCallback],\n maybeNode = _ref3[0],\n maybeNextCallback = _ref3[1];\n this.props.addEndListener(maybeNode, maybeNextCallback);\n }\n if (timeout != null) {\n setTimeout(this.nextCallback, timeout);\n }\n };\n _proto.render = function render() {\n var status = this.state.status;\n if (status === UNMOUNTED) {\n return null;\n }\n var _this$props = this.props,\n children = _this$props.children,\n _in = _this$props.in,\n _mountOnEnter = _this$props.mountOnEnter,\n _unmountOnExit = _this$props.unmountOnExit,\n _appear = _this$props.appear,\n _enter = _this$props.enter,\n _exit = _this$props.exit,\n _timeout = _this$props.timeout,\n _addEndListener = _this$props.addEndListener,\n _onEnter = _this$props.onEnter,\n _onEntering = _this$props.onEntering,\n _onEntered = _this$props.onEntered,\n _onExit = _this$props.onExit,\n _onExiting = _this$props.onExiting,\n _onExited = _this$props.onExited,\n _nodeRef = _this$props.nodeRef,\n childProps = _objectWithoutPropertiesLoose(_this$props, [\"children\", \"in\", \"mountOnEnter\", \"unmountOnExit\", \"appear\", \"enter\", \"exit\", \"timeout\", \"addEndListener\", \"onEnter\", \"onEntering\", \"onEntered\", \"onExit\", \"onExiting\", \"onExited\", \"nodeRef\"]);\n return /*#__PURE__*/(\n // allows for nested Transitions\n React.createElement(TransitionGroupContext.Provider, {\n value: null\n }, typeof children === 'function' ? children(status, childProps) : React.cloneElement(React.Children.only(children), childProps))\n );\n };\n return Transition;\n}(React.Component);\nTransition.contextType = TransitionGroupContext;\nTransition.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * A React reference to DOM element that need to transition:\n * https://stackoverflow.com/a/51127130/4671932\n *\n * - When `nodeRef` prop is used, `node` is not passed to callback functions\n * (e.g. `onEnter`) because user already has direct access to the node.\n * - When changing `key` prop of `Transition` in a `TransitionGroup` a new\n * `nodeRef` need to be provided to `Transition` with changed `key` prop\n * (see\n * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).\n */\n nodeRef: PropTypes.shape({\n current: typeof Element === 'undefined' ? PropTypes.any : function (propValue, key, componentName, location, propFullName, secret) {\n var value = propValue[key];\n return PropTypes.instanceOf(value && 'ownerDocument' in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);\n }\n }),\n /**\n * A `function` child can be used instead of a React element. This function is\n * called with the current transition status (`'entering'`, `'entered'`,\n * `'exiting'`, `'exited'`), which can be used to apply context\n * specific props to a component.\n *\n * ```jsx\n * \n * {state => (\n * \n * )}\n * \n * ```\n */\n children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,\n /**\n * Show the component; triggers the enter or exit states\n */\n in: PropTypes.bool,\n /**\n * By default the child component is mounted immediately along with\n * the parent `Transition` component. If you want to \"lazy mount\" the component on the\n * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay\n * mounted, even on \"exited\", unless you also specify `unmountOnExit`.\n */\n mountOnEnter: PropTypes.bool,\n /**\n * By default the child component stays mounted after it reaches the `'exited'` state.\n * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.\n */\n unmountOnExit: PropTypes.bool,\n /**\n * By default the child component does not perform the enter transition when\n * it first mounts, regardless of the value of `in`. If you want this\n * behavior, set both `appear` and `in` to `true`.\n *\n * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop\n * > only adds an additional enter transition. However, in the\n * > `` component that first enter transition does result in\n * > additional `.appear-*` classes, that way you can choose to style it\n * > differently.\n */\n appear: PropTypes.bool,\n /**\n * Enable or disable enter transitions.\n */\n enter: PropTypes.bool,\n /**\n * Enable or disable exit transitions.\n */\n exit: PropTypes.bool,\n /**\n * The duration of the transition, in milliseconds.\n * Required unless `addEndListener` is provided.\n *\n * You may specify a single timeout for all transitions:\n *\n * ```jsx\n * timeout={500}\n * ```\n *\n * or individually:\n *\n * ```jsx\n * timeout={{\n * appear: 500,\n * enter: 300,\n * exit: 500,\n * }}\n * ```\n *\n * - `appear` defaults to the value of `enter`\n * - `enter` defaults to `0`\n * - `exit` defaults to `0`\n *\n * @type {number | { enter?: number, exit?: number, appear?: number }}\n */\n timeout: function timeout(props) {\n var pt = timeoutsShape;\n if (!props.addEndListener) pt = pt.isRequired;\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n return pt.apply(void 0, [props].concat(args));\n },\n /**\n * Add a custom transition end trigger. Called with the transitioning\n * DOM node and a `done` callback. Allows for more fine grained transition end\n * logic. Timeouts are still used as a fallback if provided.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * ```jsx\n * addEndListener={(node, done) => {\n * // use the css transitionend event to mark the finish of a transition\n * node.addEventListener('transitionend', done, false);\n * }}\n * ```\n */\n addEndListener: PropTypes.func,\n /**\n * Callback fired before the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEnter: PropTypes.func,\n /**\n * Callback fired after the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntering: PropTypes.func,\n /**\n * Callback fired after the \"entered\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEntered: PropTypes.func,\n /**\n * Callback fired before the \"exiting\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExit: PropTypes.func,\n /**\n * Callback fired after the \"exiting\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExiting: PropTypes.func,\n /**\n * Callback fired after the \"exited\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExited: PropTypes.func\n} : {}; // Name the function so it is clearer in the documentation\n\nfunction noop() {}\nTransition.defaultProps = {\n in: false,\n mountOnEnter: false,\n unmountOnExit: false,\n appear: false,\n enter: true,\n exit: true,\n onEnter: noop,\n onEntering: noop,\n onEntered: noop,\n onExit: noop,\n onExiting: noop,\n onExited: noop\n};\nTransition.UNMOUNTED = UNMOUNTED;\nTransition.EXITED = EXITED;\nTransition.ENTERING = ENTERING;\nTransition.ENTERED = ENTERED;\nTransition.EXITING = EXITING;\nexport default Transition;","/** @license React v16.14.0\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar l = require(\"object-assign\"),\n n = \"function\" === typeof Symbol && Symbol.for,\n p = n ? Symbol.for(\"react.element\") : 60103,\n q = n ? Symbol.for(\"react.portal\") : 60106,\n r = n ? Symbol.for(\"react.fragment\") : 60107,\n t = n ? Symbol.for(\"react.strict_mode\") : 60108,\n u = n ? Symbol.for(\"react.profiler\") : 60114,\n v = n ? Symbol.for(\"react.provider\") : 60109,\n w = n ? Symbol.for(\"react.context\") : 60110,\n x = n ? Symbol.for(\"react.forward_ref\") : 60112,\n y = n ? Symbol.for(\"react.suspense\") : 60113,\n z = n ? Symbol.for(\"react.memo\") : 60115,\n A = n ? Symbol.for(\"react.lazy\") : 60116,\n B = \"function\" === typeof Symbol && Symbol.iterator;\nfunction C(a) {\n for (var b = \"https://reactjs.org/docs/error-decoder.html?invariant=\" + a, c = 1; c < arguments.length; c++) b += \"&args[]=\" + encodeURIComponent(arguments[c]);\n return \"Minified React error #\" + a + \"; visit \" + b + \" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\";\n}\nvar D = {\n isMounted: function () {\n return !1;\n },\n enqueueForceUpdate: function () {},\n enqueueReplaceState: function () {},\n enqueueSetState: function () {}\n },\n E = {};\nfunction F(a, b, c) {\n this.props = a;\n this.context = b;\n this.refs = E;\n this.updater = c || D;\n}\nF.prototype.isReactComponent = {};\nF.prototype.setState = function (a, b) {\n if (\"object\" !== typeof a && \"function\" !== typeof a && null != a) throw Error(C(85));\n this.updater.enqueueSetState(this, a, b, \"setState\");\n};\nF.prototype.forceUpdate = function (a) {\n this.updater.enqueueForceUpdate(this, a, \"forceUpdate\");\n};\nfunction G() {}\nG.prototype = F.prototype;\nfunction H(a, b, c) {\n this.props = a;\n this.context = b;\n this.refs = E;\n this.updater = c || D;\n}\nvar I = H.prototype = new G();\nI.constructor = H;\nl(I, F.prototype);\nI.isPureReactComponent = !0;\nvar J = {\n current: null\n },\n K = Object.prototype.hasOwnProperty,\n L = {\n key: !0,\n ref: !0,\n __self: !0,\n __source: !0\n };\nfunction M(a, b, c) {\n var e,\n d = {},\n g = null,\n k = null;\n if (null != b) for (e in void 0 !== b.ref && (k = b.ref), void 0 !== b.key && (g = \"\" + b.key), b) K.call(b, e) && !L.hasOwnProperty(e) && (d[e] = b[e]);\n var f = arguments.length - 2;\n if (1 === f) d.children = c;else if (1 < f) {\n for (var h = Array(f), m = 0; m < f; m++) h[m] = arguments[m + 2];\n d.children = h;\n }\n if (a && a.defaultProps) for (e in f = a.defaultProps, f) void 0 === d[e] && (d[e] = f[e]);\n return {\n $$typeof: p,\n type: a,\n key: g,\n ref: k,\n props: d,\n _owner: J.current\n };\n}\nfunction N(a, b) {\n return {\n $$typeof: p,\n type: a.type,\n key: b,\n ref: a.ref,\n props: a.props,\n _owner: a._owner\n };\n}\nfunction O(a) {\n return \"object\" === typeof a && null !== a && a.$$typeof === p;\n}\nfunction escape(a) {\n var b = {\n \"=\": \"=0\",\n \":\": \"=2\"\n };\n return \"$\" + (\"\" + a).replace(/[=:]/g, function (a) {\n return b[a];\n });\n}\nvar P = /\\/+/g,\n Q = [];\nfunction R(a, b, c, e) {\n if (Q.length) {\n var d = Q.pop();\n d.result = a;\n d.keyPrefix = b;\n d.func = c;\n d.context = e;\n d.count = 0;\n return d;\n }\n return {\n result: a,\n keyPrefix: b,\n func: c,\n context: e,\n count: 0\n };\n}\nfunction S(a) {\n a.result = null;\n a.keyPrefix = null;\n a.func = null;\n a.context = null;\n a.count = 0;\n 10 > Q.length && Q.push(a);\n}\nfunction T(a, b, c, e) {\n var d = typeof a;\n if (\"undefined\" === d || \"boolean\" === d) a = null;\n var g = !1;\n if (null === a) g = !0;else switch (d) {\n case \"string\":\n case \"number\":\n g = !0;\n break;\n case \"object\":\n switch (a.$$typeof) {\n case p:\n case q:\n g = !0;\n }\n }\n if (g) return c(e, a, \"\" === b ? \".\" + U(a, 0) : b), 1;\n g = 0;\n b = \"\" === b ? \".\" : b + \":\";\n if (Array.isArray(a)) for (var k = 0; k < a.length; k++) {\n d = a[k];\n var f = b + U(d, k);\n g += T(d, f, c, e);\n } else if (null === a || \"object\" !== typeof a ? f = null : (f = B && a[B] || a[\"@@iterator\"], f = \"function\" === typeof f ? f : null), \"function\" === typeof f) for (a = f.call(a), k = 0; !(d = a.next()).done;) d = d.value, f = b + U(d, k++), g += T(d, f, c, e);else if (\"object\" === d) throw c = \"\" + a, Error(C(31, \"[object Object]\" === c ? \"object with keys {\" + Object.keys(a).join(\", \") + \"}\" : c, \"\"));\n return g;\n}\nfunction V(a, b, c) {\n return null == a ? 0 : T(a, \"\", b, c);\n}\nfunction U(a, b) {\n return \"object\" === typeof a && null !== a && null != a.key ? escape(a.key) : b.toString(36);\n}\nfunction W(a, b) {\n a.func.call(a.context, b, a.count++);\n}\nfunction aa(a, b, c) {\n var e = a.result,\n d = a.keyPrefix;\n a = a.func.call(a.context, b, a.count++);\n Array.isArray(a) ? X(a, e, c, function (a) {\n return a;\n }) : null != a && (O(a) && (a = N(a, d + (!a.key || b && b.key === a.key ? \"\" : (\"\" + a.key).replace(P, \"$&/\") + \"/\") + c)), e.push(a));\n}\nfunction X(a, b, c, e, d) {\n var g = \"\";\n null != c && (g = (\"\" + c).replace(P, \"$&/\") + \"/\");\n b = R(b, g, e, d);\n V(a, aa, b);\n S(b);\n}\nvar Y = {\n current: null\n};\nfunction Z() {\n var a = Y.current;\n if (null === a) throw Error(C(321));\n return a;\n}\nvar ba = {\n ReactCurrentDispatcher: Y,\n ReactCurrentBatchConfig: {\n suspense: null\n },\n ReactCurrentOwner: J,\n IsSomeRendererActing: {\n current: !1\n },\n assign: l\n};\nexports.Children = {\n map: function (a, b, c) {\n if (null == a) return a;\n var e = [];\n X(a, e, null, b, c);\n return e;\n },\n forEach: function (a, b, c) {\n if (null == a) return a;\n b = R(null, null, b, c);\n V(a, W, b);\n S(b);\n },\n count: function (a) {\n return V(a, function () {\n return null;\n }, null);\n },\n toArray: function (a) {\n var b = [];\n X(a, b, null, function (a) {\n return a;\n });\n return b;\n },\n only: function (a) {\n if (!O(a)) throw Error(C(143));\n return a;\n }\n};\nexports.Component = F;\nexports.Fragment = r;\nexports.Profiler = u;\nexports.PureComponent = H;\nexports.StrictMode = t;\nexports.Suspense = y;\nexports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ba;\nexports.cloneElement = function (a, b, c) {\n if (null === a || void 0 === a) throw Error(C(267, a));\n var e = l({}, a.props),\n d = a.key,\n g = a.ref,\n k = a._owner;\n if (null != b) {\n void 0 !== b.ref && (g = b.ref, k = J.current);\n void 0 !== b.key && (d = \"\" + b.key);\n if (a.type && a.type.defaultProps) var f = a.type.defaultProps;\n for (h in b) K.call(b, h) && !L.hasOwnProperty(h) && (e[h] = void 0 === b[h] && void 0 !== f ? f[h] : b[h]);\n }\n var h = arguments.length - 2;\n if (1 === h) e.children = c;else if (1 < h) {\n f = Array(h);\n for (var m = 0; m < h; m++) f[m] = arguments[m + 2];\n e.children = f;\n }\n return {\n $$typeof: p,\n type: a.type,\n key: d,\n ref: g,\n props: e,\n _owner: k\n };\n};\nexports.createContext = function (a, b) {\n void 0 === b && (b = null);\n a = {\n $$typeof: w,\n _calculateChangedBits: b,\n _currentValue: a,\n _currentValue2: a,\n _threadCount: 0,\n Provider: null,\n Consumer: null\n };\n a.Provider = {\n $$typeof: v,\n _context: a\n };\n return a.Consumer = a;\n};\nexports.createElement = M;\nexports.createFactory = function (a) {\n var b = M.bind(null, a);\n b.type = a;\n return b;\n};\nexports.createRef = function () {\n return {\n current: null\n };\n};\nexports.forwardRef = function (a) {\n return {\n $$typeof: x,\n render: a\n };\n};\nexports.isValidElement = O;\nexports.lazy = function (a) {\n return {\n $$typeof: A,\n _ctor: a,\n _status: -1,\n _result: null\n };\n};\nexports.memo = function (a, b) {\n return {\n $$typeof: z,\n type: a,\n compare: void 0 === b ? null : b\n };\n};\nexports.useCallback = function (a, b) {\n return Z().useCallback(a, b);\n};\nexports.useContext = function (a, b) {\n return Z().useContext(a, b);\n};\nexports.useDebugValue = function () {};\nexports.useEffect = function (a, b) {\n return Z().useEffect(a, b);\n};\nexports.useImperativeHandle = function (a, b, c) {\n return Z().useImperativeHandle(a, b, c);\n};\nexports.useLayoutEffect = function (a, b) {\n return Z().useLayoutEffect(a, b);\n};\nexports.useMemo = function (a, b) {\n return Z().useMemo(a, b);\n};\nexports.useReducer = function (a, b, c) {\n return Z().useReducer(a, b, c);\n};\nexports.useRef = function (a) {\n return Z().useRef(a);\n};\nexports.useState = function (a) {\n return Z().useState(a);\n};\nexports.version = \"16.14.0\";","/** @license React v16.14.0\n * react-dom.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/*\n Modernizr 3.0.0pre (Custom Build) | MIT\n*/\n'use strict';\n\nvar aa = require(\"react\"),\n n = require(\"object-assign\"),\n r = require(\"scheduler\");\nfunction u(a) {\n for (var b = \"https://reactjs.org/docs/error-decoder.html?invariant=\" + a, c = 1; c < arguments.length; c++) b += \"&args[]=\" + encodeURIComponent(arguments[c]);\n return \"Minified React error #\" + a + \"; visit \" + b + \" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\";\n}\nif (!aa) throw Error(u(227));\nfunction ba(a, b, c, d, e, f, g, h, k) {\n var l = Array.prototype.slice.call(arguments, 3);\n try {\n b.apply(c, l);\n } catch (m) {\n this.onError(m);\n }\n}\nvar da = !1,\n ea = null,\n fa = !1,\n ha = null,\n ia = {\n onError: function (a) {\n da = !0;\n ea = a;\n }\n };\nfunction ja(a, b, c, d, e, f, g, h, k) {\n da = !1;\n ea = null;\n ba.apply(ia, arguments);\n}\nfunction ka(a, b, c, d, e, f, g, h, k) {\n ja.apply(this, arguments);\n if (da) {\n if (da) {\n var l = ea;\n da = !1;\n ea = null;\n } else throw Error(u(198));\n fa || (fa = !0, ha = l);\n }\n}\nvar la = null,\n ma = null,\n na = null;\nfunction oa(a, b, c) {\n var d = a.type || \"unknown-event\";\n a.currentTarget = na(c);\n ka(d, b, void 0, a);\n a.currentTarget = null;\n}\nvar pa = null,\n qa = {};\nfunction ra() {\n if (pa) for (var a in qa) {\n var b = qa[a],\n c = pa.indexOf(a);\n if (!(-1 < c)) throw Error(u(96, a));\n if (!sa[c]) {\n if (!b.extractEvents) throw Error(u(97, a));\n sa[c] = b;\n c = b.eventTypes;\n for (var d in c) {\n var e = void 0;\n var f = c[d],\n g = b,\n h = d;\n if (ta.hasOwnProperty(h)) throw Error(u(99, h));\n ta[h] = f;\n var k = f.phasedRegistrationNames;\n if (k) {\n for (e in k) k.hasOwnProperty(e) && ua(k[e], g, h);\n e = !0;\n } else f.registrationName ? (ua(f.registrationName, g, h), e = !0) : e = !1;\n if (!e) throw Error(u(98, d, a));\n }\n }\n }\n}\nfunction ua(a, b, c) {\n if (va[a]) throw Error(u(100, a));\n va[a] = b;\n wa[a] = b.eventTypes[c].dependencies;\n}\nvar sa = [],\n ta = {},\n va = {},\n wa = {};\nfunction xa(a) {\n var b = !1,\n c;\n for (c in a) if (a.hasOwnProperty(c)) {\n var d = a[c];\n if (!qa.hasOwnProperty(c) || qa[c] !== d) {\n if (qa[c]) throw Error(u(102, c));\n qa[c] = d;\n b = !0;\n }\n }\n b && ra();\n}\nvar ya = !(\"undefined\" === typeof window || \"undefined\" === typeof window.document || \"undefined\" === typeof window.document.createElement),\n za = null,\n Aa = null,\n Ba = null;\nfunction Ca(a) {\n if (a = ma(a)) {\n if (\"function\" !== typeof za) throw Error(u(280));\n var b = a.stateNode;\n b && (b = la(b), za(a.stateNode, a.type, b));\n }\n}\nfunction Da(a) {\n Aa ? Ba ? Ba.push(a) : Ba = [a] : Aa = a;\n}\nfunction Ea() {\n if (Aa) {\n var a = Aa,\n b = Ba;\n Ba = Aa = null;\n Ca(a);\n if (b) for (a = 0; a < b.length; a++) Ca(b[a]);\n }\n}\nfunction Fa(a, b) {\n return a(b);\n}\nfunction Ga(a, b, c, d, e) {\n return a(b, c, d, e);\n}\nfunction Ha() {}\nvar Ia = Fa,\n Ja = !1,\n Ka = !1;\nfunction La() {\n if (null !== Aa || null !== Ba) Ha(), Ea();\n}\nfunction Ma(a, b, c) {\n if (Ka) return a(b, c);\n Ka = !0;\n try {\n return Ia(a, b, c);\n } finally {\n Ka = !1, La();\n }\n}\nvar Na = /^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$/,\n Oa = Object.prototype.hasOwnProperty,\n Pa = {},\n Qa = {};\nfunction Ra(a) {\n if (Oa.call(Qa, a)) return !0;\n if (Oa.call(Pa, a)) return !1;\n if (Na.test(a)) return Qa[a] = !0;\n Pa[a] = !0;\n return !1;\n}\nfunction Sa(a, b, c, d) {\n if (null !== c && 0 === c.type) return !1;\n switch (typeof b) {\n case \"function\":\n case \"symbol\":\n return !0;\n case \"boolean\":\n if (d) return !1;\n if (null !== c) return !c.acceptsBooleans;\n a = a.toLowerCase().slice(0, 5);\n return \"data-\" !== a && \"aria-\" !== a;\n default:\n return !1;\n }\n}\nfunction Ta(a, b, c, d) {\n if (null === b || \"undefined\" === typeof b || Sa(a, b, c, d)) return !0;\n if (d) return !1;\n if (null !== c) switch (c.type) {\n case 3:\n return !b;\n case 4:\n return !1 === b;\n case 5:\n return isNaN(b);\n case 6:\n return isNaN(b) || 1 > b;\n }\n return !1;\n}\nfunction v(a, b, c, d, e, f) {\n this.acceptsBooleans = 2 === b || 3 === b || 4 === b;\n this.attributeName = d;\n this.attributeNamespace = e;\n this.mustUseProperty = c;\n this.propertyName = a;\n this.type = b;\n this.sanitizeURL = f;\n}\nvar C = {};\n\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach(function (a) {\n C[a] = new v(a, 0, !1, a, null, !1);\n});\n[[\"acceptCharset\", \"accept-charset\"], [\"className\", \"class\"], [\"htmlFor\", \"for\"], [\"httpEquiv\", \"http-equiv\"]].forEach(function (a) {\n var b = a[0];\n C[b] = new v(b, 1, !1, a[1], null, !1);\n});\n[\"contentEditable\", \"draggable\", \"spellCheck\", \"value\"].forEach(function (a) {\n C[a] = new v(a, 2, !1, a.toLowerCase(), null, !1);\n});\n[\"autoReverse\", \"externalResourcesRequired\", \"focusable\", \"preserveAlpha\"].forEach(function (a) {\n C[a] = new v(a, 2, !1, a, null, !1);\n});\n\"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope\".split(\" \").forEach(function (a) {\n C[a] = new v(a, 3, !1, a.toLowerCase(), null, !1);\n});\n[\"checked\", \"multiple\", \"muted\", \"selected\"].forEach(function (a) {\n C[a] = new v(a, 3, !0, a, null, !1);\n});\n[\"capture\", \"download\"].forEach(function (a) {\n C[a] = new v(a, 4, !1, a, null, !1);\n});\n[\"cols\", \"rows\", \"size\", \"span\"].forEach(function (a) {\n C[a] = new v(a, 6, !1, a, null, !1);\n});\n[\"rowSpan\", \"start\"].forEach(function (a) {\n C[a] = new v(a, 5, !1, a.toLowerCase(), null, !1);\n});\nvar Ua = /[\\-:]([a-z])/g;\nfunction Va(a) {\n return a[1].toUpperCase();\n}\n\"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height\".split(\" \").forEach(function (a) {\n var b = a.replace(Ua, Va);\n C[b] = new v(b, 1, !1, a, null, !1);\n});\n\"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach(function (a) {\n var b = a.replace(Ua, Va);\n C[b] = new v(b, 1, !1, a, \"http://www.w3.org/1999/xlink\", !1);\n});\n[\"xml:base\", \"xml:lang\", \"xml:space\"].forEach(function (a) {\n var b = a.replace(Ua, Va);\n C[b] = new v(b, 1, !1, a, \"http://www.w3.org/XML/1998/namespace\", !1);\n});\n[\"tabIndex\", \"crossOrigin\"].forEach(function (a) {\n C[a] = new v(a, 1, !1, a.toLowerCase(), null, !1);\n});\nC.xlinkHref = new v(\"xlinkHref\", 1, !1, \"xlink:href\", \"http://www.w3.org/1999/xlink\", !0);\n[\"src\", \"href\", \"action\", \"formAction\"].forEach(function (a) {\n C[a] = new v(a, 1, !1, a.toLowerCase(), null, !0);\n});\nvar Wa = aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\nWa.hasOwnProperty(\"ReactCurrentDispatcher\") || (Wa.ReactCurrentDispatcher = {\n current: null\n});\nWa.hasOwnProperty(\"ReactCurrentBatchConfig\") || (Wa.ReactCurrentBatchConfig = {\n suspense: null\n});\nfunction Xa(a, b, c, d) {\n var e = C.hasOwnProperty(b) ? C[b] : null;\n var f = null !== e ? 0 === e.type : d ? !1 : !(2 < b.length) || \"o\" !== b[0] && \"O\" !== b[0] || \"n\" !== b[1] && \"N\" !== b[1] ? !1 : !0;\n f || (Ta(b, c, e, d) && (c = null), d || null === e ? Ra(b) && (null === c ? a.removeAttribute(b) : a.setAttribute(b, \"\" + c)) : e.mustUseProperty ? a[e.propertyName] = null === c ? 3 === e.type ? !1 : \"\" : c : (b = e.attributeName, d = e.attributeNamespace, null === c ? a.removeAttribute(b) : (e = e.type, c = 3 === e || 4 === e && !0 === c ? \"\" : \"\" + c, d ? a.setAttributeNS(d, b, c) : a.setAttribute(b, c))));\n}\nvar Ya = /^(.*)[\\\\\\/]/,\n E = \"function\" === typeof Symbol && Symbol.for,\n Za = E ? Symbol.for(\"react.element\") : 60103,\n $a = E ? Symbol.for(\"react.portal\") : 60106,\n ab = E ? Symbol.for(\"react.fragment\") : 60107,\n bb = E ? Symbol.for(\"react.strict_mode\") : 60108,\n cb = E ? Symbol.for(\"react.profiler\") : 60114,\n db = E ? Symbol.for(\"react.provider\") : 60109,\n eb = E ? Symbol.for(\"react.context\") : 60110,\n fb = E ? Symbol.for(\"react.concurrent_mode\") : 60111,\n gb = E ? Symbol.for(\"react.forward_ref\") : 60112,\n hb = E ? Symbol.for(\"react.suspense\") : 60113,\n ib = E ? Symbol.for(\"react.suspense_list\") : 60120,\n jb = E ? Symbol.for(\"react.memo\") : 60115,\n kb = E ? Symbol.for(\"react.lazy\") : 60116,\n lb = E ? Symbol.for(\"react.block\") : 60121,\n mb = \"function\" === typeof Symbol && Symbol.iterator;\nfunction nb(a) {\n if (null === a || \"object\" !== typeof a) return null;\n a = mb && a[mb] || a[\"@@iterator\"];\n return \"function\" === typeof a ? a : null;\n}\nfunction ob(a) {\n if (-1 === a._status) {\n a._status = 0;\n var b = a._ctor;\n b = b();\n a._result = b;\n b.then(function (b) {\n 0 === a._status && (b = b.default, a._status = 1, a._result = b);\n }, function (b) {\n 0 === a._status && (a._status = 2, a._result = b);\n });\n }\n}\nfunction pb(a) {\n if (null == a) return null;\n if (\"function\" === typeof a) return a.displayName || a.name || null;\n if (\"string\" === typeof a) return a;\n switch (a) {\n case ab:\n return \"Fragment\";\n case $a:\n return \"Portal\";\n case cb:\n return \"Profiler\";\n case bb:\n return \"StrictMode\";\n case hb:\n return \"Suspense\";\n case ib:\n return \"SuspenseList\";\n }\n if (\"object\" === typeof a) switch (a.$$typeof) {\n case eb:\n return \"Context.Consumer\";\n case db:\n return \"Context.Provider\";\n case gb:\n var b = a.render;\n b = b.displayName || b.name || \"\";\n return a.displayName || (\"\" !== b ? \"ForwardRef(\" + b + \")\" : \"ForwardRef\");\n case jb:\n return pb(a.type);\n case lb:\n return pb(a.render);\n case kb:\n if (a = 1 === a._status ? a._result : null) return pb(a);\n }\n return null;\n}\nfunction qb(a) {\n var b = \"\";\n do {\n a: switch (a.tag) {\n case 3:\n case 4:\n case 6:\n case 7:\n case 10:\n case 9:\n var c = \"\";\n break a;\n default:\n var d = a._debugOwner,\n e = a._debugSource,\n f = pb(a.type);\n c = null;\n d && (c = pb(d.type));\n d = f;\n f = \"\";\n e ? f = \" (at \" + e.fileName.replace(Ya, \"\") + \":\" + e.lineNumber + \")\" : c && (f = \" (created by \" + c + \")\");\n c = \"\\n in \" + (d || \"Unknown\") + f;\n }\n b += c;\n a = a.return;\n } while (a);\n return b;\n}\nfunction rb(a) {\n switch (typeof a) {\n case \"boolean\":\n case \"number\":\n case \"object\":\n case \"string\":\n case \"undefined\":\n return a;\n default:\n return \"\";\n }\n}\nfunction sb(a) {\n var b = a.type;\n return (a = a.nodeName) && \"input\" === a.toLowerCase() && (\"checkbox\" === b || \"radio\" === b);\n}\nfunction tb(a) {\n var b = sb(a) ? \"checked\" : \"value\",\n c = Object.getOwnPropertyDescriptor(a.constructor.prototype, b),\n d = \"\" + a[b];\n if (!a.hasOwnProperty(b) && \"undefined\" !== typeof c && \"function\" === typeof c.get && \"function\" === typeof c.set) {\n var e = c.get,\n f = c.set;\n Object.defineProperty(a, b, {\n configurable: !0,\n get: function () {\n return e.call(this);\n },\n set: function (a) {\n d = \"\" + a;\n f.call(this, a);\n }\n });\n Object.defineProperty(a, b, {\n enumerable: c.enumerable\n });\n return {\n getValue: function () {\n return d;\n },\n setValue: function (a) {\n d = \"\" + a;\n },\n stopTracking: function () {\n a._valueTracker = null;\n delete a[b];\n }\n };\n }\n}\nfunction xb(a) {\n a._valueTracker || (a._valueTracker = tb(a));\n}\nfunction yb(a) {\n if (!a) return !1;\n var b = a._valueTracker;\n if (!b) return !0;\n var c = b.getValue();\n var d = \"\";\n a && (d = sb(a) ? a.checked ? \"true\" : \"false\" : a.value);\n a = d;\n return a !== c ? (b.setValue(a), !0) : !1;\n}\nfunction zb(a, b) {\n var c = b.checked;\n return n({}, b, {\n defaultChecked: void 0,\n defaultValue: void 0,\n value: void 0,\n checked: null != c ? c : a._wrapperState.initialChecked\n });\n}\nfunction Ab(a, b) {\n var c = null == b.defaultValue ? \"\" : b.defaultValue,\n d = null != b.checked ? b.checked : b.defaultChecked;\n c = rb(null != b.value ? b.value : c);\n a._wrapperState = {\n initialChecked: d,\n initialValue: c,\n controlled: \"checkbox\" === b.type || \"radio\" === b.type ? null != b.checked : null != b.value\n };\n}\nfunction Bb(a, b) {\n b = b.checked;\n null != b && Xa(a, \"checked\", b, !1);\n}\nfunction Cb(a, b) {\n Bb(a, b);\n var c = rb(b.value),\n d = b.type;\n if (null != c) {\n if (\"number\" === d) {\n if (0 === c && \"\" === a.value || a.value != c) a.value = \"\" + c;\n } else a.value !== \"\" + c && (a.value = \"\" + c);\n } else if (\"submit\" === d || \"reset\" === d) {\n a.removeAttribute(\"value\");\n return;\n }\n b.hasOwnProperty(\"value\") ? Db(a, b.type, c) : b.hasOwnProperty(\"defaultValue\") && Db(a, b.type, rb(b.defaultValue));\n null == b.checked && null != b.defaultChecked && (a.defaultChecked = !!b.defaultChecked);\n}\nfunction Eb(a, b, c) {\n if (b.hasOwnProperty(\"value\") || b.hasOwnProperty(\"defaultValue\")) {\n var d = b.type;\n if (!(\"submit\" !== d && \"reset\" !== d || void 0 !== b.value && null !== b.value)) return;\n b = \"\" + a._wrapperState.initialValue;\n c || b === a.value || (a.value = b);\n a.defaultValue = b;\n }\n c = a.name;\n \"\" !== c && (a.name = \"\");\n a.defaultChecked = !!a._wrapperState.initialChecked;\n \"\" !== c && (a.name = c);\n}\nfunction Db(a, b, c) {\n if (\"number\" !== b || a.ownerDocument.activeElement !== a) null == c ? a.defaultValue = \"\" + a._wrapperState.initialValue : a.defaultValue !== \"\" + c && (a.defaultValue = \"\" + c);\n}\nfunction Fb(a) {\n var b = \"\";\n aa.Children.forEach(a, function (a) {\n null != a && (b += a);\n });\n return b;\n}\nfunction Gb(a, b) {\n a = n({\n children: void 0\n }, b);\n if (b = Fb(b.children)) a.children = b;\n return a;\n}\nfunction Hb(a, b, c, d) {\n a = a.options;\n if (b) {\n b = {};\n for (var e = 0; e < c.length; e++) b[\"$\" + c[e]] = !0;\n for (c = 0; c < a.length; c++) e = b.hasOwnProperty(\"$\" + a[c].value), a[c].selected !== e && (a[c].selected = e), e && d && (a[c].defaultSelected = !0);\n } else {\n c = \"\" + rb(c);\n b = null;\n for (e = 0; e < a.length; e++) {\n if (a[e].value === c) {\n a[e].selected = !0;\n d && (a[e].defaultSelected = !0);\n return;\n }\n null !== b || a[e].disabled || (b = a[e]);\n }\n null !== b && (b.selected = !0);\n }\n}\nfunction Ib(a, b) {\n if (null != b.dangerouslySetInnerHTML) throw Error(u(91));\n return n({}, b, {\n value: void 0,\n defaultValue: void 0,\n children: \"\" + a._wrapperState.initialValue\n });\n}\nfunction Jb(a, b) {\n var c = b.value;\n if (null == c) {\n c = b.children;\n b = b.defaultValue;\n if (null != c) {\n if (null != b) throw Error(u(92));\n if (Array.isArray(c)) {\n if (!(1 >= c.length)) throw Error(u(93));\n c = c[0];\n }\n b = c;\n }\n null == b && (b = \"\");\n c = b;\n }\n a._wrapperState = {\n initialValue: rb(c)\n };\n}\nfunction Kb(a, b) {\n var c = rb(b.value),\n d = rb(b.defaultValue);\n null != c && (c = \"\" + c, c !== a.value && (a.value = c), null == b.defaultValue && a.defaultValue !== c && (a.defaultValue = c));\n null != d && (a.defaultValue = \"\" + d);\n}\nfunction Lb(a) {\n var b = a.textContent;\n b === a._wrapperState.initialValue && \"\" !== b && null !== b && (a.value = b);\n}\nvar Mb = {\n html: \"http://www.w3.org/1999/xhtml\",\n mathml: \"http://www.w3.org/1998/Math/MathML\",\n svg: \"http://www.w3.org/2000/svg\"\n};\nfunction Nb(a) {\n switch (a) {\n case \"svg\":\n return \"http://www.w3.org/2000/svg\";\n case \"math\":\n return \"http://www.w3.org/1998/Math/MathML\";\n default:\n return \"http://www.w3.org/1999/xhtml\";\n }\n}\nfunction Ob(a, b) {\n return null == a || \"http://www.w3.org/1999/xhtml\" === a ? Nb(b) : \"http://www.w3.org/2000/svg\" === a && \"foreignObject\" === b ? \"http://www.w3.org/1999/xhtml\" : a;\n}\nvar Pb,\n Qb = function (a) {\n return \"undefined\" !== typeof MSApp && MSApp.execUnsafeLocalFunction ? function (b, c, d, e) {\n MSApp.execUnsafeLocalFunction(function () {\n return a(b, c, d, e);\n });\n } : a;\n }(function (a, b) {\n if (a.namespaceURI !== Mb.svg || \"innerHTML\" in a) a.innerHTML = b;else {\n Pb = Pb || document.createElement(\"div\");\n Pb.innerHTML = \"\";\n for (b = Pb.firstChild; a.firstChild;) a.removeChild(a.firstChild);\n for (; b.firstChild;) a.appendChild(b.firstChild);\n }\n });\nfunction Rb(a, b) {\n if (b) {\n var c = a.firstChild;\n if (c && c === a.lastChild && 3 === c.nodeType) {\n c.nodeValue = b;\n return;\n }\n }\n a.textContent = b;\n}\nfunction Sb(a, b) {\n var c = {};\n c[a.toLowerCase()] = b.toLowerCase();\n c[\"Webkit\" + a] = \"webkit\" + b;\n c[\"Moz\" + a] = \"moz\" + b;\n return c;\n}\nvar Tb = {\n animationend: Sb(\"Animation\", \"AnimationEnd\"),\n animationiteration: Sb(\"Animation\", \"AnimationIteration\"),\n animationstart: Sb(\"Animation\", \"AnimationStart\"),\n transitionend: Sb(\"Transition\", \"TransitionEnd\")\n },\n Ub = {},\n Vb = {};\nya && (Vb = document.createElement(\"div\").style, \"AnimationEvent\" in window || (delete Tb.animationend.animation, delete Tb.animationiteration.animation, delete Tb.animationstart.animation), \"TransitionEvent\" in window || delete Tb.transitionend.transition);\nfunction Wb(a) {\n if (Ub[a]) return Ub[a];\n if (!Tb[a]) return a;\n var b = Tb[a],\n c;\n for (c in b) if (b.hasOwnProperty(c) && c in Vb) return Ub[a] = b[c];\n return a;\n}\nvar Xb = Wb(\"animationend\"),\n Yb = Wb(\"animationiteration\"),\n Zb = Wb(\"animationstart\"),\n $b = Wb(\"transitionend\"),\n ac = \"abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting\".split(\" \"),\n bc = new (\"function\" === typeof WeakMap ? WeakMap : Map)();\nfunction cc(a) {\n var b = bc.get(a);\n void 0 === b && (b = new Map(), bc.set(a, b));\n return b;\n}\nfunction dc(a) {\n var b = a,\n c = a;\n if (a.alternate) for (; b.return;) b = b.return;else {\n a = b;\n do b = a, 0 !== (b.effectTag & 1026) && (c = b.return), a = b.return; while (a);\n }\n return 3 === b.tag ? c : null;\n}\nfunction ec(a) {\n if (13 === a.tag) {\n var b = a.memoizedState;\n null === b && (a = a.alternate, null !== a && (b = a.memoizedState));\n if (null !== b) return b.dehydrated;\n }\n return null;\n}\nfunction fc(a) {\n if (dc(a) !== a) throw Error(u(188));\n}\nfunction gc(a) {\n var b = a.alternate;\n if (!b) {\n b = dc(a);\n if (null === b) throw Error(u(188));\n return b !== a ? null : a;\n }\n for (var c = a, d = b;;) {\n var e = c.return;\n if (null === e) break;\n var f = e.alternate;\n if (null === f) {\n d = e.return;\n if (null !== d) {\n c = d;\n continue;\n }\n break;\n }\n if (e.child === f.child) {\n for (f = e.child; f;) {\n if (f === c) return fc(e), a;\n if (f === d) return fc(e), b;\n f = f.sibling;\n }\n throw Error(u(188));\n }\n if (c.return !== d.return) c = e, d = f;else {\n for (var g = !1, h = e.child; h;) {\n if (h === c) {\n g = !0;\n c = e;\n d = f;\n break;\n }\n if (h === d) {\n g = !0;\n d = e;\n c = f;\n break;\n }\n h = h.sibling;\n }\n if (!g) {\n for (h = f.child; h;) {\n if (h === c) {\n g = !0;\n c = f;\n d = e;\n break;\n }\n if (h === d) {\n g = !0;\n d = f;\n c = e;\n break;\n }\n h = h.sibling;\n }\n if (!g) throw Error(u(189));\n }\n }\n if (c.alternate !== d) throw Error(u(190));\n }\n if (3 !== c.tag) throw Error(u(188));\n return c.stateNode.current === c ? a : b;\n}\nfunction hc(a) {\n a = gc(a);\n if (!a) return null;\n for (var b = a;;) {\n if (5 === b.tag || 6 === b.tag) return b;\n if (b.child) b.child.return = b, b = b.child;else {\n if (b === a) break;\n for (; !b.sibling;) {\n if (!b.return || b.return === a) return null;\n b = b.return;\n }\n b.sibling.return = b.return;\n b = b.sibling;\n }\n }\n return null;\n}\nfunction ic(a, b) {\n if (null == b) throw Error(u(30));\n if (null == a) return b;\n if (Array.isArray(a)) {\n if (Array.isArray(b)) return a.push.apply(a, b), a;\n a.push(b);\n return a;\n }\n return Array.isArray(b) ? [a].concat(b) : [a, b];\n}\nfunction jc(a, b, c) {\n Array.isArray(a) ? a.forEach(b, c) : a && b.call(c, a);\n}\nvar kc = null;\nfunction lc(a) {\n if (a) {\n var b = a._dispatchListeners,\n c = a._dispatchInstances;\n if (Array.isArray(b)) for (var d = 0; d < b.length && !a.isPropagationStopped(); d++) oa(a, b[d], c[d]);else b && oa(a, b, c);\n a._dispatchListeners = null;\n a._dispatchInstances = null;\n a.isPersistent() || a.constructor.release(a);\n }\n}\nfunction mc(a) {\n null !== a && (kc = ic(kc, a));\n a = kc;\n kc = null;\n if (a) {\n jc(a, lc);\n if (kc) throw Error(u(95));\n if (fa) throw a = ha, fa = !1, ha = null, a;\n }\n}\nfunction nc(a) {\n a = a.target || a.srcElement || window;\n a.correspondingUseElement && (a = a.correspondingUseElement);\n return 3 === a.nodeType ? a.parentNode : a;\n}\nfunction oc(a) {\n if (!ya) return !1;\n a = \"on\" + a;\n var b = (a in document);\n b || (b = document.createElement(\"div\"), b.setAttribute(a, \"return;\"), b = \"function\" === typeof b[a]);\n return b;\n}\nvar pc = [];\nfunction qc(a) {\n a.topLevelType = null;\n a.nativeEvent = null;\n a.targetInst = null;\n a.ancestors.length = 0;\n 10 > pc.length && pc.push(a);\n}\nfunction rc(a, b, c, d) {\n if (pc.length) {\n var e = pc.pop();\n e.topLevelType = a;\n e.eventSystemFlags = d;\n e.nativeEvent = b;\n e.targetInst = c;\n return e;\n }\n return {\n topLevelType: a,\n eventSystemFlags: d,\n nativeEvent: b,\n targetInst: c,\n ancestors: []\n };\n}\nfunction sc(a) {\n var b = a.targetInst,\n c = b;\n do {\n if (!c) {\n a.ancestors.push(c);\n break;\n }\n var d = c;\n if (3 === d.tag) d = d.stateNode.containerInfo;else {\n for (; d.return;) d = d.return;\n d = 3 !== d.tag ? null : d.stateNode.containerInfo;\n }\n if (!d) break;\n b = c.tag;\n 5 !== b && 6 !== b || a.ancestors.push(c);\n c = tc(d);\n } while (c);\n for (c = 0; c < a.ancestors.length; c++) {\n b = a.ancestors[c];\n var e = nc(a.nativeEvent);\n d = a.topLevelType;\n var f = a.nativeEvent,\n g = a.eventSystemFlags;\n 0 === c && (g |= 64);\n for (var h = null, k = 0; k < sa.length; k++) {\n var l = sa[k];\n l && (l = l.extractEvents(d, b, f, e, g)) && (h = ic(h, l));\n }\n mc(h);\n }\n}\nfunction uc(a, b, c) {\n if (!c.has(a)) {\n switch (a) {\n case \"scroll\":\n vc(b, \"scroll\", !0);\n break;\n case \"focus\":\n case \"blur\":\n vc(b, \"focus\", !0);\n vc(b, \"blur\", !0);\n c.set(\"blur\", null);\n c.set(\"focus\", null);\n break;\n case \"cancel\":\n case \"close\":\n oc(a) && vc(b, a, !0);\n break;\n case \"invalid\":\n case \"submit\":\n case \"reset\":\n break;\n default:\n -1 === ac.indexOf(a) && F(a, b);\n }\n c.set(a, null);\n }\n}\nvar wc,\n xc,\n yc,\n zc = !1,\n Ac = [],\n Bc = null,\n Cc = null,\n Dc = null,\n Ec = new Map(),\n Fc = new Map(),\n Gc = [],\n Hc = \"mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit\".split(\" \"),\n Ic = \"focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture\".split(\" \");\nfunction Jc(a, b) {\n var c = cc(b);\n Hc.forEach(function (a) {\n uc(a, b, c);\n });\n Ic.forEach(function (a) {\n uc(a, b, c);\n });\n}\nfunction Kc(a, b, c, d, e) {\n return {\n blockedOn: a,\n topLevelType: b,\n eventSystemFlags: c | 32,\n nativeEvent: e,\n container: d\n };\n}\nfunction Lc(a, b) {\n switch (a) {\n case \"focus\":\n case \"blur\":\n Bc = null;\n break;\n case \"dragenter\":\n case \"dragleave\":\n Cc = null;\n break;\n case \"mouseover\":\n case \"mouseout\":\n Dc = null;\n break;\n case \"pointerover\":\n case \"pointerout\":\n Ec.delete(b.pointerId);\n break;\n case \"gotpointercapture\":\n case \"lostpointercapture\":\n Fc.delete(b.pointerId);\n }\n}\nfunction Mc(a, b, c, d, e, f) {\n if (null === a || a.nativeEvent !== f) return a = Kc(b, c, d, e, f), null !== b && (b = Nc(b), null !== b && xc(b)), a;\n a.eventSystemFlags |= d;\n return a;\n}\nfunction Oc(a, b, c, d, e) {\n switch (b) {\n case \"focus\":\n return Bc = Mc(Bc, a, b, c, d, e), !0;\n case \"dragenter\":\n return Cc = Mc(Cc, a, b, c, d, e), !0;\n case \"mouseover\":\n return Dc = Mc(Dc, a, b, c, d, e), !0;\n case \"pointerover\":\n var f = e.pointerId;\n Ec.set(f, Mc(Ec.get(f) || null, a, b, c, d, e));\n return !0;\n case \"gotpointercapture\":\n return f = e.pointerId, Fc.set(f, Mc(Fc.get(f) || null, a, b, c, d, e)), !0;\n }\n return !1;\n}\nfunction Pc(a) {\n var b = tc(a.target);\n if (null !== b) {\n var c = dc(b);\n if (null !== c) if (b = c.tag, 13 === b) {\n if (b = ec(c), null !== b) {\n a.blockedOn = b;\n r.unstable_runWithPriority(a.priority, function () {\n yc(c);\n });\n return;\n }\n } else if (3 === b && c.stateNode.hydrate) {\n a.blockedOn = 3 === c.tag ? c.stateNode.containerInfo : null;\n return;\n }\n }\n a.blockedOn = null;\n}\nfunction Qc(a) {\n if (null !== a.blockedOn) return !1;\n var b = Rc(a.topLevelType, a.eventSystemFlags, a.container, a.nativeEvent);\n if (null !== b) {\n var c = Nc(b);\n null !== c && xc(c);\n a.blockedOn = b;\n return !1;\n }\n return !0;\n}\nfunction Sc(a, b, c) {\n Qc(a) && c.delete(b);\n}\nfunction Tc() {\n for (zc = !1; 0 < Ac.length;) {\n var a = Ac[0];\n if (null !== a.blockedOn) {\n a = Nc(a.blockedOn);\n null !== a && wc(a);\n break;\n }\n var b = Rc(a.topLevelType, a.eventSystemFlags, a.container, a.nativeEvent);\n null !== b ? a.blockedOn = b : Ac.shift();\n }\n null !== Bc && Qc(Bc) && (Bc = null);\n null !== Cc && Qc(Cc) && (Cc = null);\n null !== Dc && Qc(Dc) && (Dc = null);\n Ec.forEach(Sc);\n Fc.forEach(Sc);\n}\nfunction Uc(a, b) {\n a.blockedOn === b && (a.blockedOn = null, zc || (zc = !0, r.unstable_scheduleCallback(r.unstable_NormalPriority, Tc)));\n}\nfunction Vc(a) {\n function b(b) {\n return Uc(b, a);\n }\n if (0 < Ac.length) {\n Uc(Ac[0], a);\n for (var c = 1; c < Ac.length; c++) {\n var d = Ac[c];\n d.blockedOn === a && (d.blockedOn = null);\n }\n }\n null !== Bc && Uc(Bc, a);\n null !== Cc && Uc(Cc, a);\n null !== Dc && Uc(Dc, a);\n Ec.forEach(b);\n Fc.forEach(b);\n for (c = 0; c < Gc.length; c++) d = Gc[c], d.blockedOn === a && (d.blockedOn = null);\n for (; 0 < Gc.length && (c = Gc[0], null === c.blockedOn);) Pc(c), null === c.blockedOn && Gc.shift();\n}\nvar Wc = {},\n Yc = new Map(),\n Zc = new Map(),\n $c = [\"abort\", \"abort\", Xb, \"animationEnd\", Yb, \"animationIteration\", Zb, \"animationStart\", \"canplay\", \"canPlay\", \"canplaythrough\", \"canPlayThrough\", \"durationchange\", \"durationChange\", \"emptied\", \"emptied\", \"encrypted\", \"encrypted\", \"ended\", \"ended\", \"error\", \"error\", \"gotpointercapture\", \"gotPointerCapture\", \"load\", \"load\", \"loadeddata\", \"loadedData\", \"loadedmetadata\", \"loadedMetadata\", \"loadstart\", \"loadStart\", \"lostpointercapture\", \"lostPointerCapture\", \"playing\", \"playing\", \"progress\", \"progress\", \"seeking\", \"seeking\", \"stalled\", \"stalled\", \"suspend\", \"suspend\", \"timeupdate\", \"timeUpdate\", $b, \"transitionEnd\", \"waiting\", \"waiting\"];\nfunction ad(a, b) {\n for (var c = 0; c < a.length; c += 2) {\n var d = a[c],\n e = a[c + 1],\n f = \"on\" + (e[0].toUpperCase() + e.slice(1));\n f = {\n phasedRegistrationNames: {\n bubbled: f,\n captured: f + \"Capture\"\n },\n dependencies: [d],\n eventPriority: b\n };\n Zc.set(d, b);\n Yc.set(d, f);\n Wc[e] = f;\n }\n}\nad(\"blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange\".split(\" \"), 0);\nad(\"drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel\".split(\" \"), 1);\nad($c, 2);\nfor (var bd = \"change selectionchange textInput compositionstart compositionend compositionupdate\".split(\" \"), cd = 0; cd < bd.length; cd++) Zc.set(bd[cd], 0);\nvar dd = r.unstable_UserBlockingPriority,\n ed = r.unstable_runWithPriority,\n fd = !0;\nfunction F(a, b) {\n vc(b, a, !1);\n}\nfunction vc(a, b, c) {\n var d = Zc.get(b);\n switch (void 0 === d ? 2 : d) {\n case 0:\n d = gd.bind(null, b, 1, a);\n break;\n case 1:\n d = hd.bind(null, b, 1, a);\n break;\n default:\n d = id.bind(null, b, 1, a);\n }\n c ? a.addEventListener(b, d, !0) : a.addEventListener(b, d, !1);\n}\nfunction gd(a, b, c, d) {\n Ja || Ha();\n var e = id,\n f = Ja;\n Ja = !0;\n try {\n Ga(e, a, b, c, d);\n } finally {\n (Ja = f) || La();\n }\n}\nfunction hd(a, b, c, d) {\n ed(dd, id.bind(null, a, b, c, d));\n}\nfunction id(a, b, c, d) {\n if (fd) if (0 < Ac.length && -1 < Hc.indexOf(a)) a = Kc(null, a, b, c, d), Ac.push(a);else {\n var e = Rc(a, b, c, d);\n if (null === e) Lc(a, d);else if (-1 < Hc.indexOf(a)) a = Kc(e, a, b, c, d), Ac.push(a);else if (!Oc(e, a, b, c, d)) {\n Lc(a, d);\n a = rc(a, d, null, b);\n try {\n Ma(sc, a);\n } finally {\n qc(a);\n }\n }\n }\n}\nfunction Rc(a, b, c, d) {\n c = nc(d);\n c = tc(c);\n if (null !== c) {\n var e = dc(c);\n if (null === e) c = null;else {\n var f = e.tag;\n if (13 === f) {\n c = ec(e);\n if (null !== c) return c;\n c = null;\n } else if (3 === f) {\n if (e.stateNode.hydrate) return 3 === e.tag ? e.stateNode.containerInfo : null;\n c = null;\n } else e !== c && (c = null);\n }\n }\n a = rc(a, d, c, b);\n try {\n Ma(sc, a);\n } finally {\n qc(a);\n }\n return null;\n}\nvar jd = {\n animationIterationCount: !0,\n borderImageOutset: !0,\n borderImageSlice: !0,\n borderImageWidth: !0,\n boxFlex: !0,\n boxFlexGroup: !0,\n boxOrdinalGroup: !0,\n columnCount: !0,\n columns: !0,\n flex: !0,\n flexGrow: !0,\n flexPositive: !0,\n flexShrink: !0,\n flexNegative: !0,\n flexOrder: !0,\n gridArea: !0,\n gridRow: !0,\n gridRowEnd: !0,\n gridRowSpan: !0,\n gridRowStart: !0,\n gridColumn: !0,\n gridColumnEnd: !0,\n gridColumnSpan: !0,\n gridColumnStart: !0,\n fontWeight: !0,\n lineClamp: !0,\n lineHeight: !0,\n opacity: !0,\n order: !0,\n orphans: !0,\n tabSize: !0,\n widows: !0,\n zIndex: !0,\n zoom: !0,\n fillOpacity: !0,\n floodOpacity: !0,\n stopOpacity: !0,\n strokeDasharray: !0,\n strokeDashoffset: !0,\n strokeMiterlimit: !0,\n strokeOpacity: !0,\n strokeWidth: !0\n },\n kd = [\"Webkit\", \"ms\", \"Moz\", \"O\"];\nObject.keys(jd).forEach(function (a) {\n kd.forEach(function (b) {\n b = b + a.charAt(0).toUpperCase() + a.substring(1);\n jd[b] = jd[a];\n });\n});\nfunction ld(a, b, c) {\n return null == b || \"boolean\" === typeof b || \"\" === b ? \"\" : c || \"number\" !== typeof b || 0 === b || jd.hasOwnProperty(a) && jd[a] ? (\"\" + b).trim() : b + \"px\";\n}\nfunction md(a, b) {\n a = a.style;\n for (var c in b) if (b.hasOwnProperty(c)) {\n var d = 0 === c.indexOf(\"--\"),\n e = ld(c, b[c], d);\n \"float\" === c && (c = \"cssFloat\");\n d ? a.setProperty(c, e) : a[c] = e;\n }\n}\nvar nd = n({\n menuitem: !0\n}, {\n area: !0,\n base: !0,\n br: !0,\n col: !0,\n embed: !0,\n hr: !0,\n img: !0,\n input: !0,\n keygen: !0,\n link: !0,\n meta: !0,\n param: !0,\n source: !0,\n track: !0,\n wbr: !0\n});\nfunction od(a, b) {\n if (b) {\n if (nd[a] && (null != b.children || null != b.dangerouslySetInnerHTML)) throw Error(u(137, a, \"\"));\n if (null != b.dangerouslySetInnerHTML) {\n if (null != b.children) throw Error(u(60));\n if (!(\"object\" === typeof b.dangerouslySetInnerHTML && \"__html\" in b.dangerouslySetInnerHTML)) throw Error(u(61));\n }\n if (null != b.style && \"object\" !== typeof b.style) throw Error(u(62, \"\"));\n }\n}\nfunction pd(a, b) {\n if (-1 === a.indexOf(\"-\")) return \"string\" === typeof b.is;\n switch (a) {\n case \"annotation-xml\":\n case \"color-profile\":\n case \"font-face\":\n case \"font-face-src\":\n case \"font-face-uri\":\n case \"font-face-format\":\n case \"font-face-name\":\n case \"missing-glyph\":\n return !1;\n default:\n return !0;\n }\n}\nvar qd = Mb.html;\nfunction rd(a, b) {\n a = 9 === a.nodeType || 11 === a.nodeType ? a : a.ownerDocument;\n var c = cc(a);\n b = wa[b];\n for (var d = 0; d < b.length; d++) uc(b[d], a, c);\n}\nfunction sd() {}\nfunction td(a) {\n a = a || (\"undefined\" !== typeof document ? document : void 0);\n if (\"undefined\" === typeof a) return null;\n try {\n return a.activeElement || a.body;\n } catch (b) {\n return a.body;\n }\n}\nfunction ud(a) {\n for (; a && a.firstChild;) a = a.firstChild;\n return a;\n}\nfunction vd(a, b) {\n var c = ud(a);\n a = 0;\n for (var d; c;) {\n if (3 === c.nodeType) {\n d = a + c.textContent.length;\n if (a <= b && d >= b) return {\n node: c,\n offset: b - a\n };\n a = d;\n }\n a: {\n for (; c;) {\n if (c.nextSibling) {\n c = c.nextSibling;\n break a;\n }\n c = c.parentNode;\n }\n c = void 0;\n }\n c = ud(c);\n }\n}\nfunction wd(a, b) {\n return a && b ? a === b ? !0 : a && 3 === a.nodeType ? !1 : b && 3 === b.nodeType ? wd(a, b.parentNode) : \"contains\" in a ? a.contains(b) : a.compareDocumentPosition ? !!(a.compareDocumentPosition(b) & 16) : !1 : !1;\n}\nfunction xd() {\n for (var a = window, b = td(); b instanceof a.HTMLIFrameElement;) {\n try {\n var c = \"string\" === typeof b.contentWindow.location.href;\n } catch (d) {\n c = !1;\n }\n if (c) a = b.contentWindow;else break;\n b = td(a.document);\n }\n return b;\n}\nfunction yd(a) {\n var b = a && a.nodeName && a.nodeName.toLowerCase();\n return b && (\"input\" === b && (\"text\" === a.type || \"search\" === a.type || \"tel\" === a.type || \"url\" === a.type || \"password\" === a.type) || \"textarea\" === b || \"true\" === a.contentEditable);\n}\nvar zd = \"$\",\n Ad = \"/$\",\n Bd = \"$?\",\n Cd = \"$!\",\n Dd = null,\n Ed = null;\nfunction Fd(a, b) {\n switch (a) {\n case \"button\":\n case \"input\":\n case \"select\":\n case \"textarea\":\n return !!b.autoFocus;\n }\n return !1;\n}\nfunction Gd(a, b) {\n return \"textarea\" === a || \"option\" === a || \"noscript\" === a || \"string\" === typeof b.children || \"number\" === typeof b.children || \"object\" === typeof b.dangerouslySetInnerHTML && null !== b.dangerouslySetInnerHTML && null != b.dangerouslySetInnerHTML.__html;\n}\nvar Hd = \"function\" === typeof setTimeout ? setTimeout : void 0,\n Id = \"function\" === typeof clearTimeout ? clearTimeout : void 0;\nfunction Jd(a) {\n for (; null != a; a = a.nextSibling) {\n var b = a.nodeType;\n if (1 === b || 3 === b) break;\n }\n return a;\n}\nfunction Kd(a) {\n a = a.previousSibling;\n for (var b = 0; a;) {\n if (8 === a.nodeType) {\n var c = a.data;\n if (c === zd || c === Cd || c === Bd) {\n if (0 === b) return a;\n b--;\n } else c === Ad && b++;\n }\n a = a.previousSibling;\n }\n return null;\n}\nvar Ld = Math.random().toString(36).slice(2),\n Md = \"__reactInternalInstance$\" + Ld,\n Nd = \"__reactEventHandlers$\" + Ld,\n Od = \"__reactContainere$\" + Ld;\nfunction tc(a) {\n var b = a[Md];\n if (b) return b;\n for (var c = a.parentNode; c;) {\n if (b = c[Od] || c[Md]) {\n c = b.alternate;\n if (null !== b.child || null !== c && null !== c.child) for (a = Kd(a); null !== a;) {\n if (c = a[Md]) return c;\n a = Kd(a);\n }\n return b;\n }\n a = c;\n c = a.parentNode;\n }\n return null;\n}\nfunction Nc(a) {\n a = a[Md] || a[Od];\n return !a || 5 !== a.tag && 6 !== a.tag && 13 !== a.tag && 3 !== a.tag ? null : a;\n}\nfunction Pd(a) {\n if (5 === a.tag || 6 === a.tag) return a.stateNode;\n throw Error(u(33));\n}\nfunction Qd(a) {\n return a[Nd] || null;\n}\nfunction Rd(a) {\n do a = a.return; while (a && 5 !== a.tag);\n return a ? a : null;\n}\nfunction Sd(a, b) {\n var c = a.stateNode;\n if (!c) return null;\n var d = la(c);\n if (!d) return null;\n c = d[b];\n a: switch (b) {\n case \"onClick\":\n case \"onClickCapture\":\n case \"onDoubleClick\":\n case \"onDoubleClickCapture\":\n case \"onMouseDown\":\n case \"onMouseDownCapture\":\n case \"onMouseMove\":\n case \"onMouseMoveCapture\":\n case \"onMouseUp\":\n case \"onMouseUpCapture\":\n case \"onMouseEnter\":\n (d = !d.disabled) || (a = a.type, d = !(\"button\" === a || \"input\" === a || \"select\" === a || \"textarea\" === a));\n a = !d;\n break a;\n default:\n a = !1;\n }\n if (a) return null;\n if (c && \"function\" !== typeof c) throw Error(u(231, b, typeof c));\n return c;\n}\nfunction Td(a, b, c) {\n if (b = Sd(a, c.dispatchConfig.phasedRegistrationNames[b])) c._dispatchListeners = ic(c._dispatchListeners, b), c._dispatchInstances = ic(c._dispatchInstances, a);\n}\nfunction Ud(a) {\n if (a && a.dispatchConfig.phasedRegistrationNames) {\n for (var b = a._targetInst, c = []; b;) c.push(b), b = Rd(b);\n for (b = c.length; 0 < b--;) Td(c[b], \"captured\", a);\n for (b = 0; b < c.length; b++) Td(c[b], \"bubbled\", a);\n }\n}\nfunction Vd(a, b, c) {\n a && c && c.dispatchConfig.registrationName && (b = Sd(a, c.dispatchConfig.registrationName)) && (c._dispatchListeners = ic(c._dispatchListeners, b), c._dispatchInstances = ic(c._dispatchInstances, a));\n}\nfunction Wd(a) {\n a && a.dispatchConfig.registrationName && Vd(a._targetInst, null, a);\n}\nfunction Xd(a) {\n jc(a, Ud);\n}\nvar Yd = null,\n Zd = null,\n $d = null;\nfunction ae() {\n if ($d) return $d;\n var a,\n b = Zd,\n c = b.length,\n d,\n e = \"value\" in Yd ? Yd.value : Yd.textContent,\n f = e.length;\n for (a = 0; a < c && b[a] === e[a]; a++);\n var g = c - a;\n for (d = 1; d <= g && b[c - d] === e[f - d]; d++);\n return $d = e.slice(a, 1 < d ? 1 - d : void 0);\n}\nfunction be() {\n return !0;\n}\nfunction ce() {\n return !1;\n}\nfunction G(a, b, c, d) {\n this.dispatchConfig = a;\n this._targetInst = b;\n this.nativeEvent = c;\n a = this.constructor.Interface;\n for (var e in a) a.hasOwnProperty(e) && ((b = a[e]) ? this[e] = b(c) : \"target\" === e ? this.target = d : this[e] = c[e]);\n this.isDefaultPrevented = (null != c.defaultPrevented ? c.defaultPrevented : !1 === c.returnValue) ? be : ce;\n this.isPropagationStopped = ce;\n return this;\n}\nn(G.prototype, {\n preventDefault: function () {\n this.defaultPrevented = !0;\n var a = this.nativeEvent;\n a && (a.preventDefault ? a.preventDefault() : \"unknown\" !== typeof a.returnValue && (a.returnValue = !1), this.isDefaultPrevented = be);\n },\n stopPropagation: function () {\n var a = this.nativeEvent;\n a && (a.stopPropagation ? a.stopPropagation() : \"unknown\" !== typeof a.cancelBubble && (a.cancelBubble = !0), this.isPropagationStopped = be);\n },\n persist: function () {\n this.isPersistent = be;\n },\n isPersistent: ce,\n destructor: function () {\n var a = this.constructor.Interface,\n b;\n for (b in a) this[b] = null;\n this.nativeEvent = this._targetInst = this.dispatchConfig = null;\n this.isPropagationStopped = this.isDefaultPrevented = ce;\n this._dispatchInstances = this._dispatchListeners = null;\n }\n});\nG.Interface = {\n type: null,\n target: null,\n currentTarget: function () {\n return null;\n },\n eventPhase: null,\n bubbles: null,\n cancelable: null,\n timeStamp: function (a) {\n return a.timeStamp || Date.now();\n },\n defaultPrevented: null,\n isTrusted: null\n};\nG.extend = function (a) {\n function b() {}\n function c() {\n return d.apply(this, arguments);\n }\n var d = this;\n b.prototype = d.prototype;\n var e = new b();\n n(e, c.prototype);\n c.prototype = e;\n c.prototype.constructor = c;\n c.Interface = n({}, d.Interface, a);\n c.extend = d.extend;\n de(c);\n return c;\n};\nde(G);\nfunction ee(a, b, c, d) {\n if (this.eventPool.length) {\n var e = this.eventPool.pop();\n this.call(e, a, b, c, d);\n return e;\n }\n return new this(a, b, c, d);\n}\nfunction fe(a) {\n if (!(a instanceof this)) throw Error(u(279));\n a.destructor();\n 10 > this.eventPool.length && this.eventPool.push(a);\n}\nfunction de(a) {\n a.eventPool = [];\n a.getPooled = ee;\n a.release = fe;\n}\nvar ge = G.extend({\n data: null\n }),\n he = G.extend({\n data: null\n }),\n ie = [9, 13, 27, 32],\n je = ya && \"CompositionEvent\" in window,\n ke = null;\nya && \"documentMode\" in document && (ke = document.documentMode);\nvar le = ya && \"TextEvent\" in window && !ke,\n me = ya && (!je || ke && 8 < ke && 11 >= ke),\n ne = String.fromCharCode(32),\n oe = {\n beforeInput: {\n phasedRegistrationNames: {\n bubbled: \"onBeforeInput\",\n captured: \"onBeforeInputCapture\"\n },\n dependencies: [\"compositionend\", \"keypress\", \"textInput\", \"paste\"]\n },\n compositionEnd: {\n phasedRegistrationNames: {\n bubbled: \"onCompositionEnd\",\n captured: \"onCompositionEndCapture\"\n },\n dependencies: \"blur compositionend keydown keypress keyup mousedown\".split(\" \")\n },\n compositionStart: {\n phasedRegistrationNames: {\n bubbled: \"onCompositionStart\",\n captured: \"onCompositionStartCapture\"\n },\n dependencies: \"blur compositionstart keydown keypress keyup mousedown\".split(\" \")\n },\n compositionUpdate: {\n phasedRegistrationNames: {\n bubbled: \"onCompositionUpdate\",\n captured: \"onCompositionUpdateCapture\"\n },\n dependencies: \"blur compositionupdate keydown keypress keyup mousedown\".split(\" \")\n }\n },\n pe = !1;\nfunction qe(a, b) {\n switch (a) {\n case \"keyup\":\n return -1 !== ie.indexOf(b.keyCode);\n case \"keydown\":\n return 229 !== b.keyCode;\n case \"keypress\":\n case \"mousedown\":\n case \"blur\":\n return !0;\n default:\n return !1;\n }\n}\nfunction re(a) {\n a = a.detail;\n return \"object\" === typeof a && \"data\" in a ? a.data : null;\n}\nvar se = !1;\nfunction te(a, b) {\n switch (a) {\n case \"compositionend\":\n return re(b);\n case \"keypress\":\n if (32 !== b.which) return null;\n pe = !0;\n return ne;\n case \"textInput\":\n return a = b.data, a === ne && pe ? null : a;\n default:\n return null;\n }\n}\nfunction ue(a, b) {\n if (se) return \"compositionend\" === a || !je && qe(a, b) ? (a = ae(), $d = Zd = Yd = null, se = !1, a) : null;\n switch (a) {\n case \"paste\":\n return null;\n case \"keypress\":\n if (!(b.ctrlKey || b.altKey || b.metaKey) || b.ctrlKey && b.altKey) {\n if (b.char && 1 < b.char.length) return b.char;\n if (b.which) return String.fromCharCode(b.which);\n }\n return null;\n case \"compositionend\":\n return me && \"ko\" !== b.locale ? null : b.data;\n default:\n return null;\n }\n}\nvar ve = {\n eventTypes: oe,\n extractEvents: function (a, b, c, d) {\n var e;\n if (je) b: {\n switch (a) {\n case \"compositionstart\":\n var f = oe.compositionStart;\n break b;\n case \"compositionend\":\n f = oe.compositionEnd;\n break b;\n case \"compositionupdate\":\n f = oe.compositionUpdate;\n break b;\n }\n f = void 0;\n } else se ? qe(a, c) && (f = oe.compositionEnd) : \"keydown\" === a && 229 === c.keyCode && (f = oe.compositionStart);\n f ? (me && \"ko\" !== c.locale && (se || f !== oe.compositionStart ? f === oe.compositionEnd && se && (e = ae()) : (Yd = d, Zd = \"value\" in Yd ? Yd.value : Yd.textContent, se = !0)), f = ge.getPooled(f, b, c, d), e ? f.data = e : (e = re(c), null !== e && (f.data = e)), Xd(f), e = f) : e = null;\n (a = le ? te(a, c) : ue(a, c)) ? (b = he.getPooled(oe.beforeInput, b, c, d), b.data = a, Xd(b)) : b = null;\n return null === e ? b : null === b ? e : [e, b];\n }\n },\n we = {\n color: !0,\n date: !0,\n datetime: !0,\n \"datetime-local\": !0,\n email: !0,\n month: !0,\n number: !0,\n password: !0,\n range: !0,\n search: !0,\n tel: !0,\n text: !0,\n time: !0,\n url: !0,\n week: !0\n };\nfunction xe(a) {\n var b = a && a.nodeName && a.nodeName.toLowerCase();\n return \"input\" === b ? !!we[a.type] : \"textarea\" === b ? !0 : !1;\n}\nvar ye = {\n change: {\n phasedRegistrationNames: {\n bubbled: \"onChange\",\n captured: \"onChangeCapture\"\n },\n dependencies: \"blur change click focus input keydown keyup selectionchange\".split(\" \")\n }\n};\nfunction ze(a, b, c) {\n a = G.getPooled(ye.change, a, b, c);\n a.type = \"change\";\n Da(c);\n Xd(a);\n return a;\n}\nvar Ae = null,\n Be = null;\nfunction Ce(a) {\n mc(a);\n}\nfunction De(a) {\n var b = Pd(a);\n if (yb(b)) return a;\n}\nfunction Ee(a, b) {\n if (\"change\" === a) return b;\n}\nvar Fe = !1;\nya && (Fe = oc(\"input\") && (!document.documentMode || 9 < document.documentMode));\nfunction Ge() {\n Ae && (Ae.detachEvent(\"onpropertychange\", He), Be = Ae = null);\n}\nfunction He(a) {\n if (\"value\" === a.propertyName && De(Be)) if (a = ze(Be, a, nc(a)), Ja) mc(a);else {\n Ja = !0;\n try {\n Fa(Ce, a);\n } finally {\n Ja = !1, La();\n }\n }\n}\nfunction Ie(a, b, c) {\n \"focus\" === a ? (Ge(), Ae = b, Be = c, Ae.attachEvent(\"onpropertychange\", He)) : \"blur\" === a && Ge();\n}\nfunction Je(a) {\n if (\"selectionchange\" === a || \"keyup\" === a || \"keydown\" === a) return De(Be);\n}\nfunction Ke(a, b) {\n if (\"click\" === a) return De(b);\n}\nfunction Le(a, b) {\n if (\"input\" === a || \"change\" === a) return De(b);\n}\nvar Me = {\n eventTypes: ye,\n _isInputEventSupported: Fe,\n extractEvents: function (a, b, c, d) {\n var e = b ? Pd(b) : window,\n f = e.nodeName && e.nodeName.toLowerCase();\n if (\"select\" === f || \"input\" === f && \"file\" === e.type) var g = Ee;else if (xe(e)) {\n if (Fe) g = Le;else {\n g = Je;\n var h = Ie;\n }\n } else (f = e.nodeName) && \"input\" === f.toLowerCase() && (\"checkbox\" === e.type || \"radio\" === e.type) && (g = Ke);\n if (g && (g = g(a, b))) return ze(g, c, d);\n h && h(a, e, b);\n \"blur\" === a && (a = e._wrapperState) && a.controlled && \"number\" === e.type && Db(e, \"number\", e.value);\n }\n },\n Ne = G.extend({\n view: null,\n detail: null\n }),\n Oe = {\n Alt: \"altKey\",\n Control: \"ctrlKey\",\n Meta: \"metaKey\",\n Shift: \"shiftKey\"\n };\nfunction Pe(a) {\n var b = this.nativeEvent;\n return b.getModifierState ? b.getModifierState(a) : (a = Oe[a]) ? !!b[a] : !1;\n}\nfunction Qe() {\n return Pe;\n}\nvar Re = 0,\n Se = 0,\n Te = !1,\n Ue = !1,\n Ve = Ne.extend({\n screenX: null,\n screenY: null,\n clientX: null,\n clientY: null,\n pageX: null,\n pageY: null,\n ctrlKey: null,\n shiftKey: null,\n altKey: null,\n metaKey: null,\n getModifierState: Qe,\n button: null,\n buttons: null,\n relatedTarget: function (a) {\n return a.relatedTarget || (a.fromElement === a.srcElement ? a.toElement : a.fromElement);\n },\n movementX: function (a) {\n if (\"movementX\" in a) return a.movementX;\n var b = Re;\n Re = a.screenX;\n return Te ? \"mousemove\" === a.type ? a.screenX - b : 0 : (Te = !0, 0);\n },\n movementY: function (a) {\n if (\"movementY\" in a) return a.movementY;\n var b = Se;\n Se = a.screenY;\n return Ue ? \"mousemove\" === a.type ? a.screenY - b : 0 : (Ue = !0, 0);\n }\n }),\n We = Ve.extend({\n pointerId: null,\n width: null,\n height: null,\n pressure: null,\n tangentialPressure: null,\n tiltX: null,\n tiltY: null,\n twist: null,\n pointerType: null,\n isPrimary: null\n }),\n Xe = {\n mouseEnter: {\n registrationName: \"onMouseEnter\",\n dependencies: [\"mouseout\", \"mouseover\"]\n },\n mouseLeave: {\n registrationName: \"onMouseLeave\",\n dependencies: [\"mouseout\", \"mouseover\"]\n },\n pointerEnter: {\n registrationName: \"onPointerEnter\",\n dependencies: [\"pointerout\", \"pointerover\"]\n },\n pointerLeave: {\n registrationName: \"onPointerLeave\",\n dependencies: [\"pointerout\", \"pointerover\"]\n }\n },\n Ye = {\n eventTypes: Xe,\n extractEvents: function (a, b, c, d, e) {\n var f = \"mouseover\" === a || \"pointerover\" === a,\n g = \"mouseout\" === a || \"pointerout\" === a;\n if (f && 0 === (e & 32) && (c.relatedTarget || c.fromElement) || !g && !f) return null;\n f = d.window === d ? d : (f = d.ownerDocument) ? f.defaultView || f.parentWindow : window;\n if (g) {\n if (g = b, b = (b = c.relatedTarget || c.toElement) ? tc(b) : null, null !== b) {\n var h = dc(b);\n if (b !== h || 5 !== b.tag && 6 !== b.tag) b = null;\n }\n } else g = null;\n if (g === b) return null;\n if (\"mouseout\" === a || \"mouseover\" === a) {\n var k = Ve;\n var l = Xe.mouseLeave;\n var m = Xe.mouseEnter;\n var p = \"mouse\";\n } else if (\"pointerout\" === a || \"pointerover\" === a) k = We, l = Xe.pointerLeave, m = Xe.pointerEnter, p = \"pointer\";\n a = null == g ? f : Pd(g);\n f = null == b ? f : Pd(b);\n l = k.getPooled(l, g, c, d);\n l.type = p + \"leave\";\n l.target = a;\n l.relatedTarget = f;\n c = k.getPooled(m, b, c, d);\n c.type = p + \"enter\";\n c.target = f;\n c.relatedTarget = a;\n d = g;\n p = b;\n if (d && p) a: {\n k = d;\n m = p;\n g = 0;\n for (a = k; a; a = Rd(a)) g++;\n a = 0;\n for (b = m; b; b = Rd(b)) a++;\n for (; 0 < g - a;) k = Rd(k), g--;\n for (; 0 < a - g;) m = Rd(m), a--;\n for (; g--;) {\n if (k === m || k === m.alternate) break a;\n k = Rd(k);\n m = Rd(m);\n }\n k = null;\n } else k = null;\n m = k;\n for (k = []; d && d !== m;) {\n g = d.alternate;\n if (null !== g && g === m) break;\n k.push(d);\n d = Rd(d);\n }\n for (d = []; p && p !== m;) {\n g = p.alternate;\n if (null !== g && g === m) break;\n d.push(p);\n p = Rd(p);\n }\n for (p = 0; p < k.length; p++) Vd(k[p], \"bubbled\", l);\n for (p = d.length; 0 < p--;) Vd(d[p], \"captured\", c);\n return 0 === (e & 64) ? [l] : [l, c];\n }\n };\nfunction Ze(a, b) {\n return a === b && (0 !== a || 1 / a === 1 / b) || a !== a && b !== b;\n}\nvar $e = \"function\" === typeof Object.is ? Object.is : Ze,\n af = Object.prototype.hasOwnProperty;\nfunction bf(a, b) {\n if ($e(a, b)) return !0;\n if (\"object\" !== typeof a || null === a || \"object\" !== typeof b || null === b) return !1;\n var c = Object.keys(a),\n d = Object.keys(b);\n if (c.length !== d.length) return !1;\n for (d = 0; d < c.length; d++) if (!af.call(b, c[d]) || !$e(a[c[d]], b[c[d]])) return !1;\n return !0;\n}\nvar cf = ya && \"documentMode\" in document && 11 >= document.documentMode,\n df = {\n select: {\n phasedRegistrationNames: {\n bubbled: \"onSelect\",\n captured: \"onSelectCapture\"\n },\n dependencies: \"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange\".split(\" \")\n }\n },\n ef = null,\n ff = null,\n gf = null,\n hf = !1;\nfunction jf(a, b) {\n var c = b.window === b ? b.document : 9 === b.nodeType ? b : b.ownerDocument;\n if (hf || null == ef || ef !== td(c)) return null;\n c = ef;\n \"selectionStart\" in c && yd(c) ? c = {\n start: c.selectionStart,\n end: c.selectionEnd\n } : (c = (c.ownerDocument && c.ownerDocument.defaultView || window).getSelection(), c = {\n anchorNode: c.anchorNode,\n anchorOffset: c.anchorOffset,\n focusNode: c.focusNode,\n focusOffset: c.focusOffset\n });\n return gf && bf(gf, c) ? null : (gf = c, a = G.getPooled(df.select, ff, a, b), a.type = \"select\", a.target = ef, Xd(a), a);\n}\nvar kf = {\n eventTypes: df,\n extractEvents: function (a, b, c, d, e, f) {\n e = f || (d.window === d ? d.document : 9 === d.nodeType ? d : d.ownerDocument);\n if (!(f = !e)) {\n a: {\n e = cc(e);\n f = wa.onSelect;\n for (var g = 0; g < f.length; g++) if (!e.has(f[g])) {\n e = !1;\n break a;\n }\n e = !0;\n }\n f = !e;\n }\n if (f) return null;\n e = b ? Pd(b) : window;\n switch (a) {\n case \"focus\":\n if (xe(e) || \"true\" === e.contentEditable) ef = e, ff = b, gf = null;\n break;\n case \"blur\":\n gf = ff = ef = null;\n break;\n case \"mousedown\":\n hf = !0;\n break;\n case \"contextmenu\":\n case \"mouseup\":\n case \"dragend\":\n return hf = !1, jf(c, d);\n case \"selectionchange\":\n if (cf) break;\n case \"keydown\":\n case \"keyup\":\n return jf(c, d);\n }\n return null;\n }\n },\n lf = G.extend({\n animationName: null,\n elapsedTime: null,\n pseudoElement: null\n }),\n mf = G.extend({\n clipboardData: function (a) {\n return \"clipboardData\" in a ? a.clipboardData : window.clipboardData;\n }\n }),\n nf = Ne.extend({\n relatedTarget: null\n });\nfunction of(a) {\n var b = a.keyCode;\n \"charCode\" in a ? (a = a.charCode, 0 === a && 13 === b && (a = 13)) : a = b;\n 10 === a && (a = 13);\n return 32 <= a || 13 === a ? a : 0;\n}\nvar pf = {\n Esc: \"Escape\",\n Spacebar: \" \",\n Left: \"ArrowLeft\",\n Up: \"ArrowUp\",\n Right: \"ArrowRight\",\n Down: \"ArrowDown\",\n Del: \"Delete\",\n Win: \"OS\",\n Menu: \"ContextMenu\",\n Apps: \"ContextMenu\",\n Scroll: \"ScrollLock\",\n MozPrintableKey: \"Unidentified\"\n },\n qf = {\n 8: \"Backspace\",\n 9: \"Tab\",\n 12: \"Clear\",\n 13: \"Enter\",\n 16: \"Shift\",\n 17: \"Control\",\n 18: \"Alt\",\n 19: \"Pause\",\n 20: \"CapsLock\",\n 27: \"Escape\",\n 32: \" \",\n 33: \"PageUp\",\n 34: \"PageDown\",\n 35: \"End\",\n 36: \"Home\",\n 37: \"ArrowLeft\",\n 38: \"ArrowUp\",\n 39: \"ArrowRight\",\n 40: \"ArrowDown\",\n 45: \"Insert\",\n 46: \"Delete\",\n 112: \"F1\",\n 113: \"F2\",\n 114: \"F3\",\n 115: \"F4\",\n 116: \"F5\",\n 117: \"F6\",\n 118: \"F7\",\n 119: \"F8\",\n 120: \"F9\",\n 121: \"F10\",\n 122: \"F11\",\n 123: \"F12\",\n 144: \"NumLock\",\n 145: \"ScrollLock\",\n 224: \"Meta\"\n },\n rf = Ne.extend({\n key: function (a) {\n if (a.key) {\n var b = pf[a.key] || a.key;\n if (\"Unidentified\" !== b) return b;\n }\n return \"keypress\" === a.type ? (a = of(a), 13 === a ? \"Enter\" : String.fromCharCode(a)) : \"keydown\" === a.type || \"keyup\" === a.type ? qf[a.keyCode] || \"Unidentified\" : \"\";\n },\n location: null,\n ctrlKey: null,\n shiftKey: null,\n altKey: null,\n metaKey: null,\n repeat: null,\n locale: null,\n getModifierState: Qe,\n charCode: function (a) {\n return \"keypress\" === a.type ? of(a) : 0;\n },\n keyCode: function (a) {\n return \"keydown\" === a.type || \"keyup\" === a.type ? a.keyCode : 0;\n },\n which: function (a) {\n return \"keypress\" === a.type ? of(a) : \"keydown\" === a.type || \"keyup\" === a.type ? a.keyCode : 0;\n }\n }),\n sf = Ve.extend({\n dataTransfer: null\n }),\n tf = Ne.extend({\n touches: null,\n targetTouches: null,\n changedTouches: null,\n altKey: null,\n metaKey: null,\n ctrlKey: null,\n shiftKey: null,\n getModifierState: Qe\n }),\n uf = G.extend({\n propertyName: null,\n elapsedTime: null,\n pseudoElement: null\n }),\n vf = Ve.extend({\n deltaX: function (a) {\n return \"deltaX\" in a ? a.deltaX : \"wheelDeltaX\" in a ? -a.wheelDeltaX : 0;\n },\n deltaY: function (a) {\n return \"deltaY\" in a ? a.deltaY : \"wheelDeltaY\" in a ? -a.wheelDeltaY : \"wheelDelta\" in a ? -a.wheelDelta : 0;\n },\n deltaZ: null,\n deltaMode: null\n }),\n wf = {\n eventTypes: Wc,\n extractEvents: function (a, b, c, d) {\n var e = Yc.get(a);\n if (!e) return null;\n switch (a) {\n case \"keypress\":\n if (0 === of(c)) return null;\n case \"keydown\":\n case \"keyup\":\n a = rf;\n break;\n case \"blur\":\n case \"focus\":\n a = nf;\n break;\n case \"click\":\n if (2 === c.button) return null;\n case \"auxclick\":\n case \"dblclick\":\n case \"mousedown\":\n case \"mousemove\":\n case \"mouseup\":\n case \"mouseout\":\n case \"mouseover\":\n case \"contextmenu\":\n a = Ve;\n break;\n case \"drag\":\n case \"dragend\":\n case \"dragenter\":\n case \"dragexit\":\n case \"dragleave\":\n case \"dragover\":\n case \"dragstart\":\n case \"drop\":\n a = sf;\n break;\n case \"touchcancel\":\n case \"touchend\":\n case \"touchmove\":\n case \"touchstart\":\n a = tf;\n break;\n case Xb:\n case Yb:\n case Zb:\n a = lf;\n break;\n case $b:\n a = uf;\n break;\n case \"scroll\":\n a = Ne;\n break;\n case \"wheel\":\n a = vf;\n break;\n case \"copy\":\n case \"cut\":\n case \"paste\":\n a = mf;\n break;\n case \"gotpointercapture\":\n case \"lostpointercapture\":\n case \"pointercancel\":\n case \"pointerdown\":\n case \"pointermove\":\n case \"pointerout\":\n case \"pointerover\":\n case \"pointerup\":\n a = We;\n break;\n default:\n a = G;\n }\n b = a.getPooled(e, b, c, d);\n Xd(b);\n return b;\n }\n };\nif (pa) throw Error(u(101));\npa = Array.prototype.slice.call(\"ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin\".split(\" \"));\nra();\nvar xf = Nc;\nla = Qd;\nma = xf;\nna = Pd;\nxa({\n SimpleEventPlugin: wf,\n EnterLeaveEventPlugin: Ye,\n ChangeEventPlugin: Me,\n SelectEventPlugin: kf,\n BeforeInputEventPlugin: ve\n});\nvar yf = [],\n zf = -1;\nfunction H(a) {\n 0 > zf || (a.current = yf[zf], yf[zf] = null, zf--);\n}\nfunction I(a, b) {\n zf++;\n yf[zf] = a.current;\n a.current = b;\n}\nvar Af = {},\n J = {\n current: Af\n },\n K = {\n current: !1\n },\n Bf = Af;\nfunction Cf(a, b) {\n var c = a.type.contextTypes;\n if (!c) return Af;\n var d = a.stateNode;\n if (d && d.__reactInternalMemoizedUnmaskedChildContext === b) return d.__reactInternalMemoizedMaskedChildContext;\n var e = {},\n f;\n for (f in c) e[f] = b[f];\n d && (a = a.stateNode, a.__reactInternalMemoizedUnmaskedChildContext = b, a.__reactInternalMemoizedMaskedChildContext = e);\n return e;\n}\nfunction L(a) {\n a = a.childContextTypes;\n return null !== a && void 0 !== a;\n}\nfunction Df() {\n H(K);\n H(J);\n}\nfunction Ef(a, b, c) {\n if (J.current !== Af) throw Error(u(168));\n I(J, b);\n I(K, c);\n}\nfunction Ff(a, b, c) {\n var d = a.stateNode;\n a = b.childContextTypes;\n if (\"function\" !== typeof d.getChildContext) return c;\n d = d.getChildContext();\n for (var e in d) if (!(e in a)) throw Error(u(108, pb(b) || \"Unknown\", e));\n return n({}, c, {}, d);\n}\nfunction Gf(a) {\n a = (a = a.stateNode) && a.__reactInternalMemoizedMergedChildContext || Af;\n Bf = J.current;\n I(J, a);\n I(K, K.current);\n return !0;\n}\nfunction Hf(a, b, c) {\n var d = a.stateNode;\n if (!d) throw Error(u(169));\n c ? (a = Ff(a, b, Bf), d.__reactInternalMemoizedMergedChildContext = a, H(K), H(J), I(J, a)) : H(K);\n I(K, c);\n}\nvar If = r.unstable_runWithPriority,\n Jf = r.unstable_scheduleCallback,\n Kf = r.unstable_cancelCallback,\n Lf = r.unstable_requestPaint,\n Mf = r.unstable_now,\n Nf = r.unstable_getCurrentPriorityLevel,\n Of = r.unstable_ImmediatePriority,\n Pf = r.unstable_UserBlockingPriority,\n Qf = r.unstable_NormalPriority,\n Rf = r.unstable_LowPriority,\n Sf = r.unstable_IdlePriority,\n Tf = {},\n Uf = r.unstable_shouldYield,\n Vf = void 0 !== Lf ? Lf : function () {},\n Wf = null,\n Xf = null,\n Yf = !1,\n Zf = Mf(),\n $f = 1E4 > Zf ? Mf : function () {\n return Mf() - Zf;\n };\nfunction ag() {\n switch (Nf()) {\n case Of:\n return 99;\n case Pf:\n return 98;\n case Qf:\n return 97;\n case Rf:\n return 96;\n case Sf:\n return 95;\n default:\n throw Error(u(332));\n }\n}\nfunction bg(a) {\n switch (a) {\n case 99:\n return Of;\n case 98:\n return Pf;\n case 97:\n return Qf;\n case 96:\n return Rf;\n case 95:\n return Sf;\n default:\n throw Error(u(332));\n }\n}\nfunction cg(a, b) {\n a = bg(a);\n return If(a, b);\n}\nfunction dg(a, b, c) {\n a = bg(a);\n return Jf(a, b, c);\n}\nfunction eg(a) {\n null === Wf ? (Wf = [a], Xf = Jf(Of, fg)) : Wf.push(a);\n return Tf;\n}\nfunction gg() {\n if (null !== Xf) {\n var a = Xf;\n Xf = null;\n Kf(a);\n }\n fg();\n}\nfunction fg() {\n if (!Yf && null !== Wf) {\n Yf = !0;\n var a = 0;\n try {\n var b = Wf;\n cg(99, function () {\n for (; a < b.length; a++) {\n var c = b[a];\n do c = c(!0); while (null !== c);\n }\n });\n Wf = null;\n } catch (c) {\n throw null !== Wf && (Wf = Wf.slice(a + 1)), Jf(Of, gg), c;\n } finally {\n Yf = !1;\n }\n }\n}\nfunction hg(a, b, c) {\n c /= 10;\n return 1073741821 - (((1073741821 - a + b / 10) / c | 0) + 1) * c;\n}\nfunction ig(a, b) {\n if (a && a.defaultProps) {\n b = n({}, b);\n a = a.defaultProps;\n for (var c in a) void 0 === b[c] && (b[c] = a[c]);\n }\n return b;\n}\nvar jg = {\n current: null\n },\n kg = null,\n lg = null,\n mg = null;\nfunction ng() {\n mg = lg = kg = null;\n}\nfunction og(a) {\n var b = jg.current;\n H(jg);\n a.type._context._currentValue = b;\n}\nfunction pg(a, b) {\n for (; null !== a;) {\n var c = a.alternate;\n if (a.childExpirationTime < b) a.childExpirationTime = b, null !== c && c.childExpirationTime < b && (c.childExpirationTime = b);else if (null !== c && c.childExpirationTime < b) c.childExpirationTime = b;else break;\n a = a.return;\n }\n}\nfunction qg(a, b) {\n kg = a;\n mg = lg = null;\n a = a.dependencies;\n null !== a && null !== a.firstContext && (a.expirationTime >= b && (rg = !0), a.firstContext = null);\n}\nfunction sg(a, b) {\n if (mg !== a && !1 !== b && 0 !== b) {\n if (\"number\" !== typeof b || 1073741823 === b) mg = a, b = 1073741823;\n b = {\n context: a,\n observedBits: b,\n next: null\n };\n if (null === lg) {\n if (null === kg) throw Error(u(308));\n lg = b;\n kg.dependencies = {\n expirationTime: 0,\n firstContext: b,\n responders: null\n };\n } else lg = lg.next = b;\n }\n return a._currentValue;\n}\nvar tg = !1;\nfunction ug(a) {\n a.updateQueue = {\n baseState: a.memoizedState,\n baseQueue: null,\n shared: {\n pending: null\n },\n effects: null\n };\n}\nfunction vg(a, b) {\n a = a.updateQueue;\n b.updateQueue === a && (b.updateQueue = {\n baseState: a.baseState,\n baseQueue: a.baseQueue,\n shared: a.shared,\n effects: a.effects\n });\n}\nfunction wg(a, b) {\n a = {\n expirationTime: a,\n suspenseConfig: b,\n tag: 0,\n payload: null,\n callback: null,\n next: null\n };\n return a.next = a;\n}\nfunction xg(a, b) {\n a = a.updateQueue;\n if (null !== a) {\n a = a.shared;\n var c = a.pending;\n null === c ? b.next = b : (b.next = c.next, c.next = b);\n a.pending = b;\n }\n}\nfunction yg(a, b) {\n var c = a.alternate;\n null !== c && vg(c, a);\n a = a.updateQueue;\n c = a.baseQueue;\n null === c ? (a.baseQueue = b.next = b, b.next = b) : (b.next = c.next, c.next = b);\n}\nfunction zg(a, b, c, d) {\n var e = a.updateQueue;\n tg = !1;\n var f = e.baseQueue,\n g = e.shared.pending;\n if (null !== g) {\n if (null !== f) {\n var h = f.next;\n f.next = g.next;\n g.next = h;\n }\n f = g;\n e.shared.pending = null;\n h = a.alternate;\n null !== h && (h = h.updateQueue, null !== h && (h.baseQueue = g));\n }\n if (null !== f) {\n h = f.next;\n var k = e.baseState,\n l = 0,\n m = null,\n p = null,\n x = null;\n if (null !== h) {\n var z = h;\n do {\n g = z.expirationTime;\n if (g < d) {\n var ca = {\n expirationTime: z.expirationTime,\n suspenseConfig: z.suspenseConfig,\n tag: z.tag,\n payload: z.payload,\n callback: z.callback,\n next: null\n };\n null === x ? (p = x = ca, m = k) : x = x.next = ca;\n g > l && (l = g);\n } else {\n null !== x && (x = x.next = {\n expirationTime: 1073741823,\n suspenseConfig: z.suspenseConfig,\n tag: z.tag,\n payload: z.payload,\n callback: z.callback,\n next: null\n });\n Ag(g, z.suspenseConfig);\n a: {\n var D = a,\n t = z;\n g = b;\n ca = c;\n switch (t.tag) {\n case 1:\n D = t.payload;\n if (\"function\" === typeof D) {\n k = D.call(ca, k, g);\n break a;\n }\n k = D;\n break a;\n case 3:\n D.effectTag = D.effectTag & -4097 | 64;\n case 0:\n D = t.payload;\n g = \"function\" === typeof D ? D.call(ca, k, g) : D;\n if (null === g || void 0 === g) break a;\n k = n({}, k, g);\n break a;\n case 2:\n tg = !0;\n }\n }\n null !== z.callback && (a.effectTag |= 32, g = e.effects, null === g ? e.effects = [z] : g.push(z));\n }\n z = z.next;\n if (null === z || z === h) if (g = e.shared.pending, null === g) break;else z = f.next = g.next, g.next = h, e.baseQueue = f = g, e.shared.pending = null;\n } while (1);\n }\n null === x ? m = k : x.next = p;\n e.baseState = m;\n e.baseQueue = x;\n Bg(l);\n a.expirationTime = l;\n a.memoizedState = k;\n }\n}\nfunction Cg(a, b, c) {\n a = b.effects;\n b.effects = null;\n if (null !== a) for (b = 0; b < a.length; b++) {\n var d = a[b],\n e = d.callback;\n if (null !== e) {\n d.callback = null;\n d = e;\n e = c;\n if (\"function\" !== typeof d) throw Error(u(191, d));\n d.call(e);\n }\n }\n}\nvar Dg = Wa.ReactCurrentBatchConfig,\n Eg = new aa.Component().refs;\nfunction Fg(a, b, c, d) {\n b = a.memoizedState;\n c = c(d, b);\n c = null === c || void 0 === c ? b : n({}, b, c);\n a.memoizedState = c;\n 0 === a.expirationTime && (a.updateQueue.baseState = c);\n}\nvar Jg = {\n isMounted: function (a) {\n return (a = a._reactInternalFiber) ? dc(a) === a : !1;\n },\n enqueueSetState: function (a, b, c) {\n a = a._reactInternalFiber;\n var d = Gg(),\n e = Dg.suspense;\n d = Hg(d, a, e);\n e = wg(d, e);\n e.payload = b;\n void 0 !== c && null !== c && (e.callback = c);\n xg(a, e);\n Ig(a, d);\n },\n enqueueReplaceState: function (a, b, c) {\n a = a._reactInternalFiber;\n var d = Gg(),\n e = Dg.suspense;\n d = Hg(d, a, e);\n e = wg(d, e);\n e.tag = 1;\n e.payload = b;\n void 0 !== c && null !== c && (e.callback = c);\n xg(a, e);\n Ig(a, d);\n },\n enqueueForceUpdate: function (a, b) {\n a = a._reactInternalFiber;\n var c = Gg(),\n d = Dg.suspense;\n c = Hg(c, a, d);\n d = wg(c, d);\n d.tag = 2;\n void 0 !== b && null !== b && (d.callback = b);\n xg(a, d);\n Ig(a, c);\n }\n};\nfunction Kg(a, b, c, d, e, f, g) {\n a = a.stateNode;\n return \"function\" === typeof a.shouldComponentUpdate ? a.shouldComponentUpdate(d, f, g) : b.prototype && b.prototype.isPureReactComponent ? !bf(c, d) || !bf(e, f) : !0;\n}\nfunction Lg(a, b, c) {\n var d = !1,\n e = Af;\n var f = b.contextType;\n \"object\" === typeof f && null !== f ? f = sg(f) : (e = L(b) ? Bf : J.current, d = b.contextTypes, f = (d = null !== d && void 0 !== d) ? Cf(a, e) : Af);\n b = new b(c, f);\n a.memoizedState = null !== b.state && void 0 !== b.state ? b.state : null;\n b.updater = Jg;\n a.stateNode = b;\n b._reactInternalFiber = a;\n d && (a = a.stateNode, a.__reactInternalMemoizedUnmaskedChildContext = e, a.__reactInternalMemoizedMaskedChildContext = f);\n return b;\n}\nfunction Mg(a, b, c, d) {\n a = b.state;\n \"function\" === typeof b.componentWillReceiveProps && b.componentWillReceiveProps(c, d);\n \"function\" === typeof b.UNSAFE_componentWillReceiveProps && b.UNSAFE_componentWillReceiveProps(c, d);\n b.state !== a && Jg.enqueueReplaceState(b, b.state, null);\n}\nfunction Ng(a, b, c, d) {\n var e = a.stateNode;\n e.props = c;\n e.state = a.memoizedState;\n e.refs = Eg;\n ug(a);\n var f = b.contextType;\n \"object\" === typeof f && null !== f ? e.context = sg(f) : (f = L(b) ? Bf : J.current, e.context = Cf(a, f));\n zg(a, c, e, d);\n e.state = a.memoizedState;\n f = b.getDerivedStateFromProps;\n \"function\" === typeof f && (Fg(a, b, f, c), e.state = a.memoizedState);\n \"function\" === typeof b.getDerivedStateFromProps || \"function\" === typeof e.getSnapshotBeforeUpdate || \"function\" !== typeof e.UNSAFE_componentWillMount && \"function\" !== typeof e.componentWillMount || (b = e.state, \"function\" === typeof e.componentWillMount && e.componentWillMount(), \"function\" === typeof e.UNSAFE_componentWillMount && e.UNSAFE_componentWillMount(), b !== e.state && Jg.enqueueReplaceState(e, e.state, null), zg(a, c, e, d), e.state = a.memoizedState);\n \"function\" === typeof e.componentDidMount && (a.effectTag |= 4);\n}\nvar Og = Array.isArray;\nfunction Pg(a, b, c) {\n a = c.ref;\n if (null !== a && \"function\" !== typeof a && \"object\" !== typeof a) {\n if (c._owner) {\n c = c._owner;\n if (c) {\n if (1 !== c.tag) throw Error(u(309));\n var d = c.stateNode;\n }\n if (!d) throw Error(u(147, a));\n var e = \"\" + a;\n if (null !== b && null !== b.ref && \"function\" === typeof b.ref && b.ref._stringRef === e) return b.ref;\n b = function (a) {\n var b = d.refs;\n b === Eg && (b = d.refs = {});\n null === a ? delete b[e] : b[e] = a;\n };\n b._stringRef = e;\n return b;\n }\n if (\"string\" !== typeof a) throw Error(u(284));\n if (!c._owner) throw Error(u(290, a));\n }\n return a;\n}\nfunction Qg(a, b) {\n if (\"textarea\" !== a.type) throw Error(u(31, \"[object Object]\" === Object.prototype.toString.call(b) ? \"object with keys {\" + Object.keys(b).join(\", \") + \"}\" : b, \"\"));\n}\nfunction Rg(a) {\n function b(b, c) {\n if (a) {\n var d = b.lastEffect;\n null !== d ? (d.nextEffect = c, b.lastEffect = c) : b.firstEffect = b.lastEffect = c;\n c.nextEffect = null;\n c.effectTag = 8;\n }\n }\n function c(c, d) {\n if (!a) return null;\n for (; null !== d;) b(c, d), d = d.sibling;\n return null;\n }\n function d(a, b) {\n for (a = new Map(); null !== b;) null !== b.key ? a.set(b.key, b) : a.set(b.index, b), b = b.sibling;\n return a;\n }\n function e(a, b) {\n a = Sg(a, b);\n a.index = 0;\n a.sibling = null;\n return a;\n }\n function f(b, c, d) {\n b.index = d;\n if (!a) return c;\n d = b.alternate;\n if (null !== d) return d = d.index, d < c ? (b.effectTag = 2, c) : d;\n b.effectTag = 2;\n return c;\n }\n function g(b) {\n a && null === b.alternate && (b.effectTag = 2);\n return b;\n }\n function h(a, b, c, d) {\n if (null === b || 6 !== b.tag) return b = Tg(c, a.mode, d), b.return = a, b;\n b = e(b, c);\n b.return = a;\n return b;\n }\n function k(a, b, c, d) {\n if (null !== b && b.elementType === c.type) return d = e(b, c.props), d.ref = Pg(a, b, c), d.return = a, d;\n d = Ug(c.type, c.key, c.props, null, a.mode, d);\n d.ref = Pg(a, b, c);\n d.return = a;\n return d;\n }\n function l(a, b, c, d) {\n if (null === b || 4 !== b.tag || b.stateNode.containerInfo !== c.containerInfo || b.stateNode.implementation !== c.implementation) return b = Vg(c, a.mode, d), b.return = a, b;\n b = e(b, c.children || []);\n b.return = a;\n return b;\n }\n function m(a, b, c, d, f) {\n if (null === b || 7 !== b.tag) return b = Wg(c, a.mode, d, f), b.return = a, b;\n b = e(b, c);\n b.return = a;\n return b;\n }\n function p(a, b, c) {\n if (\"string\" === typeof b || \"number\" === typeof b) return b = Tg(\"\" + b, a.mode, c), b.return = a, b;\n if (\"object\" === typeof b && null !== b) {\n switch (b.$$typeof) {\n case Za:\n return c = Ug(b.type, b.key, b.props, null, a.mode, c), c.ref = Pg(a, null, b), c.return = a, c;\n case $a:\n return b = Vg(b, a.mode, c), b.return = a, b;\n }\n if (Og(b) || nb(b)) return b = Wg(b, a.mode, c, null), b.return = a, b;\n Qg(a, b);\n }\n return null;\n }\n function x(a, b, c, d) {\n var e = null !== b ? b.key : null;\n if (\"string\" === typeof c || \"number\" === typeof c) return null !== e ? null : h(a, b, \"\" + c, d);\n if (\"object\" === typeof c && null !== c) {\n switch (c.$$typeof) {\n case Za:\n return c.key === e ? c.type === ab ? m(a, b, c.props.children, d, e) : k(a, b, c, d) : null;\n case $a:\n return c.key === e ? l(a, b, c, d) : null;\n }\n if (Og(c) || nb(c)) return null !== e ? null : m(a, b, c, d, null);\n Qg(a, c);\n }\n return null;\n }\n function z(a, b, c, d, e) {\n if (\"string\" === typeof d || \"number\" === typeof d) return a = a.get(c) || null, h(b, a, \"\" + d, e);\n if (\"object\" === typeof d && null !== d) {\n switch (d.$$typeof) {\n case Za:\n return a = a.get(null === d.key ? c : d.key) || null, d.type === ab ? m(b, a, d.props.children, e, d.key) : k(b, a, d, e);\n case $a:\n return a = a.get(null === d.key ? c : d.key) || null, l(b, a, d, e);\n }\n if (Og(d) || nb(d)) return a = a.get(c) || null, m(b, a, d, e, null);\n Qg(b, d);\n }\n return null;\n }\n function ca(e, g, h, k) {\n for (var l = null, t = null, m = g, y = g = 0, A = null; null !== m && y < h.length; y++) {\n m.index > y ? (A = m, m = null) : A = m.sibling;\n var q = x(e, m, h[y], k);\n if (null === q) {\n null === m && (m = A);\n break;\n }\n a && m && null === q.alternate && b(e, m);\n g = f(q, g, y);\n null === t ? l = q : t.sibling = q;\n t = q;\n m = A;\n }\n if (y === h.length) return c(e, m), l;\n if (null === m) {\n for (; y < h.length; y++) m = p(e, h[y], k), null !== m && (g = f(m, g, y), null === t ? l = m : t.sibling = m, t = m);\n return l;\n }\n for (m = d(e, m); y < h.length; y++) A = z(m, e, y, h[y], k), null !== A && (a && null !== A.alternate && m.delete(null === A.key ? y : A.key), g = f(A, g, y), null === t ? l = A : t.sibling = A, t = A);\n a && m.forEach(function (a) {\n return b(e, a);\n });\n return l;\n }\n function D(e, g, h, l) {\n var k = nb(h);\n if (\"function\" !== typeof k) throw Error(u(150));\n h = k.call(h);\n if (null == h) throw Error(u(151));\n for (var m = k = null, t = g, y = g = 0, A = null, q = h.next(); null !== t && !q.done; y++, q = h.next()) {\n t.index > y ? (A = t, t = null) : A = t.sibling;\n var D = x(e, t, q.value, l);\n if (null === D) {\n null === t && (t = A);\n break;\n }\n a && t && null === D.alternate && b(e, t);\n g = f(D, g, y);\n null === m ? k = D : m.sibling = D;\n m = D;\n t = A;\n }\n if (q.done) return c(e, t), k;\n if (null === t) {\n for (; !q.done; y++, q = h.next()) q = p(e, q.value, l), null !== q && (g = f(q, g, y), null === m ? k = q : m.sibling = q, m = q);\n return k;\n }\n for (t = d(e, t); !q.done; y++, q = h.next()) q = z(t, e, y, q.value, l), null !== q && (a && null !== q.alternate && t.delete(null === q.key ? y : q.key), g = f(q, g, y), null === m ? k = q : m.sibling = q, m = q);\n a && t.forEach(function (a) {\n return b(e, a);\n });\n return k;\n }\n return function (a, d, f, h) {\n var k = \"object\" === typeof f && null !== f && f.type === ab && null === f.key;\n k && (f = f.props.children);\n var l = \"object\" === typeof f && null !== f;\n if (l) switch (f.$$typeof) {\n case Za:\n a: {\n l = f.key;\n for (k = d; null !== k;) {\n if (k.key === l) {\n switch (k.tag) {\n case 7:\n if (f.type === ab) {\n c(a, k.sibling);\n d = e(k, f.props.children);\n d.return = a;\n a = d;\n break a;\n }\n break;\n default:\n if (k.elementType === f.type) {\n c(a, k.sibling);\n d = e(k, f.props);\n d.ref = Pg(a, k, f);\n d.return = a;\n a = d;\n break a;\n }\n }\n c(a, k);\n break;\n } else b(a, k);\n k = k.sibling;\n }\n f.type === ab ? (d = Wg(f.props.children, a.mode, h, f.key), d.return = a, a = d) : (h = Ug(f.type, f.key, f.props, null, a.mode, h), h.ref = Pg(a, d, f), h.return = a, a = h);\n }\n return g(a);\n case $a:\n a: {\n for (k = f.key; null !== d;) {\n if (d.key === k) {\n if (4 === d.tag && d.stateNode.containerInfo === f.containerInfo && d.stateNode.implementation === f.implementation) {\n c(a, d.sibling);\n d = e(d, f.children || []);\n d.return = a;\n a = d;\n break a;\n } else {\n c(a, d);\n break;\n }\n } else b(a, d);\n d = d.sibling;\n }\n d = Vg(f, a.mode, h);\n d.return = a;\n a = d;\n }\n return g(a);\n }\n if (\"string\" === typeof f || \"number\" === typeof f) return f = \"\" + f, null !== d && 6 === d.tag ? (c(a, d.sibling), d = e(d, f), d.return = a, a = d) : (c(a, d), d = Tg(f, a.mode, h), d.return = a, a = d), g(a);\n if (Og(f)) return ca(a, d, f, h);\n if (nb(f)) return D(a, d, f, h);\n l && Qg(a, f);\n if (\"undefined\" === typeof f && !k) switch (a.tag) {\n case 1:\n case 0:\n throw a = a.type, Error(u(152, a.displayName || a.name || \"Component\"));\n }\n return c(a, d);\n };\n}\nvar Xg = Rg(!0),\n Yg = Rg(!1),\n Zg = {},\n $g = {\n current: Zg\n },\n ah = {\n current: Zg\n },\n bh = {\n current: Zg\n };\nfunction ch(a) {\n if (a === Zg) throw Error(u(174));\n return a;\n}\nfunction dh(a, b) {\n I(bh, b);\n I(ah, a);\n I($g, Zg);\n a = b.nodeType;\n switch (a) {\n case 9:\n case 11:\n b = (b = b.documentElement) ? b.namespaceURI : Ob(null, \"\");\n break;\n default:\n a = 8 === a ? b.parentNode : b, b = a.namespaceURI || null, a = a.tagName, b = Ob(b, a);\n }\n H($g);\n I($g, b);\n}\nfunction eh() {\n H($g);\n H(ah);\n H(bh);\n}\nfunction fh(a) {\n ch(bh.current);\n var b = ch($g.current);\n var c = Ob(b, a.type);\n b !== c && (I(ah, a), I($g, c));\n}\nfunction gh(a) {\n ah.current === a && (H($g), H(ah));\n}\nvar M = {\n current: 0\n};\nfunction hh(a) {\n for (var b = a; null !== b;) {\n if (13 === b.tag) {\n var c = b.memoizedState;\n if (null !== c && (c = c.dehydrated, null === c || c.data === Bd || c.data === Cd)) return b;\n } else if (19 === b.tag && void 0 !== b.memoizedProps.revealOrder) {\n if (0 !== (b.effectTag & 64)) return b;\n } else if (null !== b.child) {\n b.child.return = b;\n b = b.child;\n continue;\n }\n if (b === a) break;\n for (; null === b.sibling;) {\n if (null === b.return || b.return === a) return null;\n b = b.return;\n }\n b.sibling.return = b.return;\n b = b.sibling;\n }\n return null;\n}\nfunction ih(a, b) {\n return {\n responder: a,\n props: b\n };\n}\nvar jh = Wa.ReactCurrentDispatcher,\n kh = Wa.ReactCurrentBatchConfig,\n lh = 0,\n N = null,\n O = null,\n P = null,\n mh = !1;\nfunction Q() {\n throw Error(u(321));\n}\nfunction nh(a, b) {\n if (null === b) return !1;\n for (var c = 0; c < b.length && c < a.length; c++) if (!$e(a[c], b[c])) return !1;\n return !0;\n}\nfunction oh(a, b, c, d, e, f) {\n lh = f;\n N = b;\n b.memoizedState = null;\n b.updateQueue = null;\n b.expirationTime = 0;\n jh.current = null === a || null === a.memoizedState ? ph : qh;\n a = c(d, e);\n if (b.expirationTime === lh) {\n f = 0;\n do {\n b.expirationTime = 0;\n if (!(25 > f)) throw Error(u(301));\n f += 1;\n P = O = null;\n b.updateQueue = null;\n jh.current = rh;\n a = c(d, e);\n } while (b.expirationTime === lh);\n }\n jh.current = sh;\n b = null !== O && null !== O.next;\n lh = 0;\n P = O = N = null;\n mh = !1;\n if (b) throw Error(u(300));\n return a;\n}\nfunction th() {\n var a = {\n memoizedState: null,\n baseState: null,\n baseQueue: null,\n queue: null,\n next: null\n };\n null === P ? N.memoizedState = P = a : P = P.next = a;\n return P;\n}\nfunction uh() {\n if (null === O) {\n var a = N.alternate;\n a = null !== a ? a.memoizedState : null;\n } else a = O.next;\n var b = null === P ? N.memoizedState : P.next;\n if (null !== b) P = b, O = a;else {\n if (null === a) throw Error(u(310));\n O = a;\n a = {\n memoizedState: O.memoizedState,\n baseState: O.baseState,\n baseQueue: O.baseQueue,\n queue: O.queue,\n next: null\n };\n null === P ? N.memoizedState = P = a : P = P.next = a;\n }\n return P;\n}\nfunction vh(a, b) {\n return \"function\" === typeof b ? b(a) : b;\n}\nfunction wh(a) {\n var b = uh(),\n c = b.queue;\n if (null === c) throw Error(u(311));\n c.lastRenderedReducer = a;\n var d = O,\n e = d.baseQueue,\n f = c.pending;\n if (null !== f) {\n if (null !== e) {\n var g = e.next;\n e.next = f.next;\n f.next = g;\n }\n d.baseQueue = e = f;\n c.pending = null;\n }\n if (null !== e) {\n e = e.next;\n d = d.baseState;\n var h = g = f = null,\n k = e;\n do {\n var l = k.expirationTime;\n if (l < lh) {\n var m = {\n expirationTime: k.expirationTime,\n suspenseConfig: k.suspenseConfig,\n action: k.action,\n eagerReducer: k.eagerReducer,\n eagerState: k.eagerState,\n next: null\n };\n null === h ? (g = h = m, f = d) : h = h.next = m;\n l > N.expirationTime && (N.expirationTime = l, Bg(l));\n } else null !== h && (h = h.next = {\n expirationTime: 1073741823,\n suspenseConfig: k.suspenseConfig,\n action: k.action,\n eagerReducer: k.eagerReducer,\n eagerState: k.eagerState,\n next: null\n }), Ag(l, k.suspenseConfig), d = k.eagerReducer === a ? k.eagerState : a(d, k.action);\n k = k.next;\n } while (null !== k && k !== e);\n null === h ? f = d : h.next = g;\n $e(d, b.memoizedState) || (rg = !0);\n b.memoizedState = d;\n b.baseState = f;\n b.baseQueue = h;\n c.lastRenderedState = d;\n }\n return [b.memoizedState, c.dispatch];\n}\nfunction xh(a) {\n var b = uh(),\n c = b.queue;\n if (null === c) throw Error(u(311));\n c.lastRenderedReducer = a;\n var d = c.dispatch,\n e = c.pending,\n f = b.memoizedState;\n if (null !== e) {\n c.pending = null;\n var g = e = e.next;\n do f = a(f, g.action), g = g.next; while (g !== e);\n $e(f, b.memoizedState) || (rg = !0);\n b.memoizedState = f;\n null === b.baseQueue && (b.baseState = f);\n c.lastRenderedState = f;\n }\n return [f, d];\n}\nfunction yh(a) {\n var b = th();\n \"function\" === typeof a && (a = a());\n b.memoizedState = b.baseState = a;\n a = b.queue = {\n pending: null,\n dispatch: null,\n lastRenderedReducer: vh,\n lastRenderedState: a\n };\n a = a.dispatch = zh.bind(null, N, a);\n return [b.memoizedState, a];\n}\nfunction Ah(a, b, c, d) {\n a = {\n tag: a,\n create: b,\n destroy: c,\n deps: d,\n next: null\n };\n b = N.updateQueue;\n null === b ? (b = {\n lastEffect: null\n }, N.updateQueue = b, b.lastEffect = a.next = a) : (c = b.lastEffect, null === c ? b.lastEffect = a.next = a : (d = c.next, c.next = a, a.next = d, b.lastEffect = a));\n return a;\n}\nfunction Bh() {\n return uh().memoizedState;\n}\nfunction Ch(a, b, c, d) {\n var e = th();\n N.effectTag |= a;\n e.memoizedState = Ah(1 | b, c, void 0, void 0 === d ? null : d);\n}\nfunction Dh(a, b, c, d) {\n var e = uh();\n d = void 0 === d ? null : d;\n var f = void 0;\n if (null !== O) {\n var g = O.memoizedState;\n f = g.destroy;\n if (null !== d && nh(d, g.deps)) {\n Ah(b, c, f, d);\n return;\n }\n }\n N.effectTag |= a;\n e.memoizedState = Ah(1 | b, c, f, d);\n}\nfunction Eh(a, b) {\n return Ch(516, 4, a, b);\n}\nfunction Fh(a, b) {\n return Dh(516, 4, a, b);\n}\nfunction Gh(a, b) {\n return Dh(4, 2, a, b);\n}\nfunction Hh(a, b) {\n if (\"function\" === typeof b) return a = a(), b(a), function () {\n b(null);\n };\n if (null !== b && void 0 !== b) return a = a(), b.current = a, function () {\n b.current = null;\n };\n}\nfunction Ih(a, b, c) {\n c = null !== c && void 0 !== c ? c.concat([a]) : null;\n return Dh(4, 2, Hh.bind(null, b, a), c);\n}\nfunction Jh() {}\nfunction Kh(a, b) {\n th().memoizedState = [a, void 0 === b ? null : b];\n return a;\n}\nfunction Lh(a, b) {\n var c = uh();\n b = void 0 === b ? null : b;\n var d = c.memoizedState;\n if (null !== d && null !== b && nh(b, d[1])) return d[0];\n c.memoizedState = [a, b];\n return a;\n}\nfunction Mh(a, b) {\n var c = uh();\n b = void 0 === b ? null : b;\n var d = c.memoizedState;\n if (null !== d && null !== b && nh(b, d[1])) return d[0];\n a = a();\n c.memoizedState = [a, b];\n return a;\n}\nfunction Nh(a, b, c) {\n var d = ag();\n cg(98 > d ? 98 : d, function () {\n a(!0);\n });\n cg(97 < d ? 97 : d, function () {\n var d = kh.suspense;\n kh.suspense = void 0 === b ? null : b;\n try {\n a(!1), c();\n } finally {\n kh.suspense = d;\n }\n });\n}\nfunction zh(a, b, c) {\n var d = Gg(),\n e = Dg.suspense;\n d = Hg(d, a, e);\n e = {\n expirationTime: d,\n suspenseConfig: e,\n action: c,\n eagerReducer: null,\n eagerState: null,\n next: null\n };\n var f = b.pending;\n null === f ? e.next = e : (e.next = f.next, f.next = e);\n b.pending = e;\n f = a.alternate;\n if (a === N || null !== f && f === N) mh = !0, e.expirationTime = lh, N.expirationTime = lh;else {\n if (0 === a.expirationTime && (null === f || 0 === f.expirationTime) && (f = b.lastRenderedReducer, null !== f)) try {\n var g = b.lastRenderedState,\n h = f(g, c);\n e.eagerReducer = f;\n e.eagerState = h;\n if ($e(h, g)) return;\n } catch (k) {} finally {}\n Ig(a, d);\n }\n}\nvar sh = {\n readContext: sg,\n useCallback: Q,\n useContext: Q,\n useEffect: Q,\n useImperativeHandle: Q,\n useLayoutEffect: Q,\n useMemo: Q,\n useReducer: Q,\n useRef: Q,\n useState: Q,\n useDebugValue: Q,\n useResponder: Q,\n useDeferredValue: Q,\n useTransition: Q\n },\n ph = {\n readContext: sg,\n useCallback: Kh,\n useContext: sg,\n useEffect: Eh,\n useImperativeHandle: function (a, b, c) {\n c = null !== c && void 0 !== c ? c.concat([a]) : null;\n return Ch(4, 2, Hh.bind(null, b, a), c);\n },\n useLayoutEffect: function (a, b) {\n return Ch(4, 2, a, b);\n },\n useMemo: function (a, b) {\n var c = th();\n b = void 0 === b ? null : b;\n a = a();\n c.memoizedState = [a, b];\n return a;\n },\n useReducer: function (a, b, c) {\n var d = th();\n b = void 0 !== c ? c(b) : b;\n d.memoizedState = d.baseState = b;\n a = d.queue = {\n pending: null,\n dispatch: null,\n lastRenderedReducer: a,\n lastRenderedState: b\n };\n a = a.dispatch = zh.bind(null, N, a);\n return [d.memoizedState, a];\n },\n useRef: function (a) {\n var b = th();\n a = {\n current: a\n };\n return b.memoizedState = a;\n },\n useState: yh,\n useDebugValue: Jh,\n useResponder: ih,\n useDeferredValue: function (a, b) {\n var c = yh(a),\n d = c[0],\n e = c[1];\n Eh(function () {\n var c = kh.suspense;\n kh.suspense = void 0 === b ? null : b;\n try {\n e(a);\n } finally {\n kh.suspense = c;\n }\n }, [a, b]);\n return d;\n },\n useTransition: function (a) {\n var b = yh(!1),\n c = b[0];\n b = b[1];\n return [Kh(Nh.bind(null, b, a), [b, a]), c];\n }\n },\n qh = {\n readContext: sg,\n useCallback: Lh,\n useContext: sg,\n useEffect: Fh,\n useImperativeHandle: Ih,\n useLayoutEffect: Gh,\n useMemo: Mh,\n useReducer: wh,\n useRef: Bh,\n useState: function () {\n return wh(vh);\n },\n useDebugValue: Jh,\n useResponder: ih,\n useDeferredValue: function (a, b) {\n var c = wh(vh),\n d = c[0],\n e = c[1];\n Fh(function () {\n var c = kh.suspense;\n kh.suspense = void 0 === b ? null : b;\n try {\n e(a);\n } finally {\n kh.suspense = c;\n }\n }, [a, b]);\n return d;\n },\n useTransition: function (a) {\n var b = wh(vh),\n c = b[0];\n b = b[1];\n return [Lh(Nh.bind(null, b, a), [b, a]), c];\n }\n },\n rh = {\n readContext: sg,\n useCallback: Lh,\n useContext: sg,\n useEffect: Fh,\n useImperativeHandle: Ih,\n useLayoutEffect: Gh,\n useMemo: Mh,\n useReducer: xh,\n useRef: Bh,\n useState: function () {\n return xh(vh);\n },\n useDebugValue: Jh,\n useResponder: ih,\n useDeferredValue: function (a, b) {\n var c = xh(vh),\n d = c[0],\n e = c[1];\n Fh(function () {\n var c = kh.suspense;\n kh.suspense = void 0 === b ? null : b;\n try {\n e(a);\n } finally {\n kh.suspense = c;\n }\n }, [a, b]);\n return d;\n },\n useTransition: function (a) {\n var b = xh(vh),\n c = b[0];\n b = b[1];\n return [Lh(Nh.bind(null, b, a), [b, a]), c];\n }\n },\n Oh = null,\n Ph = null,\n Qh = !1;\nfunction Rh(a, b) {\n var c = Sh(5, null, null, 0);\n c.elementType = \"DELETED\";\n c.type = \"DELETED\";\n c.stateNode = b;\n c.return = a;\n c.effectTag = 8;\n null !== a.lastEffect ? (a.lastEffect.nextEffect = c, a.lastEffect = c) : a.firstEffect = a.lastEffect = c;\n}\nfunction Th(a, b) {\n switch (a.tag) {\n case 5:\n var c = a.type;\n b = 1 !== b.nodeType || c.toLowerCase() !== b.nodeName.toLowerCase() ? null : b;\n return null !== b ? (a.stateNode = b, !0) : !1;\n case 6:\n return b = \"\" === a.pendingProps || 3 !== b.nodeType ? null : b, null !== b ? (a.stateNode = b, !0) : !1;\n case 13:\n return !1;\n default:\n return !1;\n }\n}\nfunction Uh(a) {\n if (Qh) {\n var b = Ph;\n if (b) {\n var c = b;\n if (!Th(a, b)) {\n b = Jd(c.nextSibling);\n if (!b || !Th(a, b)) {\n a.effectTag = a.effectTag & -1025 | 2;\n Qh = !1;\n Oh = a;\n return;\n }\n Rh(Oh, c);\n }\n Oh = a;\n Ph = Jd(b.firstChild);\n } else a.effectTag = a.effectTag & -1025 | 2, Qh = !1, Oh = a;\n }\n}\nfunction Vh(a) {\n for (a = a.return; null !== a && 5 !== a.tag && 3 !== a.tag && 13 !== a.tag;) a = a.return;\n Oh = a;\n}\nfunction Wh(a) {\n if (a !== Oh) return !1;\n if (!Qh) return Vh(a), Qh = !0, !1;\n var b = a.type;\n if (5 !== a.tag || \"head\" !== b && \"body\" !== b && !Gd(b, a.memoizedProps)) for (b = Ph; b;) Rh(a, b), b = Jd(b.nextSibling);\n Vh(a);\n if (13 === a.tag) {\n a = a.memoizedState;\n a = null !== a ? a.dehydrated : null;\n if (!a) throw Error(u(317));\n a: {\n a = a.nextSibling;\n for (b = 0; a;) {\n if (8 === a.nodeType) {\n var c = a.data;\n if (c === Ad) {\n if (0 === b) {\n Ph = Jd(a.nextSibling);\n break a;\n }\n b--;\n } else c !== zd && c !== Cd && c !== Bd || b++;\n }\n a = a.nextSibling;\n }\n Ph = null;\n }\n } else Ph = Oh ? Jd(a.stateNode.nextSibling) : null;\n return !0;\n}\nfunction Xh() {\n Ph = Oh = null;\n Qh = !1;\n}\nvar Yh = Wa.ReactCurrentOwner,\n rg = !1;\nfunction R(a, b, c, d) {\n b.child = null === a ? Yg(b, null, c, d) : Xg(b, a.child, c, d);\n}\nfunction Zh(a, b, c, d, e) {\n c = c.render;\n var f = b.ref;\n qg(b, e);\n d = oh(a, b, c, d, f, e);\n if (null !== a && !rg) return b.updateQueue = a.updateQueue, b.effectTag &= -517, a.expirationTime <= e && (a.expirationTime = 0), $h(a, b, e);\n b.effectTag |= 1;\n R(a, b, d, e);\n return b.child;\n}\nfunction ai(a, b, c, d, e, f) {\n if (null === a) {\n var g = c.type;\n if (\"function\" === typeof g && !bi(g) && void 0 === g.defaultProps && null === c.compare && void 0 === c.defaultProps) return b.tag = 15, b.type = g, ci(a, b, g, d, e, f);\n a = Ug(c.type, null, d, null, b.mode, f);\n a.ref = b.ref;\n a.return = b;\n return b.child = a;\n }\n g = a.child;\n if (e < f && (e = g.memoizedProps, c = c.compare, c = null !== c ? c : bf, c(e, d) && a.ref === b.ref)) return $h(a, b, f);\n b.effectTag |= 1;\n a = Sg(g, d);\n a.ref = b.ref;\n a.return = b;\n return b.child = a;\n}\nfunction ci(a, b, c, d, e, f) {\n return null !== a && bf(a.memoizedProps, d) && a.ref === b.ref && (rg = !1, e < f) ? (b.expirationTime = a.expirationTime, $h(a, b, f)) : di(a, b, c, d, f);\n}\nfunction ei(a, b) {\n var c = b.ref;\n if (null === a && null !== c || null !== a && a.ref !== c) b.effectTag |= 128;\n}\nfunction di(a, b, c, d, e) {\n var f = L(c) ? Bf : J.current;\n f = Cf(b, f);\n qg(b, e);\n c = oh(a, b, c, d, f, e);\n if (null !== a && !rg) return b.updateQueue = a.updateQueue, b.effectTag &= -517, a.expirationTime <= e && (a.expirationTime = 0), $h(a, b, e);\n b.effectTag |= 1;\n R(a, b, c, e);\n return b.child;\n}\nfunction fi(a, b, c, d, e) {\n if (L(c)) {\n var f = !0;\n Gf(b);\n } else f = !1;\n qg(b, e);\n if (null === b.stateNode) null !== a && (a.alternate = null, b.alternate = null, b.effectTag |= 2), Lg(b, c, d), Ng(b, c, d, e), d = !0;else if (null === a) {\n var g = b.stateNode,\n h = b.memoizedProps;\n g.props = h;\n var k = g.context,\n l = c.contextType;\n \"object\" === typeof l && null !== l ? l = sg(l) : (l = L(c) ? Bf : J.current, l = Cf(b, l));\n var m = c.getDerivedStateFromProps,\n p = \"function\" === typeof m || \"function\" === typeof g.getSnapshotBeforeUpdate;\n p || \"function\" !== typeof g.UNSAFE_componentWillReceiveProps && \"function\" !== typeof g.componentWillReceiveProps || (h !== d || k !== l) && Mg(b, g, d, l);\n tg = !1;\n var x = b.memoizedState;\n g.state = x;\n zg(b, d, g, e);\n k = b.memoizedState;\n h !== d || x !== k || K.current || tg ? (\"function\" === typeof m && (Fg(b, c, m, d), k = b.memoizedState), (h = tg || Kg(b, c, h, d, x, k, l)) ? (p || \"function\" !== typeof g.UNSAFE_componentWillMount && \"function\" !== typeof g.componentWillMount || (\"function\" === typeof g.componentWillMount && g.componentWillMount(), \"function\" === typeof g.UNSAFE_componentWillMount && g.UNSAFE_componentWillMount()), \"function\" === typeof g.componentDidMount && (b.effectTag |= 4)) : (\"function\" === typeof g.componentDidMount && (b.effectTag |= 4), b.memoizedProps = d, b.memoizedState = k), g.props = d, g.state = k, g.context = l, d = h) : (\"function\" === typeof g.componentDidMount && (b.effectTag |= 4), d = !1);\n } else g = b.stateNode, vg(a, b), h = b.memoizedProps, g.props = b.type === b.elementType ? h : ig(b.type, h), k = g.context, l = c.contextType, \"object\" === typeof l && null !== l ? l = sg(l) : (l = L(c) ? Bf : J.current, l = Cf(b, l)), m = c.getDerivedStateFromProps, (p = \"function\" === typeof m || \"function\" === typeof g.getSnapshotBeforeUpdate) || \"function\" !== typeof g.UNSAFE_componentWillReceiveProps && \"function\" !== typeof g.componentWillReceiveProps || (h !== d || k !== l) && Mg(b, g, d, l), tg = !1, k = b.memoizedState, g.state = k, zg(b, d, g, e), x = b.memoizedState, h !== d || k !== x || K.current || tg ? (\"function\" === typeof m && (Fg(b, c, m, d), x = b.memoizedState), (m = tg || Kg(b, c, h, d, k, x, l)) ? (p || \"function\" !== typeof g.UNSAFE_componentWillUpdate && \"function\" !== typeof g.componentWillUpdate || (\"function\" === typeof g.componentWillUpdate && g.componentWillUpdate(d, x, l), \"function\" === typeof g.UNSAFE_componentWillUpdate && g.UNSAFE_componentWillUpdate(d, x, l)), \"function\" === typeof g.componentDidUpdate && (b.effectTag |= 4), \"function\" === typeof g.getSnapshotBeforeUpdate && (b.effectTag |= 256)) : (\"function\" !== typeof g.componentDidUpdate || h === a.memoizedProps && k === a.memoizedState || (b.effectTag |= 4), \"function\" !== typeof g.getSnapshotBeforeUpdate || h === a.memoizedProps && k === a.memoizedState || (b.effectTag |= 256), b.memoizedProps = d, b.memoizedState = x), g.props = d, g.state = x, g.context = l, d = m) : (\"function\" !== typeof g.componentDidUpdate || h === a.memoizedProps && k === a.memoizedState || (b.effectTag |= 4), \"function\" !== typeof g.getSnapshotBeforeUpdate || h === a.memoizedProps && k === a.memoizedState || (b.effectTag |= 256), d = !1);\n return gi(a, b, c, d, f, e);\n}\nfunction gi(a, b, c, d, e, f) {\n ei(a, b);\n var g = 0 !== (b.effectTag & 64);\n if (!d && !g) return e && Hf(b, c, !1), $h(a, b, f);\n d = b.stateNode;\n Yh.current = b;\n var h = g && \"function\" !== typeof c.getDerivedStateFromError ? null : d.render();\n b.effectTag |= 1;\n null !== a && g ? (b.child = Xg(b, a.child, null, f), b.child = Xg(b, null, h, f)) : R(a, b, h, f);\n b.memoizedState = d.state;\n e && Hf(b, c, !0);\n return b.child;\n}\nfunction hi(a) {\n var b = a.stateNode;\n b.pendingContext ? Ef(a, b.pendingContext, b.pendingContext !== b.context) : b.context && Ef(a, b.context, !1);\n dh(a, b.containerInfo);\n}\nvar ii = {\n dehydrated: null,\n retryTime: 0\n};\nfunction ji(a, b, c) {\n var d = b.mode,\n e = b.pendingProps,\n f = M.current,\n g = !1,\n h;\n (h = 0 !== (b.effectTag & 64)) || (h = 0 !== (f & 2) && (null === a || null !== a.memoizedState));\n h ? (g = !0, b.effectTag &= -65) : null !== a && null === a.memoizedState || void 0 === e.fallback || !0 === e.unstable_avoidThisFallback || (f |= 1);\n I(M, f & 1);\n if (null === a) {\n void 0 !== e.fallback && Uh(b);\n if (g) {\n g = e.fallback;\n e = Wg(null, d, 0, null);\n e.return = b;\n if (0 === (b.mode & 2)) for (a = null !== b.memoizedState ? b.child.child : b.child, e.child = a; null !== a;) a.return = e, a = a.sibling;\n c = Wg(g, d, c, null);\n c.return = b;\n e.sibling = c;\n b.memoizedState = ii;\n b.child = e;\n return c;\n }\n d = e.children;\n b.memoizedState = null;\n return b.child = Yg(b, null, d, c);\n }\n if (null !== a.memoizedState) {\n a = a.child;\n d = a.sibling;\n if (g) {\n e = e.fallback;\n c = Sg(a, a.pendingProps);\n c.return = b;\n if (0 === (b.mode & 2) && (g = null !== b.memoizedState ? b.child.child : b.child, g !== a.child)) for (c.child = g; null !== g;) g.return = c, g = g.sibling;\n d = Sg(d, e);\n d.return = b;\n c.sibling = d;\n c.childExpirationTime = 0;\n b.memoizedState = ii;\n b.child = c;\n return d;\n }\n c = Xg(b, a.child, e.children, c);\n b.memoizedState = null;\n return b.child = c;\n }\n a = a.child;\n if (g) {\n g = e.fallback;\n e = Wg(null, d, 0, null);\n e.return = b;\n e.child = a;\n null !== a && (a.return = e);\n if (0 === (b.mode & 2)) for (a = null !== b.memoizedState ? b.child.child : b.child, e.child = a; null !== a;) a.return = e, a = a.sibling;\n c = Wg(g, d, c, null);\n c.return = b;\n e.sibling = c;\n c.effectTag |= 2;\n e.childExpirationTime = 0;\n b.memoizedState = ii;\n b.child = e;\n return c;\n }\n b.memoizedState = null;\n return b.child = Xg(b, a, e.children, c);\n}\nfunction ki(a, b) {\n a.expirationTime < b && (a.expirationTime = b);\n var c = a.alternate;\n null !== c && c.expirationTime < b && (c.expirationTime = b);\n pg(a.return, b);\n}\nfunction li(a, b, c, d, e, f) {\n var g = a.memoizedState;\n null === g ? a.memoizedState = {\n isBackwards: b,\n rendering: null,\n renderingStartTime: 0,\n last: d,\n tail: c,\n tailExpiration: 0,\n tailMode: e,\n lastEffect: f\n } : (g.isBackwards = b, g.rendering = null, g.renderingStartTime = 0, g.last = d, g.tail = c, g.tailExpiration = 0, g.tailMode = e, g.lastEffect = f);\n}\nfunction mi(a, b, c) {\n var d = b.pendingProps,\n e = d.revealOrder,\n f = d.tail;\n R(a, b, d.children, c);\n d = M.current;\n if (0 !== (d & 2)) d = d & 1 | 2, b.effectTag |= 64;else {\n if (null !== a && 0 !== (a.effectTag & 64)) a: for (a = b.child; null !== a;) {\n if (13 === a.tag) null !== a.memoizedState && ki(a, c);else if (19 === a.tag) ki(a, c);else if (null !== a.child) {\n a.child.return = a;\n a = a.child;\n continue;\n }\n if (a === b) break a;\n for (; null === a.sibling;) {\n if (null === a.return || a.return === b) break a;\n a = a.return;\n }\n a.sibling.return = a.return;\n a = a.sibling;\n }\n d &= 1;\n }\n I(M, d);\n if (0 === (b.mode & 2)) b.memoizedState = null;else switch (e) {\n case \"forwards\":\n c = b.child;\n for (e = null; null !== c;) a = c.alternate, null !== a && null === hh(a) && (e = c), c = c.sibling;\n c = e;\n null === c ? (e = b.child, b.child = null) : (e = c.sibling, c.sibling = null);\n li(b, !1, e, c, f, b.lastEffect);\n break;\n case \"backwards\":\n c = null;\n e = b.child;\n for (b.child = null; null !== e;) {\n a = e.alternate;\n if (null !== a && null === hh(a)) {\n b.child = e;\n break;\n }\n a = e.sibling;\n e.sibling = c;\n c = e;\n e = a;\n }\n li(b, !0, c, null, f, b.lastEffect);\n break;\n case \"together\":\n li(b, !1, null, null, void 0, b.lastEffect);\n break;\n default:\n b.memoizedState = null;\n }\n return b.child;\n}\nfunction $h(a, b, c) {\n null !== a && (b.dependencies = a.dependencies);\n var d = b.expirationTime;\n 0 !== d && Bg(d);\n if (b.childExpirationTime < c) return null;\n if (null !== a && b.child !== a.child) throw Error(u(153));\n if (null !== b.child) {\n a = b.child;\n c = Sg(a, a.pendingProps);\n b.child = c;\n for (c.return = b; null !== a.sibling;) a = a.sibling, c = c.sibling = Sg(a, a.pendingProps), c.return = b;\n c.sibling = null;\n }\n return b.child;\n}\nvar ni, oi, pi, qi;\nni = function (a, b) {\n for (var c = b.child; null !== c;) {\n if (5 === c.tag || 6 === c.tag) a.appendChild(c.stateNode);else if (4 !== c.tag && null !== c.child) {\n c.child.return = c;\n c = c.child;\n continue;\n }\n if (c === b) break;\n for (; null === c.sibling;) {\n if (null === c.return || c.return === b) return;\n c = c.return;\n }\n c.sibling.return = c.return;\n c = c.sibling;\n }\n};\noi = function () {};\npi = function (a, b, c, d, e) {\n var f = a.memoizedProps;\n if (f !== d) {\n var g = b.stateNode;\n ch($g.current);\n a = null;\n switch (c) {\n case \"input\":\n f = zb(g, f);\n d = zb(g, d);\n a = [];\n break;\n case \"option\":\n f = Gb(g, f);\n d = Gb(g, d);\n a = [];\n break;\n case \"select\":\n f = n({}, f, {\n value: void 0\n });\n d = n({}, d, {\n value: void 0\n });\n a = [];\n break;\n case \"textarea\":\n f = Ib(g, f);\n d = Ib(g, d);\n a = [];\n break;\n default:\n \"function\" !== typeof f.onClick && \"function\" === typeof d.onClick && (g.onclick = sd);\n }\n od(c, d);\n var h, k;\n c = null;\n for (h in f) if (!d.hasOwnProperty(h) && f.hasOwnProperty(h) && null != f[h]) if (\"style\" === h) for (k in g = f[h], g) g.hasOwnProperty(k) && (c || (c = {}), c[k] = \"\");else \"dangerouslySetInnerHTML\" !== h && \"children\" !== h && \"suppressContentEditableWarning\" !== h && \"suppressHydrationWarning\" !== h && \"autoFocus\" !== h && (va.hasOwnProperty(h) ? a || (a = []) : (a = a || []).push(h, null));\n for (h in d) {\n var l = d[h];\n g = null != f ? f[h] : void 0;\n if (d.hasOwnProperty(h) && l !== g && (null != l || null != g)) if (\"style\" === h) {\n if (g) {\n for (k in g) !g.hasOwnProperty(k) || l && l.hasOwnProperty(k) || (c || (c = {}), c[k] = \"\");\n for (k in l) l.hasOwnProperty(k) && g[k] !== l[k] && (c || (c = {}), c[k] = l[k]);\n } else c || (a || (a = []), a.push(h, c)), c = l;\n } else \"dangerouslySetInnerHTML\" === h ? (l = l ? l.__html : void 0, g = g ? g.__html : void 0, null != l && g !== l && (a = a || []).push(h, l)) : \"children\" === h ? g === l || \"string\" !== typeof l && \"number\" !== typeof l || (a = a || []).push(h, \"\" + l) : \"suppressContentEditableWarning\" !== h && \"suppressHydrationWarning\" !== h && (va.hasOwnProperty(h) ? (null != l && rd(e, h), a || g === l || (a = [])) : (a = a || []).push(h, l));\n }\n c && (a = a || []).push(\"style\", c);\n e = a;\n if (b.updateQueue = e) b.effectTag |= 4;\n }\n};\nqi = function (a, b, c, d) {\n c !== d && (b.effectTag |= 4);\n};\nfunction ri(a, b) {\n switch (a.tailMode) {\n case \"hidden\":\n b = a.tail;\n for (var c = null; null !== b;) null !== b.alternate && (c = b), b = b.sibling;\n null === c ? a.tail = null : c.sibling = null;\n break;\n case \"collapsed\":\n c = a.tail;\n for (var d = null; null !== c;) null !== c.alternate && (d = c), c = c.sibling;\n null === d ? b || null === a.tail ? a.tail = null : a.tail.sibling = null : d.sibling = null;\n }\n}\nfunction si(a, b, c) {\n var d = b.pendingProps;\n switch (b.tag) {\n case 2:\n case 16:\n case 15:\n case 0:\n case 11:\n case 7:\n case 8:\n case 12:\n case 9:\n case 14:\n return null;\n case 1:\n return L(b.type) && Df(), null;\n case 3:\n return eh(), H(K), H(J), c = b.stateNode, c.pendingContext && (c.context = c.pendingContext, c.pendingContext = null), null !== a && null !== a.child || !Wh(b) || (b.effectTag |= 4), oi(b), null;\n case 5:\n gh(b);\n c = ch(bh.current);\n var e = b.type;\n if (null !== a && null != b.stateNode) pi(a, b, e, d, c), a.ref !== b.ref && (b.effectTag |= 128);else {\n if (!d) {\n if (null === b.stateNode) throw Error(u(166));\n return null;\n }\n a = ch($g.current);\n if (Wh(b)) {\n d = b.stateNode;\n e = b.type;\n var f = b.memoizedProps;\n d[Md] = b;\n d[Nd] = f;\n switch (e) {\n case \"iframe\":\n case \"object\":\n case \"embed\":\n F(\"load\", d);\n break;\n case \"video\":\n case \"audio\":\n for (a = 0; a < ac.length; a++) F(ac[a], d);\n break;\n case \"source\":\n F(\"error\", d);\n break;\n case \"img\":\n case \"image\":\n case \"link\":\n F(\"error\", d);\n F(\"load\", d);\n break;\n case \"form\":\n F(\"reset\", d);\n F(\"submit\", d);\n break;\n case \"details\":\n F(\"toggle\", d);\n break;\n case \"input\":\n Ab(d, f);\n F(\"invalid\", d);\n rd(c, \"onChange\");\n break;\n case \"select\":\n d._wrapperState = {\n wasMultiple: !!f.multiple\n };\n F(\"invalid\", d);\n rd(c, \"onChange\");\n break;\n case \"textarea\":\n Jb(d, f), F(\"invalid\", d), rd(c, \"onChange\");\n }\n od(e, f);\n a = null;\n for (var g in f) if (f.hasOwnProperty(g)) {\n var h = f[g];\n \"children\" === g ? \"string\" === typeof h ? d.textContent !== h && (a = [\"children\", h]) : \"number\" === typeof h && d.textContent !== \"\" + h && (a = [\"children\", \"\" + h]) : va.hasOwnProperty(g) && null != h && rd(c, g);\n }\n switch (e) {\n case \"input\":\n xb(d);\n Eb(d, f, !0);\n break;\n case \"textarea\":\n xb(d);\n Lb(d);\n break;\n case \"select\":\n case \"option\":\n break;\n default:\n \"function\" === typeof f.onClick && (d.onclick = sd);\n }\n c = a;\n b.updateQueue = c;\n null !== c && (b.effectTag |= 4);\n } else {\n g = 9 === c.nodeType ? c : c.ownerDocument;\n a === qd && (a = Nb(e));\n a === qd ? \"script\" === e ? (a = g.createElement(\"div\"), a.innerHTML = \"