{"version":3,"file":"default.ttp.esm.js","sources":["../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@rollup+plugin-typescript@11.1.6_rollup@2.79.1_tslib@2.4.0_typescript@4.7.4/node_modules/tslib/tslib.es6.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@lit+reactive-element@1.4.1/node_modules/@lit/reactive-element/css-tag.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@lit+reactive-element@1.4.1/node_modules/@lit/reactive-element/reactive-element.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lit-html@2.3.1/node_modules/lit-html/lit-html.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lit-element@3.2.2/node_modules/lit-element/lit-element.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lit-html@2.3.1/node_modules/lit-html/directive.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lit-html@2.3.1/node_modules/lit-html/directives/class-map.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@lit+reactive-element@1.4.1/node_modules/@lit/reactive-element/decorators/custom-element.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@lit+reactive-element@1.4.1/node_modules/@lit/reactive-element/decorators/property.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@lit+reactive-element@1.4.1/node_modules/@lit/reactive-element/decorators/state.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@lit+reactive-element@1.4.1/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js","../../src/src/utils/constant.ts","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/js-cookie@3.0.1/node_modules/js-cookie/dist/js.cookie.mjs","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@dp+byted-tea-sdk-oversea@5.3.0/node_modules/@dp/byted-tea-sdk-oversea/es/index.min.js","../../src/src/utils/object.ts","../../src/src/utils/tea/tea.ts","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackClear.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isMasked.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_coreJsData.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toSource.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsNative.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getValue.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeCreate.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashClear.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashDelete.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashGet.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashHas.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashSet.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Hash.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKeyable.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMapData.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheGet.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheHas.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheSet.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_MapCache.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackSet.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Stack.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_defineProperty.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssignValue.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignMergeValue.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createBaseFor.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFor.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneBuffer.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Uint8Array.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneArrayBuffer.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneTypedArray.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyArray.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseCreate.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overArg.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getPrototype.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isPrototype.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_initCloneObject.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsArguments.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArguments.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isLength.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubFalse.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isBuffer.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isPlainObject.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsTypedArray.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nodeUtil.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isTypedArray.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_safeGet.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assignValue.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copyObject.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTimes.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIndex.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeKeysIn.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseKeysIn.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keysIn.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toPlainObject.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMergeDeep.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseMerge.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_apply.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_overRest.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/constant.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSetToString.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_shortOut.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setToString.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIterateeCall.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createAssigner.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/axios@0.27.2/node_modules/axios/lib/utils.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/merge.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/axios@0.27.2/node_modules/axios/lib/helpers/bind.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/axios@0.27.2/node_modules/axios/lib/helpers/buildURL.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/axios@0.27.2/node_modules/axios/lib/core/InterceptorManager.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/axios@0.27.2/node_modules/axios/lib/helpers/normalizeHeaderName.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/axios@0.27.2/node_modules/axios/lib/core/AxiosError.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/axios@0.27.2/node_modules/axios/lib/defaults/transitional.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/axios@0.27.2/node_modules/axios/lib/helpers/toFormData.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/axios@0.27.2/node_modules/axios/lib/helpers/cookies.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/axios@0.27.2/node_modules/axios/lib/core/buildFullPath.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/axios@0.27.2/node_modules/axios/lib/helpers/isAbsoluteURL.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/axios@0.27.2/node_modules/axios/lib/helpers/combineURLs.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/axios@0.27.2/node_modules/axios/lib/helpers/parseHeaders.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/axios@0.27.2/node_modules/axios/lib/helpers/isURLSameOrigin.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/axios@0.27.2/node_modules/axios/lib/cancel/CanceledError.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/axios@0.27.2/node_modules/axios/lib/adapters/xhr.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/axios@0.27.2/node_modules/axios/lib/core/settle.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/axios@0.27.2/node_modules/axios/lib/helpers/parseProtocol.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/axios@0.27.2/node_modules/axios/lib/defaults/index.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/axios@0.27.2/node_modules/axios/lib/helpers/null.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/axios@0.27.2/node_modules/axios/lib/core/transformData.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/axios@0.27.2/node_modules/axios/lib/cancel/isCancel.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/axios@0.27.2/node_modules/axios/lib/core/dispatchRequest.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/axios@0.27.2/node_modules/axios/lib/core/mergeConfig.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/axios@0.27.2/node_modules/axios/lib/env/data.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/axios@0.27.2/node_modules/axios/lib/helpers/validator.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/axios@0.27.2/node_modules/axios/lib/core/Axios.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/axios@0.27.2/node_modules/axios/lib/cancel/CancelToken.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/axios@0.27.2/node_modules/axios/lib/axios.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/axios@0.27.2/node_modules/axios/lib/helpers/spread.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/axios@0.27.2/node_modules/axios/lib/helpers/isAxiosError.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/axios@0.27.2/node_modules/axios/index.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/ua-parser-js@1.0.38/node_modules/ua-parser-js/src/ua-parser.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@pns-fe+consent-client-framework-sdk@1.1.0/node_modules/@pns-fe/consent-client-framework-sdk/dist/es/utils/DeviceUtil.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@pns-fe+monitor@1.0.7/node_modules/@pns-fe/monitor/dist/es/types.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@pns-fe+consent-client-framework-sdk@1.1.0/node_modules/@pns-fe/consent-client-framework-sdk/dist/es/constants/env.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@pns-fe+consent-client-framework-sdk@1.1.0/node_modules/@pns-fe/consent-client-framework-sdk/dist/es/modules/logging-module/BaseLoggingModule.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@pns-fe+consent-client-framework-sdk@1.1.0/node_modules/@pns-fe/consent-client-framework-sdk/dist/es/constants/sdk.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@pns-fe+monitor@1.0.7/node_modules/@pns-fe/monitor/dist/es/time.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@pns-fe+monitor@1.0.7/node_modules/@pns-fe/monitor/dist/es/TrackingModule.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@pns-fe+consent-client-framework-sdk@1.1.0/node_modules/@pns-fe/consent-client-framework-sdk/dist/es/constants/cujEvents.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@slardar+web@1.14.0/node_modules/@slardar/web/euttp/index.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@slardar+web@1.14.0/node_modules/@slardar/web/maliva/index.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@slardar+web@1.14.0/node_modules/@slardar/web/oci/index.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@slardar+web@1.14.0/node_modules/@slardar/web/sg/index.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@pns-fe+consent-client-framework-sdk@1.1.0/node_modules/@pns-fe/consent-client-framework-sdk/dist/es/utils/SlardarUtil.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@dp+byted-tea-sdk-oversea@5.3.2/node_modules/@dp/byted-tea-sdk-oversea/es/index.min.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@pns-fe+consent-client-framework-sdk@1.1.0/node_modules/@pns-fe/consent-client-framework-sdk/dist/es/utils/TeaUtil.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@pns-fe+consent-client-framework-sdk@1.1.0/node_modules/@pns-fe/consent-client-framework-sdk/dist/es/modules/monitor-module/MonitorModule.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@pns-fe+consent-client-framework-sdk@1.1.0/node_modules/@pns-fe/consent-client-framework-sdk/dist/es/modules/logging-module/LoggingModule.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@pns-fe+consent-client-framework-sdk@1.1.0/node_modules/@pns-fe/consent-client-framework-sdk/dist/es/modules/logging-module/index.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@pns-fe+consent-client-framework-sdk@1.1.0/node_modules/@pns-fe/consent-client-framework-sdk/dist/es/modules/service-module/ServiceModule.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@pns-fe+consent-client-framework-sdk@1.1.0/node_modules/@pns-fe/consent-client-framework-sdk/dist/es/utils/JsUtils.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@pns-fe+consent-client-framework-sdk@1.1.0/node_modules/@pns-fe/consent-client-framework-sdk/dist/es/modules/service-module/index.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayEach.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeKeys.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseKeys.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssign.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseAssignIn.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayFilter.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/stubArray.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getSymbols.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copySymbols.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayPush.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getSymbolsIn.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_copySymbolsIn.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetAllKeys.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getAllKeys.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getAllKeysIn.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_DataView.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Promise.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Set.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_WeakMap.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getTag.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_initCloneArray.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneDataView.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneRegExp.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cloneSymbol.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_initCloneByTag.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsMap.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isMap.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsSet.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSet.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseClone.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/cloneDeep.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_customDefaultsMerge.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@pns-fe+consent-client-framework-sdk@1.1.0/node_modules/@pns-fe/consent-client-framework-sdk/dist/es/plugins/DefaultEventPlugin.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/mergeWith.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaultsDeep.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@pns-fe+consent-client-framework-sdk@1.1.0/node_modules/@pns-fe/consent-client-framework-sdk/dist/es/modules/storage-module/storage/BaseStorageWrapper.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@pns-fe+consent-client-framework-sdk@1.1.0/node_modules/@pns-fe/consent-client-framework-sdk/dist/es/modules/storage-module/storage/InMemStorageWrapper.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/core.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/x64-core.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/lib-typedarrays.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/enc-utf16.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/enc-base64.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/enc-base64url.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/md5.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/sha1.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/sha256.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/sha224.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/sha512.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/sha384.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/sha3.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/ripemd160.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/hmac.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/pbkdf2.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/evpkdf.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/cipher-core.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/mode-cfb.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/mode-ctr.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/mode-ctr-gladman.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/mode-ofb.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/mode-ecb.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/pad-ansix923.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/pad-iso10126.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/pad-iso97971.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/pad-zeropadding.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/pad-nopadding.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/format-hex.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/aes.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/tripledes.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/rc4.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/rabbit.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/rabbit-legacy.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/index.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@pns-fe+consent-client-framework-sdk@1.1.0/node_modules/@pns-fe/consent-client-framework-sdk/dist/es/modules/storage-module/storage/WebStorageWrapper.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@pns-fe+consent-client-framework-sdk@1.1.0/node_modules/@pns-fe/consent-client-framework-sdk/dist/es/modules/storage-module/StorageModule.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@pns-fe+consent-client-framework-sdk@1.1.0/node_modules/@pns-fe/consent-client-framework-sdk/dist/es/modules/info-module/BaseInfoModule.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@pns-fe+consent-client-framework-sdk@1.1.0/node_modules/@pns-fe/consent-client-framework-sdk/dist/es/plugins/BasePlugin.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSlice.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTrim.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toNumber.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toFinite.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toInteger.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/chunk.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@pns-fe+consent-client-framework-sdk@1.1.0/node_modules/@pns-fe/consent-client-framework-sdk/dist/es/modules/consent-module/ConsentModule.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@pns-fe+consent-client-framework-sdk@1.1.0/node_modules/@pns-fe/consent-client-framework-sdk/dist/es/modules/consent-module/index.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@pns-fe+consent-client-framework-sdk@1.1.0/node_modules/@pns-fe/consent-client-framework-sdk/dist/es/modules/notification-module/BaseNotificationModule.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@pns-fe+consent-client-framework-sdk@1.1.0/node_modules/@pns-fe/consent-client-framework-sdk/dist/es/modules/life-cycle-module/LifeCycleModule.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@pns-fe+consent-client-framework-sdk@1.1.0/node_modules/@pns-fe/consent-client-framework-sdk/dist/es/modules/life-cycle-module/index.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@pns-fe+consent-client-framework-sdk@1.1.0/node_modules/@pns-fe/consent-client-framework-sdk/dist/es/sdk.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/@pns-fe+consent-client-framework-sdk@1.1.0/node_modules/@pns-fe/consent-client-framework-sdk/dist/es/index.js","../../src/src/utils/consent.ts","../../src/src/utils/cookie-consent-manager.ts","../../src/src/utils/config.ts","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lit-html@2.3.1/node_modules/lit-html/directive-helpers.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lit-html@2.3.1/node_modules/lit-html/async-directive.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lit-html@2.3.1/node_modules/lit-html/directives/ref.js","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/rollup-plugin-styles@4.0.0_rollup@2.79.1/node_modules/rollup-plugin-styles/dist/runtime/inject-css.js","../../src/src/components/toast.ts","../../src/src/utils/ui.ts","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lit-html@2.3.1/node_modules/lit-html/directives/style-map.js","../../src/src/components/switch.ts","../../src/src/components/setting-modal.ts","../../../../../common/temp/split__byted_tiktok_cookie_banner/node_modules/.pnpm/lit-html@2.3.1/node_modules/lit-html/directives/if-defined.js","../../src/src/utils/consent-mode.ts","../../src/src/components/cookie-banner.ts"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n","/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t=window,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&\"adoptedStyleSheets\"in Document.prototype&&\"replace\"in CSSStyleSheet.prototype,s=Symbol(),n=new WeakMap;class o{constructor(t,e,n){if(this._$cssResult$=!0,n!==s)throw Error(\"CSSResult is not constructable. Use `unsafeCSS` or `css` instead.\");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=n.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&n.set(s,t))}return t}toString(){return this.cssText}}const r=t=>new o(\"string\"==typeof t?t:t+\"\",void 0,s),i=(t,...e)=>{const n=1===t.length?t[0]:e.reduce(((e,s,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if(\"number\"==typeof t)return t;throw Error(\"Value passed to 'css' function must be a 'css' function result: \"+t+\". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.\")})(s)+t[n+1]),t[0]);return new o(n,t,s)},S=(s,n)=>{e?s.adoptedStyleSheets=n.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):n.forEach((e=>{const n=document.createElement(\"style\"),o=t.litNonce;void 0!==o&&n.setAttribute(\"nonce\",o),n.textContent=e.cssText,s.appendChild(n)}))},c=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e=\"\";for(const s of t.cssRules)e+=s.cssText;return r(e)})(t):t;export{o as CSSResult,S as adoptStyles,i as css,c as getCompatibleStyle,e as supportsAdoptingStyleSheets,r as unsafeCSS};\n//# sourceMappingURL=css-tag.js.map\n","import{getCompatibleStyle as t,adoptStyles as i}from\"./css-tag.js\";export{CSSResult,adoptStyles,css,getCompatibleStyle,supportsAdoptingStyleSheets,unsafeCSS}from\"./css-tag.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */var s;const e=window,r=e.trustedTypes,h=r?r.emptyScript:\"\",o=e.reactiveElementPolyfillSupport,n={toAttribute(t,i){switch(i){case Boolean:t=t?h:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,i){let s=t;switch(i){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},a=(t,i)=>i!==t&&(i==i||t==t),l={attribute:!0,type:String,converter:n,reflect:!1,hasChanged:a};class d extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var i;null!==(i=this.h)&&void 0!==i||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,s)=>{const e=this._$Ep(s,i);void 0!==e&&(this._$Ev.set(e,s),t.push(e))})),t}static createProperty(t,i=l){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const s=\"symbol\"==typeof t?Symbol():\"__\"+t,e=this.getPropertyDescriptor(t,s,i);void 0!==e&&Object.defineProperty(this.prototype,t,e)}}static getPropertyDescriptor(t,i,s){return{get(){return this[i]},set(e){const r=this[t];this[i]=e,this.requestUpdate(t,r,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||l}static finalize(){if(this.hasOwnProperty(\"finalized\"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty(\"properties\")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const s of i)this.createProperty(s,t[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(i){const s=[];if(Array.isArray(i)){const e=new Set(i.flat(1/0).reverse());for(const i of e)s.unshift(t(i))}else void 0!==i&&s.push(t(i));return s}static _$Ep(t,i){const s=i.attribute;return!1===s?void 0:\"string\"==typeof s?s:\"string\"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var i,s;(null!==(i=this._$ES)&&void 0!==i?i:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(s=t.hostConnected)||void 0===s||s.call(t))}removeController(t){var i;null===(i=this._$ES)||void 0===i||i.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])}))}createRenderRoot(){var t;const s=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return i(s,this.constructor.elementStyles),s}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}))}attributeChangedCallback(t,i,s){this._$AK(t,s)}_$EO(t,i,s=l){var e;const r=this.constructor._$Ep(t,s);if(void 0!==r&&!0===s.reflect){const h=(void 0!==(null===(e=s.converter)||void 0===e?void 0:e.toAttribute)?s.converter:n).toAttribute(i,s.type);this._$El=t,null==h?this.removeAttribute(r):this.setAttribute(r,h),this._$El=null}}_$AK(t,i){var s;const e=this.constructor,r=e._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=e.getPropertyOptions(r),h=\"function\"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(s=t.converter)||void 0===s?void 0:s.fromAttribute)?t.converter:n;this._$El=r,this[r]=h.fromAttribute(i,t.type),this._$El=null}}requestUpdate(t,i,s){let e=!0;void 0!==t&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||a)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===s.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,s))):e=!1),!this.isUpdatePending&&e&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,i)=>this[i]=t)),this._$Ei=void 0);let i=!1;const s=this._$AL;try{i=this.shouldUpdate(s),i?(this.willUpdate(s),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(s)):this._$Ek()}catch(t){throw i=!1,this._$Ek(),t}i&&this._$AE(s)}willUpdate(t){}_$AE(t){var i;null===(i=this._$ES)||void 0===i||i.forEach((t=>{var i;return null===(i=t.hostUpdated)||void 0===i?void 0:i.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,i)=>this._$EO(i,this[i],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}d.finalized=!0,d.elementProperties=new Map,d.elementStyles=[],d.shadowRootOptions={mode:\"open\"},null==o||o({ReactiveElement:d}),(null!==(s=e.reactiveElementVersions)&&void 0!==s?s:e.reactiveElementVersions=[]).push(\"1.4.1\");export{d as ReactiveElement,n as defaultConverter,a as notEqual};\n//# sourceMappingURL=reactive-element.js.map\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nvar t;const i=window,s=i.trustedTypes,e=s?s.createPolicy(\"lit-html\",{createHTML:t=>t}):void 0,o=`lit$${(Math.random()+\"\").slice(9)}$`,n=\"?\"+o,l=`<${n}>`,h=document,r=(t=\"\")=>h.createComment(t),d=t=>null===t||\"object\"!=typeof t&&\"function\"!=typeof t,u=Array.isArray,c=t=>u(t)||\"function\"==typeof(null==t?void 0:t[Symbol.iterator]),v=/<(?:(!--|\\/[^a-zA-Z])|(\\/?[a-zA-Z][^>\\s]*)|(\\/?$))/g,a=/-->/g,f=/>/g,_=RegExp(\">|[ \\t\\n\\f\\r](?:([^\\\\s\\\"'>=/]+)([ \\t\\n\\f\\r]*=[ \\t\\n\\f\\r]*(?:[^ \\t\\n\\f\\r\\\"'`<>=]|(\\\"|')|))|$)\",\"g\"),m=/'/g,p=/\"/g,$=/^(?:script|style|textarea|title)$/i,g=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),y=g(1),w=g(2),x=Symbol.for(\"lit-noChange\"),b=Symbol.for(\"lit-nothing\"),T=new WeakMap,A=(t,i,s)=>{var e,o;const n=null!==(e=null==s?void 0:s.renderBefore)&&void 0!==e?e:i;let l=n._$litPart$;if(void 0===l){const t=null!==(o=null==s?void 0:s.renderBefore)&&void 0!==o?o:null;n._$litPart$=l=new S(i.insertBefore(r(),t),t,void 0,null!=s?s:{})}return l._$AI(t),l},E=h.createTreeWalker(h,129,null,!1),C=(t,i)=>{const s=t.length-1,n=[];let h,r=2===i?\"\":\"\",d=v;for(let i=0;i\"===u[0]?(d=null!=h?h:v,c=-1):void 0===u[1]?c=-2:(c=d.lastIndex-u[2].length,e=u[1],d=void 0===u[3]?_:'\"'===u[3]?p:m):d===p||d===m?d=_:d===a||d===f?d=v:(d=_,h=void 0);const y=d===_&&t[i+1].startsWith(\"/>\")?\" \":\"\";r+=d===v?s+l:c>=0?(n.push(e),s.slice(0,c)+\"$lit$\"+s.slice(c)+o+y):s+o+(-2===c?(n.push(void 0),i):y)}const u=r+(t[s]||\"\")+(2===i?\"\":\"\");if(!Array.isArray(t)||!t.hasOwnProperty(\"raw\"))throw Error(\"invalid template strings array\");return[void 0!==e?e.createHTML(u):u,n]};class P{constructor({strings:t,_$litType$:i},e){let l;this.parts=[];let h=0,d=0;const u=t.length-1,c=this.parts,[v,a]=C(t,i);if(this.el=P.createElement(v,e),E.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(l=E.nextNode())&&c.length0){l.textContent=s?s.emptyScript:\"\";for(let s=0;s2||\"\"!==s[0]||\"\"!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=b}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,s,e){const o=this.strings;let n=!1;if(void 0===o)t=V(this,t,i,0),n=!d(t)||t!==this._$AH&&t!==x,n&&(this._$AH=t);else{const e=t;let l,h;for(t=o[0],l=0;l{t._$AK(e,i)},_$AL:t=>t._$AL};(null!==(o=globalThis.litElementVersions)&&void 0!==o?o:globalThis.litElementVersions=[]).push(\"3.2.2\");export{s as LitElement,r as UpdatingElement,h as _$LE};\n//# sourceMappingURL=lit-element.js.map\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},e=t=>(...e)=>({_$litDirective$:t,values:e});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}export{i as Directive,t as PartType,e as directive};\n//# sourceMappingURL=directive.js.map\n","import{noChange as t}from\"../lit-html.js\";import{directive as i,Directive as s,PartType as r}from\"../directive.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const o=i(class extends s{constructor(t){var i;if(super(t),t.type!==r.ATTRIBUTE||\"class\"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error(\"`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.\")}render(t){return\" \"+Object.keys(t).filter((i=>t[i])).join(\" \")+\" \"}update(i,[s]){var r,o;if(void 0===this.nt){this.nt=new Set,void 0!==i.strings&&(this.st=new Set(i.strings.join(\" \").split(/\\s/).filter((t=>\"\"!==t))));for(const t in s)s[t]&&!(null===(r=this.st)||void 0===r?void 0:r.has(t))&&this.nt.add(t);return this.render(s)}const e=i.element.classList;this.nt.forEach((t=>{t in s||(e.remove(t),this.nt.delete(t))}));for(const t in s){const i=!!s[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(e.add(t),this.nt.add(t)):(e.remove(t),this.nt.delete(t)))}return t}});export{o as classMap};\n//# sourceMappingURL=class-map.js.map\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst e=e=>n=>\"function\"==typeof n?((e,n)=>(customElements.define(e,n),n))(e,n):((e,n)=>{const{kind:t,elements:s}=n;return{kind:t,elements:s,finisher(n){customElements.define(e,n)}}})(e,n);export{e as customElement};\n//# sourceMappingURL=custom-element.js.map\n","/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nconst i=(i,e)=>\"method\"===e.kind&&e.descriptor&&!(\"value\"in e.descriptor)?{...e,finisher(n){n.createProperty(e.key,i)}}:{kind:\"field\",key:Symbol(),placement:\"own\",descriptor:{},originalKey:e.key,initializer(){\"function\"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(n){n.createProperty(e.key,i)}};function e(e){return(n,t)=>void 0!==t?((i,e,n)=>{e.constructor.createProperty(n,i)})(e,n,t):i(e,n)}export{e as property};\n//# sourceMappingURL=property.js.map\n","import{property as r}from\"./property.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function t(t){return r({...t,state:!0})}export{t as state};\n//# sourceMappingURL=state.js.map\n","import{decorateProperty as o}from\"./base.js\";\n/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */var n;const e=null!=(null===(n=window.HTMLSlotElement)||void 0===n?void 0:n.prototype.assignedElements)?(o,n)=>o.assignedElements(n):(o,n)=>o.assignedNodes(n).filter((o=>o.nodeType===Node.ELEMENT_NODE));function l(n){const{slot:l,selector:t}=null!=n?n:{};return o({descriptor:o=>({get(){var o;const r=\"slot\"+(l?`[name=${l}]`:\":not([name])\"),i=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(r),s=null!=i?e(i,n):[];return t?s.filter((o=>o.matches(t))):s},enumerable:!0,configurable:!0})})}export{l as queryAssignedElements};\n//# sourceMappingURL=query-assigned-elements.js.map\n","export const RTL_LANGUAGE = ['ar'];\n\nexport const COOKIE_NAME = 'cookie-consent';\n\nexport const FONT_BASE_URL = {\n ROW: 'https://sf16-website-login.neutral.ttwstatic.com/obj/tiktok_web_login_static/tiktok_fonts/',\n TTP: 'https://lf16-tiktok-common.tiktokcdn-us.com/obj/tiktok-web-common-tx/tiktok_fonts/',\n 'EU-TTP': 'https://sf16-website-login.neutral.ttwstatic.com/obj/tiktok_web_login_static/tiktok_fonts/',\n};\n\nexport const CUSTOM_FONT_URLS = [\n ['tiktok-display-bold', 'TikTokDisplayFont-Bold.woff2?_default_font=1&v=2'],\n ['tiktok-display-regular', 'TikTokDisplayFont-Regular.woff2?_default_font=1&v=2'],\n ['tiktok-display-medium', 'TikTokDisplayFont-Semibold.woff2?_default_font=1&v=2'],\n ['tiktok-text-bold', 'TikTokFont-Bold.woff2?_default_font=1&v=2'],\n ['tiktok-text-regular', 'TikTokFont-Regular.woff2?_default_font=1&v=2'],\n ['tiktok-text-medium', 'TikTokFont-SEMIBOLD.woff2?_default_font=1&v=2'],\n];\n\nexport const closeIconSvg =\n '';\nexport const infoIconSvg =\n '';\n\nexport const verticalbarIconSvg = `\n\n`;\n\nexport const EFFECTIVE_KEY = 'LOCAL_IS_EFFECTIVE';\n\nexport const DEFAULT_TEA_APP_ID = 345918;\n\nexport const DEFAULT_TEA_CONFIG = {\n channel: 'sg',\n channel_type: 'tcpy',\n};\n","/*! js-cookie v3.0.1 | MIT */\n/* eslint-disable no-var */\nfunction assign (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n target[key] = source[key];\n }\n }\n return target\n}\n/* eslint-enable no-var */\n\n/* eslint-disable no-var */\nvar defaultConverter = {\n read: function (value) {\n if (value[0] === '\"') {\n value = value.slice(1, -1);\n }\n return value.replace(/(%[\\dA-F]{2})+/gi, decodeURIComponent)\n },\n write: function (value) {\n return encodeURIComponent(value).replace(\n /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,\n decodeURIComponent\n )\n }\n};\n/* eslint-enable no-var */\n\n/* eslint-disable no-var */\n\nfunction init (converter, defaultAttributes) {\n function set (key, value, attributes) {\n if (typeof document === 'undefined') {\n return\n }\n\n attributes = assign({}, defaultAttributes, attributes);\n\n if (typeof attributes.expires === 'number') {\n attributes.expires = new Date(Date.now() + attributes.expires * 864e5);\n }\n if (attributes.expires) {\n attributes.expires = attributes.expires.toUTCString();\n }\n\n key = encodeURIComponent(key)\n .replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent)\n .replace(/[()]/g, escape);\n\n var stringifiedAttributes = '';\n for (var attributeName in attributes) {\n if (!attributes[attributeName]) {\n continue\n }\n\n stringifiedAttributes += '; ' + attributeName;\n\n if (attributes[attributeName] === true) {\n continue\n }\n\n // Considers RFC 6265 section 5.2:\n // ...\n // 3. If the remaining unparsed-attributes contains a %x3B (\";\")\n // character:\n // Consume the characters of the unparsed-attributes up to,\n // not including, the first %x3B (\";\") character.\n // ...\n stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];\n }\n\n return (document.cookie =\n key + '=' + converter.write(value, key) + stringifiedAttributes)\n }\n\n function get (key) {\n if (typeof document === 'undefined' || (arguments.length && !key)) {\n return\n }\n\n // To prevent the for loop in the first place assign an empty array\n // in case there are no cookies at all.\n var cookies = document.cookie ? document.cookie.split('; ') : [];\n var jar = {};\n for (var i = 0; i < cookies.length; i++) {\n var parts = cookies[i].split('=');\n var value = parts.slice(1).join('=');\n\n try {\n var foundKey = decodeURIComponent(parts[0]);\n jar[foundKey] = converter.read(value, foundKey);\n\n if (key === foundKey) {\n break\n }\n } catch (e) {}\n }\n\n return key ? jar[key] : jar\n }\n\n return Object.create(\n {\n set: set,\n get: get,\n remove: function (key, attributes) {\n set(\n key,\n '',\n assign({}, attributes, {\n expires: -1\n })\n );\n },\n withAttributes: function (attributes) {\n return init(this.converter, assign({}, this.attributes, attributes))\n },\n withConverter: function (converter) {\n return init(assign({}, this.converter, converter), this.attributes)\n }\n },\n {\n attributes: { value: Object.freeze(defaultAttributes) },\n converter: { value: Object.freeze(converter) }\n }\n )\n}\n\nvar api = init(defaultConverter, { path: '/' });\n/* eslint-enable no-var */\n\nexport default api;\n","var e=function(){return(e=Object.assign||function(e){for(var t,i=1,n=arguments.length;i0)&&!(n=r.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(i=r.return)&&i.call(r)}finally{if(o)throw o.error}}return s}function i(){for(var e=[],i=0;i-1&&(t=e.slice(0,e.indexOf(\"Build/\")))}));else if(\"ios\"===e||\"mac\"===e||\"windows\"===e)if(this.isNewIpad())t=\"iPad\";else{var i=navigator.userAgent.replace(\"Mozilla/5.0 (\",\"\"),n=i.indexOf(\";\");t=i.slice(0,n)}}catch(e){return t.trim()}return t.trim()},e.prototype.isNewIpad=function(){return void 0!==this.userAgent&&\"MacIntel\"===navigator.platform&&\"number\"==typeof navigator.maxTouchPoints&&navigator.maxTouchPoints>1},e}(),w={sg:\"1fz22z22z1nz21z4mz4bz4bz21z1ez18z1jz1gz49z1kz1az21z4az19z27z22z1cz1mz24z1cz20z21z1cz18z4az1az1mz1k\",va:\"1fz22z22z1nz21z4mz4bz4bz1kz18z1jz1gz24z18z49z1kz1az21z4az19z27z22z1cz1mz24z1cz20z21z1cz18z4az1az1mz1k\"},k={va:\"1fz22z22z1nz21z4mz4bz4bz22z1mz19z1jz1mz1ez4az1gz22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k\",sg:\"1fz22z22z1nz21z4mz4bz4bz22z1mz19z1jz1mz1ez4az22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k\",in:\"1fz22z22z1nz21z4mz4bz4bz22z1mz19z1jz1mz1ez4az1gz22z1mz19z21z1lz21z21z1bz1iz4az1az1mz1k\"},z={sg:\"1fz22z22z1nz21z4mz4bz4bz1kz1az21z49z21z1ez4az22z1gz1iz22z1mz1iz24z4az1az1mz1k\",va:\"1fz22z22z1nz21z4mz4bz4bz1kz1az21z49z24z18z4az22z1gz1iz22z1mz1iz24z4az1az1mz1k\",in:\"1fz22z22z1nz21z4mz4bz4bz1kz1az21z49z24z18z49z23z21z1cz18z21z22z4ez18z4az22z1gz1iz22z1mz1iz24z4az1az1mz1k\",ie2:\"1fz22z22z1nz21z4mz4bz4bz1kz1az21z49z1gz1cz4ez4az22z1gz1iz22z1mz1iz25z4az1cz23\"},D={sg:\"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az22z1gz1iz22z1mz1iz25z4az23z21\",va:\"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az22z1gz1iz22z1mz1iz24z4az23z21\",ie:\"1fz22z22z1nz21z4mz4bz4bz1kz1az21z49z1gz1cz4az22z1gz1iz22z1mz1iz25z4az1cz23\",ie2:\"1fz22z22z1nz21z4mz4bz4bz1kz1az21z49z1gz1cz4ez4az22z1gz1iz22z1mz1iz25z4az1cz23\"};!function(e){e.Init=\"init\",e.Config=\"config\",e.Start=\"start\",e.Ready=\"ready\",e.TokenComplete=\"token-complete\",e.TokenStorage=\"token-storage\",e.TokenFetch=\"token-fetch\",e.TokenError=\"token-error\",e.ConfigUuid=\"config-uuid\",e.ConfigWebId=\"config-webid\",e.ConfigDomain=\"config-domain\",e.CustomWebId=\"custom-webid\",e.TokenChange=\"token-change\",e.TokenReset=\"token-reset\",e.ConfigTransform=\"config-transform\",e.EnvTransform=\"env-transform\",e.SessionReset=\"session-reset\",e.SessionResetTime=\"session-reset-time\",e.Event=\"event\",e.Events=\"events\",e.EventNow=\"event-now\",e.CleanEvents=\"clean-events\",e.BeconEvent=\"becon-event\",e.SubmitBefore=\"submit-before\",e.SubmitScuess=\"submit-scuess\",e.SubmitAfter=\"submit-after\",e.SubmitError=\"submit-error\",e.SubmitVerify=\"submit-verify\",e.DestoryInstance=\"destory-instance\",e.Stay=\"stay\",e.ResetStay=\"reset-stay\",e.StayReady=\"stay-ready\",e.SetStay=\"set-stay\",e.RouteChange=\"route-change\",e.RouteReady=\"route-ready\",e.Ab=\"ab\",e.AbVar=\"ab-var\",e.AbAllVars=\"ab-all-vars\",e.AbConfig=\"ab-config\",e.AbExternalVersion=\"ab-external-version\",e.AbVersionChangeOn=\"ab-version-change-on\",e.AbVersionChangeOff=\"ab-version-change-off\",e.AbOpenLayer=\"ab-open-layer\",e.AbCloseLayer=\"ab-close-layer\",e.AbReady=\"ab-ready\",e.AbComplete=\"ab-complete\",e.AbTimeout=\"ab-timeout\",e.Profile=\"profile\",e.ProfileSet=\"profile-set\",e.ProfileSetOnce=\"profile-set-once\",e.ProfileUnset=\"profile-unset\",e.ProfileIncrement=\"profile-increment\",e.ProfileAppend=\"profile-append\",e.ProfileClear=\"profile-clear\",e.Autotrack=\"autotrack\",e.AutotrackReady=\"autotrack-ready\",e.CepReady=\"cep-ready\",e.TracerReady=\"tracer-ready\",e.sessionRecord=\"session-record\",e.SessionRecordStart=\"session-record-start\",e.SessionRecordPause=\"session-record-pause\",e.SessionRecordEnd=\"session-record-end\",e.SessionRecordReport=\"session-record-report\",e.VisualCollectReady=\"visual-collect-ready\",e.VisualApiReady=\"visual-api-ready\",e.VisualApiUpdate=\"visual-api-update\"}(_||(_={})),function(e){e.DEBUGGER_MESSAGE=\"debugger-message\",e.DEBUGGER_MESSAGE_SDK=\"debugger-message-sdk\",e.DEBUGGER_MESSAGE_FETCH=\"debugger-message-fetch\",e.DEBUGGER_MESSAGE_FETCH_RESULT=\"debugger-message-fetch-result\",e.DEBUGGER_MESSAGE_EVENT=\"debugger-message-event\",e.DEVTOOL_WEB_READY=\"devtool-web-ready\"}(v||(v={}));var T,A=_,G=void 0,M=(new Date).getTimezoneOffset(),R=parseInt(\"\"+-M/60,10),C=60*M,x=function(){function t(e,t){this.is_first_time=!0,this.configPersist=!1,this.initConfig=t,this.collect=e;var i=new S(t.app_id,t.cookie_domain||\"\",t.cookie_expire||6048e5).init(),n=\"__tea_cache_first_\"+t.app_id;this.configKey=\"__tea_cache_config_\"+t.app_id,this.sessionStorage=new E(!1,\"session\"),this.localStorage=new E(!1,\"local\"),this.channelUrl=\"tcpy\"===t.channel_type||\"ttp\"===t.channel_type?{WEBID_URL:\"/v1/user/webid\",TOB_URL:\"\",REPORT_URL:\"/v1/list\"}:{WEBID_URL:\"/webid\",TOB_URL:\"/tobid\",REPORT_URL:\"/list\"},t.configPersist&&(this.configPersist=!0,this.storage=1===t.configPersist?this.sessionStorage:this.localStorage);var o=this.localStorage.getItem(n);o&&1==o?this.is_first_time=!1:(this.is_first_time=!0,this.localStorage.setItem(n,\"1\")),this.envInfo={user:{user_unique_id:G,user_type:G,user_id:G,user_is_auth:G,user_is_login:G,device_id:G,web_id:G,ip_addr_id:G,user_unique_id_type:G},header:{app_id:G,app_name:G,app_install_id:G,install_id:G,app_package:G,app_channel:G,app_version:G,ab_version:G,os_name:i.os_name,os_version:i.os_version,device_model:i.device_model,ab_client:G,traffic_type:G,client_ip:G,device_brand:G,os_api:G,access:G,language:i.language,region:G,app_language:G,app_region:G,creative_id:i.utm.creative_id,ad_id:i.utm.ad_id,campaign_id:i.utm.campaign_id,log_type:G,rnd:G,platform:i.platform,sdk_version:\"5.3.0_oversea\",sdk_lib:\"js\",province:G,city:G,timezone:R,tz_offset:C,tz_name:G,sim_region:G,carrier:G,resolution:i.screen_width+\"x\"+i.screen_height,browser:i.browser,browser_version:i.browser_version,referrer:i.referrer,referrer_host:i.referrer_host,width:i.screen_width,height:i.screen_height,screen_width:i.screen_width,screen_height:i.screen_height,utm_term:i.utm.utm_term,utm_content:i.utm.utm_content,utm_source:i.utm.utm_source,utm_medium:i.utm.utm_medium,utm_campaign:i.utm.utm_campaign,tracer_data:JSON.stringify(i.utm.tracer_data),custom:{}}},this.ab_version=\"\",this.ab_uuid_cache={},this.evtParams={},this.reportErrorCallback=function(){},this.isLast=!1,this.setCustom(i),this.initDomain(),this.initABData()}return t.prototype.initDomain=function(e){var t=this.initConfig.channel_domain;if(t)this.domain=t;else{var i=e||this.initConfig.channel,n=this.initConfig&&this.initConfig.channel_type?\"tcpy\"===this.initConfig.channel_type?z[i]:D[i]:w[i];n||(console.warn(\"current channel: \"+i+\" is not exist, use va instead, please check!!!!\"),n=w.sg),this.domain=c(n)}},t.prototype.setDomain=function(e){this.customDomain=!0,this.domain=e},t.prototype.getDomain=function(e){return this.customDomain||e&&this.initDomain(e),this.domain},t.prototype.initABData=function(){var e,t=\"__tea_sdk_ab_version_\"+this.initConfig.app_id;e=this.localStorage.getItem(t),this.setAbCache(e)},t.prototype.setAbCache=function(e){this.ab_cache=e},t.prototype.getAbCache=function(){return this.ab_cache},t.prototype.clearAbCache=function(){this.ab_cache={},this.ab_version=\"\"},t.prototype.setAbVersion=function(e){this.ab_version=e},t.prototype.getAbVersion=function(){return this.ab_version},t.prototype.setAbUuidCache=function(e,t){var i=t||this.envInfo.user.user_unique_id;this.ab_uuid_cache[\"\"+i]||(this.ab_uuid_cache[\"\"+i]=[]),-1===this.ab_uuid_cache[\"\"+i].indexOf(e)&&this.ab_uuid_cache[\"\"+i].push(e)},t.prototype.getAbUuidCache=function(e){return this.ab_uuid_cache[\"\"+e]},t.prototype.getUrl=function(e){var t=\"\";switch(e){case\"event\":t=this.channelUrl.REPORT_URL;break;case\"webid\":t=this.channelUrl.WEBID_URL;break;case\"tobid\":t=this.channelUrl.TOB_URL}var i=\"\";return this.initConfig.caller&&(i=\"?sdk_version=5.3.0_oversea&sdk_name=web&app_id=\"+this.initConfig.app_id+\"&caller=\"+this.initConfig.caller),\"\"+this.getDomain()+t+i},t.prototype.setCustom=function(e){if(e&&e.latest_data&&e.latest_data.isLast)for(var t in delete e.latest_data.isLast,this.isLast=!0,e.latest_data)this.envInfo.header.custom[t]=e.latest_data[t]},t.prototype.setAppid=function(e){this.envInfo.header.app_id=e},t.prototype.set=function(t){var i=this;Object.keys(t).forEach((function(n){if(void 0!==t[n]&&null!==t[n]||i.delete(n),\"traffic_type\"===n&&i.isLast&&(i.envInfo.header.custom.$latest_traffic_source_type=t[n]),\"evtParams\"===n)i.evtParams=e(e({},i.evtParams||{}),t.evtParams||{});else if(\"_staging_flag\"===n)i.evtParams=e(e({},i.evtParams||{}),{_staging_flag:t._staging_flag});else if(\"reportErrorCallback\"===n&&\"function\"==typeof t[n])i.reportErrorCallback=t[n];else{var o=\"\",r=\"\";if(n.indexOf(\".\")>-1){var s=n.split(\".\");o=s[0],r=s[1]}o?\"user\"===o||\"header\"===o?i.envInfo[o][r]=t[n]:i.envInfo.header.custom[r]=t[n]:Object.hasOwnProperty.call(i.envInfo.user,n)?[\"user_type\",\"ip_addr_id\"].indexOf(n)>-1?i.envInfo.user[n]=t[n]?Number(t[n]):t[n]:[\"user_id\",\"web_id\",\"user_unique_id\",\"user_unique_id_type\"].indexOf(n)>-1?i.envInfo.user[n]=t[n]?String(t[n]):t[n]:[\"user_is_auth\",\"user_is_login\"].indexOf(n)>-1?i.envInfo.user[n]=Boolean(t[n]):\"device_id\"===n&&(i.envInfo.user[n]=t[n]):Object.hasOwnProperty.call(i.envInfo.header,n)?i.envInfo.header[n]=t[n]:i.envInfo.header.custom[n]=t[n]}}))},t.prototype.get=function(e){try{return e?\"evtParams\"===e?this.evtParams:\"reportErrorCallback\"===e?this[e]:Object.hasOwnProperty.call(this.envInfo.user,e)?this.envInfo.user[e]:Object.hasOwnProperty.call(this.envInfo.header,e)?this.envInfo.header[e]:JSON.parse(JSON.stringify(this.envInfo[e])):JSON.parse(JSON.stringify(this.envInfo))}catch(e){console.log(\"get config stringify error \"),this.collect.emit(v.DEBUGGER_MESSAGE,{type:v.DEBUGGER_MESSAGE_SDK,info:\"SDK Something Error\",level:\"error\",time:Date.now(),data:e.message,infoType:\"sdk\"})}},t.prototype.setStore=function(e){try{if(!this.configPersist)return;var t=this.storage.getItem(this.configKey)||{};if(t&&Object.keys(e).length){var i=Object.assign(e,t);this.storage.setItem(this.configKey,i)}}catch(e){console.log(\"setStore error\"),this.collect.emit(v.DEBUGGER_MESSAGE,{type:v.DEBUGGER_MESSAGE_SDK,info:\"SDK Something Error\",level:\"error\",time:Date.now(),data:e.message,infoType:\"sdk\"})}},t.prototype.getStore=function(){try{if(!this.configPersist)return null;var e=this.storage.getItem(this.configKey)||{};return e&&Object.keys(e).length?e:null}catch(e){return this.collect.emit(v.DEBUGGER_MESSAGE,{type:v.DEBUGGER_MESSAGE_SDK,info:\"SDK Something Error\",level:\"error\",time:Date.now(),data:e.message,infoType:\"sdk\"}),null}},t.prototype.delete=function(e){try{if(!this.configPersist)return;var t=this.storage.getItem(this.configKey)||{};t&&Object.hasOwnProperty.call(t,e)&&(delete t[e],this.storage.setItem(this.configKey,t))}catch(e){this.collect.emit(v.DEBUGGER_MESSAGE,{type:v.DEBUGGER_MESSAGE_SDK,info:\"SDK Something Error\",level:\"error\",time:Date.now(),data:e.message,infoType:\"sdk\"}),console.log(\"delete error\")}},t}(),I=function(){function e(e,t){this.isLog=t||!1,this.name=e||\"\"}return e.prototype.info=function(e){this.isLog&&console.log(\"%c %s\",\"color: yellow; background-color: black;\",\"[Tea instance: \"+this.name+\"] \"+e)},e.prototype.warn=function(e){this.isLog&&console.warn(\"%c %s\",\"color: #4D1B00; background-color: #FF7D00;\",\"[Tea instance: \"+this.name+\"] \"+e)},e.prototype.error=function(e){this.isLog&&console.error(\"%c %s\",\"color: #FFF; background-color: #F53F3F;\",\"[Tea instance: \"+this.name+\"] \"+e)},e.prototype.throw=function(e){throw this.error(this.name),new Error(e)},e}(),O=function(){function e(){this.spiderBot=[\"Baiduspider\",\"googlebot\",\"360Spider\",\"haosouspider\",\"YoudaoBot\",\"Yisouspider\",\"Googlebot\",\"Headless\",\"Applebot\",\"Bingbot\",\"PetalBot\"]}return e.prototype.checkSpider=function(e){if(!e.enable_spider)return!1;var t=window.navigator.userAgent;if(!t)return!0;var i=!1;return this.spiderBot.forEach((function(e){-1!==t.indexOf(e)&&(i=!0)})),i},e}(),B=function(){function e(e,t){this.collect=e,this.native=t}var t=e.prototype;return t.bridgeInject=function(){try{return!!this.native&&(AppLogBridge?(console.log(\"AppLogBridge is injected\"),!0):(console.log(\"AppLogBridge is not inject\"),!1))}catch(e){return console.log(\"AppLogBridge is not inject\"),!1}},t.bridgeReady=function(){var e=this;return new Promise((function(t,i){try{e.bridgeInject()?AppLogBridge.hasStarted((function(e){console.log(\"AppLogBridge is started? : \"+e),e?t(!0):i(!1)})):i(!1)}catch(e){console.log(\"AppLogBridge, error:\"+JSON.stringify(e.stack)),i(!1)}}))},t.setNativeAppId=function(e){try{AppLogBridge.setNativeAppId(JSON.stringify(e)),console.log(\"change bridge appid, event report with appid: \"+e)}catch(e){console.error(\"setNativeAppId error\")}},t.setConfig=function(e){var t=this;try{Object.keys(e).forEach((function(i){\"user_unique_id\"===i?t.setUserUniqueId(e[i]):e[i]?t.addHeaderInfo(i,e[i]):t.removeHeaderInfo(i)}))}catch(e){console.error(\"setConfig error\")}},t.setUserUniqueId=function(e){try{AppLogBridge.setUserUniqueId(e)}catch(e){console.error(\"setUserUniqueId error\")}},t.addHeaderInfo=function(e,t){try{AppLogBridge.addHeaderInfo(e,t)}catch(e){console.error(\"addHeaderInfo error\")}},t.setHeaderInfo=function(e){try{AppLogBridge.setHeaderInfo(JSON.stringify(e))}catch(e){console.error(\"setHeaderInfo error\")}},t.removeHeaderInfo=function(e){try{AppLogBridge.removeHeaderInfo(e)}catch(e){console.error(\"removeHeaderInfo error\")}},t.reportPv=function(e){this.onEventV3(\"predefine_pageview\",e)},t.onEventV3=function(e,t){try{AppLogBridge.onEventV3(e,t),this.collect.emit(DebuggerMesssge.DEBUGGER_MESSAGE,{type:DebuggerMesssge.DEBUGGER_MESSAGE_EVENT,info:\"bridge埋点上报\",time:Date.now(),data:[{events:[{event:e,params:t}]}],code:200,status:\"success\"})}catch(e){console.error(\"onEventV3 error\")}},t.profileSet=function(e){try{AppLogBridge.profileSet(e)}catch(e){console.error(\"profileSet error\")}},t.profileSetOnce=function(e){try{AppLogBridge.profileSetOnce(e)}catch(e){console.error(\"profileSetOnce error\")}},t.profileIncrement=function(e){try{AppLogBridge.profileIncrement(e)}catch(e){console.error(\"profileIncrement error\")}},t.profileUnset=function(e){try{AppLogBridge.profileUnset(e)}catch(e){console.error(\"profileUnset error\")}},t.profileAppend=function(e){try{AppLogBridge.profileAppend(e)}catch(e){console.error(\"profileAppend error\")}},e}(),U=function(){function t(){this.eventLimit=50,this.enable_ttwebid=!1,this.eventCache=[],this.beconEventCache=[]}return t.prototype.apply=function(e,t){var i=this;this.collect=e,this.config=t,this.configManager=e.configManager,this.cacheStorgae=new E(!0),this.localStorage=new E(!1),this.maxReport=t.max_report||10,this.reportTime=t.reportTime||30,this.timeout=t.timeout||1e5,this.enable_ttwebid=t.enable_ttwebid,this.reportUrl=t.report_url||this.configManager.getUrl(\"event\"),this.eventKey=\"__tea_cache_events_\"+this.configManager.get(\"app_id\"),this.beconKey=\"__tea_cache_events_becon_\"+this.configManager.get(\"app_id\"),this.abKey=\"__tea_sdk_ab_version_\"+this.configManager.get(\"app_id\"),this.refer_key=\"__tea_cache_refer_\"+this.configManager.get(\"app_id\"),this.collect.on(A.Ready,(function(){i.reportAll(!1)})),this.collect.on(A.ConfigDomain,(function(){i.reportUrl=i.configManager.getUrl(\"event\")})),this.collect.on(A.Event,(function(e){i.event(e)})),this.collect.on(A.BeconEvent,(function(e){i.beconEvent(e)})),this.collect.on(A.CleanEvents,(function(){i.reportAll(!1)})),this.linster()},t.prototype.linster=function(){var e=this;window.addEventListener(\"unload\",(function(){e.reportAll(!0)}),!1),l((function(){e.reportAll(!0)})),document.addEventListener(\"visibilitychange\",(function(){\"hidden\"===document.visibilityState&&e.reportAll(!0)}),!1)},t.prototype.reportAll=function(e){this.report(e),this.reportBecon()},t.prototype.event=function(e){var t=this;if(!this.collect.destroy&&!this.collect.sdkStop)try{var n=i(e,this.cacheStorgae.getItem(this.eventKey)||[]);if(this.cacheStorgae.setItem(this.eventKey,n),this.reportTimeout&&clearTimeout(this.reportTimeout),n.length>=this.maxReport)this.report(!1);else{var o=this.reportTime;this.reportTimeout=setTimeout((function(){t.report(!1),t.reportTimeout=null}),o)}}catch(e){this.collect.emit(v.DEBUGGER_MESSAGE,{type:v.DEBUGGER_MESSAGE_SDK,info:\"SDK Something Error\",level:\"error\",time:Date.now(),data:e.message,infoType:\"sdk\"})}},t.prototype.beconEvent=function(e){if(!this.collect.destroy&&!this.collect.sdkStop){var t=i(e,this.cacheStorgae.getItem(this.beconKey)||[]);this.cacheStorgae.setItem(this.beconKey,t),this.collect.tokenManager.getReady()&&this.collect.sdkReady&&(this.cacheStorgae.removeItem(this.beconKey),this.send(this.split(this.merge(t)),!0))}},t.prototype.reportBecon=function(){if(!this.collect.destroy&&!this.collect.sdkStop&&this.collect.tokenManager.getReady()&&this.collect.sdkReady){var e=this.cacheStorgae.getItem(this.beconKey)||[];e&&e.length&&(this.cacheStorgae.removeItem(this.beconKey),this.send(this.split(this.merge(e)),!0))}},t.prototype.report=function(e){if(!this.collect.destroy&&!this.collect.sdkStop&&this.collect.tokenManager.getReady()&&this.collect.sdkReady){var t=this.cacheStorgae.getItem(this.eventKey)||[];t.length&&(this.cacheStorgae.removeItem(this.eventKey),this.sliceEvent(t,e))}},t.prototype.sliceEvent=function(e,t){if(e.length>this.eventLimit)for(var i=0;i>t/4).toString(10):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)}().replace(/-/g,\"\").slice(0,19)},L=function(){function e(){this.cacheToken={},this.enableCookie=!1,this.enable_ttwebid=!1,this.enableCustomWebid=!1}return e.prototype.apply=function(e,t){var i=this;this.collect=e,this.config=t,this.configManager=this.collect.configManager,this.storage=new E(!1),this.tokenKey=\"__tea_cache_tokens_\"+t.app_id,this.enable_ttwebid=t.enable_ttwebid,this.enableCustomWebid=t.enable_custom_webid,this.collect.on(A.ConfigUuid,(function(e){i.setUuid(e)})),this.collect.on(A.ConfigWebId,(function(e){i.setWebId(e)})),this.enableCookie=t.cross_subdomain,this.expiresTime=t.cookie_expire||6048e5,this.cookieDomain=t.cookie_domain||\"\",this.checkStorage()},e.prototype.checkStorage=function(){var e=this;this.cacheToken=this.storage.getItem(this.tokenKey)||{},this.tokenType=this.cacheToken&&this.cacheToken._type_?this.cacheToken._type_:\"default\",\"custom\"!==this.tokenType||this.enableCustomWebid?this.enableCustomWebid?this.collect.on(A.CustomWebId,(function(){e.tokenReady=!0,e.collect.emit(A.TokenComplete)})):this.checkEnv()||(this.enable_ttwebid?this.completeTtWid(this.cacheToken):this.check()):this.remoteWebid()},e.prototype.check=function(){this.cacheToken&&this.cacheToken.web_id?this.complete(this.cacheToken):this.config.disable_webid?this.complete({web_id:N(),user_unique_id:this.configManager.get(\"user_unique_id\")||N()}):this.remoteWebid()},e.prototype.checkEnv=function(){var e=window.navigator.userAgent;if(-1!==e.indexOf(\"miniProgram\")||-1!==e.indexOf(\"MiniProgram\")){var t=p(window.location.href);return!(!t||!t.Web_ID)&&(this.complete({web_id:\"\"+t.Web_ID,user_unique_id:this.configManager.get(\"user_unique_id\")||\"\"+t.Web_ID}),!0)}return!1},e.prototype.remoteWebid=function(){var e=this,t=this.configManager.getUrl(\"webid\"),i={app_key:this.config.app_key,app_id:this.config.app_id,url:location.href,user_agent:window.navigator.userAgent,referer:document.referrer,user_unique_id:\"\"};this.collect.emit(v.DEBUGGER_MESSAGE,{type:v.DEBUGGER_MESSAGE_SDK,info:\"SDK Fetch WebID Request\",logType:\"fetch\",level:\"info\",time:Date.now(),data:i});var n=N();this.collect.requestManager.useRequest({url:t,data:i,success:function(t){var i;t&&0===t.e?(i=t.web_id,e.collect.emit(v.DEBUGGER_MESSAGE,{type:v.DEBUGGER_MESSAGE_SDK,info:\"Fetch WebID Request Success\",logType:\"fetch\",level:\"info\",time:Date.now(),data:t})):(i=n,e.collect.configManager.set({localWebId:n}),e.collect.emit(A.TokenError),e.collect.emit(v.DEBUGGER_MESSAGE,{type:v.DEBUGGER_MESSAGE_SDK,info:\"Fetch WebID Request Data Error, Use LocalId\",logType:\"fetch\",level:\"warn\",time:Date.now(),data:t}),e.collect.logger.warn(\"appid: \"+e.config.app_id+\" get webid error, use local webid~\")),e.complete({web_id:e.configManager.get(\"web_id\")||i,user_unique_id:e.configManager.get(\"user_unique_id\")||i})},fail:function(){e.complete({web_id:e.configManager.get(\"web_id\")||n,user_unique_id:e.configManager.get(\"user_unique_id\")||n}),e.collect.configManager.set({localWebId:n}),e.collect.emit(A.TokenError),e.collect.emit(v.DEBUGGER_MESSAGE,{type:v.DEBUGGER_MESSAGE_SDK,info:\"Fetch WebID Request Network Fail, Use LocalId\",logType:\"fetch\",level:\"error\",time:Date.now(),data:null}),e.collect.logger.warn(\"appid: \"+e.config.app_id+\", get webid error, use local webid~\")},timeout:3e5})},e.prototype.complete=function(e){var t=e.web_id,i=e.user_unique_id;e.timestamp=Date.now(),this.collect.configManager.set({web_id:t,user_unique_id:i}),this.setStorage(e),this.tokenReady=!0,this.collect.emit(v.DEBUGGER_MESSAGE,{type:v.DEBUGGER_MESSAGE_SDK,info:\"SDK UserInfo Complete\",logType:\"info\",secType:\"USER\",level:\"info\",time:Date.now(),data:{web_id:t,user_unique_id:i},infoType:\"sdk\"}),this.collect.emit(A.TokenComplete)},e.prototype.completeTtWid=function(e){var t=e.user_unique_id||\"\",i=this.configManager.get(\"user_unique_id\");(i||t)&&this.configManager.set({user_unique_id:i||t}),this.setStorage(e),this.tokenReady=!0,this.collect.emit(A.TokenComplete)},e.prototype.setUuid=function(e){if(e&&-1===[\"null\",\"undefined\",\"Null\",\"None\"].indexOf(e)){var t=String(e),i=this.configManager.get(\"user_unique_id\"),n=this.cacheToken&&this.cacheToken.user_unique_id;if(t===i&&t===n)return;this.configManager.set({user_unique_id:t}),this.cacheToken||(this.cacheToken={}),this.cacheToken.user_unique_id=t,this.cacheToken.timestamp=Date.now(),this.setStorage(this.cacheToken),this.collect.emit(A.TokenChange,\"uuid\"),this.collect.emit(A.SessionReset)}else this.clearUuid()},e.prototype.clearUuid=function(){this.config.enable_ttwebid||this.configManager.get(\"web_id\")&&(this.configManager.set({user_unique_id:this.configManager.get(\"web_id\")}),this.cacheToken&&this.cacheToken.web_id&&(this.cacheToken.user_unique_id=this.cacheToken.web_id,this.cacheToken.timestamp=Date.now(),this.setStorage(this.cacheToken)),this.collect.emit(A.TokenReset))},e.prototype.setWebId=function(e){if(e&&!this.config.enable_ttwebid){this.cacheToken&&this.cacheToken.web_id?this.cacheToken.web_id!==e&&(this.cacheToken.user_unique_id=this.cacheToken.web_id===this.cacheToken.user_unique_id?e:this.cacheToken.user_unique_id,this.cacheToken.web_id=e):(this.cacheToken={},this.cacheToken.web_id=e,this.cacheToken.user_unique_id=e),this.cacheToken.timestamp=Date.now();var t=this.configManager.get(\"web_id\"),i=this.configManager.get(\"user_unique_id\");i&&i!==t||(this.configManager.set({user_unique_id:e}),this.collect.emit(A.TokenChange,\"uuid\")),t!==e&&(this.configManager.set({web_id:e}),this.collect.emit(A.TokenChange,\"webid\")),this.setStorage(this.cacheToken)}},e.prototype.setStorage=function(e){e._type_=this.enableCustomWebid?\"custom\":\"default\",delete e[\"diss\".split(\"\").reverse().join(\"\")],this.storage.setItem(this.tokenKey,e),this.cacheToken=e},e.prototype.getReady=function(){return this.tokenReady},e.prototype.getTobId=function(){var e=this;return new Promise((function(t){if(\"tcpy\"!==e.config.channel_type&&\"ttp\"!==e.config.channel_type){var i={app_id:e.config.app_id,user_unique_id:e.configManager.get(\"user_unique_id\"),web_id:e.configManager.get(\"web_id\"),user_unique_id_type:e.configManager.get(\"user_unique_id_type\")};e.collect.emit(v.DEBUGGER_MESSAGE,{type:v.DEBUGGER_MESSAGE_SDK,info:\"SDK Fetch GetToken Request\",logType:\"fetch\",level:\"info\",time:Date.now(),data:i,infoType:\"sdk\"}),e.collect.requestManager.useRequest({url:e.configManager.getUrl(\"tobid\"),data:i,success:function(i){i&&0===i.e?(t(i.tobid),e.collect.emit(v.DEBUGGER_MESSAGE,{type:v.DEBUGGER_MESSAGE_SDK,info:\"Fetch GetToken Request Success\",logType:\"fetch\",level:\"info\",time:Date.now(),data:i,infoType:\"sdk\"})):(t(\"\"),e.collect.emit(v.DEBUGGER_MESSAGE,{type:v.DEBUGGER_MESSAGE_SDK,info:\"Fetch GetToken Request Fail\",logType:\"fetch\",level:\"error\",time:Date.now(),data:i,infoType:\"sdk\"}))},fail:function(){t(\"\"),e.collect.emit(v.DEBUGGER_MESSAGE,{type:v.DEBUGGER_MESSAGE_SDK,info:\"Fetch GetToken Request Network Error\",logType:\"fetch\",level:\"error\",time:Date.now(),infoType:\"sdk\"})},time:3e4,withCredentials:e.enable_ttwebid})}else t(\"\")}))},e}(),P=function(){return\"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return(\"x\"===e?t:3&t|8).toString(16)}))},V=function(){function e(){}return e.prototype.apply=function(e,t){var i=this;this.collect=e,this.storage=new E(!1,\"session\"),this.sessionKey=\"__tea_session_id_\"+t.app_id,this.expireTime=t.expireTime||18e5,this.disableSession=t.disable_session,this.disableSessionTimeCheck=t.disable_session_check,this.disableSession||(this.setSessionId(),this.collect.on(A.SessionReset,(function(e){i.resetSessionId(e)})),this.collect.on(A.SessionResetTime,(function(){i.updateSessionIdTime()})))},e.prototype.updateSessionIdTime=function(){var e=this.storage.getItem(this.sessionKey);if(e&&e.sessionId){var t=e.timestamp;Date.now()-t>this.expireTime?e={sessionId:P(),timestamp:Date.now()}:e.timestamp=Date.now(),this.storage.setItem(this.sessionKey,e),this.resetExpTime()}},e.prototype.setSessionId=function(){var e=this,t=this.storage.getItem(this.sessionKey);t&&t.sessionId?t.timestamp=Date.now():t={sessionId:P(),timestamp:Date.now()},this.storage.setItem(this.sessionKey,t),this.disableSessionTimeCheck||(this.sessionExp=setInterval((function(){e.checkEXp()}),this.expireTime))},e.prototype.getSessionId=function(){var e=this.storage.getItem(this.sessionKey);return this.disableSession?\"\":e&&e.sessionId?e.sessionId:\"\"},e.prototype.resetExpTime=function(){var e=this;this.sessionExp&&(clearInterval(this.sessionExp),this.sessionExp=setInterval((function(){e.checkEXp()}),this.expireTime))},e.prototype.resetSessionId=function(e){var t={sessionId:e||P(),timestamp:Date.now()};this.storage.setItem(this.sessionKey,t)},e.prototype.checkEXp=function(){var e=this.storage.getItem(this.sessionKey);e&&e.sessionId&&(Date.now()-e.timestamp+30>=this.expireTime&&(e={sessionId:P(),timestamp:Date.now()},this.storage.setItem(this.sessionKey,e)))},e}(),K=function(){function e(e,t){this.collector=e,this.config=t,this.requestType=t.request_type,this.supportBeacon=!(!window.navigator||!window.navigator.sendBeacon),this.errorCode={NO_URL:4001,IMG_ON:4e3,IMG_CATCH:4002,BEACON_FALSE:4003,XHR_ON:500,RESPONSE:5001,TIMEOUT:5005},this.customHeader=t.custom_request_header||{}}return e.prototype.useFetch=function(e){var t=e.url,i=e.data,n=e.method,o=e.success,r=e.fail,s={\"Content-Type\":\"application/json; charset=utf-8\"};if(Object.keys(this.customHeader).length)for(var a in this.customHeader)s[a]=this.customHeader[a];window.fetch?fetch(t,{method:n||\"POST\",headers:s,body:JSON.stringify(i)}).then((function(e){return e.json()})).then((function(e){o&&o(e)})).catch((function(e){r&&r(i,e)})):(this.requestType=\"xhr\",console.log(\"your brwoser not support fetch, use xhr\"),this.useRequest({url:t,data:i,method:n,success:o,fail:r}))},e.prototype.useBeacon=function(e){var t=e.url,i=e.data,n=e.success,o=e.fail;\"xhr\"!==this.requestType?window.navigator.sendBeacon(t,JSON.stringify(i))?n&&n():o&&o(i,this.errorCode.BEACON_FALSE):this.useXhr(e)},e.prototype.useXhr=function(e){var t=this,i=e.url,n=e.data,o=e.method,r=e.success,s=e.fail,a=e.timeout,c=e.withCredentials,l=e.app_key;try{var h=new XMLHttpRequest,u=o||\"POST\";if(h.open(u,\"\"+i,!0),h.setRequestHeader(\"Content-Type\",\"application/json; charset=utf-8\"),l&&h.setRequestHeader(\"X-MCS-AppKey\",\"\"+l),Object.keys(this.customHeader).length)for(var p in this.customHeader)h.setRequestHeader(p,this.customHeader[p]);c&&(h.withCredentials=!0),a&&(h.timeout=a,h.ontimeout=function(){s&&s(n,t.errorCode.TIMEOUT)}),h.onload=function(){if(r){var e=null;if(h.responseText){try{e=JSON.parse(h.responseText)}catch(t){e={}}r(e,n)}}},h.onerror=function(){h.abort(),s&&s(n,t.errorCode.XHR_ON)},h.send(JSON.stringify(n))}catch(e){}},e.prototype.useRequest=function(e){var t=e.useBeacon,i=e.forceXhr;if(\"xhr\"===this.requestType)this.useXhr(e);else{if(t&&this.supportBeacon)return void this.useBeacon(e);if(\"fetch\"===this.requestType&&!i)return void this.useFetch(e);this.useXhr(e)}},e}(),q=function(){function e(e,t){if(this.devToolReady=!1,this.devToolOrigin=\"*\",this.sendAlready=!1,t.enable_debug&&\"Microsoft Internet Explorer\"!==e.configManager.get(\"browser\")){this.collect=e,this.config=t,this.app_id=t.app_id;var i=e.adapters.storage;this.cacheStorgae=new i(!1),this.loadUrl=t.devtool_url||\"https://sf16-scmcdn-va.ibytedtos.com/obj/static-us/log-sdk/collect/devtool/debug-web.v2.0.0.js\",this.filterEvent=new Set([\"__bav_page\",\"__bav_beat\",\"__bav_page_statistics\",\"__bav_click\",\"__bav_page_exposure\",\"bav2b_page\",\"bav2b_beat\",\"bav2b_page_statistics\",\"bav2b_click\",\"bav2b_page_exposure\",\"_be_active\",\"predefine_pageview\",\"__profile_set\",\"__profile_set_once\",\"__profile_increment\",\"__profile_unset\",\"__profile_append\",\"predefine_page_alive\",\"predefine_page_close\",\"abtest_exposure\"]),this.load()}}return e.prototype.loadScript=function(e){try{var t=document.createElement(\"script\");t.src=e,t.onerror=function(){console.log(\"load DevTool render fail\")},t.onload=function(){console.log(\"load DevTool render success\")},document.getElementsByTagName(\"body\")[0].appendChild(t)}catch(e){console.log(\"devTool load fail, \"+e.message)}},e.prototype.parseUrl=function(){var e={};try{var t=window.location.href.split(\"?\")[1].split(\"&\");t.length&&t.forEach((function(t){var i=t.split(\"=\");e[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}))}catch(e){}return e},e.prototype.load=function(){try{var e=this.parseUrl();if(e.open_devtool_web&&e.app_id){if(parseInt(e.app_id)!==this.app_id)return}else if(!this.getStorage())return;this.loadBaseInfo(),this.loadHook(),this.setStorage(),this.addLintener(),this.loadDebuggerModule(),this.loadDevTool()}catch(e){console.log(\"debug fail, \"+e.message)}},e.prototype.getStorage=function(){var e=this.cacheStorgae.getItem(\"__applog_open_devtool_web\");return e&&parseInt(e)===this.app_id},e.prototype.setStorage=function(){this.cacheStorgae.setItem(\"__applog_open_devtool_web\",this.app_id)},e.prototype.loadDevTool=function(){this.loadScript(this.loadUrl)},e.prototype.loadBaseInfo=function(){if(this.log=[],this.event=[],this.info=[{title:\"BaseInfo\",key:\"base\",type:1,content:[{name:\"app_id\",desc:\"APPID\",value:this.config.app_id},{name:\"channel\",desc:\"CHANNEL\",value:this.config.channel},{name:\"domain\",desc:\"Domain\",value:this.collect.configManager.getDomain()},{name:\"sdk_version\",desc:\"SDK Version\",value:\"5.3.0_oversea\"},{name:\"sdk_type\",desc:\"SDK Import Type\",value:\"npm\"}]},{title:\"UserInfo\",key:\"user\",type:2,content:[{name:\"uuid\",desc:\"UserUniqueId\",value:this.collect.configManager.get(\"user\").user_unique_id||\"\"},{name:\"web_id\",desc:\"WEB_ID\",value:this.collect.configManager.get(\"user\").web_id||\"\"}]},{title:\"CommonInfo\",type:2,key:\"common\",content:[{name:\"browser\",desc:\"Browser\",value:this.collect.configManager.get(\"browser\")},{name:\"browser_version\",desc:\"Browser Version\",value:this.collect.configManager.get(\"browser_version\")},{name:\"platform\",desc:\"Platform\",value:this.collect.configManager.get(\"platform\")},{name:\"device_model\",desc:\"Devide Model\",value:this.collect.configManager.get(\"device_model\")},{name:\"os_name\",desc:\"Os Name\",value:this.collect.configManager.get(\"os_name\")},{name:\"os_version\",desc:\"Os Version\",value:this.collect.configManager.get(\"os_version\")},{name:\"resolution\",desc:\"Screen Resolution\",value:this.collect.configManager.get(\"resolution\")},{name:\"referrer\",desc:\"Referrer\",value:this.collect.configManager.get(\"referrer\")},{name:\"custom\",desc:\"Custom Info\",value:JSON.stringify(this.collect.configManager.get(\"custom\"))}]},{title:\"Config Info\",key:\"config\",type:3,content:[{name:\"autotrack\",desc:\"AutoTrackEvent\",value:!!this.config.autotrack},{name:\"stay\",desc:\"StayDuration\",value:!!this.config.enable_stay_duration}]},{title:\"A/B Config Info\",key:\"ab\",type:4,content:[{name:\"ab\",desc:\"A/BTester\",value:!!this.config.enable_ab_test}]}],this.config.enable_ab_test){var e=this.getInfo(\"ab\"),t=[{name:\"ab\",desc:\"A/BTester\",value:!!this.config.enable_ab_test},{name:\"vid\",desc:\"A/B VID\",value:this.collect.configManager.getAbVersion()},{name:\"ab_domain\",desc:\"Domain\",value:this.config.ab_channel_domain||c(k[this.config.channel])},{name:\"all_values\",desc:\"A/B ALL Values\",value:this.collect.configManager.getAbCache()}];e.content=t,this.setInfo(\"ab\",e)}},e.prototype.getInfo=function(e){var t=null;return this.info.forEach((function(i){i.key===e&&(t=i)})),t},e.prototype.setInfo=function(e,t){var i=!1;this.info.forEach((function(n){n.key===e&&(i=!0,n=t)})),i||this.info.push(t)},e.prototype.getSecondInfo=function(e,t){var i=this.getInfo(e),n=null;return i.content.forEach((function(e){e.name===t&&(n=e)})),n},e.prototype.setSecondInfo=function(e,t,i){var n=this.getInfo(e);n.content.forEach((function(e){e.name===t&&(e.value=i)})),this.setInfo(e,n)},e.prototype.loadHook=function(){var e=this;this.collect.on(v.DEBUGGER_MESSAGE,(function(t){switch(t.type){case v.DEBUGGER_MESSAGE_SDK:var i={time:t.time,type:t.logType||\"sdk\",infoType:t.infoType||\"sdk\",level:t.level,name:t.info,show:!0,levelShow:!0,needDesc:!!t.data};return t.data&&(i.desc={content:JSON.stringify(t.data)}),e.updateLog(i),t.secType&&\"AB\"===t.secType?(e.setSecondInfo(\"ab\",\"vid\",e.collect.configManager.getAbVersion()),e.setSecondInfo(\"ab\",\"all_values\",e.collect.configManager.getAbCache())):\"USER\"===t.secType&&(e.setSecondInfo(\"user\",\"uuid\",e.collect.configManager.get(\"user\").user_unique_id),e.setSecondInfo(\"user\",\"web_id\",e.collect.configManager.get(\"user\").web_id)),void e.updateInfo();case v.DEBUGGER_MESSAGE_EVENT:if(t.data&&t.data.length){var n=t.data[0],o=n.events;if(!o.length)return;o.forEach((function(i){i.checkShow=!0,i.searchShow=!0,i.focusShow=!0,i.status=t.status,i.type=e.filterEvent.has(i.event)?\"sdk\":\"cus\",i.verifyType=t.verifyType?\"verify\":\"no\",i.info=\"\",\"fail\"===t.status&&(i.info={message:\"code: \"+t.code+\", msg: \"+(t.msg||t.failType)})})),e.updateEvent(n)}return}}))},e.prototype.addLintener=function(){var e=this;window.addEventListener(\"message\",(function(t){if(t&&t.data&&\"devtool:web:ready\"===t.data.type){if(e.devToolOrigin=t.origin,e.devToolReady=!0,e.sendAlready)return;e.sendData(\"devtool:web:init\",{info:e.info,log:e.log,event:e.event,sdk_type:\"5.3.0_oversea\".includes(\"tob\")?\"tob\":\"inner\",appId:e.app_id}),e.sendAlready=!0}t&&t.data&&\"devtool:web:ssid\"===t.data.type&&e.collect.getToken((function(t){e.setSecondInfo(\"user\",\"sid\",t.tobid),e.updateInfo()}))}))},e.prototype.sendData=function(e,t){try{var i={type:e,payload:t};window&&window.postMessage(i,this.devToolOrigin)}catch(e){}},e.prototype.updateInfo=function(){this.devToolReady&&this.sendData(\"devtool:web:info\",this.info)},e.prototype.updateLog=function(e){this.devToolReady?this.sendData(\"devtool:web:log\",e):this.log.push(e)},e.prototype.updateEvent=function(e){this.devToolReady?this.sendData(\"devtool:web:event\",e):this.event.push(e)},e.prototype.loadDebuggerModule=function(){var e=\"#debugger-applog-web {\\n position: fixed;\\n width: 45px;\\n height: 45px;\\n background-image: url(\"+c(\"1fz22z22z1nz21z4mz4bz4bz1jz1dz49z1az1bz1lz49z22z1mz21z4az19z27z22z1cz21z1az1kz4az1az1mz1kz4bz1mz19z1hz4bz21z22z18z22z1gz1az4bz1jz1mz1ez49z21z1bz1iz4bz1az1mz1jz1jz1cz1az22z4bz1bz1cz24z22z1mz1mz1jz4bz18z1nz1nz1jz1mz1ez4az1nz1lz1e\")+\");\\n bottom: 5%;\\n right: 10%;\\n cursor: pointer;\\n z-index:100;\\n background-size: 45px;\\n }\",t=document.head||document.getElementsByTagName(\"head\")[0],i=document.createElement(\"style\");i.appendChild(document.createTextNode(e)),t.appendChild(i);var n=document.createElement(\"div\");n.innerHTML='
';var o=document.createElement(\"div\");o.innerHTML='
',document.getElementsByTagName(\"body\")[0].appendChild(n),document.getElementsByTagName(\"body\")[0].appendChild(o);var r=document.getElementById(\"debugger-applog-web\");r&&r.addEventListener(\"click\",(function(){window&&window.postMessage({type:\"devtool:web:open-draw\"},location.origin)}))},e}(),j={autotrack:{src:{sg:\"https://sf16-scmcdn-sg.ibytedtos.com/obj/static-sg/log-sdk/collect/5.0/plugin/autotrack.js\",va:\"https://sf16-scmcdn-va.ibytedtos.com/obj/static-us/log-sdk/collect/5.0/plugin/autotrack.js\"},object:\"LogAutoTrack\"},ab:{src:{sg:\"https://sf16-scmcdn-sg.ibytedtos.com/obj/static-sg/log-sdk/collect/5.0/plugin/ab.js\",va:\"https://sf16-scmcdn-va.ibytedtos.com/obj/static-us/log-sdk/collect/5.0/plugin/ab.js\"},object:\"LogAb\"},stay:{src:{sg:\"https://sf16-scmcdn-sg.ibytedtos.com/obj/static-sg/log-sdk/collect/5.0/plugin/stay.js\",va:\"https://sf16-scmcdn-va.ibytedtos.com/obj/static-us/log-sdk/collect/5.0/plugin/stay.js\"},object:\"LogStay\"},route:{src:{sg:\"https://sf16-scmcdn-sg.ibytedtos.com/obj/static-sg/log-sdk/collect/5.0/plugin/route.js\",va:\"https://sf16-scmcdn-va.ibytedtos.com/obj/static-us/log-sdk/collect/5.0/plugin/route.js\"},object:\"LogRoute\"},tracer:{src:{sg:\"https://sf16-scmcdn-sg.ibytedtos.com/obj/static-sg/log-sdk/collect/5.0/plugin/tracer.js\",va:\"https://sf16-scmcdn-va.ibytedtos.com/obj/static-us/log-sdk/collect/5.0/plugin/tracer.js\"},object:\"LogTracer\"},retry:{src:{sg:\"https://sf16-scmcdn-sg.ibytedtos.com/obj/static-sg/log-sdk/collect/5.0/plugin/retry.js\",va:\"https://sf16-scmcdn-va.ibytedtos.com/obj/static-us/log-sdk/collect/5.0/plugin/retry.js\"},object:\"LogRetry\"},visual:{src:{sg:\"https://sf16-scmcdn-sg.ibytedtos.com/obj/static-sg/log-sdk/collect/5.0/plugin/visual.js\",va:\"https://sf16-scmcdn-va.ibytedtos.com/obj/static-us/log-sdk/collect/5.0/plugin/visual.js\"},object:\"LogVisual\"}},H=[\"ab\",\"autotrack\",\"Stay\",\"store\",\"et\",\"profile\",\"cep\",\"heartbeat\",\"monitor\",\"route\",\"tracer\"],J=function(){function t(e){this.disableAutoPageView=!1,this.bridgeReport=!1,this.staging=!1,this.pluginInstances=[],this.sended=!1,this.started=!1,this.destroy=!1,this.sdkReady=!1,this.adapters={},this.loadType=\"base\",this.sdkStop=!1,this.name=e,this.hook=new o,this.remotePlugin=new Map,this.Types=A,this.adapters.storage=E,this.loadType=\"full\"}return t.usePlugin=function(e,i,n){if(i){for(var o=!1,r=0,s=t.plugins.length;r0&&this.changeListener.forEach((function(t){\"function\"==typeof t&&t(e)}))},t.prototype.configVersions=function(e){this.collect.configManager.setAbVersion(e)},t.prototype.getVar=function(e,t,i,n){if(!e)throw new Error(\"variable must not be empty\");if(void 0===t)throw new Error(\"variable no default value\");if(\"function\"!=typeof i)throw new Error(\"callback must be a function\");var o={name:e,defaultValue:t,callback:i,type:T.Var};this.collect.emit(v.DEBUGGER_MESSAGE,{type:v.DEBUGGER_MESSAGE_SDK,secType:\"AB\",info:\"SDK Execute GetVar\",level:\"info\",time:Date.now(),data:e,infoType:\"cus\"}),\"complete\"===this.fetchStatus&&\"complete\"===this.refreshFetchStatus?this.getRealVar(o,e,n):this.callbacks.push(o)},t.prototype.setAbUuid=function(e,t){this.collect.configManager.setAbUuidCache(e,t)},t.prototype.getRealVar=function(e,t,i){var n=e.name,o=e.defaultValue,s=e.callback,a=this.data;if(a){if(r(a[n])){var c=a[n].vid;return\"$ab_url\"===t?this.mulilinkVersions.includes(c)||this.mulilinkVersions.push(c):this.versions.includes(c)||this.versions.push(c),this.setAbUuid(c,i),this.updateVersions(),this.fechEvent(c,t,o),s(a[n].val),void this.collect.emit(v.DEBUGGER_MESSAGE,{type:v.DEBUGGER_MESSAGE_SDK,secType:\"AB\",info:\"SDK Execute GetVar, Exposure Experiment \"+n,level:\"info\",time:Date.now(),data:a[n],infoType:\"sdk\"})}this.collect.emit(v.DEBUGGER_MESSAGE,{type:v.DEBUGGER_MESSAGE_SDK,secType:\"AB\",info:\"SDK Execute GerVar Default Callback\",level:\"info\",time:Date.now(),data:this.data,infoType:\"sdk\"}),s(o)}else s(o)},t.prototype.getAllVars=function(e){if(\"function\"!=typeof e)throw new Error(\"callback must be a function\");var t={callback:e,type:T.All};this.collect.emit(v.DEBUGGER_MESSAGE,{type:v.DEBUGGER_MESSAGE_SDK,secType:\"AB\",info:\"SDK Execute GetAllVars\",level:\"info\",time:Date.now(),infoType:\"cus\"}),\"complete\"===this.fetchStatus&&\"complete\"===this.refreshFetchStatus?this.getRealAllVars(t):this.callbacks.push(t)},t.prototype.getRealAllVars=function(e){(0,e.callback)(this.data?JSON.parse(JSON.stringify(this.data)):{}),this.collect.emit(v.DEBUGGER_MESSAGE,{type:v.DEBUGGER_MESSAGE_SDK,secType:\"AB\",info:\"SDK Execute GetAllVars Callback\",level:\"info\",time:Date.now(),data:this.data,infoType:\"sdk\"})},t.prototype.fechEvent=function(e,t,i){try{if(this.config.disable_track_event)return;if(!e)return;var n=this.collect.configManager.get(),o=n.header,r=n.user,s=this.getABCache(),a=r[this.ab_user_mode]||r.user_unique_id;if(s&&s.uuid&&s.uuid!==a)return;var c={event:\"abtest_exposure\",ab_sdk_version:\"\"+e,params:JSON.stringify({app_id:this.config.appId,ab_url:\"$ab_url\"===t?i:window.location.href,data:this.data}),local_time_ms:Date.now()};o.custom=JSON.stringify(o.custom);var l={events:[c],user:r,header:o};this.reportExposure(l,t)}catch(e){this.collect.emit(v.DEBUGGER_MESSAGE,{type:v.DEBUGGER_MESSAGE_SDK,info:\"SDK Something Error\",level:\"error\",time:Date.now(),data:e.message,infoType:\"sdk\"})}},t.prototype.reportExposure=function(e,t){var i=this;this.exposureCache.push(e),this.reportTimeout&&clearTimeout(this.reportTimeout),this.exposureCache.length>=this.exposureLimit?this.report(t):this.reportTimeout=setTimeout((function(){i.report(t),clearTimeout(i.reportTimeout)}),this.ab_batch_time)},t.prototype.report=function(e){var t=this;this.collect.requestManager.useRequest({url:this.reportUrl,data:this.exposureCache,timeout:2e4,useBeacon:\"$ab_url\"===e}),this.exposureCache.forEach((function(e){t.collect.emit(v.DEBUGGER_MESSAGE,{type:v.DEBUGGER_MESSAGE_EVENT,info:\"SDK Report Exposure Event Success\",time:Date.now(),data:[e],code:200,status:\"success\",infoType:\"sdk\"})})),this.exposureCache=[]},t.prototype.setExternalAbVersion=function(e){this.extVersions=[e],this.updateVersions()},t.prototype.getABconfig=function(e,t){var i=Object.keys(e);i&&i.length&&this.collect.configManager.set(e),this.fetchAB(t)},t.prototype.get=function(e){return this.cacheStorgae.getItem(e)},t.prototype.set=function(e,t){this.cacheStorgae.setItem(e,t),this.collect.configManager.setAbCache(t),this.collect.event(\"abtest_cache\",{env_uuid:this.collect.configManager.get(\"user\").user_unique_id||\"\",cache:JSON.stringify(t)})},t.prototype.getABCache=function(e){var t={ab_version:[],ab_ext_version:[],ab_version_multilink:[],data:null,timestamp:+new Date,uuid:\"\"};return t=this.get(this.abKey)||t,e?t[e]:t},t.prototype.updateABCache=function(){var e=this.getABCache();e.ab_version_multilink=this.mulilinkVersions,e.ab_ext_version=this.extVersions,e.ab_version=this.versions,e.timestamp=Date.now(),this.set(this.abKey,e)},t.prototype.setAbCache=function(e){var t=this.getABCache();t.data=this.data,t.uuid=e,t.timestamp=Date.now(),this.set(this.abKey,t)},t.prototype.clearCache=function(){this.refreshFetchStatus=\"ing\",this.data={},this.extVersions=[],this.mulilinkVersions=[],this.versions=[],this.collect.configManager.clearAbCache()},t.prototype.openOverlayer=function(e){var t=this;if(function(){if(!document.getElementById(W)){var e=\"body { opacity: 0 !important; }\",t=document.head||document.getElementsByTagName(\"head\")[0],i=document.createElement(\"style\");i.id=W,i.type=\"text/css\",i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e)),t.appendChild(i)}}(),e)var i=setTimeout((function(){t.closeOverlayer(),clearTimeout(i)}),e)},t.prototype.closeOverlayer=function(){var e;(e=document.getElementById(W))&&e.parentElement.removeChild(e)},t.prototype.fetchComplete=function(e,t){var i=this;try{if(e&&\"[object Object]\"==Object.prototype.toString.call(e)){this.data=e,this.setAbCache(t);var n=[];Object.keys(e).forEach((function(t){var i=e[t].vid;i&&n.push(i)})),this.versions=this.versions.filter((function(e){return n.includes(e)}));var o=e.$ab_url,r=e.$ab_modification;if(r&&r.val&&this.enable_ab_visual){if(this.collect.destroy)return}else if(o&&this.enable_multilink){this.mulilinkVersions=this.mulilinkVersions.filter((function(e){return n.includes(e)}));var s=o.val,a=o.vid;s&&a&&this.getVar(\"$ab_url\",s,(function(){i.editMode||(s!==window.location.href?setTimeout((function(){if(!i.collect.destroy){var e=\"\"+s;e=-1===e.indexOf(\"http\")?\"https://\"+e:e,u(e).host!==location.host?e=e+\"&vid=\"+a:window.history.replaceState(\"\",\"\",e),window.location.href=e}}),100):i.closeOverlayer())}))}this.updateVersions()}else this.closeOverlayer();this.callbacks.forEach((function(e){return i[e.type===T.Var?\"getRealVar\":\"getRealAllVars\"](e,\"\")})),this.callbacks=[]}catch(e){}},t.prototype.fetchAB=function(t){var i=this,n=this.collect.configManager.get(),o={header:e(e(e({aid:this.config.app_id},n.user||{}),n.header||{}),{ab_sdk_version:this.collect.configManager.getAbVersion(),ab_url:window.location.href})};this.collect.emit(v.DEBUGGER_MESSAGE,{type:v.DEBUGGER_MESSAGE_SDK,info:\"SDK Fetch AB Request\",level:\"info\",logType:\"fetch\",time:Date.now(),data:o,infoType:\"sdk\"});var r=n.user[this.ab_user_mode]||n.user.user_unique_id;this.collect.requestManager.useRequest({url:this.fetchUrl,data:o,success:function(e){i.fetchStatus=\"complete\",i.refreshFetchStatus=\"complete\";var n=e.data;\"success\"===e.message?(i.fetchComplete(n,r),t&&t(n)):(i.fetchComplete(null,r),t&&t(null)),i.collect.emit(i.types.AbComplete,n),i.collect.emit(v.DEBUGGER_MESSAGE,{type:v.DEBUGGER_MESSAGE_SDK,secType:\"AB\",info:\"SDK Fetch AB Request Success\",level:\"info\",logType:\"fetch\",time:Date.now(),data:n,infoType:\"sdk\"})},fail:function(){i.fetchStatus=\"complete\",i.refreshFetchStatus=\"complete\",i.fetchComplete(null,r),i.collect.emit(i.types.AbTimeout),t&&t(null),i.collect.emit(v.DEBUGGER_MESSAGE,{type:v.DEBUGGER_MESSAGE_SDK,secType:\"AB\",info:\"SDK Fetch AB Request Network Error\",level:\"error\",logType:\"fetch\",time:Date.now(),infoType:\"sdk\"})},timeout:this.timeout})},t.prototype.filterUrl=function(e){try{var t=\"\";-1!==e.indexOf(\"&multilink=true\")?t=\"&multilink=true[\\0-ÿ]*\":-1!==e.indexOf(\"?multilink=true\")&&(t=\"\\\\?multilink=true[\\0-ÿ]*\");var i=new RegExp(t,\"g\");e=e.replace(i,\"\")}catch(e){}return e},t}(),X=function(){function e(){}return e.prototype.apply=function(e,t){var i=this;if(t.event_verify_url)if(\"string\"==typeof t.event_verify_url){if(this.url=t.event_verify_url+\"/v1/list_test\",this.url){var n=e.Types;e.on(n.SubmitBefore,(function(t){e.requestManager.useBeacon({url:i.url,data:t}),e.emit(v.DEBUGGER_MESSAGE,{type:v.DEBUGGER_MESSAGE_EVENT,info:\"SDK Report ByteIo Verify Request\",time:Date.now(),data:t,code:200,status:\"success\",verifyType:!0})}))}}else console.log(\"please use correct et_test url\")},e}(),$=function(){function t(e,t){this.maxDuration=432e5,this.aliveDTime=6e4,this.options={aliveName:\"predefine_page_alive\",params:{}},this.focusState=!0,this.collect=e,this.config=t,this.pageStartTime=Date.now(),this.sessionStartTime=this.pageStartTime,this.timerHandler=null,r(t.enable_stay_duration)&&(this.options=Object.assign(this.options,t.enable_stay_duration)),this.hard=this.options.mode&&\"hard\"===this.options.mode,this.focusState=document.hasFocus()}return t.prototype.setParams=function(e,t,i){this.set_path=e,this.set_url=i,this.set_title=t},t.prototype.enable=function(e,t,i){this.url_path=e,this.url=i,this.title=t,this.disableCallback=this.enablePageAlive(),this.hard&&(this.removeMode=this.hardMode())},t.prototype.disable=function(){this.disableCallback(),this.pageStartTime=Date.now()},t.prototype.sendEvent=function(t,i){void 0===i&&(i=!1);var n=i?this.aliveDTime:Date.now()-this.sessionStartTime;n<0||n>this.aliveDTime||Date.now()-this.pageStartTime>this.maxDuration||i&&\"hidden\"===document.visibilityState||this.hard&&!this.focusState||(this.collect.beconEvent(this.options.aliveName,e({url_path:this.getParams(\"url_path\"),title:this.getParams(\"title\"),url:this.getParams(\"url\"),duration:n,is_support_visibility_change:h(),startTime:this.sessionStartTime,hidden:document.visibilityState,leave:t,mode:this.hard?\"hard\":\"normal\",focusState:this.focusState},this.options.params)),this.sessionStartTime=Date.now())},t.prototype.getParams=function(e){switch(e){case\"url_path\":return this.set_path||this.url_path||location.pathname;case\"title\":return this.set_title||this.title||document.title||location.pathname;case\"url\":return this.set_url||this.url||location.href}},t.prototype.setUpTimer=function(){var e=this;return this.timerHandler&&clearInterval(this.timerHandler),setInterval((function(){Date.now()-e.sessionStartTime>e.aliveDTime&&e.sendEvent(!1,!0)}),1e3)},t.prototype.visibilitychange=function(){\"hidden\"===document.visibilityState?this.timerHandler&&(clearInterval(this.timerHandler),this.sendEvent(!1)):\"visible\"===document.visibilityState&&(this.sessionStartTime=Date.now(),this.timerHandler=this.setUpTimer())},t.prototype.beforeunload=function(){document.hidden||this.sendEvent(!0)},t.prototype.enablePageAlive=function(){var e=this;this.timerHandler=this.setUpTimer();var t=this.visibilitychange.bind(this),i=this.beforeunload.bind(this);return document.addEventListener(\"visibilitychange\",t),l(i),function(){e.beforeunload(),document.removeEventListener(\"visibilitychange\",t),window.removeEventListener(\"beforeunload\",i),window.removeEventListener(\"pagehide\",i)}},t.prototype.hardMode=function(){var e=this,t=function(){e.timerHandler&&(clearInterval(e.timerHandler),e.sendEvent(!1)),e.focusState=!1},i=function(){e.focusState=!0,e.sessionStartTime=Date.now(),e.timerHandler=e.setUpTimer()};return window.addEventListener(\"blur\",t),window.addEventListener(\"focus\",i),function(){window.removeEventListener(\"blur\",t),window.removeEventListener(\"focus\",i)}},t}(),Y=function(){function t(e,t){var i=this;this.maxDuration=432e5,this.aliveDTime=6e4,this.options={closeName:\"predefine_page_close\",params:{}},this.focusState=!0,this.visibilitychange=function(){\"hidden\"===document.visibilityState?i.activeEndTime=Date.now():\"visible\"===document.visibilityState&&(i.activeEndTime&&(i.totalTime+=i.activeEndTime-i.activeStartTime,i.activeTimes+=1),i.activeEndTime=void 0,i.activeStartTime=Date.now())},this.beforeunload=function(){if(i.totalTime+=(i.activeEndTime||Date.now())-i.activeStartTime,i.config.autotrack){try{window.sessionStorage.setItem(\"_tea_cache_duration\",JSON.stringify({duration:i.totalTime,page_title:document.title||location.pathname}))}catch(e){}}i.sendEventPageClose()},this.collect=e,this.config=t,this.maxDuration=t.maxDuration||864e5,this.pageStartTime=Date.now(),r(t.enable_stay_duration)&&(this.options=Object.assign(this.options,t.enable_stay_duration)),this.hard=this.options.mode&&\"hard\"===this.options.mode,this.focusState=document.hasFocus(),this.resetData()}return t.prototype.setParams=function(e,t,i){this.set_path=e,this.set_url=i,this.set_title=t},t.prototype.resetParams=function(e,t,i){this.url_path=e,this.url=i,this.title=t},t.prototype.enable=function(e,t,i){this.url_path=e,this.url=i,this.title=t,this.disableCallback=this.enablePageClose(),this.hard&&(this.removeMode=this.hardMode())},t.prototype.disable=function(){this.disableCallback()},t.prototype.resetData=function(){this.activeStartTime=void 0===this.activeStartTime?this.pageStartTime:Date.now(),this.activeEndTime=void 0,this.activeTimes=1,this.totalTime=0,this.resetParams(location.pathname,document.title,location.href)},t.prototype.sendEventPageClose=function(){var t=Date.now()-this.pageStartTime;this.totalTime<0||t<0||this.totalTime>=this.maxDuration||this.hard&&!this.focusState||(this.collect.beconEvent(this.options.closeName,e({url_path:this.getParams(\"url_path\"),title:this.getParams(\"title\"),url:this.getParams(\"url\"),active_times:this.activeTimes,duration:this.totalTime,total_duration:t,is_support_visibility_change:h(),mode:this.hard?\"hard\":\"normal\",focusState:this.focusState},this.options.params)),this.pageStartTime=Date.now(),this.resetData())},t.prototype.getParams=function(e){switch(e){case\"url_path\":return this.set_path||this.url_path||location.pathname;case\"title\":return this.set_title||this.title||document.title||location.pathname;case\"url\":return this.set_url||this.url||location.href}},t.prototype.enablePageClose=function(){var e=this,t=this.visibilitychange.bind(this),i=this.beforeunload.bind(this);return document.addEventListener(\"visibilitychange\",t),l(i),function(){e.beforeunload(),document.removeEventListener(\"visibilitychange\",t),window.removeEventListener(\"beforeunload\",i),window.removeEventListener(\"pagehide\",i)}},t.prototype.hardMode=function(){var e=this,t=function(){e.focusState=!1},i=function(){e.focusState=!0};return window.addEventListener(\"blur\",t),window.addEventListener(\"focus\",i),function(){window.removeEventListener(\"blur\",t),window.removeEventListener(\"focus\",i)}},t}(),Z=function(){function e(){}return e.prototype.apply=function(e,t){var i=this;if(this.collect=e,this.config=t,this.config.enable_stay_duration){this.title=document.title||location.pathname,this.url=location.href,this.url_path=location.pathname,this.pageAlive=new $(e,t),this.pageClose=new Y(e,t);var n=this.collect.Types;this.collect.on(n.ResetStay,(function(e){var t=e.url_path,n=e.title,o=e.url;i.resetStayDuration(t,n,o)})),this.collect.on(n.RouteChange,(function(e){e.init||t.disable_route_report||i.resetStayDuration()})),this.collect.on(n.SetStay,(function(e){var t=e.url_path,n=e.title,o=e.url;i.setStayParmas(t,n,o)})),this.enable(this.url_path,this.title,this.url),this.ready(n.Stay),this.collect.emit(n.StayReady)}},e.prototype.ready=function(e){var t=this;if(this.collect.set(e),this.collect.hook._hooksCache.hasOwnProperty(e)){var i=this.collect.hook._hooksCache[e];if(!Object.keys(i).length)return;var n=function(e){i[e].length&&i[e].forEach((function(i){t.collect.hook.emit(e,i)}))};for(var o in i)n(o)}},e.prototype.enable=function(e,t,i){this.pageAlive.enable(e,t,i),this.pageClose.enable(e,t,i)},e.prototype.disable=function(){this.pageAlive.disable(),this.pageClose.disable()},e.prototype.setStayParmas=function(e,t,i){void 0===e&&(e=\"\"),void 0===t&&(t=\"\"),void 0===i&&(i=\"\"),this.pageAlive.setParams(e,t,i),this.pageClose.setParams(e,t,i),this.collect.emit(v.DEBUGGER_MESSAGE,{type:v.DEBUGGER_MESSAGE_SDK,info:\"SDK Execute resetStayParams\",level:\"info\",time:Date.now(),data:{url_path:e,title:t,url:i}})},e.prototype.reset=function(e,t,i){this.disable(),this.enable(e,t,i)},e.prototype.resetStayDuration=function(e,t,i){this.reset(e,t,i),this.collect.emit(v.DEBUGGER_MESSAGE,{type:v.DEBUGGER_MESSAGE_SDK,info:\"SDK Execute resetStayDuration\",level:\"info\",time:Date.now(),data:{url_path:e,title:t,url:i}})},e}(),Q=function(){function e(){var e=this;this.setInterval=function(){e.clearIntervalFunc=function(e,t){void 0===e&&(e=function(){}),void 0===t&&(t=1e3);var i,n=Date.now()+t;return i=window.setTimeout((function o(){var r=Date.now()-n;e(),n+=t,i=window.setTimeout(o,Math.max(0,t-r))}),t),function(){window.clearTimeout(i)}}((function(){e.isSessionhasEvent&&e.endCurrentSession()}),e.sessionInterval)},this.clearInterval=function(){e.clearIntervalFunc&&e.clearIntervalFunc()}}return e.prototype.apply=function(e,t){var i=this;if(this.collect=e,!t.disable_heartbeat){this.sessionInterval=6e4,this.startTime=0,this.lastTime=0,this.setInterval();var n=this.collect.Types;this.collect.on(n.SessionReset,(function(){i.process()}))}},e.prototype.endCurrentSession=function(){this.collect.event(\"_be_active\",{start_time:this.startTime,end_time:this.lastTime,url:window.location.href,referrer:window.document.referrer,title:document.title||location.pathname}),this.isSessionhasEvent=!1,this.startTime=0},e.prototype.process=function(){this.isSessionhasEvent||(this.isSessionhasEvent=!0,this.startTime=+new Date);var e=this.lastTime||+new Date;this.lastTime=+new Date,this.lastTime-e>this.sessionInterval&&(this.clearInterval(),this.endCurrentSession(),this.setInterval())},e}(),ee=function(){function e(){}return e.prototype.apply=function(e,t){var i=this;if(this.collect=e,this.config=t,!this.config.channel_domain&&!t.disable_track_event&&!t.disable_sdk_monitor){this.url=e.configManager.getUrl(\"event\");var n=this.collect.Types;this.collect.on(n.Ready,(function(){i.sdkOnload()})),this.collect.on(n.SubmitError,(function(e){var t=e.type,n=e.eventData,o=e.errorCode;\"f_data\"===t&&i.sdkError(n,o)}))}},e.prototype.sdkOnload=function(){var e=this;try{var t=this.collect.configManager.get(),i=t.header,n=t.user,o=i.app_id,r=i.app_name,s=i.sdk_version,a=n.web_id,c={events:[{event:\"onload\",params:JSON.stringify({app_id:o,app_name:r||\"\",sdk_version:s,sdk_type:\"npm\",sdk_config:this.config,sdk_desc:\"TOC_OVERSEA\"}),local_time_ms:Date.now()}],user:{user_unique_id:a},header:{}};setTimeout((function(){e.collect.requestManager.useRequest({url:e.url,data:[c],timeout:3e4,app_key:\"566f58151b0ed37e\",forceXhr:!0})}),16)}catch(e){}},e.prototype.sdkError=function(e,t){var i=this;try{var n=e[0],o=n.user,r=n.header,s=[];e.forEach((function(e){e.events.forEach((function(e){s.push(e)}))}));var a={events:s.map((function(e){return{event:\"on_error\",params:JSON.stringify({error_code:t,app_id:r.app_id,app_name:r.app_name||\"\",error_event:e.event,sdk_version:r.sdk_version,local_time_ms:e.local_time_ms,tea_event_index:Date.now(),params:e.params,header:JSON.stringify(r),user:JSON.stringify(o)}),local_time_ms:Date.now()}})),user:{user_unique_id:o.user_unique_id},header:{}};setTimeout((function(){i.collect.requestManager.useRequest({url:i.url,data:[a],timeout:3e4,app_key:\"566f58151b0ed37e\",forceXhr:!0})}),16)}catch(e){}},e}();function te(e,t){if(void 0===t&&(t=\"list\"),!e)return!1;if(t&&\"list\"===t){if([\"LI\",\"TR\",\"DL\"].includes(e.nodeName))return!0;if(e.dataset&&e.dataset.hasOwnProperty(\"teaIdx\"))return!0;if(e.hasAttribute&&e.hasAttribute(\"data-tea-idx\"))return!0}else{if([\"A\",\"BUTTON\"].includes(e.nodeName))return!0;if(e.dataset&&e.dataset.hasOwnProperty(\"teaContainer\"))return!0;if(e.hasAttribute&&e.hasAttribute(\"data-tea-container\"))return!0}return!1}function ie(e){for(var t=e;t&&!te(t,\"container\");){if(\"HTML\"===t.nodeName||\"BODY\"===t.nodeName)return e;t=t.parentElement}return t||e}function ne(e){var t=\"\";return 3===e.nodeType?t=e.textContent.trim():e.dataset&&e.dataset.hasOwnProperty(\"teaTitle\")||e.hasAttribute(\"ata-tea-title\")?t=e.getAttribute(\"data-tea-title\"):e.hasAttribute(\"title\")?t=e.getAttribute(\"title\"):\"INPUT\"===e.nodeName&&[\"button\",\"submit\"].includes(e.getAttribute(\"type\"))?t=e.getAttribute(\"value\"):\"IMG\"===e.nodeName&&e.getAttribute(\"alt\")&&(t=e.getAttribute(\"alt\")),t.slice(0,200)}var oe=function(e,t){return e.hasAttribute?e.hasAttribute(t):e.attributes?!(!e.attributes[t]||!e.attributes[t].specified):void 0},re=function(e,t){if(\"string\"==typeof t)return oe(e,t);if(s(t)){for(var i=!1,n=0;n0}))}return!0}(i)&&!t.svg))})(e.target,o.options)&&o.eventHandel({eventType:\"dom\",eventName:\"click\"},e)},this.changeEvent=function(e){o.eventHandel({eventType:\"dom\",eventName:\"change\"},e)},this.submitEvent=function(e){o.eventHandel({eventType:\"dom\",eventName:\"submit\"},e)},this.getPageViewEvent=function(t,i){i&&\"pushState\"===i&&o.eventHandel({eventType:\"dom\",eventName:\"beat\"},e({beat_type:0},t)),o.eventHandel({eventType:\"dom\",eventName:\"page_view\"},t)},this.getPageLoadEvent=function(e){o.eventHandel({eventType:\"dom\",eventName:\"page_statistics\"},{lcp:e})},this.config=n.getConfig().eventConfig,this.collect=i,this.options=t,this.beatTime=t.beat}return t.prototype.init=function(e){this.eventHandel=e;var t=this.config.mode;this.addListener(t)},t.prototype.addListener=function(e){var t=this;if(\"proxy-capturing\"===e){if(this.config.click&&window.document.addEventListener(\"click\",this.clickEvent,!0),this.config.change&&window.document.addEventListener(\"change\",this.changeEvent,!0),this.config.submit&&window.document.addEventListener(\"submit\",this.submitEvent,!0),this.config.pv){this.collect.on(\"route-change\",(function(e){var i=e.config,n=e.name;t.getPageViewEvent(i,n),t.pageView=!0}));var i=setTimeout((function(){t.pageView||(t.getPageViewEvent(t.getDefaultConfig()),t.pageView=!0,clearTimeout(i))}),2e3)}if(this.config.beat){try{\"complete\"===document.readyState?this.beatEvent(this.beatTime):window.addEventListener(\"load\",(function(){t.beatEvent(t.beatTime)}));var n=0,o=null;window.addEventListener(\"scroll\",(function(){clearTimeout(o),o=setTimeout(r,500),n=document.documentElement.scrollTop||document.body.scrollTop}));var r=function(){(document.documentElement.scrollTop||document.body.scrollTop)==n&&t.eventHandel({eventType:\"dom\",eventName:\"beat\"},{beat_type:1})}}catch(e){}try{var s=window.performance&&window.performance.getEntriesByType(\"paint\");if(s&&s.length)new PerformanceObserver((function(e){var i=e.getEntries(),n=i[i.length-1],o=n.renderTime||n.loadTime;t.statistics||(t.getPageLoadEvent(o),t.statistics=!0)})).observe({entryTypes:[\"largest-contentful-paint\"]}),setTimeout((function(){t.statistics||(t.getPageLoadEvent(s[0].startTime||0),t.statistics=!0)}),2e3);else this.getPageLoadEvent(0)}catch(e){this.getPageLoadEvent(0)}}}},t.prototype.removeListener=function(){window.document.removeEventListener(\"click\",this.clickEvent,!0),window.document.removeEventListener(\"change\",this.changeEvent,!0),window.document.removeEventListener(\"submit\",this.submitEvent,!0)},t.prototype.beatEvent=function(e){var t=this;try{var i;this.eventHandel({eventType:\"dom\",eventName:\"beat\"},{beat_type:3}),this.beatTime&&(i=setInterval((function(){t.eventHandel({eventType:\"dom\",eventName:\"beat\"},{beat_type:2})}),e)),l((function(){t.eventHandel({eventType:\"dom\",eventName:\"beat\",eventSend:\"becon\"},{beat_type:0}),t.beatTime&&clearInterval(i)}))}catch(e){}},t.prototype.getDefaultConfig=function(){return{is_html:1,url:location.href,referrer:document.referrer,page_key:location.href,refer_page_key:document.referrer,page_title:document.title||location.pathname,page_manual_key:\"\",refer_page_manual_key:\"\",refer_page_title:\"\",page_path:location.pathname,page_host:location.host}},t}(),ae={eventConfig:{mode:\"proxy-capturing\",submit:!1,click:!0,change:!1,pv:!0,beat:!0,hashTag:!1,impr:!1},scoutConfig:{mode:\"xpath\"}},ce=function(){function e(e,t){this.config=e,this.config.eventConfig=Object.assign(this.config.eventConfig,t)}return e.prototype.getConfig=function(){return this.config},e.prototype.setConfig=function(e){return this.config=e},e}();function le(e){for(var t=[];null!==e.parentElement;)t.push(e),e=e.parentElement;var i=[],n=[];return t.forEach((function(e){var t=function(e){if(null===e)return{str:\"\",index:0};var t=0,i=e.parentElement;if(i)for(var n=i.children,o=0;o=0?i-o:0,a=n-r>=0?n-r:0;return{touch_x:Math.floor(s),touch_y:Math.floor(a)}}(e,r),c=r.element_width,l=r.element_height,h=a.touch_x,u=a.touch_y,p=le(t),d=p.element_path,f=p.positions,g=function(e){var t=ie(e),i=[];return function e(t){var n=ne(t);if(n&&-1===i.indexOf(n)&&i.push(n),t.childNodes.length>0)for(var o=t.childNodes,r=0;r0)for(var o=t.childNodes,r=0;r0?o:0)),t.page_start_ms=n.navigationStart}catch(e){console.log(\"page_statistics event error \"+JSON.stringify(e))}return t},t.prototype.handleBeadtEvent=function(e){e.event=this.eventName.beat,e.page_key=window.location.href,e.is_html=1,e.page_title=document.title,e.page_manual_key=this.initConfig.autotrack.page_manual_key||\"\";try{e.page_viewport_width=window.innerWidth,e.page_viewport_height=window.innerHeight,e.page_total_width=document.documentElement.scrollWidth,e.page_total_height=document.documentElement.scrollHeight,e.scroll_width=document.documentElement.scrollLeft+window.innerWidth,e.scroll_height=document.documentElement.scrollTop+window.innerHeight,e.since_page_start_ms=Date.now()-window.performance.timing.navigationStart,e.page_start_ms=window.performance.timing.navigationStart}catch(e){console.log(\"beat event error \"+JSON.stringify(e))}return e},t}(),de=function(){function e(e){this.collect=e,this.eventNameList=[\"report_click_event\",\"report_change_event\",\"report_submit_event\",\"report_exposure_event\",\"report_page_view_event\",\"report_page_statistics_event\",\"report_beat_event\"]}return e.prototype.send=function(e,t){var i=e.eventSend,n=t.event;delete t.event,i&&\"becon\"===i?this.collect.beconEvent(n,t):this.collect.event(n,t)},e.prototype.get=function(e,t){var i=Object.assign({headers:{\"content-type\":\"application/json\"},method:\"GET\"},t);fetch(e,i)},e.prototype.post=function(e,t){var i=Object.assign({headers:{\"content-type\":\"application/json\"},method:\"POST\"},t);fetch(e,i)},e}(),fe={},ge=[];function me(e,t,i,n){var o=e&&e.source||window.opener||window.parent,r=e&&e.origin||n||\"*\",s={type:t,payload:i};o.postMessage(JSON.stringify(s),r)}function _e(e){if(ge.some((function(e){return\"*\"===e}))||ge.some((function(t){return e.origin.indexOf(t)>-1}))){var t=e.data;if(\"string\"==typeof e.data)try{t=JSON.parse(e.data)}catch(e){t=void 0}if(!t)return;var i=t.type,n=t.payload;fe[i]&&fe[i].forEach((function(t){\"function\"==typeof t&&t(e,n)}))}}var ve=!1;function ye(e){var t,i,n,o,r=e.event,s=e.editorUrl,a=e.autoTrackInstance;ve||(ve=!0,t=s,i=function(){me(r,\"editorScriptloadSuccess\"),a.destroy()},n=function(){r&&me(r,\"editorScriptloadError\"),ve=!1},(o=document.createElement(\"script\")).src=t,o.onerror=function(){n(t)},o.onload=function(){i()},document.getElementsByTagName(\"head\")[0].appendChild(o))}function be(t,i){window.TEAVisualEditor=window.TEAVisualEditor||{},window.TEAVisualEditor.appId=i.app_id;var n,o,r,s,a,c=i.channel_domain,l=\"\";if((n=[\"*\"]).length&&n.forEach((function(e){ge.push(e)})),c){var h,u=\"\";try{var p=window.performance.getEntriesByType(\"resource\");if(p&&p.length&&(p.forEach((function(e){\"script\"===e.initiatorType&&e.name&&-1!==e.name.indexOf(\"collect\")&&(u=e.name)})),u&&(h=u.split(\"/\"))&&h.length)){l=\"https:/\";for(var d=2;d=0&&c<=window.innerHeight&&s>=0&&a<=window.innerWidth&&(i.visible=!0,this.EventHandle({eventType:\"dom\",eventName:\"exposure\"},e))}}else i._observeId=this.count,i.visible=!1,this.observeMap.set(this.count,i),this.observe(i),this.count++},e.prototype.exposureRemove=function(e){this.observeMap.has(e._observeId)&&(this.observeMap.delete(e._observeId),this.unobserve(e))},e.prototype.exposureEvent=function(e){if(e.intersectionRatio>=this.Ratio&&e.isIntersecting){if(\"0\"===e.target.style.opacity||\"hidden\"===e.target.style.visibility)return;if(!0===e.target.visible)return;e.target.visible=!0,this.EventHandle({eventType:\"dom\",eventName:\"exposure\"},e)}else e.target.visible=!1},e.prototype.observe=function(e){this.instance.observe(e)},e.prototype.unobserve=function(e){this.instance.unobserve(e)},e._observer_instance=null,e._observer_map=new Map,e}(),ke=function(){function e(e,t){e.autotrack&&e.autotrack.exposure&&(this._intersection=new we(e,t),this._observer=new Se(this._intersection),this.initObserver())}return e.prototype.initObserver=function(){var e=this;Array.prototype.forEach.call(document.querySelectorAll(\"[data-exposure]\"),(function(t){e._intersection.exposureAdd(t,\"intersect\")}))},e}(),ze={hashTag:!1,impr:!1},De=function(){function e(){}return e.prototype.apply=function(e,t){if(this.autoTrackStart=!1,this.collect=e,this.config=t,t.autotrack){var i=e.Types;t.autotrack&&t.autotrack.collect_url&&!t.autotrack.collect_url()||(this.ready(i.Autotrack),this.collect.emit(i.AutotrackReady))}},e.prototype.ready=function(e){this.collect.set(e);var t=this.config.autotrack;t=\"object\"==typeof t?t:{},t=Object.assign(ze,t),this.destroyed=!1,this.options=t,this.Config=new ce(ae,this.options),this.Exposure=new ke(this.config,this.handle.bind(this)),this.Listener=new se(t,this.collect,this.Config),this.EventHandle=new pe(this.config,t),this.Request=new de(this.collect),this.autoTrackStart=!0,this.init(),be(this,this.config)},e.prototype.init=function(){this.Listener.init(this.handle.bind(this)),\"base\"===this.collect.loadType&&(window.opener||window.parent).postMessage(\"[tea-sdk]ready\",\"*\")},e.prototype.handle=function(e,t){\"dom\"===e.eventType&&this.handleDom(e,t)},e.prototype.handleDom=function(e,t){try{var i=e.eventName;if(\"click\"===i||\"exposure\"===i||\"change\"===i||\"submit\"===i){var n=this.EventHandle.handleEvent(t,i);null!==n&&this.Request.send({eventType:\"custom\",eventName:\"report_\"+i+\"_event\",extra:{methods:\"GET\"}},n)}else if(\"page_view\"===i||\"page_statistics\"===i){var o=void 0;o=\"page_view\"===i?this.EventHandle.handleViewEvent(t):this.EventHandle.handleStatisticsEvent(t),this.Request.send({eventType:\"custom\",eventName:\"report_${eventName}_event\",extra:{methods:\"GET\"}},o)}else if(\"beat\"===i){var r=this.EventHandle.handleBeadtEvent(t),s=e.eventSend;this.Request.send({eventType:\"custom\",eventName:\"report_${eventName}_event\",extra:{methods:\"GET\"},eventSend:s},r)}}catch(e){console.log(\"handel dom event error \"+JSON.stringify(e))}},e.prototype.destroy=function(){if(!this.autoTrackStart)return console.warn(\"engine is undefined, make sure you have called autoTrack.start()\");this.autoTrackStart=!1,this.Listener.removeListener()},e}();!function(e){e.Net=\"net\",e.FailNet=\"f_net\",e.FailData=\"f_data\"}(Ee||(Ee={}));var Te={pv:[\"predefine_pageview\"],sdk:[\"_be_active\",\"predefine_page_alive\",\"predefine_page_close\",\"__profile_set\",\"__profile_set_once\",\"__profile_increment\",\"__profile_unset\",\"__profile_append\"],autotrack:[\"bav2b_click\",\"bav2b_page\",\"bav2b_beat\",\"bav2b_page_statistics\",\"__bav_click\",\"__bav_page\",\"__bav_beat\",\"__bav_page_statistics\"]},Ae=function(){function e(){}return e.prototype.apply=function(e,t){var i=this;if(this.ready=t.app_id&&t.enable_tracer&&!t.disable_track_event,this.ready){this.limit={pv:1,sdk:3,autotrack:3,log:3},this.errorCode={f_net:0,f_data:0},this.tracerCache=new Map,this.collect=e,this.appid=t.app_id,this.reportUrl=e.configManager.getUrl(\"event\");var n=this.collect.Types;e.adapters.fetch;this.collect.on(n.Event,(function(e){s(e)?e.forEach((function(e){i.addCount(\"log\")})):i.addCount(\"log\")})),this.collect.on(n.SubmitError,(function(e){var t=e.type,n=e.eventDate,o=e.errorCode,r=e.response;i.addErrorCount(n,t,o,r)})),this.listener(),this.collect.emit(n.TracerReady)}},e.prototype.addCount=function(e,t,i){void 0===t&&(t=\"net\"),void 0===i&&(i=1);try{this.tracerCache||(this.tracerCache=new Map);var n=void 0;if(this.tracerCache.has(e)){if((o=this.tracerCache.get(e)).has(t))n=o.get(t).params.count,n++,o.set(t,this.processTracer(n,e,t));else n=i,o.set(t,this.processTracer(i,e,t))}else{var o=new Map;n=i,o.set(t,this.processTracer(i,e,t)),this.tracerCache.set(e,o)}\"net\"===t&&n>=this.limit[e]&&this.report(!1)}catch(e){console.log(e)}},e.prototype.addErrorCount=function(e,t,i,n){var o=this;try{if(e&&e.length){var r=e[0].events;r&&r.length&&(\"f_data\"===t?(n&&n.hasOwnProperty(\"sc\")?this.addCount(\"log\",t,r.length-n.sc):this.addCount(\"log\",t,r.length),this.errorCode[t]=i):r.forEach((function(e){var n=\"log\";for(var r in Te)if(-1!==Te[r].indexOf(e.event)){n=r;break}o.addCount(n,t,1),o.errorCode[t]=i})))}}catch(e){}},e.prototype.report=function(e){if(this.tracerCache){var t=[];this.tracerCache.forEach((function(e){console.log(e),e.forEach((function(e){t.push(e)}))})),t&&t.length&&this.sendTracer(t,e)}},e.prototype.sendTracer=function(e,t){try{var i=this.collect.eventManager.merge(e);this.collect.requestManager.useRequest({url:this.reportUrl,data:i,useBeacon:t}),this.tracerCache=null}catch(e){}},e.prototype.processTracer=function(e,t,i){try{var n={count:e,state:i,key:t,params_for_special:\"applog_trace\",aid:this.appid,platform:\"web\",_staging_flag:1,sdk_version:\"5.3.0_oversea\"};\"f_net\"!==i&&\"f_data\"!==i||(n.errorCode=this.errorCode[i]);var o=this.collect.processEvent(\"applog_trace\",n);if(o&&o.event)return delete o.is_bav,o}catch(e){console.warn(\"something error\")}},e.prototype.listener=function(){var e=this;document.addEventListener(\"visibilitychange\",(function(){\"hidden\"===document.visibilityState&&e.leavePage()})),l((function(){e.leavePage()}))},e.prototype.leavePage=function(){this.report(!0)},e}(),Ge=\"undefined\"!=typeof window?(window.LogPluginObject||(window.LogPluginObject={}),window.LogPluginObject):null,Me=function(){function e(){}return e.prototype.apply=function(e,t){this._plugin={},this.config=t,this.collect=e,this.channel=t.channel||\"cn\",this.loadExtend()},e.prototype.loadExtend=function(){var e=this;try{this.collect.remotePlugin.forEach((function(t,i){if(\"sdk\"===t)if(j.hasOwnProperty(i)){var n=j[i].object,o=\"\"+j[i].src[e.channel];e.exist(i,n,o)}else console.warn(\"your \"+i+\" is not exist,please check plugin name\");else\"object\"==typeof t&&(t.src?e.exist(i,t.call,t.src):e.process(i,t.instance,\"INSTANCE\"))}))}catch(e){this.collect.emit(v.DEBUGGER_MESSAGE,{type:v.DEBUGGER_MESSAGE_SDK,info:\"发生了异常\",level:\"error\",time:Date.now(),data:e.message}),console.log(\"load extend error\")}},e.prototype.exist=function(e,t,i){var n=this;Ge[t]?(this.process(e,Ge[t]),console.log(\"already has \"+e+\" plugin~\")):this.loadPlugin(e,i,(function(){n.process(e,Ge[t]),console.log(\" %c %s %s %s\",\"color: yellow; background-color: black;\",\"–\",\"load plugin:\"+e+\" success\",\"-\")}),(function(){console.log(\" %c %s %s %s\",\"color: red; background-color: yellow;\",\"–\",\"load plugin:\"+e+\" error\",\"-\")}))},e.prototype.process=function(e,t,i){try{if(i){var n=new t;n.apply&&n.apply(this.collect,this.config),console.log(\"excude \"+e+\" success\")}else t&&t(this.collect,this.config)}catch(t){this.collect.emit(v.DEBUGGER_MESSAGE,{type:v.DEBUGGER_MESSAGE_SDK,info:\"发生了异常\",level:\"error\",time:Date.now(),data:t.message}),console.log(\"excude \"+e+\" error, message:\"+t.message)}},e.prototype.loadPlugin=function(e,t,i,n){var o=this;try{var r=document.createElement(\"script\");r.src=t,this._plugin[e]||(this._plugin[e]=[]),this._plugin[e].push(i),r.onerror=function(){n(t)},r.onload=function(){o._plugin[e].forEach((function(e){e()}))},document.getElementsByTagName(\"head\")[0].appendChild(r)}catch(e){this.collect.emit(v.DEBUGGER_MESSAGE,{type:v.DEBUGGER_MESSAGE_SDK,info:\"发生了异常\",level:\"error\",time:Date.now(),data:e.message})}},e}(),Re=function(){function e(){this.autotrack=!1,this.spa=!1,this.cache={},this.allowHash=!1}return e.prototype.apply=function(e,t){if(t.spa||t.autotrack){var i=e.Types;this.collect=e,this.config=t,this.appid=t.app_id,this.allowHash=t.allow_hash,this.fncArray=new Map,this.setKey(),this.setLocation(),this.hack(),this.init(),this.listener(),e.emit(i.RouteReady)}},e.prototype.setKey=function(){var e=this.collect.adapters.storage;this.storage=new e(!1),this.cache_key=\"__tea_cache_refer_\"+this.appid,this.cache={refer_key:\"\",refer_title:document.title||location.pathname,refer_manual_key:\"\",routeChange:!1},this.config.autotrack&&\"object\"==typeof this.config.autotrack&&this.config.autotrack.page_manual_key&&(this.cache.refer_manual_key=this.config.autotrack.page_manual_key),this.storage.setItem(this.cache_key,this.cache)},e.prototype.hack=function(){var e=this,t=window.history.pushState;history.pushState=function(n){for(var o=[],r=1;r, K extends (keyof T)[]>(obj: T, keys: K): Pick => {\n if (!obj || !isObject(obj)) return obj;\n\n return keys.reduce((prev, cur) => {\n prev[cur] = obj[cur];\n return prev;\n }, {} as Pick);\n};\n","import { Collector, IInitParam } from '@dp/byted-tea-sdk-oversea';\nimport { pick } from '../object';\nimport { DEFAULT_TEA_APP_ID, DEFAULT_TEA_CONFIG } from '../constant';\nimport { TeaConfig } from '../../interface/cookie-banner';\n\nconst teaInstance = new Collector('cookie_banner_tea_ui');\nlet teaInited = false;\n\nexport function initTea(teaConfig?: TeaConfig) {\n if (teaInited || !teaInstance) {\n return;\n }\n\n teaInited = true;\n const config = teaConfig ?? DEFAULT_TEA_CONFIG;\n teaInstance.init({\n app_id: DEFAULT_TEA_APP_ID,\n log: false,\n ...config,\n } as IInitParam);\n teaInstance.start();\n}\n\nexport function setTeaConfig(attributes: Record) {\n if (!teaInited || !teaInstance) {\n return;\n }\n\n teaInstance.config({\n evtParams: attributes,\n });\n}\n\nexport function teaReport(eventName: string, attributes = {}) {\n if (!teaInited || !teaInstance) {\n return;\n }\n\n const referrer = `${location.protocol}//${location.host}${location.pathname}`;\n teaInstance.event(eventName, {\n page_url: referrer,\n host: location.host,\n user_agent: navigator.userAgent,\n referrer,\n ...attributes,\n });\n}\n\nexport function monitorSelfErrors() {\n const selfSrc = (document.currentScript as HTMLScriptElement)?.src;\n if (selfSrc) {\n window.addEventListener('error', (e: Event) => {\n if (e instanceof ErrorEvent && e.filename === selfSrc) {\n const error = {\n ...pick(e.error, ['name', 'message', 'stack']),\n ...pick(e as unknown as Record, ['filename', 'lineno', 'colno']),\n };\n teaReport('cookie_banner_js_error', error);\n }\n });\n }\n}\n","/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\nmodule.exports = listCacheClear;\n","/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\nmodule.exports = eq;\n","var eq = require('./eq');\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\nmodule.exports = assocIndexOf;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\nmodule.exports = listCacheDelete;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\nmodule.exports = listCacheGet;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\nmodule.exports = listCacheHas;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\nmodule.exports = listCacheSet;\n","var listCacheClear = require('./_listCacheClear'),\n listCacheDelete = require('./_listCacheDelete'),\n listCacheGet = require('./_listCacheGet'),\n listCacheHas = require('./_listCacheHas'),\n listCacheSet = require('./_listCacheSet');\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\nmodule.exports = ListCache;\n","var ListCache = require('./_ListCache');\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n}\n\nmodule.exports = stackClear;\n","/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n}\n\nmodule.exports = stackDelete;\n","/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n\nmodule.exports = stackGet;\n","/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\nmodule.exports = stackHas;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","var baseGetTag = require('./_baseGetTag'),\n isObject = require('./isObject');\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nmodule.exports = isFunction;\n","var coreJsData = require('./_coreJsData');\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\nmodule.exports = isMasked;\n","var root = require('./_root');\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\nmodule.exports = coreJsData;\n","/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\nmodule.exports = toSource;\n","var isFunction = require('./isFunction'),\n isMasked = require('./_isMasked'),\n isObject = require('./isObject'),\n toSource = require('./_toSource');\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\nmodule.exports = baseIsNative;\n","/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\nmodule.exports = getValue;\n","var baseIsNative = require('./_baseIsNative'),\n getValue = require('./_getValue');\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nmodule.exports = getNative;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map');\n\nmodule.exports = Map;\n","var getNative = require('./_getNative');\n\n/* Built-in method references that are verified to be native. */\nvar nativeCreate = getNative(Object, 'create');\n\nmodule.exports = nativeCreate;\n","var nativeCreate = require('./_nativeCreate');\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\nmodule.exports = hashClear;\n","/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = hashDelete;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nmodule.exports = hashGet;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\nmodule.exports = hashHas;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\nmodule.exports = hashSet;\n","var hashClear = require('./_hashClear'),\n hashDelete = require('./_hashDelete'),\n hashGet = require('./_hashGet'),\n hashHas = require('./_hashHas'),\n hashSet = require('./_hashSet');\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\nmodule.exports = Hash;\n","var Hash = require('./_Hash'),\n ListCache = require('./_ListCache'),\n Map = require('./_Map');\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\nmodule.exports = mapCacheClear;\n","/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\nmodule.exports = isKeyable;\n","var isKeyable = require('./_isKeyable');\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\nmodule.exports = getMapData;\n","var getMapData = require('./_getMapData');\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = mapCacheDelete;\n","var getMapData = require('./_getMapData');\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\nmodule.exports = mapCacheGet;\n","var getMapData = require('./_getMapData');\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\nmodule.exports = mapCacheHas;\n","var getMapData = require('./_getMapData');\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\nmodule.exports = mapCacheSet;\n","var mapCacheClear = require('./_mapCacheClear'),\n mapCacheDelete = require('./_mapCacheDelete'),\n mapCacheGet = require('./_mapCacheGet'),\n mapCacheHas = require('./_mapCacheHas'),\n mapCacheSet = require('./_mapCacheSet');\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\nmodule.exports = MapCache;\n","var ListCache = require('./_ListCache'),\n Map = require('./_Map'),\n MapCache = require('./_MapCache');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\nmodule.exports = stackSet;\n","var ListCache = require('./_ListCache'),\n stackClear = require('./_stackClear'),\n stackDelete = require('./_stackDelete'),\n stackGet = require('./_stackGet'),\n stackHas = require('./_stackHas'),\n stackSet = require('./_stackSet');\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\nmodule.exports = Stack;\n","var getNative = require('./_getNative');\n\nvar defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n}());\n\nmodule.exports = defineProperty;\n","var defineProperty = require('./_defineProperty');\n\n/**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n}\n\nmodule.exports = baseAssignValue;\n","var baseAssignValue = require('./_baseAssignValue'),\n eq = require('./eq');\n\n/**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nmodule.exports = assignMergeValue;\n","/**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n}\n\nmodule.exports = createBaseFor;\n","var createBaseFor = require('./_createBaseFor');\n\n/**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\nvar baseFor = createBaseFor();\n\nmodule.exports = baseFor;\n","var root = require('./_root');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;\n\n/**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\nfunction cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n}\n\nmodule.exports = cloneBuffer;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Uint8Array = root.Uint8Array;\n\nmodule.exports = Uint8Array;\n","var Uint8Array = require('./_Uint8Array');\n\n/**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\nfunction cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n}\n\nmodule.exports = cloneArrayBuffer;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer');\n\n/**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\nfunction cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n}\n\nmodule.exports = cloneTypedArray;\n","/**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\nfunction copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n}\n\nmodule.exports = copyArray;\n","var isObject = require('./isObject');\n\n/** Built-in value references. */\nvar objectCreate = Object.create;\n\n/**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\nvar baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n}());\n\nmodule.exports = baseCreate;\n","/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\nmodule.exports = overArg;\n","var overArg = require('./_overArg');\n\n/** Built-in value references. */\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\n\nmodule.exports = getPrototype;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\nmodule.exports = isPrototype;\n","var baseCreate = require('./_baseCreate'),\n getPrototype = require('./_getPrototype'),\n isPrototype = require('./_isPrototype');\n\n/**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n}\n\nmodule.exports = initCloneObject;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]';\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\nmodule.exports = baseIsArguments;\n","var baseIsArguments = require('./_baseIsArguments'),\n isObjectLike = require('./isObjectLike');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\nmodule.exports = isArguments;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nmodule.exports = isArray;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nmodule.exports = isLength;\n","var isFunction = require('./isFunction'),\n isLength = require('./isLength');\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\nmodule.exports = isArrayLike;\n","var isArrayLike = require('./isArrayLike'),\n isObjectLike = require('./isObjectLike');\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n\nmodule.exports = isArrayLikeObject;\n","/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nmodule.exports = stubFalse;\n","var root = require('./_root'),\n stubFalse = require('./stubFalse');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\nmodule.exports = isBuffer;\n","var baseGetTag = require('./_baseGetTag'),\n getPrototype = require('./_getPrototype'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n}\n\nmodule.exports = isPlainObject;\n","var baseGetTag = require('./_baseGetTag'),\n isLength = require('./isLength'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\nmodule.exports = baseIsTypedArray;\n","/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\nmodule.exports = baseUnary;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\nmodule.exports = nodeUtil;\n","var baseIsTypedArray = require('./_baseIsTypedArray'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\nmodule.exports = isTypedArray;\n","/**\n * Gets the value at `key`, unless `key` is \"__proto__\" or \"constructor\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction safeGet(object, key) {\n if (key === 'constructor' && typeof object[key] === 'function') {\n return;\n }\n\n if (key == '__proto__') {\n return;\n }\n\n return object[key];\n}\n\nmodule.exports = safeGet;\n","var baseAssignValue = require('./_baseAssignValue'),\n eq = require('./eq');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nmodule.exports = assignValue;\n","var assignValue = require('./_assignValue'),\n baseAssignValue = require('./_baseAssignValue');\n\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n}\n\nmodule.exports = copyObject;\n","/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\nmodule.exports = baseTimes;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\nmodule.exports = isIndex;\n","var baseTimes = require('./_baseTimes'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isIndex = require('./_isIndex'),\n isTypedArray = require('./isTypedArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = arrayLikeKeys;\n","/**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = nativeKeysIn;\n","var isObject = require('./isObject'),\n isPrototype = require('./_isPrototype'),\n nativeKeysIn = require('./_nativeKeysIn');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeysIn;\n","var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeysIn = require('./_baseKeysIn'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\nfunction keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\n\nmodule.exports = keysIn;\n","var copyObject = require('./_copyObject'),\n keysIn = require('./keysIn');\n\n/**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\nfunction toPlainObject(value) {\n return copyObject(value, keysIn(value));\n}\n\nmodule.exports = toPlainObject;\n","var assignMergeValue = require('./_assignMergeValue'),\n cloneBuffer = require('./_cloneBuffer'),\n cloneTypedArray = require('./_cloneTypedArray'),\n copyArray = require('./_copyArray'),\n initCloneObject = require('./_initCloneObject'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isArrayLikeObject = require('./isArrayLikeObject'),\n isBuffer = require('./isBuffer'),\n isFunction = require('./isFunction'),\n isObject = require('./isObject'),\n isPlainObject = require('./isPlainObject'),\n isTypedArray = require('./isTypedArray'),\n safeGet = require('./_safeGet'),\n toPlainObject = require('./toPlainObject');\n\n/**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet(object, key),\n srcValue = safeGet(source, key),\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined;\n\n var isCommon = newValue === undefined;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || isFunction(objValue)) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n}\n\nmodule.exports = baseMergeDeep;\n","var Stack = require('./_Stack'),\n assignMergeValue = require('./_assignMergeValue'),\n baseFor = require('./_baseFor'),\n baseMergeDeep = require('./_baseMergeDeep'),\n isObject = require('./isObject'),\n keysIn = require('./keysIn'),\n safeGet = require('./_safeGet');\n\n/**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n stack || (stack = new Stack);\n if (isObject(srcValue)) {\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined;\n\n if (newValue === undefined) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n}\n\nmodule.exports = baseMerge;\n","/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = identity;\n","/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\nmodule.exports = apply;\n","var apply = require('./_apply');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\nfunction overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n}\n\nmodule.exports = overRest;\n","/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\nmodule.exports = constant;\n","var constant = require('./constant'),\n defineProperty = require('./_defineProperty'),\n identity = require('./identity');\n\n/**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n};\n\nmodule.exports = baseSetToString;\n","/** Used to detect hot functions by number of calls within a span of milliseconds. */\nvar HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeNow = Date.now;\n\n/**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\nfunction shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n}\n\nmodule.exports = shortOut;\n","var baseSetToString = require('./_baseSetToString'),\n shortOut = require('./_shortOut');\n\n/**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar setToString = shortOut(baseSetToString);\n\nmodule.exports = setToString;\n","var identity = require('./identity'),\n overRest = require('./_overRest'),\n setToString = require('./_setToString');\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n}\n\nmodule.exports = baseRest;\n","var eq = require('./eq'),\n isArrayLike = require('./isArrayLike'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject');\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n}\n\nmodule.exports = isIterateeCall;\n","var baseRest = require('./_baseRest'),\n isIterateeCall = require('./_isIterateeCall');\n\n/**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\nfunction createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n}\n\nmodule.exports = createAssigner;\n","'use strict';\n\nvar bind = require('./helpers/bind');\n\n// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n// eslint-disable-next-line func-names\nvar kindOf = (function(cache) {\n // eslint-disable-next-line func-names\n return function(thing) {\n var str = toString.call(thing);\n return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());\n };\n})(Object.create(null));\n\nfunction kindOfTest(type) {\n type = type.toLowerCase();\n return function isKindOf(thing) {\n return kindOf(thing) === type;\n };\n}\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return Array.isArray(val);\n}\n\n/**\n * Determine if a value is undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\n}\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @function\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nvar isArrayBuffer = kindOfTest('ArrayBuffer');\n\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n var result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {Object} val The value to test\n * @return {boolean} True if value is a plain Object, otherwise false\n */\nfunction isPlainObject(val) {\n if (kindOf(val) !== 'object') {\n return false;\n }\n\n var prototype = Object.getPrototypeOf(val);\n return prototype === null || prototype === Object.prototype;\n}\n\n/**\n * Determine if a value is a Date\n *\n * @function\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nvar isDate = kindOfTest('Date');\n\n/**\n * Determine if a value is a File\n *\n * @function\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nvar isFile = kindOfTest('File');\n\n/**\n * Determine if a value is a Blob\n *\n * @function\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nvar isBlob = kindOfTest('Blob');\n\n/**\n * Determine if a value is a FileList\n *\n * @function\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nvar isFileList = kindOfTest('FileList');\n\n/**\n * Determine if a value is a Function\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nfunction isFunction(val) {\n return toString.call(val) === '[object Function]';\n}\n\n/**\n * Determine if a value is a Stream\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nfunction isStream(val) {\n return isObject(val) && isFunction(val.pipe);\n}\n\n/**\n * Determine if a value is a FormData\n *\n * @param {Object} thing The value to test\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nfunction isFormData(thing) {\n var pattern = '[object FormData]';\n return thing && (\n (typeof FormData === 'function' && thing instanceof FormData) ||\n toString.call(thing) === pattern ||\n (isFunction(thing.toString) && thing.toString() === pattern)\n );\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n * @function\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nvar isURLSearchParams = kindOfTest('URLSearchParams');\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.trim ? str.trim() : str.replace(/^\\s+|\\s+$/g, '');\n}\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n */\nfunction isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (var i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n fn.call(null, obj[key], key, obj);\n }\n }\n }\n}\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (isPlainObject(result[key]) && isPlainObject(val)) {\n result[key] = merge(result[key], val);\n } else if (isPlainObject(val)) {\n result[key] = merge({}, val);\n } else if (isArray(val)) {\n result[key] = val.slice();\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n * @return {Object} The resulting value of object a\n */\nfunction extend(a, b, thisArg) {\n forEach(b, function assignValue(val, key) {\n if (thisArg && typeof val === 'function') {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n });\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n * @return {string} content value without BOM\n */\nfunction stripBOM(content) {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\n/**\n * Inherit the prototype methods from one constructor into another\n * @param {function} constructor\n * @param {function} superConstructor\n * @param {object} [props]\n * @param {object} [descriptors]\n */\n\nfunction inherits(constructor, superConstructor, props, descriptors) {\n constructor.prototype = Object.create(superConstructor.prototype, descriptors);\n constructor.prototype.constructor = constructor;\n props && Object.assign(constructor.prototype, props);\n}\n\n/**\n * Resolve object with deep prototype chain to a flat object\n * @param {Object} sourceObj source object\n * @param {Object} [destObj]\n * @param {Function} [filter]\n * @returns {Object}\n */\n\nfunction toFlatObject(sourceObj, destObj, filter) {\n var props;\n var i;\n var prop;\n var merged = {};\n\n destObj = destObj || {};\n\n do {\n props = Object.getOwnPropertyNames(sourceObj);\n i = props.length;\n while (i-- > 0) {\n prop = props[i];\n if (!merged[prop]) {\n destObj[prop] = sourceObj[prop];\n merged[prop] = true;\n }\n }\n sourceObj = Object.getPrototypeOf(sourceObj);\n } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);\n\n return destObj;\n}\n\n/*\n * determines whether a string ends with the characters of a specified string\n * @param {String} str\n * @param {String} searchString\n * @param {Number} [position= 0]\n * @returns {boolean}\n */\nfunction endsWith(str, searchString, position) {\n str = String(str);\n if (position === undefined || position > str.length) {\n position = str.length;\n }\n position -= searchString.length;\n var lastIndex = str.indexOf(searchString, position);\n return lastIndex !== -1 && lastIndex === position;\n}\n\n\n/**\n * Returns new array from array like object\n * @param {*} [thing]\n * @returns {Array}\n */\nfunction toArray(thing) {\n if (!thing) return null;\n var i = thing.length;\n if (isUndefined(i)) return null;\n var arr = new Array(i);\n while (i-- > 0) {\n arr[i] = thing[i];\n }\n return arr;\n}\n\n// eslint-disable-next-line func-names\nvar isTypedArray = (function(TypedArray) {\n // eslint-disable-next-line func-names\n return function(thing) {\n return TypedArray && thing instanceof TypedArray;\n };\n})(typeof Uint8Array !== 'undefined' && Object.getPrototypeOf(Uint8Array));\n\nmodule.exports = {\n isArray: isArray,\n isArrayBuffer: isArrayBuffer,\n isBuffer: isBuffer,\n isFormData: isFormData,\n isArrayBufferView: isArrayBufferView,\n isString: isString,\n isNumber: isNumber,\n isObject: isObject,\n isPlainObject: isPlainObject,\n isUndefined: isUndefined,\n isDate: isDate,\n isFile: isFile,\n isBlob: isBlob,\n isFunction: isFunction,\n isStream: isStream,\n isURLSearchParams: isURLSearchParams,\n isStandardBrowserEnv: isStandardBrowserEnv,\n forEach: forEach,\n merge: merge,\n extend: extend,\n trim: trim,\n stripBOM: stripBOM,\n inherits: inherits,\n toFlatObject: toFlatObject,\n kindOf: kindOf,\n kindOfTest: kindOfTest,\n endsWith: endsWith,\n toArray: toArray,\n isTypedArray: isTypedArray,\n isFileList: isFileList\n};\n","var baseMerge = require('./_baseMerge'),\n createAssigner = require('./_createAssigner');\n\n/**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\nvar merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n});\n\nmodule.exports = merge;\n","'use strict';\n\nmodule.exports = function bind(fn, thisArg) {\n return function wrap() {\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n return fn.apply(thisArg, args);\n };\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @returns {string} The formatted url\n */\nmodule.exports = function buildURL(url, params, paramsSerializer) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n\n var serializedParams;\n if (paramsSerializer) {\n serializedParams = paramsSerializer(params);\n } else if (utils.isURLSearchParams(params)) {\n serializedParams = params.toString();\n } else {\n var parts = [];\n\n utils.forEach(params, function serialize(val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n\n if (utils.isArray(val)) {\n key = key + '[]';\n } else {\n val = [val];\n }\n\n utils.forEach(val, function parseValue(v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n } else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n serializedParams = parts.join('&');\n }\n\n if (serializedParams) {\n var hashmarkIndex = url.indexOf('#');\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nfunction InterceptorManager() {\n this.handlers = [];\n}\n\n/**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\nInterceptorManager.prototype.use = function use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled: fulfilled,\n rejected: rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n};\n\n/**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n */\nInterceptorManager.prototype.eject = function eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n};\n\n/**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n */\nInterceptorManager.prototype.forEach = function forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n};\n\nmodule.exports = InterceptorManager;\n","'use strict';\n\nvar utils = require('../utils');\n\nmodule.exports = function normalizeHeaderName(headers, normalizedName) {\n utils.forEach(headers, function processHeader(value, name) {\n if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {\n headers[normalizedName] = value;\n delete headers[name];\n }\n });\n};\n","'use strict';\n\nvar utils = require('../utils');\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [config] The config.\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\nfunction AxiosError(message, code, config, request, response) {\n Error.call(this);\n this.message = message;\n this.name = 'AxiosError';\n code && (this.code = code);\n config && (this.config = config);\n request && (this.request = request);\n response && (this.response = response);\n}\n\nutils.inherits(AxiosError, Error, {\n toJSON: function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: this.config,\n code: this.code,\n status: this.response && this.response.status ? this.response.status : null\n };\n }\n});\n\nvar prototype = AxiosError.prototype;\nvar descriptors = {};\n\n[\n 'ERR_BAD_OPTION_VALUE',\n 'ERR_BAD_OPTION',\n 'ECONNABORTED',\n 'ETIMEDOUT',\n 'ERR_NETWORK',\n 'ERR_FR_TOO_MANY_REDIRECTS',\n 'ERR_DEPRECATED',\n 'ERR_BAD_RESPONSE',\n 'ERR_BAD_REQUEST',\n 'ERR_CANCELED'\n// eslint-disable-next-line func-names\n].forEach(function(code) {\n descriptors[code] = {value: code};\n});\n\nObject.defineProperties(AxiosError, descriptors);\nObject.defineProperty(prototype, 'isAxiosError', {value: true});\n\n// eslint-disable-next-line func-names\nAxiosError.from = function(error, code, config, request, response, customProps) {\n var axiosError = Object.create(prototype);\n\n utils.toFlatObject(error, axiosError, function filter(obj) {\n return obj !== Error.prototype;\n });\n\n AxiosError.call(axiosError, error.message, code, config, request, response);\n\n axiosError.name = error.name;\n\n customProps && Object.assign(axiosError, customProps);\n\n return axiosError;\n};\n\nmodule.exports = AxiosError;\n","'use strict';\n\nmodule.exports = {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n};\n","'use strict';\n\nvar utils = require('../utils');\n\n/**\n * Convert a data object to FormData\n * @param {Object} obj\n * @param {?Object} [formData]\n * @returns {Object}\n **/\n\nfunction toFormData(obj, formData) {\n // eslint-disable-next-line no-param-reassign\n formData = formData || new FormData();\n\n var stack = [];\n\n function convertValue(value) {\n if (value === null) return '';\n\n if (utils.isDate(value)) {\n return value.toISOString();\n }\n\n if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {\n return typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);\n }\n\n return value;\n }\n\n function build(data, parentKey) {\n if (utils.isPlainObject(data) || utils.isArray(data)) {\n if (stack.indexOf(data) !== -1) {\n throw Error('Circular reference detected in ' + parentKey);\n }\n\n stack.push(data);\n\n utils.forEach(data, function each(value, key) {\n if (utils.isUndefined(value)) return;\n var fullKey = parentKey ? parentKey + '.' + key : key;\n var arr;\n\n if (value && !parentKey && typeof value === 'object') {\n if (utils.endsWith(key, '{}')) {\n // eslint-disable-next-line no-param-reassign\n value = JSON.stringify(value);\n } else if (utils.endsWith(key, '[]') && (arr = utils.toArray(value))) {\n // eslint-disable-next-line func-names\n arr.forEach(function(el) {\n !utils.isUndefined(el) && formData.append(fullKey, convertValue(el));\n });\n return;\n }\n }\n\n build(value, fullKey);\n });\n\n stack.pop();\n } else {\n formData.append(parentKey, convertValue(data));\n }\n }\n\n build(obj);\n\n return formData;\n}\n\nmodule.exports = toFormData;\n","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n\n // Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() { return null; },\n remove: function remove() {}\n };\n })()\n);\n","'use strict';\n\nvar isAbsoluteURL = require('../helpers/isAbsoluteURL');\nvar combineURLs = require('../helpers/combineURLs');\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n * @returns {string} The combined full path\n */\nmodule.exports = function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n};\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nmodule.exports = function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n};\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n * @returns {string} The combined URL\n */\nmodule.exports = function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\n// Headers whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nvar ignoreDuplicateOf = [\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n];\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {};\n var key;\n var val;\n var i;\n\n if (!headers) { return parsed; }\n\n utils.forEach(headers.split('\\n'), function parser(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {\n return;\n }\n if (key === 'set-cookie') {\n parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n }\n });\n\n return parsed;\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs have full support of the APIs needed to test\n // whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n var msie = /(msie|trident)/i.test(navigator.userAgent);\n var urlParsingNode = document.createElement('a');\n var originURL;\n\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })()\n);\n","'use strict';\n\nvar AxiosError = require('../core/AxiosError');\nvar utils = require('../utils');\n\n/**\n * A `CanceledError` is an object that is thrown when an operation is canceled.\n *\n * @class\n * @param {string=} message The message.\n */\nfunction CanceledError(message) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED);\n this.name = 'CanceledError';\n}\n\nutils.inherits(CanceledError, AxiosError, {\n __CANCEL__: true\n});\n\nmodule.exports = CanceledError;\n","'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar cookies = require('./../helpers/cookies');\nvar buildURL = require('./../helpers/buildURL');\nvar buildFullPath = require('../core/buildFullPath');\nvar parseHeaders = require('./../helpers/parseHeaders');\nvar isURLSameOrigin = require('./../helpers/isURLSameOrigin');\nvar transitionalDefaults = require('../defaults/transitional');\nvar AxiosError = require('../core/AxiosError');\nvar CanceledError = require('../cancel/CanceledError');\nvar parseProtocol = require('../helpers/parseProtocol');\n\nmodule.exports = function xhrAdapter(config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n var requestData = config.data;\n var requestHeaders = config.headers;\n var responseType = config.responseType;\n var onCanceled;\n function done() {\n if (config.cancelToken) {\n config.cancelToken.unsubscribe(onCanceled);\n }\n\n if (config.signal) {\n config.signal.removeEventListener('abort', onCanceled);\n }\n }\n\n if (utils.isFormData(requestData) && utils.isStandardBrowserEnv()) {\n delete requestHeaders['Content-Type']; // Let the browser set it\n }\n\n var request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);\n }\n\n var fullPath = buildFullPath(config.baseURL, config.url);\n\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;\n var responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n var response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config: config,\n request: request\n };\n\n settle(function _resolve(value) {\n resolve(value);\n done();\n }, function _reject(err) {\n reject(err);\n done();\n }, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n var timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';\n var transitional = config.transitional || transitionalDefaults;\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(new AxiosError(\n timeoutErrorMessage,\n transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,\n config,\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if (utils.isStandardBrowserEnv()) {\n // Add xsrf header\n var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?\n cookies.read(config.xsrfCookieName) :\n undefined;\n\n if (xsrfValue) {\n requestHeaders[config.xsrfHeaderName] = xsrfValue;\n }\n }\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders, function setRequestHeader(val, key) {\n if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {\n // Remove Content-Type if data is undefined\n delete requestHeaders[key];\n } else {\n // Otherwise add header to the request\n request.setRequestHeader(key, val);\n }\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = config.responseType;\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', config.onDownloadProgress);\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', config.onUploadProgress);\n }\n\n if (config.cancelToken || config.signal) {\n // Handle cancellation\n // eslint-disable-next-line func-names\n onCanceled = function(cancel) {\n if (!request) {\n return;\n }\n reject(!cancel || (cancel && cancel.type) ? new CanceledError() : cancel);\n request.abort();\n request = null;\n };\n\n config.cancelToken && config.cancelToken.subscribe(onCanceled);\n if (config.signal) {\n config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);\n }\n }\n\n if (!requestData) {\n requestData = null;\n }\n\n var protocol = parseProtocol(fullPath);\n\n if (protocol && [ 'http', 'https', 'file' ].indexOf(protocol) === -1) {\n reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));\n return;\n }\n\n\n // Send the request\n request.send(requestData);\n });\n};\n","'use strict';\n\nvar AxiosError = require('./AxiosError');\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n */\nmodule.exports = function settle(resolve, reject, response) {\n var validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(new AxiosError(\n 'Request failed with status code ' + response.status,\n [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],\n response.config,\n response.request,\n response\n ));\n }\n};\n","'use strict';\n\nmodule.exports = function parseProtocol(url) {\n var match = /^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(url);\n return match && match[1] || '';\n};\n","'use strict';\n\nvar utils = require('../utils');\nvar normalizeHeaderName = require('../helpers/normalizeHeaderName');\nvar AxiosError = require('../core/AxiosError');\nvar transitionalDefaults = require('./transitional');\nvar toFormData = require('../helpers/toFormData');\n\nvar DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nfunction setContentTypeIfUnset(headers, value) {\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = value;\n }\n}\n\nfunction getDefaultAdapter() {\n var adapter;\n if (typeof XMLHttpRequest !== 'undefined') {\n // For browsers use XHR adapter\n adapter = require('../adapters/xhr');\n } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\n // For node use HTTP adapter\n adapter = require('../adapters/http');\n }\n return adapter;\n}\n\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nvar defaults = {\n\n transitional: transitionalDefaults,\n\n adapter: getDefaultAdapter(),\n\n transformRequest: [function transformRequest(data, headers) {\n normalizeHeaderName(headers, 'Accept');\n normalizeHeaderName(headers, 'Content-Type');\n\n if (utils.isFormData(data) ||\n utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');\n return data.toString();\n }\n\n var isObjectPayload = utils.isObject(data);\n var contentType = headers && headers['Content-Type'];\n\n var isFileList;\n\n if ((isFileList = utils.isFileList(data)) || (isObjectPayload && contentType === 'multipart/form-data')) {\n var _FormData = this.env && this.env.FormData;\n return toFormData(isFileList ? {'files[]': data} : data, _FormData && new _FormData());\n } else if (isObjectPayload || contentType === 'application/json') {\n setContentTypeIfUnset(headers, 'application/json');\n return stringifySafely(data);\n }\n\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n var transitional = this.transitional || defaults.transitional;\n var silentJSONParsing = transitional && transitional.silentJSONParsing;\n var forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n var strictJSONParsing = !silentJSONParsing && this.responseType === 'json';\n\n if (strictJSONParsing || (forcedJSONParsing && utils.isString(data) && data.length)) {\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n env: {\n FormData: require('./env/FormData')\n },\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n }\n }\n};\n\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\n\nmodule.exports = defaults;\n","// eslint-disable-next-line strict\nmodule.exports = null;\n","'use strict';\n\nvar utils = require('./../utils');\nvar defaults = require('../defaults');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n var context = this || defaults;\n /*eslint no-param-reassign:0*/\n utils.forEach(fns, function transform(fn) {\n data = fn.call(context, data, headers);\n });\n\n return data;\n};\n","'use strict';\n\nmodule.exports = function isCancel(value) {\n return !!(value && value.__CANCEL__);\n};\n","'use strict';\n\nvar utils = require('./../utils');\nvar transformData = require('./transformData');\nvar isCancel = require('../cancel/isCancel');\nvar defaults = require('../defaults');\nvar CanceledError = require('../cancel/CanceledError');\n\n/**\n * Throws a `CanceledError` if cancellation has been requested.\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n\n if (config.signal && config.signal.aborted) {\n throw new CanceledError();\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n * @returns {Promise} The Promise to be fulfilled\n */\nmodule.exports = function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n // Ensure headers exist\n config.headers = config.headers || {};\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Flatten headers\n config.headers = utils.merge(\n config.headers.common || {},\n config.headers[config.method] || {},\n config.headers\n );\n\n utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n function cleanHeaderConfig(method) {\n delete config.headers[method];\n }\n );\n\n var adapter = config.adapter || defaults.adapter;\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData.call(\n config,\n response.data,\n response.headers,\n config.transformResponse\n );\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData.call(\n config,\n reason.response.data,\n reason.response.headers,\n config.transformResponse\n );\n }\n }\n\n return Promise.reject(reason);\n });\n};\n","'use strict';\n\nvar utils = require('../utils');\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n * @returns {Object} New object resulting from merging config2 to config1\n */\nmodule.exports = function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n var config = {};\n\n function getMergedValue(target, source) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge(target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDeepProperties(prop) {\n if (!utils.isUndefined(config2[prop])) {\n return getMergedValue(config1[prop], config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n return getMergedValue(undefined, config1[prop]);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function valueFromConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n return getMergedValue(undefined, config2[prop]);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function defaultToConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n return getMergedValue(undefined, config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n return getMergedValue(undefined, config1[prop]);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDirectKeys(prop) {\n if (prop in config2) {\n return getMergedValue(config1[prop], config2[prop]);\n } else if (prop in config1) {\n return getMergedValue(undefined, config1[prop]);\n }\n }\n\n var mergeMap = {\n 'url': valueFromConfig2,\n 'method': valueFromConfig2,\n 'data': valueFromConfig2,\n 'baseURL': defaultToConfig2,\n 'transformRequest': defaultToConfig2,\n 'transformResponse': defaultToConfig2,\n 'paramsSerializer': defaultToConfig2,\n 'timeout': defaultToConfig2,\n 'timeoutMessage': defaultToConfig2,\n 'withCredentials': defaultToConfig2,\n 'adapter': defaultToConfig2,\n 'responseType': defaultToConfig2,\n 'xsrfCookieName': defaultToConfig2,\n 'xsrfHeaderName': defaultToConfig2,\n 'onUploadProgress': defaultToConfig2,\n 'onDownloadProgress': defaultToConfig2,\n 'decompress': defaultToConfig2,\n 'maxContentLength': defaultToConfig2,\n 'maxBodyLength': defaultToConfig2,\n 'beforeRedirect': defaultToConfig2,\n 'transport': defaultToConfig2,\n 'httpAgent': defaultToConfig2,\n 'httpsAgent': defaultToConfig2,\n 'cancelToken': defaultToConfig2,\n 'socketPath': defaultToConfig2,\n 'responseEncoding': defaultToConfig2,\n 'validateStatus': mergeDirectKeys\n };\n\n utils.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {\n var merge = mergeMap[prop] || mergeDeepProperties;\n var configValue = merge(prop);\n (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);\n });\n\n return config;\n};\n","module.exports = {\n \"version\": \"0.27.2\"\n};","'use strict';\n\nvar VERSION = require('../env/data').version;\nvar AxiosError = require('../core/AxiosError');\n\nvar validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nvar deprecatedWarnings = {};\n\n/**\n * Transitional option validator\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n function formatMessage(opt, desc) {\n return '[Axios v' + VERSION + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return function(value, opt, opts) {\n if (validator === false) {\n throw new AxiosError(\n formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),\n AxiosError.ERR_DEPRECATED\n );\n }\n\n if (version && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\n/**\n * Assert object's properties type\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);\n }\n var keys = Object.keys(options);\n var i = keys.length;\n while (i-- > 0) {\n var opt = keys[i];\n var validator = schema[opt];\n if (validator) {\n var value = options[opt];\n var result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);\n }\n }\n}\n\nmodule.exports = {\n assertOptions: assertOptions,\n validators: validators\n};\n","'use strict';\n\nvar utils = require('./../utils');\nvar buildURL = require('../helpers/buildURL');\nvar InterceptorManager = require('./InterceptorManager');\nvar dispatchRequest = require('./dispatchRequest');\nvar mergeConfig = require('./mergeConfig');\nvar buildFullPath = require('./buildFullPath');\nvar validator = require('../helpers/validator');\n\nvar validators = validator.validators;\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n */\nfunction Axios(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n}\n\n/**\n * Dispatch a request\n *\n * @param {Object} config The config specific for this request (merged with this.defaults)\n */\nAxios.prototype.request = function request(configOrUrl, config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof configOrUrl === 'string') {\n config = config || {};\n config.url = configOrUrl;\n } else {\n config = configOrUrl || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n // Set config.method\n if (config.method) {\n config.method = config.method.toLowerCase();\n } else if (this.defaults.method) {\n config.method = this.defaults.method.toLowerCase();\n } else {\n config.method = 'get';\n }\n\n var transitional = config.transitional;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean),\n forcedJSONParsing: validators.transitional(validators.boolean),\n clarifyTimeoutError: validators.transitional(validators.boolean)\n }, false);\n }\n\n // filter out skipped interceptors\n var requestInterceptorChain = [];\n var synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n var responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n var promise;\n\n if (!synchronousRequestInterceptors) {\n var chain = [dispatchRequest, undefined];\n\n Array.prototype.unshift.apply(chain, requestInterceptorChain);\n chain = chain.concat(responseInterceptorChain);\n\n promise = Promise.resolve(config);\n while (chain.length) {\n promise = promise.then(chain.shift(), chain.shift());\n }\n\n return promise;\n }\n\n\n var newConfig = config;\n while (requestInterceptorChain.length) {\n var onFulfilled = requestInterceptorChain.shift();\n var onRejected = requestInterceptorChain.shift();\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected(error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest(newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n while (responseInterceptorChain.length) {\n promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());\n }\n\n return promise;\n};\n\nAxios.prototype.getUri = function getUri(config) {\n config = mergeConfig(this.defaults, config);\n var fullPath = buildFullPath(config.baseURL, config.url);\n return buildURL(fullPath, config.params, config.paramsSerializer);\n};\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n\n function generateHTTPMethod(isForm) {\n return function httpMethod(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n headers: isForm ? {\n 'Content-Type': 'multipart/form-data'\n } : {},\n url: url,\n data: data\n }));\n };\n }\n\n Axios.prototype[method] = generateHTTPMethod();\n\n Axios.prototype[method + 'Form'] = generateHTTPMethod(true);\n});\n\nmodule.exports = Axios;\n","'use strict';\n\nvar CanceledError = require('./CanceledError');\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @class\n * @param {Function} executor The executor function.\n */\nfunction CancelToken(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n var resolvePromise;\n\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n var token = this;\n\n // eslint-disable-next-line func-names\n this.promise.then(function(cancel) {\n if (!token._listeners) return;\n\n var i;\n var l = token._listeners.length;\n\n for (i = 0; i < l; i++) {\n token._listeners[i](cancel);\n }\n token._listeners = null;\n });\n\n // eslint-disable-next-line func-names\n this.promise.then = function(onfulfilled) {\n var _resolve;\n // eslint-disable-next-line func-names\n var promise = new Promise(function(resolve) {\n token.subscribe(resolve);\n _resolve = resolve;\n }).then(onfulfilled);\n\n promise.cancel = function reject() {\n token.unsubscribe(_resolve);\n };\n\n return promise;\n };\n\n executor(function cancel(message) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new CanceledError(message);\n resolvePromise(token.reason);\n });\n}\n\n/**\n * Throws a `CanceledError` if cancellation has been requested.\n */\nCancelToken.prototype.throwIfRequested = function throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n};\n\n/**\n * Subscribe to the cancel signal\n */\n\nCancelToken.prototype.subscribe = function subscribe(listener) {\n if (this.reason) {\n listener(this.reason);\n return;\n }\n\n if (this._listeners) {\n this._listeners.push(listener);\n } else {\n this._listeners = [listener];\n }\n};\n\n/**\n * Unsubscribe from the cancel signal\n */\n\nCancelToken.prototype.unsubscribe = function unsubscribe(listener) {\n if (!this._listeners) {\n return;\n }\n var index = this._listeners.indexOf(listener);\n if (index !== -1) {\n this._listeners.splice(index, 1);\n }\n};\n\n/**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\nCancelToken.source = function source() {\n var cancel;\n var token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token: token,\n cancel: cancel\n };\n};\n\nmodule.exports = CancelToken;\n","'use strict';\n\nvar utils = require('./utils');\nvar bind = require('./helpers/bind');\nvar Axios = require('./core/Axios');\nvar mergeConfig = require('./core/mergeConfig');\nvar defaults = require('./defaults');\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n * @return {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n var context = new Axios(defaultConfig);\n var instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context);\n\n // Copy context to instance\n utils.extend(instance, context);\n\n // Factory for creating new instances\n instance.create = function create(instanceConfig) {\n return createInstance(mergeConfig(defaultConfig, instanceConfig));\n };\n\n return instance;\n}\n\n// Create the default instance to be exported\nvar axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Expose Cancel & CancelToken\naxios.CanceledError = require('./cancel/CanceledError');\naxios.CancelToken = require('./cancel/CancelToken');\naxios.isCancel = require('./cancel/isCancel');\naxios.VERSION = require('./env/data').version;\naxios.toFormData = require('./helpers/toFormData');\n\n// Expose AxiosError class\naxios.AxiosError = require('../lib/core/AxiosError');\n\n// alias for CanceledError for backward compatibility\naxios.Cancel = axios.CanceledError;\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\n\n// Expose isAxiosError\naxios.isAxiosError = require('./helpers/isAxiosError');\n\nmodule.exports = axios;\n\n// Allow use of default import syntax in TypeScript\nmodule.exports.default = axios;\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nmodule.exports = function isAxiosError(payload) {\n return utils.isObject(payload) && (payload.isAxiosError === true);\n};\n","module.exports = require('./lib/axios');","/////////////////////////////////////////////////////////////////////////////////\n/* UAParser.js v1.0.38\n Copyright © 2012-2021 Faisal Salman \n MIT License *//*\n Detect Browser, Engine, OS, CPU, and Device type/model from User-Agent data.\n Supports browser & node.js environment. \n Demo : https://faisalman.github.io/ua-parser-js\n Source : https://github.com/faisalman/ua-parser-js */\n/////////////////////////////////////////////////////////////////////////////////\n\n(function (window, undefined) {\n\n 'use strict';\n\n //////////////\n // Constants\n /////////////\n\n\n var LIBVERSION = '1.0.38',\n EMPTY = '',\n UNKNOWN = '?',\n FUNC_TYPE = 'function',\n UNDEF_TYPE = 'undefined',\n OBJ_TYPE = 'object',\n STR_TYPE = 'string',\n MAJOR = 'major',\n MODEL = 'model',\n NAME = 'name',\n TYPE = 'type',\n VENDOR = 'vendor',\n VERSION = 'version',\n ARCHITECTURE= 'architecture',\n CONSOLE = 'console',\n MOBILE = 'mobile',\n TABLET = 'tablet',\n SMARTTV = 'smarttv',\n WEARABLE = 'wearable',\n EMBEDDED = 'embedded',\n UA_MAX_LENGTH = 500;\n\n var AMAZON = 'Amazon',\n APPLE = 'Apple',\n ASUS = 'ASUS',\n BLACKBERRY = 'BlackBerry',\n BROWSER = 'Browser',\n CHROME = 'Chrome',\n EDGE = 'Edge',\n FIREFOX = 'Firefox',\n GOOGLE = 'Google',\n HUAWEI = 'Huawei',\n LG = 'LG',\n MICROSOFT = 'Microsoft',\n MOTOROLA = 'Motorola',\n OPERA = 'Opera',\n SAMSUNG = 'Samsung',\n SHARP = 'Sharp',\n SONY = 'Sony',\n XIAOMI = 'Xiaomi',\n ZEBRA = 'Zebra',\n FACEBOOK = 'Facebook',\n CHROMIUM_OS = 'Chromium OS',\n MAC_OS = 'Mac OS';\n\n ///////////\n // Helper\n //////////\n\n var extend = function (regexes, extensions) {\n var mergedRegexes = {};\n for (var i in regexes) {\n if (extensions[i] && extensions[i].length % 2 === 0) {\n mergedRegexes[i] = extensions[i].concat(regexes[i]);\n } else {\n mergedRegexes[i] = regexes[i];\n }\n }\n return mergedRegexes;\n },\n enumerize = function (arr) {\n var enums = {};\n for (var i=0; i 0) {\n if (q.length === 2) {\n if (typeof q[1] == FUNC_TYPE) {\n // assign modified match\n this[q[0]] = q[1].call(this, match);\n } else {\n // assign given value, ignore regex match\n this[q[0]] = q[1];\n }\n } else if (q.length === 3) {\n // check whether function or regex\n if (typeof q[1] === FUNC_TYPE && !(q[1].exec && q[1].test)) {\n // call function (usually string mapper)\n this[q[0]] = match ? q[1].call(this, match, q[2]) : undefined;\n } else {\n // sanitize match using given regex\n this[q[0]] = match ? match.replace(q[1], q[2]) : undefined;\n }\n } else if (q.length === 4) {\n this[q[0]] = match ? q[3].call(this, match.replace(q[1], q[2])) : undefined;\n }\n } else {\n this[q] = match ? match : undefined;\n }\n }\n }\n }\n i += 2;\n }\n },\n\n strMapper = function (str, map) {\n\n for (var i in map) {\n // check if current value is array\n if (typeof map[i] === OBJ_TYPE && map[i].length > 0) {\n for (var j = 0; j < map[i].length; j++) {\n if (has(map[i][j], str)) {\n return (i === UNKNOWN) ? undefined : i;\n }\n }\n } else if (has(map[i], str)) {\n return (i === UNKNOWN) ? undefined : i;\n }\n }\n return str;\n };\n\n ///////////////\n // String map\n //////////////\n\n // Safari < 3.0\n var oldSafariMap = {\n '1.0' : '/8',\n '1.2' : '/1',\n '1.3' : '/3',\n '2.0' : '/412',\n '2.0.2' : '/416',\n '2.0.3' : '/417',\n '2.0.4' : '/419',\n '?' : '/'\n },\n windowsVersionMap = {\n 'ME' : '4.90',\n 'NT 3.11' : 'NT3.51',\n 'NT 4.0' : 'NT4.0',\n '2000' : 'NT 5.0',\n 'XP' : ['NT 5.1', 'NT 5.2'],\n 'Vista' : 'NT 6.0',\n '7' : 'NT 6.1',\n '8' : 'NT 6.2',\n '8.1' : 'NT 6.3',\n '10' : ['NT 6.4', 'NT 10.0'],\n 'RT' : 'ARM'\n };\n\n //////////////\n // Regex map\n /////////////\n\n var regexes = {\n\n browser : [[\n\n /\\b(?:crmo|crios)\\/([\\w\\.]+)/i // Chrome for Android/iOS\n ], [VERSION, [NAME, 'Chrome']], [\n /edg(?:e|ios|a)?\\/([\\w\\.]+)/i // Microsoft Edge\n ], [VERSION, [NAME, 'Edge']], [\n\n // Presto based\n /(opera mini)\\/([-\\w\\.]+)/i, // Opera Mini\n /(opera [mobiletab]{3,6})\\b.+version\\/([-\\w\\.]+)/i, // Opera Mobi/Tablet\n /(opera)(?:.+version\\/|[\\/ ]+)([\\w\\.]+)/i // Opera\n ], [NAME, VERSION], [\n /opios[\\/ ]+([\\w\\.]+)/i // Opera mini on iphone >= 8.0\n ], [VERSION, [NAME, OPERA+' Mini']], [\n /\\bop(?:rg)?x\\/([\\w\\.]+)/i // Opera GX\n ], [VERSION, [NAME, OPERA+' GX']], [\n /\\bopr\\/([\\w\\.]+)/i // Opera Webkit\n ], [VERSION, [NAME, OPERA]], [\n\n // Mixed\n /\\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\\/ ]?([\\w\\.]+)/i // Baidu\n ], [VERSION, [NAME, 'Baidu']], [\n /(kindle)\\/([\\w\\.]+)/i, // Kindle\n /(lunascape|maxthon|netfront|jasmine|blazer)[\\/ ]?([\\w\\.]*)/i, // Lunascape/Maxthon/Netfront/Jasmine/Blazer\n // Trident based\n /(avant|iemobile|slim)\\s?(?:browser)?[\\/ ]?([\\w\\.]*)/i, // Avant/IEMobile/SlimBrowser\n /(?:ms|\\()(ie) ([\\w\\.]+)/i, // Internet Explorer\n\n // Webkit/KHTML based // Flock/RockMelt/Midori/Epiphany/Silk/Skyfire/Bolt/Iron/Iridium/PhantomJS/Bowser/QupZilla/Falkon\n /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\\/([-\\w\\.]+)/i,\n // Rekonq/Puffin/Brave/Whale/QQBrowserLite/QQ, aka ShouQ\n /(heytap|ovi)browser\\/([\\d\\.]+)/i, // Heytap/Ovi\n /(weibo)__([\\d\\.]+)/i // Weibo\n ], [NAME, VERSION], [\n /\\bddg\\/([\\w\\.]+)/i // DuckDuckGo\n ], [VERSION, [NAME, 'DuckDuckGo']], [\n /(?:\\buc? ?browser|(?:juc.+)ucweb)[\\/ ]?([\\w\\.]+)/i // UCBrowser\n ], [VERSION, [NAME, 'UC'+BROWSER]], [\n /microm.+\\bqbcore\\/([\\w\\.]+)/i, // WeChat Desktop for Windows Built-in Browser\n /\\bqbcore\\/([\\w\\.]+).+microm/i,\n /micromessenger\\/([\\w\\.]+)/i // WeChat\n ], [VERSION, [NAME, 'WeChat']], [\n /konqueror\\/([\\w\\.]+)/i // Konqueror\n ], [VERSION, [NAME, 'Konqueror']], [\n /trident.+rv[: ]([\\w\\.]{1,9})\\b.+like gecko/i // IE11\n ], [VERSION, [NAME, 'IE']], [\n /ya(?:search)?browser\\/([\\w\\.]+)/i // Yandex\n ], [VERSION, [NAME, 'Yandex']], [\n /slbrowser\\/([\\w\\.]+)/i // Smart Lenovo Browser\n ], [VERSION, [NAME, 'Smart Lenovo '+BROWSER]], [\n /(avast|avg)\\/([\\w\\.]+)/i // Avast/AVG Secure Browser\n ], [[NAME, /(.+)/, '$1 Secure '+BROWSER], VERSION], [\n /\\bfocus\\/([\\w\\.]+)/i // Firefox Focus\n ], [VERSION, [NAME, FIREFOX+' Focus']], [\n /\\bopt\\/([\\w\\.]+)/i // Opera Touch\n ], [VERSION, [NAME, OPERA+' Touch']], [\n /coc_coc\\w+\\/([\\w\\.]+)/i // Coc Coc Browser\n ], [VERSION, [NAME, 'Coc Coc']], [\n /dolfin\\/([\\w\\.]+)/i // Dolphin\n ], [VERSION, [NAME, 'Dolphin']], [\n /coast\\/([\\w\\.]+)/i // Opera Coast\n ], [VERSION, [NAME, OPERA+' Coast']], [\n /miuibrowser\\/([\\w\\.]+)/i // MIUI Browser\n ], [VERSION, [NAME, 'MIUI '+BROWSER]], [\n /fxios\\/([-\\w\\.]+)/i // Firefox for iOS\n ], [VERSION, [NAME, FIREFOX]], [\n /\\bqihu|(qi?ho?o?|360)browser/i // 360\n ], [[NAME, '360 ' + BROWSER]], [\n /(oculus|sailfish|huawei|vivo)browser\\/([\\w\\.]+)/i\n ], [[NAME, /(.+)/, '$1 ' + BROWSER], VERSION], [ // Oculus/Sailfish/HuaweiBrowser/VivoBrowser\n /samsungbrowser\\/([\\w\\.]+)/i // Samsung Internet\n ], [VERSION, [NAME, SAMSUNG + ' Internet']], [\n /(comodo_dragon)\\/([\\w\\.]+)/i // Comodo Dragon\n ], [[NAME, /_/g, ' '], VERSION], [\n /metasr[\\/ ]?([\\d\\.]+)/i // Sogou Explorer\n ], [VERSION, [NAME, 'Sogou Explorer']], [\n /(sogou)mo\\w+\\/([\\d\\.]+)/i // Sogou Mobile\n ], [[NAME, 'Sogou Mobile'], VERSION], [\n /(electron)\\/([\\w\\.]+) safari/i, // Electron-based App\n /(tesla)(?: qtcarbrowser|\\/(20\\d\\d\\.[-\\w\\.]+))/i, // Tesla\n /m?(qqbrowser|2345Explorer)[\\/ ]?([\\w\\.]+)/i // QQBrowser/2345 Browser\n ], [NAME, VERSION], [\n /(lbbrowser)/i, // LieBao Browser\n /\\[(linkedin)app\\]/i // LinkedIn App for iOS & Android\n ], [NAME], [\n\n // WebView\n /((?:fban\\/fbios|fb_iab\\/fb4a)(?!.+fbav)|;fbav\\/([\\w\\.]+);)/i // Facebook App for iOS & Android\n ], [[NAME, FACEBOOK], VERSION], [\n /(Klarna)\\/([\\w\\.]+)/i, // Klarna Shopping Browser for iOS & Android\n /(kakao(?:talk|story))[\\/ ]([\\w\\.]+)/i, // Kakao App\n /(naver)\\(.*?(\\d+\\.[\\w\\.]+).*\\)/i, // Naver InApp\n /safari (line)\\/([\\w\\.]+)/i, // Line App for iOS\n /\\b(line)\\/([\\w\\.]+)\\/iab/i, // Line App for Android\n /(alipay)client\\/([\\w\\.]+)/i, // Alipay\n /(twitter)(?:and| f.+e\\/([\\w\\.]+))/i, // Twitter\n /(chromium|instagram|snapchat)[\\/ ]([-\\w\\.]+)/i // Chromium/Instagram/Snapchat\n ], [NAME, VERSION], [\n /\\bgsa\\/([\\w\\.]+) .*safari\\//i // Google Search Appliance on iOS\n ], [VERSION, [NAME, 'GSA']], [\n /musical_ly(?:.+app_?version\\/|_)([\\w\\.]+)/i // TikTok\n ], [VERSION, [NAME, 'TikTok']], [\n\n /headlesschrome(?:\\/([\\w\\.]+)| )/i // Chrome Headless\n ], [VERSION, [NAME, CHROME+' Headless']], [\n\n / wv\\).+(chrome)\\/([\\w\\.]+)/i // Chrome WebView\n ], [[NAME, CHROME+' WebView'], VERSION], [\n\n /droid.+ version\\/([\\w\\.]+)\\b.+(?:mobile safari|safari)/i // Android Browser\n ], [VERSION, [NAME, 'Android '+BROWSER]], [\n\n /(chrome|omniweb|arora|[tizenoka]{5} ?browser)\\/v?([\\w\\.]+)/i // Chrome/OmniWeb/Arora/Tizen/Nokia\n ], [NAME, VERSION], [\n\n /version\\/([\\w\\.\\,]+) .*mobile\\/\\w+ (safari)/i // Mobile Safari\n ], [VERSION, [NAME, 'Mobile Safari']], [\n /version\\/([\\w(\\.|\\,)]+) .*(mobile ?safari|safari)/i // Safari & Safari Mobile\n ], [VERSION, NAME], [\n /webkit.+?(mobile ?safari|safari)(\\/[\\w\\.]+)/i // Safari < 3.0\n ], [NAME, [VERSION, strMapper, oldSafariMap]], [\n\n /(webkit|khtml)\\/([\\w\\.]+)/i\n ], [NAME, VERSION], [\n\n // Gecko based\n /(navigator|netscape\\d?)\\/([-\\w\\.]+)/i // Netscape\n ], [[NAME, 'Netscape'], VERSION], [\n /mobile vr; rv:([\\w\\.]+)\\).+firefox/i // Firefox Reality\n ], [VERSION, [NAME, FIREFOX+' Reality']], [\n /ekiohf.+(flow)\\/([\\w\\.]+)/i, // Flow\n /(swiftfox)/i, // Swiftfox\n /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\\/ ]?([\\w\\.\\+]+)/i,\n // IceDragon/Iceweasel/Camino/Chimera/Fennec/Maemo/Minimo/Conkeror/Klar\n /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\\/([-\\w\\.]+)$/i,\n // Firefox/SeaMonkey/K-Meleon/IceCat/IceApe/Firebird/Phoenix\n /(firefox)\\/([\\w\\.]+)/i, // Other Firefox-based\n /(mozilla)\\/([\\w\\.]+) .+rv\\:.+gecko\\/\\d+/i, // Mozilla\n\n // Other\n /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\\. ]?browser)[-\\/ ]?v?([\\w\\.]+)/i,\n // Polaris/Lynx/Dillo/iCab/Doris/Amaya/w3m/NetSurf/Sleipnir/Obigo/Mosaic/Go/ICE/UP.Browser\n /(links) \\(([\\w\\.]+)/i, // Links\n /panasonic;(viera)/i // Panasonic Viera\n ], [NAME, VERSION], [\n \n /(cobalt)\\/([\\w\\.]+)/i // Cobalt\n ], [NAME, [VERSION, /master.|lts./, \"\"]]\n ],\n\n cpu : [[\n\n /(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\\)]/i // AMD64 (x64)\n ], [[ARCHITECTURE, 'amd64']], [\n\n /(ia32(?=;))/i // IA32 (quicktime)\n ], [[ARCHITECTURE, lowerize]], [\n\n /((?:i[346]|x)86)[;\\)]/i // IA32 (x86)\n ], [[ARCHITECTURE, 'ia32']], [\n\n /\\b(aarch64|arm(v?8e?l?|_?64))\\b/i // ARM64\n ], [[ARCHITECTURE, 'arm64']], [\n\n /\\b(arm(?:v[67])?ht?n?[fl]p?)\\b/i // ARMHF\n ], [[ARCHITECTURE, 'armhf']], [\n\n // PocketPC mistakenly identified as PowerPC\n /windows (ce|mobile); ppc;/i\n ], [[ARCHITECTURE, 'arm']], [\n\n /((?:ppc|powerpc)(?:64)?)(?: mac|;|\\))/i // PowerPC\n ], [[ARCHITECTURE, /ower/, EMPTY, lowerize]], [\n\n /(sun4\\w)[;\\)]/i // SPARC\n ], [[ARCHITECTURE, 'sparc']], [\n\n /((?:avr32|ia64(?=;))|68k(?=\\))|\\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\\b|pa-risc)/i\n // IA64, 68K, ARM/64, AVR/32, IRIX/64, MIPS/64, SPARC/64, PA-RISC\n ], [[ARCHITECTURE, lowerize]]\n ],\n\n device : [[\n\n //////////////////////////\n // MOBILES & TABLETS\n /////////////////////////\n\n // Samsung\n /\\b(sch-i[89]0\\d|shw-m380s|sm-[ptx]\\w{2,4}|gt-[pn]\\d{2,4}|sgh-t8[56]9|nexus 10)/i\n ], [MODEL, [VENDOR, SAMSUNG], [TYPE, TABLET]], [\n /\\b((?:s[cgp]h|gt|sm)-\\w+|sc[g-]?[\\d]+a?|galaxy nexus)/i,\n /samsung[- ]([-\\w]+)/i,\n /sec-(sgh\\w+)/i\n ], [MODEL, [VENDOR, SAMSUNG], [TYPE, MOBILE]], [\n\n // Apple\n /(?:\\/|\\()(ip(?:hone|od)[\\w, ]*)(?:\\/|;)/i // iPod/iPhone\n ], [MODEL, [VENDOR, APPLE], [TYPE, MOBILE]], [\n /\\((ipad);[-\\w\\),; ]+apple/i, // iPad\n /applecoremedia\\/[\\w\\.]+ \\((ipad)/i,\n /\\b(ipad)\\d\\d?,\\d\\d?[;\\]].+ios/i\n ], [MODEL, [VENDOR, APPLE], [TYPE, TABLET]], [\n /(macintosh);/i\n ], [MODEL, [VENDOR, APPLE]], [\n\n // Sharp\n /\\b(sh-?[altvz]?\\d\\d[a-ekm]?)/i\n ], [MODEL, [VENDOR, SHARP], [TYPE, MOBILE]], [\n\n // Huawei\n /\\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\\d{2})\\b(?!.+d\\/s)/i\n ], [MODEL, [VENDOR, HUAWEI], [TYPE, TABLET]], [\n /(?:huawei|honor)([-\\w ]+)[;\\)]/i,\n /\\b(nexus 6p|\\w{2,4}e?-[atu]?[ln][\\dx][012359c][adn]?)\\b(?!.+d\\/s)/i\n ], [MODEL, [VENDOR, HUAWEI], [TYPE, MOBILE]], [\n\n // Xiaomi\n /\\b(poco[\\w ]+|m2\\d{3}j\\d\\d[a-z]{2})(?: bui|\\))/i, // Xiaomi POCO\n /\\b; (\\w+) build\\/hm\\1/i, // Xiaomi Hongmi 'numeric' models\n /\\b(hm[-_ ]?note?[_ ]?(?:\\d\\w)?) bui/i, // Xiaomi Hongmi\n /\\b(redmi[\\-_ ]?(?:note|k)?[\\w_ ]+)(?: bui|\\))/i, // Xiaomi Redmi\n /oid[^\\)]+; (m?[12][0-389][01]\\w{3,6}[c-y])( bui|; wv|\\))/i, // Xiaomi Redmi 'numeric' models\n /\\b(mi[-_ ]?(?:a\\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\\d?\\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\\))/i // Xiaomi Mi\n ], [[MODEL, /_/g, ' '], [VENDOR, XIAOMI], [TYPE, MOBILE]], [\n /oid[^\\)]+; (2\\d{4}(283|rpbf)[cgl])( bui|\\))/i, // Redmi Pad\n /\\b(mi[-_ ]?(?:pad)(?:[\\w_ ]+))(?: bui|\\))/i // Mi Pad tablets\n ],[[MODEL, /_/g, ' '], [VENDOR, XIAOMI], [TYPE, TABLET]], [\n\n // OPPO\n /; (\\w+) bui.+ oppo/i,\n /\\b(cph[12]\\d{3}|p(?:af|c[al]|d\\w|e[ar])[mt]\\d0|x9007|a101op)\\b/i\n ], [MODEL, [VENDOR, 'OPPO'], [TYPE, MOBILE]], [\n /\\b(opd2\\d{3}a?) bui/i\n ], [MODEL, [VENDOR, 'OPPO'], [TYPE, TABLET]], [\n\n // Vivo\n /vivo (\\w+)(?: bui|\\))/i,\n /\\b(v[12]\\d{3}\\w?[at])(?: bui|;)/i\n ], [MODEL, [VENDOR, 'Vivo'], [TYPE, MOBILE]], [\n\n // Realme\n /\\b(rmx[1-3]\\d{3})(?: bui|;|\\))/i\n ], [MODEL, [VENDOR, 'Realme'], [TYPE, MOBILE]], [\n\n // Motorola\n /\\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\\b[\\w ]+build\\//i,\n /\\bmot(?:orola)?[- ](\\w*)/i,\n /((?:moto[\\w\\(\\) ]+|xt\\d{3,4}|nexus 6)(?= bui|\\)))/i\n ], [MODEL, [VENDOR, MOTOROLA], [TYPE, MOBILE]], [\n /\\b(mz60\\d|xoom[2 ]{0,2}) build\\//i\n ], [MODEL, [VENDOR, MOTOROLA], [TYPE, TABLET]], [\n\n // LG\n /((?=lg)?[vl]k\\-?\\d{3}) bui| 3\\.[-\\w; ]{10}lg?-([06cv9]{3,4})/i\n ], [MODEL, [VENDOR, LG], [TYPE, TABLET]], [\n /(lm(?:-?f100[nv]?|-[\\w\\.]+)(?= bui|\\))|nexus [45])/i,\n /\\blg[-e;\\/ ]+((?!browser|netcast|android tv)\\w+)/i,\n /\\blg-?([\\d\\w]+) bui/i\n ], [MODEL, [VENDOR, LG], [TYPE, MOBILE]], [\n\n // Lenovo\n /(ideatab[-\\w ]+)/i,\n /lenovo ?(s[56]000[-\\w]+|tab(?:[\\w ]+)|yt[-\\d\\w]{6}|tb[-\\d\\w]{6})/i\n ], [MODEL, [VENDOR, 'Lenovo'], [TYPE, TABLET]], [\n\n // Nokia\n /(?:maemo|nokia).*(n900|lumia \\d+)/i,\n /nokia[-_ ]?([-\\w\\.]*)/i\n ], [[MODEL, /_/g, ' '], [VENDOR, 'Nokia'], [TYPE, MOBILE]], [\n\n // Google\n /(pixel c)\\b/i // Google Pixel C\n ], [MODEL, [VENDOR, GOOGLE], [TYPE, TABLET]], [\n /droid.+; (pixel[\\daxl ]{0,6})(?: bui|\\))/i // Google Pixel\n ], [MODEL, [VENDOR, GOOGLE], [TYPE, MOBILE]], [\n\n // Sony\n /droid.+ (a?\\d[0-2]{2}so|[c-g]\\d{4}|so[-gl]\\w+|xq-a\\w[4-7][12])(?= bui|\\).+chrome\\/(?![1-6]{0,1}\\d\\.))/i\n ], [MODEL, [VENDOR, SONY], [TYPE, MOBILE]], [\n /sony tablet [ps]/i,\n /\\b(?:sony)?sgp\\w+(?: bui|\\))/i\n ], [[MODEL, 'Xperia Tablet'], [VENDOR, SONY], [TYPE, TABLET]], [\n\n // OnePlus\n / (kb2005|in20[12]5|be20[12][59])\\b/i,\n /(?:one)?(?:plus)? (a\\d0\\d\\d)(?: b|\\))/i\n ], [MODEL, [VENDOR, 'OnePlus'], [TYPE, MOBILE]], [\n\n // Amazon\n /(alexa)webm/i,\n /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\\))/i, // Kindle Fire without Silk / Echo Show\n /(kf[a-z]+)( bui|\\)).+silk\\//i // Kindle Fire HD\n ], [MODEL, [VENDOR, AMAZON], [TYPE, TABLET]], [\n /((?:sd|kf)[0349hijorstuw]+)( bui|\\)).+silk\\//i // Fire Phone\n ], [[MODEL, /(.+)/g, 'Fire Phone $1'], [VENDOR, AMAZON], [TYPE, MOBILE]], [\n\n // BlackBerry\n /(playbook);[-\\w\\),; ]+(rim)/i // BlackBerry PlayBook\n ], [MODEL, VENDOR, [TYPE, TABLET]], [\n /\\b((?:bb[a-f]|st[hv])100-\\d)/i,\n /\\(bb10; (\\w+)/i // BlackBerry 10\n ], [MODEL, [VENDOR, BLACKBERRY], [TYPE, MOBILE]], [\n\n // Asus\n /(?:\\b|asus_)(transfo[prime ]{4,10} \\w+|eeepc|slider \\w+|nexus 7|padfone|p00[cj])/i\n ], [MODEL, [VENDOR, ASUS], [TYPE, TABLET]], [\n / (z[bes]6[027][012][km][ls]|zenfone \\d\\w?)\\b/i\n ], [MODEL, [VENDOR, ASUS], [TYPE, MOBILE]], [\n\n // HTC\n /(nexus 9)/i // HTC Nexus 9\n ], [MODEL, [VENDOR, 'HTC'], [TYPE, TABLET]], [\n /(htc)[-;_ ]{1,2}([\\w ]+(?=\\)| bui)|\\w+)/i, // HTC\n\n // ZTE\n /(zte)[- ]([\\w ]+?)(?: bui|\\/|\\))/i,\n /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\\.))|sony(?!-bra))[-_ ]?([-\\w]*)/i // Alcatel/GeeksPhone/Nexian/Panasonic/Sony\n ], [VENDOR, [MODEL, /_/g, ' '], [TYPE, MOBILE]], [\n\n // Acer\n /droid.+; ([ab][1-7]-?[0178a]\\d\\d?)/i\n ], [MODEL, [VENDOR, 'Acer'], [TYPE, TABLET]], [\n\n // Meizu\n /droid.+; (m[1-5] note) bui/i,\n /\\bmz-([-\\w]{2,})/i\n ], [MODEL, [VENDOR, 'Meizu'], [TYPE, MOBILE]], [\n \n // Ulefone\n /; ((?:power )?armor(?:[\\w ]{0,8}))(?: bui|\\))/i\n ], [MODEL, [VENDOR, 'Ulefone'], [TYPE, MOBILE]], [\n\n // MIXED\n /(blackberry|benq|palm(?=\\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\\w]*)/i,\n // BlackBerry/BenQ/Palm/Sony-Ericsson/Acer/Asus/Dell/Meizu/Motorola/Polytron\n /(hp) ([\\w ]+\\w)/i, // HP iPAQ\n /(asus)-?(\\w+)/i, // Asus\n /(microsoft); (lumia[\\w ]+)/i, // Microsoft Lumia\n /(lenovo)[-_ ]?([-\\w]+)/i, // Lenovo\n /(jolla)/i, // Jolla\n /(oppo) ?([\\w ]+) bui/i // OPPO\n ], [VENDOR, MODEL, [TYPE, MOBILE]], [\n\n /(kobo)\\s(ereader|touch)/i, // Kobo\n /(archos) (gamepad2?)/i, // Archos\n /(hp).+(touchpad(?!.+tablet)|tablet)/i, // HP TouchPad\n /(kindle)\\/([\\w\\.]+)/i, // Kindle\n /(nook)[\\w ]+build\\/(\\w+)/i, // Nook\n /(dell) (strea[kpr\\d ]*[\\dko])/i, // Dell Streak\n /(le[- ]+pan)[- ]+(\\w{1,9}) bui/i, // Le Pan Tablets\n /(trinity)[- ]*(t\\d{3}) bui/i, // Trinity Tablets\n /(gigaset)[- ]+(q\\w{1,9}) bui/i, // Gigaset Tablets\n /(vodafone) ([\\w ]+)(?:\\)| bui)/i // Vodafone\n ], [VENDOR, MODEL, [TYPE, TABLET]], [\n\n /(surface duo)/i // Surface Duo\n ], [MODEL, [VENDOR, MICROSOFT], [TYPE, TABLET]], [\n /droid [\\d\\.]+; (fp\\du?)(?: b|\\))/i // Fairphone\n ], [MODEL, [VENDOR, 'Fairphone'], [TYPE, MOBILE]], [\n /(u304aa)/i // AT&T\n ], [MODEL, [VENDOR, 'AT&T'], [TYPE, MOBILE]], [\n /\\bsie-(\\w*)/i // Siemens\n ], [MODEL, [VENDOR, 'Siemens'], [TYPE, MOBILE]], [\n /\\b(rct\\w+) b/i // RCA Tablets\n ], [MODEL, [VENDOR, 'RCA'], [TYPE, TABLET]], [\n /\\b(venue[\\d ]{2,7}) b/i // Dell Venue Tablets\n ], [MODEL, [VENDOR, 'Dell'], [TYPE, TABLET]], [\n /\\b(q(?:mv|ta)\\w+) b/i // Verizon Tablet\n ], [MODEL, [VENDOR, 'Verizon'], [TYPE, TABLET]], [\n /\\b(?:barnes[& ]+noble |bn[rt])([\\w\\+ ]*) b/i // Barnes & Noble Tablet\n ], [MODEL, [VENDOR, 'Barnes & Noble'], [TYPE, TABLET]], [\n /\\b(tm\\d{3}\\w+) b/i\n ], [MODEL, [VENDOR, 'NuVision'], [TYPE, TABLET]], [\n /\\b(k88) b/i // ZTE K Series Tablet\n ], [MODEL, [VENDOR, 'ZTE'], [TYPE, TABLET]], [\n /\\b(nx\\d{3}j) b/i // ZTE Nubia\n ], [MODEL, [VENDOR, 'ZTE'], [TYPE, MOBILE]], [\n /\\b(gen\\d{3}) b.+49h/i // Swiss GEN Mobile\n ], [MODEL, [VENDOR, 'Swiss'], [TYPE, MOBILE]], [\n /\\b(zur\\d{3}) b/i // Swiss ZUR Tablet\n ], [MODEL, [VENDOR, 'Swiss'], [TYPE, TABLET]], [\n /\\b((zeki)?tb.*\\b) b/i // Zeki Tablets\n ], [MODEL, [VENDOR, 'Zeki'], [TYPE, TABLET]], [\n /\\b([yr]\\d{2}) b/i,\n /\\b(dragon[- ]+touch |dt)(\\w{5}) b/i // Dragon Touch Tablet\n ], [[VENDOR, 'Dragon Touch'], MODEL, [TYPE, TABLET]], [\n /\\b(ns-?\\w{0,9}) b/i // Insignia Tablets\n ], [MODEL, [VENDOR, 'Insignia'], [TYPE, TABLET]], [\n /\\b((nxa|next)-?\\w{0,9}) b/i // NextBook Tablets\n ], [MODEL, [VENDOR, 'NextBook'], [TYPE, TABLET]], [\n /\\b(xtreme\\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i // Voice Xtreme Phones\n ], [[VENDOR, 'Voice'], MODEL, [TYPE, MOBILE]], [\n /\\b(lvtel\\-)?(v1[12]) b/i // LvTel Phones\n ], [[VENDOR, 'LvTel'], MODEL, [TYPE, MOBILE]], [\n /\\b(ph-1) /i // Essential PH-1\n ], [MODEL, [VENDOR, 'Essential'], [TYPE, MOBILE]], [\n /\\b(v(100md|700na|7011|917g).*\\b) b/i // Envizen Tablets\n ], [MODEL, [VENDOR, 'Envizen'], [TYPE, TABLET]], [\n /\\b(trio[-\\w\\. ]+) b/i // MachSpeed Tablets\n ], [MODEL, [VENDOR, 'MachSpeed'], [TYPE, TABLET]], [\n /\\btu_(1491) b/i // Rotor Tablets\n ], [MODEL, [VENDOR, 'Rotor'], [TYPE, TABLET]], [\n /(shield[\\w ]+) b/i // Nvidia Shield Tablets\n ], [MODEL, [VENDOR, 'Nvidia'], [TYPE, TABLET]], [\n /(sprint) (\\w+)/i // Sprint Phones\n ], [VENDOR, MODEL, [TYPE, MOBILE]], [\n /(kin\\.[onetw]{3})/i // Microsoft Kin\n ], [[MODEL, /\\./g, ' '], [VENDOR, MICROSOFT], [TYPE, MOBILE]], [\n /droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\\)/i // Zebra\n ], [MODEL, [VENDOR, ZEBRA], [TYPE, TABLET]], [\n /droid.+; (ec30|ps20|tc[2-8]\\d[kx])\\)/i\n ], [MODEL, [VENDOR, ZEBRA], [TYPE, MOBILE]], [\n\n ///////////////////\n // SMARTTVS\n ///////////////////\n\n /smart-tv.+(samsung)/i // Samsung\n ], [VENDOR, [TYPE, SMARTTV]], [\n /hbbtv.+maple;(\\d+)/i\n ], [[MODEL, /^/, 'SmartTV'], [VENDOR, SAMSUNG], [TYPE, SMARTTV]], [\n /(nux; netcast.+smarttv|lg (netcast\\.tv-201\\d|android tv))/i // LG SmartTV\n ], [[VENDOR, LG], [TYPE, SMARTTV]], [\n /(apple) ?tv/i // Apple TV\n ], [VENDOR, [MODEL, APPLE+' TV'], [TYPE, SMARTTV]], [\n /crkey/i // Google Chromecast\n ], [[MODEL, CHROME+'cast'], [VENDOR, GOOGLE], [TYPE, SMARTTV]], [\n /droid.+aft(\\w+)( bui|\\))/i // Fire TV\n ], [MODEL, [VENDOR, AMAZON], [TYPE, SMARTTV]], [\n /\\(dtv[\\);].+(aquos)/i,\n /(aquos-tv[\\w ]+)\\)/i // Sharp\n ], [MODEL, [VENDOR, SHARP], [TYPE, SMARTTV]],[\n /(bravia[\\w ]+)( bui|\\))/i // Sony\n ], [MODEL, [VENDOR, SONY], [TYPE, SMARTTV]], [\n /(mitv-\\w{5}) bui/i // Xiaomi\n ], [MODEL, [VENDOR, XIAOMI], [TYPE, SMARTTV]], [\n /Hbbtv.*(technisat) (.*);/i // TechniSAT\n ], [VENDOR, MODEL, [TYPE, SMARTTV]], [\n /\\b(roku)[\\dx]*[\\)\\/]((?:dvp-)?[\\d\\.]*)/i, // Roku\n /hbbtv\\/\\d+\\.\\d+\\.\\d+ +\\([\\w\\+ ]*; *([\\w\\d][^;]*);([^;]*)/i // HbbTV devices\n ], [[VENDOR, trim], [MODEL, trim], [TYPE, SMARTTV]], [\n /\\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\\b/i // SmartTV from Unidentified Vendors\n ], [[TYPE, SMARTTV]], [\n\n ///////////////////\n // CONSOLES\n ///////////////////\n\n /(ouya)/i, // Ouya\n /(nintendo) ([wids3utch]+)/i // Nintendo\n ], [VENDOR, MODEL, [TYPE, CONSOLE]], [\n /droid.+; (shield) bui/i // Nvidia\n ], [MODEL, [VENDOR, 'Nvidia'], [TYPE, CONSOLE]], [\n /(playstation [345portablevi]+)/i // Playstation\n ], [MODEL, [VENDOR, SONY], [TYPE, CONSOLE]], [\n /\\b(xbox(?: one)?(?!; xbox))[\\); ]/i // Microsoft Xbox\n ], [MODEL, [VENDOR, MICROSOFT], [TYPE, CONSOLE]], [\n\n ///////////////////\n // WEARABLES\n ///////////////////\n\n /((pebble))app/i // Pebble\n ], [VENDOR, MODEL, [TYPE, WEARABLE]], [\n /(watch)(?: ?os[,\\/]|\\d,\\d\\/)[\\d\\.]+/i // Apple Watch\n ], [MODEL, [VENDOR, APPLE], [TYPE, WEARABLE]], [\n /droid.+; (glass) \\d/i // Google Glass\n ], [MODEL, [VENDOR, GOOGLE], [TYPE, WEARABLE]], [\n /droid.+; (wt63?0{2,3})\\)/i\n ], [MODEL, [VENDOR, ZEBRA], [TYPE, WEARABLE]], [\n /(quest( \\d| pro)?)/i // Oculus Quest\n ], [MODEL, [VENDOR, FACEBOOK], [TYPE, WEARABLE]], [\n\n ///////////////////\n // EMBEDDED\n ///////////////////\n\n /(tesla)(?: qtcarbrowser|\\/[-\\w\\.]+)/i // Tesla\n ], [VENDOR, [TYPE, EMBEDDED]], [\n /(aeobc)\\b/i // Echo Dot\n ], [MODEL, [VENDOR, AMAZON], [TYPE, EMBEDDED]], [\n\n ////////////////////\n // MIXED (GENERIC)\n ///////////////////\n\n /droid .+?; ([^;]+?)(?: bui|; wv\\)|\\) applew).+? mobile safari/i // Android Phones from Unidentified Vendors\n ], [MODEL, [TYPE, MOBILE]], [\n /droid .+?; ([^;]+?)(?: bui|\\) applew).+?(?! mobile) safari/i // Android Tablets from Unidentified Vendors\n ], [MODEL, [TYPE, TABLET]], [\n /\\b((tablet|tab)[;\\/]|focus\\/\\d(?!.+mobile))/i // Unidentifiable Tablet\n ], [[TYPE, TABLET]], [\n /(phone|mobile(?:[;\\/]| [ \\w\\/\\.]*safari)|pda(?=.+windows ce))/i // Unidentifiable Mobile\n ], [[TYPE, MOBILE]], [\n /(android[-\\w\\. ]{0,9});.+buil/i // Generic Android Device\n ], [MODEL, [VENDOR, 'Generic']]\n ],\n\n engine : [[\n\n /windows.+ edge\\/([\\w\\.]+)/i // EdgeHTML\n ], [VERSION, [NAME, EDGE+'HTML']], [\n\n /webkit\\/537\\.36.+chrome\\/(?!27)([\\w\\.]+)/i // Blink\n ], [VERSION, [NAME, 'Blink']], [\n\n /(presto)\\/([\\w\\.]+)/i, // Presto\n /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\\/([\\w\\.]+)/i, // WebKit/Trident/NetFront/NetSurf/Amaya/Lynx/w3m/Goanna\n /ekioh(flow)\\/([\\w\\.]+)/i, // Flow\n /(khtml|tasman|links)[\\/ ]\\(?([\\w\\.]+)/i, // KHTML/Tasman/Links\n /(icab)[\\/ ]([23]\\.[\\d\\.]+)/i, // iCab\n /\\b(libweb)/i\n ], [NAME, VERSION], [\n\n /rv\\:([\\w\\.]{1,9})\\b.+(gecko)/i // Gecko\n ], [VERSION, NAME]\n ],\n\n os : [[\n\n // Windows\n /microsoft (windows) (vista|xp)/i // Windows (iTunes)\n ], [NAME, VERSION], [\n /(windows (?:phone(?: os)?|mobile))[\\/ ]?([\\d\\.\\w ]*)/i // Windows Phone\n ], [NAME, [VERSION, strMapper, windowsVersionMap]], [\n /windows nt 6\\.2; (arm)/i, // Windows RT\n /windows[\\/ ]?([ntce\\d\\. ]+\\w)(?!.+xbox)/i,\n /(?:win(?=3|9|n)|win 9x )([nt\\d\\.]+)/i\n ], [[VERSION, strMapper, windowsVersionMap], [NAME, 'Windows']], [\n\n // iOS/macOS\n /ip[honead]{2,4}\\b(?:.*os ([\\w]+) like mac|; opera)/i, // iOS\n /(?:ios;fbsv\\/|iphone.+ios[\\/ ])([\\d\\.]+)/i,\n /cfnetwork\\/.+darwin/i\n ], [[VERSION, /_/g, '.'], [NAME, 'iOS']], [\n /(mac os x) ?([\\w\\. ]*)/i,\n /(macintosh|mac_powerpc\\b)(?!.+haiku)/i // Mac OS\n ], [[NAME, MAC_OS], [VERSION, /_/g, '.']], [\n\n // Mobile OSes\n /droid ([\\w\\.]+)\\b.+(android[- ]x86|harmonyos)/i // Android-x86/HarmonyOS\n ], [VERSION, NAME], [ // Android/WebOS/QNX/Bada/RIM/Maemo/MeeGo/Sailfish OS\n /(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\\/ ]?([\\w\\.]*)/i,\n /(blackberry)\\w*\\/([\\w\\.]*)/i, // Blackberry\n /(tizen|kaios)[\\/ ]([\\w\\.]+)/i, // Tizen/KaiOS\n /\\((series40);/i // Series 40\n ], [NAME, VERSION], [\n /\\(bb(10);/i // BlackBerry 10\n ], [VERSION, [NAME, BLACKBERRY]], [\n /(?:symbian ?os|symbos|s60(?=;)|series60)[-\\/ ]?([\\w\\.]*)/i // Symbian\n ], [VERSION, [NAME, 'Symbian']], [\n /mozilla\\/[\\d\\.]+ \\((?:mobile|tablet|tv|mobile; [\\w ]+); rv:.+ gecko\\/([\\w\\.]+)/i // Firefox OS\n ], [VERSION, [NAME, FIREFOX+' OS']], [\n /web0s;.+rt(tv)/i,\n /\\b(?:hp)?wos(?:browser)?\\/([\\w\\.]+)/i // WebOS\n ], [VERSION, [NAME, 'webOS']], [\n /watch(?: ?os[,\\/]|\\d,\\d\\/)([\\d\\.]+)/i // watchOS\n ], [VERSION, [NAME, 'watchOS']], [\n\n // Google Chromecast\n /crkey\\/([\\d\\.]+)/i // Google Chromecast\n ], [VERSION, [NAME, CHROME+'cast']], [\n /(cros) [\\w]+(?:\\)| ([\\w\\.]+)\\b)/i // Chromium OS\n ], [[NAME, CHROMIUM_OS], VERSION],[\n\n // Smart TVs\n /panasonic;(viera)/i, // Panasonic Viera\n /(netrange)mmh/i, // Netrange\n /(nettv)\\/(\\d+\\.[\\w\\.]+)/i, // NetTV\n\n // Console\n /(nintendo|playstation) ([wids345portablevuch]+)/i, // Nintendo/Playstation\n /(xbox); +xbox ([^\\);]+)/i, // Microsoft Xbox (360, One, X, S, Series X, Series S)\n\n // Other\n /\\b(joli|palm)\\b ?(?:os)?\\/?([\\w\\.]*)/i, // Joli/Palm\n /(mint)[\\/\\(\\) ]?(\\w*)/i, // Mint\n /(mageia|vectorlinux)[; ]/i, // Mageia/VectorLinux\n /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\\/ ]?(?!chrom|package)([-\\w\\.]*)/i,\n // Ubuntu/Debian/SUSE/Gentoo/Arch/Slackware/Fedora/Mandriva/CentOS/PCLinuxOS/RedHat/Zenwalk/Linpus/Raspbian/Plan9/Minix/RISCOS/Contiki/Deepin/Manjaro/elementary/Sabayon/Linspire\n /(hurd|linux) ?([\\w\\.]*)/i, // Hurd/Linux\n /(gnu) ?([\\w\\.]*)/i, // GNU\n /\\b([-frentopcghs]{0,5}bsd|dragonfly)[\\/ ]?(?!amd|[ix346]{1,2}86)([\\w\\.]*)/i, // FreeBSD/NetBSD/OpenBSD/PC-BSD/GhostBSD/DragonFly\n /(haiku) (\\w+)/i // Haiku\n ], [NAME, VERSION], [\n /(sunos) ?([\\w\\.\\d]*)/i // Solaris\n ], [[NAME, 'Solaris'], VERSION], [\n /((?:open)?solaris)[-\\/ ]?([\\w\\.]*)/i, // Solaris\n /(aix) ((\\d)(?=\\.|\\)| )[\\w\\.])*/i, // AIX\n /\\b(beos|os\\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, // BeOS/OS2/AmigaOS/MorphOS/OpenVMS/Fuchsia/HP-UX/SerenityOS\n /(unix) ?([\\w\\.]*)/i // UNIX\n ], [NAME, VERSION]\n ]\n };\n\n /////////////////\n // Constructor\n ////////////////\n\n var UAParser = function (ua, extensions) {\n\n if (typeof ua === OBJ_TYPE) {\n extensions = ua;\n ua = undefined;\n }\n\n if (!(this instanceof UAParser)) {\n return new UAParser(ua, extensions).getResult();\n }\n\n var _navigator = (typeof window !== UNDEF_TYPE && window.navigator) ? window.navigator : undefined;\n var _ua = ua || ((_navigator && _navigator.userAgent) ? _navigator.userAgent : EMPTY);\n var _uach = (_navigator && _navigator.userAgentData) ? _navigator.userAgentData : undefined;\n var _rgxmap = extensions ? extend(regexes, extensions) : regexes;\n var _isSelfNav = _navigator && _navigator.userAgent == _ua;\n\n this.getBrowser = function () {\n var _browser = {};\n _browser[NAME] = undefined;\n _browser[VERSION] = undefined;\n rgxMapper.call(_browser, _ua, _rgxmap.browser);\n _browser[MAJOR] = majorize(_browser[VERSION]);\n // Brave-specific detection\n if (_isSelfNav && _navigator && _navigator.brave && typeof _navigator.brave.isBrave == FUNC_TYPE) {\n _browser[NAME] = 'Brave';\n }\n return _browser;\n };\n this.getCPU = function () {\n var _cpu = {};\n _cpu[ARCHITECTURE] = undefined;\n rgxMapper.call(_cpu, _ua, _rgxmap.cpu);\n return _cpu;\n };\n this.getDevice = function () {\n var _device = {};\n _device[VENDOR] = undefined;\n _device[MODEL] = undefined;\n _device[TYPE] = undefined;\n rgxMapper.call(_device, _ua, _rgxmap.device);\n if (_isSelfNav && !_device[TYPE] && _uach && _uach.mobile) {\n _device[TYPE] = MOBILE;\n }\n // iPadOS-specific detection: identified as Mac, but has some iOS-only properties\n if (_isSelfNav && _device[MODEL] == 'Macintosh' && _navigator && typeof _navigator.standalone !== UNDEF_TYPE && _navigator.maxTouchPoints && _navigator.maxTouchPoints > 2) {\n _device[MODEL] = 'iPad';\n _device[TYPE] = TABLET;\n }\n return _device;\n };\n this.getEngine = function () {\n var _engine = {};\n _engine[NAME] = undefined;\n _engine[VERSION] = undefined;\n rgxMapper.call(_engine, _ua, _rgxmap.engine);\n return _engine;\n };\n this.getOS = function () {\n var _os = {};\n _os[NAME] = undefined;\n _os[VERSION] = undefined;\n rgxMapper.call(_os, _ua, _rgxmap.os);\n if (_isSelfNav && !_os[NAME] && _uach && _uach.platform && _uach.platform != 'Unknown') {\n _os[NAME] = _uach.platform \n .replace(/chrome os/i, CHROMIUM_OS)\n .replace(/macos/i, MAC_OS); // backward compatibility\n }\n return _os;\n };\n this.getResult = function () {\n return {\n ua : this.getUA(),\n browser : this.getBrowser(),\n engine : this.getEngine(),\n os : this.getOS(),\n device : this.getDevice(),\n cpu : this.getCPU()\n };\n };\n this.getUA = function () {\n return _ua;\n };\n this.setUA = function (ua) {\n _ua = (typeof ua === STR_TYPE && ua.length > UA_MAX_LENGTH) ? trim(ua, UA_MAX_LENGTH) : ua;\n return this;\n };\n this.setUA(_ua);\n return this;\n };\n\n UAParser.VERSION = LIBVERSION;\n UAParser.BROWSER = enumerize([NAME, VERSION, MAJOR]);\n UAParser.CPU = enumerize([ARCHITECTURE]);\n UAParser.DEVICE = enumerize([MODEL, VENDOR, TYPE, CONSOLE, MOBILE, SMARTTV, TABLET, WEARABLE, EMBEDDED]);\n UAParser.ENGINE = UAParser.OS = enumerize([NAME, VERSION]);\n\n ///////////\n // Export\n //////////\n\n // check js environment\n if (typeof(exports) !== UNDEF_TYPE) {\n // nodejs env\n if (typeof module !== UNDEF_TYPE && module.exports) {\n exports = module.exports = UAParser;\n }\n exports.UAParser = UAParser;\n } else {\n // requirejs env (optional)\n if (typeof(define) === FUNC_TYPE && define.amd) {\n define(function () {\n return UAParser;\n });\n } else if (typeof window !== UNDEF_TYPE) {\n // browser env\n window.UAParser = UAParser;\n }\n }\n\n // jQuery/Zepto specific (optional)\n // Note:\n // In AMD env the global scope should be kept clean, but jQuery is an exception.\n // jQuery always exports to global scope, unless jQuery.noConflict(true) is used,\n // and we should catch that.\n var $ = typeof window !== UNDEF_TYPE && (window.jQuery || window.Zepto);\n if ($ && !$.ua) {\n var parser = new UAParser();\n $.ua = parser.getResult();\n $.ua.get = function () {\n return parser.getUA();\n };\n $.ua.set = function (ua) {\n parser.setUA(ua);\n var result = parser.getResult();\n for (var prop in result) {\n $.ua[prop] = result[prop];\n }\n };\n }\n\n})(typeof window === 'object' ? window : this);\n","import UAParser from \"ua-parser-js\";\nlet deviceInfo = {};\nconst getDeviceInfo = () => {\n var _a, _b, _c, _d;\n if (Object.keys(deviceInfo).length) {\n return deviceInfo;\n }\n const parser = new UAParser();\n const res = parser.getResult();\n const { browser, os } = res;\n deviceInfo = {\n platform: \"Web\",\n browser: (_a = browser == null ? void 0 : browser.name) != null ? _a : \"\",\n browser_version: (_b = browser == null ? void 0 : browser.version) != null ? _b : \"\",\n os: (_c = os == null ? void 0 : os.name) != null ? _c : \"\",\n os_version: (_d = os == null ? void 0 : os.version) != null ? _d : \"\"\n };\n return deviceInfo;\n};\nexport {\n getDeviceInfo\n};\n","var PageReadyTiming;\n(function(PageReadyTiming2) {\n PageReadyTiming2[\"CUSTOM\"] = \"CUSTOM\";\n PageReadyTiming2[\"ACTUAL_FMP\"] = \"ACTUAL_FMP\";\n})(PageReadyTiming || (PageReadyTiming = {}));\nvar UserDropReason;\n(function(UserDropReason2) {\n UserDropReason2[\"ABORT\"] = \"ABORT\";\n UserDropReason2[\"CRASH\"] = \"CRASH\";\n})(UserDropReason || (UserDropReason = {}));\nvar CUJStatus;\n(function(CUJStatus2) {\n CUJStatus2[\"START\"] = \"START\";\n CUJStatus2[\"IN_PROGRESS\"] = \"IN_PROGRESS\";\n CUJStatus2[\"FAILURE\"] = \"FAILURE\";\n CUJStatus2[\"FINISH\"] = \"FINISH\";\n CUJStatus2[\"ABORT\"] = \"ABORT\";\n})(CUJStatus || (CUJStatus = {}));\nexport {\n CUJStatus,\n PageReadyTiming,\n UserDropReason\n};\n","const VERSION = \"1.1.0\";\nconst STORAGE_PREFIX = `_ccfs_${VERSION}`;\nconst CONSENT_DATA_STORAGE_NAME = `${STORAGE_PREFIX}_consent`;\nconst NOTIFICATION_STORAGE_NAME = `${STORAGE_PREFIX}_notifications`;\nconst SDK_BID = \"pns_consent_system\";\nvar Region = /* @__PURE__ */ ((Region2) => {\n Region2[\"US_EAST\"] = \"US-East\";\n Region2[\"US_EASTRED\"] = \"US-EastRed\";\n Region2[\"SINGAPORE_CENTRAL\"] = \"Singapore-Central\";\n Region2[\"EU_TTP\"] = \"EU-TTP\";\n Region2[\"EU_TTP2\"] = \"EU-TTP2\";\n Region2[\"US_TTP\"] = \"US-TTP\";\n Region2[\"US_TTP2\"] = \"US-TTP2\";\n return Region2;\n})(Region || {});\nvar Mode = /* @__PURE__ */ ((Mode2) => {\n Mode2[\"PRODUCTION\"] = \"production\";\n Mode2[\"DEV\"] = \"dev\";\n Mode2[\"BOE\"] = \"boe\";\n return Mode2;\n})(Mode || {});\nexport {\n CONSENT_DATA_STORAGE_NAME,\n Mode,\n NOTIFICATION_STORAGE_NAME,\n Region,\n SDK_BID,\n STORAGE_PREFIX,\n VERSION\n};\n","import { VERSION } from \"../../constants/env\";\nclass BaseLoggingModule {\n constructor() {\n this.region = \"\";\n this.bid = \"\";\n this.debug = false;\n }\n init(config) {\n const { region = \"\", bid = \"\", debug = false } = config != null ? config : {};\n this.region = region;\n this.bid = bid;\n this.debug = debug;\n }\n send(event) {\n }\n info(message, data) {\n }\n warn(message, data) {\n }\n error(message, data) {\n }\n getMeta(...args) {\n return {\n version: VERSION,\n bid: this.bid,\n region: this.region\n };\n }\n reportCUJ(name, status, data) {\n }\n destruct() {\n }\n}\nvar BaseLoggingModule_default = BaseLoggingModule;\nexport {\n BaseLoggingModule_default as default\n};\n","var LifeCycleEventName = /* @__PURE__ */ ((LifeCycleEventName2) => {\n LifeCycleEventName2[\"beforeFetchUserInfo\"] = \"beforeFetchUserInfo\";\n LifeCycleEventName2[\"afterFetchUserInfo\"] = \"afterFetchUserInfo\";\n LifeCycleEventName2[\"beforeFetchConsentData\"] = \"beforeFetchConsentData\";\n LifeCycleEventName2[\"afterFetchConsentData\"] = \"afterFetchConsentData\";\n LifeCycleEventName2[\"beforeFetchNotificationData\"] = \"beforeFetchNotificationData\";\n LifeCycleEventName2[\"afterFetchNotificationData\"] = \"afterFetchNotificationData\";\n LifeCycleEventName2[\"beforeUpdateRecords\"] = \"beforeUpdateRecords\";\n LifeCycleEventName2[\"afterUpdateRecords\"] = \"afterUpdateRecords\";\n LifeCycleEventName2[\"beforeNotify\"] = \"beforeNotify\";\n LifeCycleEventName2[\"afterNotify\"] = \"afterNotify\";\n LifeCycleEventName2[\"beforeRemoveNotification\"] = \"beforeRemoveNotification\";\n LifeCycleEventName2[\"afterRemoveNotification\"] = \"afterRemoveNotification\";\n LifeCycleEventName2[\"beforeThirdPartyApprove\"] = \"beforeThirdPartyApprove\";\n LifeCycleEventName2[\"afterThirdPartyApprove\"] = \"afterThirdPartyApprove\";\n LifeCycleEventName2[\"beforeThirdPartyReject\"] = \"beforeThirdPartyReject\";\n LifeCycleEventName2[\"afterThirdPartyReject\"] = \"afterThirdPartyReject\";\n return LifeCycleEventName2;\n})(LifeCycleEventName || {});\nvar StorageType = /* @__PURE__ */ ((StorageType2) => {\n StorageType2[\"sessionStorage\"] = \"sessionStorage\";\n StorageType2[\"localStorage\"] = \"localStorage\";\n StorageType2[\"inMem\"] = \"inMem\";\n return StorageType2;\n})(StorageType || {});\nvar LogLevel = /* @__PURE__ */ ((LogLevel2) => {\n LogLevel2[\"INFO\"] = \"info\";\n LogLevel2[\"WARN\"] = \"warn\";\n LogLevel2[\"ERROR\"] = \"error\";\n return LogLevel2;\n})(LogLevel || {});\nvar EntityRelation = /* @__PURE__ */ ((EntityRelation2) => {\n EntityRelation2[\"AND\"] = \"AND\";\n EntityRelation2[\"OR\"] = \"OR\";\n return EntityRelation2;\n})(EntityRelation || {});\nvar ConsentEntityCategory = /* @__PURE__ */ ((ConsentEntityCategory2) => {\n ConsentEntityCategory2[\"CONDITIONS\"] = \"Conditions\";\n ConsentEntityCategory2[\"DATA\"] = \"Data\";\n ConsentEntityCategory2[\"PERMISSION\"] = \"Permissions\";\n return ConsentEntityCategory2;\n})(ConsentEntityCategory || {});\nvar ConsentStatus = /* @__PURE__ */ ((ConsentStatus2) => {\n ConsentStatus2[\"UNSUPPORTED\"] = \"Unsupported\";\n ConsentStatus2[\"APPROVE\"] = \"Approve\";\n ConsentStatus2[\"REJECT\"] = \"Reject\";\n ConsentStatus2[\"NOT_DETERMINED\"] = \"NotDetermined\";\n ConsentStatus2[\"PENDING_REVIEW\"] = \"PENDING_REVIEW\";\n ConsentStatus2[\"REVOKE\"] = \"REVOKE\";\n return ConsentStatus2;\n})(ConsentStatus || {});\nconst ConsentStatusParam = {\n [\"Unsupported\" /* UNSUPPORTED */]: 0,\n [\"Approve\" /* APPROVE */]: 1,\n [\"Reject\" /* REJECT */]: 2,\n [\"NotDetermined\" /* NOT_DETERMINED */]: 3,\n [\"PENDING_REVIEW\" /* PENDING_REVIEW */]: 4,\n [\"REVOKE\" /* REVOKE */]: 5\n};\nvar ConsentRecordType = /* @__PURE__ */ ((ConsentRecordType2) => {\n ConsentRecordType2[ConsentRecordType2[\"CONSENT_RECORD_TYPE_UNSUPPORTED\"] = 0] = \"CONSENT_RECORD_TYPE_UNSUPPORTED\";\n ConsentRecordType2[ConsentRecordType2[\"CONSENT_RECORD_TYPE_USER\"] = 1] = \"CONSENT_RECORD_TYPE_USER\";\n ConsentRecordType2[ConsentRecordType2[\"CONSENT_RECORD_TYPE_DEVICE\"] = 2] = \"CONSENT_RECORD_TYPE_DEVICE\";\n return ConsentRecordType2;\n})(ConsentRecordType || {});\nvar ConsentEntityValidator = /* @__PURE__ */ ((ConsentEntityValidator2) => {\n ConsentEntityValidator2[\"DEVICE_ID\"] = \"DeviceID\";\n ConsentEntityValidator2[\"USER_ID\"] = \"UserID\";\n ConsentEntityValidator2[\"ANY\"] = \"Any\";\n ConsentEntityValidator2[\"BOTH\"] = \"Both\";\n return ConsentEntityValidator2;\n})(ConsentEntityValidator || {});\nvar StorageName = /* @__PURE__ */ ((StorageName2) => {\n StorageName2[\"DEVICE_CONSENT\"] = \"device\";\n StorageName2[\"USER_CONSENT\"] = \"user\";\n StorageName2[\"BOTH_CONSENT\"] = \"both\";\n StorageName2[\"NOTIFICATION\"] = \"notification\";\n return StorageName2;\n})(StorageName || {});\nvar ApiVersion = /* @__PURE__ */ ((ApiVersion2) => {\n ApiVersion2[\"V1\"] = \"v1\";\n ApiVersion2[\"V2\"] = \"v2\";\n return ApiVersion2;\n})(ApiVersion || {});\nexport {\n ApiVersion,\n ConsentEntityCategory,\n ConsentEntityValidator,\n ConsentRecordType,\n ConsentStatus,\n ConsentStatusParam,\n EntityRelation,\n LifeCycleEventName,\n LogLevel,\n StorageName,\n StorageType\n};\n","const getWebInitTimestamp = () => {\n var _performance_timing, _performance, _performance1;\n return ((_performance = performance) === null || _performance === void 0 ? void 0 : (_performance_timing = _performance.timing) === null || _performance_timing === void 0 ? void 0 : _performance_timing.navigationStart) || ((_performance1 = performance) === null || _performance1 === void 0 ? void 0 : _performance1.timeOrigin);\n};\nconst attachErrorTimestamp = (error) => {\n let duration = 0;\n try {\n performance.mark(\"error\");\n duration = performance.measure(\"navigationStart_to_error\", \"navigationStart\", \"error\").duration;\n performance.clearMarks(\"error\");\n performance.clearMeasures(\"navigationStart_to_error\");\n } catch (e) {\n duration = Date.now() - getWebInitTimestamp();\n }\n if (typeof error === \"object\") {\n error._triggerTime = duration;\n }\n};\nconst attachErrorTimestampForEvent = (event) => {\n try {\n const { error } = event;\n attachErrorTimestamp(error);\n } catch (e) {\n }\n};\nconst hijackConsoleError = () => {\n var _console;\n if ((_console = console) === null || _console === void 0 ? void 0 : _console.error) {\n const defaultError = console.error;\n console.error = (error, ...args) => {\n attachErrorTimestamp(error);\n defaultError.apply(void 0, [\n error,\n ...args\n ]);\n };\n }\n};\nconst bindTimestampHandler = () => {\n if (!window._bound_error_time) {\n window._bound_error_time = true;\n if (process.env.NODE_ENV === \"development\") {\n window.addEventListener(\"error\", attachErrorTimestampForEvent, true);\n } else {\n hijackConsoleError();\n }\n }\n};\nexport {\n bindTimestampHandler,\n getWebInitTimestamp\n};\n","import { bindTimestampHandler, getWebInitTimestamp } from \"./time\";\nimport { CUJStatus, PageReadyTiming, UserDropReason } from \"./types\";\nconst instances = {};\nconst createInstance = (instanceName = \"\") => {\n let _hasReportedPageReady = false;\n let _hasReportedPageCrash = false;\n let _hasReportedUserDrop = false;\n let _hasInit = false;\n let _hasReportedActualFMP = false;\n let _pageReadyTimestamp = -1;\n let _SlardarContainer;\n let _SlardarWindowGlobalName = \"\";\n let _SlardarHybridGlobalName = \"\";\n let _SparkMonitor;\n let _reportActualFMP;\n let _cuj = {};\n class TrackingModule {\n _sendEvent(...args) {\n try {\n var _window, _window1;\n if (_SlardarWindowGlobalName && typeof ((_window = window) === null || _window === void 0 ? void 0 : _window[_SlardarWindowGlobalName]) === \"function\") {\n window[_SlardarWindowGlobalName](\"sendEvent\", ...args);\n }\n if (_SlardarHybridGlobalName && typeof ((_window1 = window) === null || _window1 === void 0 ? void 0 : _window1[_SlardarHybridGlobalName]) === \"function\") {\n window[_SlardarHybridGlobalName](\"sendEvent\", ...args);\n }\n if (_SlardarContainer) {\n _SlardarContainer.sendEvent(...args);\n }\n } catch (e) {\n }\n }\n resetForSPA() {\n _hasReportedActualFMP = false;\n _hasReportedPageReady = false;\n _hasReportedPageCrash = false;\n _hasReportedUserDrop = false;\n _pageReadyTimestamp = -1;\n _cuj = {};\n }\n reset() {\n this.resetForSPA();\n _hasInit = false;\n _SlardarContainer = null;\n _SlardarWindowGlobalName = \"\";\n _SlardarHybridGlobalName = \"\";\n _SparkMonitor = null;\n _reportActualFMP = null;\n }\n isInitialized() {\n return _hasInit;\n }\n constructor(instanceName2 = \"\") {\n this._pageReadyTiming = PageReadyTiming.ACTUAL_FMP;\n this.init = (arg) => {\n try {\n if (_hasInit) {\n return;\n }\n _hasInit = true;\n const { slardarContainer, slardarWindowGlobalName, slardarHybridGlobalName, sparkMonitor, pageReadyTiming = PageReadyTiming.CUSTOM, reportActualFMP } = arg !== null && arg !== void 0 ? arg : {};\n if (typeof slardarWindowGlobalName === \"string\") {\n _SlardarWindowGlobalName = slardarWindowGlobalName;\n }\n if (typeof slardarHybridGlobalName === \"string\") {\n _SlardarHybridGlobalName = slardarHybridGlobalName;\n }\n if (typeof reportActualFMP === \"function\") {\n _reportActualFMP = reportActualFMP;\n }\n if (typeof slardarContainer !== \"undefined\" && typeof slardarContainer.sendEvent === \"function\" && typeof slardarContainer.reportActualFMP === \"function\") {\n _SlardarContainer = slardarContainer;\n }\n if (typeof sparkMonitor !== \"undefined\") {\n _SparkMonitor = sparkMonitor;\n }\n this._pageReadyTiming = pageReadyTiming;\n bindTimestampHandler();\n this._registerUserDropEvent();\n } catch (e) {\n }\n };\n this._registerUserDropEvent = () => {\n window.addEventListener(\"beforeunload\", this.reportUserDrop, true);\n };\n this.reportPageReady = () => {\n if (_hasReportedPageReady || _hasReportedUserDrop || _hasReportedPageCrash) {\n return;\n }\n if (this._pageReadyTiming === PageReadyTiming.ACTUAL_FMP) {\n this.reportActualFMP();\n }\n _hasReportedPageReady = true;\n let duration = 0;\n try {\n performance.mark(\"pageReady\");\n duration = performance.measure(\"navigationStart_to_pageReady\", \"navigationStart\", \"pageReady\").duration;\n } catch (e) {\n duration = Date.now() - getWebInitTimestamp();\n }\n _pageReadyTimestamp = duration;\n this._sendEvent({\n name: \"page_ready\",\n metrics: {\n time: duration\n }\n });\n };\n this.reportUserDrop = () => {\n if (_hasReportedPageReady || _hasReportedUserDrop) {\n return;\n }\n _hasReportedUserDrop = true;\n let duration = 0;\n try {\n performance.mark(\"userDrop\");\n duration = performance.measure(\"navigationStart_to_userDrop\", \"navigationStart\", \"userDrop\").duration;\n } catch (e) {\n duration = Date.now() - getWebInitTimestamp();\n }\n this._sendEvent({\n name: \"user_drop\",\n metrics: {\n time: duration\n },\n categories: {\n reason: _hasReportedPageCrash ? UserDropReason.CRASH : UserDropReason.ABORT\n }\n });\n };\n this.reportPageCrash = (error, hasDifferentTriggerTime = false, componentStack) => {\n var _message_substring, _stack_substring, _componentStack_substring;\n if (_hasReportedUserDrop || _hasReportedPageCrash) {\n return;\n }\n _hasReportedPageCrash = true;\n const { name = \"\", message, stack, _triggerTime = 0 } = error !== null && error !== void 0 ? error : {};\n let reportTime = 0;\n if (!reportTime) {\n try {\n performance.mark(\"pageCrashReporting\");\n reportTime = performance.measure(\"navigationStart_to_pageCrashReporting\", \"navigationStart\", \"pageCrashReporting\").duration;\n } catch (e) {\n reportTime = Date.now() - getWebInitTimestamp();\n }\n }\n const triggerTime = hasDifferentTriggerTime ? _triggerTime : reportTime;\n var _message_substring1, _stack_substring1, _componentStack_substring1;\n this._sendEvent({\n name: \"page_crash\",\n metrics: {\n time: triggerTime !== null && triggerTime !== void 0 ? triggerTime : 0\n },\n categories: {\n isTriggeredBeforePageReady: triggerTime < _pageReadyTimestamp || !_hasReportedPageReady,\n isReportedBeforePageReady: reportTime < _pageReadyTimestamp || !_hasReportedPageReady,\n name,\n // slardar max string length 256 chars\n message: (_message_substring1 = message === null || message === void 0 ? void 0 : (_message_substring = message.substring) === null || _message_substring === void 0 ? void 0 : _message_substring.call(message, 0, 256)) !== null && _message_substring1 !== void 0 ? _message_substring1 : \"\",\n stack: (_stack_substring1 = stack === null || stack === void 0 ? void 0 : (_stack_substring = stack.substring) === null || _stack_substring === void 0 ? void 0 : _stack_substring.call(stack, 0, 256)) !== null && _stack_substring1 !== void 0 ? _stack_substring1 : \"\",\n componentStack: (_componentStack_substring1 = componentStack === null || componentStack === void 0 ? void 0 : (_componentStack_substring = componentStack.substring) === null || _componentStack_substring === void 0 ? void 0 : _componentStack_substring.call(componentStack, 0, 256)) !== null && _componentStack_substring1 !== void 0 ? _componentStack_substring1 : \"\"\n }\n });\n };\n this.reportActualFMP = () => {\n try {\n if (_hasReportedActualFMP) {\n return;\n }\n _hasReportedActualFMP = true;\n if (typeof (_SparkMonitor === null || _SparkMonitor === void 0 ? void 0 : _SparkMonitor.mark) === \"function\") {\n _SparkMonitor.mark(\"fmp\");\n }\n if (_reportActualFMP) {\n _reportActualFMP();\n }\n if (typeof (_SlardarContainer === null || _SlardarContainer === void 0 ? void 0 : _SlardarContainer.reportActualFMP) === \"function\") {\n _SlardarContainer.reportActualFMP();\n }\n } catch (e) {\n }\n };\n this.reportCUJ = (name, status, extra) => {\n var _errorInfo_substring, _detailStr_substring;\n const cujStartMetricsName = `cuj_${name}_${CUJStatus.START}`;\n const currentMetricsName = `cuj_${name}_${status}`.replace(/\\s/g, \"_\");\n let durationFromNavStart = 0;\n let durationFromCUJStart = 0;\n try {\n performance.mark(currentMetricsName);\n durationFromNavStart = performance.measure(`navigationStart_to_${currentMetricsName}`, \"navigationStart\", currentMetricsName).duration;\n durationFromCUJStart = performance.measure(`${cujStartMetricsName}_to_${currentMetricsName}`, cujStartMetricsName, currentMetricsName).duration;\n } catch (e) {\n durationFromNavStart = Date.now() - getWebInitTimestamp();\n if (status === CUJStatus.START) {\n _cuj[name] = {\n [CUJStatus.START]: Date.now()\n };\n durationFromCUJStart = 0;\n } else {\n if (!_cuj[name]) {\n return;\n }\n _cuj[name][status] = Date.now();\n var _cuj_name_CUJStatus_START;\n durationFromCUJStart = _cuj[name][status] - ((_cuj_name_CUJStatus_START = _cuj[name][CUJStatus.START]) !== null && _cuj_name_CUJStatus_START !== void 0 ? _cuj_name_CUJStatus_START : 0);\n }\n }\n const { error, detail, stepName } = extra !== null && extra !== void 0 ? extra : {};\n var _error_toString;\n const errorInfo = typeof error === \"string\" ? error : (_error_toString = error === null || error === void 0 ? void 0 : error.toString()) !== null && _error_toString !== void 0 ? _error_toString : \"\";\n var _error_stack;\n const detailStr = detail ? detail : (_error_stack = error === null || error === void 0 ? void 0 : error.stack) !== null && _error_stack !== void 0 ? _error_stack : \"\";\n var _errorInfo_substring1, _detailStr_substring1;\n this._sendEvent({\n name: \"pns_cuj\",\n metrics: {\n timestamp: durationFromNavStart,\n duration: durationFromCUJStart\n },\n categories: {\n status,\n name,\n stepName,\n // slardar max string length 256 chars\n error: (_errorInfo_substring1 = errorInfo === null || errorInfo === void 0 ? void 0 : (_errorInfo_substring = errorInfo.substring) === null || _errorInfo_substring === void 0 ? void 0 : _errorInfo_substring.call(errorInfo, 0, 256)) !== null && _errorInfo_substring1 !== void 0 ? _errorInfo_substring1 : \"\",\n detail: (_detailStr_substring1 = detailStr === null || detailStr === void 0 ? void 0 : (_detailStr_substring = detailStr.substring) === null || _detailStr_substring === void 0 ? void 0 : _detailStr_substring.call(detailStr, 0, 256)) !== null && _detailStr_substring1 !== void 0 ? _detailStr_substring1 : \"\"\n }\n });\n };\n if (!instanceName2) {\n if (!TrackingModule._instance) {\n TrackingModule._instance = this;\n }\n return TrackingModule._instance;\n } else {\n instances[instanceName2] = this;\n return this;\n }\n }\n }\n if (!instanceName) {\n return new TrackingModule();\n }\n if (!instances[instanceName]) {\n instances[instanceName] = new TrackingModule(instanceName);\n }\n return instances[instanceName];\n};\nconst TrackingModuleSingleton = createInstance();\nexport {\n TrackingModuleSingleton as TrackingModule,\n createInstance\n};\n","var CUJEvents = /* @__PURE__ */ ((CUJEvents2) => {\n CUJEvents2[\"SDK_INIT\"] = \"sdk_init\";\n CUJEvents2[\"FETCH_DATA\"] = \"fetch_data\";\n CUJEvents2[\"UPDATE_RECORD\"] = \"update_record\";\n CUJEvents2[\"GET_RECORD\"] = \"get_record\";\n CUJEvents2[\"GET_RECORDS\"] = \"get_records\";\n CUJEvents2[\"GET_ENTITY\"] = \"get_entity\";\n CUJEvents2[\"GET_ENTITIES\"] = \"get_entities\";\n CUJEvents2[\"SUBSCRIBE_EVENT\"] = \"subscribe_event\";\n CUJEvents2[\"UNSUBSCRIBE_EVENT\"] = \"unsubscribe_event\";\n return CUJEvents2;\n})(CUJEvents || {});\nconst TEA_EVENT_NAME_MAPPING = {\n [\"sdk_init\" /* SDK_INIT */]: \"consent_init_sdk\",\n [\"fetch_data\" /* FETCH_DATA */]: \"consent_fetch_data\",\n [\"update_record\" /* UPDATE_RECORD */]: \"consent_create_record_api\",\n [\"get_record\" /* GET_RECORD */]: \"consent_get_record\",\n [\"get_records\" /* GET_RECORDS */]: \"consent_get_records\",\n [\"get_entity\" /* GET_ENTITY */]: \"consent_get_entity\",\n [\"get_entities\" /* GET_ENTITIES */]: \"consent_get_entities\",\n [\"subscribe_event\" /* SUBSCRIBE_EVENT */]: \"consent_subscribe_event\",\n [\"unsubscribe_event\" /* UNSUBSCRIBE_EVENT */]: \"consent_unsubscribe_event\"\n};\nexport {\n CUJEvents,\n TEA_EVENT_NAME_MAPPING\n};\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n\r\nvar __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\n\r\nfunction __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nfunction __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nfunction __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nfunction __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\n\nvar DEFAULT_SIZE = 10;\nvar DEFAULT_WAIT = 1000;\nvar stringifyBatch = function (list) {\n return JSON.stringify({\n ev_type: 'batch',\n list: list,\n });\n};\nfunction createBatchSender(config) {\n var transport = config.transport;\n var endpoint = config.endpoint, _a = config.size, size = _a === void 0 ? DEFAULT_SIZE : _a, _b = config.wait, wait = _b === void 0 ? DEFAULT_WAIT : _b;\n var batch = [];\n var tid = 0;\n var fail;\n var sender = {\n getSize: function () {\n return size;\n },\n getWait: function () {\n return wait;\n },\n setSize: function (v) {\n size = v;\n },\n setWait: function (v) {\n wait = v;\n },\n getEndpoint: function () {\n return endpoint;\n },\n setEndpoint: function (v) {\n endpoint = v;\n },\n send: function (e) {\n batch.push(e);\n if (batch.length >= size) {\n sendBatch.call(this);\n }\n clearTimeout(tid);\n tid = setTimeout(sendBatch.bind(this), wait);\n },\n flush: function () {\n clearTimeout(tid);\n sendBatch.call(this);\n },\n getBatchData: function () {\n return batch.length ? stringifyBatch(batch) : '';\n },\n clear: function () {\n clearTimeout(tid);\n batch = [];\n },\n fail: function (cb) {\n fail = cb;\n },\n };\n function sendBatch() {\n if (!batch.length) {\n return;\n }\n var data = this.getBatchData();\n transport.post({\n url: endpoint,\n data: data,\n fail: function (err) {\n fail && fail(err, data);\n },\n });\n batch = [];\n }\n return sender;\n}\n\nvar EVENTS = [\n 'init',\n 'start',\n 'config',\n 'beforeDestroy',\n 'provide',\n 'beforeReport',\n 'report',\n 'beforeBuild',\n 'build',\n 'beforeSend',\n 'send',\n 'beforeConfig',\n];\n\nvar noop = function () { return ({}); };\nfunction id(v) {\n return v;\n}\n\n// eslint-disable-next-line @typescript-eslint/ban-types\nfunction isObject(o) {\n return typeof o === 'object' && o !== null;\n}\nfunction isUndefined(o) {\n return o === undefined;\n}\nfunction isInstanceOf(wat, base) {\n try {\n return wat instanceof base;\n }\n catch (_e) {\n return false;\n }\n}\nvar objProto = Object.prototype;\n// https://stackoverflow.com/a/5878101\nfunction isPlainObject(o) {\n if (isObject(o)) {\n if (typeof Object.getPrototypeOf === 'function') {\n var proto = Object.getPrototypeOf(o);\n return proto === objProto || proto === null;\n }\n // cannot test, requires ES3\n /* istanbul ignore next */\n return objProto.toString.call(o) === '[object Object]';\n }\n return false;\n}\nfunction isArray(o) {\n return objProto.toString.call(o) === '[object Array]';\n}\n// eslint-disable-next-line @typescript-eslint/ban-types\nfunction isFunction(o) {\n return typeof o === 'function';\n}\nfunction isBoolean(o) {\n return typeof o === 'boolean';\n}\nfunction isNumber(o) {\n return typeof o === 'number';\n}\nfunction isString(o) {\n return typeof o === 'string';\n}\nfunction isError(wat) {\n switch (Object.prototype.toString.call(wat)) {\n case '[object Error]':\n return true;\n case '[object Exception]':\n /* istanbul ignore next */\n return true;\n case '[object DOMError]':\n return true;\n case '[object DOMException]':\n /* istanbul ignore next */\n return true;\n default:\n /* istanbul ignore next */\n return wat instanceof Error;\n }\n}\nfunction isEvent(wat) {\n return typeof Event !== 'undefined' && isInstanceOf(wat, Event);\n}\nfunction isErrorEvent(what) {\n return Object.prototype.toString.call(what) === '[object ErrorEvent]';\n}\nfunction isPromiseRejectionEvent(what) {\n return Object.prototype.toString.call(what) === '[object PromiseRejectionEvent]';\n}\n\nfunction hasKey(object, key) {\n return Object.prototype.hasOwnProperty.call(object, key);\n}\n// 把source对象中的内容深度赋给target, 数组合并\nfunction mergeDeepConcatArray() {\n var source = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n source[_i] = arguments[_i];\n }\n var result = {};\n var k = 0;\n while (k < source.length) {\n result = _mergeDeepMergeArray(result, source[k++]);\n }\n return result;\n}\n// 递归赋值\nfunction _mergeDeepMergeArray(target, source) {\n var result = __assign({}, target);\n for (var key in source) {\n if (hasKey(source, key) && source[key] !== undefined) {\n if (isObject(source[key]) && isPlainObject(source[key])) {\n result[key] = _mergeDeepMergeArray(isObject(target[key]) ? target[key] : {}, source[key]);\n }\n else if (isArray(source[key]) && isArray(target[key])) {\n result[key] = _mergeDeepArray(target[key], source[key]);\n }\n else {\n result[key] = source[key];\n }\n }\n }\n return result;\n}\nfunction _mergeDeepArray(target, source) {\n var _target = isArray(target) ? target : [];\n var _source = isArray(source) ? source : [];\n return Array.prototype.concat.call(_target, _source).map(function (v) {\n if (v instanceof RegExp) {\n return v;\n }\n else if (isObject(v) && isPlainObject(v)) {\n return _mergeDeepMergeArray({}, v);\n }\n else if (isArray(v)) {\n return _mergeDeepArray([], v);\n }\n else {\n return v;\n }\n });\n}\n// 检查数组中是否有元素\nfunction arrayIncludes(array, value) {\n if (!isArray(array)) {\n return false;\n }\n if (array.length === 0) {\n return false;\n }\n var k = 0;\n while (k < array.length) {\n if (array[k] === value) {\n return true;\n }\n k++;\n }\n return false;\n}\nvar arrayRemove = function (arr, e) {\n if (!isArray(arr)) {\n return arr;\n }\n var i = arr.indexOf(e);\n if (i >= 0) {\n var arr_ = arr.slice();\n arr_.splice(i, 1);\n return arr_;\n }\n return arr;\n};\n/**\n * 按路径访问对象属性\n * @param target 待访问对象\n * @param property 访问属性路径\n * @param { (target: any, property: string): any } visitor 访问器\n */\nvar safeVisit = function (target, path, visitor) {\n var _a, _b;\n var paths = path.split('.');\n var _c = __read(paths), method = _c[0], rest = _c.slice(1);\n while (target && rest.length > 0) {\n target = target[method];\n _a = rest, _b = __read(_a), method = _b[0], rest = _b.slice(1);\n }\n if (!target) {\n return undefined;\n }\n return visitor(target, method);\n};\n/**\n * 按路径调用函数\n * @param target 待调用对象,如 `client`\n * @param methods 待调用方法路径,可能是一级路径 `client.start`, 或者是多级命令 `client.context.set`\n * @param args 调用参数\n */\nvar safeCall = function (target, method, args) {\n return safeVisit(target, method, function (obj, property) {\n if (obj && property in obj && isFunction(obj[property])) {\n try {\n return obj[property].apply(obj, args);\n }\n catch (err) {\n // ignore\n return undefined;\n }\n }\n });\n};\nvar pick = function (obj, keys) {\n if (!obj || !isObject(obj))\n return obj;\n return keys.reduce(function (prev, cur) {\n prev[cur] = obj[cur];\n return prev;\n }, {});\n};\n\nvar camelToKebab = function (str) {\n return str.replace(/([a-z])([A-Z])/g, function (_, a, b) { return a + \"-\" + b.toLowerCase(); });\n};\nfunction getRegexp(ignore) {\n if (!isArray(ignore)) {\n return null;\n }\n return ignore.length ? joinRegExp(ignore) : null;\n}\nfunction joinRegExp(patterns) {\n var sources = [];\n var len = patterns.length;\n for (var i = 0; i < len; i++) {\n var pattern = patterns[i];\n if (isString(pattern)) {\n sources.push(pattern.replace(/([.*+?^=!:${}()|[\\]/\\\\])/g, '\\\\$1'));\n }\n else if (pattern && pattern.source) {\n sources.push(pattern.source);\n }\n }\n return new RegExp(sources.join('|'), 'i');\n}\nvar checkIfHit = function (rules, url) {\n var Rgx = getRegexp(rules || []);\n return !!Rgx && Rgx.test(url);\n};\nfunction safeStringify(a) {\n try {\n return isString(a) ? a : JSON.stringify(a);\n }\n catch (err) {\n return '[FAILED_TO_STRINGIFY]:' + String(err);\n }\n}\n\nfunction createContextAgent() {\n var context = {};\n var stringified = {};\n var contextAgent = {\n set: function (k, v) {\n context[k] = v;\n stringified[k] = safeStringify(v);\n return contextAgent;\n },\n merge: function (ctx) {\n context = __assign(__assign({}, context), ctx);\n Object.keys(ctx).forEach(function (key) {\n stringified[key] = safeStringify(ctx[key]);\n });\n return contextAgent;\n },\n delete: function (k) {\n delete context[k];\n delete stringified[k];\n return contextAgent;\n },\n clear: function () {\n context = {};\n stringified = {};\n return contextAgent;\n },\n get: function (k) {\n return stringified[k];\n },\n toString: function () {\n return __assign({}, stringified);\n },\n };\n return contextAgent;\n}\n\n// eslint-disable-next-line @typescript-eslint/ban-types\n/**\n * You can feel free to restore when you hook a function.\n * But you ought to restore 「in order」 if you hooked a value reference or a real obj reference.Because we not store the last value referent for now.\n * eg: obj.a = 1;\n * const r_1 = hookObjectProperty(obj, 'a',() =>2)()\n * const r_2 = hookObjectProperty(obj, 'a',() =>3)()\n * r_2() // obj.a === 2\n * r_1() // obj.a === 1\n *\n * @template T\n * @template K\n * @template P\n * @param {T} obj\n * @param {K} key\n * @param {(origin: T[K], ...params: P) => T[K]} hookFunc\n * @param {boolean} isCatchError When an error occurs after calling a hooked function, we want to suppress the errors and try to call the original function by default.\n * @return {*}\n */\n// eslint-disable-next-line @typescript-eslint/ban-types\nvar hookObjectProperty = function (obj, key, hookFunc, isCatchError) {\n if (isCatchError === void 0) { isCatchError = true; }\n return function () {\n var params = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n params[_i] = arguments[_i];\n }\n if (!obj) {\n return noop;\n }\n var origin = obj[key];\n var hookedUnsafe = hookFunc.apply(void 0, __spreadArray([origin], __read(params), false));\n var hooked = hookedUnsafe;\n // 给所有 hook 之后的方法包一层 try catch\n if (isFunction(hooked) && isCatchError) {\n hooked = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n try {\n return hookedUnsafe.apply(this, args);\n }\n catch (_a) {\n return isFunction(origin) && origin.apply(this, args);\n }\n };\n }\n obj[key] = hooked;\n // strict: is break\n return function (strict) {\n if (!strict) {\n hooked === obj[key] ? (obj[key] = origin) : (hookedUnsafe = origin);\n }\n };\n };\n};\n/**\n * 劫持对象方法\n * 必须记得给 hookFunc 劫持的方法包 try catch !\n * 不在本方法里包是为了避免对象原方法被调用两次\n */\n// eslint-disable-next-line @typescript-eslint/ban-types\nvar hookMethodDangerously = function (obj, key, hookFunc) {\n return function () {\n var params = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n params[_i] = arguments[_i];\n }\n if (!obj) {\n return noop;\n }\n var origin = obj[key];\n var hookedUnsafe = hookFunc.apply(void 0, __spreadArray([origin], __read(params), false));\n var hooked = hookedUnsafe;\n if (isFunction(hooked)) {\n hooked = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return hookedUnsafe.apply(this, args);\n };\n }\n obj[key] = hooked;\n return function () {\n hooked === obj[key] ? (obj[key] = origin) : (hookedUnsafe = origin);\n };\n };\n};\n\nvar getPrintString = function () {\n // @ts-expect-error\n if (''.padStart) {\n return function (str, prefixLength) {\n if (prefixLength === void 0) { prefixLength = 8; }\n return str.padStart(prefixLength, ' ');\n };\n }\n return function (str) { return str; };\n};\nvar printString = getPrintString();\nvar errCount = 0;\nvar error = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n // eslint-disable-next-line no-console\n console.error.apply(console, __spreadArray(['[SDK]', Date.now(), printString(\"\" + errCount++)], __read(args), false));\n};\nvar warnCount = 0;\nvar warn = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n // eslint-disable-next-line no-console\n console.warn.apply(console, __spreadArray(['[SDK]', Date.now(), printString(\"\" + warnCount++)], __read(args), false));\n};\n\nvar isHitBySampleRate = function (sampleRate) {\n if (Math.random() < Number(sampleRate)) {\n return true;\n }\n return false;\n};\nvar isHitByRandom = function (random, sampleRate) {\n if (random < Number(sampleRate)) {\n return true;\n }\n return false;\n};\n\nvar runProcessors = function (fns) {\n return function (e) {\n var r = e;\n for (var i = 0; i < fns.length; i++) {\n if (r) {\n try {\n r = fns[i](r);\n }\n catch (err) {\n error(err);\n }\n }\n else {\n break;\n }\n }\n return r;\n };\n};\nvar runFilters = function (fns) {\n return function (e) {\n var r = true;\n for (var i = 0; i < fns.length; i++) {\n if (r) {\n try {\n r = fns[i](e);\n }\n catch (err) {\n error(err);\n }\n }\n else {\n break;\n }\n }\n return r;\n };\n};\n\n/**\n * 生成uuid\n * stolen from https://github.com/kelektiv/node-uuid#readme uuid/v4\n *\n * @returns\n */\nfunction mathRNG() {\n var rnds = new Array(16);\n var r = 0;\n for (var i = 0; i < 16; i++) {\n if ((i & 0x03) === 0) {\n r = Math.random() * 0x100000000;\n }\n rnds[i] = (r >>> ((i & 0x03) << 3)) & 0xff;\n }\n return rnds;\n}\nfunction bytesToUuid(buf) {\n var byteToHex = [];\n for (var index = 0; index < 256; ++index) {\n byteToHex[index] = (index + 0x100).toString(16).substr(1);\n }\n var i = 0;\n var bth = byteToHex;\n // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4\n return [\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]],\n '-',\n bth[buf[i++]],\n bth[buf[i++]],\n '-',\n bth[buf[i++]],\n bth[buf[i++]],\n '-',\n bth[buf[i++]],\n bth[buf[i++]],\n '-',\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]],\n bth[buf[i++]],\n ].join('');\n}\nfunction uuid() {\n var rnds = mathRNG();\n // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n rnds[6] = (rnds[6] & 0x0f) | 0x40;\n rnds[8] = (rnds[8] & 0x3f) | 0x80;\n return bytesToUuid(rnds);\n}\n\nvar BUFFER_TIME = 300000; // 5分钟\nvar applyBufferTimer = function (checkIfNeedCancel, cb, bufferTime) {\n var tid = 0;\n if (bufferTime === -1)\n return noop;\n return function () {\n if (checkIfNeedCancel()) {\n tid && clearTimeout(tid);\n tid = 0;\n return;\n }\n tid === 0 && (tid = setTimeout(cb, bufferTime));\n };\n};\n\nvar nextLink = function (args, cb) {\n var nextCbs = [];\n try {\n nextCbs = cb.reduce(function (sum, s) {\n try {\n var nextCb = s(args);\n typeof nextCb === 'function' && sum.push(nextCb);\n }\n catch (_a) {\n // do nothing\n }\n return sum;\n }, []);\n }\n catch (_a) {\n // do nothing\n }\n return function (nextArgs) { return nextLink(nextArgs, nextCbs); };\n};\nvar toObservable = function (bufferTime) {\n if (bufferTime === void 0) { bufferTime = BUFFER_TIME; }\n var subscribers = [];\n var __complete = [];\n var closed = false;\n var attachCb;\n // 暂缓的自动销毁机制,比如5min 没有人订阅就自动销毁\n var setCloseIfNeed = applyBufferTimer(function () { return !!subscribers.length; }, function () {\n closed = true;\n attachCb && attachCb[0]();\n __complete.forEach(function (e) { return e(); });\n __complete.length = 0;\n attachCb = undefined;\n }, bufferTime);\n var unsubscribe = function (o) {\n subscribers = arrayRemove(subscribers, o);\n !closed && setCloseIfNeed();\n };\n return {\n next: function (args) {\n return nextLink(args, subscribers);\n },\n complete: function (cb) {\n __complete.push(cb);\n },\n attach: function (disconnect, onSubscribe) {\n attachCb = [disconnect, onSubscribe];\n },\n subscribe: function (o) {\n if (closed)\n throw new Error('Observer is closed');\n subscribers.push(o);\n attachCb && attachCb[1] && attachCb[1](o);\n setCloseIfNeed();\n return function () { return unsubscribe(o); };\n },\n unsubscribe: unsubscribe,\n };\n};\nvar createSafeObserver = function (observer, completeCb, bufferTime) {\n var cur = toObservable(bufferTime);\n try {\n observer(cur.next, cur.attach);\n completeCb && cur.complete(completeCb);\n }\n catch (_a) {\n //\n }\n return [cur.subscribe, cur.unsubscribe];\n};\nvar wrapFilters = function (originObservable, filters) {\n var _a = __read(originObservable, 1), subscribe = _a[0];\n var filteredObserver = function (next, tearDown) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n var unsubscribe = subscribe(function (o) {\n var hitFilter = runFilters(filters)(o);\n return hitFilter ? next(o) : noop;\n });\n tearDown(function () {\n unsubscribe();\n });\n };\n return filteredObserver;\n};\n\nfunction createDestroyAgent() {\n var destroyed = false;\n var data = {};\n var removeTearDownGroup = function (tearDownGroup) {\n tearDownGroup.length &&\n tearDownGroup.forEach(function (v) {\n try {\n v();\n // eslint-disable-next-line no-empty\n }\n catch (_a) { }\n });\n tearDownGroup.length = 0;\n };\n var removeByPluginName = function (pluginName) {\n data[pluginName] &&\n data[pluginName].forEach(function (e) {\n removeTearDownGroup(e[1]);\n });\n data[pluginName] = undefined;\n };\n var removeByEvType = function (evType) {\n Object.keys(data).forEach(function (k) {\n data[k] &&\n data[k].forEach(function (e) {\n if (e[0] === evType) {\n removeTearDownGroup(e[1]);\n }\n });\n });\n };\n return {\n /**\n * register tearDownGroup for a single plugin.\n */\n set: function (pluginName, evType, tearDownGroup) {\n if (data[pluginName])\n data[pluginName].push([evType, tearDownGroup]);\n else\n data[pluginName] = [[evType, tearDownGroup]];\n // auto remove tearDownGroup if destroyed\n destroyed && removeTearDownGroup(tearDownGroup);\n },\n has: function (pluginName) {\n return !!data[pluginName];\n },\n /**\n * remove tearDownGroup for a single plugin.\n */\n remove: removeByPluginName,\n /**\n * remove tearDownGroup by event type\n */\n removeByEvType: removeByEvType,\n /**\n * clear all tearDownGroup\n */\n clear: function () {\n destroyed = true;\n Object.keys(data).forEach(function (k) {\n removeByPluginName(k);\n });\n },\n };\n}\n/**\n * 将tearDownGroup 注册到 destroyAgent,destroyAgent会在实例销毁时自动销毁tearDownGroup\n */\nvar registerTearDownGroup = function (client, pluginName, evType, tearDownGroup) {\n return client.destroyAgent.set(pluginName, evType, tearDownGroup);\n};\n\nfunction createClient(creationConfig) {\n var builder = creationConfig.builder, createSender = creationConfig.createSender, createDefaultConfig = creationConfig.createDefaultConfig, createConfigManager = creationConfig.createConfigManager, userConfigNormalizer = creationConfig.userConfigNormalizer, initConfigNormalizer = creationConfig.initConfigNormalizer, validateInitConfig = creationConfig.validateInitConfig;\n var sender;\n var configManager;\n var handlers = {};\n EVENTS.forEach(function (e) { return (handlers[e] = []); });\n var inited = false;\n var started = false;\n var destroyed = false;\n // 缓存 start 之前 build 的事件\n var preStartQueue = [];\n // 禁止通过 provide 挂载的字段名\n var reservedNames = [];\n var destroyAgent = createDestroyAgent();\n var client = {\n getBuilder: function () { return builder; },\n getSender: function () { return sender; },\n getPreStartQueue: function () { return preStartQueue; },\n init: function (c) {\n if (inited) {\n warn('already inited');\n return;\n }\n if (c && isObject(c) && validateInitConfig(c)) {\n var defaultConfig = createDefaultConfig(c);\n if (!defaultConfig) {\n throw new Error('defaultConfig missing');\n }\n var initConfig = initConfigNormalizer(c);\n configManager = createConfigManager(defaultConfig);\n configManager.setConfig(initConfig);\n configManager.onChange(function () {\n handle('config');\n });\n sender = createSender(configManager.getConfig());\n if (!sender) {\n throw new Error('sender missing');\n }\n inited = true;\n handle('init', true);\n }\n else {\n throw new Error('invalid InitConfig, init failed');\n }\n },\n set: function (c) {\n if (!inited) {\n return;\n }\n if (c && isObject(c)) {\n handle('beforeConfig', false, c);\n configManager === null || configManager === void 0 ? void 0 : configManager.setConfig(c);\n }\n },\n config: function (c) {\n if (!inited) {\n return;\n }\n if (c && isObject(c)) {\n handle('beforeConfig', false, c);\n configManager === null || configManager === void 0 ? void 0 : configManager.setConfig(userConfigNormalizer(c));\n }\n return configManager === null || configManager === void 0 ? void 0 : configManager.getConfig();\n },\n provide: function (name, value) {\n if (arrayIncludes(reservedNames, name)) {\n warn(\"cannot provide \" + name + \", reserved\");\n return;\n }\n client[name] = value;\n handle('provide', false, name);\n },\n start: function () {\n var _this = this;\n if (!inited) {\n return;\n }\n if (started) {\n return;\n }\n configManager === null || configManager === void 0 ? void 0 : configManager.onReady(function () {\n started = true;\n handle('start', true);\n preStartQueue.forEach(function (e) { return _this.build(e); });\n preStartQueue.length = 0;\n });\n },\n report: function (data) {\n if (!data) {\n return;\n }\n var preReport = runProcessors(handlers['beforeReport'])(data);\n if (!preReport) {\n return;\n }\n var processed = runProcessors(handlers['report'])(preReport);\n if (!processed) {\n return;\n }\n if (started) {\n this.build(processed);\n }\n else {\n preStartQueue.push(processed);\n }\n },\n build: function (data) {\n if (!started) {\n return;\n }\n var preBuild = runProcessors(handlers['beforeBuild'])(data);\n if (!preBuild) {\n return;\n }\n var built = builder.build(preBuild);\n if (!built) {\n return;\n }\n var processed = runProcessors(handlers['build'])(built);\n if (!processed) {\n return;\n }\n this.send(processed);\n },\n send: function (data) {\n if (!started) {\n return;\n }\n var processed = runProcessors(handlers['beforeSend'])(data);\n if (processed) {\n sender.send(processed);\n handle('send', false, processed);\n }\n },\n destroy: function () {\n destroyAgent.clear();\n destroyed = true;\n preStartQueue.length = 0;\n handle('beforeDestroy', true);\n },\n on: function (ev, handler) {\n if ((ev === 'init' && inited) || (ev === 'start' && started) || (ev === 'beforeDestroy' && destroyed)) {\n try {\n ;\n handler();\n }\n catch (_err) {\n // ignore\n }\n }\n else if (handlers[ev]) {\n handlers[ev].push(handler);\n }\n },\n off: function (ev, handler) {\n if (handlers[ev])\n handlers[ev] = arrayRemove(handlers[ev], handler);\n },\n destroyAgent: destroyAgent,\n };\n reservedNames = Object.keys(client);\n return client;\n function handle(ev, once) {\n if (once === void 0) { once = false; }\n var args = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n args[_i - 2] = arguments[_i];\n }\n handlers[ev].forEach(function (f) {\n try {\n f.apply(void 0, __spreadArray([], __read(args), false));\n }\n catch (_err) {\n // ignore\n }\n });\n if (once) {\n handlers[ev].length = 0;\n }\n }\n}\n\nvar ContextPlugin = function (client) {\n var contextAgent = createContextAgent();\n client.provide('context', contextAgent);\n client.on('report', function (ev) {\n if (!ev.extra) {\n ev.extra = {};\n }\n ev.extra.context = contextAgent.toString();\n return ev;\n });\n};\n\n/* eslint-disable @typescript-eslint/prefer-nullish-coalescing */\nvar withCommandArray = function (client, captureContext, applyArgsWithContext) {\n // 缓存需要异步插件来消费的命令\n var cache = {};\n var newClient = function () {\n var _a;\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var methodPath = args[0];\n if (!methodPath)\n return;\n var method = methodPath.split('.')[0];\n // 捕获上下文,等异步插件加载后传入\n if (!(method in newClient)) {\n var cachedCommands = cache[method] || [];\n // 区分预收集来的上下文与普通上下文\n var capturedContext = (_a = captureContext === null || captureContext === void 0 ? void 0 : captureContext(client)) !== null && _a !== void 0 ? _a : {};\n cachedCommands.push(__spreadArray([capturedContext], __read(args), false));\n cache[method] = cachedCommands;\n return;\n }\n return safeCall(newClient, methodPath, [].slice.call(args, 1));\n };\n hookObjectProperty(client, 'provide', function (origin) {\n return function (name, value) {\n newClient[name] = value;\n origin.call(client, name, value);\n };\n })();\n for (var nextKey in client) {\n // Avoid bugs when hasOwnProperty is shadowed\n if (Object.prototype.hasOwnProperty.call(client, nextKey)) {\n newClient[nextKey] = client[nextKey];\n }\n }\n client.on('provide', function (name) {\n if (cache[name]) {\n cache[name].forEach(function (cachedCommands) {\n var _a = __read(cachedCommands), capturedContext = _a[0], args = _a.slice(1);\n applyArgsWithContext === null || applyArgsWithContext === void 0 ? void 0 : applyArgsWithContext(client, capturedContext, args);\n });\n cache[name] = null;\n }\n });\n return newClient;\n};\n\nfunction IntegrationPlugin(client, runAfterSetup) {\n client.on('init', function () {\n var nameList = [];\n var applyIntegrations = function (integrations) {\n integrations.forEach(function (integration) {\n var integrationName = integration.name;\n if (!arrayIncludes(nameList, integrationName)) {\n nameList.push(integrationName);\n integration.setup(client);\n runAfterSetup && runAfterSetup(integrationName, integration.setup);\n client.destroyAgent.set(integrationName, integrationName, [\n function () {\n nameList = arrayRemove(nameList, integrationName);\n integration.tearDown && integration.tearDown();\n },\n ]);\n }\n });\n };\n client.provide('applyIntegrations', applyIntegrations);\n var config = client.config();\n if (config && config.integrations) {\n applyIntegrations(config.integrations);\n }\n });\n}\n\nvar SubjectSpacer = '_';\nvar getSubjectKeyWithoutVersion = function (subjectKey) {\n return subjectKey.split(SubjectSpacer)[0];\n};\nfunction SubjectPlugin(client, globalSubjectMap) {\n var subjectMap = globalSubjectMap || {};\n var filterMap = {};\n // filter key is subject key but without subject spacer and subject version, and it only takes effect on subsequent observers\n var setFilter = function (subjectKeyWithoutVersion, filter) {\n if (!filterMap[subjectKeyWithoutVersion])\n filterMap[subjectKeyWithoutVersion] = [];\n filterMap[subjectKeyWithoutVersion].push(filter);\n };\n var initSubject = function (_a) {\n var _b = __read(_a, 2), subjectKey = _b[0], observer = _b[1];\n var filterKey = getSubjectKeyWithoutVersion(subjectKey);\n var filters = !!filterKey && filterMap[filterKey];\n if (!subjectMap[subjectKey])\n subjectMap[subjectKey] = createSafeObserver(observer, function () {\n subjectMap[subjectKey] = undefined;\n });\n if (!filters)\n return subjectMap[subjectKey];\n return initPrivateSubject(client, [\n subjectKey,\n wrapFilters(subjectMap[subjectKey], filters),\n ]);\n };\n client.provide('setFilter', setFilter);\n client.provide('initSubject', initSubject);\n client.provide('getSubject', function (key) { return subjectMap[key]; });\n client.provide('privateSubject', {});\n}\n/**\n * 由于 Observer 带有自动销毁机制,意味着subject 只支持同步注册并使用\n */\nfunction initSubjectInGlobal(client, args) {\n return client.initSubject(args);\n}\n/**\n * 此方法不会挂载到全局对象上,同时只支持同步注册并使用\n */\nfunction initPrivateSubject(client, _a, bufferTime) {\n var _b = __read(_a, 2), subjectKey = _b[0], observer = _b[1];\n var subjectMap = client.privateSubject || {};\n if (!subjectMap[subjectKey])\n subjectMap[subjectKey] = createSafeObserver(observer, function () {\n subjectMap[subjectKey] = undefined;\n }, bufferTime);\n return subjectMap[subjectKey];\n}\n\nvar now = function () { return Date.now(); };\n\nfunction getDefaultBrowser() {\n if (typeof window === 'object' && isObject(window))\n return window;\n}\nfunction getDefaultDocument() {\n if (typeof document === 'object' && isObject(document))\n return document;\n}\nfunction getDefaultLocation() {\n return getDefaultBrowser() && window.location;\n}\nfunction getDefaultHistory() {\n // eslint-disable-next-line compat/compat\n return getDefaultBrowser() && window.history;\n}\nfunction getDefaultXMLHttpRequest() {\n if (typeof XMLHttpRequest === 'function' && isFunction(XMLHttpRequest))\n return XMLHttpRequest;\n}\nfunction getDefaultPerformanceObserver() {\n if (getDefaultBrowser() && isFunction(window.PerformanceObserver))\n return window.PerformanceObserver;\n}\nfunction getDefaultNavigator() {\n if (getDefaultBrowser() && 'navigator' in window) {\n return window.navigator;\n }\n}\nfunction getDefaultNetworkInformation() {\n var navigator = getDefaultNavigator();\n if (navigator) {\n return navigator.connection || navigator.mozConnection || navigator.webkitConnection;\n }\n}\nfunction getCurrentScript() {\n if (!document)\n return null;\n if (document.currentScript)\n return document.currentScript;\n // IE 8-10 support script readyState\n // IE 11+ support stack trace\n try {\n throw new Error();\n }\n catch (err) {\n // Find the second match for the \"at\" string to get file src url from stack.\n // Specifically works with the format of stack traces in IE.\n var i = 0;\n var stackDetails = /at\\s+(.*)\\s+\\((.*):(\\d*):(\\d*)\\)/i.exec(err.stack);\n // eslint-disable-next-line @typescript-eslint/prefer-optional-chain\n var scriptLocation = (stackDetails && stackDetails[2]) || false;\n // eslint-disable-next-line @typescript-eslint/prefer-optional-chain\n var line = (stackDetails && stackDetails[3]) || 0;\n var currentLocation = document.location.href.replace(document.location.hash, '');\n var inlineScriptSource = '';\n var scripts = document.getElementsByTagName('script'); // Live NodeList collection\n if (scriptLocation === currentLocation) {\n var pageSource = document.documentElement.outerHTML;\n var inlineScriptSourceRegExp = new RegExp('(?:[^\\\\n]+?\\\\n){0,' + (line - 2) + '}[^<]*