{ "version": 3, "sources": ["../../../node_modules/react/cjs/react.production.min.js", "../../../node_modules/react/index.js", "../../../node_modules/scheduler/cjs/scheduler.production.min.js", "../../../node_modules/scheduler/index.js", "../../../node_modules/react-dom/cjs/react-dom.production.min.js", "../../../node_modules/react-dom/index.js", "../../../node_modules/react-dom/client.js", "../../../node_modules/@stripe/react-stripe-js/dist/react-stripe.umd.js", "../../../node_modules/react-is/cjs/react-is.production.min.js", "../../../node_modules/react-is/index.js", "../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js", "../../../node_modules/prop-types/lib/ReactPropTypesSecret.js", "../../../node_modules/prop-types/factoryWithThrowingShims.js", "../../../node_modules/prop-types/index.js", "../../../node_modules/amazon-quicksight-embedding-sdk/src/common/events/messages/info/index.ts", "../../../node_modules/amazon-quicksight-embedding-sdk/src/common/events/messages/change/index.ts", "../../../node_modules/amazon-quicksight-embedding-sdk/src/common/events/messages/setters/index.ts", "../../../node_modules/amazon-quicksight-embedding-sdk/src/common/events/messages/getters/index.ts", "../../../node_modules/amazon-quicksight-embedding-sdk/src/common/events/messages/invokers/index.ts", "../../../node_modules/amazon-quicksight-embedding-sdk/src/common/events/types.ts", "../../../node_modules/amazon-quicksight-embedding-sdk/src/experiences/base-experience/types.ts", "../../../node_modules/amazon-quicksight-embedding-sdk/src/experiences/dashboard-experience/types.ts", "../../../node_modules/amazon-quicksight-embedding-sdk/src/experiences/generative-qna-experience/types.ts", "../../../node_modules/amazon-quicksight-embedding-sdk/src/common/events/events.ts", "../../../node_modules/amazon-quicksight-embedding-sdk/node_modules/uuid/dist/esm-browser/rng.js", "../../../node_modules/amazon-quicksight-embedding-sdk/node_modules/uuid/dist/esm-browser/stringify.js", "../../../node_modules/amazon-quicksight-embedding-sdk/node_modules/uuid/dist/esm-browser/native.js", "../../../node_modules/amazon-quicksight-embedding-sdk/node_modules/uuid/dist/esm-browser/v4.js", "../../../node_modules/amazon-quicksight-embedding-sdk/src/experiences/base-experience/base-experience.ts", "../../../node_modules/amazon-quicksight-embedding-sdk/node_modules/punycode/punycode.es6.js", "../../../node_modules/amazon-quicksight-embedding-sdk/src/common/iframe/iframe.ts", "../../../node_modules/amazon-quicksight-embedding-sdk/src/experiences/base-experience/frame/experience-frame.ts", "../../../node_modules/amazon-quicksight-embedding-sdk/src/experiences/visual-experience/frame/visual-experience-frame.ts", "../../../node_modules/amazon-quicksight-embedding-sdk/src/experiences/visual-experience/visual-experience.ts", "../../../node_modules/amazon-quicksight-embedding-sdk/src/experiences/console-experience/frame/console-experience-frame.ts", "../../../node_modules/amazon-quicksight-embedding-sdk/src/experiences/console-experience/console-experience.ts", "../../../node_modules/amazon-quicksight-embedding-sdk/src/experiences/dashboard-experience/frame/dashboard-experience-frame.ts", "../../../node_modules/amazon-quicksight-embedding-sdk/src/experiences/dashboard-experience/dashboard-experience.ts", "../../../node_modules/amazon-quicksight-embedding-sdk/src/experiences/q-search-experience/frame/q-search-experience-frame.ts", "../../../node_modules/amazon-quicksight-embedding-sdk/src/experiences/internal-q-base-experience/internal-q-base-experience.ts", "../../../node_modules/amazon-quicksight-embedding-sdk/src/experiences/q-search-experience/q-search-experience.ts", "../../../node_modules/amazon-quicksight-embedding-sdk/src/experiences/generative-qna-experience/frame/generative-qna-experience-frame.ts", "../../../node_modules/amazon-quicksight-embedding-sdk/src/experiences/generative-qna-experience/generative-qna-experience.ts", "../../../node_modules/amazon-quicksight-embedding-sdk/src/experiences/control-experience/frame/control-experience-frame.ts", "../../../node_modules/amazon-quicksight-embedding-sdk/src/experiences/control-experience/control-experience.ts", "../../../node_modules/amazon-quicksight-embedding-sdk/src/common/event-manager/event-manager.ts", "../../../node_modules/amazon-quicksight-embedding-sdk/src/common/log-provider/log-provider.ts", "../../../node_modules/amazon-quicksight-embedding-sdk/src/common/embedding-context/embedding-context.ts", "../../../node_modules/amazon-quicksight-embedding-sdk/src/index.ts", "../../../node_modules/react/cjs/react-jsx-runtime.production.min.js", "../../../node_modules/react/jsx-runtime.js", "../../../node_modules/react-fast-compare/index.js", "../../../node_modules/es-errors/index.js", "../../../node_modules/es-errors/eval.js", "../../../node_modules/es-errors/range.js", "../../../node_modules/es-errors/ref.js", "../../../node_modules/es-errors/syntax.js", "../../../node_modules/es-errors/type.js", "../../../node_modules/es-errors/uri.js", "../../../node_modules/side-channel/node_modules/has-symbols/shams.js", "../../../node_modules/side-channel/node_modules/has-symbols/index.js", "../../../node_modules/has-proto/index.js", "../../../node_modules/function-bind/implementation.js", "../../../node_modules/function-bind/index.js", "../../../node_modules/hasown/index.js", "../../../node_modules/side-channel/node_modules/get-intrinsic/index.js", "../../../node_modules/call-bind/node_modules/has-symbols/shams.js", "../../../node_modules/call-bind/node_modules/has-symbols/index.js", "../../../node_modules/call-bind/node_modules/get-intrinsic/index.js", "../../../node_modules/set-function-length/node_modules/has-symbols/shams.js", "../../../node_modules/set-function-length/node_modules/has-symbols/index.js", "../../../node_modules/set-function-length/node_modules/get-intrinsic/index.js", "../../../node_modules/es-define-property/node_modules/has-symbols/shams.js", "../../../node_modules/es-define-property/node_modules/has-symbols/index.js", "../../../node_modules/es-define-property/node_modules/get-intrinsic/index.js", "../../../node_modules/es-define-property/index.js", "../../../node_modules/define-data-property/node_modules/has-symbols/shams.js", "../../../node_modules/define-data-property/node_modules/has-symbols/index.js", "../../../node_modules/define-data-property/node_modules/get-intrinsic/index.js", "../../../node_modules/define-data-property/node_modules/gopd/index.js", "../../../node_modules/define-data-property/index.js", "../../../node_modules/has-property-descriptors/index.js", "../../../node_modules/set-function-length/node_modules/gopd/index.js", "../../../node_modules/set-function-length/index.js", "../../../node_modules/call-bind/index.js", "../../../node_modules/call-bind/callBound.js", "../../../node_modules/side-channel/node_modules/object-inspect/index.js", "../../../node_modules/side-channel/index.js", "../../../node_modules/qs/lib/formats.js", "../../../node_modules/qs/lib/utils.js", "../../../node_modules/qs/lib/stringify.js", "../../../node_modules/qs/lib/parse.js", "../../../node_modules/qs/lib/index.js", "../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js", "../../../node_modules/@babel/runtime/helpers/typeof.js", "../../../node_modules/@babel/runtime/helpers/toPrimitive.js", "../../../node_modules/@babel/runtime/helpers/toPropertyKey.js", "../../../node_modules/@babel/runtime/helpers/defineProperty.js", "../../../node_modules/@babel/runtime/helpers/objectSpread2.js", "../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js", "../../../node_modules/@babel/runtime/helpers/objectWithoutProperties.js", "../../../node_modules/@babel/runtime/helpers/classCallCheck.js", "../../../node_modules/@babel/runtime/helpers/createClass.js", "../../../node_modules/@babel/runtime/helpers/getPrototypeOf.js", "../../../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js", "../../../node_modules/@babel/runtime/helpers/assertThisInitialized.js", "../../../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js", "../../../node_modules/@babel/runtime/helpers/callSuper.js", "../../../node_modules/@babel/runtime/helpers/setPrototypeOf.js", "../../../node_modules/@babel/runtime/helpers/inherits.js", "../../../node_modules/clsx/dist/clsx.js", "../../../node_modules/@skiller-whale/react-big-calendar/lib/utils/constants.js", "../../../node_modules/@skiller-whale/react-big-calendar/lib/utils/propTypes.js", "../../../node_modules/@skiller-whale/react-big-calendar/lib/utils/accessors.js", "../../../node_modules/@skiller-whale/react-big-calendar/lib/addons/dragAndDrop/DnDContext.js", "../../../node_modules/@skiller-whale/react-big-calendar/lib/addons/dragAndDrop/EventWrapper.js", "../../../node_modules/@babel/runtime/helpers/interopRequireWildcard.js", "../../../node_modules/dom-helpers/cjs/ownerDocument.js", "../../../node_modules/dom-helpers/cjs/activeElement.js", "../../../node_modules/dom-helpers/cjs/hasClass.js", "../../../node_modules/dom-helpers/cjs/addClass.js", "../../../node_modules/dom-helpers/cjs/canUseDOM.js", "../../../node_modules/dom-helpers/cjs/addEventListener.js", "../../../node_modules/dom-helpers/cjs/ownerWindow.js", "../../../node_modules/dom-helpers/cjs/getComputedStyle.js", "../../../node_modules/dom-helpers/cjs/hyphenate.js", "../../../node_modules/dom-helpers/cjs/hyphenateStyle.js", "../../../node_modules/dom-helpers/cjs/isTransform.js", "../../../node_modules/dom-helpers/cjs/css.js", "../../../node_modules/dom-helpers/cjs/removeEventListener.js", "../../../node_modules/dom-helpers/cjs/listen.js", "../../../node_modules/dom-helpers/cjs/triggerEvent.js", "../../../node_modules/dom-helpers/cjs/transitionEnd.js", "../../../node_modules/dom-helpers/cjs/animate.js", "../../../node_modules/dom-helpers/cjs/animationFrame.js", "../../../node_modules/dom-helpers/cjs/attribute.js", "../../../node_modules/dom-helpers/cjs/childElements.js", "../../../node_modules/dom-helpers/cjs/clear.js", "../../../node_modules/dom-helpers/cjs/matches.js", "../../../node_modules/dom-helpers/cjs/closest.js", "../../../node_modules/dom-helpers/cjs/contains.js", "../../../node_modules/dom-helpers/cjs/childNodes.js", "../../../node_modules/dom-helpers/cjs/querySelectorAll.js", "../../../node_modules/dom-helpers/cjs/filterEventHandler.js", "../../../node_modules/dom-helpers/cjs/isDocument.js", "../../../node_modules/dom-helpers/cjs/isWindow.js", "../../../node_modules/dom-helpers/cjs/getScrollAccessor.js", "../../../node_modules/dom-helpers/cjs/scrollLeft.js", "../../../node_modules/dom-helpers/cjs/scrollTop.js", "../../../node_modules/dom-helpers/cjs/offset.js", "../../../node_modules/dom-helpers/cjs/height.js", "../../../node_modules/dom-helpers/cjs/insertAfter.js", "../../../node_modules/dom-helpers/cjs/isInput.js", "../../../node_modules/dom-helpers/cjs/isVisible.js", "../../../node_modules/dom-helpers/cjs/collectSiblings.js", "../../../node_modules/dom-helpers/cjs/nextUntil.js", "../../../node_modules/dom-helpers/cjs/offsetParent.js", "../../../node_modules/dom-helpers/cjs/collectElements.js", "../../../node_modules/dom-helpers/cjs/parents.js", "../../../node_modules/@babel/runtime/helpers/extends.js", "../../../node_modules/dom-helpers/cjs/position.js", "../../../node_modules/dom-helpers/cjs/prepend.js", "../../../node_modules/dom-helpers/cjs/remove.js", "../../../node_modules/dom-helpers/cjs/removeClass.js", "../../../node_modules/dom-helpers/cjs/scrollbarSize.js", "../../../node_modules/dom-helpers/cjs/scrollParent.js", "../../../node_modules/dom-helpers/cjs/scrollTo.js", "../../../node_modules/dom-helpers/cjs/siblings.js", "../../../node_modules/dom-helpers/cjs/text.js", "../../../node_modules/dom-helpers/cjs/toggleClass.js", "../../../node_modules/dom-helpers/cjs/width.js", "../../../node_modules/dom-helpers/cjs/index.js", "../../../node_modules/@skiller-whale/react-big-calendar/lib/Selection.js", "../../../node_modules/@skiller-whale/react-big-calendar/lib/TimeGridEvent.js", "../../../node_modules/@skiller-whale/react-big-calendar/lib/addons/dragAndDrop/common.js", "../../../node_modules/@skiller-whale/react-big-calendar/lib/addons/dragAndDrop/EventContainerWrapper.js", "../../../node_modules/@babel/runtime/helpers/arrayLikeToArray.js", "../../../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js", "../../../node_modules/@babel/runtime/helpers/iterableToArray.js", "../../../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js", "../../../node_modules/@babel/runtime/helpers/nonIterableSpread.js", "../../../node_modules/@babel/runtime/helpers/toConsumableArray.js", "../../../node_modules/@skiller-whale/react-big-calendar/lib/EventCell.js", "../../../node_modules/lodash/_listCacheClear.js", "../../../node_modules/lodash/eq.js", "../../../node_modules/lodash/_assocIndexOf.js", "../../../node_modules/lodash/_listCacheDelete.js", "../../../node_modules/lodash/_listCacheGet.js", "../../../node_modules/lodash/_listCacheHas.js", "../../../node_modules/lodash/_listCacheSet.js", "../../../node_modules/lodash/_ListCache.js", "../../../node_modules/lodash/_stackClear.js", "../../../node_modules/lodash/_stackDelete.js", "../../../node_modules/lodash/_stackGet.js", "../../../node_modules/lodash/_stackHas.js", "../../../node_modules/lodash/_freeGlobal.js", "../../../node_modules/lodash/_root.js", "../../../node_modules/lodash/_Symbol.js", "../../../node_modules/lodash/_getRawTag.js", "../../../node_modules/lodash/_objectToString.js", "../../../node_modules/lodash/_baseGetTag.js", "../../../node_modules/lodash/isObject.js", "../../../node_modules/lodash/isFunction.js", "../../../node_modules/lodash/_coreJsData.js", "../../../node_modules/lodash/_isMasked.js", "../../../node_modules/lodash/_toSource.js", "../../../node_modules/lodash/_baseIsNative.js", "../../../node_modules/lodash/_getValue.js", "../../../node_modules/lodash/_getNative.js", "../../../node_modules/lodash/_Map.js", "../../../node_modules/lodash/_nativeCreate.js", "../../../node_modules/lodash/_hashClear.js", "../../../node_modules/lodash/_hashDelete.js", "../../../node_modules/lodash/_hashGet.js", "../../../node_modules/lodash/_hashHas.js", "../../../node_modules/lodash/_hashSet.js", "../../../node_modules/lodash/_Hash.js", "../../../node_modules/lodash/_mapCacheClear.js", "../../../node_modules/lodash/_isKeyable.js", "../../../node_modules/lodash/_getMapData.js", "../../../node_modules/lodash/_mapCacheDelete.js", "../../../node_modules/lodash/_mapCacheGet.js", "../../../node_modules/lodash/_mapCacheHas.js", "../../../node_modules/lodash/_mapCacheSet.js", "../../../node_modules/lodash/_MapCache.js", "../../../node_modules/lodash/_stackSet.js", "../../../node_modules/lodash/_Stack.js", "../../../node_modules/lodash/_setCacheAdd.js", "../../../node_modules/lodash/_setCacheHas.js", "../../../node_modules/lodash/_SetCache.js", "../../../node_modules/lodash/_arraySome.js", "../../../node_modules/lodash/_cacheHas.js", "../../../node_modules/lodash/_equalArrays.js", "../../../node_modules/lodash/_Uint8Array.js", "../../../node_modules/lodash/_mapToArray.js", "../../../node_modules/lodash/_setToArray.js", "../../../node_modules/lodash/_equalByTag.js", "../../../node_modules/lodash/_arrayPush.js", "../../../node_modules/lodash/isArray.js", "../../../node_modules/lodash/_baseGetAllKeys.js", "../../../node_modules/lodash/_arrayFilter.js", "../../../node_modules/lodash/stubArray.js", "../../../node_modules/lodash/_getSymbols.js", "../../../node_modules/lodash/_baseTimes.js", "../../../node_modules/lodash/isObjectLike.js", "../../../node_modules/lodash/_baseIsArguments.js", "../../../node_modules/lodash/isArguments.js", "../../../node_modules/lodash/stubFalse.js", "../../../node_modules/lodash/isBuffer.js", "../../../node_modules/lodash/_isIndex.js", "../../../node_modules/lodash/isLength.js", "../../../node_modules/lodash/_baseIsTypedArray.js", "../../../node_modules/lodash/_baseUnary.js", "../../../node_modules/lodash/_nodeUtil.js", "../../../node_modules/lodash/isTypedArray.js", "../../../node_modules/lodash/_arrayLikeKeys.js", "../../../node_modules/lodash/_isPrototype.js", "../../../node_modules/lodash/_overArg.js", "../../../node_modules/lodash/_nativeKeys.js", "../../../node_modules/lodash/_baseKeys.js", "../../../node_modules/lodash/isArrayLike.js", "../../../node_modules/lodash/keys.js", "../../../node_modules/lodash/_getAllKeys.js", "../../../node_modules/lodash/_equalObjects.js", "../../../node_modules/lodash/_DataView.js", "../../../node_modules/lodash/_Promise.js", "../../../node_modules/lodash/_Set.js", "../../../node_modules/lodash/_WeakMap.js", "../../../node_modules/lodash/_getTag.js", "../../../node_modules/lodash/_baseIsEqualDeep.js", "../../../node_modules/lodash/_baseIsEqual.js", "../../../node_modules/lodash/isEqual.js", "../../../node_modules/@skiller-whale/react-big-calendar/lib/utils/selection.js", "../../../node_modules/@skiller-whale/react-big-calendar/lib/EventRowMixin.js", "../../../node_modules/@skiller-whale/react-big-calendar/lib/EventRow.js", "../../../node_modules/lodash/_baseFindIndex.js", "../../../node_modules/lodash/_baseIsMatch.js", "../../../node_modules/lodash/_isStrictComparable.js", "../../../node_modules/lodash/_getMatchData.js", "../../../node_modules/lodash/_matchesStrictComparable.js", "../../../node_modules/lodash/_baseMatches.js", "../../../node_modules/lodash/isSymbol.js", "../../../node_modules/lodash/_isKey.js", "../../../node_modules/lodash/memoize.js", "../../../node_modules/lodash/_memoizeCapped.js", "../../../node_modules/lodash/_stringToPath.js", "../../../node_modules/lodash/_arrayMap.js", "../../../node_modules/lodash/_baseToString.js", "../../../node_modules/lodash/toString.js", "../../../node_modules/lodash/_castPath.js", "../../../node_modules/lodash/_toKey.js", "../../../node_modules/lodash/_baseGet.js", "../../../node_modules/lodash/get.js", "../../../node_modules/lodash/_baseHasIn.js", "../../../node_modules/lodash/_hasPath.js", "../../../node_modules/lodash/hasIn.js", "../../../node_modules/lodash/_baseMatchesProperty.js", "../../../node_modules/lodash/identity.js", "../../../node_modules/lodash/_baseProperty.js", "../../../node_modules/lodash/_basePropertyDeep.js", "../../../node_modules/lodash/property.js", "../../../node_modules/lodash/_baseIteratee.js", "../../../node_modules/lodash/_trimmedEndIndex.js", "../../../node_modules/lodash/_baseTrim.js", "../../../node_modules/lodash/toNumber.js", "../../../node_modules/lodash/toFinite.js", "../../../node_modules/lodash/toInteger.js", "../../../node_modules/lodash/findIndex.js", "../../../node_modules/@skiller-whale/react-big-calendar/lib/utils/eventLevels.js", "../../../node_modules/@skiller-whale/react-big-calendar/lib/addons/dragAndDrop/WeekWrapper.js", "../../../node_modules/@skiller-whale/react-big-calendar/lib/addons/dragAndDrop/withDragAndDrop.js", "../../../node_modules/@skiller-whale/react-big-calendar/lib/addons/dragAndDrop/index.js", "../../../node_modules/invariant/browser.js", "../../../node_modules/lodash/_baseSlice.js", "../../../node_modules/lodash/_isIterateeCall.js", "../../../node_modules/lodash/chunk.js", "../../../node_modules/warning/warning.js", "../../../node_modules/lodash/_baseRange.js", "../../../node_modules/lodash/_createRange.js", "../../../node_modules/lodash/range.js", "../../../node_modules/lodash/_isFlattenable.js", "../../../node_modules/lodash/_baseFlatten.js", "../../../node_modules/lodash/_createBaseFor.js", "../../../node_modules/lodash/_baseFor.js", "../../../node_modules/lodash/_baseForOwn.js", "../../../node_modules/lodash/_createBaseEach.js", "../../../node_modules/lodash/_baseEach.js", "../../../node_modules/lodash/_baseMap.js", "../../../node_modules/lodash/_baseSortBy.js", "../../../node_modules/lodash/_compareAscending.js", "../../../node_modules/lodash/_compareMultiple.js", "../../../node_modules/lodash/_baseOrderBy.js", "../../../node_modules/lodash/_apply.js", "../../../node_modules/lodash/_overRest.js", "../../../node_modules/lodash/constant.js", "../../../node_modules/lodash/_defineProperty.js", "../../../node_modules/lodash/_baseSetToString.js", "../../../node_modules/lodash/_shortOut.js", "../../../node_modules/lodash/_setToString.js", "../../../node_modules/lodash/_baseRest.js", "../../../node_modules/lodash/sortBy.js", "../../../node_modules/lodash/_nativeKeysIn.js", "../../../node_modules/lodash/_baseKeysIn.js", "../../../node_modules/lodash/keysIn.js", "../../../node_modules/lodash/defaults.js", "../../../node_modules/lodash/_baseAssignValue.js", "../../../node_modules/lodash/mapValues.js", "../../../node_modules/lodash/_arrayEach.js", "../../../node_modules/lodash/_assignValue.js", "../../../node_modules/lodash/_copyObject.js", "../../../node_modules/lodash/_baseAssign.js", "../../../node_modules/lodash/_baseAssignIn.js", "../../../node_modules/lodash/_cloneBuffer.js", "../../../node_modules/lodash/_copyArray.js", "../../../node_modules/lodash/_copySymbols.js", "../../../node_modules/lodash/_getPrototype.js", "../../../node_modules/lodash/_getSymbolsIn.js", "../../../node_modules/lodash/_copySymbolsIn.js", "../../../node_modules/lodash/_getAllKeysIn.js", "../../../node_modules/lodash/_initCloneArray.js", "../../../node_modules/lodash/_cloneArrayBuffer.js", "../../../node_modules/lodash/_cloneDataView.js", "../../../node_modules/lodash/_cloneRegExp.js", "../../../node_modules/lodash/_cloneSymbol.js", "../../../node_modules/lodash/_cloneTypedArray.js", "../../../node_modules/lodash/_initCloneByTag.js", "../../../node_modules/lodash/_baseCreate.js", "../../../node_modules/lodash/_initCloneObject.js", "../../../node_modules/lodash/_baseIsMap.js", "../../../node_modules/lodash/isMap.js", "../../../node_modules/lodash/_baseIsSet.js", "../../../node_modules/lodash/isSet.js", "../../../node_modules/lodash/_baseClone.js", "../../../node_modules/lodash/last.js", "../../../node_modules/lodash/_parent.js", "../../../node_modules/lodash/_baseUnset.js", "../../../node_modules/lodash/isPlainObject.js", "../../../node_modules/lodash/_customOmitClone.js", "../../../node_modules/lodash/flatten.js", "../../../node_modules/lodash/_flatRest.js", "../../../node_modules/lodash/omit.js", "../../../node_modules/lodash/transform.js", "../../../node_modules/dayjs/plugin/isBetween.js", "../../../node_modules/dayjs/plugin/isSameOrAfter.js", "../../../node_modules/dayjs/plugin/isSameOrBefore.js", "../../../node_modules/dayjs/plugin/localeData.js", "../../../node_modules/dayjs/plugin/localizedFormat.js", "../../../node_modules/dayjs/plugin/minMax.js", "../../../node_modules/dayjs/plugin/utc.js", "../../../node_modules/fast-deep-equal/index.js", "../../../node_modules/lodash/lodash.js", "https://raw.githubusercontent.com/fb55/entities/867ac709ba482a56a98b7c35f49ca833c74dc193/src/generated/decode-data-html.ts", "https://raw.githubusercontent.com/fb55/entities/867ac709ba482a56a98b7c35f49ca833c74dc193/src/generated/decode-data-xml.ts", "https://raw.githubusercontent.com/fb55/entities/867ac709ba482a56a98b7c35f49ca833c74dc193/src/decode_codepoint.ts", "https://raw.githubusercontent.com/fb55/entities/867ac709ba482a56a98b7c35f49ca833c74dc193/src/decode.ts", "https://raw.githubusercontent.com/fb55/htmlparser2/4763205746cd80120b5d2b69041197a394d24ba9/src/Tokenizer.ts", "https://raw.githubusercontent.com/fb55/htmlparser2/4763205746cd80120b5d2b69041197a394d24ba9/src/Parser.ts", "../../../node_modules/domelementtype/lib/index.js", "../../../node_modules/domhandler/lib/node.js", "../../../node_modules/domhandler/lib/index.js", "https://raw.githubusercontent.com/fb55/entities/867ac709ba482a56a98b7c35f49ca833c74dc193/src/generated/encode-html.ts", "https://raw.githubusercontent.com/fb55/entities/867ac709ba482a56a98b7c35f49ca833c74dc193/src/escape.ts", "https://raw.githubusercontent.com/fb55/entities/867ac709ba482a56a98b7c35f49ca833c74dc193/src/encode.ts", "https://raw.githubusercontent.com/fb55/entities/867ac709ba482a56a98b7c35f49ca833c74dc193/src/index.ts", "../../../node_modules/dom-serializer/lib/foreignNames.js", "../../../node_modules/dom-serializer/lib/index.js", "https://raw.githubusercontent.com/fb55/domutils/f7e357b5c210b6731c2a60e0b7b3cfaa1f96b706/src/stringify.ts", "https://raw.githubusercontent.com/fb55/domutils/f7e357b5c210b6731c2a60e0b7b3cfaa1f96b706/src/traversal.ts", "https://raw.githubusercontent.com/fb55/domutils/f7e357b5c210b6731c2a60e0b7b3cfaa1f96b706/src/manipulation.ts", "https://raw.githubusercontent.com/fb55/domutils/f7e357b5c210b6731c2a60e0b7b3cfaa1f96b706/src/querying.ts", "https://raw.githubusercontent.com/fb55/domutils/f7e357b5c210b6731c2a60e0b7b3cfaa1f96b706/src/legacy.ts", "https://raw.githubusercontent.com/fb55/domutils/f7e357b5c210b6731c2a60e0b7b3cfaa1f96b706/src/helpers.ts", "https://raw.githubusercontent.com/fb55/domutils/f7e357b5c210b6731c2a60e0b7b3cfaa1f96b706/src/feeds.ts", "https://raw.githubusercontent.com/fb55/domutils/f7e357b5c210b6731c2a60e0b7b3cfaa1f96b706/src/index.ts", "https://raw.githubusercontent.com/fb55/htmlparser2/4763205746cd80120b5d2b69041197a394d24ba9/src/index.ts", "../../../node_modules/escape-string-regexp/index.js", "../../../node_modules/is-plain-object/dist/is-plain-object.js", "../../../node_modules/deepmerge/dist/cjs.js", "../../../node_modules/parse-srcset/src/parse-srcset.js", "../../../node_modules/picocolors/picocolors.browser.js", "../../../node_modules/postcss/lib/css-syntax-error.js", "../../../node_modules/postcss/lib/symbols.js", "../../../node_modules/postcss/lib/stringifier.js", "../../../node_modules/postcss/lib/stringify.js", "../../../node_modules/postcss/lib/node.js", "../../../node_modules/postcss/lib/declaration.js", "../../../node_modules/nanoid/non-secure/index.cjs", "../../../node_modules/postcss/lib/previous-map.js", "../../../node_modules/postcss/lib/input.js", "../../../node_modules/postcss/lib/map-generator.js", "../../../node_modules/postcss/lib/comment.js", "../../../node_modules/postcss/lib/container.js", "../../../node_modules/postcss/lib/document.js", "../../../node_modules/postcss/lib/warn-once.js", "../../../node_modules/postcss/lib/warning.js", "../../../node_modules/postcss/lib/result.js", "../../../node_modules/postcss/lib/tokenize.js", "../../../node_modules/postcss/lib/at-rule.js", "../../../node_modules/postcss/lib/root.js", "../../../node_modules/postcss/lib/list.js", "../../../node_modules/postcss/lib/rule.js", "../../../node_modules/postcss/lib/parser.js", "../../../node_modules/postcss/lib/parse.js", "../../../node_modules/postcss/lib/lazy-result.js", "../../../node_modules/postcss/lib/no-work-result.js", "../../../node_modules/postcss/lib/processor.js", "../../../node_modules/postcss/lib/fromJSON.js", "../../../node_modules/postcss/lib/postcss.js", "../../../node_modules/sanitize-html/index.js", "../../../node_modules/@rails/actioncable/src/adapters.js", "../../../node_modules/@rails/actioncable/src/logger.js", "../../../node_modules/@rails/actioncable/src/connection_monitor.js", "../../../node_modules/@rails/actioncable/src/internal.js", "../../../node_modules/@rails/actioncable/src/connection.js", "../../../node_modules/@rails/actioncable/src/subscription.js", "../../../node_modules/@rails/actioncable/src/subscription_guarantor.js", "../../../node_modules/@rails/actioncable/src/subscriptions.js", "../../../node_modules/@rails/actioncable/src/consumer.js", "../../../node_modules/@rails/actioncable/src/index.js", "../../../node_modules/@stripe/stripe-js/dist/index.mjs", "../../../node_modules/@stripe/stripe-js/lib/index.mjs", "../../javascript/packs/application.tsx", "../../../node_modules/@fortawesome/fontawesome-svg-core/index.mjs", "../../../node_modules/@sentry/core/src/debug-build.ts", "../../../node_modules/@sentry/core/src/utils-hoist/version.ts", "../../../node_modules/@sentry/core/src/utils-hoist/worldwide.ts", "../../../node_modules/@sentry/core/src/utils-hoist/debug-build.ts", "../../../node_modules/@sentry/core/src/utils-hoist/logger.ts", "../../../node_modules/@sentry/core/src/utils-hoist/stacktrace.ts", "../../../node_modules/@sentry/core/src/utils-hoist/instrument/handlers.ts", "../../../node_modules/@sentry/core/src/utils-hoist/instrument/globalError.ts", "../../../node_modules/@sentry/core/src/utils-hoist/instrument/globalUnhandledRejection.ts", "../../../node_modules/@sentry/core/src/carrier.ts", "../../../node_modules/@sentry/core/src/utils-hoist/is.ts", "../../../node_modules/@sentry/core/src/utils-hoist/browser.ts", "../../../node_modules/@sentry/core/src/utils-hoist/string.ts", "../../../node_modules/@sentry/core/src/utils-hoist/object.ts", "../../../node_modules/@sentry/core/src/utils-hoist/time.ts", "../../../node_modules/@sentry/core/src/utils-hoist/misc.ts", "../../../node_modules/@sentry/core/src/utils-hoist/syncpromise.ts", "../../../node_modules/@sentry/core/src/session.ts", "../../../node_modules/@sentry/core/src/utils-hoist/propagationContext.ts", "../../../node_modules/@sentry/core/src/utils/merge.ts", "../../../node_modules/@sentry/core/src/utils/spanOnScope.ts", "../../../node_modules/@sentry/core/src/scope.ts", "../../../node_modules/@sentry/core/src/defaultScopes.ts", "../../../node_modules/@sentry/core/src/asyncContext/stackStrategy.ts", "../../../node_modules/@sentry/core/src/asyncContext/index.ts", "../../../node_modules/@sentry/core/src/currentScopes.ts", "../../../node_modules/@sentry/core/src/metrics/metric-summary.ts", "../../../node_modules/@sentry/core/src/semanticAttributes.ts", "../../../node_modules/@sentry/core/src/utils-hoist/baggage.ts", "../../../node_modules/@sentry/core/src/utils/spanUtils.ts", "../../../node_modules/@sentry/core/src/utils/hasTracingEnabled.ts", "../../../node_modules/@sentry/core/src/constants.ts", "../../../node_modules/@sentry/core/src/tracing/dynamicSamplingContext.ts", "../../../node_modules/@sentry/core/src/utils/parseSampleRate.ts", "../../../node_modules/@sentry/core/src/utils-hoist/dsn.ts", "../../../node_modules/@sentry/core/src/utils-hoist/memo.ts", "../../../node_modules/@sentry/core/src/utils-hoist/normalize.ts", "../../../node_modules/@sentry/core/src/utils-hoist/envelope.ts", "../../../node_modules/@sentry/core/src/envelope.ts", "../../../node_modules/@sentry/core/src/eventProcessors.ts", "../../../node_modules/@sentry/core/src/utils-hoist/debug-ids.ts", "../../../node_modules/@sentry/core/src/utils/applyScopeDataToEvent.ts", "../../../node_modules/@sentry/core/src/utils/prepareEvent.ts", "../../../node_modules/@sentry/core/src/exports.ts", "../../../node_modules/@sentry/core/src/api.ts", "../../../node_modules/@sentry/core/src/integration.ts", "../../../node_modules/@sentry/core/src/utils-hoist/clientreport.ts", "../../../node_modules/@sentry/core/src/utils-hoist/error.ts", "../../../node_modules/@sentry/core/src/baseclient.ts", "../../../node_modules/@sentry/core/src/sdk.ts", "../../../node_modules/@sentry/core/src/utils-hoist/promisebuffer.ts", "../../../node_modules/@sentry/core/src/utils-hoist/ratelimit.ts", "../../../node_modules/@sentry/core/src/transports/base.ts", "../../../node_modules/@sentry/core/src/utils/sdkMetadata.ts", "../../../node_modules/@sentry/core/src/breadcrumbs.ts", "../../../node_modules/@sentry/core/src/integrations/functiontostring.ts", "../../../node_modules/@sentry/core/src/integrations/inboundfilters.ts", "../../../node_modules/@sentry/core/src/utils-hoist/aggregate-errors.ts", "../../../node_modules/@sentry/core/src/utils-hoist/url.ts", "../../../node_modules/@sentry/core/src/utils-hoist/instrument/console.ts", "../../../node_modules/@sentry/core/src/utils-hoist/severity.ts", "../../../node_modules/@sentry/core/src/integrations/dedupe.ts", "../../../node_modules/@sentry/core/src/utils-hoist/breadcrumb-log-level.ts", "../../../node_modules/@sentry/core/src/utils-hoist/supports.ts", "../../../node_modules/@sentry/core/src/utils-hoist/instrument/fetch.ts", "../../../node_modules/@sentry/core/src/utils-hoist/env.ts", "../../../node_modules/@sentry/core/src/utils-hoist/vendor/supportsHistory.ts", "../../../node_modules/@sentry/browser/src/helpers.ts", "../../../node_modules/@sentry/browser/src/debug-build.ts", "../../../node_modules/@sentry/browser/src/eventbuilder.ts", "../../../node_modules/@sentry/browser/src/userfeedback.ts", "../../../node_modules/@sentry/browser/src/client.ts", "../../../node_modules/@sentry-internal/browser-utils/src/debug-build.ts", "../../../node_modules/@sentry-internal/browser-utils/src/types.ts", "../../../node_modules/@sentry-internal/browser-utils/src/instrument/dom.ts", "../../../node_modules/@sentry-internal/browser-utils/src/instrument/history.ts", "../../../node_modules/@sentry-internal/browser-utils/src/getNativeImplementation.ts", "../../../node_modules/@sentry-internal/browser-utils/src/instrument/xhr.ts", "../../../node_modules/@sentry/browser/src/transports/fetch.ts", "../../../node_modules/@sentry/browser/src/stack-parsers.ts", "../../../node_modules/@sentry/browser/src/integrations/breadcrumbs.ts", "../../../node_modules/@sentry/browser/src/integrations/browserapierrors.ts", "../../../node_modules/@sentry/browser/src/integrations/browsersession.ts", "../../../node_modules/@sentry/browser/src/integrations/globalhandlers.ts", "../../../node_modules/@sentry/browser/src/integrations/httpcontext.ts", "../../../node_modules/@sentry/browser/src/integrations/linkederrors.ts", "../../../node_modules/@sentry/browser/src/sdk.ts", "../../../node_modules/@sentry/react/src/sdk.ts", "../../../node_modules/@fortawesome/react-fontawesome/index.es.js", "../../../node_modules/@fortawesome/free-solid-svg-icons/index.mjs", "../../../node_modules/@fortawesome/free-regular-svg-icons/index.mjs", "../../../node_modules/@fortawesome/free-brands-svg-icons/index.mjs", "../../../node_modules/@skiller-whale/style/font_awesome_config.ts", "../../javascript/components/quicksight_dashboard.tsx", "../../javascript/components/stripe_form.tsx", "../../javascript/components/csrf_input.jsx", "../../javascript/components/stripe_form/tax_id_input.tsx", "../../../node_modules/@hotwired/stimulus/dist/stimulus.js", "../../javascript/controllers/application.ts", "../../../node_modules/@skiller-whale/style/controllers/reveal.ts", "../../../node_modules/@skiller-whale/style/controllers/overflow.ts", "../../javascript/controllers/url_fragment_controller.ts", "../../javascript/controllers/coach_messaging_modal_controller.tsx", "../../javascript/components/library/modal.tsx", "../../javascript/components/library/trainer_selector.tsx", "../../../node_modules/formik/node_modules/deepmerge/dist/es.js", "../../../node_modules/lodash-es/_freeGlobal.js", "../../../node_modules/lodash-es/_root.js", "../../../node_modules/lodash-es/_Symbol.js", "../../../node_modules/lodash-es/_getRawTag.js", "../../../node_modules/lodash-es/_objectToString.js", "../../../node_modules/lodash-es/_baseGetTag.js", "../../../node_modules/lodash-es/_overArg.js", "../../../node_modules/lodash-es/_getPrototype.js", "../../../node_modules/lodash-es/isObjectLike.js", "../../../node_modules/lodash-es/isPlainObject.js", "../../../node_modules/lodash-es/_listCacheClear.js", "../../../node_modules/lodash-es/eq.js", "../../../node_modules/lodash-es/_assocIndexOf.js", "../../../node_modules/lodash-es/_listCacheDelete.js", "../../../node_modules/lodash-es/_listCacheGet.js", "../../../node_modules/lodash-es/_listCacheHas.js", "../../../node_modules/lodash-es/_listCacheSet.js", "../../../node_modules/lodash-es/_ListCache.js", "../../../node_modules/lodash-es/_stackClear.js", "../../../node_modules/lodash-es/_stackDelete.js", "../../../node_modules/lodash-es/_stackGet.js", "../../../node_modules/lodash-es/_stackHas.js", "../../../node_modules/lodash-es/isObject.js", "../../../node_modules/lodash-es/isFunction.js", "../../../node_modules/lodash-es/_coreJsData.js", "../../../node_modules/lodash-es/_isMasked.js", "../../../node_modules/lodash-es/_toSource.js", "../../../node_modules/lodash-es/_baseIsNative.js", "../../../node_modules/lodash-es/_getValue.js", "../../../node_modules/lodash-es/_getNative.js", "../../../node_modules/lodash-es/_Map.js", "../../../node_modules/lodash-es/_nativeCreate.js", "../../../node_modules/lodash-es/_hashClear.js", "../../../node_modules/lodash-es/_hashDelete.js", "../../../node_modules/lodash-es/_hashGet.js", "../../../node_modules/lodash-es/_hashHas.js", "../../../node_modules/lodash-es/_hashSet.js", "../../../node_modules/lodash-es/_Hash.js", "../../../node_modules/lodash-es/_mapCacheClear.js", "../../../node_modules/lodash-es/_isKeyable.js", "../../../node_modules/lodash-es/_getMapData.js", "../../../node_modules/lodash-es/_mapCacheDelete.js", "../../../node_modules/lodash-es/_mapCacheGet.js", "../../../node_modules/lodash-es/_mapCacheHas.js", "../../../node_modules/lodash-es/_mapCacheSet.js", "../../../node_modules/lodash-es/_MapCache.js", "../../../node_modules/lodash-es/_stackSet.js", "../../../node_modules/lodash-es/_Stack.js", "../../../node_modules/lodash-es/_arrayEach.js", "../../../node_modules/lodash-es/_defineProperty.js", "../../../node_modules/lodash-es/_baseAssignValue.js", "../../../node_modules/lodash-es/_assignValue.js", "../../../node_modules/lodash-es/_copyObject.js", "../../../node_modules/lodash-es/_baseTimes.js", "../../../node_modules/lodash-es/_baseIsArguments.js", "../../../node_modules/lodash-es/isArguments.js", "../../../node_modules/lodash-es/isArray.js", "../../../node_modules/lodash-es/stubFalse.js", "../../../node_modules/lodash-es/isBuffer.js", "../../../node_modules/lodash-es/_isIndex.js", "../../../node_modules/lodash-es/isLength.js", "../../../node_modules/lodash-es/_baseIsTypedArray.js", "../../../node_modules/lodash-es/_baseUnary.js", "../../../node_modules/lodash-es/_nodeUtil.js", "../../../node_modules/lodash-es/isTypedArray.js", "../../../node_modules/lodash-es/_arrayLikeKeys.js", "../../../node_modules/lodash-es/_isPrototype.js", "../../../node_modules/lodash-es/_nativeKeys.js", "../../../node_modules/lodash-es/_baseKeys.js", "../../../node_modules/lodash-es/isArrayLike.js", "../../../node_modules/lodash-es/keys.js", "../../../node_modules/lodash-es/_baseAssign.js", "../../../node_modules/lodash-es/_nativeKeysIn.js", "../../../node_modules/lodash-es/_baseKeysIn.js", "../../../node_modules/lodash-es/keysIn.js", "../../../node_modules/lodash-es/_baseAssignIn.js", "../../../node_modules/lodash-es/_cloneBuffer.js", "../../../node_modules/lodash-es/_copyArray.js", "../../../node_modules/lodash-es/_arrayFilter.js", "../../../node_modules/lodash-es/stubArray.js", "../../../node_modules/lodash-es/_getSymbols.js", "../../../node_modules/lodash-es/_copySymbols.js", "../../../node_modules/lodash-es/_arrayPush.js", "../../../node_modules/lodash-es/_getSymbolsIn.js", "../../../node_modules/lodash-es/_copySymbolsIn.js", "../../../node_modules/lodash-es/_baseGetAllKeys.js", "../../../node_modules/lodash-es/_getAllKeys.js", "../../../node_modules/lodash-es/_getAllKeysIn.js", "../../../node_modules/lodash-es/_DataView.js", "../../../node_modules/lodash-es/_Promise.js", "../../../node_modules/lodash-es/_Set.js", "../../../node_modules/lodash-es/_WeakMap.js", "../../../node_modules/lodash-es/_getTag.js", "../../../node_modules/lodash-es/_initCloneArray.js", "../../../node_modules/lodash-es/_Uint8Array.js", "../../../node_modules/lodash-es/_cloneArrayBuffer.js", "../../../node_modules/lodash-es/_cloneDataView.js", "../../../node_modules/lodash-es/_cloneRegExp.js", "../../../node_modules/lodash-es/_cloneSymbol.js", "../../../node_modules/lodash-es/_cloneTypedArray.js", "../../../node_modules/lodash-es/_initCloneByTag.js", "../../../node_modules/lodash-es/_baseCreate.js", "../../../node_modules/lodash-es/_initCloneObject.js", "../../../node_modules/lodash-es/_baseIsMap.js", "../../../node_modules/lodash-es/isMap.js", "../../../node_modules/lodash-es/_baseIsSet.js", "../../../node_modules/lodash-es/isSet.js", "../../../node_modules/lodash-es/_baseClone.js", "../../../node_modules/lodash-es/cloneDeep.js", "../../../node_modules/tiny-warning/dist/tiny-warning.esm.js", "../../../node_modules/lodash-es/clone.js", "../../../node_modules/lodash-es/_arrayMap.js", "../../../node_modules/lodash-es/isSymbol.js", "../../../node_modules/lodash-es/memoize.js", "../../../node_modules/lodash-es/_memoizeCapped.js", "../../../node_modules/lodash-es/_stringToPath.js", "../../../node_modules/lodash-es/_toKey.js", "../../../node_modules/lodash-es/_baseToString.js", "../../../node_modules/lodash-es/toString.js", "../../../node_modules/lodash-es/toPath.js", "../../javascript/components/library/sw/sw_horizontal_field_with_label.tsx", "../../javascript/components/coach_messaging_modal/coach_messaging_modal.tsx", "../../../node_modules/@rails/ujs/app/assets/javascripts/rails-ujs.esm.js", "../../javascript/components/utils/json_request.ts", "../../javascript/components/library/errors.tsx", "../../javascript/components/library/errors_toast.tsx", "../../javascript/components/library/sw/sw_field_with_label.tsx", "../../javascript/components/library/sw/sw_form_group.tsx", "../../javascript/controllers/toggle_controller.ts", "../../javascript/controllers/tab_group_controller.ts", "../../javascript/controllers/curriculum_permissions.ts", "../../javascript/controllers/debounced_form_controller.ts", "../../javascript/controllers/replacement_coaches_controller.ts", "../../javascript/controllers/coach_availability_controller.tsx", "../../javascript/components/coach_availability_editor/coach_availability_viewer.tsx", "../../javascript/components/coach_availability_editor/types.ts", "../../javascript/components/coach_availability_editor/calendar_display.tsx", "../../../node_modules/@babel/runtime/helpers/esm/typeof.js", "../../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js", "../../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js", "../../../node_modules/@babel/runtime/helpers/esm/defineProperty.js", "../../../node_modules/@babel/runtime/helpers/esm/objectSpread2.js", "../../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js", "../../../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js", "../../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js", "../../../node_modules/@babel/runtime/helpers/esm/createClass.js", "../../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js", "../../../node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js", "../../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js", "../../../node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js", "../../../node_modules/@babel/runtime/helpers/esm/callSuper.js", "../../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js", "../../../node_modules/@babel/runtime/helpers/esm/inherits.js", "../../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js", "../../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js", "../../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js", "../../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js", "../../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js", "../../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js", "../../../node_modules/@skiller-whale/react-big-calendar/dist/react-big-calendar.esm.js", "../../../node_modules/@babel/runtime/helpers/esm/extends.js", "../../../node_modules/uncontrollable/lib/esm/hook.js", "../../../node_modules/uncontrollable/lib/esm/utils.js", "../../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js", "../../../node_modules/uncontrollable/lib/esm/uncontrollable.js", "../../../node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js", "../../../node_modules/date-arithmetic/index.js", "../../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js", "../../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js", "../../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js", "../../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js", "../../../node_modules/@restart/hooks/esm/useEventCallback.js", "../../../node_modules/@restart/hooks/esm/useCommittedRef.js", "../../../node_modules/@restart/hooks/esm/useCallbackRef.js", "../../../node_modules/react-overlays/esm/usePopper.js", "../../../node_modules/@restart/hooks/esm/useSafeState.js", "../../../node_modules/@restart/hooks/esm/useMounted.js", "../../../node_modules/@popperjs/core/lib/enums.js", "../../../node_modules/@popperjs/core/lib/utils/getBasePlacement.js", "../../../node_modules/@popperjs/core/lib/dom-utils/getWindow.js", "../../../node_modules/@popperjs/core/lib/dom-utils/instanceOf.js", "../../../node_modules/@popperjs/core/lib/utils/math.js", "../../../node_modules/@popperjs/core/lib/utils/userAgent.js", "../../../node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js", "../../../node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js", "../../../node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js", "../../../node_modules/@popperjs/core/lib/dom-utils/contains.js", "../../../node_modules/@popperjs/core/lib/dom-utils/getNodeName.js", "../../../node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js", "../../../node_modules/@popperjs/core/lib/dom-utils/isTableElement.js", "../../../node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js", "../../../node_modules/@popperjs/core/lib/dom-utils/getParentNode.js", "../../../node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js", "../../../node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js", "../../../node_modules/@popperjs/core/lib/utils/within.js", "../../../node_modules/@popperjs/core/lib/utils/getFreshSideObject.js", "../../../node_modules/@popperjs/core/lib/utils/mergePaddingObject.js", "../../../node_modules/@popperjs/core/lib/utils/expandToHashMap.js", "../../../node_modules/@popperjs/core/lib/modifiers/arrow.js", "../../../node_modules/@popperjs/core/lib/utils/getVariation.js", "../../../node_modules/@popperjs/core/lib/modifiers/computeStyles.js", "../../../node_modules/@popperjs/core/lib/modifiers/eventListeners.js", "../../../node_modules/@popperjs/core/lib/utils/getOppositePlacement.js", "../../../node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js", "../../../node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js", "../../../node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js", "../../../node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js", "../../../node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js", "../../../node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js", "../../../node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js", "../../../node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js", "../../../node_modules/@popperjs/core/lib/utils/rectToClientRect.js", "../../../node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js", "../../../node_modules/@popperjs/core/lib/utils/computeOffsets.js", "../../../node_modules/@popperjs/core/lib/utils/detectOverflow.js", "../../../node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js", "../../../node_modules/@popperjs/core/lib/modifiers/flip.js", "../../../node_modules/@popperjs/core/lib/modifiers/hide.js", "../../../node_modules/@popperjs/core/lib/modifiers/offset.js", "../../../node_modules/@popperjs/core/lib/modifiers/popperOffsets.js", "../../../node_modules/@popperjs/core/lib/utils/getAltAxis.js", "../../../node_modules/@popperjs/core/lib/modifiers/preventOverflow.js", "../../../node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js", "../../../node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js", "../../../node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js", "../../../node_modules/@popperjs/core/lib/utils/orderModifiers.js", "../../../node_modules/@popperjs/core/lib/utils/debounce.js", "../../../node_modules/@popperjs/core/lib/utils/mergeByName.js", "../../../node_modules/@popperjs/core/lib/createPopper.js", "../../../node_modules/react-overlays/esm/popper.js", "../../../node_modules/react-overlays/esm/useRootClose.js", "../../../node_modules/react-overlays/esm/ownerDocument.js", "../../../node_modules/react-overlays/esm/safeFindDOMNode.js", "../../../node_modules/react-overlays/esm/mergeOptionsWithPopperConfig.js", "../../../node_modules/react-overlays/esm/useWaitForDOMRef.js", "../../../node_modules/react-overlays/esm/Overlay.js", "../../../node_modules/@restart/hooks/esm/useMergedRefs.js", "../../../node_modules/memoize-one/dist/memoize-one.esm.js", "../../../node_modules/@babel/runtime/helpers/esm/toArray.js", "../../javascript/components/coach_availability_editor/utils.ts", "../../../node_modules/luxon/src/errors.js", "../../../node_modules/luxon/src/impl/formats.js", "../../../node_modules/luxon/src/zone.js", "../../../node_modules/luxon/src/zones/systemZone.js", "../../../node_modules/luxon/src/zones/IANAZone.js", "../../../node_modules/luxon/src/impl/locale.js", "../../../node_modules/luxon/src/zones/fixedOffsetZone.js", "../../../node_modules/luxon/src/zones/invalidZone.js", "../../../node_modules/luxon/src/impl/zoneUtil.js", "../../../node_modules/luxon/src/impl/digits.js", "../../../node_modules/luxon/src/settings.js", "../../../node_modules/luxon/src/impl/invalid.js", "../../../node_modules/luxon/src/impl/conversions.js", "../../../node_modules/luxon/src/impl/util.js", "../../../node_modules/luxon/src/impl/english.js", "../../../node_modules/luxon/src/impl/formatter.js", "../../../node_modules/luxon/src/impl/regexParser.js", "../../../node_modules/luxon/src/duration.js", "../../../node_modules/luxon/src/interval.js", "../../../node_modules/luxon/src/info.js", "../../../node_modules/luxon/src/impl/diff.js", "../../../node_modules/luxon/src/impl/tokenParser.js", "../../../node_modules/luxon/src/datetime.js", "../../javascript/components/coach_availability_editor/sidebar_content.tsx", "../../javascript/components/library/flash_message.tsx", "../../javascript/components/coach_availability_editor/event_display.tsx", "../../javascript/components/coach_availability_editor/toolbar.tsx", "../../javascript/components/coach_availability_editor/show_all_day_button.tsx", "../../javascript/components/library/sw/sw_checkbox.tsx", "../../javascript/controllers/dismissible_form_chip_controller.ts", "../../javascript/controllers/resettable_form_controller.ts", "../../javascript/controllers/assessment_definitions_controller.ts", "../../javascript/controllers/dismissible_element_controller.ts", "../../javascript/controllers/index.ts", "../../javascript/components/training_plan_editor/training_plan_editor.tsx", "../../javascript/components/training_plan_editor/session_editor/session_editor.tsx", "../../../node_modules/react-dnd/src/core/DndContext.ts", "../../../node_modules/redux/es/redux.js", "../../../node_modules/@react-dnd/invariant/src/index.ts", "../../../node_modules/dnd-core/src/utils/js_utils.ts", "../../../node_modules/dnd-core/src/actions/dragDrop/types.ts", "../../../node_modules/dnd-core/src/actions/dragDrop/local/setClientOffset.ts", "../../../node_modules/dnd-core/src/actions/dragDrop/beginDrag.ts", "../../../node_modules/dnd-core/src/actions/dragDrop/drop.ts", "../../../node_modules/dnd-core/src/actions/dragDrop/endDrag.ts", "../../../node_modules/dnd-core/src/utils/matchesType.ts", "../../../node_modules/dnd-core/src/actions/dragDrop/hover.ts", "../../../node_modules/dnd-core/src/actions/dragDrop/publishDragSource.ts", "../../../node_modules/dnd-core/src/actions/dragDrop/index.ts", "../../../node_modules/dnd-core/src/classes/DragDropManagerImpl.ts", "../../../node_modules/dnd-core/src/utils/coords.ts", "../../../node_modules/dnd-core/src/utils/dirtiness.ts", "../../../node_modules/dnd-core/src/classes/DragDropMonitorImpl.ts", "../../../node_modules/@react-dnd/asap/src/makeRequestCall.ts", "../../../node_modules/@react-dnd/asap/src/AsapQueue.ts", "../../../node_modules/@react-dnd/asap/src/RawTask.ts", "../../../node_modules/@react-dnd/asap/src/TaskFactory.ts", "../../../node_modules/@react-dnd/asap/src/asap.ts", "../../../node_modules/dnd-core/src/actions/registry.ts", "../../../node_modules/dnd-core/src/contracts.ts", "../../../node_modules/dnd-core/src/interfaces.ts", "../../../node_modules/dnd-core/src/utils/getNextUniqueId.ts", "../../../node_modules/dnd-core/src/classes/HandlerRegistryImpl.ts", "../../../node_modules/dnd-core/src/utils/equality.ts", "../../../node_modules/dnd-core/src/reducers/dirtyHandlerIds.ts", "../../../node_modules/dnd-core/src/reducers/dragOffset.ts", "../../../node_modules/dnd-core/src/reducers/dragOperation.ts", "../../../node_modules/dnd-core/src/reducers/refCount.ts", "../../../node_modules/dnd-core/src/reducers/stateId.ts", "../../../node_modules/dnd-core/src/reducers/index.ts", "../../../node_modules/dnd-core/src/createDragDropManager.ts", "../../../node_modules/react-dnd/src/hooks/useCollector.ts", "../../../node_modules/react-dnd/src/hooks/useIsomorphicLayoutEffect.ts", "../../../node_modules/react-dnd/src/hooks/useMonitorOutput.ts", "../../../node_modules/react-dnd/src/hooks/useCollectedProps.ts", "../../../node_modules/react-dnd/src/hooks/useOptionalFactory.ts", "../../../node_modules/react-dnd/src/hooks/useDrag/connectors.ts", "../../../node_modules/react-dnd/src/hooks/useDrag/useDragSourceConnector.ts", "../../../node_modules/react-dnd/src/internals/DragSourceMonitorImpl.ts", "../../../node_modules/react-dnd/src/internals/DropTargetMonitorImpl.ts", "../../../node_modules/react-dnd/src/internals/registration.ts", "../../../node_modules/@react-dnd/shallowequal/src/index.ts", "../../../node_modules/react-dnd/src/internals/isRef.ts", "../../../node_modules/react-dnd/src/internals/wrapConnectorHooks.ts", "../../../node_modules/react-dnd/src/internals/SourceConnector.ts", "../../../node_modules/react-dnd/src/internals/TargetConnector.ts", "../../../node_modules/react-dnd/src/hooks/useDragDropManager.ts", "../../../node_modules/react-dnd/src/hooks/useDrag/useDragSourceMonitor.ts", "../../../node_modules/react-dnd/src/hooks/useDrag/useDragSource.ts", "../../../node_modules/react-dnd/src/hooks/useDrag/DragSourceImpl.ts", "../../../node_modules/react-dnd/src/hooks/useDrag/useDragType.ts", "../../../node_modules/react-dnd/src/hooks/useDrag/useRegisteredDragSource.ts", "../../../node_modules/react-dnd/src/hooks/useDrag/useDrag.ts", "../../../node_modules/react-dnd/src/hooks/useDrop/connectors.ts", "../../../node_modules/react-dnd/src/hooks/useDrop/useDropTargetConnector.ts", "../../../node_modules/react-dnd/src/hooks/useDrop/useDropTargetMonitor.ts", "../../../node_modules/react-dnd/src/hooks/useDrop/useAccept.ts", "../../../node_modules/react-dnd/src/hooks/useDrop/useDropTarget.ts", "../../../node_modules/react-dnd/src/hooks/useDrop/DropTargetImpl.ts", "../../../node_modules/react-dnd/src/hooks/useDrop/useRegisteredDropTarget.ts", "../../../node_modules/react-dnd/src/hooks/useDrop/useDrop.ts", "../../../node_modules/react-dnd-html5-backend/src/utils/js_utils.ts", "../../../node_modules/react-dnd-html5-backend/src/EnterLeaveCounter.ts", "../../../node_modules/react-dnd-html5-backend/src/NativeDragSources/NativeDragSource.ts", "../../../node_modules/react-dnd-html5-backend/src/NativeTypes.ts", "../../../node_modules/react-dnd-html5-backend/src/NativeDragSources/getDataFromDataTransfer.ts", "../../../node_modules/react-dnd-html5-backend/src/NativeDragSources/nativeTypesConfig.ts", "../../../node_modules/react-dnd-html5-backend/src/NativeDragSources/index.ts", "../../../node_modules/react-dnd-html5-backend/src/BrowserDetector.ts", "../../../node_modules/react-dnd-html5-backend/src/MonotonicInterpolant.ts", "../../../node_modules/react-dnd-html5-backend/src/OffsetUtils.ts", "../../../node_modules/react-dnd-html5-backend/src/OptionsReader.ts", "../../../node_modules/react-dnd-html5-backend/src/HTML5BackendImpl.ts", "../../../node_modules/react-dnd-html5-backend/src/index.ts", "../../javascript/components/training_plan_editor/session_editor/edit_plan_module_modal.tsx", "../../javascript/components/training_plan_editor/types.ts", "../../../node_modules/date-fns/toDate.mjs", "../../../node_modules/date-fns/constructFrom.mjs", "../../../node_modules/date-fns/addDays.mjs", "../../../node_modules/date-fns/addMilliseconds.mjs", "../../../node_modules/date-fns/constants.mjs", "../../../node_modules/date-fns/_lib/defaultOptions.mjs", "../../../node_modules/date-fns/startOfWeek.mjs", "../../../node_modules/date-fns/startOfISOWeek.mjs", "../../../node_modules/date-fns/getISOWeekYear.mjs", "../../../node_modules/date-fns/startOfDay.mjs", "../../../node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.mjs", "../../../node_modules/date-fns/differenceInCalendarDays.mjs", "../../../node_modules/date-fns/startOfISOWeekYear.mjs", "../../../node_modules/date-fns/addMinutes.mjs", "../../../node_modules/date-fns/isDate.mjs", "../../../node_modules/date-fns/isValid.mjs", "../../../node_modules/date-fns/startOfYear.mjs", "../../../node_modules/date-fns/locale/en-US/_lib/formatDistance.mjs", "../../../node_modules/date-fns/locale/_lib/buildFormatLongFn.mjs", "../../../node_modules/date-fns/locale/en-US/_lib/formatLong.mjs", "../../../node_modules/date-fns/locale/en-US/_lib/formatRelative.mjs", "../../../node_modules/date-fns/locale/_lib/buildLocalizeFn.mjs", "../../../node_modules/date-fns/locale/en-US/_lib/localize.mjs", "../../../node_modules/date-fns/locale/_lib/buildMatchFn.mjs", "../../../node_modules/date-fns/locale/_lib/buildMatchPatternFn.mjs", "../../../node_modules/date-fns/locale/en-US/_lib/match.mjs", "../../../node_modules/date-fns/locale/en-US.mjs", "../../../node_modules/date-fns/getDayOfYear.mjs", "../../../node_modules/date-fns/getISOWeek.mjs", "../../../node_modules/date-fns/getWeekYear.mjs", "../../../node_modules/date-fns/startOfWeekYear.mjs", "../../../node_modules/date-fns/getWeek.mjs", "../../../node_modules/date-fns/_lib/addLeadingZeros.mjs", "../../../node_modules/date-fns/_lib/format/lightFormatters.mjs", "../../../node_modules/date-fns/_lib/format/formatters.mjs", "../../../node_modules/date-fns/_lib/format/longFormatters.mjs", "../../../node_modules/date-fns/_lib/protectedTokens.mjs", "../../../node_modules/date-fns/format.mjs", "../../../node_modules/date-fns/formatISO.mjs", "../../../node_modules/date-fns/getDay.mjs", "../../../node_modules/date-fns/getDefaultOptions.mjs", "../../../node_modules/date-fns/getISODay.mjs", "../../../node_modules/date-fns/isAfter.mjs", "../../../node_modules/date-fns/transpose.mjs", "../../../node_modules/date-fns/parse/_lib/Setter.mjs", "../../../node_modules/date-fns/parse/_lib/Parser.mjs", "../../../node_modules/date-fns/parse/_lib/parsers/EraParser.mjs", "../../../node_modules/date-fns/parse/_lib/constants.mjs", "../../../node_modules/date-fns/parse/_lib/utils.mjs", "../../../node_modules/date-fns/parse/_lib/parsers/YearParser.mjs", "../../../node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.mjs", "../../../node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.mjs", "../../../node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.mjs", "../../../node_modules/date-fns/parse/_lib/parsers/QuarterParser.mjs", "../../../node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.mjs", "../../../node_modules/date-fns/parse/_lib/parsers/MonthParser.mjs", "../../../node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.mjs", "../../../node_modules/date-fns/setWeek.mjs", "../../../node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.mjs", "../../../node_modules/date-fns/setISOWeek.mjs", "../../../node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.mjs", "../../../node_modules/date-fns/parse/_lib/parsers/DateParser.mjs", "../../../node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.mjs", "../../../node_modules/date-fns/setDay.mjs", "../../../node_modules/date-fns/parse/_lib/parsers/DayParser.mjs", "../../../node_modules/date-fns/parse/_lib/parsers/LocalDayParser.mjs", "../../../node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.mjs", "../../../node_modules/date-fns/setISODay.mjs", "../../../node_modules/date-fns/parse/_lib/parsers/ISODayParser.mjs", "../../../node_modules/date-fns/parse/_lib/parsers/AMPMParser.mjs", "../../../node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.mjs", "../../../node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.mjs", "../../../node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.mjs", "../../../node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.mjs", "../../../node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.mjs", "../../../node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.mjs", "../../../node_modules/date-fns/parse/_lib/parsers/MinuteParser.mjs", "../../../node_modules/date-fns/parse/_lib/parsers/SecondParser.mjs", "../../../node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.mjs", "../../../node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.mjs", "../../../node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.mjs", "../../../node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.mjs", "../../../node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.mjs", "../../../node_modules/date-fns/parse/_lib/parsers.mjs", "../../../node_modules/date-fns/parse.mjs", "../../../node_modules/date-fns/nextDay.mjs", "../../../node_modules/date-fns/nextMonday.mjs", "../../../node_modules/date-fns-tz/dist/esm/_lib/tzIntlTimeZoneName/index.js", "../../../node_modules/date-fns-tz/dist/esm/_lib/tzTokenizeDate/index.js", "../../../node_modules/date-fns-tz/dist/esm/_lib/newDateUTC/index.js", "../../../node_modules/date-fns-tz/dist/esm/_lib/tzParseTimezone/index.js", "../../../node_modules/date-fns-tz/dist/esm/format/formatters/index.js", "../../../node_modules/date-fns-tz/dist/esm/_lib/getTimezoneOffsetInMilliseconds/index.js", "../../../node_modules/date-fns-tz/dist/esm/_lib/tzPattern/index.js", "../../../node_modules/date-fns-tz/dist/esm/toDate/index.js", "../../../node_modules/date-fns-tz/dist/esm/format/index.js", "../../../node_modules/date-fns-tz/dist/esm/toZonedTime/index.js", "../../../node_modules/date-fns-tz/dist/esm/formatInTimeZone/index.js", "../../../node_modules/date-fns-tz/dist/esm/fromZonedTime/index.js", "../../javascript/components/utils/date_helpers.ts", "../../javascript/components/utils/asserts.ts", "../../javascript/components/training_plan_editor/utils.ts", "../../javascript/components/training_plan_editor/components/module_picker.tsx", "../../javascript/components/training_plan_editor/session_editor/header_cell.tsx", "../../../node_modules/@szhsin/react-menu/dist/es/utils/utils.js", "../../../node_modules/@szhsin/react-menu/dist/es/hooks/useBEM.js", "../../../node_modules/@szhsin/react-menu/dist/es/utils/constants.js", "../../../node_modules/@szhsin/react-menu/dist/es/components/ControlledMenu.js", "../../../node_modules/@szhsin/react-menu/dist/es/components/MenuList.js", "../../../node_modules/@szhsin/react-menu/dist/es/components/MenuContainer.js", "../../../node_modules/@szhsin/react-menu/dist/es/utils/submenuCtx.js", "../../../node_modules/@szhsin/react-menu/dist/es/hooks/useItems.js", "../../../node_modules/@szhsin/react-menu/dist/es/positionUtils/getNormalizedClientRect.js", "../../../node_modules/@szhsin/react-menu/dist/es/positionUtils/getPositionHelpers.js", "../../../node_modules/@szhsin/react-menu/dist/es/positionUtils/placeArrowVertical.js", "../../../node_modules/@szhsin/react-menu/dist/es/positionUtils/placeLeftorRight.js", "../../../node_modules/@szhsin/react-menu/dist/es/positionUtils/placeArrowHorizontal.js", "../../../node_modules/@szhsin/react-menu/dist/es/positionUtils/placeToporBottom.js", "../../../node_modules/@szhsin/react-menu/dist/es/positionUtils/positionMenu.js", "../../../node_modules/@szhsin/react-menu/dist/es/hooks/useIsomorphicLayoutEffect.js", "../../../node_modules/@szhsin/react-menu/dist/es/hooks/useCombinedRef.js", "../../../node_modules/@szhsin/react-menu/dist/es/hooks/useMenuState.js", "../../../node_modules/react-transition-state/dist/esm/hooks/useTransitionState.mjs", "../../../node_modules/react-transition-state/dist/esm/hooks/utils.mjs", "../../../node_modules/@szhsin/react-menu/dist/es/utils/withHovering.js", "../../../node_modules/@szhsin/react-menu/dist/es/hooks/useItemEffect.js", "../../../node_modules/@szhsin/react-menu/dist/es/components/MenuItem.js", "../../../node_modules/@szhsin/react-menu/dist/es/hooks/useItemState.js", "../../javascript/components/training_plan_editor/components/use_reorder_hover_drop.tsx", "../../javascript/components/training_plan_editor/session_editor/table_menu.tsx", "../../javascript/components/training_plan_editor/session_editor/move_users_link.tsx", "../../javascript/components/utils/api/paths.ts", "../../javascript/components/training_plan_editor/session_editor/training_plan_header.tsx", "../../javascript/components/training_plan_editor/session_editor/training_plan_footer.tsx", "../../javascript/components/training_plan_editor/session_editor/planned_session_row.tsx", "../../javascript/components/training_plan_editor/session_editor/session_status.ts", "../../javascript/components/training_plan_editor/states.ts", "../../javascript/components/training_plan_editor/session_editor/session_editor_helpers.ts", "../../javascript/components/training_plan_editor/session_editor/planned_session_visibility_controls.tsx", "../../javascript/components/library/change_request_icon.tsx", "../../javascript/components/training_plan_editor/session_editor/session_status_info.tsx", "../../javascript/components/training_plan_editor/session_editor/cell_edit_link.tsx", "../../javascript/components/library/change_request_response_icon.tsx", "../../javascript/components/library/labelled_text.tsx", "../../javascript/components/library/change_request_review_icon.tsx", "../../javascript/components/training_plan_editor/session_editor/change_request_conflict_modal.tsx", "../../javascript/components/training_plan_editor/session_editor/view_in_other_plan.tsx", "../../javascript/components/training_plan_editor/session_editor/scheduler_panel/use_scheduler.tsx", "../../javascript/components/utils/object_helpers.ts", "../../javascript/components/learner_module_access_editor/learner_module_access_modal.tsx", "../../javascript/components/training_plan_editor/session_editor/do_not_schedule_modal.tsx", "../../javascript/components/training_plan_editor/session_editor/do_not_schedule_status_button.tsx", "../../javascript/components/training_plan_editor/session_editor/scheduler_panel/scheduler_panel.tsx", "../../javascript/components/utils/routing_helpers.ts", "../../javascript/components/training_plan_editor/session_editor/scheduler_panel/scheduler_panel_helpers.ts", "../../javascript/components/training_plan_editor/session_editor/scheduler_panel/trainer_picker.tsx", "../../javascript/components/training_plan_editor/session_editor/scheduler_panel/unavailability_icons.tsx", "../../javascript/components/training_plan_editor/session_editor/scheduler_panel/module_list.tsx", "../../javascript/components/training_plan_editor/session_editor/scheduler_panel/learner_list.tsx", "../../javascript/components/training_plan_editor/session_editor/scheduler_panel/time_period_selector.tsx", "../../javascript/components/library/confirmation_modal.tsx", "../../javascript/components/training_session_form/utils.ts", "../../javascript/components/training_plan_editor/session_editor/scheduler_panel/find_a_coach_button.tsx", "../../javascript/components/training_plan_editor/session_editor/hidden_sessions_warning.tsx", "../../javascript/components/training_plan_editor/session_editor/plan_cost.ts", "../../javascript/components/training_plan_editor/session_editor/plan_cost_display.tsx", "../../javascript/components/training_plan_editor/session_editor/per_learner_cost_display.tsx", "../../javascript/components/training_plan_editor/components/add_user.tsx", "../../javascript/components/user_picker.tsx", "../../javascript/components/training_plan_editor/components/plan_module_picker.tsx", "../../javascript/components/training_plan_editor/session_editor/add_plan_module.tsx", "../../javascript/components/library/toggle.tsx", "../../javascript/components/training_plan_editor/components/use_presence.tsx", "../../javascript/components/utils/current_user_data.tsx", "../../javascript/components/training_plan_editor/components/use_coaching_plan_channel.tsx", "../../javascript/components/utils/cable.tsx", "../../javascript/components/training_plan_editor/components/coaching_plan_presence.tsx", "../../javascript/components/training_plan_editor/session_editor/update_cell_with_change_request_modal.tsx", "../../javascript/components/training_plan_editor/components/use_plan_version.tsx", "../../javascript/components/training_plan_editor/components/coaching_plan_version_warning.tsx", "../../javascript/components/training_plan_editor/session_editor/session_status_info_modal.tsx", "../../javascript/components/training_plan_editor/session_editor/credits_consumed_per_learner.tsx", "../../javascript/components/training_plan_editor/components/plan_metadata_editor.tsx", "../../javascript/components/pauses/pauses.tsx", "../../javascript/components/library/empty.tsx", "../../javascript/components/pauses/pause.tsx", "../../javascript/components/pauses/training_plan_picker.tsx", "../../javascript/components/pauses/pause_form_modal.tsx", "../../javascript/components/pauses/delete_pause_modal.tsx", "../../javascript/components/library/pagination.tsx", "../../javascript/components/pauses/overlapping_coach_sessions_modal.tsx", "../../javascript/components/library/loading_button.tsx", "../../javascript/components/pauses/decline_overlapping_coach_sessions_modal.tsx", "../../javascript/components/training_plan_editor/training_plan_trainers/training_plan_trainers.tsx", "../../javascript/components/training_plan_editor/training_plan_trainers/trainer_modal.tsx", "../../javascript/components/training_plan_editor/training_plan_trainers/timeslot_chip.tsx", "../../javascript/components/training_plan_editor/training_plan_trainers/trainer.tsx", "../../javascript/components/library/editor.tsx", "../../javascript/components/library/updated_at.tsx", "../../javascript/components/training_plan_editor/components/scheduling_notes.tsx", "../../javascript/components/training_plan_editor/components/timeslots.tsx", "../../javascript/components/training_plan_editor/components/timeslots_modal.tsx", "../../javascript/components/utils/string_helpers.ts", "../../javascript/components/training_plan_editor/components/coaching_plan_attribute_editor.tsx", "../../javascript/components/training_plan_editor/components/scheduler_editor.tsx", "../../javascript/components/training_plan_editor/components/scheduler.tsx", "../../javascript/components/training_plan_editor/components/plan_frequency_editor.tsx", "../../javascript/components/training_plan_editor/components/plan_frequency.tsx", "../../javascript/components/training_plan_editor/components/auto_start_hosted_environments_editor.tsx", "../../javascript/components/training_plan_editor/components/auto_start_hosted_environments.tsx", "../../javascript/components/training_plan_editor/components/invite_optional.tsx", "../../javascript/components/training_plan_editor/components/scheduling.tsx", "../../javascript/components/comments/comments.tsx", "../../javascript/components/comments/comment.tsx", "../../javascript/components/comments/composer.tsx", "../../javascript/components/comments/use_comment.tsx", "../../javascript/components/utils/simple_format.ts", "../../javascript/components/training_plan_description.tsx", "../../javascript/components/training_plan_editor/components/plan_context.tsx", "../../javascript/components/training_plan_editor/components/scheduled_until.tsx", "../../javascript/components/library/sw/sw_radio.tsx", "../../javascript/components/training_plan_editor/components/scheduled_until_modal.tsx", "../../javascript/components/recording_share_panel/recording_share_panel.tsx", "../../javascript/components/recording_share_panel/editable_datetime.tsx", "../../javascript/components/recording_share_panel/warning.tsx", "../../javascript/components/utils/feature_flags/feature_flags_provider.tsx", "../../javascript/components/one_off_payment_form.tsx", "../../javascript/components/utils/number_helpers.ts", "../../javascript/components/library/internal_credit_value_warning.tsx", "../../javascript/components/trainer_invoice/trainer_invoice.tsx", "../../javascript/components/trainer_invoice/formatters.ts", "../../javascript/components/trainer_invoice/line_item.tsx", "../../javascript/components/trainer_invoice/new_line_item_modal.tsx", "../../javascript/components/trainer_invoice/confirm_edits_to_frozen.tsx", "../../javascript/components/trainer_invoice/edit_line_item_modal.tsx", "../../javascript/components/trainer_invoice/delete_line_item_modal.tsx", "../../javascript/components/trainer_invoice/invoice_status_modal.tsx", "../../javascript/components/trainer_invoice/trainer_invoice_status.tsx", "../../javascript/components/training_session_edit_form.tsx", "../../javascript/components/training_session_form/session_details.tsx", "../../javascript/components/training_session_duration.tsx", "../../javascript/components/training_session_form/module_selector.tsx", "../../javascript/components/training_session_form/module_warnings.tsx", "../../javascript/components/training_session_form/trainer_invoice_warning.tsx", "../../javascript/components/training_session_form/session_type_warning.tsx", "../../javascript/components/training_session_form/confirmation_warnings_modal.tsx", "../../javascript/components/training_session_form/calendar_invitation_status_display.tsx", "../../javascript/components/training_session_form/coach_info.tsx", "../../javascript/components/training_session_form/session_type_field.tsx", "../../javascript/components/training_session_form/status_display.tsx", "../../javascript/components/training_session_form/coach_new_content_warning.tsx", "../../../node_modules/@skiller-whale/style/components/react_portal.tsx", "../../javascript/components/training_session_form/find_coach_button.tsx", "../../javascript/components/training_session_form/line_items.tsx", "../../javascript/components/training_session_form/line_item.tsx", "../../javascript/components/library/form.tsx", "../../javascript/components/training_session_form/edit_credits_form.tsx", "../../javascript/components/training_session_form/auto_calculate_modal.tsx", "../../javascript/components/training_session_form/confirm_credits_modal.tsx", "../../javascript/components/training_session_form/add_user_button.tsx", "../../javascript/components/training_session_form/attendances.tsx", "../../javascript/components/library/copy_button.tsx", "../../../node_modules/react-transition-group/esm/Transition.js", "../../../node_modules/react-transition-group/esm/config.js", "../../../node_modules/react-transition-group/esm/TransitionGroupContext.js", "../../../node_modules/react-transition-group/esm/utils/reflow.js", "../../javascript/components/training_session_form/attendances_email_menu.tsx", "../../javascript/components/training_session_form/line_item_audit_trail.tsx", "../../javascript/components/training_session_form/title.tsx", "../../javascript/components/training_session_form/cancel_session_modal.tsx", "../../javascript/components/library/confirmation_with_reason_modal.tsx", "../../javascript/components/training_session_form/uncancel_session_modal.tsx", "../../javascript/components/training_session_form/plan_memberships.tsx", "../../javascript/components/training_session_form/user_picker_list.tsx", "../../javascript/components/training_session_new_form.tsx", "../../javascript/components/company_context/company_description.tsx", "../../javascript/components/company_context/pause.tsx", "../../javascript/components/company_context/company_pauses.tsx", "../../javascript/components/company_context/pause_form_modal.tsx", "../../javascript/components/company_context/company_context.tsx", "../../javascript/components/add_to_plan/add_to_plan.tsx", "../../javascript/components/plan_picker/plan_picker.tsx", "../../javascript/components/add_to_plan/multi_user_selector.tsx", "../../javascript/components/learner_module_access_editor/learner_module_access_editor.tsx", "../../javascript/components/learner_module_access_editor/delete_learner_module_access_modal.tsx", "../../javascript/components/learner_module_access_editor/learner_module_access.tsx", "../../javascript/components/training_plan_editor/components/modules_datalist.tsx", "../../javascript/components/user_planned_sessions_viewer/plan_confirmation_status.tsx", "../../javascript/components/user_planned_sessions_viewer/plan_confirmation.tsx", "../../javascript/components/user_planned_sessions_viewer/session_status.tsx", "../../javascript/components/user_planned_sessions_viewer/helpers.ts", "../../javascript/components/library/curriculum_icon.tsx", "../../javascript/components/user_planned_sessions_viewer/curriculum_header.tsx", "../../javascript/components/user_planned_sessions_viewer/session_row.tsx", "../../javascript/components/user_planned_sessions_viewer/session_status_chip.tsx", "../../javascript/components/user_planned_sessions_viewer/change_request_dropdown.tsx", "../../javascript/components/user_planned_sessions_viewer/response_icon.tsx", "../../javascript/components/user_planned_sessions_viewer/change_request_dropdown_item.tsx", "../../javascript/components/utils/error_helpers.ts", "../../javascript/components/user_planned_sessions_viewer/session_details.tsx", "../../javascript/components/user_planned_sessions_viewer/curriculum.tsx", "../../javascript/components/user_planned_sessions_viewer/types.ts", "../../javascript/components/user_planned_sessions_viewer/status_filter_button.tsx", "../../javascript/components/user_planned_sessions_viewer/sessions_empty.tsx", "../../javascript/components/user_planned_sessions_viewer/technology_dropdown.tsx", "../../javascript/components/user_planned_sessions_viewer/use_url_param.ts", "../../javascript/components/utils/url_helpers.ts", "../../javascript/components/user_planned_sessions_viewer/user_planned_sessions_viewer.tsx", "../../javascript/components/move_to_plan/move_to_plan.tsx", "../../javascript/components/user_planned_sessions_viewer/curricula_viewer/curricula_session_row.tsx", "../../javascript/components/library/warning_hint.tsx", "../../javascript/components/user_planned_sessions_viewer/curricula_viewer/curricula_curriculum.tsx", "../../javascript/components/user_planned_sessions_viewer/curricula_viewer/curricula_viewer.tsx", "../../javascript/components/taught_modules/taught_modules.tsx", "../../javascript/components/training_session_summaries/training_session_summaries.tsx", "../../javascript/components/training_session_summaries/pagination.tsx", "../../javascript/components/training_session_summaries/utils.tsx", "../../javascript/components/curricula_status_viewer/curricula_status_viewer.tsx", "../../javascript/components/library/list_picker.tsx", "../../javascript/components/curricula_status_viewer/chip_list.tsx", "../../javascript/components/change_requests/change_requests_review.tsx", "../../javascript/components/change_requests/change_requests_empty.tsx", "../../javascript/components/change_requests/change_requests_layout.tsx", "../../javascript/components/change_requests/change_requests_grid.tsx", "../../javascript/components/change_requests/module_cell_content.tsx", "../../javascript/components/change_requests/result_links_cell_content.tsx", "../../javascript/components/change_requests/module_details_modal.tsx", "../../javascript/components/change_requests/review_buttons_cell_content.tsx", "../../javascript/components/change_requests/error_icon.tsx", "../../javascript/components/change_requests/answer_links_cell_content.tsx", "../../javascript/components/change_requests/answers_iframe_modal.tsx", "../../javascript/components/change_requests/review_section_header.tsx", "../../javascript/components/change_requests/utils.ts", "../../../node_modules/@hotwired/turbo/dist/turbo.es2017-esm.js", "../../../node_modules/@hotwired/turbo-rails/app/javascript/turbo/cable.js", "../../../node_modules/@hotwired/turbo-rails/app/javascript/turbo/snakeize.js", "../../../node_modules/@hotwired/turbo-rails/app/javascript/turbo/cable_stream_source_element.js", "../../../node_modules/@hotwired/turbo-rails/app/javascript/turbo/fetch_requests.js", "../../../node_modules/@hotwired/turbo-rails/app/javascript/turbo/index.js", "../../javascript/components/training_plan_editor/multi_plan_viewer/multi_plan_viewer.tsx", "../../javascript/components/training_plan_editor/multi_plan_viewer/multi_plan_header.tsx", "../../javascript/components/training_plan_editor/multi_plan_viewer/sessions_table.tsx", "../../javascript/components/training_plan_editor/multi_plan_viewer/scheduling_info.tsx", "../../../node_modules/@rails/actioncable/app/assets/javascripts/actioncable.esm.js", "../../javascript/components/training_session_summaries/coach_training_session_summaries.tsx", "../../javascript/components/coach_profile/coach_profile_text_content.tsx", "../../javascript/components/coach_profile/coach_profile.tsx", "../../javascript/components/coach_availability_editor/coach_availability_editor.tsx", "../../javascript/components/filtered_user_picker/filtered_user_picker.tsx"], "sourcesContent": ["/**\n * @license React\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'use strict';var l=Symbol.for(\"react.element\"),n=Symbol.for(\"react.portal\"),p=Symbol.for(\"react.fragment\"),q=Symbol.for(\"react.strict_mode\"),r=Symbol.for(\"react.profiler\"),t=Symbol.for(\"react.provider\"),u=Symbol.for(\"react.context\"),v=Symbol.for(\"react.forward_ref\"),w=Symbol.for(\"react.suspense\"),x=Symbol.for(\"react.memo\"),y=Symbol.for(\"react.lazy\"),z=Symbol.iterator;function A(a){if(null===a||\"object\"!==typeof a)return null;a=z&&a[z]||a[\"@@iterator\"];return\"function\"===typeof a?a:null}\nvar B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}E.prototype.isReactComponent={};\nE.prototype.setState=function(a,b){if(\"object\"!==typeof a&&\"function\"!==typeof a&&null!=a)throw Error(\"setState(...): takes an object of state variables to update or a function which returns an object of state variables.\");this.updater.enqueueSetState(this,a,b,\"setState\")};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,\"forceUpdate\")};function F(){}F.prototype=E.prototype;function G(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}var H=G.prototype=new F;\nH.constructor=G;C(H,E.prototype);H.isPureReactComponent=!0;var I=Array.isArray,J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};\nfunction M(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=\"\"+b.key),b)J.call(b,d)&&!L.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1>>1,e=a[d];if(0>>1;dg(C,c))ng(x,C)?(a[d]=x,a[n]=c,d=n):(a[d]=C,a[m]=c,d=m);else if(ng(x,c))a[d]=x,a[n]=c,d=n;else break a}}return b}\nfunction g(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}if(\"object\"===typeof performance&&\"function\"===typeof performance.now){var l=performance;exports.unstable_now=function(){return l.now()}}else{var p=Date,q=p.now();exports.unstable_now=function(){return p.now()-q}}var r=[],t=[],u=1,v=null,y=3,z=!1,A=!1,B=!1,D=\"function\"===typeof setTimeout?setTimeout:null,E=\"function\"===typeof clearTimeout?clearTimeout:null,F=\"undefined\"!==typeof setImmediate?setImmediate:null;\n\"undefined\"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function G(a){for(var b=h(t);null!==b;){if(null===b.callback)k(t);else if(b.startTime<=a)k(t),b.sortIndex=b.expirationTime,f(r,b);else break;b=h(t)}}function H(a){B=!1;G(a);if(!A)if(null!==h(r))A=!0,I(J);else{var b=h(t);null!==b&&K(H,b.startTime-a)}}\nfunction J(a,b){A=!1;B&&(B=!1,E(L),L=-1);z=!0;var c=y;try{G(b);for(v=h(r);null!==v&&(!(v.expirationTime>b)||a&&!M());){var d=v.callback;if(\"function\"===typeof d){v.callback=null;y=v.priorityLevel;var e=d(v.expirationTime<=b);b=exports.unstable_now();\"function\"===typeof e?v.callback=e:v===h(r)&&k(r);G(b)}else k(r);v=h(r)}if(null!==v)var w=!0;else{var m=h(t);null!==m&&K(H,m.startTime-b);w=!1}return w}finally{v=null,y=c,z=!1}}var N=!1,O=null,L=-1,P=5,Q=-1;\nfunction M(){return exports.unstable_now()-Qa||125d?(a.sortIndex=c,f(t,a),null===h(r)&&a===h(t)&&(B?(E(L),L=-1):B=!0,K(H,c-d))):(a.sortIndex=e,f(r,a),A||z||(A=!0,I(J)));return a};\nexports.unstable_shouldYield=M;exports.unstable_wrapCallback=function(a){var b=y;return function(){var c=y;y=b;try{return a.apply(this,arguments)}finally{y=c}}};\n", "'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/scheduler.production.min.js');\n} else {\n module.exports = require('./cjs/scheduler.development.js');\n}\n", "/**\n * @license React\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 Modernizr 3.0.0pre (Custom Build) | MIT\n*/\n'use strict';var aa=require(\"react\"),ca=require(\"scheduler\");function p(a){for(var b=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+a,c=1;cb}return!1}function v(a,b,c,d,e,f,g){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=f;this.removeEmptyString=g}var z={};\n\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach(function(a){z[a]=new v(a,0,!1,a,null,!1,!1)});[[\"acceptCharset\",\"accept-charset\"],[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"]].forEach(function(a){var b=a[0];z[b]=new v(b,1,!1,a[1],null,!1,!1)});[\"contentEditable\",\"draggable\",\"spellCheck\",\"value\"].forEach(function(a){z[a]=new v(a,2,!1,a.toLowerCase(),null,!1,!1)});\n[\"autoReverse\",\"externalResourcesRequired\",\"focusable\",\"preserveAlpha\"].forEach(function(a){z[a]=new v(a,2,!1,a,null,!1,!1)});\"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope\".split(\" \").forEach(function(a){z[a]=new v(a,3,!1,a.toLowerCase(),null,!1,!1)});\n[\"checked\",\"multiple\",\"muted\",\"selected\"].forEach(function(a){z[a]=new v(a,3,!0,a,null,!1,!1)});[\"capture\",\"download\"].forEach(function(a){z[a]=new v(a,4,!1,a,null,!1,!1)});[\"cols\",\"rows\",\"size\",\"span\"].forEach(function(a){z[a]=new v(a,6,!1,a,null,!1,!1)});[\"rowSpan\",\"start\"].forEach(function(a){z[a]=new v(a,5,!1,a.toLowerCase(),null,!1,!1)});var ra=/[\\-:]([a-z])/g;function sa(a){return a[1].toUpperCase()}\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){var b=a.replace(ra,\nsa);z[b]=new v(b,1,!1,a,null,!1,!1)});\"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach(function(a){var b=a.replace(ra,sa);z[b]=new v(b,1,!1,a,\"http://www.w3.org/1999/xlink\",!1,!1)});[\"xml:base\",\"xml:lang\",\"xml:space\"].forEach(function(a){var b=a.replace(ra,sa);z[b]=new v(b,1,!1,a,\"http://www.w3.org/XML/1998/namespace\",!1,!1)});[\"tabIndex\",\"crossOrigin\"].forEach(function(a){z[a]=new v(a,1,!1,a.toLowerCase(),null,!1,!1)});\nz.xlinkHref=new v(\"xlinkHref\",1,!1,\"xlink:href\",\"http://www.w3.org/1999/xlink\",!0,!1);[\"src\",\"href\",\"action\",\"formAction\"].forEach(function(a){z[a]=new v(a,1,!1,a.toLowerCase(),null,!0,!0)});\nfunction ta(a,b,c,d){var e=z.hasOwnProperty(b)?z[b]:null;if(null!==e?0!==e.type:d||!(2h||e[g]!==f[h]){var k=\"\\n\"+e[g].replace(\" at new \",\" at \");a.displayName&&k.includes(\"\")&&(k=k.replace(\"\",a.displayName));return k}while(1<=g&&0<=h)}break}}}finally{Na=!1,Error.prepareStackTrace=c}return(a=a?a.displayName||a.name:\"\")?Ma(a):\"\"}\nfunction Pa(a){switch(a.tag){case 5:return Ma(a.type);case 16:return Ma(\"Lazy\");case 13:return Ma(\"Suspense\");case 19:return Ma(\"SuspenseList\");case 0:case 2:case 15:return a=Oa(a.type,!1),a;case 11:return a=Oa(a.type.render,!1),a;case 1:return a=Oa(a.type,!0),a;default:return\"\"}}\nfunction Qa(a){if(null==a)return null;if(\"function\"===typeof a)return a.displayName||a.name||null;if(\"string\"===typeof a)return a;switch(a){case ya:return\"Fragment\";case wa:return\"Portal\";case Aa:return\"Profiler\";case za:return\"StrictMode\";case Ea:return\"Suspense\";case Fa:return\"SuspenseList\"}if(\"object\"===typeof a)switch(a.$$typeof){case Ca:return(a.displayName||\"Context\")+\".Consumer\";case Ba:return(a._context.displayName||\"Context\")+\".Provider\";case Da:var b=a.render;a=a.displayName;a||(a=b.displayName||\nb.name||\"\",a=\"\"!==a?\"ForwardRef(\"+a+\")\":\"ForwardRef\");return a;case Ga:return b=a.displayName||null,null!==b?b:Qa(a.type)||\"Memo\";case Ha:b=a._payload;a=a._init;try{return Qa(a(b))}catch(c){}}return null}\nfunction Ra(a){var b=a.type;switch(a.tag){case 24:return\"Cache\";case 9:return(b.displayName||\"Context\")+\".Consumer\";case 10:return(b._context.displayName||\"Context\")+\".Provider\";case 18:return\"DehydratedFragment\";case 11:return a=b.render,a=a.displayName||a.name||\"\",b.displayName||(\"\"!==a?\"ForwardRef(\"+a+\")\":\"ForwardRef\");case 7:return\"Fragment\";case 5:return b;case 4:return\"Portal\";case 3:return\"Root\";case 6:return\"Text\";case 16:return Qa(b);case 8:return b===za?\"StrictMode\":\"Mode\";case 22:return\"Offscreen\";\ncase 12:return\"Profiler\";case 21:return\"Scope\";case 13:return\"Suspense\";case 19:return\"SuspenseList\";case 25:return\"TracingMarker\";case 1:case 0:case 17:case 2:case 14:case 15:if(\"function\"===typeof b)return b.displayName||b.name||null;if(\"string\"===typeof b)return b}return null}function Sa(a){switch(typeof a){case \"boolean\":case \"number\":case \"string\":case \"undefined\":return a;case \"object\":return a;default:return\"\"}}\nfunction Ta(a){var b=a.type;return(a=a.nodeName)&&\"input\"===a.toLowerCase()&&(\"checkbox\"===b||\"radio\"===b)}\nfunction Ua(a){var b=Ta(a)?\"checked\":\"value\",c=Object.getOwnPropertyDescriptor(a.constructor.prototype,b),d=\"\"+a[b];if(!a.hasOwnProperty(b)&&\"undefined\"!==typeof c&&\"function\"===typeof c.get&&\"function\"===typeof c.set){var e=c.get,f=c.set;Object.defineProperty(a,b,{configurable:!0,get:function(){return e.call(this)},set:function(a){d=\"\"+a;f.call(this,a)}});Object.defineProperty(a,b,{enumerable:c.enumerable});return{getValue:function(){return d},setValue:function(a){d=\"\"+a},stopTracking:function(){a._valueTracker=\nnull;delete a[b]}}}}function Va(a){a._valueTracker||(a._valueTracker=Ua(a))}function Wa(a){if(!a)return!1;var b=a._valueTracker;if(!b)return!0;var c=b.getValue();var d=\"\";a&&(d=Ta(a)?a.checked?\"true\":\"false\":a.value);a=d;return a!==c?(b.setValue(a),!0):!1}function Xa(a){a=a||(\"undefined\"!==typeof document?document:void 0);if(\"undefined\"===typeof a)return null;try{return a.activeElement||a.body}catch(b){return a.body}}\nfunction Ya(a,b){var c=b.checked;return A({},b,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=c?c:a._wrapperState.initialChecked})}function Za(a,b){var c=null==b.defaultValue?\"\":b.defaultValue,d=null!=b.checked?b.checked:b.defaultChecked;c=Sa(null!=b.value?b.value:c);a._wrapperState={initialChecked:d,initialValue:c,controlled:\"checkbox\"===b.type||\"radio\"===b.type?null!=b.checked:null!=b.value}}function ab(a,b){b=b.checked;null!=b&&ta(a,\"checked\",b,!1)}\nfunction bb(a,b){ab(a,b);var c=Sa(b.value),d=b.type;if(null!=c)if(\"number\"===d){if(0===c&&\"\"===a.value||a.value!=c)a.value=\"\"+c}else a.value!==\"\"+c&&(a.value=\"\"+c);else if(\"submit\"===d||\"reset\"===d){a.removeAttribute(\"value\");return}b.hasOwnProperty(\"value\")?cb(a,b.type,c):b.hasOwnProperty(\"defaultValue\")&&cb(a,b.type,Sa(b.defaultValue));null==b.checked&&null!=b.defaultChecked&&(a.defaultChecked=!!b.defaultChecked)}\nfunction db(a,b,c){if(b.hasOwnProperty(\"value\")||b.hasOwnProperty(\"defaultValue\")){var d=b.type;if(!(\"submit\"!==d&&\"reset\"!==d||void 0!==b.value&&null!==b.value))return;b=\"\"+a._wrapperState.initialValue;c||b===a.value||(a.value=b);a.defaultValue=b}c=a.name;\"\"!==c&&(a.name=\"\");a.defaultChecked=!!a._wrapperState.initialChecked;\"\"!==c&&(a.name=c)}\nfunction cb(a,b,c){if(\"number\"!==b||Xa(a.ownerDocument)!==a)null==c?a.defaultValue=\"\"+a._wrapperState.initialValue:a.defaultValue!==\"\"+c&&(a.defaultValue=\"\"+c)}var eb=Array.isArray;\nfunction fb(a,b,c,d){a=a.options;if(b){b={};for(var e=0;e\"+b.valueOf().toString()+\"\";for(b=mb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild)}});\nfunction ob(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b}\nvar pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,\nzoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=[\"Webkit\",\"ms\",\"Moz\",\"O\"];Object.keys(pb).forEach(function(a){qb.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);pb[b]=pb[a]})});function rb(a,b,c){return null==b||\"boolean\"===typeof b||\"\"===b?\"\":c||\"number\"!==typeof b||0===b||pb.hasOwnProperty(a)&&pb[a]?(\"\"+b).trim():b+\"px\"}\nfunction sb(a,b){a=a.style;for(var c in b)if(b.hasOwnProperty(c)){var d=0===c.indexOf(\"--\"),e=rb(c,b[c],d);\"float\"===c&&(c=\"cssFloat\");d?a.setProperty(c,e):a[c]=e}}var tb=A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});\nfunction ub(a,b){if(b){if(tb[a]&&(null!=b.children||null!=b.dangerouslySetInnerHTML))throw Error(p(137,a));if(null!=b.dangerouslySetInnerHTML){if(null!=b.children)throw Error(p(60));if(\"object\"!==typeof b.dangerouslySetInnerHTML||!(\"__html\"in b.dangerouslySetInnerHTML))throw Error(p(61));}if(null!=b.style&&\"object\"!==typeof b.style)throw Error(p(62));}}\nfunction vb(a,b){if(-1===a.indexOf(\"-\"))return\"string\"===typeof b.is;switch(a){case \"annotation-xml\":case \"color-profile\":case \"font-face\":case \"font-face-src\":case \"font-face-uri\":case \"font-face-format\":case \"font-face-name\":case \"missing-glyph\":return!1;default:return!0}}var wb=null;function xb(a){a=a.target||a.srcElement||window;a.correspondingUseElement&&(a=a.correspondingUseElement);return 3===a.nodeType?a.parentNode:a}var yb=null,zb=null,Ab=null;\nfunction Bb(a){if(a=Cb(a)){if(\"function\"!==typeof yb)throw Error(p(280));var b=a.stateNode;b&&(b=Db(b),yb(a.stateNode,a.type,b))}}function Eb(a){zb?Ab?Ab.push(a):Ab=[a]:zb=a}function Fb(){if(zb){var a=zb,b=Ab;Ab=zb=null;Bb(a);if(b)for(a=0;a>>=0;return 0===a?32:31-(pc(a)/qc|0)|0}var rc=64,sc=4194304;\nfunction tc(a){switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;\ndefault:return a}}function uc(a,b){var c=a.pendingLanes;if(0===c)return 0;var d=0,e=a.suspendedLanes,f=a.pingedLanes,g=c&268435455;if(0!==g){var h=g&~e;0!==h?d=tc(h):(f&=g,0!==f&&(d=tc(f)))}else g=c&~e,0!==g?d=tc(g):0!==f&&(d=tc(f));if(0===d)return 0;if(0!==b&&b!==d&&0===(b&e)&&(e=d&-d,f=b&-b,e>=f||16===e&&0!==(f&4194240)))return b;0!==(d&4)&&(d|=c&16);b=a.entangledLanes;if(0!==b)for(a=a.entanglements,b&=d;0c;c++)b.push(a);return b}\nfunction Ac(a,b,c){a.pendingLanes|=b;536870912!==b&&(a.suspendedLanes=0,a.pingedLanes=0);a=a.eventTimes;b=31-oc(b);a[b]=c}function Bc(a,b){var c=a.pendingLanes&~b;a.pendingLanes=b;a.suspendedLanes=0;a.pingedLanes=0;a.expiredLanes&=b;a.mutableReadLanes&=b;a.entangledLanes&=b;b=a.entanglements;var d=a.eventTimes;for(a=a.expirationTimes;0=be),ee=String.fromCharCode(32),fe=!1;\nfunction ge(a,b){switch(a){case \"keyup\":return-1!==$d.indexOf(b.keyCode);case \"keydown\":return 229!==b.keyCode;case \"keypress\":case \"mousedown\":case \"focusout\":return!0;default:return!1}}function he(a){a=a.detail;return\"object\"===typeof a&&\"data\"in a?a.data:null}var ie=!1;function je(a,b){switch(a){case \"compositionend\":return he(b);case \"keypress\":if(32!==b.which)return null;fe=!0;return ee;case \"textInput\":return a=b.data,a===ee&&fe?null:a;default:return null}}\nfunction ke(a,b){if(ie)return\"compositionend\"===a||!ae&&ge(a,b)?(a=nd(),md=ld=kd=null,ie=!1,a):null;switch(a){case \"paste\":return null;case \"keypress\":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1=b)return{node:c,offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=Je(c)}}function Le(a,b){return a&&b?a===b?!0:a&&3===a.nodeType?!1:b&&3===b.nodeType?Le(a,b.parentNode):\"contains\"in a?a.contains(b):a.compareDocumentPosition?!!(a.compareDocumentPosition(b)&16):!1:!1}\nfunction Me(){for(var a=window,b=Xa();b instanceof a.HTMLIFrameElement;){try{var c=\"string\"===typeof b.contentWindow.location.href}catch(d){c=!1}if(c)a=b.contentWindow;else break;b=Xa(a.document)}return b}function Ne(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&(\"input\"===b&&(\"text\"===a.type||\"search\"===a.type||\"tel\"===a.type||\"url\"===a.type||\"password\"===a.type)||\"textarea\"===b||\"true\"===a.contentEditable)}\nfunction Oe(a){var b=Me(),c=a.focusedElem,d=a.selectionRange;if(b!==c&&c&&c.ownerDocument&&Le(c.ownerDocument.documentElement,c)){if(null!==d&&Ne(c))if(b=d.start,a=d.end,void 0===a&&(a=b),\"selectionStart\"in c)c.selectionStart=b,c.selectionEnd=Math.min(a,c.value.length);else if(a=(b=c.ownerDocument||document)&&b.defaultView||window,a.getSelection){a=a.getSelection();var e=c.textContent.length,f=Math.min(d.start,e);d=void 0===d.end?f:Math.min(d.end,e);!a.extend&&f>d&&(e=d,d=f,f=e);e=Ke(c,f);var g=Ke(c,\nd);e&&g&&(1!==a.rangeCount||a.anchorNode!==e.node||a.anchorOffset!==e.offset||a.focusNode!==g.node||a.focusOffset!==g.offset)&&(b=b.createRange(),b.setStart(e.node,e.offset),a.removeAllRanges(),f>d?(a.addRange(b),a.extend(g.node,g.offset)):(b.setEnd(g.node,g.offset),a.addRange(b)))}b=[];for(a=c;a=a.parentNode;)1===a.nodeType&&b.push({element:a,left:a.scrollLeft,top:a.scrollTop});\"function\"===typeof c.focus&&c.focus();for(c=0;c=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;\nfunction Ue(a,b,c){var d=c.window===c?c.document:9===c.nodeType?c:c.ownerDocument;Te||null==Qe||Qe!==Xa(d)||(d=Qe,\"selectionStart\"in d&&Ne(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Se&&Ie(Se,d)||(Se=d,d=oe(Re,\"onSelect\"),0Tf||(a.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G(a,b){Tf++;Sf[Tf]=a.current;a.current=b}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(a,b){var c=a.type.contextTypes;if(!c)return Vf;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}\nfunction Zf(a){a=a.childContextTypes;return null!==a&&void 0!==a}function $f(){E(Wf);E(H)}function ag(a,b,c){if(H.current!==Vf)throw Error(p(168));G(H,b);G(Wf,c)}function bg(a,b,c){var d=a.stateNode;b=b.childContextTypes;if(\"function\"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)if(!(e in b))throw Error(p(108,Ra(a)||\"Unknown\",e));return A({},c,d)}\nfunction cg(a){a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Vf;Xf=H.current;G(H,a);G(Wf,Wf.current);return!0}function dg(a,b,c){var d=a.stateNode;if(!d)throw Error(p(169));c?(a=bg(a,b,Xf),d.__reactInternalMemoizedMergedChildContext=a,E(Wf),E(H),G(H,a)):E(Wf);G(Wf,c)}var eg=null,fg=!1,gg=!1;function hg(a){null===eg?eg=[a]:eg.push(a)}function ig(a){fg=!0;hg(a)}\nfunction jg(){if(!gg&&null!==eg){gg=!0;var a=0,b=C;try{var c=eg;for(C=1;a>=g;e-=g;rg=1<<32-oc(b)+e|c<w?(x=u,u=null):x=u.sibling;var n=r(e,u,h[w],k);if(null===n){null===u&&(u=x);break}a&&u&&null===n.alternate&&b(e,u);g=f(n,g,w);null===m?l=n:m.sibling=n;m=n;u=x}if(w===h.length)return c(e,u),I&&tg(e,w),l;if(null===u){for(;ww?(x=m,m=null):x=m.sibling;var t=r(e,m,n.value,k);if(null===t){null===m&&(m=x);break}a&&m&&null===t.alternate&&b(e,m);g=f(t,g,w);null===u?l=t:u.sibling=t;u=t;m=x}if(n.done)return c(e,\nm),I&&tg(e,w),l;if(null===m){for(;!n.done;w++,n=h.next())n=q(e,n.value,k),null!==n&&(g=f(n,g,w),null===u?l=n:u.sibling=n,u=n);I&&tg(e,w);return l}for(m=d(e,m);!n.done;w++,n=h.next())n=y(m,e,w,n.value,k),null!==n&&(a&&null!==n.alternate&&m.delete(null===n.key?w:n.key),g=f(n,g,w),null===u?l=n:u.sibling=n,u=n);a&&m.forEach(function(a){return b(e,a)});I&&tg(e,w);return l}function J(a,d,f,h){\"object\"===typeof f&&null!==f&&f.type===ya&&null===f.key&&(f=f.props.children);if(\"object\"===typeof f&&null!==f){switch(f.$$typeof){case va:a:{for(var k=\nf.key,l=d;null!==l;){if(l.key===k){k=f.type;if(k===ya){if(7===l.tag){c(a,l.sibling);d=e(l,f.props.children);d.return=a;a=d;break a}}else if(l.elementType===k||\"object\"===typeof k&&null!==k&&k.$$typeof===Ha&&uh(k)===l.type){c(a,l.sibling);d=e(l,f.props);d.ref=sh(a,l,f);d.return=a;a=d;break a}c(a,l);break}else b(a,l);l=l.sibling}f.type===ya?(d=Ah(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=yh(f.type,f.key,f.props,null,a.mode,h),h.ref=sh(a,d,f),h.return=a,a=h)}return g(a);case wa:a:{for(l=f.key;null!==\nd;){if(d.key===l)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[]);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d=d.sibling}d=zh(f,a.mode,h);d.return=a;a=d}return g(a);case Ha:return l=f._init,J(a,d,l(f._payload),h)}if(eb(f))return n(a,d,f,h);if(Ka(f))return t(a,d,f,h);th(a,f)}return\"string\"===typeof f&&\"\"!==f||\"number\"===typeof f?(f=\"\"+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f),d.return=a,a=d):\n(c(a,d),d=xh(f,a.mode,h),d.return=a,a=d),g(a)):c(a,d)}return J}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(a){if(a===Dh)throw Error(p(174));return a}function Ih(a,b){G(Gh,b);G(Fh,a);G(Eh,Dh);a=b.nodeType;switch(a){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:lb(null,\"\");break;default:a=8===a?b.parentNode:b,b=a.namespaceURI||null,a=a.tagName,b=lb(b,a)}E(Eh);G(Eh,b)}function Jh(){E(Eh);E(Fh);E(Gh)}\nfunction Kh(a){Hh(Gh.current);var b=Hh(Eh.current);var c=lb(b,a.type);b!==c&&(G(Fh,a),G(Eh,c))}function Lh(a){Fh.current===a&&(E(Eh),E(Fh))}var M=Uf(0);\nfunction Mh(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(c=c.dehydrated,null===c||\"$?\"===c.data||\"$!\"===c.data))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(0!==(b.flags&128))return b}else if(null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}return null}var Nh=[];\nfunction Oh(){for(var a=0;ac?c:4;a(!0);var d=Qh.transition;Qh.transition={};try{a(!1),b()}finally{C=c,Qh.transition=d}}function Fi(){return di().memoizedState}\nfunction Gi(a,b,c){var d=lh(a);c={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(Hi(a))Ii(b,c);else if(c=Yg(a,b,c,d),null!==c){var e=L();mh(c,a,d,e);Ji(c,b,d)}}\nfunction ri(a,b,c){var d=lh(a),e={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(Hi(a))Ii(b,e);else{var f=a.alternate;if(0===a.lanes&&(null===f||0===f.lanes)&&(f=b.lastRenderedReducer,null!==f))try{var g=b.lastRenderedState,h=f(g,c);e.hasEagerState=!0;e.eagerState=h;if(He(h,g)){var k=b.interleaved;null===k?(e.next=e,Xg(b)):(e.next=k.next,k.next=e);b.interleaved=e;return}}catch(l){}finally{}c=Yg(a,b,e,d);null!==c&&(e=L(),mh(c,a,d,e),Ji(c,b,d))}}\nfunction Hi(a){var b=a.alternate;return a===N||null!==b&&b===N}function Ii(a,b){Th=Sh=!0;var c=a.pending;null===c?b.next=b:(b.next=c.next,c.next=b);a.pending=b}function Ji(a,b,c){if(0!==(c&4194240)){var d=b.lanes;d&=a.pendingLanes;c|=d;b.lanes=c;Cc(a,c)}}\nvar ai={readContext:Vg,useCallback:Q,useContext:Q,useEffect:Q,useImperativeHandle:Q,useInsertionEffect:Q,useLayoutEffect:Q,useMemo:Q,useReducer:Q,useRef:Q,useState:Q,useDebugValue:Q,useDeferredValue:Q,useTransition:Q,useMutableSource:Q,useSyncExternalStore:Q,useId:Q,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(a,b){ci().memoizedState=[a,void 0===b?null:b];return a},useContext:Vg,useEffect:vi,useImperativeHandle:function(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return ti(4194308,\n4,yi.bind(null,b,a),c)},useLayoutEffect:function(a,b){return ti(4194308,4,a,b)},useInsertionEffect:function(a,b){return ti(4,2,a,b)},useMemo:function(a,b){var c=ci();b=void 0===b?null:b;a=a();c.memoizedState=[a,b];return a},useReducer:function(a,b,c){var d=ci();b=void 0!==c?c(b):b;d.memoizedState=d.baseState=b;a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:b};d.queue=a;a=a.dispatch=Gi.bind(null,N,a);return[d.memoizedState,a]},useRef:function(a){var b=\nci();a={current:a};return b.memoizedState=a},useState:qi,useDebugValue:Ai,useDeferredValue:function(a){return ci().memoizedState=a},useTransition:function(){var a=qi(!1),b=a[0];a=Ei.bind(null,a[1]);ci().memoizedState=a;return[b,a]},useMutableSource:function(){},useSyncExternalStore:function(a,b,c){var d=N,e=ci();if(I){if(void 0===c)throw Error(p(407));c=c()}else{c=b();if(null===R)throw Error(p(349));0!==(Rh&30)||ni(d,b,c)}e.memoizedState=c;var f={value:c,getSnapshot:b};e.queue=f;vi(ki.bind(null,d,\nf,a),[a]);d.flags|=2048;li(9,mi.bind(null,d,f,c,b),void 0,null);return c},useId:function(){var a=ci(),b=R.identifierPrefix;if(I){var c=sg;var d=rg;c=(d&~(1<<32-oc(d)-1)).toString(32)+c;b=\":\"+b+\"R\"+c;c=Uh++;0\\x3c/script>\",a=a.removeChild(a.firstChild)):\n\"string\"===typeof d.is?a=g.createElement(c,{is:d.is}):(a=g.createElement(c),\"select\"===c&&(g=a,d.multiple?g.multiple=!0:d.size&&(g.size=d.size))):a=g.createElementNS(a,c);a[Of]=b;a[Pf]=d;Aj(a,b,!1,!1);b.stateNode=a;a:{g=vb(c,d);switch(c){case \"dialog\":D(\"cancel\",a);D(\"close\",a);e=d;break;case \"iframe\":case \"object\":case \"embed\":D(\"load\",a);e=d;break;case \"video\":case \"audio\":for(e=0;eHj&&(b.flags|=128,d=!0,Ej(f,!1),b.lanes=4194304)}else{if(!d)if(a=Mh(g),null!==a){if(b.flags|=128,d=!0,c=a.updateQueue,null!==c&&(b.updateQueue=c,b.flags|=4),Ej(f,!0),null===f.tail&&\"hidden\"===f.tailMode&&!g.alternate&&!I)return S(b),null}else 2*B()-f.renderingStartTime>Hj&&1073741824!==c&&(b.flags|=128,d=!0,Ej(f,!1),b.lanes=4194304);f.isBackwards?(g.sibling=b.child,b.child=g):(c=f.last,null!==c?c.sibling=g:b.child=g,f.last=g)}if(null!==f.tail)return b=f.tail,f.rendering=\nb,f.tail=b.sibling,f.renderingStartTime=B(),b.sibling=null,c=M.current,G(M,d?c&1|2:c&1),b;S(b);return null;case 22:case 23:return Ij(),d=null!==b.memoizedState,null!==a&&null!==a.memoizedState!==d&&(b.flags|=8192),d&&0!==(b.mode&1)?0!==(gj&1073741824)&&(S(b),b.subtreeFlags&6&&(b.flags|=8192)):S(b),null;case 24:return null;case 25:return null}throw Error(p(156,b.tag));}\nfunction Jj(a,b){wg(b);switch(b.tag){case 1:return Zf(b.type)&&$f(),a=b.flags,a&65536?(b.flags=a&-65537|128,b):null;case 3:return Jh(),E(Wf),E(H),Oh(),a=b.flags,0!==(a&65536)&&0===(a&128)?(b.flags=a&-65537|128,b):null;case 5:return Lh(b),null;case 13:E(M);a=b.memoizedState;if(null!==a&&null!==a.dehydrated){if(null===b.alternate)throw Error(p(340));Ig()}a=b.flags;return a&65536?(b.flags=a&-65537|128,b):null;case 19:return E(M),null;case 4:return Jh(),null;case 10:return Rg(b.type._context),null;case 22:case 23:return Ij(),\nnull;case 24:return null;default:return null}}var Kj=!1,U=!1,Lj=\"function\"===typeof WeakSet?WeakSet:Set,V=null;function Mj(a,b){var c=a.ref;if(null!==c)if(\"function\"===typeof c)try{c(null)}catch(d){W(a,b,d)}else c.current=null}function Nj(a,b,c){try{c()}catch(d){W(a,b,d)}}var Oj=!1;\nfunction Pj(a,b){Cf=dd;a=Me();if(Ne(a)){if(\"selectionStart\"in a)var c={start:a.selectionStart,end:a.selectionEnd};else a:{c=(c=a.ownerDocument)&&c.defaultView||window;var d=c.getSelection&&c.getSelection();if(d&&0!==d.rangeCount){c=d.anchorNode;var e=d.anchorOffset,f=d.focusNode;d=d.focusOffset;try{c.nodeType,f.nodeType}catch(F){c=null;break a}var g=0,h=-1,k=-1,l=0,m=0,q=a,r=null;b:for(;;){for(var y;;){q!==c||0!==e&&3!==q.nodeType||(h=g+e);q!==f||0!==d&&3!==q.nodeType||(k=g+d);3===q.nodeType&&(g+=\nq.nodeValue.length);if(null===(y=q.firstChild))break;r=q;q=y}for(;;){if(q===a)break b;r===c&&++l===e&&(h=g);r===f&&++m===d&&(k=g);if(null!==(y=q.nextSibling))break;q=r;r=q.parentNode}q=y}c=-1===h||-1===k?null:{start:h,end:k}}else c=null}c=c||{start:0,end:0}}else c=null;Df={focusedElem:a,selectionRange:c};dd=!1;for(V=b;null!==V;)if(b=V,a=b.child,0!==(b.subtreeFlags&1028)&&null!==a)a.return=b,V=a;else for(;null!==V;){b=V;try{var n=b.alternate;if(0!==(b.flags&1024))switch(b.tag){case 0:case 11:case 15:break;\ncase 1:if(null!==n){var t=n.memoizedProps,J=n.memoizedState,x=b.stateNode,w=x.getSnapshotBeforeUpdate(b.elementType===b.type?t:Lg(b.type,t),J);x.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var u=b.stateNode.containerInfo;1===u.nodeType?u.textContent=\"\":9===u.nodeType&&u.documentElement&&u.removeChild(u.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p(163));}}catch(F){W(b,b.return,F)}a=b.sibling;if(null!==a){a.return=b.return;V=a;break}V=b.return}n=Oj;Oj=!1;return n}\nfunction Qj(a,b,c){var d=b.updateQueue;d=null!==d?d.lastEffect:null;if(null!==d){var e=d=d.next;do{if((e.tag&a)===a){var f=e.destroy;e.destroy=void 0;void 0!==f&&Nj(b,c,f)}e=e.next}while(e!==d)}}function Rj(a,b){b=b.updateQueue;b=null!==b?b.lastEffect:null;if(null!==b){var c=b=b.next;do{if((c.tag&a)===a){var d=c.create;c.destroy=d()}c=c.next}while(c!==b)}}function Sj(a){var b=a.ref;if(null!==b){var c=a.stateNode;switch(a.tag){case 5:a=c;break;default:a=c}\"function\"===typeof b?b(a):b.current=a}}\nfunction Tj(a){var b=a.alternate;null!==b&&(a.alternate=null,Tj(b));a.child=null;a.deletions=null;a.sibling=null;5===a.tag&&(b=a.stateNode,null!==b&&(delete b[Of],delete b[Pf],delete b[of],delete b[Qf],delete b[Rf]));a.stateNode=null;a.return=null;a.dependencies=null;a.memoizedProps=null;a.memoizedState=null;a.pendingProps=null;a.stateNode=null;a.updateQueue=null}function Uj(a){return 5===a.tag||3===a.tag||4===a.tag}\nfunction Vj(a){a:for(;;){for(;null===a.sibling;){if(null===a.return||Uj(a.return))return null;a=a.return}a.sibling.return=a.return;for(a=a.sibling;5!==a.tag&&6!==a.tag&&18!==a.tag;){if(a.flags&2)continue a;if(null===a.child||4===a.tag)continue a;else a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}\nfunction Wj(a,b,c){var d=a.tag;if(5===d||6===d)a=a.stateNode,b?8===c.nodeType?c.parentNode.insertBefore(a,b):c.insertBefore(a,b):(8===c.nodeType?(b=c.parentNode,b.insertBefore(a,c)):(b=c,b.appendChild(a)),c=c._reactRootContainer,null!==c&&void 0!==c||null!==b.onclick||(b.onclick=Bf));else if(4!==d&&(a=a.child,null!==a))for(Wj(a,b,c),a=a.sibling;null!==a;)Wj(a,b,c),a=a.sibling}\nfunction Xj(a,b,c){var d=a.tag;if(5===d||6===d)a=a.stateNode,b?c.insertBefore(a,b):c.appendChild(a);else if(4!==d&&(a=a.child,null!==a))for(Xj(a,b,c),a=a.sibling;null!==a;)Xj(a,b,c),a=a.sibling}var X=null,Yj=!1;function Zj(a,b,c){for(c=c.child;null!==c;)ak(a,b,c),c=c.sibling}\nfunction ak(a,b,c){if(lc&&\"function\"===typeof lc.onCommitFiberUnmount)try{lc.onCommitFiberUnmount(kc,c)}catch(h){}switch(c.tag){case 5:U||Mj(c,b);case 6:var d=X,e=Yj;X=null;Zj(a,b,c);X=d;Yj=e;null!==X&&(Yj?(a=X,c=c.stateNode,8===a.nodeType?a.parentNode.removeChild(c):a.removeChild(c)):X.removeChild(c.stateNode));break;case 18:null!==X&&(Yj?(a=X,c=c.stateNode,8===a.nodeType?Kf(a.parentNode,c):1===a.nodeType&&Kf(a,c),bd(a)):Kf(X,c.stateNode));break;case 4:d=X;e=Yj;X=c.stateNode.containerInfo;Yj=!0;\nZj(a,b,c);X=d;Yj=e;break;case 0:case 11:case 14:case 15:if(!U&&(d=c.updateQueue,null!==d&&(d=d.lastEffect,null!==d))){e=d=d.next;do{var f=e,g=f.destroy;f=f.tag;void 0!==g&&(0!==(f&2)?Nj(c,b,g):0!==(f&4)&&Nj(c,b,g));e=e.next}while(e!==d)}Zj(a,b,c);break;case 1:if(!U&&(Mj(c,b),d=c.stateNode,\"function\"===typeof d.componentWillUnmount))try{d.props=c.memoizedProps,d.state=c.memoizedState,d.componentWillUnmount()}catch(h){W(c,b,h)}Zj(a,b,c);break;case 21:Zj(a,b,c);break;case 22:c.mode&1?(U=(d=U)||null!==\nc.memoizedState,Zj(a,b,c),U=d):Zj(a,b,c);break;default:Zj(a,b,c)}}function bk(a){var b=a.updateQueue;if(null!==b){a.updateQueue=null;var c=a.stateNode;null===c&&(c=a.stateNode=new Lj);b.forEach(function(b){var d=ck.bind(null,a,b);c.has(b)||(c.add(b),b.then(d,d))})}}\nfunction dk(a,b){var c=b.deletions;if(null!==c)for(var d=0;de&&(e=g);d&=~f}d=e;d=B()-d;d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3E3>d?3E3:4320>d?4320:1960*mk(d/1960))-d;if(10a?16:a;if(null===xk)var d=!1;else{a=xk;xk=null;yk=0;if(0!==(K&6))throw Error(p(331));var e=K;K|=4;for(V=a.current;null!==V;){var f=V,g=f.child;if(0!==(V.flags&16)){var h=f.deletions;if(null!==h){for(var k=0;kB()-gk?Lk(a,0):sk|=c);Ek(a,b)}function Zk(a,b){0===b&&(0===(a.mode&1)?b=1:(b=sc,sc<<=1,0===(sc&130023424)&&(sc=4194304)));var c=L();a=Zg(a,b);null!==a&&(Ac(a,b,c),Ek(a,c))}function vj(a){var b=a.memoizedState,c=0;null!==b&&(c=b.retryLane);Zk(a,c)}\nfunction ck(a,b){var c=0;switch(a.tag){case 13:var d=a.stateNode;var e=a.memoizedState;null!==e&&(c=e.retryLane);break;case 19:d=a.stateNode;break;default:throw Error(p(314));}null!==d&&d.delete(b);Zk(a,c)}var Wk;\nWk=function(a,b,c){if(null!==a)if(a.memoizedProps!==b.pendingProps||Wf.current)Ug=!0;else{if(0===(a.lanes&c)&&0===(b.flags&128))return Ug=!1,zj(a,b,c);Ug=0!==(a.flags&131072)?!0:!1}else Ug=!1,I&&0!==(b.flags&1048576)&&ug(b,ng,b.index);b.lanes=0;switch(b.tag){case 2:var d=b.type;jj(a,b);a=b.pendingProps;var e=Yf(b,H.current);Tg(b,c);e=Xh(null,b,d,a,e,c);var f=bi();b.flags|=1;\"object\"===typeof e&&null!==e&&\"function\"===typeof e.render&&void 0===e.$$typeof?(b.tag=1,b.memoizedState=null,b.updateQueue=\nnull,Zf(d)?(f=!0,cg(b)):f=!1,b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,ah(b),e.updater=nh,b.stateNode=e,e._reactInternals=b,rh(b,d,a,c),b=kj(null,b,d,!0,f,c)):(b.tag=0,I&&f&&vg(b),Yi(null,b,e,c),b=b.child);return b;case 16:d=b.elementType;a:{jj(a,b);a=b.pendingProps;e=d._init;d=e(d._payload);b.type=d;e=b.tag=$k(d);a=Lg(d,a);switch(e){case 0:b=dj(null,b,d,a,c);break a;case 1:b=ij(null,b,d,a,c);break a;case 11:b=Zi(null,b,d,a,c);break a;case 14:b=aj(null,b,d,Lg(d.type,a),c);break a}throw Error(p(306,\nd,\"\"));}return b;case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),dj(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),ij(a,b,d,e,c);case 3:a:{lj(b);if(null===a)throw Error(p(387));d=b.pendingProps;f=b.memoizedState;e=f.element;bh(a,b);gh(b,d,null,c);var g=b.memoizedState;d=g.element;if(f.isDehydrated)if(f={element:d,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},b.updateQueue.baseState=\nf,b.memoizedState=f,b.flags&256){e=Ki(Error(p(423)),b);b=mj(a,b,d,c,e);break a}else if(d!==e){e=Ki(Error(p(424)),b);b=mj(a,b,d,c,e);break a}else for(yg=Lf(b.stateNode.containerInfo.firstChild),xg=b,I=!0,zg=null,c=Ch(b,null,d,c),b.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{Ig();if(d===e){b=$i(a,b,c);break a}Yi(a,b,d,c)}b=b.child}return b;case 5:return Kh(b),null===a&&Eg(b),d=b.type,e=b.pendingProps,f=null!==a?a.memoizedProps:null,g=e.children,Ef(d,e)?g=null:null!==f&&Ef(d,f)&&(b.flags|=32),\nhj(a,b),Yi(a,b,g,c),b.child;case 6:return null===a&&Eg(b),null;case 13:return pj(a,b,c);case 4:return Ih(b,b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=Bh(b,null,d,c):Yi(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),Zi(a,b,d,e,c);case 7:return Yi(a,b,b.pendingProps,c),b.child;case 8:return Yi(a,b,b.pendingProps.children,c),b.child;case 12:return Yi(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context;e=b.pendingProps;f=b.memoizedProps;\ng=e.value;G(Mg,d._currentValue);d._currentValue=g;if(null!==f)if(He(f.value,g)){if(f.children===e.children&&!Wf.current){b=$i(a,b,c);break a}}else for(f=b.child,null!==f&&(f.return=b);null!==f;){var h=f.dependencies;if(null!==h){g=f.child;for(var k=h.firstContext;null!==k;){if(k.context===d){if(1===f.tag){k=ch(-1,c&-c);k.tag=2;var l=f.updateQueue;if(null!==l){l=l.shared;var m=l.pending;null===m?k.next=k:(k.next=m.next,m.next=k);l.pending=k}}f.lanes|=c;k=f.alternate;null!==k&&(k.lanes|=c);Sg(f.return,\nc,b);h.lanes|=c;break}k=k.next}}else if(10===f.tag)g=f.type===b.type?null:f.child;else if(18===f.tag){g=f.return;if(null===g)throw Error(p(341));g.lanes|=c;h=g.alternate;null!==h&&(h.lanes|=c);Sg(g,c,b);g=f.sibling}else g=f.child;if(null!==g)g.return=f;else for(g=f;null!==g;){if(g===b){g=null;break}f=g.sibling;if(null!==f){f.return=g.return;g=f;break}g=g.return}f=g}Yi(a,b,e.children,c);b=b.child}return b;case 9:return e=b.type,d=b.pendingProps.children,Tg(b,c),e=Vg(e),d=d(e),b.flags|=1,Yi(a,b,d,c),\nb.child;case 14:return d=b.type,e=Lg(d,b.pendingProps),e=Lg(d.type,e),aj(a,b,d,e,c);case 15:return cj(a,b,b.type,b.pendingProps,c);case 17:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),jj(a,b),b.tag=1,Zf(d)?(a=!0,cg(b)):a=!1,Tg(b,c),ph(b,d,e),rh(b,d,e,c),kj(null,b,d,!0,a,c);case 19:return yj(a,b,c);case 22:return ej(a,b,c)}throw Error(p(156,b.tag));};function Gk(a,b){return ac(a,b)}\nfunction al(a,b,c,d){this.tag=a;this.key=c;this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null;this.index=0;this.ref=null;this.pendingProps=b;this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null;this.mode=d;this.subtreeFlags=this.flags=0;this.deletions=null;this.childLanes=this.lanes=0;this.alternate=null}function Bg(a,b,c,d){return new al(a,b,c,d)}function bj(a){a=a.prototype;return!(!a||!a.isReactComponent)}\nfunction $k(a){if(\"function\"===typeof a)return bj(a)?1:0;if(void 0!==a&&null!==a){a=a.$$typeof;if(a===Da)return 11;if(a===Ga)return 14}return 2}\nfunction wh(a,b){var c=a.alternate;null===c?(c=Bg(a.tag,b,a.key,a.mode),c.elementType=a.elementType,c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.pendingProps=b,c.type=a.type,c.flags=0,c.subtreeFlags=0,c.deletions=null);c.flags=a.flags&14680064;c.childLanes=a.childLanes;c.lanes=a.lanes;c.child=a.child;c.memoizedProps=a.memoizedProps;c.memoizedState=a.memoizedState;c.updateQueue=a.updateQueue;b=a.dependencies;c.dependencies=null===b?null:{lanes:b.lanes,firstContext:b.firstContext};\nc.sibling=a.sibling;c.index=a.index;c.ref=a.ref;return c}\nfunction yh(a,b,c,d,e,f){var g=2;d=a;if(\"function\"===typeof a)bj(a)&&(g=1);else if(\"string\"===typeof a)g=5;else a:switch(a){case ya:return Ah(c.children,e,f,b);case za:g=8;e|=8;break;case Aa:return a=Bg(12,c,b,e|2),a.elementType=Aa,a.lanes=f,a;case Ea:return a=Bg(13,c,b,e),a.elementType=Ea,a.lanes=f,a;case Fa:return a=Bg(19,c,b,e),a.elementType=Fa,a.lanes=f,a;case Ia:return qj(c,e,f,b);default:if(\"object\"===typeof a&&null!==a)switch(a.$$typeof){case Ba:g=10;break a;case Ca:g=9;break a;case Da:g=11;\nbreak a;case Ga:g=14;break a;case Ha:g=16;d=null;break a}throw Error(p(130,null==a?a:typeof a,\"\"));}b=Bg(g,c,b,e);b.elementType=a;b.type=d;b.lanes=f;return b}function Ah(a,b,c,d){a=Bg(7,a,d,b);a.lanes=c;return a}function qj(a,b,c,d){a=Bg(22,a,d,b);a.elementType=Ia;a.lanes=c;a.stateNode={isHidden:!1};return a}function xh(a,b,c){a=Bg(6,a,null,b);a.lanes=c;return a}\nfunction zh(a,b,c){b=Bg(4,null!==a.children?a.children:[],a.key,b);b.lanes=c;b.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation};return b}\nfunction bl(a,b,c,d,e){this.tag=b;this.containerInfo=a;this.finishedWork=this.pingCache=this.current=this.pendingChildren=null;this.timeoutHandle=-1;this.callbackNode=this.pendingContext=this.context=null;this.callbackPriority=0;this.eventTimes=zc(0);this.expirationTimes=zc(-1);this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0;this.entanglements=zc(0);this.identifierPrefix=d;this.onRecoverableError=e;this.mutableSourceEagerHydrationData=\nnull}function cl(a,b,c,d,e,f,g,h,k){a=new bl(a,b,c,h,k);1===b?(b=1,!0===f&&(b|=8)):b=0;f=Bg(3,null,null,b);a.current=f;f.stateNode=a;f.memoizedState={element:d,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null};ah(f);return a}function dl(a,b,c){var d=3= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n }\n\n function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\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\n return target;\n }\n\n function _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();\n }\n\n function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n }\n\n function _iterableToArrayLimit(arr, i) {\n var _i = arr && (typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]);\n\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n\n var _s, _e;\n\n try {\n for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\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\n return _arr;\n }\n\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\n function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n return arr2;\n }\n\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\n function getDefaultExportFromCjs (x) {\n \treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n }\n\n var propTypes = {exports: {}};\n\n /**\n * Copyright (c) 2013-present, Facebook, Inc.\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 var ReactPropTypesSecret_1;\n var hasRequiredReactPropTypesSecret;\n\n function requireReactPropTypesSecret() {\n if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;\n hasRequiredReactPropTypesSecret = 1;\n\n var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n ReactPropTypesSecret_1 = ReactPropTypesSecret;\n return ReactPropTypesSecret_1;\n }\n\n /**\n * Copyright (c) 2013-present, Facebook, Inc.\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 var factoryWithThrowingShims;\n var hasRequiredFactoryWithThrowingShims;\n\n function requireFactoryWithThrowingShims() {\n if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;\n hasRequiredFactoryWithThrowingShims = 1;\n\n var ReactPropTypesSecret = requireReactPropTypesSecret();\n\n function emptyFunction() {}\n\n function emptyFunctionWithReset() {}\n\n emptyFunctionWithReset.resetWarningCache = emptyFunction;\n\n factoryWithThrowingShims = function () {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n\n var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use PropTypes.checkPropTypes() to call them. ' + 'Read more at http://fb.me/use-check-prop-types');\n err.name = 'Invariant Violation';\n throw err;\n }\n shim.isRequired = shim;\n\n function getShim() {\n return shim;\n }\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n\n var ReactPropTypes = {\n array: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n ReactPropTypes.PropTypes = ReactPropTypes;\n return ReactPropTypes;\n };\n\n return factoryWithThrowingShims;\n }\n\n /**\n * Copyright (c) 2013-present, Facebook, Inc.\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 // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n propTypes.exports = requireFactoryWithThrowingShims()();\n }\n\n var propTypesExports = propTypes.exports;\n var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);\n\n var useAttachEvent = function useAttachEvent(element, event, cb) {\n var cbDefined = !!cb;\n var cbRef = React.useRef(cb); // In many integrations the callback prop changes on each render.\n // Using a ref saves us from calling element.on/.off every render.\n\n React.useEffect(function () {\n cbRef.current = cb;\n }, [cb]);\n React.useEffect(function () {\n if (!cbDefined || !element) {\n return function () {};\n }\n\n var decoratedCb = function decoratedCb() {\n if (cbRef.current) {\n cbRef.current.apply(cbRef, arguments);\n }\n };\n\n element.on(event, decoratedCb);\n return function () {\n element.off(event, decoratedCb);\n };\n }, [cbDefined, event, element, cbRef]);\n };\n\n var usePrevious = function usePrevious(value) {\n var ref = React.useRef(value);\n React.useEffect(function () {\n ref.current = value;\n }, [value]);\n return ref.current;\n };\n\n var isUnknownObject = function isUnknownObject(raw) {\n return raw !== null && _typeof(raw) === 'object';\n };\n var isPromise = function isPromise(raw) {\n return isUnknownObject(raw) && typeof raw.then === 'function';\n }; // We are using types to enforce the `stripe` prop in this lib,\n // but in an untyped integration `stripe` could be anything, so we need\n // to do some sanity validation to prevent type errors.\n\n var isStripe = function isStripe(raw) {\n return isUnknownObject(raw) && typeof raw.elements === 'function' && typeof raw.createToken === 'function' && typeof raw.createPaymentMethod === 'function' && typeof raw.confirmCardPayment === 'function';\n };\n\n var PLAIN_OBJECT_STR = '[object Object]';\n var isEqual = function isEqual(left, right) {\n if (!isUnknownObject(left) || !isUnknownObject(right)) {\n return left === right;\n }\n\n var leftArray = Array.isArray(left);\n var rightArray = Array.isArray(right);\n if (leftArray !== rightArray) return false;\n var leftPlainObject = Object.prototype.toString.call(left) === PLAIN_OBJECT_STR;\n var rightPlainObject = Object.prototype.toString.call(right) === PLAIN_OBJECT_STR;\n if (leftPlainObject !== rightPlainObject) return false; // not sure what sort of special object this is (regexp is one option), so\n // fallback to reference check.\n\n if (!leftPlainObject && !leftArray) return left === right;\n var leftKeys = Object.keys(left);\n var rightKeys = Object.keys(right);\n if (leftKeys.length !== rightKeys.length) return false;\n var keySet = {};\n\n for (var i = 0; i < leftKeys.length; i += 1) {\n keySet[leftKeys[i]] = true;\n }\n\n for (var _i = 0; _i < rightKeys.length; _i += 1) {\n keySet[rightKeys[_i]] = true;\n }\n\n var allKeys = Object.keys(keySet);\n\n if (allKeys.length !== leftKeys.length) {\n return false;\n }\n\n var l = left;\n var r = right;\n\n var pred = function pred(key) {\n return isEqual(l[key], r[key]);\n };\n\n return allKeys.every(pred);\n };\n\n var extractAllowedOptionsUpdates = function extractAllowedOptionsUpdates(options, prevOptions, immutableKeys) {\n if (!isUnknownObject(options)) {\n return null;\n }\n\n return Object.keys(options).reduce(function (newOptions, key) {\n var isUpdated = !isUnknownObject(prevOptions) || !isEqual(options[key], prevOptions[key]);\n\n if (immutableKeys.includes(key)) {\n if (isUpdated) {\n console.warn(\"Unsupported prop change: options.\".concat(key, \" is not a mutable property.\"));\n }\n\n return newOptions;\n }\n\n if (!isUpdated) {\n return newOptions;\n }\n\n return _objectSpread2(_objectSpread2({}, newOptions || {}), {}, _defineProperty({}, key, options[key]));\n }, null);\n };\n\n var INVALID_STRIPE_ERROR$2 = 'Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.'; // We are using types to enforce the `stripe` prop in this lib, but in a real\n // integration `stripe` could be anything, so we need to do some sanity\n // validation to prevent type errors.\n\n var validateStripe = function validateStripe(maybeStripe) {\n var errorMsg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : INVALID_STRIPE_ERROR$2;\n\n if (maybeStripe === null || isStripe(maybeStripe)) {\n return maybeStripe;\n }\n\n throw new Error(errorMsg);\n };\n\n var parseStripeProp = function parseStripeProp(raw) {\n var errorMsg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : INVALID_STRIPE_ERROR$2;\n\n if (isPromise(raw)) {\n return {\n tag: 'async',\n stripePromise: Promise.resolve(raw).then(function (result) {\n return validateStripe(result, errorMsg);\n })\n };\n }\n\n var stripe = validateStripe(raw, errorMsg);\n\n if (stripe === null) {\n return {\n tag: 'empty'\n };\n }\n\n return {\n tag: 'sync',\n stripe: stripe\n };\n };\n\n var registerWithStripeJs = function registerWithStripeJs(stripe) {\n if (!stripe || !stripe._registerWrapper || !stripe.registerAppInfo) {\n return;\n }\n\n stripe._registerWrapper({\n name: 'react-stripe-js',\n version: \"3.1.0\"\n });\n\n stripe.registerAppInfo({\n name: 'react-stripe-js',\n version: \"3.1.0\",\n url: 'https://stripe.com/docs/stripe-js/react'\n });\n };\n\n var ElementsContext = /*#__PURE__*/React.createContext(null);\n ElementsContext.displayName = 'ElementsContext';\n var parseElementsContext = function parseElementsContext(ctx, useCase) {\n if (!ctx) {\n throw new Error(\"Could not find Elements context; You need to wrap the part of your app that \".concat(useCase, \" in an provider.\"));\n }\n\n return ctx;\n };\n /**\n * The `Elements` provider allows you to use [Element components](https://stripe.com/docs/stripe-js/react#element-components) and access the [Stripe object](https://stripe.com/docs/js/initializing) in any nested component.\n * Render an `Elements` provider at the root of your React app so that it is available everywhere you need it.\n *\n * To use the `Elements` provider, call `loadStripe` from `@stripe/stripe-js` with your publishable key.\n * The `loadStripe` function will asynchronously load the Stripe.js script and initialize a `Stripe` object.\n * Pass the returned `Promise` to `Elements`.\n *\n * @docs https://stripe.com/docs/stripe-js/react#elements-provider\n */\n\n var Elements = function Elements(_ref) {\n var rawStripeProp = _ref.stripe,\n options = _ref.options,\n children = _ref.children;\n var parsed = React.useMemo(function () {\n return parseStripeProp(rawStripeProp);\n }, [rawStripeProp]); // For a sync stripe instance, initialize into context\n\n var _React$useState = React.useState(function () {\n return {\n stripe: parsed.tag === 'sync' ? parsed.stripe : null,\n elements: parsed.tag === 'sync' ? parsed.stripe.elements(options) : null\n };\n }),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n ctx = _React$useState2[0],\n setContext = _React$useState2[1];\n\n React.useEffect(function () {\n var isMounted = true;\n\n var safeSetContext = function safeSetContext(stripe) {\n setContext(function (ctx) {\n // no-op if we already have a stripe instance (https://github.com/stripe/react-stripe-js/issues/296)\n if (ctx.stripe) return ctx;\n return {\n stripe: stripe,\n elements: stripe.elements(options)\n };\n });\n }; // For an async stripePromise, store it in context once resolved\n\n\n if (parsed.tag === 'async' && !ctx.stripe) {\n parsed.stripePromise.then(function (stripe) {\n if (stripe && isMounted) {\n // Only update Elements context if the component is still mounted\n // and stripe is not null. We allow stripe to be null to make\n // handling SSR easier.\n safeSetContext(stripe);\n }\n });\n } else if (parsed.tag === 'sync' && !ctx.stripe) {\n // Or, handle a sync stripe instance going from null -> populated\n safeSetContext(parsed.stripe);\n }\n\n return function () {\n isMounted = false;\n };\n }, [parsed, ctx, options]); // Warn on changes to stripe prop\n\n var prevStripe = usePrevious(rawStripeProp);\n React.useEffect(function () {\n if (prevStripe !== null && prevStripe !== rawStripeProp) {\n console.warn('Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.');\n }\n }, [prevStripe, rawStripeProp]); // Apply updates to elements when options prop has relevant changes\n\n var prevOptions = usePrevious(options);\n React.useEffect(function () {\n if (!ctx.elements) {\n return;\n }\n\n var updates = extractAllowedOptionsUpdates(options, prevOptions, ['clientSecret', 'fonts']);\n\n if (updates) {\n ctx.elements.update(updates);\n }\n }, [options, prevOptions, ctx.elements]); // Attach react-stripe-js version to stripe.js instance\n\n React.useEffect(function () {\n registerWithStripeJs(ctx.stripe);\n }, [ctx.stripe]);\n return /*#__PURE__*/React.createElement(ElementsContext.Provider, {\n value: ctx\n }, children);\n };\n Elements.propTypes = {\n stripe: PropTypes.any,\n options: PropTypes.object\n };\n var useElementsContextWithUseCase = function useElementsContextWithUseCase(useCaseMessage) {\n var ctx = React.useContext(ElementsContext);\n return parseElementsContext(ctx, useCaseMessage);\n };\n /**\n * @docs https://stripe.com/docs/stripe-js/react#useelements-hook\n */\n\n var useElements = function useElements() {\n var _useElementsContextWi = useElementsContextWithUseCase('calls useElements()'),\n elements = _useElementsContextWi.elements;\n\n return elements;\n };\n /**\n * @docs https://stripe.com/docs/stripe-js/react#elements-consumer\n */\n\n var ElementsConsumer = function ElementsConsumer(_ref2) {\n var children = _ref2.children;\n var ctx = useElementsContextWithUseCase('mounts '); // Assert to satisfy the busted React.FC return type (it should be ReactNode)\n\n return children(ctx);\n };\n ElementsConsumer.propTypes = {\n children: PropTypes.func.isRequired\n };\n\n var _excluded = [\"on\", \"session\"];\n var CheckoutSdkContext = /*#__PURE__*/React.createContext(null);\n CheckoutSdkContext.displayName = 'CheckoutSdkContext';\n var parseCheckoutSdkContext = function parseCheckoutSdkContext(ctx, useCase) {\n if (!ctx) {\n throw new Error(\"Could not find CheckoutProvider context; You need to wrap the part of your app that \".concat(useCase, \" in an provider.\"));\n }\n\n return ctx;\n };\n var CheckoutContext = /*#__PURE__*/React.createContext(null);\n CheckoutContext.displayName = 'CheckoutContext';\n var extractCheckoutContextValue = function extractCheckoutContextValue(checkoutSdk, sessionState) {\n if (!checkoutSdk) {\n return null;\n }\n\n checkoutSdk.on;\n checkoutSdk.session;\n var actions = _objectWithoutProperties(checkoutSdk, _excluded);\n\n if (!sessionState) {\n return _objectSpread2(_objectSpread2({}, actions), checkoutSdk.session());\n }\n\n return _objectSpread2(_objectSpread2({}, actions), sessionState);\n };\n var INVALID_STRIPE_ERROR$1 = 'Invalid prop `stripe` supplied to `CheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.';\n var CheckoutProvider = function CheckoutProvider(_ref) {\n var rawStripeProp = _ref.stripe,\n options = _ref.options,\n children = _ref.children;\n var parsed = React.useMemo(function () {\n return parseStripeProp(rawStripeProp, INVALID_STRIPE_ERROR$1);\n }, [rawStripeProp]); // State used to trigger a re-render when sdk.session is updated\n\n var _React$useState = React.useState(null),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n session = _React$useState2[0],\n setSession = _React$useState2[1];\n\n var _React$useState3 = React.useState(function () {\n return {\n stripe: parsed.tag === 'sync' ? parsed.stripe : null,\n checkoutSdk: null\n };\n }),\n _React$useState4 = _slicedToArray(_React$useState3, 2),\n ctx = _React$useState4[0],\n setContext = _React$useState4[1];\n\n var safeSetContext = function safeSetContext(stripe, checkoutSdk) {\n setContext(function (ctx) {\n if (ctx.stripe && ctx.checkoutSdk) {\n return ctx;\n }\n\n return {\n stripe: stripe,\n checkoutSdk: checkoutSdk\n };\n });\n }; // Ref used to avoid calling initCheckout multiple times when options changes\n\n\n var initCheckoutCalledRef = React.useRef(false);\n React.useEffect(function () {\n var isMounted = true;\n\n if (parsed.tag === 'async' && !ctx.stripe) {\n parsed.stripePromise.then(function (stripe) {\n if (stripe && isMounted && !initCheckoutCalledRef.current) {\n // Only update context if the component is still mounted\n // and stripe is not null. We allow stripe to be null to make\n // handling SSR easier.\n initCheckoutCalledRef.current = true;\n stripe.initCheckout(options).then(function (checkoutSdk) {\n if (checkoutSdk) {\n safeSetContext(stripe, checkoutSdk);\n checkoutSdk.on('change', setSession);\n }\n });\n }\n });\n } else if (parsed.tag === 'sync' && parsed.stripe && !initCheckoutCalledRef.current) {\n initCheckoutCalledRef.current = true;\n parsed.stripe.initCheckout(options).then(function (checkoutSdk) {\n if (checkoutSdk) {\n safeSetContext(parsed.stripe, checkoutSdk);\n checkoutSdk.on('change', setSession);\n }\n });\n }\n\n return function () {\n isMounted = false;\n };\n }, [parsed, ctx, options, setSession]); // Warn on changes to stripe prop\n\n var prevStripe = usePrevious(rawStripeProp);\n React.useEffect(function () {\n if (prevStripe !== null && prevStripe !== rawStripeProp) {\n console.warn('Unsupported prop change on CheckoutProvider: You cannot change the `stripe` prop after setting it.');\n }\n }, [prevStripe, rawStripeProp]); // Apply updates to elements when options prop has relevant changes\n\n var prevOptions = usePrevious(options);\n React.useEffect(function () {\n var _prevOptions$elements, _options$elementsOpti;\n\n if (!ctx.checkoutSdk) {\n return;\n }\n\n if (options.clientSecret && !isUnknownObject(prevOptions) && !isEqual(options.clientSecret, prevOptions.clientSecret)) {\n console.warn('Unsupported prop change: options.clientSecret is not a mutable property.');\n }\n\n var previousAppearance = prevOptions === null || prevOptions === void 0 ? void 0 : (_prevOptions$elements = prevOptions.elementsOptions) === null || _prevOptions$elements === void 0 ? void 0 : _prevOptions$elements.appearance;\n var currentAppearance = options === null || options === void 0 ? void 0 : (_options$elementsOpti = options.elementsOptions) === null || _options$elementsOpti === void 0 ? void 0 : _options$elementsOpti.appearance;\n\n if (currentAppearance && !isEqual(currentAppearance, previousAppearance)) {\n ctx.checkoutSdk.changeAppearance(currentAppearance);\n }\n }, [options, prevOptions, ctx.checkoutSdk]); // Attach react-stripe-js version to stripe.js instance\n\n React.useEffect(function () {\n registerWithStripeJs(ctx.stripe);\n }, [ctx.stripe]);\n var checkoutContextValue = React.useMemo(function () {\n return extractCheckoutContextValue(ctx.checkoutSdk, session);\n }, [ctx.checkoutSdk, session]);\n\n if (!ctx.checkoutSdk) {\n return null;\n }\n\n return /*#__PURE__*/React.createElement(CheckoutSdkContext.Provider, {\n value: ctx\n }, /*#__PURE__*/React.createElement(CheckoutContext.Provider, {\n value: checkoutContextValue\n }, children));\n };\n CheckoutProvider.propTypes = {\n stripe: PropTypes.any,\n options: PropTypes.shape({\n clientSecret: PropTypes.string.isRequired,\n elementsOptions: PropTypes.object\n }).isRequired\n };\n var useCheckoutSdkContextWithUseCase = function useCheckoutSdkContextWithUseCase(useCaseString) {\n var ctx = React.useContext(CheckoutSdkContext);\n return parseCheckoutSdkContext(ctx, useCaseString);\n };\n var useElementsOrCheckoutSdkContextWithUseCase = function useElementsOrCheckoutSdkContextWithUseCase(useCaseString) {\n var checkoutSdkContext = React.useContext(CheckoutSdkContext);\n var elementsContext = React.useContext(ElementsContext);\n\n if (checkoutSdkContext && elementsContext) {\n throw new Error(\"You cannot wrap the part of your app that \".concat(useCaseString, \" in both and providers.\"));\n }\n\n if (checkoutSdkContext) {\n return parseCheckoutSdkContext(checkoutSdkContext, useCaseString);\n }\n\n return parseElementsContext(elementsContext, useCaseString);\n };\n var useCheckout = function useCheckout() {\n // ensure it's in CheckoutProvider\n useCheckoutSdkContextWithUseCase('calls useCheckout()');\n var ctx = React.useContext(CheckoutContext);\n\n if (!ctx) {\n throw new Error('Could not find Checkout Context; You need to wrap the part of your app that calls useCheckout() in an provider.');\n }\n\n return ctx;\n };\n\n var capitalized = function capitalized(str) {\n return str.charAt(0).toUpperCase() + str.slice(1);\n };\n\n var createElementComponent = function createElementComponent(type, isServer) {\n var displayName = \"\".concat(capitalized(type), \"Element\");\n\n var ClientElement = function ClientElement(_ref) {\n var id = _ref.id,\n className = _ref.className,\n _ref$options = _ref.options,\n options = _ref$options === void 0 ? {} : _ref$options,\n onBlur = _ref.onBlur,\n onFocus = _ref.onFocus,\n onReady = _ref.onReady,\n onChange = _ref.onChange,\n onEscape = _ref.onEscape,\n onClick = _ref.onClick,\n onLoadError = _ref.onLoadError,\n onLoaderStart = _ref.onLoaderStart,\n onNetworksChange = _ref.onNetworksChange,\n onConfirm = _ref.onConfirm,\n onCancel = _ref.onCancel,\n onShippingAddressChange = _ref.onShippingAddressChange,\n onShippingRateChange = _ref.onShippingRateChange;\n var ctx = useElementsOrCheckoutSdkContextWithUseCase(\"mounts <\".concat(displayName, \">\"));\n var elements = 'elements' in ctx ? ctx.elements : null;\n var checkoutSdk = 'checkoutSdk' in ctx ? ctx.checkoutSdk : null;\n\n var _React$useState = React.useState(null),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n element = _React$useState2[0],\n setElement = _React$useState2[1];\n\n var elementRef = React.useRef(null);\n var domNode = React.useRef(null); // For every event where the merchant provides a callback, call element.on\n // with that callback. If the merchant ever changes the callback, removes\n // the old callback with element.off and then call element.on with the new one.\n\n useAttachEvent(element, 'blur', onBlur);\n useAttachEvent(element, 'focus', onFocus);\n useAttachEvent(element, 'escape', onEscape);\n useAttachEvent(element, 'click', onClick);\n useAttachEvent(element, 'loaderror', onLoadError);\n useAttachEvent(element, 'loaderstart', onLoaderStart);\n useAttachEvent(element, 'networkschange', onNetworksChange);\n useAttachEvent(element, 'confirm', onConfirm);\n useAttachEvent(element, 'cancel', onCancel);\n useAttachEvent(element, 'shippingaddresschange', onShippingAddressChange);\n useAttachEvent(element, 'shippingratechange', onShippingRateChange);\n useAttachEvent(element, 'change', onChange);\n var readyCallback;\n\n if (onReady) {\n if (type === 'expressCheckout') {\n // Passes through the event, which includes visible PM types\n readyCallback = onReady;\n } else {\n // For other Elements, pass through the Element itself.\n readyCallback = function readyCallback() {\n onReady(element);\n };\n }\n }\n\n useAttachEvent(element, 'ready', readyCallback);\n React.useLayoutEffect(function () {\n if (elementRef.current === null && domNode.current !== null && (elements || checkoutSdk)) {\n var newElement = null;\n\n if (checkoutSdk) {\n newElement = checkoutSdk.createElement(type, options);\n } else if (elements) {\n newElement = elements.create(type, options);\n } // Store element in a ref to ensure it's _immediately_ available in cleanup hooks in StrictMode\n\n\n elementRef.current = newElement; // Store element in state to facilitate event listener attachment\n\n setElement(newElement);\n\n if (newElement) {\n newElement.mount(domNode.current);\n }\n }\n }, [elements, checkoutSdk, options]);\n var prevOptions = usePrevious(options);\n React.useEffect(function () {\n if (!elementRef.current) {\n return;\n }\n\n var updates = extractAllowedOptionsUpdates(options, prevOptions, ['paymentRequest']);\n\n if (updates && 'update' in elementRef.current) {\n elementRef.current.update(updates);\n }\n }, [options, prevOptions]);\n React.useLayoutEffect(function () {\n return function () {\n if (elementRef.current && typeof elementRef.current.destroy === 'function') {\n try {\n elementRef.current.destroy();\n elementRef.current = null;\n } catch (error) {// Do nothing\n }\n }\n };\n }, []);\n return /*#__PURE__*/React.createElement(\"div\", {\n id: id,\n className: className,\n ref: domNode\n });\n }; // Only render the Element wrapper in a server environment.\n\n\n var ServerElement = function ServerElement(props) {\n useElementsOrCheckoutSdkContextWithUseCase(\"mounts <\".concat(displayName, \">\"));\n var id = props.id,\n className = props.className;\n return /*#__PURE__*/React.createElement(\"div\", {\n id: id,\n className: className\n });\n };\n\n var Element = isServer ? ServerElement : ClientElement;\n Element.propTypes = {\n id: PropTypes.string,\n className: PropTypes.string,\n onChange: PropTypes.func,\n onBlur: PropTypes.func,\n onFocus: PropTypes.func,\n onReady: PropTypes.func,\n onEscape: PropTypes.func,\n onClick: PropTypes.func,\n onLoadError: PropTypes.func,\n onLoaderStart: PropTypes.func,\n onNetworksChange: PropTypes.func,\n onConfirm: PropTypes.func,\n onCancel: PropTypes.func,\n onShippingAddressChange: PropTypes.func,\n onShippingRateChange: PropTypes.func,\n options: PropTypes.object\n };\n Element.displayName = displayName;\n Element.__elementType = type;\n return Element;\n };\n\n var isServer = typeof window === 'undefined';\n\n var EmbeddedCheckoutContext = /*#__PURE__*/React.createContext(null);\n EmbeddedCheckoutContext.displayName = 'EmbeddedCheckoutProviderContext';\n var useEmbeddedCheckoutContext = function useEmbeddedCheckoutContext() {\n var ctx = React.useContext(EmbeddedCheckoutContext);\n\n if (!ctx) {\n throw new Error(' must be used within ');\n }\n\n return ctx;\n };\n var INVALID_STRIPE_ERROR = 'Invalid prop `stripe` supplied to `EmbeddedCheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.';\n var EmbeddedCheckoutProvider = function EmbeddedCheckoutProvider(_ref) {\n var rawStripeProp = _ref.stripe,\n options = _ref.options,\n children = _ref.children;\n var parsed = React.useMemo(function () {\n return parseStripeProp(rawStripeProp, INVALID_STRIPE_ERROR);\n }, [rawStripeProp]);\n var embeddedCheckoutPromise = React.useRef(null);\n var loadedStripe = React.useRef(null);\n\n var _React$useState = React.useState({\n embeddedCheckout: null\n }),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n ctx = _React$useState2[0],\n setContext = _React$useState2[1];\n\n React.useEffect(function () {\n // Don't support any ctx updates once embeddedCheckout or stripe is set.\n if (loadedStripe.current || embeddedCheckoutPromise.current) {\n return;\n }\n\n var setStripeAndInitEmbeddedCheckout = function setStripeAndInitEmbeddedCheckout(stripe) {\n if (loadedStripe.current || embeddedCheckoutPromise.current) return;\n loadedStripe.current = stripe;\n embeddedCheckoutPromise.current = loadedStripe.current.initEmbeddedCheckout(options).then(function (embeddedCheckout) {\n setContext({\n embeddedCheckout: embeddedCheckout\n });\n });\n }; // For an async stripePromise, store it once resolved\n\n\n if (parsed.tag === 'async' && !loadedStripe.current && (options.clientSecret || options.fetchClientSecret)) {\n parsed.stripePromise.then(function (stripe) {\n if (stripe) {\n setStripeAndInitEmbeddedCheckout(stripe);\n }\n });\n } else if (parsed.tag === 'sync' && !loadedStripe.current && (options.clientSecret || options.fetchClientSecret)) {\n // Or, handle a sync stripe instance going from null -> populated\n setStripeAndInitEmbeddedCheckout(parsed.stripe);\n }\n }, [parsed, options, ctx, loadedStripe]);\n React.useEffect(function () {\n // cleanup on unmount\n return function () {\n // If embedded checkout is fully initialized, destroy it.\n if (ctx.embeddedCheckout) {\n embeddedCheckoutPromise.current = null;\n ctx.embeddedCheckout.destroy();\n } else if (embeddedCheckoutPromise.current) {\n // If embedded checkout is still initializing, destroy it once\n // it's done. This could be caused by unmounting very quickly\n // after mounting.\n embeddedCheckoutPromise.current.then(function () {\n embeddedCheckoutPromise.current = null;\n\n if (ctx.embeddedCheckout) {\n ctx.embeddedCheckout.destroy();\n }\n });\n }\n };\n }, [ctx.embeddedCheckout]); // Attach react-stripe-js version to stripe.js instance\n\n React.useEffect(function () {\n registerWithStripeJs(loadedStripe);\n }, [loadedStripe]); // Warn on changes to stripe prop.\n // The stripe prop value can only go from null to non-null once and\n // can't be changed after that.\n\n var prevStripe = usePrevious(rawStripeProp);\n React.useEffect(function () {\n if (prevStripe !== null && prevStripe !== rawStripeProp) {\n console.warn('Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the `stripe` prop after setting it.');\n }\n }, [prevStripe, rawStripeProp]); // Warn on changes to options.\n\n var prevOptions = usePrevious(options);\n React.useEffect(function () {\n if (prevOptions == null) {\n return;\n }\n\n if (options == null) {\n console.warn('Unsupported prop change on EmbeddedCheckoutProvider: You cannot unset options after setting them.');\n return;\n }\n\n if (options.clientSecret === undefined && options.fetchClientSecret === undefined) {\n console.warn('Invalid props passed to EmbeddedCheckoutProvider: You must provide one of either `options.fetchClientSecret` or `options.clientSecret`.');\n }\n\n if (prevOptions.clientSecret != null && options.clientSecret !== prevOptions.clientSecret) {\n console.warn('Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the client secret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead.');\n }\n\n if (prevOptions.fetchClientSecret != null && options.fetchClientSecret !== prevOptions.fetchClientSecret) {\n console.warn('Unsupported prop change on EmbeddedCheckoutProvider: You cannot change fetchClientSecret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead.');\n }\n\n if (prevOptions.onComplete != null && options.onComplete !== prevOptions.onComplete) {\n console.warn('Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onComplete option after setting it.');\n }\n\n if (prevOptions.onShippingDetailsChange != null && options.onShippingDetailsChange !== prevOptions.onShippingDetailsChange) {\n console.warn('Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onShippingDetailsChange option after setting it.');\n }\n\n if (prevOptions.onLineItemsChange != null && options.onLineItemsChange !== prevOptions.onLineItemsChange) {\n console.warn('Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onLineItemsChange option after setting it.');\n }\n }, [prevOptions, options]);\n return /*#__PURE__*/React.createElement(EmbeddedCheckoutContext.Provider, {\n value: ctx\n }, children);\n };\n\n var EmbeddedCheckoutClientElement = function EmbeddedCheckoutClientElement(_ref) {\n var id = _ref.id,\n className = _ref.className;\n\n var _useEmbeddedCheckoutC = useEmbeddedCheckoutContext(),\n embeddedCheckout = _useEmbeddedCheckoutC.embeddedCheckout;\n\n var isMounted = React.useRef(false);\n var domNode = React.useRef(null);\n React.useLayoutEffect(function () {\n if (!isMounted.current && embeddedCheckout && domNode.current !== null) {\n embeddedCheckout.mount(domNode.current);\n isMounted.current = true;\n } // Clean up on unmount\n\n\n return function () {\n if (isMounted.current && embeddedCheckout) {\n try {\n embeddedCheckout.unmount();\n isMounted.current = false;\n } catch (e) {// Do nothing.\n // Parent effects are destroyed before child effects, so\n // in cases where both the EmbeddedCheckoutProvider and\n // the EmbeddedCheckout component are removed at the same\n // time, the embeddedCheckout instance will be destroyed,\n // which causes an error when calling unmount.\n }\n }\n };\n }, [embeddedCheckout]);\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: domNode,\n id: id,\n className: className\n });\n }; // Only render the wrapper in a server environment.\n\n\n var EmbeddedCheckoutServerElement = function EmbeddedCheckoutServerElement(_ref2) {\n var id = _ref2.id,\n className = _ref2.className;\n // Validate that we are in the right context by calling useEmbeddedCheckoutContext.\n useEmbeddedCheckoutContext();\n return /*#__PURE__*/React.createElement(\"div\", {\n id: id,\n className: className\n });\n };\n\n var EmbeddedCheckout = isServer ? EmbeddedCheckoutServerElement : EmbeddedCheckoutClientElement;\n\n /**\n * @docs https://stripe.com/docs/stripe-js/react#usestripe-hook\n */\n\n var useStripe = function useStripe() {\n var _useElementsOrCheckou = useElementsOrCheckoutSdkContextWithUseCase('calls useStripe()'),\n stripe = _useElementsOrCheckou.stripe;\n\n return stripe;\n };\n\n /**\n * Requires beta access:\n * Contact [Stripe support](https://support.stripe.com/) for more information.\n *\n * @docs https://stripe.com/docs/stripe-js/react#element-components\n */\n\n var AuBankAccountElement = createElementComponent('auBankAccount', isServer);\n /**\n * @docs https://stripe.com/docs/stripe-js/react#element-components\n */\n\n var CardElement = createElementComponent('card', isServer);\n /**\n * @docs https://stripe.com/docs/stripe-js/react#element-components\n */\n\n var CardNumberElement = createElementComponent('cardNumber', isServer);\n /**\n * @docs https://stripe.com/docs/stripe-js/react#element-components\n */\n\n var CardExpiryElement = createElementComponent('cardExpiry', isServer);\n /**\n * @docs https://stripe.com/docs/stripe-js/react#element-components\n */\n\n var CardCvcElement = createElementComponent('cardCvc', isServer);\n /**\n * @docs https://stripe.com/docs/stripe-js/react#element-components\n */\n\n var FpxBankElement = createElementComponent('fpxBank', isServer);\n /**\n * @docs https://stripe.com/docs/stripe-js/react#element-components\n */\n\n var IbanElement = createElementComponent('iban', isServer);\n /**\n * @docs https://stripe.com/docs/stripe-js/react#element-components\n */\n\n var IdealBankElement = createElementComponent('idealBank', isServer);\n /**\n * @docs https://stripe.com/docs/stripe-js/react#element-components\n */\n\n var P24BankElement = createElementComponent('p24Bank', isServer);\n /**\n * @docs https://stripe.com/docs/stripe-js/react#element-components\n */\n\n var EpsBankElement = createElementComponent('epsBank', isServer);\n var PaymentElement = createElementComponent('payment', isServer);\n /**\n * @docs https://stripe.com/docs/stripe-js/react#element-components\n */\n\n var ExpressCheckoutElement = createElementComponent('expressCheckout', isServer);\n /**\n * Requires beta access:\n * Contact [Stripe support](https://support.stripe.com/) for more information.\n */\n\n var CurrencySelectorElement = createElementComponent('currencySelector', isServer);\n /**\n * @docs https://stripe.com/docs/stripe-js/react#element-components\n */\n\n var PaymentRequestButtonElement = createElementComponent('paymentRequestButton', isServer);\n /**\n * @docs https://stripe.com/docs/stripe-js/react#element-components\n */\n\n var LinkAuthenticationElement = createElementComponent('linkAuthentication', isServer);\n /**\n * @docs https://stripe.com/docs/stripe-js/react#element-components\n */\n\n var AddressElement = createElementComponent('address', isServer);\n /**\n * @deprecated\n * Use `AddressElement` instead.\n *\n * @docs https://stripe.com/docs/stripe-js/react#element-components\n */\n\n var ShippingAddressElement = createElementComponent('shippingAddress', isServer);\n /**\n * @docs https://stripe.com/docs/stripe-js/react#element-components\n */\n\n var PaymentMethodMessagingElement = createElementComponent('paymentMethodMessaging', isServer);\n /**\n * @docs https://stripe.com/docs/stripe-js/react#element-components\n */\n\n var AffirmMessageElement = createElementComponent('affirmMessage', isServer);\n /**\n * @docs https://stripe.com/docs/stripe-js/react#element-components\n */\n\n var AfterpayClearpayMessageElement = createElementComponent('afterpayClearpayMessage', isServer);\n\n exports.AddressElement = AddressElement;\n exports.AffirmMessageElement = AffirmMessageElement;\n exports.AfterpayClearpayMessageElement = AfterpayClearpayMessageElement;\n exports.AuBankAccountElement = AuBankAccountElement;\n exports.CardCvcElement = CardCvcElement;\n exports.CardElement = CardElement;\n exports.CardExpiryElement = CardExpiryElement;\n exports.CardNumberElement = CardNumberElement;\n exports.CheckoutProvider = CheckoutProvider;\n exports.CurrencySelectorElement = CurrencySelectorElement;\n exports.Elements = Elements;\n exports.ElementsConsumer = ElementsConsumer;\n exports.EmbeddedCheckout = EmbeddedCheckout;\n exports.EmbeddedCheckoutProvider = EmbeddedCheckoutProvider;\n exports.EpsBankElement = EpsBankElement;\n exports.ExpressCheckoutElement = ExpressCheckoutElement;\n exports.FpxBankElement = FpxBankElement;\n exports.IbanElement = IbanElement;\n exports.IdealBankElement = IdealBankElement;\n exports.LinkAuthenticationElement = LinkAuthenticationElement;\n exports.P24BankElement = P24BankElement;\n exports.PaymentElement = PaymentElement;\n exports.PaymentMethodMessagingElement = PaymentMethodMessagingElement;\n exports.PaymentRequestButtonElement = PaymentRequestButtonElement;\n exports.ShippingAddressElement = ShippingAddressElement;\n exports.useCheckout = useCheckout;\n exports.useElements = useElements;\n exports.useStripe = useStripe;\n\n}));\n", "/** @license React v16.13.1\n * react-is.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';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n", "'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n", "'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;\n\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\n return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;\n}\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\n if (inheritedComponent && inheritedComponent !== objectPrototype) {\n hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);\n }\n }\n\n var keys = getOwnPropertyNames(sourceComponent);\n\n if (getOwnPropertySymbols) {\n keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n }\n\n var targetStatics = getStatics(targetComponent);\n var sourceStatics = getStatics(sourceComponent);\n\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n\n if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {\n var descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n\n try {\n // Avoid failures from read-only properties\n defineProperty(targetComponent, key, descriptor);\n } catch (e) {}\n }\n }\n }\n\n return targetComponent;\n}\n\nmodule.exports = hoistNonReactStatics;\n", "/**\n * Copyright (c) 2013-present, Facebook, Inc.\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 ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n", "/**\n * Copyright (c) 2013-present, Facebook, Inc.\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 ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n", "/**\n * Copyright (c) 2013-present, Facebook, Inc.\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\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n", "import {EmbeddingEvent, TargetedMessageEvent} from '@common/events/events';\nimport {Parameter} from '../../../types';\nimport {Datapoint} from '@experience/dashboard-experience/types';\n\nexport const InfoMessageEventName = {\n CALLBACK_OPERATION_INVOKED: 'CALLBACK_OPERATION_INVOKED',\n CONTENT_LOADED: 'CONTENT_LOADED',\n EXPERIENCE_INITIALIZED: 'EXPERIENCE_INITIALIZED',\n ERROR_OCCURRED: 'ERROR_OCCURRED',\n SIZE_CHANGED: 'SIZE_CHANGED',\n PARAMETERS_CHANGED: 'PARAMETERS_CHANGED',\n SELECTED_SHEET_CHANGED: 'SELECTED_SHEET_CHANGED',\n MODAL_OPENED: 'MODAL_OPENED',\n Q_SEARCH_CLOSED: 'Q_SEARCH_CLOSED',\n Q_SEARCH_OPENED: 'Q_SEARCH_OPENED',\n Q_SEARCH_FOCUSED: 'Q_SEARCH_FOCUSED',\n Q_SEARCH_SIZE_CHANGED: 'Q_SEARCH_SIZE_CHANGED',\n Q_SEARCH_ENTERED_FULLSCREEN: 'Q_SEARCH_ENTERED_FULLSCREEN',\n Q_SEARCH_EXITED_FULLSCREEN: 'Q_SEARCH_EXITED_FULLSCREEN',\n Q_PANEL_ENTERED_FULLSCREEN: 'Q_PANEL_ENTERED_FULLSCREEN',\n Q_PANEL_EXITED_FULLSCREEN: 'Q_PANEL_EXITED_FULLSCREEN',\n PAGE_NAVIGATION: 'PAGE_NAVIGATION',\n} as const;\n\nexport type InfoMessageEventName = (typeof InfoMessageEventName)[keyof typeof InfoMessageEventName];\n\nexport type InfoMessageEvents =\n | EmbeddingEvent\n | EmbeddingEvent<\n typeof InfoMessageEventName.CALLBACK_OPERATION_INVOKED,\n {\n CustomActionId: string;\n DashboardId: string;\n VisualId: string;\n SheetId: string;\n Datapoints: Datapoint[];\n }\n >\n | EmbeddingEvent\n | TargetedMessageEvent\n | EmbeddingEvent\n | EmbeddingEvent\n | EmbeddingEvent<\n typeof InfoMessageEventName.PARAMETERS_CHANGED,\n {\n changedParameters: Parameter[];\n }\n >\n | EmbeddingEvent<\n typeof InfoMessageEventName.SELECTED_SHEET_CHANGED,\n {selectedSheet: {Name?: string; SheetId: string}}\n >\n | EmbeddingEvent\n | EmbeddingEvent\n | EmbeddingEvent\n | EmbeddingEvent\n | EmbeddingEvent\n | EmbeddingEvent\n | EmbeddingEvent\n | EmbeddingEvent\n | EmbeddingEvent;\n", "import {ChangeEvent} from '@common/events/events';\n\nexport const InfoChangeEventName = {\n FRAME_STARTED: 'FRAME_STARTED',\n FRAME_MOUNTED: 'FRAME_MOUNTED',\n FRAME_LOADED: 'FRAME_LOADED',\n FRAME_REMOVED: 'FRAME_REMOVED',\n} as const;\n\nexport type InfoChangeEventName = (typeof InfoChangeEventName)[keyof typeof InfoChangeEventName];\n\nexport const ErrorChangeEventName = {\n FRAME_NOT_CREATED: 'FRAME_NOT_CREATED',\n NO_BODY: 'NO_BODY',\n NO_CONTAINER: 'NO_CONTAINER',\n INVALID_CONTAINER: 'INVALID_CONTAINER',\n NO_URL: 'NO_URL',\n INVALID_URL: 'INVALID_URL',\n NO_FRAME_OPTIONS: 'NO_FRAME_OPTIONS',\n INVALID_FRAME_OPTIONS: 'INVALID_FRAME_OPTIONS',\n} as const;\n\nexport type ErrorChangeEventName = (typeof ErrorChangeEventName)[keyof typeof ErrorChangeEventName];\n\nexport const WarnChangeEventName = {\n UNRECOGNIZED_CONTENT_OPTIONS: 'UNRECOGNIZED_CONTENT_OPTIONS',\n UNRECOGNIZED_FRAME_OPTIONS: 'UNRECOGNIZED_FRAME_OPTIONS',\n UNRECOGNIZED_EVENT_TARGET: 'UNRECOGNIZED_EVENT_TARGET',\n} as const;\n\nexport type WarnChangeEventName = (typeof WarnChangeEventName)[keyof typeof WarnChangeEventName];\n\nexport type ChangeMessageEvents =\n | ChangeEvent\n | ChangeEvent\n | ChangeEvent\n | ChangeEvent\n | ChangeEvent\n | ChangeEvent\n | ChangeEvent\n | ChangeEvent\n | ChangeEvent\n | ChangeEvent\n | ChangeEvent\n | ChangeEvent\n | ChangeEvent\n | ChangeEvent\n | ChangeEvent;\n", "import {EmbeddingMessageEvent} from '@common/events/events';\nimport {Parameter} from '../../../types';\nimport {VisualAction} from '@experience/dashboard-experience/types';\nimport type {FilterGroup, ThemeConfiguration} from '@aws-sdk/client-quicksight';\n\nexport const SetterMessageEventName = {\n SET_PARAMETERS: 'SET_PARAMETERS',\n SET_SELECTED_SHEET_ID: 'SET_SELECTED_SHEET_ID',\n SET_Q_SEARCH_QUESTION: 'SET_Q_SEARCH_QUESTION',\n SET_VISUAL_ACTIONS: 'SET_VISUAL_ACTIONS',\n SET_THEME: 'SET_THEME',\n ADD_FILTER_GROUPS: 'ADD_FILTER_GROUPS',\n UPDATE_FILTER_GROUPS: 'UPDATE_FILTER_GROUPS',\n REMOVE_FILTER_GROUPS: 'REMOVE_FILTER_GROUPS',\n ADD_VISUAL_ACTIONS: 'ADD_VISUAL_ACTIONS',\n REMOVE_VISUAL_ACTIONS: 'REMOVE_VISUAL_ACTIONS',\n SET_THEME_OVERRIDE: 'SET_THEME_OVERRIDE',\n PRELOAD_THEMES: 'PRELOAD_THEMES',\n CREATE_SHARED_VIEW: 'CREATE_SHARED_VIEW',\n} as const;\n\nexport type SetterMessageEventName = (typeof SetterMessageEventName)[keyof typeof SetterMessageEventName];\n\nexport type SetterMessageEvents =\n | EmbeddingMessageEvent\n | EmbeddingMessageEvent\n | EmbeddingMessageEvent\n | EmbeddingMessageEvent\n | EmbeddingMessageEvent\n | EmbeddingMessageEvent\n | EmbeddingMessageEvent\n | EmbeddingMessageEvent\n | EmbeddingMessageEvent\n | EmbeddingMessageEvent\n | EmbeddingMessageEvent\n | EmbeddingMessageEvent\n | EmbeddingMessageEvent;\n", "import {EmbeddingEvent} from '@common/events/events';\nimport {Parameter} from '../../../types';\nimport {Sheet, Visual, VisualAction} from '@experience/dashboard-experience/types';\nimport type {FilterGroup} from '@aws-sdk/client-quicksight';\n\nexport const GetterMessageEventName = {\n GET_PARAMETERS: 'GET_PARAMETERS',\n GET_SHEETS: 'GET_SHEETS',\n GET_SHEET_VISUALS: 'GET_SHEET_VISUALS',\n GET_VISUAL_ACTIONS: 'GET_VISUAL_ACTIONS',\n GET_SELECTED_SHEET_ID: 'GET_SELECTED_SHEET_ID',\n GET_FILTER_GROUPS_FOR_SHEET: 'GET_FILTER_GROUPS_FOR_SHEET',\n GET_FILTER_GROUPS_FOR_VISUAL: 'GET_FILTER_GROUPS_FOR_VISUAL',\n} as const;\n\nexport type GetterMessageEventName = (typeof GetterMessageEventName)[keyof typeof GetterMessageEventName];\n\nexport type GetterMessageEvents =\n | EmbeddingEvent\n | EmbeddingEvent\n | EmbeddingEvent\n | EmbeddingEvent\n | EmbeddingEvent\n | EmbeddingEvent\n | EmbeddingEvent;\n", "import {InternalExperiences} from '@experience/base-experience/types';\nimport {EmbeddingMessageEvent, ErrorResponse, SuccessResponse, TargetedMessageEvent} from '@common/events/events';\n\nexport const InvokerMessageEventName = {\n ACKNOWLEDGE: 'ACKNOWLEDGE',\n INITIATE_PRINT: 'INITIATE_PRINT',\n NAVIGATE_TO_DASHBOARD: 'NAVIGATE_TO_DASHBOARD',\n CLOSE_Q_SEARCH: 'CLOSE_Q_SEARCH',\n UNDO: 'UNDO',\n REDO: 'REDO',\n RESET: 'RESET',\n TOGGLE_BOOKMARKS_PANE: 'TOGGLE_BOOKMARKS_PANE',\n} as const;\n\nexport type InvokerMessageEventName = (typeof InvokerMessageEventName)[keyof typeof InvokerMessageEventName];\n\nexport type InvokerMessageEvents =\n | TargetedMessageEvent<\n typeof InvokerMessageEventName.ACKNOWLEDGE,\n {eventName: string; eventTarget?: InternalExperiences}\n >\n | EmbeddingMessageEvent\n | EmbeddingMessageEvent\n | EmbeddingMessageEvent\n | EmbeddingMessageEvent\n | EmbeddingMessageEvent\n | EmbeddingMessageEvent\n | EmbeddingMessageEvent;\n", "// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport {Sheet, Visual, VisualAction} from '../../experiences/dashboard-experience';\nimport {EmbeddingIFrameElement} from '../iframe';\nimport {InternalExperiences} from '../../experiences/base-experience';\nimport {Parameter} from '../types';\nimport {\n InvokerMessageEventName,\n GetterMessageEventName,\n SetterMessageEventName,\n InfoMessageEventName,\n InfoChangeEventName,\n ErrorChangeEventName,\n WarnChangeEventName,\n ChangeMessageEvents,\n GetterMessageEvents,\n SetterMessageEvents,\n InfoMessageEvents,\n InvokerMessageEvents,\n} from './messages';\nimport type {FilterGroup, ThemeConfiguration} from '@aws-sdk/client-quicksight';\n\nexport const ChangeEventName = {\n ...InfoChangeEventName,\n ...ErrorChangeEventName,\n ...WarnChangeEventName,\n} as const;\n\nexport type ChangeEventName = (typeof ChangeEventName)[keyof typeof ChangeEventName];\n\nexport const MessageEventName = {\n ...InfoMessageEventName,\n ...SetterMessageEventName,\n ...GetterMessageEventName,\n ...InvokerMessageEventName,\n} as const;\n\nexport type MessageEventName = (typeof MessageEventName)[keyof typeof MessageEventName];\n\nexport const ChangeEventLevel = {\n ERROR: 'ERROR',\n INFO: 'INFO',\n WARN: 'WARN',\n} as const;\n\nexport type ChangeEventLevel = (typeof ChangeEventLevel)[keyof typeof ChangeEventLevel];\n\nexport type EventNames = MessageEventName | ChangeEventName;\n\nexport type EventMessageValues =\n | string\n | string[]\n | {height?: string}\n | Visual[]\n | number\n | EmbeddingIFrameElement\n | InternalExperiences\n | Record\n | Parameter[]\n | VisualAction[]\n | FilterGroup[]\n | Sheet[]\n | undefined\n | {success?: boolean}\n | ThemeConfiguration;\n\nexport type EventData = Record<\n string,\n string | number | string[] | InternalExperiences | {frame?: EmbeddingIFrameElement} | unknown\n>;\n\nexport type EmbeddingEvents =\n | ChangeMessageEvents\n | GetterMessageEvents\n | SetterMessageEvents\n | InfoMessageEvents\n | InvokerMessageEvents;\n", "// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport {\n InternalVisualExperience,\n IVisualExperience,\n TransformedVisualContentOptions,\n VisualContentOptions,\n} from '../visual-experience';\nimport {\n DashboardContentOptions,\n IDashboardExperience,\n InternalDashboardExperience,\n TransformedDashboardContentOptions,\n} from '../dashboard-experience';\nimport {\n InternalQSearchExperience,\n IQSearchExperience,\n QSearchContentOptions,\n TransformedQSearchContentOptions,\n} from '../q-search-experience';\nimport {\n ConsoleContentOptions,\n IConsoleExperience,\n InternalConsoleExperience,\n TransformedConsoleContentOptions,\n} from '../console-experience';\nimport {\n GenerativeQnAContentOptions,\n IGenerativeQnAExperience,\n InternalGenerativeQnAExperience,\n TransformedGenerativeQnAContentOptions,\n} from '../generative-qna-experience';\nimport {ControlContentOptions, IControlExperience, InternalControlExperience} from '../control-experience';\nimport {IContextExperience, InternalContextExperience} from '../../common/embedding-context';\nimport {EventListener} from '../../common/event-manager';\n\nexport type ContentOptions =\n | VisualContentOptions\n | DashboardContentOptions\n | QSearchContentOptions\n | ConsoleContentOptions\n | ControlContentOptions\n | GenerativeQnAContentOptions;\n\nexport type FrameOptions = {\n url: string;\n container: string | HTMLElement;\n width?: string;\n height?: string;\n resizeHeightOnSizeChangedEvent?: boolean;\n withIframePlaceholder?: boolean | HTMLElement;\n className?: string;\n onChange?: EventListener;\n};\n\nexport type TransformedContentOptions =\n | TransformedConsoleContentOptions\n | TransformedDashboardContentOptions\n | TransformedQSearchContentOptions\n | TransformedVisualContentOptions\n | TransformedGenerativeQnAContentOptions\n | object;\n\nexport type Experiences =\n | IConsoleExperience\n | IContextExperience\n | IControlExperience\n | IVisualExperience\n | IDashboardExperience\n | IQSearchExperience\n | IGenerativeQnAExperience;\n\nexport type InternalExperiences =\n | InternalConsoleExperience\n | InternalContextExperience\n | InternalControlExperience\n | InternalVisualExperience\n | InternalDashboardExperience\n | InternalQSearchExperience\n | InternalGenerativeQnAExperience;\n\nexport interface InternalExperienceInfo {\n experienceIdentifier: string;\n internalExperience: InternalExperience;\n}\n\nexport const ExperienceType = {\n CONSOLE: 'CONSOLE',\n CONTEXT: 'CONTEXT',\n CONTROL: 'CONTROL',\n VISUAL: 'VISUAL',\n DASHBOARD: 'DASHBOARD',\n QSEARCH: 'QSEARCH',\n GENERATIVEQNA: 'QSEARCH', // Internal experience type unchanged from QSEARCH\n} as const;\n\nexport type ExperienceType = (typeof ExperienceType)[keyof typeof ExperienceType];\n\nexport interface IBaseExperience {\n experienceType: ExperienceType;\n discriminator?: number;\n}\n\nexport interface BaseContentOptions {\n onMessage?: EventListener;\n}\n", "// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport {Parameter, ParametersAsObject, ThemeOptions} from '../../common';\nimport {BaseContentOptions, ExperienceType, IBaseExperience} from '../base-experience';\nimport type {\n ColumnIdentifier,\n AggregationFunction,\n DateDimensionField,\n VisualCustomActionOperation,\n VisualCustomAction,\n ThemeConfiguration,\n} from '@aws-sdk/client-quicksight';\n\nexport interface IDashboardExperience extends IBaseExperience {\n experienceType: typeof ExperienceType.DASHBOARD;\n dashboardId: string;\n}\n\nexport interface InternalDashboardExperience extends IDashboardExperience {\n contextId: string;\n}\n\nexport interface DashboardContentOptions extends BaseContentOptions {\n parameters?: Parameter[];\n locale?: string;\n attributionOptions?: AttributionOptions;\n toolbarOptions?: ToolbarOptions;\n sheetOptions?: SheetOptions;\n themeOptions?: ThemeOptions;\n viewId?: string;\n}\n\nexport interface TransformedDashboardContentOptions extends BaseContentOptions {\n parameters?: ParametersAsObject;\n locale?: string;\n sheetId?: string | undefined;\n footerPaddingEnabled?: boolean;\n undoRedoDisabled?: boolean;\n printEnabled?: boolean;\n showBookmarksIcon?: boolean;\n resetDisabled?: boolean;\n sheetTabsDisabled?: boolean;\n resizeOnSheetChange?: boolean;\n themeArn?: string;\n themeOverride?: ThemeConfiguration;\n}\n\nexport interface ToolbarOption {\n show?: true; // absence implies true\n}\n\nexport interface ExportToolbarOption extends ToolbarOption {\n print?: boolean;\n}\n\nexport interface ToolbarOptions {\n export?: boolean | ExportToolbarOption;\n undoRedo?: boolean | ToolbarOption;\n reset?: boolean | ToolbarOption;\n bookmarks?: boolean | ToolbarOption;\n}\n\nexport interface AttributionOptions {\n overlayContent?: boolean;\n}\n\nexport interface SheetOptions {\n initialSheetId?: string;\n singleSheet?: boolean;\n emitSizeChangedEventOnSheetChange?: boolean;\n}\n\nexport type NavigateToDashboardOptions = {\n parameters?: Parameter[];\n};\n\nexport interface Sheet {\n Name: string;\n SheetId: string;\n}\n\nexport interface Visual {\n Name: string;\n VisualId: string;\n}\n\nexport type BinDatapointRawValue = {\n Min: number | null;\n Max: number | null;\n IsMaxInclusive: boolean;\n};\n\nexport interface DatapointRawValue {\n String?: string;\n Integer?: number;\n Decimal?: number;\n Date?: Date;\n Bin?: BinDatapointRawValue;\n}\n\nexport const SPECIAL_DATAPOINT_VALUE_TYPES = {\n NULL: null,\n OTHER_BUCKET: null,\n} as const;\n\nexport const CALCULATED_METRIC_COLUMN_TYPE = {\n INTEGER: null,\n STRING: null,\n DECIMAL: null,\n DATETIME: null,\n} as const;\n\nexport interface DatapointFormattedValue {\n Value: string;\n Special?: keyof typeof SPECIAL_DATAPOINT_VALUE_TYPES;\n}\n\nexport interface MetricColumn {\n Integer?: {\n Column: ColumnIdentifier;\n AggregationFunction?: AggregationFunction['NumericalAggregationFunction'];\n };\n Decimal?: {\n Column: ColumnIdentifier;\n AggregationFunction?: AggregationFunction['NumericalAggregationFunction'];\n };\n String?: {\n Column: ColumnIdentifier;\n AggregationFunction?: AggregationFunction['CategoricalAggregationFunction'];\n };\n DateTime?: {\n Column: ColumnIdentifier;\n AggregationFunction?: AggregationFunction['DateAggregationFunction'];\n };\n Calculated?: {\n Column: ColumnIdentifier;\n Expression: string;\n Type: keyof typeof CALCULATED_METRIC_COLUMN_TYPE;\n };\n Bin?: {\n Column: ColumnIdentifier;\n };\n}\n\nexport interface FieldColumn {\n Integer?: {\n Column: ColumnIdentifier;\n };\n Decimal?: {\n Column: ColumnIdentifier;\n };\n String?: {\n Column: ColumnIdentifier;\n };\n DateTime?: {\n Column: ColumnIdentifier;\n TimeGranularity: DateDimensionField['DateGranularity'];\n };\n}\n\nexport interface DatapointColumn {\n Metric?: MetricColumn;\n Field?: FieldColumn;\n}\n\nexport interface Datapoint {\n FormattedValues: DatapointFormattedValue[];\n RawValues: DatapointRawValue[];\n Columns: DatapointColumn[];\n SelectedColumnIndex?: number;\n}\n\nexport interface CallbackOperation {\n EmbeddingMessage: object;\n}\n\nexport type ActionOperation = {\n CallbackOperation: CallbackOperation;\n} & VisualCustomActionOperation;\n\nexport interface VisualAction extends VisualCustomAction {\n ActionOperations: ActionOperation[];\n}\n", "// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport {BaseContentOptions, ExperienceType, IBaseExperience} from '../base-experience';\n\nexport interface IGenerativeQnAExperience extends IBaseExperience {\n experienceType: typeof ExperienceType.GENERATIVEQNA;\n}\n\nexport interface InternalGenerativeQnAExperience extends IGenerativeQnAExperience {\n contextId: string;\n}\n\nexport interface GenerativeQnAContentOptions extends BaseContentOptions {\n showTopicName?: boolean;\n showPinboard?: boolean;\n showSearchBar?: boolean;\n showInterpretedAs?: boolean;\n showFeedback?: boolean;\n showGeneratedNarrative?: boolean;\n showDidYouMean?: boolean;\n showComplementaryVisuals?: boolean;\n showQBusinessInsights?: boolean;\n showSeeWhy?: boolean;\n allowTopicSelection?: boolean;\n allowFullscreen?: boolean;\n allowReturn?: boolean;\n searchPlaceholderText?: string;\n panelOptions?: GenerativeQnAPanelOptions;\n themeOptions?: QThemeOptions;\n initialQuestionId?: string;\n initialAnswerId?: string;\n}\n\nexport interface TransformedGenerativeQnAContentOptions extends BaseContentOptions {\n qShowTopicName?: boolean;\n qShowPinboard?: boolean;\n qShowSearchBar?: boolean;\n qShowInterpretedAs?: boolean;\n qShowFeedback?: boolean;\n qShowGeneratedNarrative?: boolean;\n qShowDidYouMean?: boolean;\n qShowComplementaryVisuals?: boolean;\n qShowQBusinessInsights?: boolean;\n qShowSeeWhy?: boolean;\n qAllowTopicSelection?: boolean;\n qAllowFullscreen?: boolean;\n qAllowReturn?: boolean;\n qSearchPlaceholderText?: string;\n qPanelType?: string;\n qPanelTitle?: string;\n qShowPanelIcon?: boolean;\n qPanelFocusedHeight?: string;\n qPanelExpandedHeight?: string;\n themeArn?: string;\n questionId?: string;\n answerId?: string;\n}\n\nexport type GenerativeQnAPanelOptions = GenerativeQnAFullPanelOptions | GenerativeQnASearchBarOptions;\n\nexport const GenerativeQnAPanelType = {\n FULL: 'FULL',\n SEARCH_BAR: 'SEARCH_BAR',\n} as const;\n\nexport type GenerativeQnAFullPanelOptions = {\n panelType: typeof GenerativeQnAPanelType.FULL;\n title?: string;\n showQIcon?: boolean;\n};\n\nexport type GenerativeQnASearchBarOptions = {\n panelType: typeof GenerativeQnAPanelType.SEARCH_BAR;\n focusedHeight?: string;\n expandedHeight?: string;\n};\n\nexport type QThemeOptions = {\n themeArn?: string;\n};\n", "// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport {ChangeEventLevel, ChangeEventName, EventData, EventMessageValues, EventNames, MessageEventName} from './types';\nimport {InternalExperiences} from '@experience/base-experience/types';\n\nexport abstract class EmbeddingEvent<\n EventName extends EventNames = EventNames,\n EventMessageValue extends EventMessageValues = EventMessageValues\n> {\n public eventName: EventName;\n public message?: EventMessageValue;\n public data?: EventData;\n public eventTarget?: InternalExperiences;\n\n protected constructor(eventName: EventName, message?: EventMessageValue, data?: EventData) {\n this.eventName = eventName;\n this.message = message;\n this.data = data;\n }\n}\n\nexport class ChangeEvent<\n EventName extends ChangeEventName,\n EventMessageValue extends EventMessageValues = EventMessageValues\n> extends EmbeddingEvent {\n public eventLevel: ChangeEventLevel;\n constructor(eventName: EventName, eventLevel: ChangeEventLevel, message?: EventMessageValue, data?: EventData) {\n super(eventName, message, data);\n this.eventLevel = eventLevel;\n }\n}\n\nexport class EmbeddingMessageEvent<\n EventName extends MessageEventName,\n EventMessageValue extends EventMessageValues = EventMessageValues\n> extends EmbeddingEvent {\n public eventName: EventName;\n\n constructor(eventName: EventName, message?: EventMessageValue, data?: EventData) {\n super(eventName, message, data);\n this.eventName = eventName;\n }\n}\n\nexport class TargetedMessageEvent<\n EventName extends MessageEventName = MessageEventName,\n EventMessageValue extends EventMessageValues = EventMessageValues\n> extends EmbeddingMessageEvent {\n public eventTarget: InternalExperiences;\n\n constructor(eventName: EventName, eventTarget: InternalExperiences, message?: EventMessageValue, data?: EventData) {\n super(eventName, message, data);\n this.eventTarget = eventTarget;\n }\n}\n\nexport class PostMessageEvent<\n EventName extends MessageEventName = MessageEventName,\n EventMessageValue extends EventMessageValues = EventMessageValues\n> extends TargetedMessageEvent {\n public timestamp: number;\n public version: string;\n public eventId: string;\n\n constructor(\n eventName: EventName,\n eventTarget: InternalExperiences,\n eventId: string,\n timestamp: number,\n version: string,\n message?: EventMessageValue,\n data?: EventData\n ) {\n super(eventName, eventTarget, message, data);\n this.timestamp = timestamp;\n this.version = version;\n this.eventId = eventId;\n }\n}\n\nexport abstract class ResponseMessage {\n public abstract success: boolean;\n public message?: EventMessageValue;\n}\n\nexport class SuccessResponse implements ResponseMessage {\n public success = true;\n}\n\nexport class ErrorResponse\n implements ResponseMessage\n{\n public success = false;\n public error?: string;\n public message?: EventMessageValue;\n public errorCode: string;\n\n constructor(errorResponse: ErrorResponse) {\n this.errorCode = errorResponse.errorCode;\n this.error = errorResponse.error;\n this.message = errorResponse.message as EventMessageValue;\n }\n}\n\nexport class DataResponse\n implements ResponseMessage\n{\n public success = true;\n public message?: EventMessageValue;\n\n constructor(message?: EventMessageValue) {\n this.message = message;\n }\n}\n", "// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nlet getRandomValues;\nconst rnds8 = new Uint8Array(16);\nexport default function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}", "import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nconst byteToHex = [];\n\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).slice(1));\n}\n\nexport function unsafeStringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];\n}\n\nfunction stringify(arr, offset = 0) {\n const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;", "const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);\nexport default {\n randomUUID\n};", "import native from './native.js';\nimport rng from './rng.js';\nimport { unsafeStringify } from './stringify.js';\n\nfunction v4(options, buf, offset) {\n if (native.randomUUID && !buf && !options) {\n return native.randomUUID();\n }\n\n options = options || {};\n const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return unsafeStringify(rnds);\n}\n\nexport default v4;", "// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport {\n ContentOptions,\n Experiences,\n ExperienceType,\n FrameOptions,\n InternalExperiences,\n InternalExperienceInfo,\n TransformedContentOptions,\n} from './types';\nimport {BaseExperienceFrame} from './frame/experience-frame';\nimport {ControlOptions} from '../control-experience';\nimport {ChangeEventLevel, ChangeEventName, EventMessageValues, MessageEventName} from '@common/events/types';\nimport {ChangeEvent, EmbeddingMessageEvent, ResponseMessage, TargetedMessageEvent} from '@common/events/events';\nimport {EventListener} from '@common/event-manager/types';\nimport {LogProvider} from '../../common';\n\nexport abstract class BaseExperience<\n ExperienceContentOptions extends ContentOptions,\n InternalExperience extends InternalExperiences,\n Experience extends Experiences,\n TransformedExperienceContentOptions extends TransformedContentOptions,\n ExperienceFrame extends BaseExperienceFrame<\n ExperienceContentOptions,\n TransformedExperienceContentOptions,\n InternalExperience\n >\n> {\n protected abstract experience: Experience;\n protected abstract internalExperience: InternalExperience;\n protected abstract experienceId: string;\n protected abstract experienceFrame: ExperienceFrame;\n protected readonly frameOptions: FrameOptions;\n protected readonly contentOptions: ExperienceContentOptions;\n protected readonly controlOptions: ControlOptions;\n protected readonly experienceIdentifiers: Set;\n protected logger?: LogProvider;\n\n protected constructor(\n frameOptions: FrameOptions,\n contentOptions: ExperienceContentOptions,\n controlOptions: ControlOptions,\n experienceIdentifiers: Set\n ) {\n this.frameOptions = frameOptions;\n this.contentOptions = contentOptions;\n this.controlOptions = controlOptions;\n this.experienceIdentifiers = experienceIdentifiers;\n this.validateFrameOptions();\n }\n\n static getExperienceIdentifier = (experience: InternalExperiences): string => {\n if (experience.experienceType === ExperienceType.DASHBOARD) {\n const {contextId, experienceType, dashboardId, discriminator} = experience;\n return [contextId, experienceType, dashboardId, discriminator].filter(Boolean).join('-');\n }\n\n if (experience.experienceType === ExperienceType.VISUAL) {\n const {contextId, experienceType, dashboardId, sheetId, visualId, discriminator} = experience;\n return [contextId, experienceType, dashboardId, sheetId, visualId, discriminator].filter(Boolean).join('-');\n }\n\n if (\n [\n ExperienceType.CONSOLE,\n ExperienceType.CONTROL,\n ExperienceType.CONTEXT,\n ExperienceType.QSEARCH,\n ExperienceType.GENERATIVEQNA,\n ].includes(experience.experienceType)\n ) {\n const {contextId, experienceType, discriminator} = experience;\n return [contextId, experienceType, discriminator].filter(Boolean).join('-');\n }\n\n throw new Error('Invalid experience unable to build experience identifier');\n };\n\n public send = async (\n messageEvent: EmbeddingMessageEvent\n ): Promise> => {\n if (!this.experienceFrame || !this.internalExperience) {\n throw new Error('Experience has not been initialized');\n }\n\n const targetedMessageEvent = new TargetedMessageEvent(\n messageEvent.eventName,\n this.internalExperience,\n messageEvent.message,\n messageEvent.data\n );\n\n return this.experienceFrame.send(targetedMessageEvent);\n };\n\n public addEventListener = (eventName: MessageEventName, listener: EventListener) => {\n return this.experienceFrame.addInternalEventListener(eventName, listener);\n };\n\n public setLogProvider = (logProvider: LogProvider) => {\n this.logger = logProvider;\n return this;\n };\n\n protected getInternalExperienceInfo = <\n EmbeddingInternalExperience extends InternalExperiences,\n EmbeddingExperience extends Experiences\n >(\n experience: EmbeddingExperience\n ): InternalExperienceInfo => {\n let discriminator = -1;\n let internalExperience: InternalExperiences;\n let experienceIdentifier: string;\n do {\n discriminator++;\n internalExperience = {\n ...experience,\n contextId: this.controlOptions.contextId,\n discriminator,\n };\n experienceIdentifier = BaseExperience.getExperienceIdentifier(internalExperience);\n } while (this.experienceIdentifiers.has(experienceIdentifier));\n\n this.experienceIdentifiers.add(experienceIdentifier);\n return {\n experienceIdentifier,\n internalExperience,\n } as InternalExperienceInfo;\n };\n\n protected transformContentOptions = (\n filteredOptions: TCO,\n unrecognizedContentOptions: object\n ): TCO => {\n this.warnUnrecognizedContentOptions(Object.keys(unrecognizedContentOptions));\n return filteredOptions;\n };\n\n protected warnUnrecognizedContentOptions = (unrecognizedProperties: string[]) => {\n if (unrecognizedProperties.length > 0) {\n this.frameOptions.onChange?.(\n new ChangeEvent(\n ChangeEventName.UNRECOGNIZED_CONTENT_OPTIONS,\n ChangeEventLevel.WARN,\n 'Experience content options contain unrecognized properties',\n {\n unrecognizedContentOptions: unrecognizedProperties,\n }\n ),\n {frame: null}\n );\n this.logger?.warn('Experience content options contain unrecognized properties');\n }\n };\n\n protected abstract extractExperienceFromUrl: (url: string) => Experience;\n\n private validateFrameOptions = () => {\n if (!this.frameOptions.url) {\n const message = 'Url is required for the experience';\n this.frameOptions.onChange?.(new ChangeEvent(ChangeEventName.NO_URL, ChangeEventLevel.ERROR, message), {\n frame: null,\n });\n throw new Error(message);\n }\n };\n}\n", "'use strict';\n\n/** Highest positive signed 32-bit float value */\nconst maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1\n\n/** Bootstring parameters */\nconst base = 36;\nconst tMin = 1;\nconst tMax = 26;\nconst skew = 38;\nconst damp = 700;\nconst initialBias = 72;\nconst initialN = 128; // 0x80\nconst delimiter = '-'; // '\\x2D'\n\n/** Regular expressions */\nconst regexPunycode = /^xn--/;\nconst regexNonASCII = /[^\\0-\\x7F]/; // Note: U+007F DEL is excluded too.\nconst regexSeparators = /[\\x2E\\u3002\\uFF0E\\uFF61]/g; // RFC 3490 separators\n\n/** Error messages */\nconst errors = {\n\t'overflow': 'Overflow: input needs wider integers to process',\n\t'not-basic': 'Illegal input >= 0x80 (not a basic code point)',\n\t'invalid-input': 'Invalid input'\n};\n\n/** Convenience shortcuts */\nconst baseMinusTMin = base - tMin;\nconst floor = Math.floor;\nconst stringFromCharCode = String.fromCharCode;\n\n/*--------------------------------------------------------------------------*/\n\n/**\n * A generic error utility function.\n * @private\n * @param {String} type The error type.\n * @returns {Error} Throws a `RangeError` with the applicable error message.\n */\nfunction error(type) {\n\tthrow new RangeError(errors[type]);\n}\n\n/**\n * A generic `Array#map` utility function.\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} callback The function that gets called for every array\n * item.\n * @returns {Array} A new array of values returned by the callback function.\n */\nfunction map(array, callback) {\n\tconst result = [];\n\tlet length = array.length;\n\twhile (length--) {\n\t\tresult[length] = callback(array[length]);\n\t}\n\treturn result;\n}\n\n/**\n * A simple `Array#map`-like wrapper to work with domain name strings or email\n * addresses.\n * @private\n * @param {String} domain The domain name or email address.\n * @param {Function} callback The function that gets called for every\n * character.\n * @returns {String} A new string of characters returned by the callback\n * function.\n */\nfunction mapDomain(domain, callback) {\n\tconst parts = domain.split('@');\n\tlet result = '';\n\tif (parts.length > 1) {\n\t\t// In email addresses, only the domain name should be punycoded. Leave\n\t\t// the local part (i.e. everything up to `@`) intact.\n\t\tresult = parts[0] + '@';\n\t\tdomain = parts[1];\n\t}\n\t// Avoid `split(regex)` for IE8 compatibility. See #17.\n\tdomain = domain.replace(regexSeparators, '\\x2E');\n\tconst labels = domain.split('.');\n\tconst encoded = map(labels, callback).join('.');\n\treturn result + encoded;\n}\n\n/**\n * Creates an array containing the numeric code points of each Unicode\n * character in the string. While JavaScript uses UCS-2 internally,\n * this function will convert a pair of surrogate halves (each of which\n * UCS-2 exposes as separate characters) into a single code point,\n * matching UTF-16.\n * @see `punycode.ucs2.encode`\n * @see \n * @memberOf punycode.ucs2\n * @name decode\n * @param {String} string The Unicode input string (UCS-2).\n * @returns {Array} The new array of code points.\n */\nfunction ucs2decode(string) {\n\tconst output = [];\n\tlet counter = 0;\n\tconst length = string.length;\n\twhile (counter < length) {\n\t\tconst value = string.charCodeAt(counter++);\n\t\tif (value >= 0xD800 && value <= 0xDBFF && counter < length) {\n\t\t\t// It's a high surrogate, and there is a next character.\n\t\t\tconst extra = string.charCodeAt(counter++);\n\t\t\tif ((extra & 0xFC00) == 0xDC00) { // Low surrogate.\n\t\t\t\toutput.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);\n\t\t\t} else {\n\t\t\t\t// It's an unmatched surrogate; only append this code unit, in case the\n\t\t\t\t// next code unit is the high surrogate of a surrogate pair.\n\t\t\t\toutput.push(value);\n\t\t\t\tcounter--;\n\t\t\t}\n\t\t} else {\n\t\t\toutput.push(value);\n\t\t}\n\t}\n\treturn output;\n}\n\n/**\n * Creates a string based on an array of numeric code points.\n * @see `punycode.ucs2.decode`\n * @memberOf punycode.ucs2\n * @name encode\n * @param {Array} codePoints The array of numeric code points.\n * @returns {String} The new Unicode string (UCS-2).\n */\nconst ucs2encode = codePoints => String.fromCodePoint(...codePoints);\n\n/**\n * Converts a basic code point into a digit/integer.\n * @see `digitToBasic()`\n * @private\n * @param {Number} codePoint The basic numeric code point value.\n * @returns {Number} The numeric value of a basic code point (for use in\n * representing integers) in the range `0` to `base - 1`, or `base` if\n * the code point does not represent a value.\n */\nconst basicToDigit = function(codePoint) {\n\tif (codePoint >= 0x30 && codePoint < 0x3A) {\n\t\treturn 26 + (codePoint - 0x30);\n\t}\n\tif (codePoint >= 0x41 && codePoint < 0x5B) {\n\t\treturn codePoint - 0x41;\n\t}\n\tif (codePoint >= 0x61 && codePoint < 0x7B) {\n\t\treturn codePoint - 0x61;\n\t}\n\treturn base;\n};\n\n/**\n * Converts a digit/integer into a basic code point.\n * @see `basicToDigit()`\n * @private\n * @param {Number} digit The numeric value of a basic code point.\n * @returns {Number} The basic code point whose value (when used for\n * representing integers) is `digit`, which needs to be in the range\n * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is\n * used; else, the lowercase form is used. The behavior is undefined\n * if `flag` is non-zero and `digit` has no uppercase form.\n */\nconst digitToBasic = function(digit, flag) {\n\t// 0..25 map to ASCII a..z or A..Z\n\t// 26..35 map to ASCII 0..9\n\treturn digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);\n};\n\n/**\n * Bias adaptation function as per section 3.4 of RFC 3492.\n * https://tools.ietf.org/html/rfc3492#section-3.4\n * @private\n */\nconst adapt = function(delta, numPoints, firstTime) {\n\tlet k = 0;\n\tdelta = firstTime ? floor(delta / damp) : delta >> 1;\n\tdelta += floor(delta / numPoints);\n\tfor (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {\n\t\tdelta = floor(delta / baseMinusTMin);\n\t}\n\treturn floor(k + (baseMinusTMin + 1) * delta / (delta + skew));\n};\n\n/**\n * Converts a Punycode string of ASCII-only symbols to a string of Unicode\n * symbols.\n * @memberOf punycode\n * @param {String} input The Punycode string of ASCII-only symbols.\n * @returns {String} The resulting string of Unicode symbols.\n */\nconst decode = function(input) {\n\t// Don't use UCS-2.\n\tconst output = [];\n\tconst inputLength = input.length;\n\tlet i = 0;\n\tlet n = initialN;\n\tlet bias = initialBias;\n\n\t// Handle the basic code points: let `basic` be the number of input code\n\t// points before the last delimiter, or `0` if there is none, then copy\n\t// the first basic code points to the output.\n\n\tlet basic = input.lastIndexOf(delimiter);\n\tif (basic < 0) {\n\t\tbasic = 0;\n\t}\n\n\tfor (let j = 0; j < basic; ++j) {\n\t\t// if it's not a basic code point\n\t\tif (input.charCodeAt(j) >= 0x80) {\n\t\t\terror('not-basic');\n\t\t}\n\t\toutput.push(input.charCodeAt(j));\n\t}\n\n\t// Main decoding loop: start just after the last delimiter if any basic code\n\t// points were copied; start at the beginning otherwise.\n\n\tfor (let index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {\n\n\t\t// `index` is the index of the next character to be consumed.\n\t\t// Decode a generalized variable-length integer into `delta`,\n\t\t// which gets added to `i`. The overflow checking is easier\n\t\t// if we increase `i` as we go, then subtract off its starting\n\t\t// value at the end to obtain `delta`.\n\t\tconst oldi = i;\n\t\tfor (let w = 1, k = base; /* no condition */; k += base) {\n\n\t\t\tif (index >= inputLength) {\n\t\t\t\terror('invalid-input');\n\t\t\t}\n\n\t\t\tconst digit = basicToDigit(input.charCodeAt(index++));\n\n\t\t\tif (digit >= base) {\n\t\t\t\terror('invalid-input');\n\t\t\t}\n\t\t\tif (digit > floor((maxInt - i) / w)) {\n\t\t\t\terror('overflow');\n\t\t\t}\n\n\t\t\ti += digit * w;\n\t\t\tconst t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\n\n\t\t\tif (digit < t) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tconst baseMinusT = base - t;\n\t\t\tif (w > floor(maxInt / baseMinusT)) {\n\t\t\t\terror('overflow');\n\t\t\t}\n\n\t\t\tw *= baseMinusT;\n\n\t\t}\n\n\t\tconst out = output.length + 1;\n\t\tbias = adapt(i - oldi, out, oldi == 0);\n\n\t\t// `i` was supposed to wrap around from `out` to `0`,\n\t\t// incrementing `n` each time, so we'll fix that now:\n\t\tif (floor(i / out) > maxInt - n) {\n\t\t\terror('overflow');\n\t\t}\n\n\t\tn += floor(i / out);\n\t\ti %= out;\n\n\t\t// Insert `n` at position `i` of the output.\n\t\toutput.splice(i++, 0, n);\n\n\t}\n\n\treturn String.fromCodePoint(...output);\n};\n\n/**\n * Converts a string of Unicode symbols (e.g. a domain name label) to a\n * Punycode string of ASCII-only symbols.\n * @memberOf punycode\n * @param {String} input The string of Unicode symbols.\n * @returns {String} The resulting Punycode string of ASCII-only symbols.\n */\nconst encode = function(input) {\n\tconst output = [];\n\n\t// Convert the input in UCS-2 to an array of Unicode code points.\n\tinput = ucs2decode(input);\n\n\t// Cache the length.\n\tconst inputLength = input.length;\n\n\t// Initialize the state.\n\tlet n = initialN;\n\tlet delta = 0;\n\tlet bias = initialBias;\n\n\t// Handle the basic code points.\n\tfor (const currentValue of input) {\n\t\tif (currentValue < 0x80) {\n\t\t\toutput.push(stringFromCharCode(currentValue));\n\t\t}\n\t}\n\n\tconst basicLength = output.length;\n\tlet handledCPCount = basicLength;\n\n\t// `handledCPCount` is the number of code points that have been handled;\n\t// `basicLength` is the number of basic code points.\n\n\t// Finish the basic string with a delimiter unless it's empty.\n\tif (basicLength) {\n\t\toutput.push(delimiter);\n\t}\n\n\t// Main encoding loop:\n\twhile (handledCPCount < inputLength) {\n\n\t\t// All non-basic code points < n have been handled already. Find the next\n\t\t// larger one:\n\t\tlet m = maxInt;\n\t\tfor (const currentValue of input) {\n\t\t\tif (currentValue >= n && currentValue < m) {\n\t\t\t\tm = currentValue;\n\t\t\t}\n\t\t}\n\n\t\t// Increase `delta` enough to advance the decoder's state to ,\n\t\t// but guard against overflow.\n\t\tconst handledCPCountPlusOne = handledCPCount + 1;\n\t\tif (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {\n\t\t\terror('overflow');\n\t\t}\n\n\t\tdelta += (m - n) * handledCPCountPlusOne;\n\t\tn = m;\n\n\t\tfor (const currentValue of input) {\n\t\t\tif (currentValue < n && ++delta > maxInt) {\n\t\t\t\terror('overflow');\n\t\t\t}\n\t\t\tif (currentValue === n) {\n\t\t\t\t// Represent delta as a generalized variable-length integer.\n\t\t\t\tlet q = delta;\n\t\t\t\tfor (let k = base; /* no condition */; k += base) {\n\t\t\t\t\tconst t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\n\t\t\t\t\tif (q < t) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tconst qMinusT = q - t;\n\t\t\t\t\tconst baseMinusT = base - t;\n\t\t\t\t\toutput.push(\n\t\t\t\t\t\tstringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))\n\t\t\t\t\t);\n\t\t\t\t\tq = floor(qMinusT / baseMinusT);\n\t\t\t\t}\n\n\t\t\t\toutput.push(stringFromCharCode(digitToBasic(q, 0)));\n\t\t\t\tbias = adapt(delta, handledCPCountPlusOne, handledCPCount === basicLength);\n\t\t\t\tdelta = 0;\n\t\t\t\t++handledCPCount;\n\t\t\t}\n\t\t}\n\n\t\t++delta;\n\t\t++n;\n\n\t}\n\treturn output.join('');\n};\n\n/**\n * Converts a Punycode string representing a domain name or an email address\n * to Unicode. Only the Punycoded parts of the input will be converted, i.e.\n * it doesn't matter if you call it on a string that has already been\n * converted to Unicode.\n * @memberOf punycode\n * @param {String} input The Punycoded domain name or email address to\n * convert to Unicode.\n * @returns {String} The Unicode representation of the given Punycode\n * string.\n */\nconst toUnicode = function(input) {\n\treturn mapDomain(input, function(string) {\n\t\treturn regexPunycode.test(string)\n\t\t\t? decode(string.slice(4).toLowerCase())\n\t\t\t: string;\n\t});\n};\n\n/**\n * Converts a Unicode string representing a domain name or an email address to\n * Punycode. Only the non-ASCII parts of the domain name will be converted,\n * i.e. it doesn't matter if you call it with a domain that's already in\n * ASCII.\n * @memberOf punycode\n * @param {String} input The domain name or email address to convert, as a\n * Unicode string.\n * @returns {String} The Punycode representation of the given domain name or\n * email address.\n */\nconst toASCII = function(input) {\n\treturn mapDomain(input, function(string) {\n\t\treturn regexNonASCII.test(string)\n\t\t\t? 'xn--' + encode(string)\n\t\t\t: string;\n\t});\n};\n\n/*--------------------------------------------------------------------------*/\n\n/** Define the public API */\nconst punycode = {\n\t/**\n\t * A string representing the current Punycode.js version number.\n\t * @memberOf punycode\n\t * @type String\n\t */\n\t'version': '2.3.1',\n\t/**\n\t * An object of methods to convert from JavaScript's internal character\n\t * representation (UCS-2) to Unicode code points, and back.\n\t * @see \n\t * @memberOf punycode\n\t * @type Object\n\t */\n\t'ucs2': {\n\t\t'decode': ucs2decode,\n\t\t'encode': ucs2encode\n\t},\n\t'decode': decode,\n\t'encode': encode,\n\t'toASCII': toASCII,\n\t'toUnicode': toUnicode\n};\n\nexport { ucs2decode, ucs2encode, decode, encode, toASCII, toUnicode };\nexport default punycode;\n", "// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport {CreatePostRequestOptions, PostRequest} from '../types';\nimport {EmbeddingIFrameElement, IframeOptions} from './types';\n\nexport class Iframe {\n static IFRAME_CLASS_NAME = 'quicksight-embedding-iframe';\n private readonly iframeName: string;\n private readonly width: string;\n private readonly height: string;\n private readonly loading: IframeOptions['loading'];\n private readonly container: HTMLElement;\n private readonly payload: IframeOptions['payload'];\n private readonly src: string;\n private readonly onLoad: IframeOptions['onLoad'];\n private readonly iframe: EmbeddingIFrameElement;\n private iframePlaceholder?: HTMLElement;\n private classNames = [Iframe.IFRAME_CLASS_NAME];\n private postRequest?: PostRequest;\n\n constructor(options: IframeOptions) {\n const {\n id,\n src,\n width = '100%',\n height = '100%',\n container,\n onLoad,\n loading,\n withIframePlaceholder,\n payload,\n className,\n } = options;\n\n this.width = width;\n this.height = height;\n this.onLoad = onLoad;\n this.iframeName = id;\n\n this.loading = loading;\n\n if (className) {\n this.classNames.push(className);\n }\n\n this.container = container;\n this.payload = payload;\n this.src = src;\n\n if (withIframePlaceholder) {\n this.createIframePlaceholder(withIframePlaceholder);\n }\n\n this.iframe = this.createIframe();\n this.iframe.addEventListener('load', this.onLoadLocal);\n }\n\n public getIframe = () => this.iframe;\n\n private createIframePlaceholder = (withIframePlaceholder: IframeOptions['withIframePlaceholder']) => {\n this.iframePlaceholder = document.createElement('div');\n this.iframePlaceholder.id = `${this.iframeName}-placeholder`;\n this.iframePlaceholder.style.width = this.width;\n this.iframePlaceholder.style.backgroundColor = 'rgba(0,0,0,.01)';\n this.iframePlaceholder.style.display = 'flex';\n this.iframePlaceholder.style.justifyContent = 'center';\n this.iframePlaceholder.style.alignItems = 'center';\n this.iframePlaceholder.className = `${Iframe.IFRAME_CLASS_NAME}-placeholder`;\n\n if (this.height.endsWith('px')) {\n this.iframePlaceholder.style.height = this.height;\n }\n\n if (withIframePlaceholder && typeof withIframePlaceholder !== 'boolean') {\n this.iframePlaceholder.appendChild(withIframePlaceholder);\n } else {\n const loaderSVG = this.createLoaderSVG();\n this.iframePlaceholder.appendChild(loaderSVG);\n }\n\n this.container.appendChild(this.iframePlaceholder);\n };\n\n private createIframe = () => {\n const iframe = document.createElement('iframe') as EmbeddingIFrameElement;\n iframe.className = this.classNames.join(' ').trim();\n iframe.id = this.iframeName;\n iframe.name = this.iframeName;\n iframe.width = this.width;\n iframe.height = this.height;\n\n if (this.loading) {\n iframe.loading = this.loading;\n }\n\n iframe.style.border = '0px';\n iframe.style.padding = '0px';\n\n if (this.iframePlaceholder) {\n iframe.style.opacity = '0';\n iframe.style.position = 'absolute';\n }\n\n if (this.width === '0px' && this.height === '0px') {\n iframe.style.position = 'absolute';\n }\n\n this.container.appendChild(iframe);\n\n if (this.payload) {\n this.postRequest = this.createPostRequest({\n src: this.src,\n target: iframe.name,\n container: this.container,\n payload: this.payload,\n });\n } else {\n iframe.src = this.src;\n }\n\n return iframe;\n };\n\n private onLoadLocal = (event: Event) => {\n if (this.iframePlaceholder) {\n this.iframePlaceholder.remove();\n this.iframe.style.position = '';\n this.iframe.style.opacity = '1';\n this.iframe.style.transition = 'opacity .5s ease-in-out';\n }\n\n this.onLoad?.(event);\n this.postRequest?.remove();\n };\n\n private createPostRequest = (postRequestOptions: CreatePostRequestOptions): PostRequest => {\n const {src, container, target, payload} = postRequestOptions;\n if (!src) {\n throw new Error('No source has been provided.');\n }\n\n const form = document.createElement('form');\n form.style.visibility = 'hidden';\n form.method = 'POST';\n form.action = src;\n form.target = target;\n form.name = `${target}-form`;\n\n Object.keys(payload).forEach(payloadItem => {\n const input = document.createElement('input');\n input.type = 'hidden';\n input.name = payloadItem;\n input.value = payload[payloadItem];\n form.appendChild(input);\n });\n\n container.appendChild(form);\n\n form?.submit();\n return {\n remove: () => {\n form.remove();\n },\n };\n };\n\n private createSvgElement = (\n tagName: string,\n attributes: Record,\n styles: Record = {},\n children: Element[] = []\n ) => {\n const element = document.createElementNS('http://www.w3.org/2000/svg', tagName);\n Object.entries(attributes).forEach(([name, value]) => element.setAttribute(name, value));\n Object.entries(styles).forEach(([name, value]) => element.style.setProperty(name, value));\n children.forEach(child => element.appendChild(child));\n return element;\n };\n\n private createLoaderSVG = () => {\n const circles: Element[] = [1, 2, 3].map(i => {\n const animate = this.createSvgElement('animate', {\n attributeName: 'opacity',\n dur: '1s',\n values: '0;1;0',\n repeatCount: 'indefinite',\n begin: `${i / 10.0}`,\n });\n return this.createSvgElement(\n 'circle',\n {\n fill: '#ccc',\n stroke: 'none',\n cx: `${i * 20 - 14}`,\n cy: '50',\n r: '6',\n },\n undefined,\n [animate]\n );\n });\n\n return this.createSvgElement(\n 'svg',\n {\n version: '1.1',\n x: '0px',\n y: '0px',\n viewBox: '0 0 100 100',\n 'enable-background': 'new 0 0 0 0',\n },\n {\n width: '100px',\n height: '100px',\n },\n circles\n );\n };\n}\n", "// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport {v4} from 'uuid';\nimport {encode} from 'punycode';\nimport {ContentOptions, FrameOptions, InternalExperiences, TransformedContentOptions} from '../types';\nimport {ParametersAsObject} from '../../../common';\nimport {ControlOptions} from '@experience/control-experience/types';\nimport {ExperienceFrameMetadata} from '@common/embedding-context/types';\nimport {EmbeddingIFrameElement} from '@common/iframe/types';\nimport {EventListener} from '@common/event-manager/types';\nimport {\n ChangeEventLevel,\n ChangeEventName,\n EmbeddingEvents,\n EventMessageValues,\n MessageEventName,\n} from '@common/events/types';\nimport {\n ChangeEvent,\n DataResponse,\n ErrorResponse,\n PostMessageEvent,\n SuccessResponse,\n TargetedMessageEvent,\n} from '@common/events/events';\nimport {Iframe} from '@common/iframe/iframe';\n\nexport const SDK_VERSION = '2.9.0';\n\nexport abstract class BaseExperienceFrame<\n ExperienceContentOptions extends ContentOptions,\n TransformedExperienceContentOptions extends TransformedContentOptions,\n InternalExperience extends InternalExperiences\n> {\n protected readonly frameOptions: FrameOptions;\n protected readonly contentOptions: ExperienceContentOptions;\n protected readonly controlOptions: ControlOptions;\n protected readonly transformedContentOptions: TransformedExperienceContentOptions;\n protected readonly experienceId: string;\n protected readonly internalExperience: InternalExperience;\n protected readonly onChange: EventListener;\n protected url: string;\n private readonly MESSAGE_RESPONSE_TIMEOUT = 5000;\n\n public iframe: EmbeddingIFrameElement | null = null;\n public container: HTMLElement;\n public onMessage: EventListener;\n public timeoutInstance?: NodeJS.Timeout;\n\n protected constructor(\n frameOptions: FrameOptions,\n controlOptions: ControlOptions,\n contentOptions: ExperienceContentOptions,\n transformedContentOptions: TransformedExperienceContentOptions,\n internalExperience: InternalExperience,\n experienceIdentifier: string,\n interceptMessage?: EventListener\n ) {\n this.frameOptions = frameOptions;\n this.contentOptions = contentOptions;\n this.onChange = this.decorateOnChange(frameOptions.onChange);\n this.onMessage = this.decorateOnMessage(contentOptions.onMessage, interceptMessage);\n this.container = this.getContainer(frameOptions.container);\n this.internalExperience = internalExperience;\n this.controlOptions = controlOptions;\n this.transformedContentOptions = transformedContentOptions;\n this.experienceId = experienceIdentifier;\n this.url = this.validateBaseUrl(frameOptions.url);\n\n this.controlOptions.eventManager.addEventListener(this.experienceId, this.onMessage, true);\n this.initializeMutationObserver();\n }\n\n public send = async (\n messageEvent: TargetedMessageEvent\n ): Promise | DataResponse> => {\n if (this.controlOptions.sendToControlFrame) {\n return this.controlOptions.sendToControlFrame(messageEvent);\n }\n\n if (!this.iframe) {\n throw new Error(`Cannot send ${messageEvent.eventName}: No experience frame found`);\n }\n\n const eventId = v4();\n const message = new PostMessageEvent(\n messageEvent.eventName,\n messageEvent.eventTarget,\n eventId,\n Date.now(),\n SDK_VERSION,\n messageEvent.message,\n messageEvent.data\n );\n\n this.iframe?.contentWindow?.postMessage(message, this.url);\n\n if (messageEvent.eventName === MessageEventName.ACKNOWLEDGE) {\n return Promise.resolve(new SuccessResponse());\n }\n\n return new Promise((resolve, reject) => {\n const eventHandler = (\n event: MessageEvent<\n PostMessageEvent<\n MessageEventName,\n | {success: false; errorCode: string; errors?: string}\n | {\n success: true;\n }\n >\n >\n ) => {\n const responseMessageEvent = event.data;\n if (responseMessageEvent?.eventId === eventId) {\n window.removeEventListener('message', eventHandler);\n\n if (responseMessageEvent.message?.success === true) {\n resolve(new SuccessResponse());\n } else if (responseMessageEvent.message?.success === false) {\n resolve(new ErrorResponse(responseMessageEvent.message));\n } else {\n resolve(new DataResponse(responseMessageEvent.message));\n }\n }\n };\n\n window.addEventListener('message', eventHandler);\n setTimeout(() => {\n window.removeEventListener('message', eventHandler);\n reject(`${messageEvent.eventName} timed out`);\n }, this.MESSAGE_RESPONSE_TIMEOUT);\n });\n };\n\n public buildParameterString = (parameters?: ParametersAsObject) => {\n if (!parameters || typeof parameters !== 'object') {\n return '';\n }\n\n return Object.entries(parameters)\n .map(([key, value]) => {\n const values = Array.isArray(value) ? value : [value];\n\n const encodedName = encodeURIComponent(key);\n\n return values\n .map(encodeURIComponent)\n .map(encodedValue => `p.${encodedName}=${encodedValue}`)\n .join('&');\n })\n .join('&');\n };\n\n public buildQueryString = (\n options: Omit &\n Pick\n ) => {\n const filteredOptions = Object.entries(options).reduce(\n (memoizedOptions, [key, value]) => {\n if (value !== undefined && value !== null) {\n return {\n ...memoizedOptions,\n [key]: `${value}`,\n };\n }\n return memoizedOptions;\n },\n {\n punyCodeEmbedOrigin: encode(`${window.location.origin}/`),\n sdkVersion: SDK_VERSION,\n }\n );\n\n return new URLSearchParams(filteredOptions).toString();\n };\n\n public createExperienceIframe = () => {\n this.onChange(\n new ChangeEvent(ChangeEventName.FRAME_STARTED, ChangeEventLevel.INFO, 'Creating the frame', {\n experience: this.internalExperience,\n })\n );\n\n try {\n this.setTimeoutInstance();\n this.iframe = new Iframe({\n id: this.experienceId,\n src: this.url,\n width: this.frameOptions.width,\n height: this.frameOptions.height,\n container: this.container,\n onLoad: this.onLoadHandler,\n withIframePlaceholder: this.frameOptions.withIframePlaceholder,\n className: this.frameOptions.className,\n }).getIframe();\n } catch (err) {\n this.onChange(\n new ChangeEvent(\n ChangeEventName.FRAME_NOT_CREATED,\n ChangeEventLevel.ERROR,\n 'Failed to create the frame',\n {\n experience: this.internalExperience,\n }\n )\n );\n\n throw err;\n }\n\n this.onChange(\n new ChangeEvent(ChangeEventName.FRAME_MOUNTED, ChangeEventLevel.INFO, 'The frame mounted', {\n experience: this.internalExperience,\n frame: this.iframe,\n })\n );\n };\n\n public addInternalEventListener = (eventName: MessageEventName, listener: EventListener) => {\n const handler = (messageEvent: EmbeddingEvents, metadata?: ExperienceFrameMetadata) => {\n if (messageEvent.eventName === eventName) {\n listener(messageEvent, metadata);\n }\n };\n\n this.controlOptions.eventManager.addEventListener(this.experienceId, handler, true);\n\n return {\n remove: () => this.controlOptions.eventManager.removeEventListener(this.experienceId, handler),\n };\n };\n\n private validateBaseUrl = (url: string) => {\n if (!url) {\n this.onChange(\n new ChangeEvent(ChangeEventName.NO_URL, ChangeEventLevel.ERROR, 'Url is required for the experience', {\n experience: this.internalExperience,\n })\n );\n\n throw new Error('Url is required for the experience');\n }\n\n return url;\n };\n\n private setTimeoutInstance = () => {\n this.timeoutInstance = setTimeout(() => {\n this.onChange(\n new ChangeEvent(\n ChangeEventName.FRAME_NOT_CREATED,\n ChangeEventLevel.ERROR,\n 'Creating the frame timed out',\n {\n experience: this.internalExperience,\n }\n )\n );\n throw new Error('Creating the frame timed out');\n }, this.controlOptions.timeout);\n };\n\n private onLoadHandler = async () => {\n if (this.timeoutInstance) {\n clearTimeout(this.timeoutInstance);\n }\n\n this.onChange(\n new ChangeEvent(ChangeEventName.FRAME_LOADED, ChangeEventLevel.INFO, 'The experience iframe loaded', {\n experience: this.internalExperience,\n })\n );\n };\n\n private getContainer = (container: HTMLElement | string) => {\n if (!container) {\n const message = 'Container is required for the experience';\n this.onChange(\n new ChangeEvent(ChangeEventName.NO_CONTAINER, ChangeEventLevel.ERROR, message, {\n experience: this.internalExperience,\n })\n );\n\n throw new Error(message);\n }\n\n let _container: HTMLElement | null = null;\n\n if (typeof container === 'string') {\n try {\n _container = document.querySelector(container);\n } catch (error) {\n if (error instanceof Error) {\n this.onChange(\n new ChangeEvent(ChangeEventName.INVALID_CONTAINER, ChangeEventLevel.ERROR, error.message, {\n experience: this.internalExperience,\n })\n );\n }\n\n throw error;\n }\n } else if (typeof container === 'object' && container.nodeName) {\n _container = container;\n }\n\n if (!_container) {\n const message = `Invalid container '${container}' for the experience`;\n this.onChange(\n new ChangeEvent(ChangeEventName.INVALID_CONTAINER, ChangeEventLevel.ERROR, message, {\n experience: this.internalExperience,\n })\n );\n\n throw new Error(message);\n }\n\n return _container;\n };\n\n private decorateOnChange = (onChange?: EventListener) => {\n return (changeEvent: EmbeddingEvents) => {\n if (onChange) {\n const metadata: ExperienceFrameMetadata = {\n frame: this.iframe,\n };\n onChange(changeEvent, metadata);\n }\n };\n };\n\n private decorateOnMessage = (onMessage?: EventListener, interceptOnMessage?: EventListener) => {\n return (messageEvent: EmbeddingEvents) => {\n if (interceptOnMessage && this.iframe) {\n interceptOnMessage(messageEvent, {\n frame: this.iframe,\n });\n }\n\n if (onMessage) {\n onMessage(messageEvent, {\n frame: this.iframe,\n });\n }\n };\n };\n\n // Add mutation observer to perform cleaning up tasks after container or frame is removed from the dom\n private initializeMutationObserver = () => {\n const mutationObserver = new MutationObserver(mutations => {\n const isRemoved = mutations.some(record =>\n Array.from(record.removedNodes).some(node => node === this.iframe || node === this.container)\n );\n\n if (isRemoved) {\n this.controlOptions.eventManager.cleanUpCallbacksForExperience(this.experienceId);\n mutationObserver.disconnect();\n this.iframe = null;\n\n this.onChange(\n new ChangeEvent(\n ChangeEventName.FRAME_REMOVED,\n ChangeEventLevel.INFO,\n 'Frame removed from the DOM',\n {\n experience: this.internalExperience,\n }\n )\n );\n }\n });\n\n mutationObserver.observe(document.body, {\n childList: true,\n subtree: true,\n });\n };\n\n protected abstract buildExperienceUrl: (baseUrl: string) => string;\n}\n", "// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport {InternalVisualExperience, TransformedVisualContentOptions, VisualContentOptions} from '../types';\nimport {BaseExperienceFrame} from '@experience/base-experience/frame/experience-frame';\nimport {FrameOptions} from '@experience/base-experience/types';\nimport {ControlOptions} from '@experience/control-experience/types';\nimport {EventListener} from '@common/event-manager/types';\n\nexport class VisualExperienceFrame extends BaseExperienceFrame<\n VisualContentOptions,\n TransformedVisualContentOptions,\n InternalVisualExperience\n> {\n constructor(\n frameOptions: FrameOptions,\n controlOptions: ControlOptions,\n contentOptions: VisualContentOptions,\n transformedContentOptions: TransformedVisualContentOptions,\n internalExperience: InternalVisualExperience,\n experienceIdentifier: string,\n interceptMessage?: EventListener\n ) {\n super(\n frameOptions,\n controlOptions,\n contentOptions,\n transformedContentOptions,\n internalExperience,\n experienceIdentifier,\n interceptMessage\n );\n this.url = this.buildExperienceUrl(frameOptions.url);\n this.createExperienceIframe();\n }\n\n buildExperienceUrl = (baseUrl: string) => {\n const {parameters, ...otherOptions} = this.transformedContentOptions;\n const {contextId, discriminator} = this.internalExperience;\n\n const queryString = this.buildQueryString({\n ...otherOptions,\n contextId,\n discriminator,\n });\n\n const parameterString = this.buildParameterString(parameters);\n const fullQueryString = [queryString, parameterString].join('#');\n\n return [baseUrl, fullQueryString].join(baseUrl.includes('?') ? '&' : '?');\n };\n}\n", "// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport {FrameOptions, TransformedContentOptions, ExperienceType} from '../base-experience';\nimport {\n InternalVisualExperience,\n TransformedVisualContentOptions,\n IVisualExperience,\n VisualContentOptions,\n} from './types';\nimport {Parameter, ParametersAsObject} from '../../common';\nimport {VisualExperienceFrame} from './frame/visual-experience-frame';\nimport {ControlOptions} from '../control-experience';\nimport {VisualAction} from '../dashboard-experience';\nimport {BaseExperience} from '@experience/base-experience/base-experience';\nimport {ChangeEvent, EmbeddingMessageEvent, ResponseMessage} from '@common/events/events';\nimport {ChangeEventLevel, ChangeEventName, EmbeddingEvents, MessageEventName} from '@common/events/types';\nimport {ExperienceFrameMetadata} from '@common/embedding-context/types';\nimport type {FilterGroup, ThemeConfiguration} from '@aws-sdk/client-quicksight';\n\nexport class VisualExperience extends BaseExperience<\n VisualContentOptions,\n InternalVisualExperience,\n IVisualExperience,\n TransformedContentOptions,\n VisualExperienceFrame\n> {\n protected experience: IVisualExperience;\n protected internalExperience: InternalVisualExperience;\n protected experienceFrame: VisualExperienceFrame;\n protected experienceId: string;\n\n constructor(\n frameOptions: FrameOptions,\n contentOptions: VisualContentOptions,\n controlOptions: ControlOptions,\n experienceIdentifiers: Set\n ) {\n super(frameOptions, contentOptions, controlOptions, experienceIdentifiers);\n\n this.experience = this.extractExperienceFromUrl(frameOptions.url);\n\n const {experienceIdentifier, internalExperience} = this.getInternalExperienceInfo<\n InternalVisualExperience,\n IVisualExperience\n >(this.experience);\n\n this.internalExperience = internalExperience;\n this.experienceId = experienceIdentifier;\n\n this.experienceFrame = new VisualExperienceFrame(\n frameOptions,\n controlOptions,\n contentOptions,\n this.transformVisualContentOptions(contentOptions),\n internalExperience,\n experienceIdentifier,\n this.interceptMessage\n );\n }\n\n setParameters = async (parameters: Parameter[]): Promise => {\n return this.send(new EmbeddingMessageEvent(MessageEventName.SET_PARAMETERS, parameters));\n };\n\n reset = async (): Promise => {\n return this.send(new EmbeddingMessageEvent(MessageEventName.RESET));\n };\n\n addFilterGroups = async (filterGroups: FilterGroup[]): Promise => {\n return this.send(new EmbeddingMessageEvent(MessageEventName.ADD_FILTER_GROUPS, filterGroups));\n };\n\n updateFilterGroups = async (filterGroups: FilterGroup[]): Promise => {\n return this.send(new EmbeddingMessageEvent(MessageEventName.UPDATE_FILTER_GROUPS, filterGroups));\n };\n\n removeFilterGroups = async (filterGroups: FilterGroup[] | string[]): Promise => {\n return this.send(new EmbeddingMessageEvent(MessageEventName.REMOVE_FILTER_GROUPS, filterGroups));\n };\n\n getFilterGroups = async (): Promise => {\n const response = await this.send(\n new EmbeddingMessageEvent(MessageEventName.GET_FILTER_GROUPS_FOR_VISUAL)\n );\n\n if (!Array.isArray(response?.message)) {\n throw new Error('Failed to retrieve filter groups for the visual');\n }\n\n return response.message;\n };\n\n getActions = async (): Promise => {\n const response = await this.send(\n new EmbeddingMessageEvent(MessageEventName.GET_VISUAL_ACTIONS)\n );\n\n if (!Array.isArray(response?.message)) {\n throw new Error('Failed to retrieve the actions');\n }\n\n return response.message;\n };\n\n addActions = async (actions: VisualAction[]): Promise => {\n return this.send(\n new EmbeddingMessageEvent(MessageEventName.ADD_VISUAL_ACTIONS, {\n Actions: actions,\n })\n );\n };\n\n setActions = async (actions: VisualAction[]): Promise => {\n return this.send(\n new EmbeddingMessageEvent(MessageEventName.SET_VISUAL_ACTIONS, {\n Actions: actions,\n })\n );\n };\n\n removeActions = async (actions: VisualAction[]): Promise => {\n return this.send(\n new EmbeddingMessageEvent(MessageEventName.REMOVE_VISUAL_ACTIONS, {\n Actions: actions,\n })\n );\n };\n\n setTheme = async (themeArn: string): Promise => {\n return this.send(new EmbeddingMessageEvent(MessageEventName.SET_THEME, {ThemeArn: themeArn}));\n };\n\n setThemeOverride = async (themeOverride: ThemeConfiguration): Promise => {\n return this.send(\n new EmbeddingMessageEvent(MessageEventName.SET_THEME_OVERRIDE, {\n ThemeOverride: themeOverride,\n })\n );\n };\n\n setPreloadThemes = async (preloadThemes: string[]): Promise => {\n return this.send(\n new EmbeddingMessageEvent(MessageEventName.PRELOAD_THEMES, {\n PreloadThemes: preloadThemes,\n })\n );\n };\n\n protected extractExperienceFromUrl = (url: string): IVisualExperience => {\n const matches: Array =\n /^https:\\/\\/[^/]+\\/embed\\/[^/]+\\/dashboards\\/([\\w-]+)\\/sheets\\/([\\w-]+)\\/visuals\\/([\\w-]+)(\\?|$)/i.exec(\n url\n ) || [];\n\n if (matches.length < 5) {\n this.frameOptions.onChange?.(\n new ChangeEvent(ChangeEventName.INVALID_URL, ChangeEventLevel.ERROR, 'Invalid visual experience url', {\n url,\n }),\n {frame: this.experienceFrame.iframe}\n );\n\n throw new Error('Invalid visual experience URL');\n }\n\n return {\n experienceType: ExperienceType.VISUAL,\n dashboardId: matches[1],\n sheetId: matches[2],\n visualId: matches[3],\n };\n };\n\n private interceptMessage = (messageEvent: EmbeddingEvents, metadata?: ExperienceFrameMetadata) => {\n // Intercepting onMessage\n // if the resizeHeightOnSizeChangedEvent is true, upon receiving SIZE_CHANGED message, update the height of the iframe\n if (messageEvent.eventName === 'SIZE_CHANGED' && this.frameOptions.resizeHeightOnSizeChangedEvent) {\n metadata?.frame?.setAttribute?.('height', `${messageEvent.message?.height}px`);\n }\n if (messageEvent.eventName === 'EXPERIENCE_INITIALIZED' && this.contentOptions?.themeOptions?.themeOverride) {\n this.setThemeOverride(this.contentOptions.themeOptions.themeOverride);\n }\n if (messageEvent.eventName === 'EXPERIENCE_INITIALIZED' && this.contentOptions?.themeOptions?.preloadThemes) {\n this.setPreloadThemes(this.contentOptions.themeOptions.preloadThemes);\n }\n };\n\n // We add content options into the query string of the iframe url.\n // Some option names do not match option names that the static content expects\n // This function converts the property names to the query string parameters that the static content expects\n private transformVisualContentOptions = (contentOptions: VisualContentOptions) => {\n const {\n fitToIframeWidth,\n locale,\n parameters,\n themeOptions,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n onMessage,\n ...unrecognizedContentOptions\n } = contentOptions;\n\n const transformedContentOptions = this.transformContentOptions(\n {\n fitToIframeWidth: fitToIframeWidth ?? true,\n locale,\n },\n unrecognizedContentOptions\n );\n\n if (Array.isArray(parameters)) {\n transformedContentOptions.parameters = parameters.reduce(\n (parametersAsObject: ParametersAsObject, parameter: Parameter) => {\n return {\n ...parametersAsObject,\n [parameter.Name]: parameter.Values,\n };\n },\n {}\n );\n }\n\n if (themeOptions?.themeArn) {\n transformedContentOptions.themeArn = themeOptions.themeArn;\n }\n\n return transformedContentOptions;\n };\n}\n", "// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport {ConsoleContentOptions, InternalConsoleExperience, TransformedConsoleContentOptions} from '../types';\nimport {BaseExperienceFrame} from '@experience/base-experience/frame/experience-frame';\nimport {FrameOptions} from '@experience/base-experience/types';\nimport {ControlOptions} from '@experience/control-experience/types';\nimport {EventListener} from '@common/event-manager/types';\n\nexport class ConsoleExperienceFrame extends BaseExperienceFrame<\n ConsoleContentOptions,\n TransformedConsoleContentOptions,\n InternalConsoleExperience\n> {\n constructor(\n frameOptions: FrameOptions,\n controlOptions: ControlOptions,\n contentOptions: ConsoleContentOptions,\n transformedContentOptions: TransformedConsoleContentOptions,\n internalExperience: InternalConsoleExperience,\n experienceIdentifier: string,\n interceptMessage?: EventListener\n ) {\n super(\n frameOptions,\n controlOptions,\n contentOptions,\n transformedContentOptions,\n internalExperience,\n experienceIdentifier,\n interceptMessage\n );\n this.url = this.buildExperienceUrl(frameOptions.url);\n this.createExperienceIframe();\n }\n\n buildExperienceUrl = (baseUrl: string) => {\n const {contextId, discriminator} = this.internalExperience;\n\n const queryString = this.buildQueryString({\n ...this.transformedContentOptions,\n contextId,\n discriminator,\n });\n\n return [baseUrl, queryString].join(baseUrl.includes('?') ? '&' : '?');\n };\n}\n", "// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport {ConsoleExperienceFrame} from './frame/console-experience-frame';\nimport {\n ConsoleContentOptions,\n InternalConsoleExperience,\n IConsoleExperience,\n TransformedConsoleContentOptions,\n} from './types';\nimport {ControlOptions} from '../control-experience';\nimport {ExperienceType, FrameOptions} from '@experience/base-experience/types';\nimport {BaseExperience} from '@experience/base-experience/base-experience';\nimport {ChangeEvent, EmbeddingMessageEvent, ResponseMessage} from '@common/events/events';\nimport {ChangeEventLevel, ChangeEventName, EmbeddingEvents, MessageEventName} from '@common/events/types';\nimport {ExperienceFrameMetadata} from 'src/common';\n\nexport class ConsoleExperience extends BaseExperience<\n ConsoleContentOptions,\n InternalConsoleExperience,\n IConsoleExperience,\n TransformedConsoleContentOptions,\n ConsoleExperienceFrame\n> {\n protected experience;\n protected internalExperience;\n protected experienceId;\n protected experienceFrame;\n protected currentPage: string | undefined;\n\n constructor(\n frameOptions: FrameOptions,\n contentOptions: ConsoleContentOptions,\n controlOptions: ControlOptions,\n experienceIdentifiers: Set\n ) {\n super(frameOptions, contentOptions, controlOptions, experienceIdentifiers);\n\n this.experience = this.extractExperienceFromUrl(frameOptions.url);\n\n const {experienceIdentifier, internalExperience} = this.getInternalExperienceInfo<\n InternalConsoleExperience,\n IConsoleExperience\n >(this.experience);\n\n this.internalExperience = internalExperience;\n this.experienceId = experienceIdentifier;\n\n const {\n locale,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n onMessage,\n ...unrecognizedContentOptions\n } = contentOptions;\n\n const transformedContentOptions = this.transformContentOptions(\n {locale},\n unrecognizedContentOptions\n );\n\n this.experienceFrame = new ConsoleExperienceFrame(\n frameOptions,\n controlOptions,\n contentOptions,\n transformedContentOptions,\n internalExperience,\n experienceIdentifier,\n this.interceptMessage\n );\n this.currentPage = 'START';\n }\n\n createSharedView = async (): Promise => {\n if (\n this.currentPage !== 'DASHBOARD' &&\n this.currentPage !== 'DASHBOARD_SHEET' &&\n this.currentPage !== 'DASHBOARD_VIEW'\n ) {\n throw new Error('Cannot call createSharedView from this page');\n }\n const response = await this.send(new EmbeddingMessageEvent(MessageEventName.CREATE_SHARED_VIEW));\n if (!response?.message) {\n throw new Error('Failed to create shared view');\n }\n\n return response;\n };\n\n private interceptMessage = (messageEvent: EmbeddingEvents, metadata?: ExperienceFrameMetadata) => {\n if (messageEvent.eventName === MessageEventName.PAGE_NAVIGATION) {\n this.currentPage = messageEvent?.message?.pageType;\n }\n };\n\n protected extractExperienceFromUrl = (url: string): IConsoleExperience => {\n const matches: Array =\n /^https:\\/\\/[^/]+\\/embedding\\/[^/]+\\/(start(\\/(favorites|dashboards|analyses))?|dashboards\\/[\\w-]+(\\/views\\/[\\w-]+)?|analyses\\/[\\w-]+)(\\?|$)/i.exec(\n url\n ) || [];\n\n if (matches.length < 5) {\n this.frameOptions.onChange?.(\n new ChangeEvent(ChangeEventName.INVALID_URL, ChangeEventLevel.ERROR, 'Invalid console experience url', {\n url,\n }),\n {frame: this.experienceFrame.iframe}\n );\n\n throw new Error('Invalid console experience URL');\n }\n\n return {\n experienceType: ExperienceType.CONSOLE,\n };\n };\n}\n", "// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport {DashboardContentOptions, InternalDashboardExperience, TransformedDashboardContentOptions} from '../types';\nimport {BaseExperienceFrame} from '@experience/base-experience/frame/experience-frame';\nimport {FrameOptions} from '@experience/base-experience/types';\nimport {ControlOptions} from '@experience/control-experience/types';\nimport {EventListener} from '@common/event-manager/types';\n\nexport class DashboardExperienceFrame extends BaseExperienceFrame<\n DashboardContentOptions,\n TransformedDashboardContentOptions,\n InternalDashboardExperience\n> {\n constructor(\n frameOptions: FrameOptions,\n controlOptions: ControlOptions,\n contentOptions: DashboardContentOptions,\n transformedContentOptions: TransformedDashboardContentOptions,\n internalExperience: InternalDashboardExperience,\n experienceIdentifier: string,\n interceptMessage?: EventListener\n ) {\n super(\n frameOptions,\n controlOptions,\n contentOptions,\n transformedContentOptions,\n internalExperience,\n experienceIdentifier,\n interceptMessage\n );\n this.url = this.buildExperienceUrl(frameOptions.url);\n this.createExperienceIframe();\n }\n\n buildExperienceUrl = (baseUrl: string) => {\n const {parameters, ...otherOptions} = this.transformedContentOptions;\n const {contextId, discriminator} = this.internalExperience;\n const {viewId} = this.contentOptions;\n\n // ViewId was passed as content option, need to override url to include custom view\n if (viewId) {\n const url = new URL(baseUrl);\n url.pathname = url.pathname.concat('/views/' + viewId);\n baseUrl = url.href;\n }\n\n const queryString = this.buildQueryString({\n ...otherOptions,\n contextId,\n discriminator,\n });\n\n const parameterString = this.buildParameterString(parameters);\n const fullQueryString = [queryString, parameterString].join('#');\n\n return [baseUrl, fullQueryString].join(baseUrl.includes('?') ? '&' : '?');\n };\n}\n", "// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport {Parameter, ParametersAsObject} from '../../common';\nimport {DashboardExperienceFrame} from './frame/dashboard-experience-frame';\nimport {\n DashboardContentOptions,\n ExportToolbarOption,\n IDashboardExperience,\n InternalDashboardExperience,\n NavigateToDashboardOptions,\n Sheet,\n TransformedDashboardContentOptions,\n Visual,\n VisualAction,\n} from './types';\nimport {ExperienceType, FrameOptions} from '../base-experience';\nimport {ControlOptions} from '../control-experience';\n\nimport {ExperienceFrameMetadata} from '../../common/embedding-context';\nimport {BaseExperience} from '@experience/base-experience/base-experience';\nimport {ChangeEvent, EmbeddingMessageEvent, ResponseMessage} from '@common/events/events';\nimport {ChangeEventLevel, ChangeEventName, EmbeddingEvents, MessageEventName} from '@common/events/types';\nimport type {FilterGroup, ThemeConfiguration} from '@aws-sdk/client-quicksight';\n\nexport class DashboardExperience extends BaseExperience<\n DashboardContentOptions,\n InternalDashboardExperience,\n IDashboardExperience,\n TransformedDashboardContentOptions,\n DashboardExperienceFrame\n> {\n protected readonly experience;\n protected readonly internalExperience;\n protected readonly experienceFrame;\n protected readonly experienceId: string;\n\n constructor(\n frameOptions: FrameOptions,\n contentOptions: DashboardContentOptions,\n controlOptions: ControlOptions,\n experienceIdentifiers: Set\n ) {\n super(frameOptions, contentOptions, controlOptions, experienceIdentifiers);\n\n this.experience = this.extractExperienceFromUrl(frameOptions.url);\n\n const {experienceIdentifier, internalExperience} = this.getInternalExperienceInfo<\n InternalDashboardExperience,\n IDashboardExperience\n >(this.experience);\n\n this.internalExperience = internalExperience;\n this.experienceId = experienceIdentifier;\n\n this.experienceFrame = new DashboardExperienceFrame(\n frameOptions,\n controlOptions,\n contentOptions,\n this.transformDashboardContentOptions(contentOptions),\n internalExperience,\n experienceIdentifier,\n this.interceptMessage\n );\n }\n\n initiatePrint = async (): Promise => {\n return this.send(new EmbeddingMessageEvent(MessageEventName.INITIATE_PRINT));\n };\n\n undo = async (): Promise => {\n return this.send(new EmbeddingMessageEvent(MessageEventName.UNDO));\n };\n\n redo = async (): Promise => {\n return this.send(new EmbeddingMessageEvent(MessageEventName.REDO));\n };\n\n toggleBookmarksPane = async (): Promise => {\n return this.send(new EmbeddingMessageEvent(MessageEventName.TOGGLE_BOOKMARKS_PANE));\n };\n\n getParameters = async (): Promise => {\n const response = await this.send(new EmbeddingMessageEvent(MessageEventName.GET_PARAMETERS));\n\n if (!Array.isArray(response?.message)) {\n throw new Error('Failed to retrieve the parameters');\n }\n\n return response.message;\n };\n\n getSheets = async (): Promise => {\n const response = await this.send(new EmbeddingMessageEvent(MessageEventName.GET_SHEETS));\n\n if (!Array.isArray(response?.message)) {\n throw new Error('Failed to retrieve the sheets');\n }\n\n return response.message;\n };\n\n addFilterGroups = async (filterGroups: FilterGroup[]): Promise => {\n return this.send(new EmbeddingMessageEvent(MessageEventName.ADD_FILTER_GROUPS, filterGroups));\n };\n\n updateFilterGroups = async (filterGroups: FilterGroup[]): Promise => {\n return this.send(new EmbeddingMessageEvent(MessageEventName.UPDATE_FILTER_GROUPS, filterGroups));\n };\n\n removeFilterGroups = async (filterGroups: FilterGroup[] | string[]): Promise => {\n return this.send(new EmbeddingMessageEvent(MessageEventName.REMOVE_FILTER_GROUPS, filterGroups));\n };\n\n getFilterGroupsForSheet = async (sheetId: string): Promise => {\n const response = await this.send(\n new EmbeddingMessageEvent(MessageEventName.GET_FILTER_GROUPS_FOR_SHEET, {\n SheetId: sheetId,\n })\n );\n\n if (!Array.isArray(response?.message)) {\n throw new Error('Failed to retrieve filter groups for the sheet');\n }\n\n return response.message;\n };\n\n getFilterGroupsForVisual = async (sheetId: string, visualId: string): Promise => {\n const response = await this.send(\n new EmbeddingMessageEvent(MessageEventName.GET_FILTER_GROUPS_FOR_VISUAL, {\n SheetId: sheetId,\n VisualId: visualId,\n })\n );\n\n if (!Array.isArray(response?.message)) {\n throw new Error('Failed to retrieve filter groups for the visual');\n }\n\n return response.message;\n };\n\n getVisualActions = async (sheetId: string, visualId: string): Promise => {\n const response = await this.send(\n new EmbeddingMessageEvent(MessageEventName.GET_VISUAL_ACTIONS, {\n SheetId: sheetId,\n VisualId: visualId,\n })\n );\n\n if (!Array.isArray(response?.message)) {\n throw new Error('Failed to retrieve the visual actions');\n }\n\n return response.message;\n };\n\n addVisualActions = async (sheetId: string, visualId: string, actions: VisualAction[]): Promise => {\n return this.send(\n new EmbeddingMessageEvent(MessageEventName.ADD_VISUAL_ACTIONS, {\n SheetId: sheetId,\n VisualId: visualId,\n Actions: actions,\n })\n );\n };\n\n setVisualActions = async (sheetId: string, visualId: string, actions: VisualAction[]): Promise => {\n return this.send(\n new EmbeddingMessageEvent(MessageEventName.SET_VISUAL_ACTIONS, {\n SheetId: sheetId,\n VisualId: visualId,\n Actions: actions,\n })\n );\n };\n\n getSelectedSheetId = async (): Promise => {\n const response = await this.send(new EmbeddingMessageEvent(MessageEventName.GET_SELECTED_SHEET_ID));\n\n if (!response?.message) {\n throw new Error('Failed to retrieve the selected sheet id');\n }\n\n return response.message;\n };\n\n setSelectedSheetId = async (sheetId: string): Promise => {\n return this.send(\n new EmbeddingMessageEvent(MessageEventName.SET_SELECTED_SHEET_ID, {\n SheetId: sheetId,\n })\n );\n };\n\n setTheme = async (themeArn: string): Promise => {\n return this.send(\n new EmbeddingMessageEvent(MessageEventName.SET_THEME, {\n ThemeArn: themeArn,\n })\n );\n };\n\n navigateToDashboard = async (\n dashboardId: string,\n navigateToDashboardOptions?: NavigateToDashboardOptions\n ): Promise => {\n return this.send(\n new EmbeddingMessageEvent(MessageEventName.NAVIGATE_TO_DASHBOARD, {\n DashboardId: dashboardId,\n Parameters: navigateToDashboardOptions?.parameters,\n })\n );\n };\n\n removeVisualActions = async (\n sheetId: string,\n visualId: string,\n actions: VisualAction[]\n ): Promise => {\n return this.send(\n new EmbeddingMessageEvent(MessageEventName.REMOVE_VISUAL_ACTIONS, {\n SheetId: sheetId,\n VisualId: visualId,\n Actions: actions,\n })\n );\n };\n\n getSheetVisuals = async (sheetId: string): Promise => {\n const response = await this.send(\n new EmbeddingMessageEvent(MessageEventName.GET_SHEET_VISUALS, {\n SheetId: sheetId,\n })\n );\n\n if (!Array.isArray(response?.message)) {\n throw new Error('Failed to retrieve the sheet visuals');\n }\n\n return response.message;\n };\n\n setParameters = async (parameters: Parameter[]): Promise => {\n return this.send(new EmbeddingMessageEvent(MessageEventName.SET_PARAMETERS, parameters));\n };\n\n reset = async (): Promise => {\n return this.send(new EmbeddingMessageEvent(MessageEventName.RESET));\n };\n\n setThemeOverride = async (themeOverride: ThemeConfiguration): Promise => {\n return this.send(\n new EmbeddingMessageEvent(MessageEventName.SET_THEME_OVERRIDE, {\n ThemeOverride: themeOverride,\n })\n );\n };\n\n setPreloadThemes = async (preloadThemes: string[]): Promise => {\n return this.send(\n new EmbeddingMessageEvent(MessageEventName.PRELOAD_THEMES, {\n PreloadThemes: preloadThemes,\n })\n );\n };\n\n createSharedView = async (): Promise => {\n const response = await this.send(new EmbeddingMessageEvent(MessageEventName.CREATE_SHARED_VIEW));\n if (!response?.message) {\n throw new Error('Failed to create shared view');\n }\n\n return response;\n };\n\n protected extractExperienceFromUrl = (url: string): IDashboardExperience => {\n const matches: Array = /^https:\\/\\/[^/]+\\/embed\\/[^/]+\\/dashboards\\/([\\w-]+)(\\?|$)/i.exec(url) || [];\n if (matches.length < 3) {\n this.frameOptions.onChange?.(\n new ChangeEvent(\n ChangeEventName.INVALID_URL,\n ChangeEventLevel.ERROR,\n 'Invalid dashboard experience url',\n {\n url,\n }\n ),\n {frame: null}\n );\n\n throw new Error('Invalid dashboard experience URL');\n }\n\n return {\n experienceType: ExperienceType.DASHBOARD,\n dashboardId: matches[1],\n };\n };\n\n private interceptMessage = (messageEvent: EmbeddingEvents, metadata?: ExperienceFrameMetadata) => {\n // Intercepting onMessage\n // if the resizeHeightOnSizeChangedEvent is true, upon receiving SIZE_CHANGED message, update the height of the iframe\n if (messageEvent.eventName === 'SIZE_CHANGED' && this.frameOptions.resizeHeightOnSizeChangedEvent) {\n metadata?.frame?.setAttribute?.('height', `${messageEvent?.message?.height}px`);\n }\n if (messageEvent.eventName === 'EXPERIENCE_INITIALIZED' && this.contentOptions?.themeOptions?.themeOverride) {\n this.setThemeOverride(this.contentOptions.themeOptions.themeOverride);\n }\n if (messageEvent.eventName === 'EXPERIENCE_INITIALIZED' && this.contentOptions?.themeOptions?.preloadThemes) {\n this.setPreloadThemes(this.contentOptions.themeOptions.preloadThemes);\n }\n };\n\n // We add content options into the query string of the iframe url.\n // Some option names do not match option names that the static content expects\n // This function converts the property names to the query string parameters that the static content expects\n private transformDashboardContentOptions = (contentOptions: DashboardContentOptions) => {\n const {\n parameters,\n locale,\n attributionOptions,\n sheetOptions,\n toolbarOptions,\n themeOptions,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n onMessage,\n ...unrecognizedContentOptions\n } = contentOptions;\n\n const transformedContentOptions = this.transformContentOptions(\n {\n locale,\n },\n unrecognizedContentOptions\n );\n\n if (Array.isArray(parameters)) {\n transformedContentOptions.parameters = parameters.reduce(\n (parametersAsObject: ParametersAsObject, parameter: Parameter) => {\n return {\n ...parametersAsObject,\n [parameter.Name]: parameter.Values,\n };\n },\n {}\n );\n }\n\n if (attributionOptions?.overlayContent !== true) {\n transformedContentOptions.footerPaddingEnabled = true;\n }\n\n if (toolbarOptions?.export || (toolbarOptions?.export as ExportToolbarOption)?.print) {\n transformedContentOptions.printEnabled = true;\n }\n\n if (toolbarOptions?.undoRedo !== true) {\n transformedContentOptions.undoRedoDisabled = true;\n }\n\n if (toolbarOptions?.reset !== true) {\n transformedContentOptions.resetDisabled = true;\n }\n\n if (toolbarOptions?.bookmarks === true) {\n transformedContentOptions.showBookmarksIcon = true;\n }\n\n if (sheetOptions?.initialSheetId) {\n transformedContentOptions.sheetId = sheetOptions.initialSheetId;\n }\n\n if (typeof sheetOptions?.singleSheet === 'boolean') {\n transformedContentOptions.sheetTabsDisabled = sheetOptions.singleSheet;\n }\n\n if (sheetOptions?.emitSizeChangedEventOnSheetChange) {\n transformedContentOptions.resizeOnSheetChange = true;\n }\n\n if (themeOptions?.themeArn) {\n transformedContentOptions.themeArn = themeOptions.themeArn;\n }\n\n return transformedContentOptions;\n };\n}\n", "// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport {InternalQSearchExperience, QSearchContentOptions, TransformedQSearchContentOptions} from '../types';\nimport {BaseExperienceFrame} from '@experience/base-experience/frame/experience-frame';\nimport {FrameOptions} from '@experience/base-experience/types';\nimport {ControlOptions} from '@experience/control-experience/types';\nimport {EventListener} from '@common/event-manager/types';\n\nexport class QSearchExperienceFrame extends BaseExperienceFrame<\n QSearchContentOptions,\n TransformedQSearchContentOptions,\n InternalQSearchExperience\n> {\n constructor(\n frameOptions: FrameOptions,\n controlOptions: ControlOptions,\n contentOptions: QSearchContentOptions,\n transformedContentOptions: TransformedQSearchContentOptions,\n internalExperience: InternalQSearchExperience,\n experienceIdentifier: string,\n interceptMessage?: EventListener\n ) {\n super(\n frameOptions,\n controlOptions,\n contentOptions,\n transformedContentOptions,\n internalExperience,\n experienceIdentifier,\n interceptMessage\n );\n this.url = this.buildExperienceUrl(frameOptions.url);\n this.createExperienceIframe();\n }\n\n buildExperienceUrl = (baseUrl: string) => {\n const {contextId, discriminator} = this.internalExperience;\n\n const queryString = this.buildQueryString({\n ...this.transformedContentOptions,\n contextId,\n discriminator,\n });\n\n return [baseUrl, queryString].join(baseUrl.includes('?') ? '&' : '?');\n };\n}\n", "// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport {\n BaseExperience,\n BaseExperienceFrame,\n ContentOptions,\n Experiences,\n InternalExperiences,\n TransformedContentOptions,\n} from '../base-experience';\nimport {FrameStyles} from '../internal-q-base-experience';\nimport {EmbeddingMessageEvent, ResponseMessage} from '@common/events/events';\nimport {MessageEventName} from '@common/events/types';\nimport {ExperienceFrameMetadata} from '@common/embedding-context/types';\n\n/**\n * Internal base experience for embedded Q,\n * containing shared functionality between q-search-bar and generative-qna experience types.\n */\nexport abstract class InternalQBaseExperience<\n ExperienceContentOptions extends ContentOptions,\n InternalExperience extends InternalExperiences,\n Experience extends Experiences,\n TransformedExperienceContentOptions extends TransformedContentOptions,\n ExperienceFrame extends BaseExperienceFrame<\n ExperienceContentOptions,\n TransformedExperienceContentOptions,\n InternalExperience\n >\n> extends BaseExperience<\n ExperienceContentOptions,\n InternalExperience,\n Experience,\n TransformedExperienceContentOptions,\n ExperienceFrame\n> {\n static readonly MAX_Z_INDEX = '2147483647';\n protected frameStyles?: FrameStyles;\n\n close = (): Promise => {\n return this.send(new EmbeddingMessageEvent(MessageEventName.CLOSE_Q_SEARCH));\n };\n\n setQuestion = (question: string): Promise => {\n return this.send(\n new EmbeddingMessageEvent(MessageEventName.SET_Q_SEARCH_QUESTION, {\n question,\n })\n );\n };\n\n protected trackOutsideClicks = (): void => {\n const clickHandler = async (event: MouseEvent) => {\n if (!this.experienceFrame.iframe?.contains(event.target as Node)) {\n try {\n await this.close();\n } catch (e) {\n if (!this.experienceFrame.iframe) {\n // no-op. Edge case when iframe is deleted before response is returned\n return;\n }\n throw e;\n }\n }\n };\n\n window.addEventListener('click', clickHandler);\n this.controlOptions.eventManager.addEventListenerForCleanup(this.experienceId, () =>\n window.removeEventListener('click', clickHandler)\n );\n };\n\n protected enterFullScreen = (metadata: ExperienceFrameMetadata | undefined): void => {\n if (!this.frameStyles && metadata?.frame) {\n this.frameStyles = {\n position: metadata.frame?.style.position,\n top: metadata.frame?.style.top,\n left: metadata.frame.style.left,\n zIndex: metadata.frame.style.zIndex,\n width: metadata.frame.style.width,\n height: metadata.frame.style.height,\n };\n\n metadata.frame.style.position = 'fixed';\n metadata.frame.style.top = '0px';\n metadata.frame.style.left = '0px';\n metadata.frame.style.zIndex = InternalQBaseExperience.MAX_Z_INDEX;\n metadata.frame.style.width = '100vw';\n metadata.frame.style.height = '100vh';\n }\n };\n\n protected exitFullScreen = (metadata: ExperienceFrameMetadata | undefined): void => {\n if (this.frameStyles && metadata?.frame) {\n metadata.frame.style.position = this.frameStyles.position;\n metadata.frame.style.top = this.frameStyles.top;\n metadata.frame.style.left = this.frameStyles.left;\n metadata.frame.style.zIndex = this.frameStyles.zIndex;\n metadata.frame.style.width = this.frameStyles.width;\n metadata.frame.style.height = this.frameStyles.height;\n this.frameStyles = undefined;\n }\n };\n}\n", "// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport {ExperienceType, FrameOptions} from '../base-experience';\nimport {\n InternalQSearchExperience,\n IQSearchExperience,\n QSearchContentOptions,\n TransformedQSearchContentOptions,\n} from './types';\nimport {FrameStyles} from '@experience/internal-q-base-experience/types';\nimport {QSearchExperienceFrame} from './frame/q-search-experience-frame';\nimport {ControlOptions} from '../control-experience';\nimport {InternalQBaseExperience} from '@experience/internal-q-base-experience/internal-q-base-experience';\nimport {ChangeEvent} from '@common/events/events';\nimport {ChangeEventLevel, ChangeEventName, EmbeddingEvents, MessageEventName} from '@common/events/types';\nimport {ExperienceFrameMetadata} from '@common/embedding-context/types';\n\nexport class QSearchExperience extends InternalQBaseExperience<\n QSearchContentOptions,\n InternalQSearchExperience,\n IQSearchExperience,\n TransformedQSearchContentOptions,\n QSearchExperienceFrame\n> {\n protected experience: IQSearchExperience;\n protected internalExperience: InternalQSearchExperience;\n protected experienceFrame: QSearchExperienceFrame;\n protected experienceId: string;\n protected frameStyles?: FrameStyles;\n\n constructor(\n frameOptions: FrameOptions,\n contentOptions: QSearchContentOptions,\n controlOptions: ControlOptions,\n experienceIdentifiers: Set\n ) {\n super(frameOptions, contentOptions, controlOptions, experienceIdentifiers);\n\n this.experience = this.extractExperienceFromUrl(frameOptions.url);\n\n const {experienceIdentifier, internalExperience} = this.getInternalExperienceInfo<\n InternalQSearchExperience,\n IQSearchExperience\n >(this.experience);\n\n this.internalExperience = internalExperience;\n this.experienceId = experienceIdentifier;\n\n this.experienceFrame = new QSearchExperienceFrame(\n frameOptions,\n controlOptions,\n contentOptions,\n this.transformQSearchContentOptions(contentOptions),\n internalExperience,\n experienceIdentifier,\n this.interceptMessage\n );\n }\n\n protected extractExperienceFromUrl = (url: string): IQSearchExperience => {\n const matches: Array = /^https:\\/\\/[^/]+\\/embedding\\/[^/]+\\/q\\/search(\\/|\\?|$)/i.exec(url) || [];\n\n if (matches.length < 2) {\n this.frameOptions.onChange?.(\n new ChangeEvent(\n ChangeEventName.INVALID_URL,\n ChangeEventLevel.ERROR,\n 'Invalid q-search experience URL',\n {url}\n ),\n {frame: this.experienceFrame.iframe}\n );\n\n throw new Error('Invalid q-search experience URL');\n }\n\n return {\n experienceType: ExperienceType.QSEARCH,\n };\n };\n\n private interceptMessage = (messageEvent: EmbeddingEvents, metadata?: ExperienceFrameMetadata) => {\n switch (messageEvent.eventName) {\n case MessageEventName.Q_SEARCH_OPENED:\n case MessageEventName.Q_SEARCH_CLOSED: {\n if (typeof messageEvent.message === 'object') {\n metadata?.frame?.style.setProperty('height', `${messageEvent?.message?.height}px`);\n }\n break;\n }\n case MessageEventName.CONTENT_LOADED: {\n this.trackOutsideClicks();\n break;\n }\n case MessageEventName.Q_SEARCH_ENTERED_FULLSCREEN: {\n this.enterFullScreen(metadata);\n break;\n }\n case MessageEventName.Q_SEARCH_EXITED_FULLSCREEN: {\n this.exitFullScreen(metadata);\n break;\n }\n }\n };\n\n // We add content options into the query string of the iframe url.\n // Some option names do not match option names that the static content expects\n // This function converts the property names to the query string parameters that the static content expects\n private transformQSearchContentOptions = (contentOptions: QSearchContentOptions) => {\n const {\n hideIcon,\n hideTopicName,\n theme,\n allowTopicSelection,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n onMessage,\n ...unrecognizedContentOptions\n } = contentOptions;\n\n const transformedContentOptions = this.transformContentOptions(\n {\n allowTopicSelection,\n },\n unrecognizedContentOptions\n );\n\n if (hideIcon !== undefined) {\n transformedContentOptions.qBarIconDisabled = hideIcon;\n }\n\n if (hideTopicName !== undefined) {\n transformedContentOptions.qBarTopicNameDisabled = hideTopicName;\n }\n\n if (theme !== undefined) {\n transformedContentOptions.themeId = theme;\n }\n\n return transformedContentOptions;\n };\n}\n", "// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport {\n InternalGenerativeQnAExperience,\n GenerativeQnAContentOptions,\n TransformedGenerativeQnAContentOptions,\n} from '../types';\nimport {BaseExperienceFrame} from '@experience/base-experience/frame/experience-frame';\nimport {FrameOptions} from '@experience/base-experience/types';\nimport {ControlOptions} from '@experience/control-experience/types';\nimport {EventListener} from '@common/event-manager/types';\n\nexport class GenerativeQnAExperienceFrame extends BaseExperienceFrame<\n GenerativeQnAContentOptions,\n TransformedGenerativeQnAContentOptions,\n InternalGenerativeQnAExperience\n> {\n constructor(\n frameOptions: FrameOptions,\n controlOptions: ControlOptions,\n contentOptions: GenerativeQnAContentOptions,\n transformedContentOptions: TransformedGenerativeQnAContentOptions,\n internalExperience: InternalGenerativeQnAExperience,\n experienceIdentifier: string,\n interceptMessage?: EventListener\n ) {\n super(\n frameOptions,\n controlOptions,\n contentOptions,\n transformedContentOptions,\n internalExperience,\n experienceIdentifier,\n interceptMessage\n );\n this.url = this.buildExperienceUrl(frameOptions.url);\n this.createExperienceIframe();\n }\n\n buildExperienceUrl = (baseUrl: string) => {\n const {contextId, discriminator} = this.internalExperience;\n\n const queryString = this.buildQueryString({\n ...this.transformedContentOptions,\n contextId,\n discriminator,\n });\n\n return [baseUrl, queryString].join(baseUrl.includes('?') ? '&' : '?');\n };\n}\n", "// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport {ExperienceType, FrameOptions} from '../base-experience';\nimport {\n InternalGenerativeQnAExperience,\n IGenerativeQnAExperience,\n GenerativeQnAContentOptions,\n TransformedGenerativeQnAContentOptions,\n GenerativeQnAPanelType,\n} from './types';\nimport {FrameStyles} from '@experience/internal-q-base-experience/types';\nimport {GenerativeQnAExperienceFrame} from './frame/generative-qna-experience-frame';\nimport {ControlOptions} from '../control-experience';\nimport {InternalQBaseExperience} from '@experience/internal-q-base-experience/internal-q-base-experience';\nimport {ChangeEvent} from '@common/events/events';\nimport {ChangeEventLevel, ChangeEventName, EmbeddingEvents, MessageEventName} from '@common/events/types';\nimport {ExperienceFrameMetadata} from '@common/embedding-context/types';\n\nexport class GenerativeQnAExperience extends InternalQBaseExperience<\n GenerativeQnAContentOptions,\n InternalGenerativeQnAExperience,\n IGenerativeQnAExperience,\n TransformedGenerativeQnAContentOptions,\n GenerativeQnAExperienceFrame\n> {\n protected experience: IGenerativeQnAExperience;\n protected internalExperience: InternalGenerativeQnAExperience;\n protected experienceFrame: GenerativeQnAExperienceFrame;\n protected experienceId: string;\n protected frameStyles?: FrameStyles;\n static readonly TEXT_PROPERTY_MAX_LENGTH = 200;\n\n constructor(\n frameOptions: FrameOptions,\n contentOptions: GenerativeQnAContentOptions,\n controlOptions: ControlOptions,\n experienceIdentifiers: Set\n ) {\n super(frameOptions, contentOptions, controlOptions, experienceIdentifiers);\n\n this.experience = this.extractExperienceFromUrl(frameOptions.url);\n\n const {experienceIdentifier, internalExperience} = this.getInternalExperienceInfo<\n InternalGenerativeQnAExperience,\n IGenerativeQnAExperience\n >(this.experience);\n\n this.internalExperience = internalExperience;\n this.experienceId = experienceIdentifier;\n\n this.experienceFrame = new GenerativeQnAExperienceFrame(\n frameOptions,\n controlOptions,\n contentOptions,\n this.transformGenerativeQnAContentOptions(contentOptions),\n internalExperience,\n experienceIdentifier,\n this.interceptMessage\n );\n }\n\n protected extractExperienceFromUrl = (url: string): IGenerativeQnAExperience => {\n const matches: Array = /^https:\\/\\/[^/]+\\/embedding\\/[^/]+\\/q\\/search(\\/|\\?|$)/i.exec(url) || [];\n\n if (matches.length < 2) {\n this.frameOptions.onChange?.(\n new ChangeEvent(\n ChangeEventName.INVALID_URL,\n ChangeEventLevel.ERROR,\n 'Invalid generative-qna experience URL',\n {url}\n ),\n {frame: this.experienceFrame.iframe}\n );\n\n throw new Error('Invalid generative-qna experience URL');\n }\n\n return {\n experienceType: ExperienceType.GENERATIVEQNA,\n };\n };\n\n private interceptMessage = (messageEvent: EmbeddingEvents, metadata?: ExperienceFrameMetadata) => {\n switch (messageEvent.eventName) {\n case MessageEventName.Q_SEARCH_OPENED:\n case MessageEventName.Q_SEARCH_CLOSED:\n case MessageEventName.Q_SEARCH_FOCUSED: {\n if (typeof messageEvent.message === 'object') {\n metadata?.frame?.style.setProperty('height', `${messageEvent?.message?.height}`);\n }\n break;\n }\n case MessageEventName.CONTENT_LOADED: {\n if (this.contentOptions?.panelOptions?.panelType === GenerativeQnAPanelType.SEARCH_BAR) {\n this.trackOutsideClicks();\n }\n break;\n }\n case MessageEventName.Q_PANEL_ENTERED_FULLSCREEN: {\n this.enterFullScreen(metadata);\n break;\n }\n case MessageEventName.Q_PANEL_EXITED_FULLSCREEN: {\n this.exitFullScreen(metadata);\n break;\n }\n }\n };\n\n private transformGenerativeQnAContentOptions = (contentOptions: GenerativeQnAContentOptions) => {\n const unrecognizedProperties: string[] = [];\n\n const markUnrecognized = (properties: object, prefix = '') => {\n Object.keys(properties).forEach(key => {\n unrecognizedProperties.push(prefix + key);\n });\n };\n\n const {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n onMessage, // excluded from unrecognized\n showTopicName,\n showPinboard,\n showSearchBar,\n showInterpretedAs,\n showFeedback,\n showGeneratedNarrative,\n showDidYouMean,\n showComplementaryVisuals,\n showQBusinessInsights,\n showSeeWhy,\n allowTopicSelection,\n allowFullscreen,\n allowReturn,\n searchPlaceholderText,\n panelOptions,\n themeOptions,\n initialQuestionId,\n initialAnswerId,\n ...unrecognizedContentOptions\n } = contentOptions;\n\n markUnrecognized(unrecognizedContentOptions);\n\n const transformedContentOptions: TransformedGenerativeQnAContentOptions = {\n qShowTopicName: showTopicName,\n qShowPinboard: showPinboard,\n qShowSearchBar: showSearchBar,\n qShowInterpretedAs: showInterpretedAs,\n qShowFeedback: showFeedback,\n qShowGeneratedNarrative: showGeneratedNarrative,\n qShowDidYouMean: showDidYouMean,\n qShowComplementaryVisuals: showComplementaryVisuals,\n qShowQBusinessInsights: showQBusinessInsights,\n qShowSeeWhy: showSeeWhy,\n qAllowTopicSelection: allowTopicSelection,\n qAllowFullscreen: allowFullscreen,\n qAllowReturn: allowReturn,\n questionId: initialQuestionId,\n answerId: initialAnswerId,\n };\n\n if (typeof searchPlaceholderText === 'string') {\n this.checkMaxLength(searchPlaceholderText, 'searchPlaceholderText');\n transformedContentOptions.qSearchPlaceholderText = encodeURIComponent(searchPlaceholderText);\n }\n\n if (panelOptions) {\n const {panelType} = panelOptions;\n transformedContentOptions.qPanelType = panelType;\n\n if (panelType === GenerativeQnAPanelType.FULL) {\n const {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n panelType: unusedPanelType, // excluded from unrecognized\n title,\n showQIcon,\n ...unrecognizedPanelOptions\n } = panelOptions;\n\n if (typeof title === 'string') {\n this.checkMaxLength(title, 'panelOptions.title');\n transformedContentOptions.qPanelTitle = encodeURIComponent(title);\n }\n transformedContentOptions.qShowPanelIcon = showQIcon;\n\n markUnrecognized(unrecognizedPanelOptions, 'panelOptions.');\n } else if (panelType === GenerativeQnAPanelType.SEARCH_BAR) {\n const {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n panelType: unusedPanelType, // excluded from unrecognized\n focusedHeight,\n expandedHeight,\n ...unrecognizedPanelOptions\n } = panelOptions;\n\n transformedContentOptions.qPanelFocusedHeight = focusedHeight;\n transformedContentOptions.qPanelExpandedHeight = expandedHeight;\n\n markUnrecognized(unrecognizedPanelOptions, 'panelOptions.');\n } else {\n throw new Error('panelOptions.panelType should be one of following: [FULL, SEARCH_BAR]');\n }\n }\n\n if (themeOptions?.themeArn) {\n transformedContentOptions.themeArn = themeOptions.themeArn;\n }\n\n this.warnUnrecognizedContentOptions(unrecognizedProperties);\n\n return transformedContentOptions;\n };\n\n private checkMaxLength = (value: string, propertyName: string) => {\n const maxLength = GenerativeQnAExperience.TEXT_PROPERTY_MAX_LENGTH;\n if (value.length > maxLength) {\n throw new Error(`${propertyName} should be less than ${maxLength} characters`);\n }\n };\n}\n", "// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport {ControlOptions, InternalControlExperience} from '../types';\nimport {EventListener} from '@common/event-manager/types';\nimport {BaseExperienceFrame} from '@experience/base-experience/frame/experience-frame';\nimport {BaseContentOptions, FrameOptions} from '@experience/base-experience/types';\n\nexport class ControlExperienceFrame extends BaseExperienceFrame {\n constructor(\n frameOptions: FrameOptions,\n controlOptions: ControlOptions,\n contentOptions: BaseContentOptions,\n transformedContentOptions: object,\n internalExperience: InternalControlExperience,\n experienceIdentifier: string,\n interceptMessage?: EventListener\n ) {\n super(\n frameOptions,\n controlOptions,\n contentOptions,\n transformedContentOptions,\n internalExperience,\n experienceIdentifier,\n interceptMessage\n );\n this.url = this.buildExperienceUrl(frameOptions.url);\n this.createExperienceIframe();\n }\n\n buildExperienceUrl = (baseUrl: string) => {\n const {contextId, discriminator} = this.internalExperience;\n\n const queryString = this.buildQueryString({\n ...this.transformedContentOptions,\n contextId,\n discriminator,\n });\n\n return [baseUrl, queryString].join('?');\n };\n}\n", "// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport {ControlExperienceFrame} from './frame/control-experience-frame';\nimport {ControlOptions, IControlExperience, InternalControlExperience, UrlInfo} from './types';\nimport {ExperienceType} from '../base-experience';\nimport {EventManager} from '@common/event-manager/event-manager';\nimport {ChangeEvent, TargetedMessageEvent} from '@common/events/events';\nimport {ChangeEventLevel, ChangeEventName, EmbeddingEvents, MessageEventName} from '@common/events/types';\nimport {BaseExperience} from '@experience/base-experience/base-experience';\nimport {EventListener} from '@common/event-manager/types';\nimport {LogProvider} from '../../common';\n\nexport class ControlExperience {\n static FRAME_TIMEOUT = 60000;\n private readonly container: HTMLBodyElement;\n private readonly urlInfo: UrlInfo;\n private readonly internalExperience: InternalControlExperience;\n private readonly eventManager: EventManager;\n private readonly onChange?: EventListener;\n private readonly experience: IControlExperience = {\n experienceType: ExperienceType.CONTROL,\n };\n private readonly logger?: LogProvider;\n private readonly controlExperienceFrame: ControlExperienceFrame;\n\n constructor(\n container: HTMLBodyElement,\n controlOptions: ControlOptions,\n onChange?: EventListener,\n logger?: LogProvider\n ) {\n this.container = container;\n this.eventManager = controlOptions.eventManager;\n this.urlInfo = controlOptions.urlInfo;\n this.onChange = onChange;\n this.logger = logger;\n\n this.internalExperience = {\n ...this.experience,\n contextId: controlOptions.contextId,\n discriminator: 0,\n };\n\n const controlExperienceId = this.getControlExperienceId();\n\n this.controlExperienceFrame = new ControlExperienceFrame(\n {\n url: this.getControlExperienceBaseUrl(),\n container: this.container,\n width: '0px',\n height: '0px',\n onChange: this.onChange,\n },\n {\n eventManager: this.eventManager,\n contextId: this.internalExperience.contextId,\n timeout: ControlExperience.FRAME_TIMEOUT,\n urlInfo: this.urlInfo,\n },\n {},\n {},\n this.internalExperience,\n controlExperienceId\n );\n\n window.addEventListener('message', this.controlFrameMessageListener);\n this.eventManager.addEventListenerForCleanup(controlExperienceId, () =>\n window.removeEventListener('message', this.controlFrameMessageListener)\n );\n }\n\n public send = (messageEvent: TargetedMessageEvent) => {\n return this.controlExperienceFrame.send(messageEvent);\n };\n\n public controlFrameMessageListener = (event: MessageEvent) => {\n if (this.isMessageEvent(event.data)) {\n const messageEvent = event.data;\n try {\n if (messageEvent.eventTarget) {\n const incomingExperienceIdentifier = BaseExperience.getExperienceIdentifier(\n messageEvent.eventTarget\n );\n\n this.eventManager.invokeEventListener(incomingExperienceIdentifier, messageEvent);\n }\n\n this.sendAcknowledgment(messageEvent);\n } catch (error) {\n this.onChange?.(\n new ChangeEvent(\n ChangeEventName.UNRECOGNIZED_EVENT_TARGET,\n ChangeEventLevel.WARN,\n 'Message with unrecognized event target received',\n {\n eventTarget: messageEvent.eventTarget,\n }\n ),\n {frame: this.controlExperienceFrame.iframe}\n );\n this.logger?.warn('Message with unrecognized event target received');\n }\n }\n };\n\n private sendAcknowledgment = (messageEvent: EmbeddingEvents) => {\n const acknowledgment = new TargetedMessageEvent(MessageEventName.ACKNOWLEDGE, this.internalExperience, {\n eventName: messageEvent.eventName,\n eventTarget: messageEvent.eventTarget,\n });\n\n window.requestIdleCallback?.(() => this.send(acknowledgment)) || this.send(acknowledgment);\n };\n\n private getControlExperienceId = () => {\n return [\n this.internalExperience.contextId,\n this.internalExperience.experienceType,\n this.internalExperience.discriminator,\n ]\n .filter(Boolean)\n .join('-');\n };\n\n private getControlExperienceBaseUrl = () => {\n const {host, sessionId} = this.urlInfo;\n const urlString = `${host}/embed/${sessionId}/embedControl`;\n return new URL(urlString).href;\n };\n\n private isMessageEvent = (messageEvent: EmbeddingEvents) => {\n return !!messageEvent && !!messageEvent.eventTarget && !!messageEvent.eventName;\n };\n}\n", "// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport {ExperienceIdentifier, EventListener} from './types';\nimport {EmbeddingEvents} from '../events';\nimport {CleanUpCallback} from '../types';\n\n/**\n * Manages the event listeners for the experiences within an embedding context\n */\nexport class EventManager {\n private eventListeners: Map;\n private cleanUpCallbacks: Map;\n\n constructor() {\n this.eventListeners = new Map();\n this.cleanUpCallbacks = new Map();\n }\n\n public addEventListener = (experienceId: ExperienceIdentifier, listener: EventListener, cleanUp?: boolean) => {\n if (!experienceId) {\n throw new Error('Experience identifier is required when calling addEventListener');\n }\n\n if (typeof listener !== 'function') {\n throw new Error('Invalid type provided for event listener');\n }\n\n const experienceIdentifierSpecificListeners = this.eventListeners.get(experienceId);\n\n if (cleanUp) {\n this.addEventListenerForCleanup(experienceId, () => this.removeEventListener(experienceId, listener));\n }\n\n if (!experienceIdentifierSpecificListeners) {\n this.eventListeners.set(experienceId, [listener]);\n return this;\n }\n\n experienceIdentifierSpecificListeners.push(listener);\n return this;\n };\n\n public invokeEventListener = (experienceId: ExperienceIdentifier, event: EmbeddingEvents) => {\n const experienceIdentifierSpecificListeners = this.eventListeners.get(experienceId);\n\n if (!experienceIdentifierSpecificListeners) {\n throw new Error(`Unable to find experience specific event listeners: ${experienceId}`);\n }\n\n experienceIdentifierSpecificListeners.forEach((listener: EventListener) => {\n listener(event);\n });\n\n return this;\n };\n\n public removeEventListener = (experienceId: ExperienceIdentifier, listener: EventListener) => {\n const experienceIdentifierSpecificListeners = this.eventListeners.get(experienceId);\n\n if (!experienceIdentifierSpecificListeners) {\n throw new Error(`Unable to find experience specific event listeners: ${experienceId}`);\n }\n\n const updateEventListeners = experienceIdentifierSpecificListeners.filter(\n listenerItem => listenerItem !== listener\n );\n\n this.eventListeners.set(experienceId, updateEventListeners);\n\n return this;\n };\n\n public addEventListenerForCleanup = (experienceId: ExperienceIdentifier, cleanupCallback: CleanUpCallback) => {\n const experienceIdentifierSpecificListenersForCleanup = this.cleanUpCallbacks.get(experienceId) ?? [];\n experienceIdentifierSpecificListenersForCleanup.push(cleanupCallback);\n\n this.cleanUpCallbacks.set(experienceId, experienceIdentifierSpecificListenersForCleanup);\n };\n\n public cleanUpCallbacksForExperience = (experienceId: ExperienceIdentifier) => {\n const experienceIdentifierSpecificListenersForCleanup = this.cleanUpCallbacks.get(experienceId);\n\n if (experienceIdentifierSpecificListenersForCleanup) {\n experienceIdentifierSpecificListenersForCleanup.forEach(callback => callback());\n this.cleanUpCallbacks.delete(experienceId);\n this.eventListeners.set(experienceId, []);\n }\n };\n}\n", "export interface LogProvider {\n log: typeof console.log;\n warn: typeof console.warn;\n error: typeof console.error;\n debug: typeof console.debug;\n info: typeof console.info;\n}\n\n/**\n * Temporary abstraction for customer provided logger\n *\n */\nexport class DefaultLogger implements LogProvider {\n log = console.log;\n\n warn = console.warn;\n\n error = console.error;\n\n debug = console.debug;\n\n info = console.info;\n}\n", "// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport {v4} from 'uuid';\nimport {\n EmbeddingContextFrameOptions,\n ExperienceFrameMetadata,\n IEmbeddingContext,\n} from '@common/embedding-context/types';\nimport {FrameOptions} from '@experience/base-experience/types';\nimport {ControlOptions} from '@experience/control-experience/types';\nimport {VisualContentOptions} from '@experience/visual-experience/types';\nimport {VisualExperience} from '@experience/visual-experience/visual-experience';\nimport {DashboardContentOptions} from '@experience/dashboard-experience/types';\nimport {ConsoleContentOptions} from '@experience/console-experience/types';\nimport {QSearchContentOptions} from '@experience/q-search-experience/types';\nimport {GenerativeQnAContentOptions} from '@experience/generative-qna-experience/types';\nimport {ConsoleExperience} from '@experience/console-experience/console-experience';\nimport {DashboardExperience} from '@experience/dashboard-experience/dashboard-experience';\nimport {QSearchExperience} from '@experience/q-search-experience/q-search-experience';\nimport {GenerativeQnAExperience} from '@experience/generative-qna-experience/generative-qna-experience';\nimport {ChangeEventLevel, ChangeEventName, EmbeddingEvents} from '@common/events/types';\nimport {ChangeEvent} from '@common/events/events';\nimport {ControlExperience} from '@experience/control-experience/control-experience';\nimport {EventManager} from '@common/event-manager/event-manager';\nimport {DefaultLogger, LogProvider} from '../log-provider/log-provider';\n\n/**\n * The embedding context creates an additional zero-pixel iframe and appends it into the body element on the page to centralize communication between the SDK and the embedded QuickSight content\n */\nexport class EmbeddingContext implements IEmbeddingContext {\n private readonly experienceIdentifiers: Set;\n private readonly eventManager: EventManager;\n private readonly contextId: string;\n private readonly contextOnChange;\n private controlOptions?: ControlOptions;\n private readonly logger: LogProvider;\n\n constructor(contextFrameOptions: EmbeddingContextFrameOptions) {\n // The contextId is shared with experiences to create a communication context\n // Experiences with not-matching contextId is outside the communication context\n this.contextId = v4();\n this.experienceIdentifiers = new Set();\n\n // The eventManager instance below is passed to all experiences to create a unified event management\n this.eventManager = new EventManager();\n this.contextOnChange = contextFrameOptions.onChange;\n this.logger = new DefaultLogger();\n }\n\n public embedVisual = async (\n frameOptions: FrameOptions,\n contentOptions: VisualContentOptions = {}\n ): Promise => {\n this.validateFrameOptions(frameOptions, 'embedVisual');\n const controlOptions = this.buildControlOptions(frameOptions);\n\n return new VisualExperience(\n frameOptions,\n contentOptions,\n controlOptions,\n this.experienceIdentifiers\n ).setLogProvider(this.logger);\n };\n\n public embedDashboard = async (\n frameOptions: FrameOptions,\n contentOptions: DashboardContentOptions = {}\n ): Promise => {\n this.validateFrameOptions(frameOptions, 'embedDashboard');\n const controlOptions = this.buildControlOptions(frameOptions);\n return new DashboardExperience(\n frameOptions,\n contentOptions,\n controlOptions,\n this.experienceIdentifiers\n ).setLogProvider(this.logger);\n };\n\n public embedConsole = async (\n frameOptions: FrameOptions,\n contentOptions: ConsoleContentOptions = {}\n ): Promise => {\n this.validateFrameOptions(frameOptions, 'embedConsole');\n const controlOptions = this.buildControlOptions(frameOptions);\n return new ConsoleExperience(\n frameOptions,\n contentOptions,\n controlOptions,\n this.experienceIdentifiers\n ).setLogProvider(this.logger);\n };\n\n public embedQSearchBar = async (\n frameOptions: FrameOptions,\n contentOptions: QSearchContentOptions = {}\n ): Promise => {\n this.validateFrameOptions(frameOptions, 'embedQSearchBar');\n const controlOptions = this.buildControlOptions(frameOptions);\n return new QSearchExperience(\n frameOptions,\n contentOptions,\n controlOptions,\n this.experienceIdentifiers\n ).setLogProvider(this.logger);\n };\n\n public embedGenerativeQnA = async (\n frameOptions: FrameOptions,\n contentOptions: GenerativeQnAContentOptions = {}\n ): Promise => {\n this.validateFrameOptions(frameOptions, 'embedGenerativeQnA');\n const controlOptions = this.buildControlOptions(frameOptions);\n return new GenerativeQnAExperience(\n frameOptions,\n contentOptions,\n controlOptions,\n this.experienceIdentifiers\n ).setLogProvider(this.logger);\n };\n\n private validateFrameOptions = (frameOptions: FrameOptions, methodName: string) => {\n if (!frameOptions) {\n const errorMessage = `${methodName} is called without frameOptions`;\n this.onChange(\n new ChangeEvent(\n ChangeEventName.NO_FRAME_OPTIONS,\n ChangeEventLevel.ERROR,\n `${methodName} is called without frameOptions`,\n {\n methodName,\n }\n ),\n {frame: null}\n );\n throw new Error(errorMessage);\n }\n\n if (typeof frameOptions !== 'object' || Array.isArray(frameOptions)) {\n const errorMessage = `${methodName} is called with non-object frameOptions`;\n this.onChange(\n new ChangeEvent(ChangeEventName.INVALID_FRAME_OPTIONS, ChangeEventLevel.ERROR, errorMessage, {\n methodName,\n frameOptionsType: Array.isArray(frameOptions) ? 'array' : typeof frameOptions,\n }),\n {frame: null}\n );\n throw new Error(errorMessage);\n }\n\n const recognizedKeys = [\n 'url',\n 'container',\n 'width',\n 'height',\n 'resizeHeightOnSizeChangedEvent',\n 'withIframePlaceholder',\n 'onChange',\n 'className',\n ];\n\n const unrecognizedFrameOptionNames = Object.keys(frameOptions).filter(key => !recognizedKeys.includes(key));\n\n if (unrecognizedFrameOptionNames.length > 0) {\n const warnMessage = `${methodName} is called with unrecognized properties`;\n frameOptions.onChange?.(\n new ChangeEvent(ChangeEventName.UNRECOGNIZED_FRAME_OPTIONS, ChangeEventLevel.WARN, warnMessage, {\n unrecognizedFrameOptions: unrecognizedFrameOptionNames,\n }),\n {frame: null}\n );\n\n this.logger?.warn(warnMessage);\n }\n };\n\n private buildControlOptions = (frameOptions: FrameOptions): ControlOptions => {\n if (!this.controlOptions) {\n if (!frameOptions.url) {\n throw new Error('URL is missing in frame options, but is a required field');\n }\n\n const urlInfo = this.getControlUrlInfo(frameOptions.url);\n\n const controlFrame = new ControlExperience(\n this.getBodyElement(),\n {\n eventManager: this.eventManager,\n urlInfo,\n contextId: this.contextId,\n },\n this.onChange,\n this.logger\n );\n\n this.controlOptions = {\n eventManager: this.eventManager,\n sendToControlFrame: controlFrame.send,\n contextId: this.contextId,\n timeout: ControlExperience.FRAME_TIMEOUT,\n urlInfo,\n };\n }\n\n return this.controlOptions;\n };\n\n private onChange = (event: EmbeddingEvents, metadata?: ExperienceFrameMetadata) => {\n if (this.contextOnChange) {\n this.contextOnChange(event, metadata);\n }\n };\n\n private getControlUrlInfo = (url: string) => {\n const matches: Array = /^(https:\\/\\/[^/]+)\\/(embedding|embed)\\/([^/]+)\\/[^?]+\\?(.*)/i.exec(url) || [];\n\n if (matches?.length < 4) {\n throw new Error(`Invalid embedding url: \"${url}\"`);\n }\n\n return {\n sessionId: matches[3],\n host: matches[1],\n urlSearchParams: new URLSearchParams(matches[4]),\n };\n };\n\n private getBodyElement = () => {\n // body element on a page is required to embed the redeem and control frames\n const body = document.getElementsByTagName('body')?.[0];\n\n if (!body) {\n const message = 'could not locate element in the page';\n this.onChange(new ChangeEvent(ChangeEventName.NO_BODY, ChangeEventLevel.ERROR, message), {frame: null});\n\n throw new Error(message);\n }\n\n return body;\n };\n}\n\nexport const createEmbeddingContext = async (frameOptions: EmbeddingContextFrameOptions = {}) => {\n return new EmbeddingContext(frameOptions);\n};\n", "import * as EventMessages from '@common/events/messages';\nimport * as EventTypes from '@common/events/types';\nimport * as EventManagerTypes from '@common/event-manager/types';\nimport * as EmbeddingContextTypes from '@common/embedding-context/types';\nimport * as IframeTypes from '@common/iframe/types';\nimport * as CommonTypes from './common/types';\n\nimport * as BaseExperienceTypes from '@experience/base-experience/types';\nimport * as ConsoleExperienceTypes from '@experience/console-experience/types';\nimport * as DashboardExperienceTypes from '@experience/dashboard-experience/types';\nimport * as ControlExperienceTypes from '@experience/control-experience/types';\nimport * as QSearchExperienceTypes from '@experience/q-search-experience/types';\nimport * as VisualExperienceTypes from '@experience/visual-experience/types';\nimport * as GenerativeQnAExperienceTypes from '@experience/generative-qna-experience/types';\nimport * as InternalQBaseExperienceTypes from '@experience/internal-q-base-experience/types';\n\nexport * from './common';\nexport * from './experiences';\n\n/**\n * Namespaces enums under one import for convenience\n *\n * @deprecated - Enums can be imported directly\n */\nexport const QSE = {\n ...CommonTypes,\n ...EventMessages,\n ...EventTypes,\n ...EventManagerTypes,\n ...EmbeddingContextTypes,\n ...IframeTypes,\n ...BaseExperienceTypes,\n ...ConsoleExperienceTypes,\n ...DashboardExperienceTypes,\n ...QSearchExperienceTypes,\n ...ControlExperienceTypes,\n ...VisualExperienceTypes,\n ...GenerativeQnAExperienceTypes,\n ...InternalQBaseExperienceTypes,\n};\n", "/**\n * @license React\n * react-jsx-runtime.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'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n", "'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n", "'use strict';\n\nvar isArray = Array.isArray;\nvar keyList = Object.keys;\nvar hasProp = Object.prototype.hasOwnProperty;\nvar hasElementType = typeof Element !== 'undefined';\n\nfunction equal(a, b) {\n // fast-deep-equal index.js 2.0.1\n if (a === b) return true;\n\n if (a && b && typeof a == 'object' && typeof b == 'object') {\n var arrA = isArray(a)\n , arrB = isArray(b)\n , i\n , length\n , key;\n\n if (arrA && arrB) {\n length = a.length;\n if (length != b.length) return false;\n for (i = length; i-- !== 0;)\n if (!equal(a[i], b[i])) return false;\n return true;\n }\n\n if (arrA != arrB) return false;\n\n var dateA = a instanceof Date\n , dateB = b instanceof Date;\n if (dateA != dateB) return false;\n if (dateA && dateB) return a.getTime() == b.getTime();\n\n var regexpA = a instanceof RegExp\n , regexpB = b instanceof RegExp;\n if (regexpA != regexpB) return false;\n if (regexpA && regexpB) return a.toString() == b.toString();\n\n var keys = keyList(a);\n length = keys.length;\n\n if (length !== keyList(b).length)\n return false;\n\n for (i = length; i-- !== 0;)\n if (!hasProp.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 && b instanceof Element)\n return a === b;\n\n // custom handling for React\n for (i = length; i-- !== 0;) {\n key = keys[i];\n if (key === '_owner' && a.$$typeof) {\n // React-specific: avoid traversing React elements' _owner.\n // _owner contains circular references\n // and is not needed when comparing the actual elements (and not their owners)\n // .$$typeof and ._store on just reasonable markers of a react element\n continue;\n } else {\n // all other properties should be traversed as usual\n if (!equal(a[key], b[key])) return false;\n }\n }\n // end react-fast-compare\n\n // fast-deep-equal index.js 2.0.1\n return true;\n }\n\n return a !== a && b !== b;\n}\n// end fast-deep-equal\n\nmodule.exports = function exportedEqual(a, b) {\n try {\n return equal(a, b);\n } catch (error) {\n if ((error.message && error.message.match(/stack|recursion/i)) || (error.number === -2146828260)) {\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('Warning: react-fast-compare does not handle circular references.', error.name, error.message);\n return false;\n }\n // some other error. we should definitely know about these\n throw error;\n }\n};\n", "'use strict';\n\n/** @type {import('.')} */\nmodule.exports = Error;\n", "'use strict';\n\n/** @type {import('./eval')} */\nmodule.exports = EvalError;\n", "'use strict';\n\n/** @type {import('./range')} */\nmodule.exports = RangeError;\n", "'use strict';\n\n/** @type {import('./ref')} */\nmodule.exports = ReferenceError;\n", "'use strict';\n\n/** @type {import('./syntax')} */\nmodule.exports = SyntaxError;\n", "'use strict';\n\n/** @type {import('./type')} */\nmodule.exports = TypeError;\n", "'use strict';\n\n/** @type {import('./uri')} */\nmodule.exports = URIError;\n", "'use strict';\n\n/* eslint complexity: [2, 18], max-statements: [2, 33] */\nmodule.exports = function hasSymbols() {\n\tif (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }\n\tif (typeof Symbol.iterator === 'symbol') { return true; }\n\n\tvar obj = {};\n\tvar sym = Symbol('test');\n\tvar symObj = Object(sym);\n\tif (typeof sym === 'string') { return false; }\n\n\tif (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }\n\tif (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }\n\n\t// temp disabled per https://github.com/ljharb/object.assign/issues/17\n\t// if (sym instanceof Symbol) { return false; }\n\t// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4\n\t// if (!(symObj instanceof Symbol)) { return false; }\n\n\t// if (typeof Symbol.prototype.toString !== 'function') { return false; }\n\t// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }\n\n\tvar symVal = 42;\n\tobj[sym] = symVal;\n\tfor (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop\n\tif (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }\n\n\tif (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }\n\n\tvar syms = Object.getOwnPropertySymbols(obj);\n\tif (syms.length !== 1 || syms[0] !== sym) { return false; }\n\n\tif (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }\n\n\tif (typeof Object.getOwnPropertyDescriptor === 'function') {\n\t\tvar descriptor = Object.getOwnPropertyDescriptor(obj, sym);\n\t\tif (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }\n\t}\n\n\treturn true;\n};\n", "'use strict';\n\nvar origSymbol = typeof Symbol !== 'undefined' && Symbol;\nvar hasSymbolSham = require('./shams');\n\nmodule.exports = function hasNativeSymbols() {\n\tif (typeof origSymbol !== 'function') { return false; }\n\tif (typeof Symbol !== 'function') { return false; }\n\tif (typeof origSymbol('foo') !== 'symbol') { return false; }\n\tif (typeof Symbol('bar') !== 'symbol') { return false; }\n\n\treturn hasSymbolSham();\n};\n", "'use strict';\n\nvar test = {\n\t__proto__: null,\n\tfoo: {}\n};\n\nvar $Object = Object;\n\n/** @type {import('.')} */\nmodule.exports = function hasProto() {\n\t// @ts-expect-error: TS errors on an inherited property for some reason\n\treturn { __proto__: test }.foo === test.foo\n\t\t&& !(test instanceof $Object);\n};\n", "'use strict';\n\n/* eslint no-invalid-this: 1 */\n\nvar ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';\nvar toStr = Object.prototype.toString;\nvar max = Math.max;\nvar funcType = '[object Function]';\n\nvar concatty = function concatty(a, b) {\n var arr = [];\n\n for (var i = 0; i < a.length; i += 1) {\n arr[i] = a[i];\n }\n for (var j = 0; j < b.length; j += 1) {\n arr[j + a.length] = b[j];\n }\n\n return arr;\n};\n\nvar slicy = function slicy(arrLike, offset) {\n var arr = [];\n for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {\n arr[j] = arrLike[i];\n }\n return arr;\n};\n\nvar joiny = function (arr, joiner) {\n var str = '';\n for (var i = 0; i < arr.length; i += 1) {\n str += arr[i];\n if (i + 1 < arr.length) {\n str += joiner;\n }\n }\n return str;\n};\n\nmodule.exports = function bind(that) {\n var target = this;\n if (typeof target !== 'function' || toStr.apply(target) !== funcType) {\n throw new TypeError(ERROR_MESSAGE + target);\n }\n var args = slicy(arguments, 1);\n\n var bound;\n var binder = function () {\n if (this instanceof bound) {\n var result = target.apply(\n this,\n concatty(args, arguments)\n );\n if (Object(result) === result) {\n return result;\n }\n return this;\n }\n return target.apply(\n that,\n concatty(args, arguments)\n );\n\n };\n\n var boundLength = max(0, target.length - args.length);\n var boundArgs = [];\n for (var i = 0; i < boundLength; i++) {\n boundArgs[i] = '$' + i;\n }\n\n bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);\n\n if (target.prototype) {\n var Empty = function Empty() {};\n Empty.prototype = target.prototype;\n bound.prototype = new Empty();\n Empty.prototype = null;\n }\n\n return bound;\n};\n", "'use strict';\n\nvar implementation = require('./implementation');\n\nmodule.exports = Function.prototype.bind || implementation;\n", "'use strict';\n\nvar call = Function.prototype.call;\nvar $hasOwn = Object.prototype.hasOwnProperty;\nvar bind = require('function-bind');\n\n/** @type {import('.')} */\nmodule.exports = bind.call(call, $hasOwn);\n", "'use strict';\n\nvar undefined;\n\nvar $Error = require('es-errors');\nvar $EvalError = require('es-errors/eval');\nvar $RangeError = require('es-errors/range');\nvar $ReferenceError = require('es-errors/ref');\nvar $SyntaxError = require('es-errors/syntax');\nvar $TypeError = require('es-errors/type');\nvar $URIError = require('es-errors/uri');\n\nvar $Function = Function;\n\n// eslint-disable-next-line consistent-return\nvar getEvalledConstructor = function (expressionSyntax) {\n\ttry {\n\t\treturn $Function('\"use strict\"; return (' + expressionSyntax + ').constructor;')();\n\t} catch (e) {}\n};\n\nvar $gOPD = Object.getOwnPropertyDescriptor;\nif ($gOPD) {\n\ttry {\n\t\t$gOPD({}, '');\n\t} catch (e) {\n\t\t$gOPD = null; // this is IE 8, which has a broken gOPD\n\t}\n}\n\nvar throwTypeError = function () {\n\tthrow new $TypeError();\n};\nvar ThrowTypeError = $gOPD\n\t? (function () {\n\t\ttry {\n\t\t\t// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties\n\t\t\targuments.callee; // IE 8 does not throw here\n\t\t\treturn throwTypeError;\n\t\t} catch (calleeThrows) {\n\t\t\ttry {\n\t\t\t\t// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')\n\t\t\t\treturn $gOPD(arguments, 'callee').get;\n\t\t\t} catch (gOPDthrows) {\n\t\t\t\treturn throwTypeError;\n\t\t\t}\n\t\t}\n\t}())\n\t: throwTypeError;\n\nvar hasSymbols = require('has-symbols')();\nvar hasProto = require('has-proto')();\n\nvar getProto = Object.getPrototypeOf || (\n\thasProto\n\t\t? function (x) { return x.__proto__; } // eslint-disable-line no-proto\n\t\t: null\n);\n\nvar needsEval = {};\n\nvar TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);\n\nvar INTRINSICS = {\n\t__proto__: null,\n\t'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,\n\t'%Array%': Array,\n\t'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,\n\t'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,\n\t'%AsyncFromSyncIteratorPrototype%': undefined,\n\t'%AsyncFunction%': needsEval,\n\t'%AsyncGenerator%': needsEval,\n\t'%AsyncGeneratorFunction%': needsEval,\n\t'%AsyncIteratorPrototype%': needsEval,\n\t'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,\n\t'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,\n\t'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,\n\t'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,\n\t'%Boolean%': Boolean,\n\t'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,\n\t'%Date%': Date,\n\t'%decodeURI%': decodeURI,\n\t'%decodeURIComponent%': decodeURIComponent,\n\t'%encodeURI%': encodeURI,\n\t'%encodeURIComponent%': encodeURIComponent,\n\t'%Error%': $Error,\n\t'%eval%': eval, // eslint-disable-line no-eval\n\t'%EvalError%': $EvalError,\n\t'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,\n\t'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,\n\t'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,\n\t'%Function%': $Function,\n\t'%GeneratorFunction%': needsEval,\n\t'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,\n\t'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,\n\t'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,\n\t'%isFinite%': isFinite,\n\t'%isNaN%': isNaN,\n\t'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,\n\t'%JSON%': typeof JSON === 'object' ? JSON : undefined,\n\t'%Map%': typeof Map === 'undefined' ? undefined : Map,\n\t'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),\n\t'%Math%': Math,\n\t'%Number%': Number,\n\t'%Object%': Object,\n\t'%parseFloat%': parseFloat,\n\t'%parseInt%': parseInt,\n\t'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,\n\t'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,\n\t'%RangeError%': $RangeError,\n\t'%ReferenceError%': $ReferenceError,\n\t'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,\n\t'%RegExp%': RegExp,\n\t'%Set%': typeof Set === 'undefined' ? undefined : Set,\n\t'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),\n\t'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,\n\t'%String%': String,\n\t'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,\n\t'%Symbol%': hasSymbols ? Symbol : undefined,\n\t'%SyntaxError%': $SyntaxError,\n\t'%ThrowTypeError%': ThrowTypeError,\n\t'%TypedArray%': TypedArray,\n\t'%TypeError%': $TypeError,\n\t'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,\n\t'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,\n\t'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,\n\t'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,\n\t'%URIError%': $URIError,\n\t'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,\n\t'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,\n\t'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet\n};\n\nif (getProto) {\n\ttry {\n\t\tnull.error; // eslint-disable-line no-unused-expressions\n\t} catch (e) {\n\t\t// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229\n\t\tvar errorProto = getProto(getProto(e));\n\t\tINTRINSICS['%Error.prototype%'] = errorProto;\n\t}\n}\n\nvar doEval = function doEval(name) {\n\tvar value;\n\tif (name === '%AsyncFunction%') {\n\t\tvalue = getEvalledConstructor('async function () {}');\n\t} else if (name === '%GeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('function* () {}');\n\t} else if (name === '%AsyncGeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('async function* () {}');\n\t} else if (name === '%AsyncGenerator%') {\n\t\tvar fn = doEval('%AsyncGeneratorFunction%');\n\t\tif (fn) {\n\t\t\tvalue = fn.prototype;\n\t\t}\n\t} else if (name === '%AsyncIteratorPrototype%') {\n\t\tvar gen = doEval('%AsyncGenerator%');\n\t\tif (gen && getProto) {\n\t\t\tvalue = getProto(gen.prototype);\n\t\t}\n\t}\n\n\tINTRINSICS[name] = value;\n\n\treturn value;\n};\n\nvar LEGACY_ALIASES = {\n\t__proto__: null,\n\t'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],\n\t'%ArrayPrototype%': ['Array', 'prototype'],\n\t'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],\n\t'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],\n\t'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],\n\t'%ArrayProto_values%': ['Array', 'prototype', 'values'],\n\t'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],\n\t'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],\n\t'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],\n\t'%BooleanPrototype%': ['Boolean', 'prototype'],\n\t'%DataViewPrototype%': ['DataView', 'prototype'],\n\t'%DatePrototype%': ['Date', 'prototype'],\n\t'%ErrorPrototype%': ['Error', 'prototype'],\n\t'%EvalErrorPrototype%': ['EvalError', 'prototype'],\n\t'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],\n\t'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],\n\t'%FunctionPrototype%': ['Function', 'prototype'],\n\t'%Generator%': ['GeneratorFunction', 'prototype'],\n\t'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],\n\t'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],\n\t'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],\n\t'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],\n\t'%JSONParse%': ['JSON', 'parse'],\n\t'%JSONStringify%': ['JSON', 'stringify'],\n\t'%MapPrototype%': ['Map', 'prototype'],\n\t'%NumberPrototype%': ['Number', 'prototype'],\n\t'%ObjectPrototype%': ['Object', 'prototype'],\n\t'%ObjProto_toString%': ['Object', 'prototype', 'toString'],\n\t'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],\n\t'%PromisePrototype%': ['Promise', 'prototype'],\n\t'%PromiseProto_then%': ['Promise', 'prototype', 'then'],\n\t'%Promise_all%': ['Promise', 'all'],\n\t'%Promise_reject%': ['Promise', 'reject'],\n\t'%Promise_resolve%': ['Promise', 'resolve'],\n\t'%RangeErrorPrototype%': ['RangeError', 'prototype'],\n\t'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],\n\t'%RegExpPrototype%': ['RegExp', 'prototype'],\n\t'%SetPrototype%': ['Set', 'prototype'],\n\t'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],\n\t'%StringPrototype%': ['String', 'prototype'],\n\t'%SymbolPrototype%': ['Symbol', 'prototype'],\n\t'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],\n\t'%TypedArrayPrototype%': ['TypedArray', 'prototype'],\n\t'%TypeErrorPrototype%': ['TypeError', 'prototype'],\n\t'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],\n\t'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],\n\t'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],\n\t'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],\n\t'%URIErrorPrototype%': ['URIError', 'prototype'],\n\t'%WeakMapPrototype%': ['WeakMap', 'prototype'],\n\t'%WeakSetPrototype%': ['WeakSet', 'prototype']\n};\n\nvar bind = require('function-bind');\nvar hasOwn = require('hasown');\nvar $concat = bind.call(Function.call, Array.prototype.concat);\nvar $spliceApply = bind.call(Function.apply, Array.prototype.splice);\nvar $replace = bind.call(Function.call, String.prototype.replace);\nvar $strSlice = bind.call(Function.call, String.prototype.slice);\nvar $exec = bind.call(Function.call, RegExp.prototype.exec);\n\n/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */\nvar rePropName = /[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g;\nvar reEscapeChar = /\\\\(\\\\)?/g; /** Used to match backslashes in property paths. */\nvar stringToPath = function stringToPath(string) {\n\tvar first = $strSlice(string, 0, 1);\n\tvar last = $strSlice(string, -1);\n\tif (first === '%' && last !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected closing `%`');\n\t} else if (last === '%' && first !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected opening `%`');\n\t}\n\tvar result = [];\n\t$replace(string, rePropName, function (match, number, quote, subString) {\n\t\tresult[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;\n\t});\n\treturn result;\n};\n/* end adaptation */\n\nvar getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {\n\tvar intrinsicName = name;\n\tvar alias;\n\tif (hasOwn(LEGACY_ALIASES, intrinsicName)) {\n\t\talias = LEGACY_ALIASES[intrinsicName];\n\t\tintrinsicName = '%' + alias[0] + '%';\n\t}\n\n\tif (hasOwn(INTRINSICS, intrinsicName)) {\n\t\tvar value = INTRINSICS[intrinsicName];\n\t\tif (value === needsEval) {\n\t\t\tvalue = doEval(intrinsicName);\n\t\t}\n\t\tif (typeof value === 'undefined' && !allowMissing) {\n\t\t\tthrow new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');\n\t\t}\n\n\t\treturn {\n\t\t\talias: alias,\n\t\t\tname: intrinsicName,\n\t\t\tvalue: value\n\t\t};\n\t}\n\n\tthrow new $SyntaxError('intrinsic ' + name + ' does not exist!');\n};\n\nmodule.exports = function GetIntrinsic(name, allowMissing) {\n\tif (typeof name !== 'string' || name.length === 0) {\n\t\tthrow new $TypeError('intrinsic name must be a non-empty string');\n\t}\n\tif (arguments.length > 1 && typeof allowMissing !== 'boolean') {\n\t\tthrow new $TypeError('\"allowMissing\" argument must be a boolean');\n\t}\n\n\tif ($exec(/^%?[^%]*%?$/, name) === null) {\n\t\tthrow new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');\n\t}\n\tvar parts = stringToPath(name);\n\tvar intrinsicBaseName = parts.length > 0 ? parts[0] : '';\n\n\tvar intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);\n\tvar intrinsicRealName = intrinsic.name;\n\tvar value = intrinsic.value;\n\tvar skipFurtherCaching = false;\n\n\tvar alias = intrinsic.alias;\n\tif (alias) {\n\t\tintrinsicBaseName = alias[0];\n\t\t$spliceApply(parts, $concat([0, 1], alias));\n\t}\n\n\tfor (var i = 1, isOwn = true; i < parts.length; i += 1) {\n\t\tvar part = parts[i];\n\t\tvar first = $strSlice(part, 0, 1);\n\t\tvar last = $strSlice(part, -1);\n\t\tif (\n\t\t\t(\n\t\t\t\t(first === '\"' || first === \"'\" || first === '`')\n\t\t\t\t|| (last === '\"' || last === \"'\" || last === '`')\n\t\t\t)\n\t\t\t&& first !== last\n\t\t) {\n\t\t\tthrow new $SyntaxError('property names with quotes must have matching quotes');\n\t\t}\n\t\tif (part === 'constructor' || !isOwn) {\n\t\t\tskipFurtherCaching = true;\n\t\t}\n\n\t\tintrinsicBaseName += '.' + part;\n\t\tintrinsicRealName = '%' + intrinsicBaseName + '%';\n\n\t\tif (hasOwn(INTRINSICS, intrinsicRealName)) {\n\t\t\tvalue = INTRINSICS[intrinsicRealName];\n\t\t} else if (value != null) {\n\t\t\tif (!(part in value)) {\n\t\t\t\tif (!allowMissing) {\n\t\t\t\t\tthrow new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');\n\t\t\t\t}\n\t\t\t\treturn void undefined;\n\t\t\t}\n\t\t\tif ($gOPD && (i + 1) >= parts.length) {\n\t\t\t\tvar desc = $gOPD(value, part);\n\t\t\t\tisOwn = !!desc;\n\n\t\t\t\t// By convention, when a data property is converted to an accessor\n\t\t\t\t// property to emulate a data property that does not suffer from\n\t\t\t\t// the override mistake, that accessor's getter is marked with\n\t\t\t\t// an `originalValue` property. Here, when we detect this, we\n\t\t\t\t// uphold the illusion by pretending to see that original data\n\t\t\t\t// property, i.e., returning the value rather than the getter\n\t\t\t\t// itself.\n\t\t\t\tif (isOwn && 'get' in desc && !('originalValue' in desc.get)) {\n\t\t\t\t\tvalue = desc.get;\n\t\t\t\t} else {\n\t\t\t\t\tvalue = value[part];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tisOwn = hasOwn(value, part);\n\t\t\t\tvalue = value[part];\n\t\t\t}\n\n\t\t\tif (isOwn && !skipFurtherCaching) {\n\t\t\t\tINTRINSICS[intrinsicRealName] = value;\n\t\t\t}\n\t\t}\n\t}\n\treturn value;\n};\n", "'use strict';\n\n/* eslint complexity: [2, 18], max-statements: [2, 33] */\nmodule.exports = function hasSymbols() {\n\tif (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }\n\tif (typeof Symbol.iterator === 'symbol') { return true; }\n\n\tvar obj = {};\n\tvar sym = Symbol('test');\n\tvar symObj = Object(sym);\n\tif (typeof sym === 'string') { return false; }\n\n\tif (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }\n\tif (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }\n\n\t// temp disabled per https://github.com/ljharb/object.assign/issues/17\n\t// if (sym instanceof Symbol) { return false; }\n\t// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4\n\t// if (!(symObj instanceof Symbol)) { return false; }\n\n\t// if (typeof Symbol.prototype.toString !== 'function') { return false; }\n\t// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }\n\n\tvar symVal = 42;\n\tobj[sym] = symVal;\n\tfor (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop\n\tif (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }\n\n\tif (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }\n\n\tvar syms = Object.getOwnPropertySymbols(obj);\n\tif (syms.length !== 1 || syms[0] !== sym) { return false; }\n\n\tif (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }\n\n\tif (typeof Object.getOwnPropertyDescriptor === 'function') {\n\t\tvar descriptor = Object.getOwnPropertyDescriptor(obj, sym);\n\t\tif (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }\n\t}\n\n\treturn true;\n};\n", "'use strict';\n\nvar origSymbol = typeof Symbol !== 'undefined' && Symbol;\nvar hasSymbolSham = require('./shams');\n\nmodule.exports = function hasNativeSymbols() {\n\tif (typeof origSymbol !== 'function') { return false; }\n\tif (typeof Symbol !== 'function') { return false; }\n\tif (typeof origSymbol('foo') !== 'symbol') { return false; }\n\tif (typeof Symbol('bar') !== 'symbol') { return false; }\n\n\treturn hasSymbolSham();\n};\n", "'use strict';\n\nvar undefined;\n\nvar $Error = require('es-errors');\nvar $EvalError = require('es-errors/eval');\nvar $RangeError = require('es-errors/range');\nvar $ReferenceError = require('es-errors/ref');\nvar $SyntaxError = require('es-errors/syntax');\nvar $TypeError = require('es-errors/type');\nvar $URIError = require('es-errors/uri');\n\nvar $Function = Function;\n\n// eslint-disable-next-line consistent-return\nvar getEvalledConstructor = function (expressionSyntax) {\n\ttry {\n\t\treturn $Function('\"use strict\"; return (' + expressionSyntax + ').constructor;')();\n\t} catch (e) {}\n};\n\nvar $gOPD = Object.getOwnPropertyDescriptor;\nif ($gOPD) {\n\ttry {\n\t\t$gOPD({}, '');\n\t} catch (e) {\n\t\t$gOPD = null; // this is IE 8, which has a broken gOPD\n\t}\n}\n\nvar throwTypeError = function () {\n\tthrow new $TypeError();\n};\nvar ThrowTypeError = $gOPD\n\t? (function () {\n\t\ttry {\n\t\t\t// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties\n\t\t\targuments.callee; // IE 8 does not throw here\n\t\t\treturn throwTypeError;\n\t\t} catch (calleeThrows) {\n\t\t\ttry {\n\t\t\t\t// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')\n\t\t\t\treturn $gOPD(arguments, 'callee').get;\n\t\t\t} catch (gOPDthrows) {\n\t\t\t\treturn throwTypeError;\n\t\t\t}\n\t\t}\n\t}())\n\t: throwTypeError;\n\nvar hasSymbols = require('has-symbols')();\nvar hasProto = require('has-proto')();\n\nvar getProto = Object.getPrototypeOf || (\n\thasProto\n\t\t? function (x) { return x.__proto__; } // eslint-disable-line no-proto\n\t\t: null\n);\n\nvar needsEval = {};\n\nvar TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);\n\nvar INTRINSICS = {\n\t__proto__: null,\n\t'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,\n\t'%Array%': Array,\n\t'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,\n\t'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,\n\t'%AsyncFromSyncIteratorPrototype%': undefined,\n\t'%AsyncFunction%': needsEval,\n\t'%AsyncGenerator%': needsEval,\n\t'%AsyncGeneratorFunction%': needsEval,\n\t'%AsyncIteratorPrototype%': needsEval,\n\t'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,\n\t'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,\n\t'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,\n\t'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,\n\t'%Boolean%': Boolean,\n\t'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,\n\t'%Date%': Date,\n\t'%decodeURI%': decodeURI,\n\t'%decodeURIComponent%': decodeURIComponent,\n\t'%encodeURI%': encodeURI,\n\t'%encodeURIComponent%': encodeURIComponent,\n\t'%Error%': $Error,\n\t'%eval%': eval, // eslint-disable-line no-eval\n\t'%EvalError%': $EvalError,\n\t'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,\n\t'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,\n\t'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,\n\t'%Function%': $Function,\n\t'%GeneratorFunction%': needsEval,\n\t'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,\n\t'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,\n\t'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,\n\t'%isFinite%': isFinite,\n\t'%isNaN%': isNaN,\n\t'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,\n\t'%JSON%': typeof JSON === 'object' ? JSON : undefined,\n\t'%Map%': typeof Map === 'undefined' ? undefined : Map,\n\t'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),\n\t'%Math%': Math,\n\t'%Number%': Number,\n\t'%Object%': Object,\n\t'%parseFloat%': parseFloat,\n\t'%parseInt%': parseInt,\n\t'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,\n\t'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,\n\t'%RangeError%': $RangeError,\n\t'%ReferenceError%': $ReferenceError,\n\t'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,\n\t'%RegExp%': RegExp,\n\t'%Set%': typeof Set === 'undefined' ? undefined : Set,\n\t'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),\n\t'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,\n\t'%String%': String,\n\t'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,\n\t'%Symbol%': hasSymbols ? Symbol : undefined,\n\t'%SyntaxError%': $SyntaxError,\n\t'%ThrowTypeError%': ThrowTypeError,\n\t'%TypedArray%': TypedArray,\n\t'%TypeError%': $TypeError,\n\t'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,\n\t'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,\n\t'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,\n\t'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,\n\t'%URIError%': $URIError,\n\t'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,\n\t'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,\n\t'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet\n};\n\nif (getProto) {\n\ttry {\n\t\tnull.error; // eslint-disable-line no-unused-expressions\n\t} catch (e) {\n\t\t// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229\n\t\tvar errorProto = getProto(getProto(e));\n\t\tINTRINSICS['%Error.prototype%'] = errorProto;\n\t}\n}\n\nvar doEval = function doEval(name) {\n\tvar value;\n\tif (name === '%AsyncFunction%') {\n\t\tvalue = getEvalledConstructor('async function () {}');\n\t} else if (name === '%GeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('function* () {}');\n\t} else if (name === '%AsyncGeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('async function* () {}');\n\t} else if (name === '%AsyncGenerator%') {\n\t\tvar fn = doEval('%AsyncGeneratorFunction%');\n\t\tif (fn) {\n\t\t\tvalue = fn.prototype;\n\t\t}\n\t} else if (name === '%AsyncIteratorPrototype%') {\n\t\tvar gen = doEval('%AsyncGenerator%');\n\t\tif (gen && getProto) {\n\t\t\tvalue = getProto(gen.prototype);\n\t\t}\n\t}\n\n\tINTRINSICS[name] = value;\n\n\treturn value;\n};\n\nvar LEGACY_ALIASES = {\n\t__proto__: null,\n\t'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],\n\t'%ArrayPrototype%': ['Array', 'prototype'],\n\t'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],\n\t'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],\n\t'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],\n\t'%ArrayProto_values%': ['Array', 'prototype', 'values'],\n\t'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],\n\t'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],\n\t'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],\n\t'%BooleanPrototype%': ['Boolean', 'prototype'],\n\t'%DataViewPrototype%': ['DataView', 'prototype'],\n\t'%DatePrototype%': ['Date', 'prototype'],\n\t'%ErrorPrototype%': ['Error', 'prototype'],\n\t'%EvalErrorPrototype%': ['EvalError', 'prototype'],\n\t'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],\n\t'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],\n\t'%FunctionPrototype%': ['Function', 'prototype'],\n\t'%Generator%': ['GeneratorFunction', 'prototype'],\n\t'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],\n\t'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],\n\t'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],\n\t'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],\n\t'%JSONParse%': ['JSON', 'parse'],\n\t'%JSONStringify%': ['JSON', 'stringify'],\n\t'%MapPrototype%': ['Map', 'prototype'],\n\t'%NumberPrototype%': ['Number', 'prototype'],\n\t'%ObjectPrototype%': ['Object', 'prototype'],\n\t'%ObjProto_toString%': ['Object', 'prototype', 'toString'],\n\t'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],\n\t'%PromisePrototype%': ['Promise', 'prototype'],\n\t'%PromiseProto_then%': ['Promise', 'prototype', 'then'],\n\t'%Promise_all%': ['Promise', 'all'],\n\t'%Promise_reject%': ['Promise', 'reject'],\n\t'%Promise_resolve%': ['Promise', 'resolve'],\n\t'%RangeErrorPrototype%': ['RangeError', 'prototype'],\n\t'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],\n\t'%RegExpPrototype%': ['RegExp', 'prototype'],\n\t'%SetPrototype%': ['Set', 'prototype'],\n\t'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],\n\t'%StringPrototype%': ['String', 'prototype'],\n\t'%SymbolPrototype%': ['Symbol', 'prototype'],\n\t'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],\n\t'%TypedArrayPrototype%': ['TypedArray', 'prototype'],\n\t'%TypeErrorPrototype%': ['TypeError', 'prototype'],\n\t'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],\n\t'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],\n\t'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],\n\t'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],\n\t'%URIErrorPrototype%': ['URIError', 'prototype'],\n\t'%WeakMapPrototype%': ['WeakMap', 'prototype'],\n\t'%WeakSetPrototype%': ['WeakSet', 'prototype']\n};\n\nvar bind = require('function-bind');\nvar hasOwn = require('hasown');\nvar $concat = bind.call(Function.call, Array.prototype.concat);\nvar $spliceApply = bind.call(Function.apply, Array.prototype.splice);\nvar $replace = bind.call(Function.call, String.prototype.replace);\nvar $strSlice = bind.call(Function.call, String.prototype.slice);\nvar $exec = bind.call(Function.call, RegExp.prototype.exec);\n\n/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */\nvar rePropName = /[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g;\nvar reEscapeChar = /\\\\(\\\\)?/g; /** Used to match backslashes in property paths. */\nvar stringToPath = function stringToPath(string) {\n\tvar first = $strSlice(string, 0, 1);\n\tvar last = $strSlice(string, -1);\n\tif (first === '%' && last !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected closing `%`');\n\t} else if (last === '%' && first !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected opening `%`');\n\t}\n\tvar result = [];\n\t$replace(string, rePropName, function (match, number, quote, subString) {\n\t\tresult[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;\n\t});\n\treturn result;\n};\n/* end adaptation */\n\nvar getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {\n\tvar intrinsicName = name;\n\tvar alias;\n\tif (hasOwn(LEGACY_ALIASES, intrinsicName)) {\n\t\talias = LEGACY_ALIASES[intrinsicName];\n\t\tintrinsicName = '%' + alias[0] + '%';\n\t}\n\n\tif (hasOwn(INTRINSICS, intrinsicName)) {\n\t\tvar value = INTRINSICS[intrinsicName];\n\t\tif (value === needsEval) {\n\t\t\tvalue = doEval(intrinsicName);\n\t\t}\n\t\tif (typeof value === 'undefined' && !allowMissing) {\n\t\t\tthrow new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');\n\t\t}\n\n\t\treturn {\n\t\t\talias: alias,\n\t\t\tname: intrinsicName,\n\t\t\tvalue: value\n\t\t};\n\t}\n\n\tthrow new $SyntaxError('intrinsic ' + name + ' does not exist!');\n};\n\nmodule.exports = function GetIntrinsic(name, allowMissing) {\n\tif (typeof name !== 'string' || name.length === 0) {\n\t\tthrow new $TypeError('intrinsic name must be a non-empty string');\n\t}\n\tif (arguments.length > 1 && typeof allowMissing !== 'boolean') {\n\t\tthrow new $TypeError('\"allowMissing\" argument must be a boolean');\n\t}\n\n\tif ($exec(/^%?[^%]*%?$/, name) === null) {\n\t\tthrow new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');\n\t}\n\tvar parts = stringToPath(name);\n\tvar intrinsicBaseName = parts.length > 0 ? parts[0] : '';\n\n\tvar intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);\n\tvar intrinsicRealName = intrinsic.name;\n\tvar value = intrinsic.value;\n\tvar skipFurtherCaching = false;\n\n\tvar alias = intrinsic.alias;\n\tif (alias) {\n\t\tintrinsicBaseName = alias[0];\n\t\t$spliceApply(parts, $concat([0, 1], alias));\n\t}\n\n\tfor (var i = 1, isOwn = true; i < parts.length; i += 1) {\n\t\tvar part = parts[i];\n\t\tvar first = $strSlice(part, 0, 1);\n\t\tvar last = $strSlice(part, -1);\n\t\tif (\n\t\t\t(\n\t\t\t\t(first === '\"' || first === \"'\" || first === '`')\n\t\t\t\t|| (last === '\"' || last === \"'\" || last === '`')\n\t\t\t)\n\t\t\t&& first !== last\n\t\t) {\n\t\t\tthrow new $SyntaxError('property names with quotes must have matching quotes');\n\t\t}\n\t\tif (part === 'constructor' || !isOwn) {\n\t\t\tskipFurtherCaching = true;\n\t\t}\n\n\t\tintrinsicBaseName += '.' + part;\n\t\tintrinsicRealName = '%' + intrinsicBaseName + '%';\n\n\t\tif (hasOwn(INTRINSICS, intrinsicRealName)) {\n\t\t\tvalue = INTRINSICS[intrinsicRealName];\n\t\t} else if (value != null) {\n\t\t\tif (!(part in value)) {\n\t\t\t\tif (!allowMissing) {\n\t\t\t\t\tthrow new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');\n\t\t\t\t}\n\t\t\t\treturn void undefined;\n\t\t\t}\n\t\t\tif ($gOPD && (i + 1) >= parts.length) {\n\t\t\t\tvar desc = $gOPD(value, part);\n\t\t\t\tisOwn = !!desc;\n\n\t\t\t\t// By convention, when a data property is converted to an accessor\n\t\t\t\t// property to emulate a data property that does not suffer from\n\t\t\t\t// the override mistake, that accessor's getter is marked with\n\t\t\t\t// an `originalValue` property. Here, when we detect this, we\n\t\t\t\t// uphold the illusion by pretending to see that original data\n\t\t\t\t// property, i.e., returning the value rather than the getter\n\t\t\t\t// itself.\n\t\t\t\tif (isOwn && 'get' in desc && !('originalValue' in desc.get)) {\n\t\t\t\t\tvalue = desc.get;\n\t\t\t\t} else {\n\t\t\t\t\tvalue = value[part];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tisOwn = hasOwn(value, part);\n\t\t\t\tvalue = value[part];\n\t\t\t}\n\n\t\t\tif (isOwn && !skipFurtherCaching) {\n\t\t\t\tINTRINSICS[intrinsicRealName] = value;\n\t\t\t}\n\t\t}\n\t}\n\treturn value;\n};\n", "'use strict';\n\n/* eslint complexity: [2, 18], max-statements: [2, 33] */\nmodule.exports = function hasSymbols() {\n\tif (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }\n\tif (typeof Symbol.iterator === 'symbol') { return true; }\n\n\tvar obj = {};\n\tvar sym = Symbol('test');\n\tvar symObj = Object(sym);\n\tif (typeof sym === 'string') { return false; }\n\n\tif (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }\n\tif (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }\n\n\t// temp disabled per https://github.com/ljharb/object.assign/issues/17\n\t// if (sym instanceof Symbol) { return false; }\n\t// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4\n\t// if (!(symObj instanceof Symbol)) { return false; }\n\n\t// if (typeof Symbol.prototype.toString !== 'function') { return false; }\n\t// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }\n\n\tvar symVal = 42;\n\tobj[sym] = symVal;\n\tfor (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop\n\tif (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }\n\n\tif (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }\n\n\tvar syms = Object.getOwnPropertySymbols(obj);\n\tif (syms.length !== 1 || syms[0] !== sym) { return false; }\n\n\tif (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }\n\n\tif (typeof Object.getOwnPropertyDescriptor === 'function') {\n\t\tvar descriptor = Object.getOwnPropertyDescriptor(obj, sym);\n\t\tif (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }\n\t}\n\n\treturn true;\n};\n", "'use strict';\n\nvar origSymbol = typeof Symbol !== 'undefined' && Symbol;\nvar hasSymbolSham = require('./shams');\n\nmodule.exports = function hasNativeSymbols() {\n\tif (typeof origSymbol !== 'function') { return false; }\n\tif (typeof Symbol !== 'function') { return false; }\n\tif (typeof origSymbol('foo') !== 'symbol') { return false; }\n\tif (typeof Symbol('bar') !== 'symbol') { return false; }\n\n\treturn hasSymbolSham();\n};\n", "'use strict';\n\nvar undefined;\n\nvar $Error = require('es-errors');\nvar $EvalError = require('es-errors/eval');\nvar $RangeError = require('es-errors/range');\nvar $ReferenceError = require('es-errors/ref');\nvar $SyntaxError = require('es-errors/syntax');\nvar $TypeError = require('es-errors/type');\nvar $URIError = require('es-errors/uri');\n\nvar $Function = Function;\n\n// eslint-disable-next-line consistent-return\nvar getEvalledConstructor = function (expressionSyntax) {\n\ttry {\n\t\treturn $Function('\"use strict\"; return (' + expressionSyntax + ').constructor;')();\n\t} catch (e) {}\n};\n\nvar $gOPD = Object.getOwnPropertyDescriptor;\nif ($gOPD) {\n\ttry {\n\t\t$gOPD({}, '');\n\t} catch (e) {\n\t\t$gOPD = null; // this is IE 8, which has a broken gOPD\n\t}\n}\n\nvar throwTypeError = function () {\n\tthrow new $TypeError();\n};\nvar ThrowTypeError = $gOPD\n\t? (function () {\n\t\ttry {\n\t\t\t// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties\n\t\t\targuments.callee; // IE 8 does not throw here\n\t\t\treturn throwTypeError;\n\t\t} catch (calleeThrows) {\n\t\t\ttry {\n\t\t\t\t// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')\n\t\t\t\treturn $gOPD(arguments, 'callee').get;\n\t\t\t} catch (gOPDthrows) {\n\t\t\t\treturn throwTypeError;\n\t\t\t}\n\t\t}\n\t}())\n\t: throwTypeError;\n\nvar hasSymbols = require('has-symbols')();\nvar hasProto = require('has-proto')();\n\nvar getProto = Object.getPrototypeOf || (\n\thasProto\n\t\t? function (x) { return x.__proto__; } // eslint-disable-line no-proto\n\t\t: null\n);\n\nvar needsEval = {};\n\nvar TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);\n\nvar INTRINSICS = {\n\t__proto__: null,\n\t'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,\n\t'%Array%': Array,\n\t'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,\n\t'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,\n\t'%AsyncFromSyncIteratorPrototype%': undefined,\n\t'%AsyncFunction%': needsEval,\n\t'%AsyncGenerator%': needsEval,\n\t'%AsyncGeneratorFunction%': needsEval,\n\t'%AsyncIteratorPrototype%': needsEval,\n\t'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,\n\t'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,\n\t'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,\n\t'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,\n\t'%Boolean%': Boolean,\n\t'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,\n\t'%Date%': Date,\n\t'%decodeURI%': decodeURI,\n\t'%decodeURIComponent%': decodeURIComponent,\n\t'%encodeURI%': encodeURI,\n\t'%encodeURIComponent%': encodeURIComponent,\n\t'%Error%': $Error,\n\t'%eval%': eval, // eslint-disable-line no-eval\n\t'%EvalError%': $EvalError,\n\t'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,\n\t'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,\n\t'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,\n\t'%Function%': $Function,\n\t'%GeneratorFunction%': needsEval,\n\t'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,\n\t'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,\n\t'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,\n\t'%isFinite%': isFinite,\n\t'%isNaN%': isNaN,\n\t'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,\n\t'%JSON%': typeof JSON === 'object' ? JSON : undefined,\n\t'%Map%': typeof Map === 'undefined' ? undefined : Map,\n\t'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),\n\t'%Math%': Math,\n\t'%Number%': Number,\n\t'%Object%': Object,\n\t'%parseFloat%': parseFloat,\n\t'%parseInt%': parseInt,\n\t'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,\n\t'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,\n\t'%RangeError%': $RangeError,\n\t'%ReferenceError%': $ReferenceError,\n\t'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,\n\t'%RegExp%': RegExp,\n\t'%Set%': typeof Set === 'undefined' ? undefined : Set,\n\t'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),\n\t'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,\n\t'%String%': String,\n\t'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,\n\t'%Symbol%': hasSymbols ? Symbol : undefined,\n\t'%SyntaxError%': $SyntaxError,\n\t'%ThrowTypeError%': ThrowTypeError,\n\t'%TypedArray%': TypedArray,\n\t'%TypeError%': $TypeError,\n\t'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,\n\t'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,\n\t'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,\n\t'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,\n\t'%URIError%': $URIError,\n\t'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,\n\t'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,\n\t'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet\n};\n\nif (getProto) {\n\ttry {\n\t\tnull.error; // eslint-disable-line no-unused-expressions\n\t} catch (e) {\n\t\t// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229\n\t\tvar errorProto = getProto(getProto(e));\n\t\tINTRINSICS['%Error.prototype%'] = errorProto;\n\t}\n}\n\nvar doEval = function doEval(name) {\n\tvar value;\n\tif (name === '%AsyncFunction%') {\n\t\tvalue = getEvalledConstructor('async function () {}');\n\t} else if (name === '%GeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('function* () {}');\n\t} else if (name === '%AsyncGeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('async function* () {}');\n\t} else if (name === '%AsyncGenerator%') {\n\t\tvar fn = doEval('%AsyncGeneratorFunction%');\n\t\tif (fn) {\n\t\t\tvalue = fn.prototype;\n\t\t}\n\t} else if (name === '%AsyncIteratorPrototype%') {\n\t\tvar gen = doEval('%AsyncGenerator%');\n\t\tif (gen && getProto) {\n\t\t\tvalue = getProto(gen.prototype);\n\t\t}\n\t}\n\n\tINTRINSICS[name] = value;\n\n\treturn value;\n};\n\nvar LEGACY_ALIASES = {\n\t__proto__: null,\n\t'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],\n\t'%ArrayPrototype%': ['Array', 'prototype'],\n\t'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],\n\t'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],\n\t'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],\n\t'%ArrayProto_values%': ['Array', 'prototype', 'values'],\n\t'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],\n\t'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],\n\t'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],\n\t'%BooleanPrototype%': ['Boolean', 'prototype'],\n\t'%DataViewPrototype%': ['DataView', 'prototype'],\n\t'%DatePrototype%': ['Date', 'prototype'],\n\t'%ErrorPrototype%': ['Error', 'prototype'],\n\t'%EvalErrorPrototype%': ['EvalError', 'prototype'],\n\t'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],\n\t'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],\n\t'%FunctionPrototype%': ['Function', 'prototype'],\n\t'%Generator%': ['GeneratorFunction', 'prototype'],\n\t'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],\n\t'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],\n\t'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],\n\t'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],\n\t'%JSONParse%': ['JSON', 'parse'],\n\t'%JSONStringify%': ['JSON', 'stringify'],\n\t'%MapPrototype%': ['Map', 'prototype'],\n\t'%NumberPrototype%': ['Number', 'prototype'],\n\t'%ObjectPrototype%': ['Object', 'prototype'],\n\t'%ObjProto_toString%': ['Object', 'prototype', 'toString'],\n\t'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],\n\t'%PromisePrototype%': ['Promise', 'prototype'],\n\t'%PromiseProto_then%': ['Promise', 'prototype', 'then'],\n\t'%Promise_all%': ['Promise', 'all'],\n\t'%Promise_reject%': ['Promise', 'reject'],\n\t'%Promise_resolve%': ['Promise', 'resolve'],\n\t'%RangeErrorPrototype%': ['RangeError', 'prototype'],\n\t'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],\n\t'%RegExpPrototype%': ['RegExp', 'prototype'],\n\t'%SetPrototype%': ['Set', 'prototype'],\n\t'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],\n\t'%StringPrototype%': ['String', 'prototype'],\n\t'%SymbolPrototype%': ['Symbol', 'prototype'],\n\t'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],\n\t'%TypedArrayPrototype%': ['TypedArray', 'prototype'],\n\t'%TypeErrorPrototype%': ['TypeError', 'prototype'],\n\t'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],\n\t'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],\n\t'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],\n\t'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],\n\t'%URIErrorPrototype%': ['URIError', 'prototype'],\n\t'%WeakMapPrototype%': ['WeakMap', 'prototype'],\n\t'%WeakSetPrototype%': ['WeakSet', 'prototype']\n};\n\nvar bind = require('function-bind');\nvar hasOwn = require('hasown');\nvar $concat = bind.call(Function.call, Array.prototype.concat);\nvar $spliceApply = bind.call(Function.apply, Array.prototype.splice);\nvar $replace = bind.call(Function.call, String.prototype.replace);\nvar $strSlice = bind.call(Function.call, String.prototype.slice);\nvar $exec = bind.call(Function.call, RegExp.prototype.exec);\n\n/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */\nvar rePropName = /[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g;\nvar reEscapeChar = /\\\\(\\\\)?/g; /** Used to match backslashes in property paths. */\nvar stringToPath = function stringToPath(string) {\n\tvar first = $strSlice(string, 0, 1);\n\tvar last = $strSlice(string, -1);\n\tif (first === '%' && last !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected closing `%`');\n\t} else if (last === '%' && first !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected opening `%`');\n\t}\n\tvar result = [];\n\t$replace(string, rePropName, function (match, number, quote, subString) {\n\t\tresult[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;\n\t});\n\treturn result;\n};\n/* end adaptation */\n\nvar getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {\n\tvar intrinsicName = name;\n\tvar alias;\n\tif (hasOwn(LEGACY_ALIASES, intrinsicName)) {\n\t\talias = LEGACY_ALIASES[intrinsicName];\n\t\tintrinsicName = '%' + alias[0] + '%';\n\t}\n\n\tif (hasOwn(INTRINSICS, intrinsicName)) {\n\t\tvar value = INTRINSICS[intrinsicName];\n\t\tif (value === needsEval) {\n\t\t\tvalue = doEval(intrinsicName);\n\t\t}\n\t\tif (typeof value === 'undefined' && !allowMissing) {\n\t\t\tthrow new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');\n\t\t}\n\n\t\treturn {\n\t\t\talias: alias,\n\t\t\tname: intrinsicName,\n\t\t\tvalue: value\n\t\t};\n\t}\n\n\tthrow new $SyntaxError('intrinsic ' + name + ' does not exist!');\n};\n\nmodule.exports = function GetIntrinsic(name, allowMissing) {\n\tif (typeof name !== 'string' || name.length === 0) {\n\t\tthrow new $TypeError('intrinsic name must be a non-empty string');\n\t}\n\tif (arguments.length > 1 && typeof allowMissing !== 'boolean') {\n\t\tthrow new $TypeError('\"allowMissing\" argument must be a boolean');\n\t}\n\n\tif ($exec(/^%?[^%]*%?$/, name) === null) {\n\t\tthrow new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');\n\t}\n\tvar parts = stringToPath(name);\n\tvar intrinsicBaseName = parts.length > 0 ? parts[0] : '';\n\n\tvar intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);\n\tvar intrinsicRealName = intrinsic.name;\n\tvar value = intrinsic.value;\n\tvar skipFurtherCaching = false;\n\n\tvar alias = intrinsic.alias;\n\tif (alias) {\n\t\tintrinsicBaseName = alias[0];\n\t\t$spliceApply(parts, $concat([0, 1], alias));\n\t}\n\n\tfor (var i = 1, isOwn = true; i < parts.length; i += 1) {\n\t\tvar part = parts[i];\n\t\tvar first = $strSlice(part, 0, 1);\n\t\tvar last = $strSlice(part, -1);\n\t\tif (\n\t\t\t(\n\t\t\t\t(first === '\"' || first === \"'\" || first === '`')\n\t\t\t\t|| (last === '\"' || last === \"'\" || last === '`')\n\t\t\t)\n\t\t\t&& first !== last\n\t\t) {\n\t\t\tthrow new $SyntaxError('property names with quotes must have matching quotes');\n\t\t}\n\t\tif (part === 'constructor' || !isOwn) {\n\t\t\tskipFurtherCaching = true;\n\t\t}\n\n\t\tintrinsicBaseName += '.' + part;\n\t\tintrinsicRealName = '%' + intrinsicBaseName + '%';\n\n\t\tif (hasOwn(INTRINSICS, intrinsicRealName)) {\n\t\t\tvalue = INTRINSICS[intrinsicRealName];\n\t\t} else if (value != null) {\n\t\t\tif (!(part in value)) {\n\t\t\t\tif (!allowMissing) {\n\t\t\t\t\tthrow new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');\n\t\t\t\t}\n\t\t\t\treturn void undefined;\n\t\t\t}\n\t\t\tif ($gOPD && (i + 1) >= parts.length) {\n\t\t\t\tvar desc = $gOPD(value, part);\n\t\t\t\tisOwn = !!desc;\n\n\t\t\t\t// By convention, when a data property is converted to an accessor\n\t\t\t\t// property to emulate a data property that does not suffer from\n\t\t\t\t// the override mistake, that accessor's getter is marked with\n\t\t\t\t// an `originalValue` property. Here, when we detect this, we\n\t\t\t\t// uphold the illusion by pretending to see that original data\n\t\t\t\t// property, i.e., returning the value rather than the getter\n\t\t\t\t// itself.\n\t\t\t\tif (isOwn && 'get' in desc && !('originalValue' in desc.get)) {\n\t\t\t\t\tvalue = desc.get;\n\t\t\t\t} else {\n\t\t\t\t\tvalue = value[part];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tisOwn = hasOwn(value, part);\n\t\t\t\tvalue = value[part];\n\t\t\t}\n\n\t\t\tif (isOwn && !skipFurtherCaching) {\n\t\t\t\tINTRINSICS[intrinsicRealName] = value;\n\t\t\t}\n\t\t}\n\t}\n\treturn value;\n};\n", "'use strict';\n\n/* eslint complexity: [2, 18], max-statements: [2, 33] */\nmodule.exports = function hasSymbols() {\n\tif (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }\n\tif (typeof Symbol.iterator === 'symbol') { return true; }\n\n\tvar obj = {};\n\tvar sym = Symbol('test');\n\tvar symObj = Object(sym);\n\tif (typeof sym === 'string') { return false; }\n\n\tif (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }\n\tif (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }\n\n\t// temp disabled per https://github.com/ljharb/object.assign/issues/17\n\t// if (sym instanceof Symbol) { return false; }\n\t// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4\n\t// if (!(symObj instanceof Symbol)) { return false; }\n\n\t// if (typeof Symbol.prototype.toString !== 'function') { return false; }\n\t// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }\n\n\tvar symVal = 42;\n\tobj[sym] = symVal;\n\tfor (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop\n\tif (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }\n\n\tif (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }\n\n\tvar syms = Object.getOwnPropertySymbols(obj);\n\tif (syms.length !== 1 || syms[0] !== sym) { return false; }\n\n\tif (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }\n\n\tif (typeof Object.getOwnPropertyDescriptor === 'function') {\n\t\tvar descriptor = Object.getOwnPropertyDescriptor(obj, sym);\n\t\tif (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }\n\t}\n\n\treturn true;\n};\n", "'use strict';\n\nvar origSymbol = typeof Symbol !== 'undefined' && Symbol;\nvar hasSymbolSham = require('./shams');\n\nmodule.exports = function hasNativeSymbols() {\n\tif (typeof origSymbol !== 'function') { return false; }\n\tif (typeof Symbol !== 'function') { return false; }\n\tif (typeof origSymbol('foo') !== 'symbol') { return false; }\n\tif (typeof Symbol('bar') !== 'symbol') { return false; }\n\n\treturn hasSymbolSham();\n};\n", "'use strict';\n\nvar undefined;\n\nvar $Error = require('es-errors');\nvar $EvalError = require('es-errors/eval');\nvar $RangeError = require('es-errors/range');\nvar $ReferenceError = require('es-errors/ref');\nvar $SyntaxError = require('es-errors/syntax');\nvar $TypeError = require('es-errors/type');\nvar $URIError = require('es-errors/uri');\n\nvar $Function = Function;\n\n// eslint-disable-next-line consistent-return\nvar getEvalledConstructor = function (expressionSyntax) {\n\ttry {\n\t\treturn $Function('\"use strict\"; return (' + expressionSyntax + ').constructor;')();\n\t} catch (e) {}\n};\n\nvar $gOPD = Object.getOwnPropertyDescriptor;\nif ($gOPD) {\n\ttry {\n\t\t$gOPD({}, '');\n\t} catch (e) {\n\t\t$gOPD = null; // this is IE 8, which has a broken gOPD\n\t}\n}\n\nvar throwTypeError = function () {\n\tthrow new $TypeError();\n};\nvar ThrowTypeError = $gOPD\n\t? (function () {\n\t\ttry {\n\t\t\t// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties\n\t\t\targuments.callee; // IE 8 does not throw here\n\t\t\treturn throwTypeError;\n\t\t} catch (calleeThrows) {\n\t\t\ttry {\n\t\t\t\t// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')\n\t\t\t\treturn $gOPD(arguments, 'callee').get;\n\t\t\t} catch (gOPDthrows) {\n\t\t\t\treturn throwTypeError;\n\t\t\t}\n\t\t}\n\t}())\n\t: throwTypeError;\n\nvar hasSymbols = require('has-symbols')();\nvar hasProto = require('has-proto')();\n\nvar getProto = Object.getPrototypeOf || (\n\thasProto\n\t\t? function (x) { return x.__proto__; } // eslint-disable-line no-proto\n\t\t: null\n);\n\nvar needsEval = {};\n\nvar TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);\n\nvar INTRINSICS = {\n\t__proto__: null,\n\t'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,\n\t'%Array%': Array,\n\t'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,\n\t'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,\n\t'%AsyncFromSyncIteratorPrototype%': undefined,\n\t'%AsyncFunction%': needsEval,\n\t'%AsyncGenerator%': needsEval,\n\t'%AsyncGeneratorFunction%': needsEval,\n\t'%AsyncIteratorPrototype%': needsEval,\n\t'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,\n\t'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,\n\t'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,\n\t'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,\n\t'%Boolean%': Boolean,\n\t'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,\n\t'%Date%': Date,\n\t'%decodeURI%': decodeURI,\n\t'%decodeURIComponent%': decodeURIComponent,\n\t'%encodeURI%': encodeURI,\n\t'%encodeURIComponent%': encodeURIComponent,\n\t'%Error%': $Error,\n\t'%eval%': eval, // eslint-disable-line no-eval\n\t'%EvalError%': $EvalError,\n\t'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,\n\t'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,\n\t'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,\n\t'%Function%': $Function,\n\t'%GeneratorFunction%': needsEval,\n\t'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,\n\t'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,\n\t'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,\n\t'%isFinite%': isFinite,\n\t'%isNaN%': isNaN,\n\t'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,\n\t'%JSON%': typeof JSON === 'object' ? JSON : undefined,\n\t'%Map%': typeof Map === 'undefined' ? undefined : Map,\n\t'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),\n\t'%Math%': Math,\n\t'%Number%': Number,\n\t'%Object%': Object,\n\t'%parseFloat%': parseFloat,\n\t'%parseInt%': parseInt,\n\t'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,\n\t'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,\n\t'%RangeError%': $RangeError,\n\t'%ReferenceError%': $ReferenceError,\n\t'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,\n\t'%RegExp%': RegExp,\n\t'%Set%': typeof Set === 'undefined' ? undefined : Set,\n\t'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),\n\t'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,\n\t'%String%': String,\n\t'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,\n\t'%Symbol%': hasSymbols ? Symbol : undefined,\n\t'%SyntaxError%': $SyntaxError,\n\t'%ThrowTypeError%': ThrowTypeError,\n\t'%TypedArray%': TypedArray,\n\t'%TypeError%': $TypeError,\n\t'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,\n\t'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,\n\t'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,\n\t'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,\n\t'%URIError%': $URIError,\n\t'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,\n\t'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,\n\t'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet\n};\n\nif (getProto) {\n\ttry {\n\t\tnull.error; // eslint-disable-line no-unused-expressions\n\t} catch (e) {\n\t\t// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229\n\t\tvar errorProto = getProto(getProto(e));\n\t\tINTRINSICS['%Error.prototype%'] = errorProto;\n\t}\n}\n\nvar doEval = function doEval(name) {\n\tvar value;\n\tif (name === '%AsyncFunction%') {\n\t\tvalue = getEvalledConstructor('async function () {}');\n\t} else if (name === '%GeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('function* () {}');\n\t} else if (name === '%AsyncGeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('async function* () {}');\n\t} else if (name === '%AsyncGenerator%') {\n\t\tvar fn = doEval('%AsyncGeneratorFunction%');\n\t\tif (fn) {\n\t\t\tvalue = fn.prototype;\n\t\t}\n\t} else if (name === '%AsyncIteratorPrototype%') {\n\t\tvar gen = doEval('%AsyncGenerator%');\n\t\tif (gen && getProto) {\n\t\t\tvalue = getProto(gen.prototype);\n\t\t}\n\t}\n\n\tINTRINSICS[name] = value;\n\n\treturn value;\n};\n\nvar LEGACY_ALIASES = {\n\t__proto__: null,\n\t'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],\n\t'%ArrayPrototype%': ['Array', 'prototype'],\n\t'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],\n\t'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],\n\t'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],\n\t'%ArrayProto_values%': ['Array', 'prototype', 'values'],\n\t'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],\n\t'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],\n\t'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],\n\t'%BooleanPrototype%': ['Boolean', 'prototype'],\n\t'%DataViewPrototype%': ['DataView', 'prototype'],\n\t'%DatePrototype%': ['Date', 'prototype'],\n\t'%ErrorPrototype%': ['Error', 'prototype'],\n\t'%EvalErrorPrototype%': ['EvalError', 'prototype'],\n\t'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],\n\t'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],\n\t'%FunctionPrototype%': ['Function', 'prototype'],\n\t'%Generator%': ['GeneratorFunction', 'prototype'],\n\t'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],\n\t'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],\n\t'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],\n\t'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],\n\t'%JSONParse%': ['JSON', 'parse'],\n\t'%JSONStringify%': ['JSON', 'stringify'],\n\t'%MapPrototype%': ['Map', 'prototype'],\n\t'%NumberPrototype%': ['Number', 'prototype'],\n\t'%ObjectPrototype%': ['Object', 'prototype'],\n\t'%ObjProto_toString%': ['Object', 'prototype', 'toString'],\n\t'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],\n\t'%PromisePrototype%': ['Promise', 'prototype'],\n\t'%PromiseProto_then%': ['Promise', 'prototype', 'then'],\n\t'%Promise_all%': ['Promise', 'all'],\n\t'%Promise_reject%': ['Promise', 'reject'],\n\t'%Promise_resolve%': ['Promise', 'resolve'],\n\t'%RangeErrorPrototype%': ['RangeError', 'prototype'],\n\t'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],\n\t'%RegExpPrototype%': ['RegExp', 'prototype'],\n\t'%SetPrototype%': ['Set', 'prototype'],\n\t'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],\n\t'%StringPrototype%': ['String', 'prototype'],\n\t'%SymbolPrototype%': ['Symbol', 'prototype'],\n\t'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],\n\t'%TypedArrayPrototype%': ['TypedArray', 'prototype'],\n\t'%TypeErrorPrototype%': ['TypeError', 'prototype'],\n\t'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],\n\t'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],\n\t'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],\n\t'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],\n\t'%URIErrorPrototype%': ['URIError', 'prototype'],\n\t'%WeakMapPrototype%': ['WeakMap', 'prototype'],\n\t'%WeakSetPrototype%': ['WeakSet', 'prototype']\n};\n\nvar bind = require('function-bind');\nvar hasOwn = require('hasown');\nvar $concat = bind.call(Function.call, Array.prototype.concat);\nvar $spliceApply = bind.call(Function.apply, Array.prototype.splice);\nvar $replace = bind.call(Function.call, String.prototype.replace);\nvar $strSlice = bind.call(Function.call, String.prototype.slice);\nvar $exec = bind.call(Function.call, RegExp.prototype.exec);\n\n/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */\nvar rePropName = /[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g;\nvar reEscapeChar = /\\\\(\\\\)?/g; /** Used to match backslashes in property paths. */\nvar stringToPath = function stringToPath(string) {\n\tvar first = $strSlice(string, 0, 1);\n\tvar last = $strSlice(string, -1);\n\tif (first === '%' && last !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected closing `%`');\n\t} else if (last === '%' && first !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected opening `%`');\n\t}\n\tvar result = [];\n\t$replace(string, rePropName, function (match, number, quote, subString) {\n\t\tresult[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;\n\t});\n\treturn result;\n};\n/* end adaptation */\n\nvar getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {\n\tvar intrinsicName = name;\n\tvar alias;\n\tif (hasOwn(LEGACY_ALIASES, intrinsicName)) {\n\t\talias = LEGACY_ALIASES[intrinsicName];\n\t\tintrinsicName = '%' + alias[0] + '%';\n\t}\n\n\tif (hasOwn(INTRINSICS, intrinsicName)) {\n\t\tvar value = INTRINSICS[intrinsicName];\n\t\tif (value === needsEval) {\n\t\t\tvalue = doEval(intrinsicName);\n\t\t}\n\t\tif (typeof value === 'undefined' && !allowMissing) {\n\t\t\tthrow new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');\n\t\t}\n\n\t\treturn {\n\t\t\talias: alias,\n\t\t\tname: intrinsicName,\n\t\t\tvalue: value\n\t\t};\n\t}\n\n\tthrow new $SyntaxError('intrinsic ' + name + ' does not exist!');\n};\n\nmodule.exports = function GetIntrinsic(name, allowMissing) {\n\tif (typeof name !== 'string' || name.length === 0) {\n\t\tthrow new $TypeError('intrinsic name must be a non-empty string');\n\t}\n\tif (arguments.length > 1 && typeof allowMissing !== 'boolean') {\n\t\tthrow new $TypeError('\"allowMissing\" argument must be a boolean');\n\t}\n\n\tif ($exec(/^%?[^%]*%?$/, name) === null) {\n\t\tthrow new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');\n\t}\n\tvar parts = stringToPath(name);\n\tvar intrinsicBaseName = parts.length > 0 ? parts[0] : '';\n\n\tvar intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);\n\tvar intrinsicRealName = intrinsic.name;\n\tvar value = intrinsic.value;\n\tvar skipFurtherCaching = false;\n\n\tvar alias = intrinsic.alias;\n\tif (alias) {\n\t\tintrinsicBaseName = alias[0];\n\t\t$spliceApply(parts, $concat([0, 1], alias));\n\t}\n\n\tfor (var i = 1, isOwn = true; i < parts.length; i += 1) {\n\t\tvar part = parts[i];\n\t\tvar first = $strSlice(part, 0, 1);\n\t\tvar last = $strSlice(part, -1);\n\t\tif (\n\t\t\t(\n\t\t\t\t(first === '\"' || first === \"'\" || first === '`')\n\t\t\t\t|| (last === '\"' || last === \"'\" || last === '`')\n\t\t\t)\n\t\t\t&& first !== last\n\t\t) {\n\t\t\tthrow new $SyntaxError('property names with quotes must have matching quotes');\n\t\t}\n\t\tif (part === 'constructor' || !isOwn) {\n\t\t\tskipFurtherCaching = true;\n\t\t}\n\n\t\tintrinsicBaseName += '.' + part;\n\t\tintrinsicRealName = '%' + intrinsicBaseName + '%';\n\n\t\tif (hasOwn(INTRINSICS, intrinsicRealName)) {\n\t\t\tvalue = INTRINSICS[intrinsicRealName];\n\t\t} else if (value != null) {\n\t\t\tif (!(part in value)) {\n\t\t\t\tif (!allowMissing) {\n\t\t\t\t\tthrow new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');\n\t\t\t\t}\n\t\t\t\treturn void undefined;\n\t\t\t}\n\t\t\tif ($gOPD && (i + 1) >= parts.length) {\n\t\t\t\tvar desc = $gOPD(value, part);\n\t\t\t\tisOwn = !!desc;\n\n\t\t\t\t// By convention, when a data property is converted to an accessor\n\t\t\t\t// property to emulate a data property that does not suffer from\n\t\t\t\t// the override mistake, that accessor's getter is marked with\n\t\t\t\t// an `originalValue` property. Here, when we detect this, we\n\t\t\t\t// uphold the illusion by pretending to see that original data\n\t\t\t\t// property, i.e., returning the value rather than the getter\n\t\t\t\t// itself.\n\t\t\t\tif (isOwn && 'get' in desc && !('originalValue' in desc.get)) {\n\t\t\t\t\tvalue = desc.get;\n\t\t\t\t} else {\n\t\t\t\t\tvalue = value[part];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tisOwn = hasOwn(value, part);\n\t\t\t\tvalue = value[part];\n\t\t\t}\n\n\t\t\tif (isOwn && !skipFurtherCaching) {\n\t\t\t\tINTRINSICS[intrinsicRealName] = value;\n\t\t\t}\n\t\t}\n\t}\n\treturn value;\n};\n", "'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\n/** @type {import('.')} */\nvar $defineProperty = GetIntrinsic('%Object.defineProperty%', true) || false;\nif ($defineProperty) {\n\ttry {\n\t\t$defineProperty({}, 'a', { value: 1 });\n\t} catch (e) {\n\t\t// IE 8 has a broken defineProperty\n\t\t$defineProperty = false;\n\t}\n}\n\nmodule.exports = $defineProperty;\n", "'use strict';\n\n/* eslint complexity: [2, 18], max-statements: [2, 33] */\nmodule.exports = function hasSymbols() {\n\tif (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }\n\tif (typeof Symbol.iterator === 'symbol') { return true; }\n\n\tvar obj = {};\n\tvar sym = Symbol('test');\n\tvar symObj = Object(sym);\n\tif (typeof sym === 'string') { return false; }\n\n\tif (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }\n\tif (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }\n\n\t// temp disabled per https://github.com/ljharb/object.assign/issues/17\n\t// if (sym instanceof Symbol) { return false; }\n\t// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4\n\t// if (!(symObj instanceof Symbol)) { return false; }\n\n\t// if (typeof Symbol.prototype.toString !== 'function') { return false; }\n\t// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }\n\n\tvar symVal = 42;\n\tobj[sym] = symVal;\n\tfor (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop\n\tif (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }\n\n\tif (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }\n\n\tvar syms = Object.getOwnPropertySymbols(obj);\n\tif (syms.length !== 1 || syms[0] !== sym) { return false; }\n\n\tif (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }\n\n\tif (typeof Object.getOwnPropertyDescriptor === 'function') {\n\t\tvar descriptor = Object.getOwnPropertyDescriptor(obj, sym);\n\t\tif (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }\n\t}\n\n\treturn true;\n};\n", "'use strict';\n\nvar origSymbol = typeof Symbol !== 'undefined' && Symbol;\nvar hasSymbolSham = require('./shams');\n\nmodule.exports = function hasNativeSymbols() {\n\tif (typeof origSymbol !== 'function') { return false; }\n\tif (typeof Symbol !== 'function') { return false; }\n\tif (typeof origSymbol('foo') !== 'symbol') { return false; }\n\tif (typeof Symbol('bar') !== 'symbol') { return false; }\n\n\treturn hasSymbolSham();\n};\n", "'use strict';\n\nvar undefined;\n\nvar $Error = require('es-errors');\nvar $EvalError = require('es-errors/eval');\nvar $RangeError = require('es-errors/range');\nvar $ReferenceError = require('es-errors/ref');\nvar $SyntaxError = require('es-errors/syntax');\nvar $TypeError = require('es-errors/type');\nvar $URIError = require('es-errors/uri');\n\nvar $Function = Function;\n\n// eslint-disable-next-line consistent-return\nvar getEvalledConstructor = function (expressionSyntax) {\n\ttry {\n\t\treturn $Function('\"use strict\"; return (' + expressionSyntax + ').constructor;')();\n\t} catch (e) {}\n};\n\nvar $gOPD = Object.getOwnPropertyDescriptor;\nif ($gOPD) {\n\ttry {\n\t\t$gOPD({}, '');\n\t} catch (e) {\n\t\t$gOPD = null; // this is IE 8, which has a broken gOPD\n\t}\n}\n\nvar throwTypeError = function () {\n\tthrow new $TypeError();\n};\nvar ThrowTypeError = $gOPD\n\t? (function () {\n\t\ttry {\n\t\t\t// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties\n\t\t\targuments.callee; // IE 8 does not throw here\n\t\t\treturn throwTypeError;\n\t\t} catch (calleeThrows) {\n\t\t\ttry {\n\t\t\t\t// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')\n\t\t\t\treturn $gOPD(arguments, 'callee').get;\n\t\t\t} catch (gOPDthrows) {\n\t\t\t\treturn throwTypeError;\n\t\t\t}\n\t\t}\n\t}())\n\t: throwTypeError;\n\nvar hasSymbols = require('has-symbols')();\nvar hasProto = require('has-proto')();\n\nvar getProto = Object.getPrototypeOf || (\n\thasProto\n\t\t? function (x) { return x.__proto__; } // eslint-disable-line no-proto\n\t\t: null\n);\n\nvar needsEval = {};\n\nvar TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);\n\nvar INTRINSICS = {\n\t__proto__: null,\n\t'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,\n\t'%Array%': Array,\n\t'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,\n\t'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,\n\t'%AsyncFromSyncIteratorPrototype%': undefined,\n\t'%AsyncFunction%': needsEval,\n\t'%AsyncGenerator%': needsEval,\n\t'%AsyncGeneratorFunction%': needsEval,\n\t'%AsyncIteratorPrototype%': needsEval,\n\t'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,\n\t'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,\n\t'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,\n\t'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,\n\t'%Boolean%': Boolean,\n\t'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,\n\t'%Date%': Date,\n\t'%decodeURI%': decodeURI,\n\t'%decodeURIComponent%': decodeURIComponent,\n\t'%encodeURI%': encodeURI,\n\t'%encodeURIComponent%': encodeURIComponent,\n\t'%Error%': $Error,\n\t'%eval%': eval, // eslint-disable-line no-eval\n\t'%EvalError%': $EvalError,\n\t'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,\n\t'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,\n\t'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,\n\t'%Function%': $Function,\n\t'%GeneratorFunction%': needsEval,\n\t'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,\n\t'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,\n\t'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,\n\t'%isFinite%': isFinite,\n\t'%isNaN%': isNaN,\n\t'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,\n\t'%JSON%': typeof JSON === 'object' ? JSON : undefined,\n\t'%Map%': typeof Map === 'undefined' ? undefined : Map,\n\t'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),\n\t'%Math%': Math,\n\t'%Number%': Number,\n\t'%Object%': Object,\n\t'%parseFloat%': parseFloat,\n\t'%parseInt%': parseInt,\n\t'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,\n\t'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,\n\t'%RangeError%': $RangeError,\n\t'%ReferenceError%': $ReferenceError,\n\t'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,\n\t'%RegExp%': RegExp,\n\t'%Set%': typeof Set === 'undefined' ? undefined : Set,\n\t'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),\n\t'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,\n\t'%String%': String,\n\t'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,\n\t'%Symbol%': hasSymbols ? Symbol : undefined,\n\t'%SyntaxError%': $SyntaxError,\n\t'%ThrowTypeError%': ThrowTypeError,\n\t'%TypedArray%': TypedArray,\n\t'%TypeError%': $TypeError,\n\t'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,\n\t'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,\n\t'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,\n\t'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,\n\t'%URIError%': $URIError,\n\t'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,\n\t'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,\n\t'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet\n};\n\nif (getProto) {\n\ttry {\n\t\tnull.error; // eslint-disable-line no-unused-expressions\n\t} catch (e) {\n\t\t// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229\n\t\tvar errorProto = getProto(getProto(e));\n\t\tINTRINSICS['%Error.prototype%'] = errorProto;\n\t}\n}\n\nvar doEval = function doEval(name) {\n\tvar value;\n\tif (name === '%AsyncFunction%') {\n\t\tvalue = getEvalledConstructor('async function () {}');\n\t} else if (name === '%GeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('function* () {}');\n\t} else if (name === '%AsyncGeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('async function* () {}');\n\t} else if (name === '%AsyncGenerator%') {\n\t\tvar fn = doEval('%AsyncGeneratorFunction%');\n\t\tif (fn) {\n\t\t\tvalue = fn.prototype;\n\t\t}\n\t} else if (name === '%AsyncIteratorPrototype%') {\n\t\tvar gen = doEval('%AsyncGenerator%');\n\t\tif (gen && getProto) {\n\t\t\tvalue = getProto(gen.prototype);\n\t\t}\n\t}\n\n\tINTRINSICS[name] = value;\n\n\treturn value;\n};\n\nvar LEGACY_ALIASES = {\n\t__proto__: null,\n\t'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],\n\t'%ArrayPrototype%': ['Array', 'prototype'],\n\t'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],\n\t'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],\n\t'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],\n\t'%ArrayProto_values%': ['Array', 'prototype', 'values'],\n\t'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],\n\t'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],\n\t'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],\n\t'%BooleanPrototype%': ['Boolean', 'prototype'],\n\t'%DataViewPrototype%': ['DataView', 'prototype'],\n\t'%DatePrototype%': ['Date', 'prototype'],\n\t'%ErrorPrototype%': ['Error', 'prototype'],\n\t'%EvalErrorPrototype%': ['EvalError', 'prototype'],\n\t'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],\n\t'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],\n\t'%FunctionPrototype%': ['Function', 'prototype'],\n\t'%Generator%': ['GeneratorFunction', 'prototype'],\n\t'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],\n\t'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],\n\t'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],\n\t'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],\n\t'%JSONParse%': ['JSON', 'parse'],\n\t'%JSONStringify%': ['JSON', 'stringify'],\n\t'%MapPrototype%': ['Map', 'prototype'],\n\t'%NumberPrototype%': ['Number', 'prototype'],\n\t'%ObjectPrototype%': ['Object', 'prototype'],\n\t'%ObjProto_toString%': ['Object', 'prototype', 'toString'],\n\t'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],\n\t'%PromisePrototype%': ['Promise', 'prototype'],\n\t'%PromiseProto_then%': ['Promise', 'prototype', 'then'],\n\t'%Promise_all%': ['Promise', 'all'],\n\t'%Promise_reject%': ['Promise', 'reject'],\n\t'%Promise_resolve%': ['Promise', 'resolve'],\n\t'%RangeErrorPrototype%': ['RangeError', 'prototype'],\n\t'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],\n\t'%RegExpPrototype%': ['RegExp', 'prototype'],\n\t'%SetPrototype%': ['Set', 'prototype'],\n\t'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],\n\t'%StringPrototype%': ['String', 'prototype'],\n\t'%SymbolPrototype%': ['Symbol', 'prototype'],\n\t'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],\n\t'%TypedArrayPrototype%': ['TypedArray', 'prototype'],\n\t'%TypeErrorPrototype%': ['TypeError', 'prototype'],\n\t'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],\n\t'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],\n\t'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],\n\t'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],\n\t'%URIErrorPrototype%': ['URIError', 'prototype'],\n\t'%WeakMapPrototype%': ['WeakMap', 'prototype'],\n\t'%WeakSetPrototype%': ['WeakSet', 'prototype']\n};\n\nvar bind = require('function-bind');\nvar hasOwn = require('hasown');\nvar $concat = bind.call(Function.call, Array.prototype.concat);\nvar $spliceApply = bind.call(Function.apply, Array.prototype.splice);\nvar $replace = bind.call(Function.call, String.prototype.replace);\nvar $strSlice = bind.call(Function.call, String.prototype.slice);\nvar $exec = bind.call(Function.call, RegExp.prototype.exec);\n\n/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */\nvar rePropName = /[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g;\nvar reEscapeChar = /\\\\(\\\\)?/g; /** Used to match backslashes in property paths. */\nvar stringToPath = function stringToPath(string) {\n\tvar first = $strSlice(string, 0, 1);\n\tvar last = $strSlice(string, -1);\n\tif (first === '%' && last !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected closing `%`');\n\t} else if (last === '%' && first !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected opening `%`');\n\t}\n\tvar result = [];\n\t$replace(string, rePropName, function (match, number, quote, subString) {\n\t\tresult[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;\n\t});\n\treturn result;\n};\n/* end adaptation */\n\nvar getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {\n\tvar intrinsicName = name;\n\tvar alias;\n\tif (hasOwn(LEGACY_ALIASES, intrinsicName)) {\n\t\talias = LEGACY_ALIASES[intrinsicName];\n\t\tintrinsicName = '%' + alias[0] + '%';\n\t}\n\n\tif (hasOwn(INTRINSICS, intrinsicName)) {\n\t\tvar value = INTRINSICS[intrinsicName];\n\t\tif (value === needsEval) {\n\t\t\tvalue = doEval(intrinsicName);\n\t\t}\n\t\tif (typeof value === 'undefined' && !allowMissing) {\n\t\t\tthrow new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');\n\t\t}\n\n\t\treturn {\n\t\t\talias: alias,\n\t\t\tname: intrinsicName,\n\t\t\tvalue: value\n\t\t};\n\t}\n\n\tthrow new $SyntaxError('intrinsic ' + name + ' does not exist!');\n};\n\nmodule.exports = function GetIntrinsic(name, allowMissing) {\n\tif (typeof name !== 'string' || name.length === 0) {\n\t\tthrow new $TypeError('intrinsic name must be a non-empty string');\n\t}\n\tif (arguments.length > 1 && typeof allowMissing !== 'boolean') {\n\t\tthrow new $TypeError('\"allowMissing\" argument must be a boolean');\n\t}\n\n\tif ($exec(/^%?[^%]*%?$/, name) === null) {\n\t\tthrow new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');\n\t}\n\tvar parts = stringToPath(name);\n\tvar intrinsicBaseName = parts.length > 0 ? parts[0] : '';\n\n\tvar intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);\n\tvar intrinsicRealName = intrinsic.name;\n\tvar value = intrinsic.value;\n\tvar skipFurtherCaching = false;\n\n\tvar alias = intrinsic.alias;\n\tif (alias) {\n\t\tintrinsicBaseName = alias[0];\n\t\t$spliceApply(parts, $concat([0, 1], alias));\n\t}\n\n\tfor (var i = 1, isOwn = true; i < parts.length; i += 1) {\n\t\tvar part = parts[i];\n\t\tvar first = $strSlice(part, 0, 1);\n\t\tvar last = $strSlice(part, -1);\n\t\tif (\n\t\t\t(\n\t\t\t\t(first === '\"' || first === \"'\" || first === '`')\n\t\t\t\t|| (last === '\"' || last === \"'\" || last === '`')\n\t\t\t)\n\t\t\t&& first !== last\n\t\t) {\n\t\t\tthrow new $SyntaxError('property names with quotes must have matching quotes');\n\t\t}\n\t\tif (part === 'constructor' || !isOwn) {\n\t\t\tskipFurtherCaching = true;\n\t\t}\n\n\t\tintrinsicBaseName += '.' + part;\n\t\tintrinsicRealName = '%' + intrinsicBaseName + '%';\n\n\t\tif (hasOwn(INTRINSICS, intrinsicRealName)) {\n\t\t\tvalue = INTRINSICS[intrinsicRealName];\n\t\t} else if (value != null) {\n\t\t\tif (!(part in value)) {\n\t\t\t\tif (!allowMissing) {\n\t\t\t\t\tthrow new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');\n\t\t\t\t}\n\t\t\t\treturn void undefined;\n\t\t\t}\n\t\t\tif ($gOPD && (i + 1) >= parts.length) {\n\t\t\t\tvar desc = $gOPD(value, part);\n\t\t\t\tisOwn = !!desc;\n\n\t\t\t\t// By convention, when a data property is converted to an accessor\n\t\t\t\t// property to emulate a data property that does not suffer from\n\t\t\t\t// the override mistake, that accessor's getter is marked with\n\t\t\t\t// an `originalValue` property. Here, when we detect this, we\n\t\t\t\t// uphold the illusion by pretending to see that original data\n\t\t\t\t// property, i.e., returning the value rather than the getter\n\t\t\t\t// itself.\n\t\t\t\tif (isOwn && 'get' in desc && !('originalValue' in desc.get)) {\n\t\t\t\t\tvalue = desc.get;\n\t\t\t\t} else {\n\t\t\t\t\tvalue = value[part];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tisOwn = hasOwn(value, part);\n\t\t\t\tvalue = value[part];\n\t\t\t}\n\n\t\t\tif (isOwn && !skipFurtherCaching) {\n\t\t\t\tINTRINSICS[intrinsicRealName] = value;\n\t\t\t}\n\t\t}\n\t}\n\treturn value;\n};\n", "'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\nvar $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);\n\nif ($gOPD) {\n\ttry {\n\t\t$gOPD([], 'length');\n\t} catch (e) {\n\t\t// IE 8 has a broken gOPD\n\t\t$gOPD = null;\n\t}\n}\n\nmodule.exports = $gOPD;\n", "'use strict';\n\nvar $defineProperty = require('es-define-property');\n\nvar $SyntaxError = require('es-errors/syntax');\nvar $TypeError = require('es-errors/type');\n\nvar gopd = require('gopd');\n\n/** @type {import('.')} */\nmodule.exports = function defineDataProperty(\n\tobj,\n\tproperty,\n\tvalue\n) {\n\tif (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {\n\t\tthrow new $TypeError('`obj` must be an object or a function`');\n\t}\n\tif (typeof property !== 'string' && typeof property !== 'symbol') {\n\t\tthrow new $TypeError('`property` must be a string or a symbol`');\n\t}\n\tif (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {\n\t\tthrow new $TypeError('`nonEnumerable`, if provided, must be a boolean or null');\n\t}\n\tif (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {\n\t\tthrow new $TypeError('`nonWritable`, if provided, must be a boolean or null');\n\t}\n\tif (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {\n\t\tthrow new $TypeError('`nonConfigurable`, if provided, must be a boolean or null');\n\t}\n\tif (arguments.length > 6 && typeof arguments[6] !== 'boolean') {\n\t\tthrow new $TypeError('`loose`, if provided, must be a boolean');\n\t}\n\n\tvar nonEnumerable = arguments.length > 3 ? arguments[3] : null;\n\tvar nonWritable = arguments.length > 4 ? arguments[4] : null;\n\tvar nonConfigurable = arguments.length > 5 ? arguments[5] : null;\n\tvar loose = arguments.length > 6 ? arguments[6] : false;\n\n\t/* @type {false | TypedPropertyDescriptor} */\n\tvar desc = !!gopd && gopd(obj, property);\n\n\tif ($defineProperty) {\n\t\t$defineProperty(obj, property, {\n\t\t\tconfigurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,\n\t\t\tenumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,\n\t\t\tvalue: value,\n\t\t\twritable: nonWritable === null && desc ? desc.writable : !nonWritable\n\t\t});\n\t} else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {\n\t\t// must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable\n\t\tobj[property] = value; // eslint-disable-line no-param-reassign\n\t} else {\n\t\tthrow new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');\n\t}\n};\n", "'use strict';\n\nvar $defineProperty = require('es-define-property');\n\nvar hasPropertyDescriptors = function hasPropertyDescriptors() {\n\treturn !!$defineProperty;\n};\n\nhasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {\n\t// node v0.6 has a bug where array lengths can be Set but not Defined\n\tif (!$defineProperty) {\n\t\treturn null;\n\t}\n\ttry {\n\t\treturn $defineProperty([], 'length', { value: 1 }).length !== 1;\n\t} catch (e) {\n\t\t// In Firefox 4-22, defining length on an array throws an exception.\n\t\treturn true;\n\t}\n};\n\nmodule.exports = hasPropertyDescriptors;\n", "'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\nvar $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);\n\nif ($gOPD) {\n\ttry {\n\t\t$gOPD([], 'length');\n\t} catch (e) {\n\t\t// IE 8 has a broken gOPD\n\t\t$gOPD = null;\n\t}\n}\n\nmodule.exports = $gOPD;\n", "'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\nvar define = require('define-data-property');\nvar hasDescriptors = require('has-property-descriptors')();\nvar gOPD = require('gopd');\n\nvar $TypeError = require('es-errors/type');\nvar $floor = GetIntrinsic('%Math.floor%');\n\n/** @type {import('.')} */\nmodule.exports = function setFunctionLength(fn, length) {\n\tif (typeof fn !== 'function') {\n\t\tthrow new $TypeError('`fn` is not a function');\n\t}\n\tif (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor(length) !== length) {\n\t\tthrow new $TypeError('`length` must be a positive 32-bit integer');\n\t}\n\n\tvar loose = arguments.length > 2 && !!arguments[2];\n\n\tvar functionLengthIsConfigurable = true;\n\tvar functionLengthIsWritable = true;\n\tif ('length' in fn && gOPD) {\n\t\tvar desc = gOPD(fn, 'length');\n\t\tif (desc && !desc.configurable) {\n\t\t\tfunctionLengthIsConfigurable = false;\n\t\t}\n\t\tif (desc && !desc.writable) {\n\t\t\tfunctionLengthIsWritable = false;\n\t\t}\n\t}\n\n\tif (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {\n\t\tif (hasDescriptors) {\n\t\t\tdefine(/** @type {Parameters[0]} */ (fn), 'length', length, true, true);\n\t\t} else {\n\t\t\tdefine(/** @type {Parameters[0]} */ (fn), 'length', length);\n\t\t}\n\t}\n\treturn fn;\n};\n", "'use strict';\n\nvar bind = require('function-bind');\nvar GetIntrinsic = require('get-intrinsic');\nvar setFunctionLength = require('set-function-length');\n\nvar $TypeError = require('es-errors/type');\nvar $apply = GetIntrinsic('%Function.prototype.apply%');\nvar $call = GetIntrinsic('%Function.prototype.call%');\nvar $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);\n\nvar $defineProperty = require('es-define-property');\nvar $max = GetIntrinsic('%Math.max%');\n\nmodule.exports = function callBind(originalFunction) {\n\tif (typeof originalFunction !== 'function') {\n\t\tthrow new $TypeError('a function is required');\n\t}\n\tvar func = $reflectApply(bind, $call, arguments);\n\treturn setFunctionLength(\n\t\tfunc,\n\t\t1 + $max(0, originalFunction.length - (arguments.length - 1)),\n\t\ttrue\n\t);\n};\n\nvar applyBind = function applyBind() {\n\treturn $reflectApply(bind, $apply, arguments);\n};\n\nif ($defineProperty) {\n\t$defineProperty(module.exports, 'apply', { value: applyBind });\n} else {\n\tmodule.exports.apply = applyBind;\n}\n", "'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\nvar callBind = require('./');\n\nvar $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));\n\nmodule.exports = function callBoundIntrinsic(name, allowMissing) {\n\tvar intrinsic = GetIntrinsic(name, !!allowMissing);\n\tif (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {\n\t\treturn callBind(intrinsic);\n\t}\n\treturn intrinsic;\n};\n", "var hasMap = typeof Map === 'function' && Map.prototype;\nvar mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;\nvar mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;\nvar mapForEach = hasMap && Map.prototype.forEach;\nvar hasSet = typeof Set === 'function' && Set.prototype;\nvar setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;\nvar setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;\nvar setForEach = hasSet && Set.prototype.forEach;\nvar hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;\nvar weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;\nvar hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;\nvar weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;\nvar hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;\nvar weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;\nvar booleanValueOf = Boolean.prototype.valueOf;\nvar objectToString = Object.prototype.toString;\nvar functionToString = Function.prototype.toString;\nvar $match = String.prototype.match;\nvar $slice = String.prototype.slice;\nvar $replace = String.prototype.replace;\nvar $toUpperCase = String.prototype.toUpperCase;\nvar $toLowerCase = String.prototype.toLowerCase;\nvar $test = RegExp.prototype.test;\nvar $concat = Array.prototype.concat;\nvar $join = Array.prototype.join;\nvar $arrSlice = Array.prototype.slice;\nvar $floor = Math.floor;\nvar bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;\nvar gOPS = Object.getOwnPropertySymbols;\nvar symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;\nvar hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';\n// ie, `has-tostringtag/shams\nvar toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')\n ? Symbol.toStringTag\n : null;\nvar isEnumerable = Object.prototype.propertyIsEnumerable;\n\nvar gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (\n [].__proto__ === Array.prototype // eslint-disable-line no-proto\n ? function (O) {\n return O.__proto__; // eslint-disable-line no-proto\n }\n : null\n);\n\nfunction addNumericSeparator(num, str) {\n if (\n num === Infinity\n || num === -Infinity\n || num !== num\n || (num && num > -1000 && num < 1000)\n || $test.call(/e/, str)\n ) {\n return str;\n }\n var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;\n if (typeof num === 'number') {\n var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)\n if (int !== num) {\n var intStr = String(int);\n var dec = $slice.call(str, intStr.length + 1);\n return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');\n }\n }\n return $replace.call(str, sepRegex, '$&_');\n}\n\nvar utilInspect = require('./util.inspect');\nvar inspectCustom = utilInspect.custom;\nvar inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;\n\nmodule.exports = function inspect_(obj, options, depth, seen) {\n var opts = options || {};\n\n if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {\n throw new TypeError('option \"quoteStyle\" must be \"single\" or \"double\"');\n }\n if (\n has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'\n ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity\n : opts.maxStringLength !== null\n )\n ) {\n throw new TypeError('option \"maxStringLength\", if provided, must be a positive integer, Infinity, or `null`');\n }\n var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;\n if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {\n throw new TypeError('option \"customInspect\", if provided, must be `true`, `false`, or `\\'symbol\\'`');\n }\n\n if (\n has(opts, 'indent')\n && opts.indent !== null\n && opts.indent !== '\\t'\n && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)\n ) {\n throw new TypeError('option \"indent\" must be \"\\\\t\", an integer > 0, or `null`');\n }\n if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {\n throw new TypeError('option \"numericSeparator\", if provided, must be `true` or `false`');\n }\n var numericSeparator = opts.numericSeparator;\n\n if (typeof obj === 'undefined') {\n return 'undefined';\n }\n if (obj === null) {\n return 'null';\n }\n if (typeof obj === 'boolean') {\n return obj ? 'true' : 'false';\n }\n\n if (typeof obj === 'string') {\n return inspectString(obj, opts);\n }\n if (typeof obj === 'number') {\n if (obj === 0) {\n return Infinity / obj > 0 ? '0' : '-0';\n }\n var str = String(obj);\n return numericSeparator ? addNumericSeparator(obj, str) : str;\n }\n if (typeof obj === 'bigint') {\n var bigIntStr = String(obj) + 'n';\n return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;\n }\n\n var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;\n if (typeof depth === 'undefined') { depth = 0; }\n if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {\n return isArray(obj) ? '[Array]' : '[Object]';\n }\n\n var indent = getIndent(opts, depth);\n\n if (typeof seen === 'undefined') {\n seen = [];\n } else if (indexOf(seen, obj) >= 0) {\n return '[Circular]';\n }\n\n function inspect(value, from, noIndent) {\n if (from) {\n seen = $arrSlice.call(seen);\n seen.push(from);\n }\n if (noIndent) {\n var newOpts = {\n depth: opts.depth\n };\n if (has(opts, 'quoteStyle')) {\n newOpts.quoteStyle = opts.quoteStyle;\n }\n return inspect_(value, newOpts, depth + 1, seen);\n }\n return inspect_(value, opts, depth + 1, seen);\n }\n\n if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable\n var name = nameOf(obj);\n var keys = arrObjKeys(obj, inspect);\n return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');\n }\n if (isSymbol(obj)) {\n var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\\(.*\\))_[^)]*$/, '$1') : symToString.call(obj);\n return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;\n }\n if (isElement(obj)) {\n var s = '<' + $toLowerCase.call(String(obj.nodeName));\n var attrs = obj.attributes || [];\n for (var i = 0; i < attrs.length; i++) {\n s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);\n }\n s += '>';\n if (obj.childNodes && obj.childNodes.length) { s += '...'; }\n s += '';\n return s;\n }\n if (isArray(obj)) {\n if (obj.length === 0) { return '[]'; }\n var xs = arrObjKeys(obj, inspect);\n if (indent && !singleLineValues(xs)) {\n return '[' + indentedJoin(xs, indent) + ']';\n }\n return '[ ' + $join.call(xs, ', ') + ' ]';\n }\n if (isError(obj)) {\n var parts = arrObjKeys(obj, inspect);\n if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {\n return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';\n }\n if (parts.length === 0) { return '[' + String(obj) + ']'; }\n return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';\n }\n if (typeof obj === 'object' && customInspect) {\n if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {\n return utilInspect(obj, { depth: maxDepth - depth });\n } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {\n return obj.inspect();\n }\n }\n if (isMap(obj)) {\n var mapParts = [];\n if (mapForEach) {\n mapForEach.call(obj, function (value, key) {\n mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));\n });\n }\n return collectionOf('Map', mapSize.call(obj), mapParts, indent);\n }\n if (isSet(obj)) {\n var setParts = [];\n if (setForEach) {\n setForEach.call(obj, function (value) {\n setParts.push(inspect(value, obj));\n });\n }\n return collectionOf('Set', setSize.call(obj), setParts, indent);\n }\n if (isWeakMap(obj)) {\n return weakCollectionOf('WeakMap');\n }\n if (isWeakSet(obj)) {\n return weakCollectionOf('WeakSet');\n }\n if (isWeakRef(obj)) {\n return weakCollectionOf('WeakRef');\n }\n if (isNumber(obj)) {\n return markBoxed(inspect(Number(obj)));\n }\n if (isBigInt(obj)) {\n return markBoxed(inspect(bigIntValueOf.call(obj)));\n }\n if (isBoolean(obj)) {\n return markBoxed(booleanValueOf.call(obj));\n }\n if (isString(obj)) {\n return markBoxed(inspect(String(obj)));\n }\n // note: in IE 8, sometimes `global !== window` but both are the prototypes of each other\n /* eslint-env browser */\n if (typeof window !== 'undefined' && obj === window) {\n return '{ [object Window] }';\n }\n if (obj === global) {\n return '{ [object globalThis] }';\n }\n if (!isDate(obj) && !isRegExp(obj)) {\n var ys = arrObjKeys(obj, inspect);\n var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;\n var protoTag = obj instanceof Object ? '' : 'null prototype';\n var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';\n var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';\n var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');\n if (ys.length === 0) { return tag + '{}'; }\n if (indent) {\n return tag + '{' + indentedJoin(ys, indent) + '}';\n }\n return tag + '{ ' + $join.call(ys, ', ') + ' }';\n }\n return String(obj);\n};\n\nfunction wrapQuotes(s, defaultStyle, opts) {\n var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '\"' : \"'\";\n return quoteChar + s + quoteChar;\n}\n\nfunction quote(s) {\n return $replace.call(String(s), /\"/g, '"');\n}\n\nfunction isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\n\n// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives\nfunction isSymbol(obj) {\n if (hasShammedSymbols) {\n return obj && typeof obj === 'object' && obj instanceof Symbol;\n }\n if (typeof obj === 'symbol') {\n return true;\n }\n if (!obj || typeof obj !== 'object' || !symToString) {\n return false;\n }\n try {\n symToString.call(obj);\n return true;\n } catch (e) {}\n return false;\n}\n\nfunction isBigInt(obj) {\n if (!obj || typeof obj !== 'object' || !bigIntValueOf) {\n return false;\n }\n try {\n bigIntValueOf.call(obj);\n return true;\n } catch (e) {}\n return false;\n}\n\nvar hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };\nfunction has(obj, key) {\n return hasOwn.call(obj, key);\n}\n\nfunction toStr(obj) {\n return objectToString.call(obj);\n}\n\nfunction nameOf(f) {\n if (f.name) { return f.name; }\n var m = $match.call(functionToString.call(f), /^function\\s*([\\w$]+)/);\n if (m) { return m[1]; }\n return null;\n}\n\nfunction indexOf(xs, x) {\n if (xs.indexOf) { return xs.indexOf(x); }\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) { return i; }\n }\n return -1;\n}\n\nfunction isMap(x) {\n if (!mapSize || !x || typeof x !== 'object') {\n return false;\n }\n try {\n mapSize.call(x);\n try {\n setSize.call(x);\n } catch (s) {\n return true;\n }\n return x instanceof Map; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakMap(x) {\n if (!weakMapHas || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakMapHas.call(x, weakMapHas);\n try {\n weakSetHas.call(x, weakSetHas);\n } catch (s) {\n return true;\n }\n return x instanceof WeakMap; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakRef(x) {\n if (!weakRefDeref || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakRefDeref.call(x);\n return true;\n } catch (e) {}\n return false;\n}\n\nfunction isSet(x) {\n if (!setSize || !x || typeof x !== 'object') {\n return false;\n }\n try {\n setSize.call(x);\n try {\n mapSize.call(x);\n } catch (m) {\n return true;\n }\n return x instanceof Set; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakSet(x) {\n if (!weakSetHas || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakSetHas.call(x, weakSetHas);\n try {\n weakMapHas.call(x, weakMapHas);\n } catch (s) {\n return true;\n }\n return x instanceof WeakSet; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isElement(x) {\n if (!x || typeof x !== 'object') { return false; }\n if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {\n return true;\n }\n return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';\n}\n\nfunction inspectString(str, opts) {\n if (str.length > opts.maxStringLength) {\n var remaining = str.length - opts.maxStringLength;\n var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');\n return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;\n }\n // eslint-disable-next-line no-control-regex\n var s = $replace.call($replace.call(str, /(['\\\\])/g, '\\\\$1'), /[\\x00-\\x1f]/g, lowbyte);\n return wrapQuotes(s, 'single', opts);\n}\n\nfunction lowbyte(c) {\n var n = c.charCodeAt(0);\n var x = {\n 8: 'b',\n 9: 't',\n 10: 'n',\n 12: 'f',\n 13: 'r'\n }[n];\n if (x) { return '\\\\' + x; }\n return '\\\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));\n}\n\nfunction markBoxed(str) {\n return 'Object(' + str + ')';\n}\n\nfunction weakCollectionOf(type) {\n return type + ' { ? }';\n}\n\nfunction collectionOf(type, size, entries, indent) {\n var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');\n return type + ' (' + size + ') {' + joinedEntries + '}';\n}\n\nfunction singleLineValues(xs) {\n for (var i = 0; i < xs.length; i++) {\n if (indexOf(xs[i], '\\n') >= 0) {\n return false;\n }\n }\n return true;\n}\n\nfunction getIndent(opts, depth) {\n var baseIndent;\n if (opts.indent === '\\t') {\n baseIndent = '\\t';\n } else if (typeof opts.indent === 'number' && opts.indent > 0) {\n baseIndent = $join.call(Array(opts.indent + 1), ' ');\n } else {\n return null;\n }\n return {\n base: baseIndent,\n prev: $join.call(Array(depth + 1), baseIndent)\n };\n}\n\nfunction indentedJoin(xs, indent) {\n if (xs.length === 0) { return ''; }\n var lineJoiner = '\\n' + indent.prev + indent.base;\n return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\\n' + indent.prev;\n}\n\nfunction arrObjKeys(obj, inspect) {\n var isArr = isArray(obj);\n var xs = [];\n if (isArr) {\n xs.length = obj.length;\n for (var i = 0; i < obj.length; i++) {\n xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';\n }\n }\n var syms = typeof gOPS === 'function' ? gOPS(obj) : [];\n var symMap;\n if (hasShammedSymbols) {\n symMap = {};\n for (var k = 0; k < syms.length; k++) {\n symMap['$' + syms[k]] = syms[k];\n }\n }\n\n for (var key in obj) { // eslint-disable-line no-restricted-syntax\n if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue\n if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue\n if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {\n // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section\n continue; // eslint-disable-line no-restricted-syntax, no-continue\n } else if ($test.call(/[^\\w$]/, key)) {\n xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));\n } else {\n xs.push(key + ': ' + inspect(obj[key], obj));\n }\n }\n if (typeof gOPS === 'function') {\n for (var j = 0; j < syms.length; j++) {\n if (isEnumerable.call(obj, syms[j])) {\n xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));\n }\n }\n }\n return xs;\n}\n", "'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\nvar callBound = require('call-bind/callBound');\nvar inspect = require('object-inspect');\n\nvar $TypeError = require('es-errors/type');\nvar $WeakMap = GetIntrinsic('%WeakMap%', true);\nvar $Map = GetIntrinsic('%Map%', true);\n\nvar $weakMapGet = callBound('WeakMap.prototype.get', true);\nvar $weakMapSet = callBound('WeakMap.prototype.set', true);\nvar $weakMapHas = callBound('WeakMap.prototype.has', true);\nvar $mapGet = callBound('Map.prototype.get', true);\nvar $mapSet = callBound('Map.prototype.set', true);\nvar $mapHas = callBound('Map.prototype.has', true);\n\n/*\n* This function traverses the list returning the node corresponding to the given key.\n*\n* That node is also moved to the head of the list, so that if it's accessed again we don't need to traverse the whole list. By doing so, all the recently used nodes can be accessed relatively quickly.\n*/\n/** @type {import('.').listGetNode} */\nvar listGetNode = function (list, key) { // eslint-disable-line consistent-return\n\t/** @type {typeof list | NonNullable<(typeof list)['next']>} */\n\tvar prev = list;\n\t/** @type {(typeof list)['next']} */\n\tvar curr;\n\tfor (; (curr = prev.next) !== null; prev = curr) {\n\t\tif (curr.key === key) {\n\t\t\tprev.next = curr.next;\n\t\t\t// eslint-disable-next-line no-extra-parens\n\t\t\tcurr.next = /** @type {NonNullable} */ (list.next);\n\t\t\tlist.next = curr; // eslint-disable-line no-param-reassign\n\t\t\treturn curr;\n\t\t}\n\t}\n};\n\n/** @type {import('.').listGet} */\nvar listGet = function (objects, key) {\n\tvar node = listGetNode(objects, key);\n\treturn node && node.value;\n};\n/** @type {import('.').listSet} */\nvar listSet = function (objects, key, value) {\n\tvar node = listGetNode(objects, key);\n\tif (node) {\n\t\tnode.value = value;\n\t} else {\n\t\t// Prepend the new node to the beginning of the list\n\t\tobjects.next = /** @type {import('.').ListNode} */ ({ // eslint-disable-line no-param-reassign, no-extra-parens\n\t\t\tkey: key,\n\t\t\tnext: objects.next,\n\t\t\tvalue: value\n\t\t});\n\t}\n};\n/** @type {import('.').listHas} */\nvar listHas = function (objects, key) {\n\treturn !!listGetNode(objects, key);\n};\n\n/** @type {import('.')} */\nmodule.exports = function getSideChannel() {\n\t/** @type {WeakMap} */ var $wm;\n\t/** @type {Map} */ var $m;\n\t/** @type {import('.').RootNode} */ var $o;\n\n\t/** @type {import('.').Channel} */\n\tvar channel = {\n\t\tassert: function (key) {\n\t\t\tif (!channel.has(key)) {\n\t\t\t\tthrow new $TypeError('Side channel does not contain ' + inspect(key));\n\t\t\t}\n\t\t},\n\t\tget: function (key) { // eslint-disable-line consistent-return\n\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\tif ($wm) {\n\t\t\t\t\treturn $weakMapGet($wm, key);\n\t\t\t\t}\n\t\t\t} else if ($Map) {\n\t\t\t\tif ($m) {\n\t\t\t\t\treturn $mapGet($m, key);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($o) { // eslint-disable-line no-lonely-if\n\t\t\t\t\treturn listGet($o, key);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\thas: function (key) {\n\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\tif ($wm) {\n\t\t\t\t\treturn $weakMapHas($wm, key);\n\t\t\t\t}\n\t\t\t} else if ($Map) {\n\t\t\t\tif ($m) {\n\t\t\t\t\treturn $mapHas($m, key);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($o) { // eslint-disable-line no-lonely-if\n\t\t\t\t\treturn listHas($o, key);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t},\n\t\tset: function (key, value) {\n\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\tif (!$wm) {\n\t\t\t\t\t$wm = new $WeakMap();\n\t\t\t\t}\n\t\t\t\t$weakMapSet($wm, key, value);\n\t\t\t} else if ($Map) {\n\t\t\t\tif (!$m) {\n\t\t\t\t\t$m = new $Map();\n\t\t\t\t}\n\t\t\t\t$mapSet($m, key, value);\n\t\t\t} else {\n\t\t\t\tif (!$o) {\n\t\t\t\t\t// Initialize the linked list as an empty node, so that we don't have to special-case handling of the first node: we can always refer to it as (previous node).next, instead of something like (list).head\n\t\t\t\t\t$o = { key: {}, next: null };\n\t\t\t\t}\n\t\t\t\tlistSet($o, key, value);\n\t\t\t}\n\t\t}\n\t};\n\treturn channel;\n};\n", "'use strict';\n\nvar replace = String.prototype.replace;\nvar percentTwenties = /%20/g;\n\nvar Format = {\n RFC1738: 'RFC1738',\n RFC3986: 'RFC3986'\n};\n\nmodule.exports = {\n 'default': Format.RFC3986,\n formatters: {\n RFC1738: function (value) {\n return replace.call(value, percentTwenties, '+');\n },\n RFC3986: function (value) {\n return String(value);\n }\n },\n RFC1738: Format.RFC1738,\n RFC3986: Format.RFC3986\n};\n", "'use strict';\n\nvar formats = require('./formats');\n\nvar has = Object.prototype.hasOwnProperty;\nvar isArray = Array.isArray;\n\nvar hexTable = (function () {\n var array = [];\n for (var i = 0; i < 256; ++i) {\n array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());\n }\n\n return array;\n}());\n\nvar compactQueue = function compactQueue(queue) {\n while (queue.length > 1) {\n var item = queue.pop();\n var obj = item.obj[item.prop];\n\n if (isArray(obj)) {\n var compacted = [];\n\n for (var j = 0; j < obj.length; ++j) {\n if (typeof obj[j] !== 'undefined') {\n compacted.push(obj[j]);\n }\n }\n\n item.obj[item.prop] = compacted;\n }\n }\n};\n\nvar arrayToObject = function arrayToObject(source, options) {\n var obj = options && options.plainObjects ? { __proto__: null } : {};\n for (var i = 0; i < source.length; ++i) {\n if (typeof source[i] !== 'undefined') {\n obj[i] = source[i];\n }\n }\n\n return obj;\n};\n\nvar merge = function merge(target, source, options) {\n /* eslint no-param-reassign: 0 */\n if (!source) {\n return target;\n }\n\n if (typeof source !== 'object' && typeof source !== 'function') {\n if (isArray(target)) {\n target.push(source);\n } else if (target && typeof target === 'object') {\n if (\n (options && (options.plainObjects || options.allowPrototypes))\n || !has.call(Object.prototype, source)\n ) {\n target[source] = true;\n }\n } else {\n return [target, source];\n }\n\n return target;\n }\n\n if (!target || typeof target !== 'object') {\n return [target].concat(source);\n }\n\n var mergeTarget = target;\n if (isArray(target) && !isArray(source)) {\n mergeTarget = arrayToObject(target, options);\n }\n\n if (isArray(target) && isArray(source)) {\n source.forEach(function (item, i) {\n if (has.call(target, i)) {\n var targetItem = target[i];\n if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {\n target[i] = merge(targetItem, item, options);\n } else {\n target.push(item);\n }\n } else {\n target[i] = item;\n }\n });\n return target;\n }\n\n return Object.keys(source).reduce(function (acc, key) {\n var value = source[key];\n\n if (has.call(acc, key)) {\n acc[key] = merge(acc[key], value, options);\n } else {\n acc[key] = value;\n }\n return acc;\n }, mergeTarget);\n};\n\nvar assign = function assignSingleSource(target, source) {\n return Object.keys(source).reduce(function (acc, key) {\n acc[key] = source[key];\n return acc;\n }, target);\n};\n\nvar decode = function (str, defaultDecoder, charset) {\n var strWithoutPlus = str.replace(/\\+/g, ' ');\n if (charset === 'iso-8859-1') {\n // unescape never throws, no try...catch needed:\n return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);\n }\n // utf-8\n try {\n return decodeURIComponent(strWithoutPlus);\n } catch (e) {\n return strWithoutPlus;\n }\n};\n\nvar limit = 1024;\n\n/* eslint operator-linebreak: [2, \"before\"] */\n\nvar encode = function encode(str, defaultEncoder, charset, kind, format) {\n // This code was originally written by Brian White (mscdex) for the io.js core querystring library.\n // It has been adapted here for stricter adherence to RFC 3986\n if (str.length === 0) {\n return str;\n }\n\n var string = str;\n if (typeof str === 'symbol') {\n string = Symbol.prototype.toString.call(str);\n } else if (typeof str !== 'string') {\n string = String(str);\n }\n\n if (charset === 'iso-8859-1') {\n return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {\n return '%26%23' + parseInt($0.slice(2), 16) + '%3B';\n });\n }\n\n var out = '';\n for (var j = 0; j < string.length; j += limit) {\n var segment = string.length >= limit ? string.slice(j, j + limit) : string;\n var arr = [];\n\n for (var i = 0; i < segment.length; ++i) {\n var c = segment.charCodeAt(i);\n if (\n c === 0x2D // -\n || c === 0x2E // .\n || c === 0x5F // _\n || c === 0x7E // ~\n || (c >= 0x30 && c <= 0x39) // 0-9\n || (c >= 0x41 && c <= 0x5A) // a-z\n || (c >= 0x61 && c <= 0x7A) // A-Z\n || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )\n ) {\n arr[arr.length] = segment.charAt(i);\n continue;\n }\n\n if (c < 0x80) {\n arr[arr.length] = hexTable[c];\n continue;\n }\n\n if (c < 0x800) {\n arr[arr.length] = hexTable[0xC0 | (c >> 6)]\n + hexTable[0x80 | (c & 0x3F)];\n continue;\n }\n\n if (c < 0xD800 || c >= 0xE000) {\n arr[arr.length] = hexTable[0xE0 | (c >> 12)]\n + hexTable[0x80 | ((c >> 6) & 0x3F)]\n + hexTable[0x80 | (c & 0x3F)];\n continue;\n }\n\n i += 1;\n c = 0x10000 + (((c & 0x3FF) << 10) | (segment.charCodeAt(i) & 0x3FF));\n\n arr[arr.length] = hexTable[0xF0 | (c >> 18)]\n + hexTable[0x80 | ((c >> 12) & 0x3F)]\n + hexTable[0x80 | ((c >> 6) & 0x3F)]\n + hexTable[0x80 | (c & 0x3F)];\n }\n\n out += arr.join('');\n }\n\n return out;\n};\n\nvar compact = function compact(value) {\n var queue = [{ obj: { o: value }, prop: 'o' }];\n var refs = [];\n\n for (var i = 0; i < queue.length; ++i) {\n var item = queue[i];\n var obj = item.obj[item.prop];\n\n var keys = Object.keys(obj);\n for (var j = 0; j < keys.length; ++j) {\n var key = keys[j];\n var val = obj[key];\n if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {\n queue.push({ obj: obj, prop: key });\n refs.push(val);\n }\n }\n }\n\n compactQueue(queue);\n\n return value;\n};\n\nvar isRegExp = function isRegExp(obj) {\n return Object.prototype.toString.call(obj) === '[object RegExp]';\n};\n\nvar isBuffer = function isBuffer(obj) {\n if (!obj || typeof obj !== 'object') {\n return false;\n }\n\n return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));\n};\n\nvar combine = function combine(a, b) {\n return [].concat(a, b);\n};\n\nvar maybeMap = function maybeMap(val, fn) {\n if (isArray(val)) {\n var mapped = [];\n for (var i = 0; i < val.length; i += 1) {\n mapped.push(fn(val[i]));\n }\n return mapped;\n }\n return fn(val);\n};\n\nmodule.exports = {\n arrayToObject: arrayToObject,\n assign: assign,\n combine: combine,\n compact: compact,\n decode: decode,\n encode: encode,\n isBuffer: isBuffer,\n isRegExp: isRegExp,\n maybeMap: maybeMap,\n merge: merge\n};\n", "'use strict';\n\nvar getSideChannel = require('side-channel');\nvar utils = require('./utils');\nvar formats = require('./formats');\nvar has = Object.prototype.hasOwnProperty;\n\nvar arrayPrefixGenerators = {\n brackets: function brackets(prefix) {\n return prefix + '[]';\n },\n comma: 'comma',\n indices: function indices(prefix, key) {\n return prefix + '[' + key + ']';\n },\n repeat: function repeat(prefix) {\n return prefix;\n }\n};\n\nvar isArray = Array.isArray;\nvar push = Array.prototype.push;\nvar pushToArray = function (arr, valueOrArray) {\n push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);\n};\n\nvar toISO = Date.prototype.toISOString;\n\nvar defaultFormat = formats['default'];\nvar defaults = {\n addQueryPrefix: false,\n allowDots: false,\n allowEmptyArrays: false,\n arrayFormat: 'indices',\n charset: 'utf-8',\n charsetSentinel: false,\n commaRoundTrip: false,\n delimiter: '&',\n encode: true,\n encodeDotInKeys: false,\n encoder: utils.encode,\n encodeValuesOnly: false,\n filter: void undefined,\n format: defaultFormat,\n formatter: formats.formatters[defaultFormat],\n // deprecated\n indices: false,\n serializeDate: function serializeDate(date) {\n return toISO.call(date);\n },\n skipNulls: false,\n strictNullHandling: false\n};\n\nvar isNonNullishPrimitive = function isNonNullishPrimitive(v) {\n return typeof v === 'string'\n || typeof v === 'number'\n || typeof v === 'boolean'\n || typeof v === 'symbol'\n || typeof v === 'bigint';\n};\n\nvar sentinel = {};\n\nvar stringify = function stringify(\n object,\n prefix,\n generateArrayPrefix,\n commaRoundTrip,\n allowEmptyArrays,\n strictNullHandling,\n skipNulls,\n encodeDotInKeys,\n encoder,\n filter,\n sort,\n allowDots,\n serializeDate,\n format,\n formatter,\n encodeValuesOnly,\n charset,\n sideChannel\n) {\n var obj = object;\n\n var tmpSc = sideChannel;\n var step = 0;\n var findFlag = false;\n while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {\n // Where object last appeared in the ref tree\n var pos = tmpSc.get(object);\n step += 1;\n if (typeof pos !== 'undefined') {\n if (pos === step) {\n throw new RangeError('Cyclic object value');\n } else {\n findFlag = true; // Break while\n }\n }\n if (typeof tmpSc.get(sentinel) === 'undefined') {\n step = 0;\n }\n }\n\n if (typeof filter === 'function') {\n obj = filter(prefix, obj);\n } else if (obj instanceof Date) {\n obj = serializeDate(obj);\n } else if (generateArrayPrefix === 'comma' && isArray(obj)) {\n obj = utils.maybeMap(obj, function (value) {\n if (value instanceof Date) {\n return serializeDate(value);\n }\n return value;\n });\n }\n\n if (obj === null) {\n if (strictNullHandling) {\n return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;\n }\n\n obj = '';\n }\n\n if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {\n if (encoder) {\n var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);\n return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];\n }\n return [formatter(prefix) + '=' + formatter(String(obj))];\n }\n\n var values = [];\n\n if (typeof obj === 'undefined') {\n return values;\n }\n\n var objKeys;\n if (generateArrayPrefix === 'comma' && isArray(obj)) {\n // we need to join elements in\n if (encodeValuesOnly && encoder) {\n obj = utils.maybeMap(obj, encoder);\n }\n objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];\n } else if (isArray(filter)) {\n objKeys = filter;\n } else {\n var keys = Object.keys(obj);\n objKeys = sort ? keys.sort(sort) : keys;\n }\n\n var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\\./g, '%2E') : String(prefix);\n\n var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + '[]' : encodedPrefix;\n\n if (allowEmptyArrays && isArray(obj) && obj.length === 0) {\n return adjustedPrefix + '[]';\n }\n\n for (var j = 0; j < objKeys.length; ++j) {\n var key = objKeys[j];\n var value = typeof key === 'object' && key && typeof key.value !== 'undefined'\n ? key.value\n : obj[key];\n\n if (skipNulls && value === null) {\n continue;\n }\n\n var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\\./g, '%2E') : String(key);\n var keyPrefix = isArray(obj)\n ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix\n : adjustedPrefix + (allowDots ? '.' + encodedKey : '[' + encodedKey + ']');\n\n sideChannel.set(object, step);\n var valueSideChannel = getSideChannel();\n valueSideChannel.set(sentinel, sideChannel);\n pushToArray(values, stringify(\n value,\n keyPrefix,\n generateArrayPrefix,\n commaRoundTrip,\n allowEmptyArrays,\n strictNullHandling,\n skipNulls,\n encodeDotInKeys,\n generateArrayPrefix === 'comma' && encodeValuesOnly && isArray(obj) ? null : encoder,\n filter,\n sort,\n allowDots,\n serializeDate,\n format,\n formatter,\n encodeValuesOnly,\n charset,\n valueSideChannel\n ));\n }\n\n return values;\n};\n\nvar normalizeStringifyOptions = function normalizeStringifyOptions(opts) {\n if (!opts) {\n return defaults;\n }\n\n if (typeof opts.allowEmptyArrays !== 'undefined' && typeof opts.allowEmptyArrays !== 'boolean') {\n throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided');\n }\n\n if (typeof opts.encodeDotInKeys !== 'undefined' && typeof opts.encodeDotInKeys !== 'boolean') {\n throw new TypeError('`encodeDotInKeys` option can only be `true` or `false`, when provided');\n }\n\n if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {\n throw new TypeError('Encoder has to be a function.');\n }\n\n var charset = opts.charset || defaults.charset;\n if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {\n throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');\n }\n\n var format = formats['default'];\n if (typeof opts.format !== 'undefined') {\n if (!has.call(formats.formatters, opts.format)) {\n throw new TypeError('Unknown format option provided.');\n }\n format = opts.format;\n }\n var formatter = formats.formatters[format];\n\n var filter = defaults.filter;\n if (typeof opts.filter === 'function' || isArray(opts.filter)) {\n filter = opts.filter;\n }\n\n var arrayFormat;\n if (opts.arrayFormat in arrayPrefixGenerators) {\n arrayFormat = opts.arrayFormat;\n } else if ('indices' in opts) {\n arrayFormat = opts.indices ? 'indices' : 'repeat';\n } else {\n arrayFormat = defaults.arrayFormat;\n }\n\n if ('commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {\n throw new TypeError('`commaRoundTrip` must be a boolean, or absent');\n }\n\n var allowDots = typeof opts.allowDots === 'undefined' ? opts.encodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;\n\n return {\n addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,\n allowDots: allowDots,\n allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,\n arrayFormat: arrayFormat,\n charset: charset,\n charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,\n commaRoundTrip: !!opts.commaRoundTrip,\n delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,\n encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,\n encodeDotInKeys: typeof opts.encodeDotInKeys === 'boolean' ? opts.encodeDotInKeys : defaults.encodeDotInKeys,\n encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,\n encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,\n filter: filter,\n format: format,\n formatter: formatter,\n serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,\n skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,\n sort: typeof opts.sort === 'function' ? opts.sort : null,\n strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling\n };\n};\n\nmodule.exports = function (object, opts) {\n var obj = object;\n var options = normalizeStringifyOptions(opts);\n\n var objKeys;\n var filter;\n\n if (typeof options.filter === 'function') {\n filter = options.filter;\n obj = filter('', obj);\n } else if (isArray(options.filter)) {\n filter = options.filter;\n objKeys = filter;\n }\n\n var keys = [];\n\n if (typeof obj !== 'object' || obj === null) {\n return '';\n }\n\n var generateArrayPrefix = arrayPrefixGenerators[options.arrayFormat];\n var commaRoundTrip = generateArrayPrefix === 'comma' && options.commaRoundTrip;\n\n if (!objKeys) {\n objKeys = Object.keys(obj);\n }\n\n if (options.sort) {\n objKeys.sort(options.sort);\n }\n\n var sideChannel = getSideChannel();\n for (var i = 0; i < objKeys.length; ++i) {\n var key = objKeys[i];\n var value = obj[key];\n\n if (options.skipNulls && value === null) {\n continue;\n }\n pushToArray(keys, stringify(\n value,\n key,\n generateArrayPrefix,\n commaRoundTrip,\n options.allowEmptyArrays,\n options.strictNullHandling,\n options.skipNulls,\n options.encodeDotInKeys,\n options.encode ? options.encoder : null,\n options.filter,\n options.sort,\n options.allowDots,\n options.serializeDate,\n options.format,\n options.formatter,\n options.encodeValuesOnly,\n options.charset,\n sideChannel\n ));\n }\n\n var joined = keys.join(options.delimiter);\n var prefix = options.addQueryPrefix === true ? '?' : '';\n\n if (options.charsetSentinel) {\n if (options.charset === 'iso-8859-1') {\n // encodeURIComponent('✓'), the \"numeric entity\" representation of a checkmark\n prefix += 'utf8=%26%2310003%3B&';\n } else {\n // encodeURIComponent('\u2713')\n prefix += 'utf8=%E2%9C%93&';\n }\n }\n\n return joined.length > 0 ? prefix + joined : '';\n};\n", "'use strict';\n\nvar utils = require('./utils');\n\nvar has = Object.prototype.hasOwnProperty;\nvar isArray = Array.isArray;\n\nvar defaults = {\n allowDots: false,\n allowEmptyArrays: false,\n allowPrototypes: false,\n allowSparse: false,\n arrayLimit: 20,\n charset: 'utf-8',\n charsetSentinel: false,\n comma: false,\n decodeDotInKeys: false,\n decoder: utils.decode,\n delimiter: '&',\n depth: 5,\n duplicates: 'combine',\n ignoreQueryPrefix: false,\n interpretNumericEntities: false,\n parameterLimit: 1000,\n parseArrays: true,\n plainObjects: false,\n strictDepth: false,\n strictNullHandling: false\n};\n\nvar interpretNumericEntities = function (str) {\n return str.replace(/&#(\\d+);/g, function ($0, numberStr) {\n return String.fromCharCode(parseInt(numberStr, 10));\n });\n};\n\nvar parseArrayValue = function (val, options) {\n if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {\n return val.split(',');\n }\n\n return val;\n};\n\n// This is what browsers will submit when the \u2713 character occurs in an\n// application/x-www-form-urlencoded body and the encoding of the page containing\n// the form is iso-8859-1, or when the submitted form has an accept-charset\n// attribute of iso-8859-1. Presumably also with other charsets that do not contain\n// the \u2713 character, such as us-ascii.\nvar isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓')\n\n// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.\nvar charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('\u2713')\n\nvar parseValues = function parseQueryStringValues(str, options) {\n var obj = { __proto__: null };\n\n var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\\?/, '') : str;\n cleanStr = cleanStr.replace(/%5B/gi, '[').replace(/%5D/gi, ']');\n var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;\n var parts = cleanStr.split(options.delimiter, limit);\n var skipIndex = -1; // Keep track of where the utf8 sentinel was found\n var i;\n\n var charset = options.charset;\n if (options.charsetSentinel) {\n for (i = 0; i < parts.length; ++i) {\n if (parts[i].indexOf('utf8=') === 0) {\n if (parts[i] === charsetSentinel) {\n charset = 'utf-8';\n } else if (parts[i] === isoSentinel) {\n charset = 'iso-8859-1';\n }\n skipIndex = i;\n i = parts.length; // The eslint settings do not allow break;\n }\n }\n }\n\n for (i = 0; i < parts.length; ++i) {\n if (i === skipIndex) {\n continue;\n }\n var part = parts[i];\n\n var bracketEqualsPos = part.indexOf(']=');\n var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;\n\n var key;\n var val;\n if (pos === -1) {\n key = options.decoder(part, defaults.decoder, charset, 'key');\n val = options.strictNullHandling ? null : '';\n } else {\n key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');\n val = utils.maybeMap(\n parseArrayValue(part.slice(pos + 1), options),\n function (encodedVal) {\n return options.decoder(encodedVal, defaults.decoder, charset, 'value');\n }\n );\n }\n\n if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {\n val = interpretNumericEntities(String(val));\n }\n\n if (part.indexOf('[]=') > -1) {\n val = isArray(val) ? [val] : val;\n }\n\n var existing = has.call(obj, key);\n if (existing && options.duplicates === 'combine') {\n obj[key] = utils.combine(obj[key], val);\n } else if (!existing || options.duplicates === 'last') {\n obj[key] = val;\n }\n }\n\n return obj;\n};\n\nvar parseObject = function (chain, val, options, valuesParsed) {\n var leaf = valuesParsed ? val : parseArrayValue(val, options);\n\n for (var i = chain.length - 1; i >= 0; --i) {\n var obj;\n var root = chain[i];\n\n if (root === '[]' && options.parseArrays) {\n obj = options.allowEmptyArrays && (leaf === '' || (options.strictNullHandling && leaf === null))\n ? []\n : [].concat(leaf);\n } else {\n obj = options.plainObjects ? { __proto__: null } : {};\n var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;\n var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot;\n var index = parseInt(decodedRoot, 10);\n if (!options.parseArrays && decodedRoot === '') {\n obj = { 0: leaf };\n } else if (\n !isNaN(index)\n && root !== decodedRoot\n && String(index) === decodedRoot\n && index >= 0\n && (options.parseArrays && index <= options.arrayLimit)\n ) {\n obj = [];\n obj[index] = leaf;\n } else if (decodedRoot !== '__proto__') {\n obj[decodedRoot] = leaf;\n }\n }\n\n leaf = obj;\n }\n\n return leaf;\n};\n\nvar parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {\n if (!givenKey) {\n return;\n }\n\n // Transform dot notation to bracket notation\n var key = options.allowDots ? givenKey.replace(/\\.([^.[]+)/g, '[$1]') : givenKey;\n\n // The regex chunks\n\n var brackets = /(\\[[^[\\]]*])/;\n var child = /(\\[[^[\\]]*])/g;\n\n // Get the parent\n\n var segment = options.depth > 0 && brackets.exec(key);\n var parent = segment ? key.slice(0, segment.index) : key;\n\n // Stash the parent if it exists\n\n var keys = [];\n if (parent) {\n // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties\n if (!options.plainObjects && has.call(Object.prototype, parent)) {\n if (!options.allowPrototypes) {\n return;\n }\n }\n\n keys.push(parent);\n }\n\n // Loop through children appending to the array until we hit depth\n\n var i = 0;\n while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {\n i += 1;\n if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {\n if (!options.allowPrototypes) {\n return;\n }\n }\n keys.push(segment[1]);\n }\n\n // If there's a remainder, check strictDepth option for throw, else just add whatever is left\n\n if (segment) {\n if (options.strictDepth === true) {\n throw new RangeError('Input depth exceeded depth option of ' + options.depth + ' and strictDepth is true');\n }\n keys.push('[' + key.slice(segment.index) + ']');\n }\n\n return parseObject(keys, val, options, valuesParsed);\n};\n\nvar normalizeParseOptions = function normalizeParseOptions(opts) {\n if (!opts) {\n return defaults;\n }\n\n if (typeof opts.allowEmptyArrays !== 'undefined' && typeof opts.allowEmptyArrays !== 'boolean') {\n throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided');\n }\n\n if (typeof opts.decodeDotInKeys !== 'undefined' && typeof opts.decodeDotInKeys !== 'boolean') {\n throw new TypeError('`decodeDotInKeys` option can only be `true` or `false`, when provided');\n }\n\n if (opts.decoder !== null && typeof opts.decoder !== 'undefined' && typeof opts.decoder !== 'function') {\n throw new TypeError('Decoder has to be a function.');\n }\n\n if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {\n throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');\n }\n var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;\n\n var duplicates = typeof opts.duplicates === 'undefined' ? defaults.duplicates : opts.duplicates;\n\n if (duplicates !== 'combine' && duplicates !== 'first' && duplicates !== 'last') {\n throw new TypeError('The duplicates option must be either combine, first, or last');\n }\n\n var allowDots = typeof opts.allowDots === 'undefined' ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;\n\n return {\n allowDots: allowDots,\n allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,\n allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,\n allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,\n arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,\n charset: charset,\n charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,\n comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,\n decodeDotInKeys: typeof opts.decodeDotInKeys === 'boolean' ? opts.decodeDotInKeys : defaults.decodeDotInKeys,\n decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,\n delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,\n // eslint-disable-next-line no-implicit-coercion, no-extra-parens\n depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,\n duplicates: duplicates,\n ignoreQueryPrefix: opts.ignoreQueryPrefix === true,\n interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,\n parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,\n parseArrays: opts.parseArrays !== false,\n plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,\n strictDepth: typeof opts.strictDepth === 'boolean' ? !!opts.strictDepth : defaults.strictDepth,\n strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling\n };\n};\n\nmodule.exports = function (str, opts) {\n var options = normalizeParseOptions(opts);\n\n if (str === '' || str === null || typeof str === 'undefined') {\n return options.plainObjects ? { __proto__: null } : {};\n }\n\n var tempObj = typeof str === 'string' ? parseValues(str, options) : str;\n var obj = options.plainObjects ? { __proto__: null } : {};\n\n // Iterate over the keys and setup the new object\n\n var keys = Object.keys(tempObj);\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');\n obj = utils.merge(obj, newObj, options);\n }\n\n if (options.allowSparse === true) {\n return obj;\n }\n\n return utils.compact(obj);\n};\n", "'use strict';\n\nvar stringify = require('./stringify');\nvar parse = require('./parse');\nvar formats = require('./formats');\n\nmodule.exports = {\n formats: formats,\n parse: parse,\n stringify: stringify\n};\n", "function _interopRequireDefault(e) {\n return e && e.__esModule ? e : {\n \"default\": e\n };\n}\nmodule.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return module.exports = _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports, _typeof(o);\n}\nmodule.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var _typeof = require(\"./typeof.js\")[\"default\"];\nfunction toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\nmodule.exports = toPrimitive, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var _typeof = require(\"./typeof.js\")[\"default\"];\nvar toPrimitive = require(\"./toPrimitive.js\");\nfunction toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}\nmodule.exports = toPropertyKey, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var toPropertyKey = require(\"./toPropertyKey.js\");\nfunction _defineProperty(e, r, t) {\n return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {\n value: t,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : e[r] = t, e;\n}\nmodule.exports = _defineProperty, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var defineProperty = require(\"./defineProperty.js\");\nfunction ownKeys(e, r) {\n var t = Object.keys(e);\n if (Object.getOwnPropertySymbols) {\n var o = Object.getOwnPropertySymbols(e);\n r && (o = o.filter(function (r) {\n return Object.getOwnPropertyDescriptor(e, r).enumerable;\n })), t.push.apply(t, o);\n }\n return t;\n}\nfunction _objectSpread2(e) {\n for (var r = 1; r < arguments.length; r++) {\n var t = null != arguments[r] ? arguments[r] : {};\n r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {\n defineProperty(e, r, t[r]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {\n Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));\n });\n }\n return e;\n}\nmodule.exports = _objectSpread2, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "function _objectWithoutPropertiesLoose(r, e) {\n if (null == r) return {};\n var t = {};\n for (var n in r) if ({}.hasOwnProperty.call(r, n)) {\n if (e.includes(n)) continue;\n t[n] = r[n];\n }\n return t;\n}\nmodule.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var objectWithoutPropertiesLoose = require(\"./objectWithoutPropertiesLoose.js\");\nfunction _objectWithoutProperties(e, t) {\n if (null == e) return {};\n var o,\n r,\n i = objectWithoutPropertiesLoose(e, t);\n if (Object.getOwnPropertySymbols) {\n var s = Object.getOwnPropertySymbols(e);\n for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);\n }\n return i;\n}\nmodule.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "function _classCallCheck(a, n) {\n if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\");\n}\nmodule.exports = _classCallCheck, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var toPropertyKey = require(\"./toPropertyKey.js\");\nfunction _defineProperties(e, r) {\n for (var t = 0; t < r.length; t++) {\n var o = r[t];\n o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);\n }\n}\nfunction _createClass(e, r, t) {\n return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", {\n writable: !1\n }), e;\n}\nmodule.exports = _createClass, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "function _getPrototypeOf(t) {\n return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {\n return t.__proto__ || Object.getPrototypeOf(t);\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports, _getPrototypeOf(t);\n}\nmodule.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "function _isNativeReflectConstruct() {\n try {\n var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n } catch (t) {}\n return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() {\n return !!t;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports)();\n}\nmodule.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "function _assertThisInitialized(e) {\n if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return e;\n}\nmodule.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var _typeof = require(\"./typeof.js\")[\"default\"];\nvar assertThisInitialized = require(\"./assertThisInitialized.js\");\nfunction _possibleConstructorReturn(t, e) {\n if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e;\n if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\");\n return assertThisInitialized(t);\n}\nmodule.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var getPrototypeOf = require(\"./getPrototypeOf.js\");\nvar isNativeReflectConstruct = require(\"./isNativeReflectConstruct.js\");\nvar possibleConstructorReturn = require(\"./possibleConstructorReturn.js\");\nfunction _callSuper(t, o, e) {\n return o = getPrototypeOf(o), possibleConstructorReturn(t, isNativeReflectConstruct() ? Reflect.construct(o, e || [], getPrototypeOf(t).constructor) : o.apply(t, e));\n}\nmodule.exports = _callSuper, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "function _setPrototypeOf(t, e) {\n return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {\n return t.__proto__ = e, t;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports, _setPrototypeOf(t, e);\n}\nmodule.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var setPrototypeOf = require(\"./setPrototypeOf.js\");\nfunction _inherits(t, e) {\n if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\");\n t.prototype = Object.create(e && e.prototype, {\n constructor: {\n value: t,\n writable: !0,\n configurable: !0\n }\n }), Object.defineProperty(t, \"prototype\", {\n writable: !1\n }), e && setPrototypeOf(t, e);\n}\nmodule.exports = _inherits, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "function e(r){var o,t,f=\"\";if(\"string\"==typeof r||\"number\"==typeof r)f+=r;else if(\"object\"==typeof r)if(Array.isArray(r))for(o=0;o 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n args[_key - 2] = arguments[_key];\n }\n return _propTypes.default.elementType.apply(_propTypes.default, [prop, key].concat(args));\n }\n})]);\nvar DayLayoutAlgorithmPropType = exports.DayLayoutAlgorithmPropType = _propTypes.default.oneOfType([_propTypes.default.oneOf(['overlap', 'no-overlap']), _propTypes.default.func]);", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.accessor = accessor;\nexports.wrapAccessor = void 0;\nvar _typeof2 = _interopRequireDefault(require(\"@babel/runtime/helpers/typeof\"));\n/**\n * Retrieve via an accessor-like property\n *\n * accessor(obj, 'name') // => retrieves obj['name']\n * accessor(data, func) // => retrieves func(data)\n * ... otherwise null\n */\nfunction accessor(data, field) {\n var value = null;\n if (typeof field === 'function') value = field(data);else if (typeof field === 'string' && (0, _typeof2.default)(data) === 'object' && data != null && field in data) value = data[field];\n return value;\n}\nvar wrapAccessor = exports.wrapAccessor = function wrapAccessor(acc) {\n return function (data) {\n return accessor(data, acc);\n };\n};", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.DnDContext = void 0;\nvar _react = _interopRequireDefault(require(\"react\"));\nvar DnDContext = exports.DnDContext = /*#__PURE__*/_react.default.createContext();", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\").default;\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _objectSpread2 = _interopRequireDefault(require(\"@babel/runtime/helpers/objectSpread2\"));\nvar _classCallCheck2 = _interopRequireDefault(require(\"@babel/runtime/helpers/classCallCheck\"));\nvar _createClass2 = _interopRequireDefault(require(\"@babel/runtime/helpers/createClass\"));\nvar _callSuper2 = _interopRequireDefault(require(\"@babel/runtime/helpers/callSuper\"));\nvar _inherits2 = _interopRequireDefault(require(\"@babel/runtime/helpers/inherits\"));\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _clsx = _interopRequireDefault(require(\"clsx\"));\nvar _accessors = require(\"../../utils/accessors\");\nvar _DnDContext = require(\"./DnDContext\");\nvar EventWrapper = /*#__PURE__*/function (_React$Component) {\n function EventWrapper() {\n var _this;\n (0, _classCallCheck2.default)(this, EventWrapper);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = (0, _callSuper2.default)(this, EventWrapper, [].concat(args));\n _this.handleResizeUp = function (e) {\n if (e.button !== 0) return;\n _this.context.draggable.onBeginAction(_this.props.event, 'resize', 'UP');\n };\n _this.handleResizeDown = function (e) {\n if (e.button !== 0) return;\n _this.context.draggable.onBeginAction(_this.props.event, 'resize', 'DOWN');\n };\n _this.handleResizeLeft = function (e) {\n if (e.button !== 0) return;\n _this.context.draggable.onBeginAction(_this.props.event, 'resize', 'LEFT');\n };\n _this.handleResizeRight = function (e) {\n if (e.button !== 0) return;\n _this.context.draggable.onBeginAction(_this.props.event, 'resize', 'RIGHT');\n };\n _this.handleStartDragging = function (e) {\n var _e$target$getAttribut;\n if (e.button !== 0) return;\n // hack: because of the way the anchors are arranged in the DOM, resize\n // anchor events will bubble up to the move anchor listener. Don't start\n // move operations when we're on a resize anchor.\n var isResizeHandle = (_e$target$getAttribut = e.target.getAttribute('class')) === null || _e$target$getAttribut === void 0 ? void 0 : _e$target$getAttribut.includes('rbc-addons-dnd-resize');\n if (!isResizeHandle) {\n var extendedEvent = (0, _objectSpread2.default)({}, _this.props.event);\n extendedEvent.sourceResource = _this.props.resource;\n _this.context.draggable.onBeginAction(_this.props.event, 'move');\n }\n };\n return _this;\n }\n (0, _inherits2.default)(EventWrapper, _React$Component);\n return (0, _createClass2.default)(EventWrapper, [{\n key: \"renderAnchor\",\n value: function renderAnchor(direction) {\n var cls = direction === 'Up' || direction === 'Down' ? 'ns' : 'ew';\n return /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"rbc-addons-dnd-resize-\".concat(cls, \"-anchor\"),\n onMouseDown: this[\"handleResize\".concat(direction)]\n }, /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"rbc-addons-dnd-resize-\".concat(cls, \"-icon\")\n }));\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this$props = this.props,\n event = _this$props.event,\n type = _this$props.type,\n continuesPrior = _this$props.continuesPrior,\n continuesAfter = _this$props.continuesAfter,\n resizable = _this$props.resizable;\n var children = this.props.children;\n if (event.__isPreview) return /*#__PURE__*/_react.default.cloneElement(children, {\n className: (0, _clsx.default)(children.props.className, 'rbc-addons-dnd-drag-preview')\n });\n var draggable = this.context.draggable;\n var draggableAccessor = draggable.draggableAccessor,\n resizableAccessor = draggable.resizableAccessor;\n var isDraggable = draggableAccessor ? !!(0, _accessors.accessor)(event, draggableAccessor) : true;\n\n /* Event is not draggable, no need to wrap it */\n if (!isDraggable) {\n return children;\n }\n\n /*\n * The resizability of events depends on whether they are\n * allDay events and how they are displayed.\n *\n * 1. If the event is being shown in an event row (because\n * it is an allDay event shown in the header row or because as\n * in month view the view is showing all events as rows) then we\n * allow east-west resizing.\n *\n * 2. Otherwise the event is being displayed\n * normally, we can drag it north-south to resize the times.\n *\n * See `DropWrappers` for handling of the drop of such events.\n *\n * Notwithstanding the above, we never show drag anchors for\n * events which continue beyond current component. This happens\n * in the middle of events when showMultiDay is true, and to\n * events at the edges of the calendar's min/max location.\n */\n var isResizable = resizable && (resizableAccessor ? !!(0, _accessors.accessor)(event, resizableAccessor) : true);\n if (isResizable || isDraggable) {\n /*\n * props.children is the singular component.\n * BigCalendar positions the Event abolutely and we\n * need the anchors to be part of that positioning.\n * So we insert the anchors inside the Event's children\n * rather than wrap the Event here as the latter approach\n * would lose the positioning.\n */\n var newProps = {\n onMouseDown: this.handleStartDragging,\n onTouchStart: this.handleStartDragging\n };\n if (isResizable) {\n // replace original event child with anchor-embellished child\n var StartAnchor = null;\n var EndAnchor = null;\n if (type === 'date') {\n StartAnchor = !continuesPrior && this.renderAnchor('Left');\n EndAnchor = !continuesAfter && this.renderAnchor('Right');\n } else {\n StartAnchor = !continuesPrior && this.renderAnchor('Up');\n EndAnchor = !continuesAfter && this.renderAnchor('Down');\n }\n newProps.children = /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"rbc-addons-dnd-resizable\"\n }, StartAnchor, children.props.children, EndAnchor);\n }\n if (draggable.dragAndDropAction.interacting &&\n // if an event is being dragged right now\n draggable.dragAndDropAction.event === event // and it's the current event\n ) {\n // add a new class to it\n newProps.className = (0, _clsx.default)(children.props.className, 'rbc-addons-dnd-dragged-event');\n }\n children = /*#__PURE__*/_react.default.cloneElement(children, newProps);\n }\n return children;\n }\n }]);\n}(_react.default.Component);\nEventWrapper.contextType = _DnDContext.DnDContext;\nvar _default = exports.default = EventWrapper;", "var _typeof = require(\"./typeof.js\")[\"default\"];\nfunction _getRequireWildcardCache(e) {\n if (\"function\" != typeof WeakMap) return null;\n var r = new WeakMap(),\n t = new WeakMap();\n return (_getRequireWildcardCache = function _getRequireWildcardCache(e) {\n return e ? t : r;\n })(e);\n}\nfunction _interopRequireWildcard(e, r) {\n if (!r && e && e.__esModule) return e;\n if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return {\n \"default\": e\n };\n var t = _getRequireWildcardCache(r);\n if (t && t.has(e)) return t.get(e);\n var n = {\n __proto__: null\n },\n a = Object.defineProperty && Object.getOwnPropertyDescriptor;\n for (var u in e) if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) {\n var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;\n i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];\n }\n return n[\"default\"] = e, t && t.set(e, n), n;\n}\nmodule.exports = _interopRequireWildcard, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "\"use strict\";\n\nexports.__esModule = true;\nexports.default = ownerDocument;\n\n/**\n * Returns the owner document of a given element.\n * \n * @param node the element\n */\nfunction ownerDocument(node) {\n return node && node.ownerDocument || document;\n}\n\nmodule.exports = exports[\"default\"];", "\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nexports.__esModule = true;\nexports.default = activeElement;\n\nvar _ownerDocument = _interopRequireDefault(require(\"./ownerDocument\"));\n\n/**\n * Returns the actively focused element safely.\n *\n * @param doc the document to check\n */\nfunction activeElement(doc) {\n if (doc === void 0) {\n doc = (0, _ownerDocument.default)();\n }\n\n // Support: IE 9 only\n // IE9 throws an \"Unspecified error\" accessing document.activeElement from an