@pie-element/ebsr 14.1.0 → 14.1.1-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/author/defaults.d.ts +67 -0
- package/dist/author/defaults.d.ts.map +1 -0
- package/dist/author/defaults.js +161 -0
- package/dist/author/index.d.ts +35 -0
- package/dist/author/index.d.ts.map +1 -0
- package/dist/author/index.js +78 -0
- package/dist/author/main.d.ts +23 -0
- package/dist/author/main.d.ts.map +1 -0
- package/dist/author/main.js +121 -0
- package/dist/controller/defaults.d.ts +16 -0
- package/dist/controller/defaults.d.ts.map +1 -0
- package/dist/controller/defaults.js +26 -0
- package/dist/controller/index.d.ts +43 -0
- package/dist/controller/index.d.ts.map +1 -0
- package/dist/controller/index.js +186 -0
- package/dist/controller/utils.d.ts +11 -0
- package/dist/controller/utils.d.ts.map +1 -0
- package/dist/controller/utils.js +8 -0
- package/dist/delivery/index.d.ts +27 -0
- package/dist/delivery/index.d.ts.map +1 -0
- package/dist/delivery/index.js +132 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.iife.d.ts +9 -0
- package/dist/index.iife.d.ts.map +1 -0
- package/dist/index.iife.js +165 -0
- package/dist/index.js +2 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_DataView.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Hash.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_ListCache.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Map.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_MapCache.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Promise.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Set.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_SetCache.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Stack.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Symbol.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Uint8Array.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_WeakMap.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_apply.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayEach.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayFilter.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayLikeKeys.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayMap.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayPush.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arraySome.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_assignValue.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_assocIndexOf.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseAssign.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseAssignIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseAssignValue.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseClone.js +57 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseCreate.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseGet.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseGetTag.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsArguments.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsEqual.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsEqualDeep.js +30 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsMap.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsNative.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsSet.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsTypedArray.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseKeys.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseKeysIn.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseRest.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseSetToString.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseTimes.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseToString.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseUnary.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cacheHas.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_castPath.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneBuffer.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneDataView.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneRegExp.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneSymbol.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneTypedArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copyArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copyObject.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copySymbols.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copySymbolsIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_coreJsData.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_defineProperty.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_equalArrays.js +35 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_equalByTag.js +35 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_equalObjects.js +32 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_freeGlobal.js +4 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getAllKeys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getAllKeysIn.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getMapData.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getNative.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getPrototype.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getRawTag.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getSymbols.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getSymbolsIn.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getTag.js +23 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getValue.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashClear.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashDelete.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashGet.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashHas.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashSet.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_initCloneArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_initCloneByTag.js +33 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_initCloneObject.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isIndex.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isIterateeCall.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isKey.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isKeyable.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isMasked.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isPrototype.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheClear.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheDelete.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheGet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheHas.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheSet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheClear.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheDelete.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheGet.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheHas.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheSet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapToArray.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_memoizeCapped.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nativeCreate.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nativeKeys.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nativeKeysIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nodeUtil.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_objectToString.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_overArg.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_overRest.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_root.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_setCacheAdd.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_setCacheHas.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_setToArray.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_setToString.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_shortOut.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackClear.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackDelete.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackGet.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackHas.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackSet.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stringToPath.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_toKey.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_toSource.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/cloneDeep.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/constant.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/defaults.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/eq.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/get.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/identity.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArguments.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArray.js +4 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArrayLike.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isBuffer.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isEmpty.js +21 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isEqual.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isFunction.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isLength.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isMap.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isObject.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isObjectLike.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isSet.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isSymbol.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isTypedArray.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/keys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/keysIn.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/memoize.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/stubArray.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/stubFalse.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/toString.js +7 -0
- package/dist/print/index.d.ts +26 -0
- package/dist/print/index.d.ts.map +1 -0
- package/dist/print/index.js +107 -0
- package/package.json +59 -18
- package/{configure/src/defaults.js → src/author/defaults.ts} +10 -0
- package/{configure/src/index.js → src/author/index.ts} +16 -6
- package/{configure/src/main.jsx → src/author/main.tsx} +14 -4
- package/{controller/src/defaults.js → src/controller/defaults.ts} +10 -0
- package/{controller/src/index.js → src/controller/index.ts} +13 -3
- package/{controller/src/utils.js → src/controller/utils.ts} +10 -0
- package/src/{index.js → delivery/index.tsx} +12 -2
- package/src/index.iife.ts +16 -0
- package/src/index.ts +1 -0
- package/src/{print.js → print/index.tsx} +12 -2
- package/CHANGELOG.json +0 -1547
- package/CHANGELOG.md +0 -2265
- package/LICENSE.md +0 -5
- package/README.md +0 -62
- package/configure/CHANGELOG.json +0 -992
- package/configure/CHANGELOG.md +0 -2130
- package/configure/lib/defaults.js +0 -229
- package/configure/lib/defaults.js.map +0 -1
- package/configure/lib/index.js +0 -154
- package/configure/lib/index.js.map +0 -1
- package/configure/lib/main.js +0 -222
- package/configure/lib/main.js.map +0 -1
- package/configure/package.json +0 -23
- package/configure/src/__tests__/index.test.js +0 -492
- package/controller/CHANGELOG.json +0 -552
- package/controller/CHANGELOG.md +0 -1269
- package/controller/lib/defaults.js +0 -31
- package/controller/lib/defaults.js.map +0 -1
- package/controller/lib/index.js +0 -448
- package/controller/lib/index.js.map +0 -1
- package/controller/lib/utils.js +0 -18
- package/controller/lib/utils.js.map +0 -1
- package/controller/package.json +0 -18
- package/controller/src/__tests__/index.test.js +0 -591
- package/controller/src/__tests__/utils.test.js +0 -48
- package/docs/config-schema.json +0 -5787
- package/docs/config-schema.json.md +0 -4278
- package/docs/demo/config.js +0 -8
- package/docs/demo/generate.js +0 -52
- package/docs/demo/index.html +0 -2
- package/docs/demo/session.js +0 -14
- package/docs/pie-schema.json +0 -2911
- package/docs/pie-schema.json.md +0 -2142
- package/ebsr.png +0 -0
- package/lib/index.js +0 -207
- package/lib/index.js.map +0 -1
- package/lib/print.js +0 -186
- package/lib/print.js.map +0 -1
- package/module/configure.js +0 -1
- package/module/controller.js +0 -5664
- package/module/demo.js +0 -77
- package/module/element.js +0 -1
- package/module/index.html +0 -21
- package/module/manifest.json +0 -14
- package/module/print-demo.js +0 -115
- package/module/print.html +0 -18
- package/module/print.js +0 -1
- package/src/__tests__/index.test.js +0 -129
package/module/print.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_dll_react as e,_dll_react_dom as t,_dll_mui__material as n,_dll_prop_types as r,_dll_mui__material_styles as o,_dll_pie_lib__render_ui as i,_dll_classnames as a,_dll_pie_lib__correct_answer_toggle as s,_dll_debug as l,_dll_react_dom_client as u}from"../../../@pie-lib/shared-module@^5.0.0/module/index.js";import{_dll_pie_lib__math_rendering as c}from"../../../@pie-lib/math-rendering-module@^5.0.0/module/index.js";var d="object"==typeof global&&global&&global.Object===Object&&global,p="object"==typeof self&&self&&self.Object===Object&&self,f=d||p||Function("return this")(),h=f.Symbol,g=Object.prototype,v=g.hasOwnProperty,m=g.toString,y=h?h.toStringTag:void 0;var b=Object.prototype.toString;var _=h?h.toStringTag:void 0;function x(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":_&&_ in Object(e)?function(e){var t=v.call(e,y),n=e[y];try{e[y]=void 0;var r=!0}catch(e){}var o=m.call(e);return r&&(t?e[y]=n:delete e[y]),o}(e):function(e){return b.call(e)}(e)}function w(e){return null!=e&&"object"==typeof e}function S(e){return"symbol"==typeof e||w(e)&&"[object Symbol]"==x(e)}function E(e){return"number"==typeof e?e:S(e)?NaN:+e}function k(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var C=Array.isArray,O=h?h.prototype:void 0,A=O?O.toString:void 0;function j(e){if("string"==typeof e)return e;if(C(e))return k(e,j)+"";if(S(e))return A?A.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function L(e,t){return function(n,r){var o;if(void 0===n&&void 0===r)return t;if(void 0!==n&&(o=n),void 0!==r){if(void 0===o)return r;"string"==typeof n||"string"==typeof r?(n=j(n),r=j(r)):(n=E(n),r=E(r)),o=e(n,r)}return o}}var R=L(function(e,t){return e+t},0),P=/\s/;function M(e){for(var t=e.length;t--&&P.test(e.charAt(t)););return t}var I=/^\s+/;function N(e){return e?e.slice(0,M(e)+1).replace(I,""):e}function T(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var B=/^[-+]0x[0-9a-f]+$/i,$=/^0b[01]+$/i,D=/^0o[0-7]+$/i,W=parseInt;function z(e){if("number"==typeof e)return e;if(S(e))return NaN;if(T(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=T(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=N(e);var n=$.test(e);return n||D.test(e)?W(e.slice(2),n?2:8):B.test(e)?NaN:+e}var F=1/0;function U(e){return e?(e=z(e))===F||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function V(e){var t=U(e),n=t%1;return t==t?n?t-n:t:0}function H(e,t){if("function"!=typeof t)throw new TypeError("Expected a function");return e=V(e),function(){if(--e<1)return t.apply(this,arguments)}}function q(e){return e}function K(e){if(!T(e))return!1;var t=x(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var J,Y=f["__core-js_shared__"],G=(J=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||""))?"Symbol(src)_1."+J:"";var Z=Function.prototype.toString;function Q(e){if(null!=e){try{return Z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var X=/^\[object .+?Constructor\]$/,ee=Function.prototype,te=Object.prototype,ne=ee.toString,re=te.hasOwnProperty,oe=RegExp("^"+ne.call(re).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ie(e){return!(!T(e)||function(e){return!!G&&G in e}(e))&&(K(e)?oe:X).test(Q(e))}function ae(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return ie(n)?n:void 0}var se=ae(f,"WeakMap"),le=se&&new se,ue=le?function(e,t){return le.set(e,t),e}:q,ce=ue,de=Object.create,pe=function(){function e(){}return function(t){if(!T(t))return{};if(de)return de(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),fe=pe;function he(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=fe(e.prototype),r=e.apply(n,t);return T(r)?r:n}}function ge(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var ve=Math.max;function me(e,t,n,r){for(var o=-1,i=e.length,a=n.length,s=-1,l=t.length,u=ve(i-a,0),c=Array(l+u),d=!r;++s<l;)c[s]=t[s];for(;++o<a;)(d||o<i)&&(c[n[o]]=e[o]);for(;u--;)c[s++]=e[o++];return c}var ye=Math.max;function be(e,t,n,r){for(var o=-1,i=e.length,a=-1,s=n.length,l=-1,u=t.length,c=ye(i-s,0),d=Array(c+u),p=!r;++o<c;)d[o]=e[o];for(var f=o;++l<u;)d[f+l]=t[l];for(;++a<s;)(p||o<i)&&(d[f+n[a]]=e[o++]);return d}function _e(){}function xe(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function we(){}xe.prototype=fe(_e.prototype),xe.prototype.constructor=xe;var Se=le?function(e){return le.get(e)}:we,Ee=Se,ke={},Ce=Object.prototype.hasOwnProperty;function Oe(e){for(var t=e.name+"",n=ke[t],r=Ce.call(ke,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function Ae(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function je(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function Le(e){if(e instanceof xe)return e.clone();var t=new Ae(e.__wrapped__,e.__chain__);return t.__actions__=je(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}Ae.prototype=fe(_e.prototype),Ae.prototype.constructor=Ae;var Re=Object.prototype.hasOwnProperty;function Pe(e){if(w(e)&&!C(e)&&!(e instanceof xe)){if(e instanceof Ae)return e;if(Re.call(e,"__wrapped__"))return Le(e)}return new Ae(e)}function Me(e){var t=Oe(e),n=Pe[t];if("function"!=typeof n||!(t in xe.prototype))return!1;if(e===n)return!0;var r=Ee(n);return!!r&&e===r[0]}Pe.prototype=_e.prototype,Pe.prototype.constructor=Pe;var Ie=Date.now;function Ne(e){var t=0,n=0;return function(){var r=Ie(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Te=Ne(ce),Be=/\{\n\/\* \[wrapped with (.+)\] \*/,$e=/,? & /;var De=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function We(e){return function(){return e}}var ze=function(){try{var e=ae(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Fe=ze,Ue=Fe?function(e,t){return Fe(e,"toString",{configurable:!0,enumerable:!1,value:We(t),writable:!0})}:q,Ve=Ne(Ue);function He(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function qe(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Ke(e){return e!=e}function Je(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):qe(e,Ke,n)}function Ye(e,t){return!!(null==e?0:e.length)&&Je(e,t,0)>-1}var Ge=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function Ze(e,t,n){var r=t+"";return Ve(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(De,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return He(Ge,function(n){var r="_."+n[0];t&n[1]&&!Ye(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(Be);return t?t[1].split($e):[]}(r),n)))}function Qe(e,t,n,r,o,i,a,s,l,u){var c=8&t;t|=c?32:64,4&(t&=~(c?64:32))||(t&=-4);var d=[e,t,o,c?i:void 0,c?a:void 0,c?void 0:i,c?void 0:a,s,l,u],p=n.apply(void 0,d);return Me(e)&&Te(p,d),p.placeholder=r,Ze(p,e,t)}function Xe(e){return e.placeholder}var et=/^(?:0|[1-9]\d*)$/;function tt(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&et.test(e))&&e>-1&&e%1==0&&e<t}var nt=Math.min;var rt="__lodash_placeholder__";function ot(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==rt||(e[n]=rt,i[o++]=n)}return i}function it(e,t,n,r,o,i,a,s,l,u){var c=128&t,d=1&t,p=2&t,h=24&t,g=512&t,v=p?void 0:he(e);return function m(){for(var y=arguments.length,b=Array(y),_=y;_--;)b[_]=arguments[_];if(h)var x=Xe(m),w=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(b,x);if(r&&(b=me(b,r,o,h)),i&&(b=be(b,i,a,h)),y-=w,h&&y<u){var S=ot(b,x);return Qe(e,t,it,m.placeholder,n,b,S,s,l,u-y)}var E=d?n:this,k=p?E[e]:e;return y=b.length,s?b=function(e,t){for(var n=e.length,r=nt(t.length,n),o=je(e);r--;){var i=t[r];e[r]=tt(i,n)?o[i]:void 0}return e}(b,s):g&&y>1&&b.reverse(),c&&l<y&&(b.length=l),this&&this!==f&&this instanceof m&&(k=v||he(k)),k.apply(E,b)}}var at="__lodash_placeholder__",st=128,lt=Math.min;var ut=Math.max;function ct(e,t,n,r,o,i,a,s){var l=2&t;if(!l&&"function"!=typeof e)throw new TypeError("Expected a function");var u=r?r.length:0;if(u||(t&=-97,r=o=void 0),a=void 0===a?a:ut(V(a),0),s=void 0===s?s:V(s),u-=o?o.length:0,64&t){var c=r,d=o;r=o=void 0}var p=l?void 0:Ee(e),h=[e,t,n,r,o,c,d,i,a,s];if(p&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==st&&8==n||r==st&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var s=t[3];if(s){var l=e[3];e[3]=l?me(l,s,t[4]):s,e[4]=l?ot(e[3],at):t[4]}(s=t[5])&&(l=e[5],e[5]=l?be(l,s,t[6]):s,e[6]=l?ot(e[5],at):t[6]),(s=t[7])&&(e[7]=s),r&st&&(e[8]=null==e[8]?t[8]:lt(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(h,p),e=h[0],t=h[1],n=h[2],r=h[3],o=h[4],!(s=h[9]=void 0===h[9]?l?0:e.length:ut(h[9]-u,0))&&24&t&&(t&=-25),t&&1!=t)g=8==t||16==t?function(e,t,n){var r=he(e);return function o(){for(var i=arguments.length,a=Array(i),s=i,l=Xe(o);s--;)a[s]=arguments[s];var u=i<3&&a[0]!==l&&a[i-1]!==l?[]:ot(a,l);return(i-=u.length)<n?Qe(e,t,it,o.placeholder,void 0,a,u,void 0,void 0,n-i):ge(this&&this!==f&&this instanceof o?r:e,this,a)}}(e,t,s):32!=t&&33!=t||o.length?it.apply(void 0,h):function(e,t,n,r){var o=1&t,i=he(e);return function t(){for(var a=-1,s=arguments.length,l=-1,u=r.length,c=Array(u+s),d=this&&this!==f&&this instanceof t?i:e;++l<u;)c[l]=r[l];for(;s--;)c[l++]=arguments[++a];return ge(d,o?n:this,c)}}(e,t,n,r);else var g=function(e,t,n){var r=1&t,o=he(e);return function t(){return(this&&this!==f&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return Ze((p?ce:Te)(g,h),e,t)}function dt(e,t,n){return t=n?void 0:t,ct(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function pt(e,t,n){"__proto__"==t&&Fe?Fe(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ft(e,t){return e===t||e!=e&&t!=t}var ht=Object.prototype.hasOwnProperty;function gt(e,t,n){var r=e[t];ht.call(e,t)&&ft(r,n)&&(void 0!==n||t in e)||pt(e,t,n)}function vt(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),o?pt(n,s,l):gt(n,s,l)}return n}var mt=Math.max;function yt(e,t,n){return t=mt(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=mt(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),ge(e,this,s)}}function bt(e,t){return Ve(yt(e,t,q),e+"")}function _t(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function xt(e){return null!=e&&_t(e.length)&&!K(e)}function wt(e,t,n){if(!T(n))return!1;var r=typeof t;return!!("number"==r?xt(n)&&tt(t,n.length):"string"==r&&t in n)&&ft(n[t],e)}function St(e){return bt(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&wt(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,i)}return t})}var Et=Object.prototype;function kt(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Et)}function Ct(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Ot(e){return w(e)&&"[object Arguments]"==x(e)}var At=Object.prototype,jt=At.hasOwnProperty,Lt=At.propertyIsEnumerable,Rt=Ot(function(){return arguments}())?Ot:function(e){return w(e)&&jt.call(e,"callee")&&!Lt.call(e,"callee")};function Pt(){return!1}var Mt="object"==typeof exports&&exports&&!exports.nodeType&&exports,It=Mt&&"object"==typeof module&&module&&!module.nodeType&&module,Nt=It&&It.exports===Mt?f.Buffer:void 0,Tt=(Nt?Nt.isBuffer:void 0)||Pt,Bt={};function $t(e){return function(t){return e(t)}}Bt["[object Float32Array]"]=Bt["[object Float64Array]"]=Bt["[object Int8Array]"]=Bt["[object Int16Array]"]=Bt["[object Int32Array]"]=Bt["[object Uint8Array]"]=Bt["[object Uint8ClampedArray]"]=Bt["[object Uint16Array]"]=Bt["[object Uint32Array]"]=!0,Bt["[object Arguments]"]=Bt["[object Array]"]=Bt["[object ArrayBuffer]"]=Bt["[object Boolean]"]=Bt["[object DataView]"]=Bt["[object Date]"]=Bt["[object Error]"]=Bt["[object Function]"]=Bt["[object Map]"]=Bt["[object Number]"]=Bt["[object Object]"]=Bt["[object RegExp]"]=Bt["[object Set]"]=Bt["[object String]"]=Bt["[object WeakMap]"]=!1;var Dt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Wt=Dt&&"object"==typeof module&&module&&!module.nodeType&&module,zt=Wt&&Wt.exports===Dt&&d.process,Ft=function(){try{var e=Wt&&Wt.require&&Wt.require("util").types;return e||zt&&zt.binding&&zt.binding("util")}catch(e){}}(),Ut=Ft&&Ft.isTypedArray,Vt=Ut?$t(Ut):function(e){return w(e)&&_t(e.length)&&!!Bt[x(e)]},Ht=Object.prototype.hasOwnProperty;function qt(e,t){var n=C(e),r=!n&&Rt(e),o=!n&&!r&&Tt(e),i=!n&&!r&&!o&&Vt(e),a=n||r||o||i,s=a?Ct(e.length,String):[],l=s.length;for(var u in e)!t&&!Ht.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||tt(u,l))||s.push(u);return s}function Kt(e,t){return function(n){return e(t(n))}}var Jt=Kt(Object.keys,Object),Yt=Object.prototype.hasOwnProperty;function Gt(e){if(!kt(e))return Jt(e);var t=[];for(var n in Object(e))Yt.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Zt(e){return xt(e)?qt(e):Gt(e)}var Qt=Object.prototype.hasOwnProperty,Xt=St(function(e,t){if(kt(t)||xt(t))vt(t,Zt(t),e);else for(var n in t)Qt.call(t,n)&>(e,n,t[n])}),en=Xt;var tn=Object.prototype.hasOwnProperty;function nn(e){if(!T(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=kt(e),n=[];for(var r in e)("constructor"!=r||!t&&tn.call(e,r))&&n.push(r);return n}function rn(e){return xt(e)?qt(e,!0):nn(e)}var on=St(function(e,t){vt(t,rn(t),e)}),an=on,sn=St(function(e,t,n,r){vt(t,rn(t),e,r)}),ln=sn,un=St(function(e,t,n,r){vt(t,Zt(t),e,r)}),cn=un,dn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pn=/^\w*$/;function fn(e,t){if(C(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!S(e))||(pn.test(e)||!dn.test(e)||null!=t&&e in Object(t))}var hn=ae(Object,"create");var gn=Object.prototype.hasOwnProperty;var vn=Object.prototype.hasOwnProperty;function mn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function yn(e,t){for(var n=e.length;n--;)if(ft(e[n][0],t))return n;return-1}mn.prototype.clear=function(){this.__data__=hn?hn(null):{},this.size=0},mn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},mn.prototype.get=function(e){var t=this.__data__;if(hn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return gn.call(t,e)?t[e]:void 0},mn.prototype.has=function(e){var t=this.__data__;return hn?void 0!==t[e]:vn.call(t,e)},mn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=hn&&void 0===t?"__lodash_hash_undefined__":t,this};var bn=Array.prototype.splice;function _n(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}_n.prototype.clear=function(){this.__data__=[],this.size=0},_n.prototype.delete=function(e){var t=this.__data__,n=yn(t,e);return!(n<0)&&(n==t.length-1?t.pop():bn.call(t,n,1),--this.size,!0)},_n.prototype.get=function(e){var t=this.__data__,n=yn(t,e);return n<0?void 0:t[n][1]},_n.prototype.has=function(e){return yn(this.__data__,e)>-1},_n.prototype.set=function(e,t){var n=this.__data__,r=yn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var xn=ae(f,"Map");function wn(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Sn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Sn.prototype.clear=function(){this.size=0,this.__data__={hash:new mn,map:new(xn||_n),string:new mn}},Sn.prototype.delete=function(e){var t=wn(this,e).delete(e);return this.size-=t?1:0,t},Sn.prototype.get=function(e){return wn(this,e).get(e)},Sn.prototype.has=function(e){return wn(this,e).has(e)},Sn.prototype.set=function(e,t){var n=wn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function En(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(En.Cache||Sn),n}En.Cache=Sn;var kn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Cn=/\\(\\)?/g,On=function(e){var t=En(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(kn,function(e,n,r,o){t.push(r?o.replace(Cn,"$1"):n||e)}),t}),An=On;function jn(e){return null==e?"":j(e)}function Ln(e,t){return C(e)?e:fn(e,t)?[e]:An(jn(e))}function Rn(e){if("string"==typeof e||S(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Pn(e,t){for(var n=0,r=(t=Ln(t,e)).length;null!=e&&n<r;)e=e[Rn(t[n++])];return n&&n==r?e:void 0}function Mn(e,t,n){var r=null==e?void 0:Pn(e,t);return void 0===r?n:r}function In(e,t){for(var n=-1,r=t.length,o=Array(r),i=null==e;++n<r;)o[n]=i?void 0:Mn(e,t[n]);return o}function Nn(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var Tn=h?h.isConcatSpreadable:void 0;function Bn(e){return C(e)||Rt(e)||!!(Tn&&e&&e[Tn])}function $n(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=Bn),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?$n(s,t-1,n,r,o):Nn(o,s):r||(o[o.length]=s)}return o}function Dn(e){return(null==e?0:e.length)?$n(e,1):[]}function Wn(e){return Ve(yt(e,void 0,Dn),e+"")}var zn=Wn(In),Fn=Kt(Object.getPrototypeOf,Object),Un=Function.prototype,Vn=Object.prototype,Hn=Un.toString,qn=Vn.hasOwnProperty,Kn=Hn.call(Object);function Jn(e){if(!w(e)||"[object Object]"!=x(e))return!1;var t=Fn(e);if(null===t)return!0;var n=qn.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Hn.call(n)==Kn}function Yn(e){if(!w(e))return!1;var t=x(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Jn(e)}var Gn=bt(function(e,t){try{return ge(e,void 0,t)}catch(e){return Yn(e)?e:new Error(e)}}),Zn=Gn;function Qn(e,t){var n;if("function"!=typeof t)throw new TypeError("Expected a function");return e=V(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var Xn=bt(function(e,t,n){var r=1;if(n.length){var o=ot(n,Xe(Xn));r|=32}return ct(e,r,t,n,o)});Xn.placeholder={};var er=Xn,tr=Wn(function(e,t){return He(t,function(t){t=Rn(t),pt(e,t,er(e[t],e))}),e}),nr=tr,rr=bt(function(e,t,n){var r=3;if(n.length){var o=ot(n,Xe(rr));r|=32}return ct(t,r,e,n,o)});rr.placeholder={};var or=rr;function ir(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}function ar(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:ir(e,t,n)}var sr=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function lr(e){return sr.test(e)}var ur="\\ud800-\\udfff",cr="["+ur+"]",dr="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",pr="\\ud83c[\\udffb-\\udfff]",fr="[^"+ur+"]",hr="(?:\\ud83c[\\udde6-\\uddff]){2}",gr="[\\ud800-\\udbff][\\udc00-\\udfff]",vr="(?:"+dr+"|"+pr+")"+"?",mr="[\\ufe0e\\ufe0f]?",yr=mr+vr+("(?:\\u200d(?:"+[fr,hr,gr].join("|")+")"+mr+vr+")*"),br="(?:"+[fr+dr+"?",dr,hr,gr,cr].join("|")+")",_r=RegExp(pr+"(?="+pr+")|"+br+yr,"g");function xr(e){return lr(e)?function(e){return e.match(_r)||[]}(e):function(e){return e.split("")}(e)}function wr(e){return function(t){var n=lr(t=jn(t))?xr(t):void 0,r=n?n[0]:t.charAt(0),o=n?ar(n,1).join(""):t.slice(1);return r[e]()+o}}var Sr=wr("toUpperCase");function Er(e){return Sr(jn(e).toLowerCase())}function kr(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Cr(e){return function(t){return null==e?void 0:e[t]}}var Or=Cr({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Ar=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,jr=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");function Lr(e){return(e=jn(e))&&e.replace(Ar,Or).replace(jr,"")}var Rr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var Pr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var Mr="\\ud800-\\udfff",Ir="\\u2700-\\u27bf",Nr="a-z\\xdf-\\xf6\\xf8-\\xff",Tr="A-Z\\xc0-\\xd6\\xd8-\\xde",Br="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",$r="["+Br+"]",Dr="\\d+",Wr="["+Ir+"]",zr="["+Nr+"]",Fr="[^"+Mr+Br+Dr+Ir+Nr+Tr+"]",Ur="(?:\\ud83c[\\udde6-\\uddff]){2}",Vr="[\\ud800-\\udbff][\\udc00-\\udfff]",Hr="["+Tr+"]",qr="(?:"+zr+"|"+Fr+")",Kr="(?:"+Hr+"|"+Fr+")",Jr="(?:['’](?:d|ll|m|re|s|t|ve))?",Yr="(?:['’](?:D|LL|M|RE|S|T|VE))?",Gr="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",Zr="[\\ufe0e\\ufe0f]?",Qr=Zr+Gr+("(?:\\u200d(?:"+["[^"+Mr+"]",Ur,Vr].join("|")+")"+Zr+Gr+")*"),Xr="(?:"+[Wr,Ur,Vr].join("|")+")"+Qr,eo=RegExp([Hr+"?"+zr+"+"+Jr+"(?="+[$r,Hr,"$"].join("|")+")",Kr+"+"+Yr+"(?="+[$r,Hr+qr,"$"].join("|")+")",Hr+"?"+qr+"+"+Jr,Hr+"+"+Yr,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Dr,Xr].join("|"),"g");function to(e,t,n){return e=jn(e),void 0===(t=n?void 0:t)?function(e){return Pr.test(e)}(e)?function(e){return e.match(eo)||[]}(e):function(e){return e.match(Rr)||[]}(e):e.match(t)||[]}var no=RegExp("['’]","g");function ro(e){return function(t){return kr(to(Lr(t).replace(no,"")),e,"")}}var oo=ro(function(e,t,n){return t=t.toLowerCase(),e+(n?Er(t):t)}),io=oo;function ao(){if(!arguments.length)return[];var e=arguments[0];return C(e)?e:[e]}var so=f.isFinite,lo=Math.min;function uo(e){var t=Math[e];return function(e,n){if(e=z(e),(n=null==n?0:lo(V(n),292))&&so(e)){var r=(jn(e)+"e").split("e");return+((r=(jn(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var co=uo("ceil");function po(e){var t=Pe(e);return t.__chain__=!0,t}var fo=Math.ceil,ho=Math.max;function go(e,t,n){t=(n?wt(e,t,n):void 0===t)?1:ho(V(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,a=Array(fo(r/t));o<r;)a[i++]=ir(e,o,o+=t);return a}function vo(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function mo(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=z(n))==n?n:0),void 0!==t&&(t=(t=z(t))==t?t:0),vo(z(e),t,n)}function yo(e){var t=this.__data__=new _n(e);this.size=t.size}function bo(e,t){return e&&vt(t,Zt(t),e)}yo.prototype.clear=function(){this.__data__=new _n,this.size=0},yo.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},yo.prototype.get=function(e){return this.__data__.get(e)},yo.prototype.has=function(e){return this.__data__.has(e)},yo.prototype.set=function(e,t){var n=this.__data__;if(n instanceof _n){var r=n.__data__;if(!xn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Sn(r)}return n.set(e,t),this.size=n.size,this};var _o="object"==typeof exports&&exports&&!exports.nodeType&&exports,xo=_o&&"object"==typeof module&&module&&!module.nodeType&&module,wo=xo&&xo.exports===_o?f.Buffer:void 0,So=wo?wo.allocUnsafe:void 0;function Eo(e,t){if(t)return e.slice();var n=e.length,r=So?So(n):new e.constructor(n);return e.copy(r),r}function ko(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Co(){return[]}var Oo=Object.prototype.propertyIsEnumerable,Ao=Object.getOwnPropertySymbols,jo=Ao?function(e){return null==e?[]:(e=Object(e),ko(Ao(e),function(t){return Oo.call(e,t)}))}:Co,Lo=jo;var Ro=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Nn(t,Lo(e)),e=Fn(e);return t}:Co,Po=Ro;function Mo(e,t,n){var r=t(e);return C(e)?r:Nn(r,n(e))}function Io(e){return Mo(e,Zt,Lo)}function No(e){return Mo(e,rn,Po)}var To=ae(f,"DataView"),Bo=ae(f,"Promise"),$o=ae(f,"Set"),Do="[object Map]",Wo="[object Promise]",zo="[object Set]",Fo="[object WeakMap]",Uo="[object DataView]",Vo=Q(To),Ho=Q(xn),qo=Q(Bo),Ko=Q($o),Jo=Q(se),Yo=x;(To&&Yo(new To(new ArrayBuffer(1)))!=Uo||xn&&Yo(new xn)!=Do||Bo&&Yo(Bo.resolve())!=Wo||$o&&Yo(new $o)!=zo||se&&Yo(new se)!=Fo)&&(Yo=function(e){var t=x(e),n="[object Object]"==t?e.constructor:void 0,r=n?Q(n):"";if(r)switch(r){case Vo:return Uo;case Ho:return Do;case qo:return Wo;case Ko:return zo;case Jo:return Fo}return t});var Go=Yo,Zo=Object.prototype.hasOwnProperty;var Qo=f.Uint8Array;function Xo(e){var t=new e.constructor(e.byteLength);return new Qo(t).set(new Qo(e)),t}var ei=/\w*$/;var ti=h?h.prototype:void 0,ni=ti?ti.valueOf:void 0;function ri(e,t){var n=t?Xo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function oi(e,t,n){var r,o=e.constructor;switch(t){case"[object ArrayBuffer]":return Xo(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return function(e,t){var n=t?Xo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return ri(e,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,ei.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Symbol]":return r=e,ni?Object(ni.call(r)):{}}}function ii(e){return"function"!=typeof e.constructor||kt(e)?{}:fe(Fn(e))}var ai=Ft&&Ft.isMap,si=ai?$t(ai):function(e){return w(e)&&"[object Map]"==Go(e)};var li=Ft&&Ft.isSet,ui=li?$t(li):function(e){return w(e)&&"[object Set]"==Go(e)},ci="[object Arguments]",di="[object Function]",pi="[object Object]",fi={};function hi(e,t,n,r,o,i){var a,s=1&t,l=2&t,u=4&t;if(n&&(a=o?n(e,r,o,i):n(e)),void 0!==a)return a;if(!T(e))return e;var c=C(e);if(c){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Zo.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!s)return je(e,a)}else{var d=Go(e),p=d==di||"[object GeneratorFunction]"==d;if(Tt(e))return Eo(e,s);if(d==pi||d==ci||p&&!o){if(a=l||p?{}:ii(e),!s)return l?function(e,t){return vt(e,Po(e),t)}(e,function(e,t){return e&&vt(t,rn(t),e)}(a,e)):function(e,t){return vt(e,Lo(e),t)}(e,bo(a,e))}else{if(!fi[d])return o?e:{};a=oi(e,d,s)}}i||(i=new yo);var f=i.get(e);if(f)return f;i.set(e,a),ui(e)?e.forEach(function(r){a.add(hi(r,t,n,r,e,i))}):si(e)&&e.forEach(function(r,o){a.set(o,hi(r,t,n,o,e,i))});var h=c?void 0:(u?l?No:Io:l?rn:Zt)(e);return He(h||e,function(r,o){h&&(r=e[o=r]),gt(a,o,hi(r,t,n,o,e,i))}),a}fi[ci]=fi["[object Array]"]=fi["[object ArrayBuffer]"]=fi["[object DataView]"]=fi["[object Boolean]"]=fi["[object Date]"]=fi["[object Float32Array]"]=fi["[object Float64Array]"]=fi["[object Int8Array]"]=fi["[object Int16Array]"]=fi["[object Int32Array]"]=fi["[object Map]"]=fi["[object Number]"]=fi[pi]=fi["[object RegExp]"]=fi["[object Set]"]=fi["[object String]"]=fi["[object Symbol]"]=fi["[object Uint8Array]"]=fi["[object Uint8ClampedArray]"]=fi["[object Uint16Array]"]=fi["[object Uint32Array]"]=!0,fi["[object Error]"]=fi[di]=fi["[object WeakMap]"]=!1;function gi(e){return hi(e,4)}function vi(e){return hi(e,5)}function mi(e,t){return hi(e,5,t="function"==typeof t?t:void 0)}function yi(e,t){return hi(e,4,t="function"==typeof t?t:void 0)}function bi(){return new Ae(this.value(),this.__chain__)}function _i(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o}function xi(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Nn(C(n)?je(n):[n],$n(t,1))}function wi(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Sn;++t<n;)this.add(e[t])}function Si(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Ei(e,t){return e.has(t)}wi.prototype.add=wi.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},wi.prototype.has=function(e){return this.__data__.has(e)};function ki(e,t,n,r,o,i){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,p=!0,f=2&n?new wi:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var h=e[d],g=t[d];if(r)var v=a?r(g,h,d,t,e,i):r(h,g,d,e,t,i);if(void 0!==v){if(v)continue;p=!1;break}if(f){if(!Si(t,function(e,t){if(!Ei(f,t)&&(h===e||o(h,e,n,r,i)))return f.push(t)})){p=!1;break}}else if(h!==g&&!o(h,g,n,r,i)){p=!1;break}}return i.delete(e),i.delete(t),p}function Ci(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Oi(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var Ai=h?h.prototype:void 0,ji=Ai?Ai.valueOf:void 0;var Li=Object.prototype.hasOwnProperty;var Ri="[object Arguments]",Pi="[object Array]",Mi="[object Object]",Ii=Object.prototype.hasOwnProperty;function Ni(e,t,n,r,o,i){var a=C(e),s=C(t),l=a?Pi:Go(e),u=s?Pi:Go(t),c=(l=l==Ri?Mi:l)==Mi,d=(u=u==Ri?Mi:u)==Mi,p=l==u;if(p&&Tt(e)){if(!Tt(t))return!1;a=!0,c=!1}if(p&&!c)return i||(i=new yo),a||Vt(e)?ki(e,t,n,r,o,i):function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new Qo(e),new Qo(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ft(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Ci;case"[object Set]":var l=1&r;if(s||(s=Oi),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var c=ki(s(e),s(t),r,o,i,a);return a.delete(e),c;case"[object Symbol]":if(ji)return ji.call(e)==ji.call(t)}return!1}(e,t,l,n,r,o,i);if(!(1&n)){var f=c&&Ii.call(e,"__wrapped__"),h=d&&Ii.call(t,"__wrapped__");if(f||h){var g=f?e.value():e,v=h?t.value():t;return i||(i=new yo),o(g,v,n,r,i)}}return!!p&&(i||(i=new yo),function(e,t,n,r,o,i){var a=1&n,s=Io(e),l=s.length;if(l!=Io(t).length&&!a)return!1;for(var u=l;u--;){var c=s[u];if(!(a?c in t:Li.call(t,c)))return!1}var d=i.get(e),p=i.get(t);if(d&&p)return d==t&&p==e;var f=!0;i.set(e,t),i.set(t,e);for(var h=a;++u<l;){var g=e[c=s[u]],v=t[c];if(r)var m=a?r(v,g,c,t,e,i):r(g,v,c,e,t,i);if(!(void 0===m?g===v||o(g,v,n,r,i):m)){f=!1;break}h||(h="constructor"==c)}if(f&&!h){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(f=!1)}return i.delete(e),i.delete(t),f}(e,t,n,r,o,i))}function Ti(e,t,n,r,o){return e===t||(null==e||null==t||!w(e)&&!w(t)?e!=e&&t!=t:Ni(e,t,n,r,Ti,o))}function Bi(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){var l=(s=n[o])[0],u=e[l],c=s[1];if(a&&s[2]){if(void 0===u&&!(l in e))return!1}else{var d=new yo;if(r)var p=r(u,c,l,e,t,d);if(!(void 0===p?Ti(c,u,3,r,d):p))return!1}}return!0}function $i(e){return e==e&&!T(e)}function Di(e){for(var t=Zt(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,$i(o)]}return t}function Wi(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}function zi(e){var t=Di(e);return 1==t.length&&t[0][2]?Wi(t[0][0],t[0][1]):function(n){return n===e||Bi(n,e,t)}}function Fi(e,t){return null!=e&&t in Object(e)}function Ui(e,t,n){for(var r=-1,o=(t=Ln(t,e)).length,i=!1;++r<o;){var a=Rn(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&_t(o)&&tt(a,o)&&(C(e)||Rt(e))}function Vi(e,t){return null!=e&&Ui(e,t,Fi)}function Hi(e,t){return fn(e)&&$i(t)?Wi(Rn(e),t):function(n){var r=Mn(n,e);return void 0===r&&r===t?Vi(n,e):Ti(t,r,3)}}function qi(e){return function(t){return null==t?void 0:t[e]}}function Ki(e){return fn(e)?qi(Rn(e)):function(e){return function(t){return Pn(t,e)}}(e)}function Ji(e){return"function"==typeof e?e:null==e?q:"object"==typeof e?C(e)?Hi(e[0],e[1]):zi(e):Ki(e)}function Yi(e){var t=null==e?0:e.length,n=Ji;return e=t?k(e,function(e){if("function"!=typeof e[1])throw new TypeError("Expected a function");return[n(e[0]),e[1]]}):[],bt(function(n){for(var r=-1;++r<t;){var o=e[r];if(ge(o[0],this,n))return ge(o[1],this,n)}})}function Gi(e,t,n){var r=n.length;if(null==e)return!r;for(e=Object(e);r--;){var o=n[r],i=t[o],a=e[o];if(void 0===a&&!(o in e)||!i(a))return!1}return!0}function Zi(e){return function(e){var t=Zt(e);return function(n){return Gi(n,e,t)}}(hi(e,1))}function Qi(e,t){return null==t||Gi(e,t,Zt(t))}function Xi(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function ea(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}var ta=ea();function na(e,t){return e&&ta(e,t,Zt)}function ra(e,t){return function(n,r){if(null==n)return n;if(!xt(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}var oa=ra(na);function ia(e,t,n,r){return oa(e,function(e,o,i){t(r,e,n(e),i)}),r}function aa(e,t){return function(n,r){var o=C(n)?Xi:ia,i=t?t():{};return o(n,e,Ji(r),i)}}var sa=Object.prototype.hasOwnProperty,la=aa(function(e,t,n){sa.call(e,n)?++e[n]:pt(e,n,1)}),ua=la;function ca(e,t){var n=fe(e);return null==t?n:bo(n,t)}function da(e,t,n){var r=ct(e,8,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return r.placeholder=da.placeholder,r}da.placeholder={};function pa(e,t,n){var r=ct(e,16,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return r.placeholder=pa.placeholder,r}pa.placeholder={};var fa=function(){return f.Date.now()},ha=Math.max,ga=Math.min;function va(e,t,n){var r,o,i,a,s,l,u=0,c=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=r,i=o;return r=o=void 0,u=t,a=e.apply(i,n)}function h(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-u>=i}function g(){var e=fa();if(h(e))return v(e);s=setTimeout(g,function(e){var n=t-(e-l);return d?ga(n,i-(e-u)):n}(e))}function v(e){return s=void 0,p&&r?f(e):(r=o=void 0,a)}function m(){var e=fa(),n=h(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return u=e,s=setTimeout(g,t),c?f(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(g,t),f(l)}return void 0===s&&(s=setTimeout(g,t)),a}return t=z(t)||0,T(n)&&(c=!!n.leading,i=(d="maxWait"in n)?ha(z(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),m.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=o=s=void 0},m.flush=function(){return void 0===s?a:v(fa())},m}function ma(e,t){return null==e||e!=e?t:e}var ya=Object.prototype,ba=ya.hasOwnProperty,_a=bt(function(e,t){e=Object(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&wt(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],a=rn(i),s=-1,l=a.length;++s<l;){var u=a[s],c=e[u];(void 0===c||ft(c,ya[u])&&!ba.call(e,u))&&(e[u]=i[u])}return e}),xa=_a;function wa(e,t,n){(void 0!==n&&!ft(e[t],n)||void 0===n&&!(t in e))&&pt(e,t,n)}function Sa(e){return w(e)&&xt(e)}function Ea(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function ka(e){return vt(e,rn(e))}function Ca(e,t,n,r,o){e!==t&&ta(t,function(i,a){if(o||(o=new yo),T(i))!function(e,t,n,r,o,i,a){var s=Ea(e,n),l=Ea(t,n),u=a.get(l);if(u)wa(e,n,u);else{var c=i?i(s,l,n+"",e,t,a):void 0,d=void 0===c;if(d){var p=C(l),f=!p&&Tt(l),h=!p&&!f&&Vt(l);c=l,p||f||h?C(s)?c=s:Sa(s)?c=je(s):f?(d=!1,c=Eo(l,!0)):h?(d=!1,c=ri(l,!0)):c=[]:Jn(l)||Rt(l)?(c=s,Rt(s)?c=ka(s):T(s)&&!K(s)||(c=ii(l))):d=!1}d&&(a.set(l,c),o(c,l,r,i,a),a.delete(l)),wa(e,n,c)}}(e,t,a,n,Ca,r,o);else{var s=r?r(Ea(e,a),i,a+"",e,t,o):void 0;void 0===s&&(s=i),wa(e,a,s)}},rn)}function Oa(e,t,n,r,o,i){return T(e)&&T(t)&&(i.set(t,e),Ca(e,t,void 0,Oa,i),i.delete(t)),e}var Aa=St(function(e,t,n,r){Ca(e,t,n,r)}),ja=Aa,La=bt(function(e){return e.push(void 0,Oa),ge(ja,void 0,e)});function Ra(e,t,n){if("function"!=typeof e)throw new TypeError("Expected a function");return setTimeout(function(){e.apply(void 0,n)},t)}var Pa=bt(function(e,t){return Ra(e,1,t)}),Ma=Pa,Ia=bt(function(e,t,n){return Ra(e,z(t)||0,n)}),Na=Ia;function Ta(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Ba(e,t,n,r){var o=-1,i=Ye,a=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=k(t,$t(n))),r?(i=Ta,a=!1):t.length>=200&&(i=Ei,a=!1,t=new wi(t));e:for(;++o<s;){var c=e[o],d=null==n?c:n(c);if(c=r||0!==c?c:0,a&&d==d){for(var p=u;p--;)if(t[p]===d)continue e;l.push(c)}else i(t,d,r)||l.push(c)}return l}var $a=bt(function(e,t){return Sa(e)?Ba(e,$n(t,1,Sa,!0)):[]}),Da=$a;function Wa(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var za=bt(function(e,t){var n=Wa(t);return Sa(n)&&(n=void 0),Sa(e)?Ba(e,$n(t,1,Sa,!0),Ji(n)):[]}),Fa=za,Ua=bt(function(e,t){var n=Wa(t);return Sa(n)&&(n=void 0),Sa(e)?Ba(e,$n(t,1,Sa,!0),void 0,n):[]}),Va=Ua,Ha=L(function(e,t){return e/t},1);function qa(e,t,n){var r=null==e?0:e.length;return r?ir(e,(t=n||void 0===t?1:V(t))<0?0:t,r):[]}function Ka(e,t,n){var r=null==e?0:e.length;return r?ir(e,0,(t=r-(t=n||void 0===t?1:V(t)))<0?0:t):[]}function Ja(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?ir(e,r?0:i,r?i+1:o):ir(e,r?i+1:0,r?o:i)}function Ya(e,t){return e&&e.length?Ja(e,Ji(t),!0,!0):[]}function Ga(e,t){return e&&e.length?Ja(e,Ji(t),!0):[]}function Za(e){return"function"==typeof e?e:q}function Qa(e,t){return(C(e)?He:oa)(e,Za(t))}function Xa(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}var es=ea(!0);function ts(e,t){return e&&es(e,t,Zt)}var ns=ra(ts,!0);function rs(e,t){return(C(e)?Xa:ns)(e,Za(t))}function os(e,t,n){e=jn(e),t=j(t);var r=e.length,o=n=void 0===n?r:vo(V(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t}function is(e){return function(t){var n=Go(t);return"[object Map]"==n?Ci(t):"[object Set]"==n?function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}(t):function(e,t){return k(t,function(t){return[t,e[t]]})}(t,e(t))}}var as=is(Zt),ss=is(rn),ls=Cr({"&":"&","<":"<",">":">",'"':""","'":"'"}),us=/[&<>"']/g,cs=RegExp(us.source);function ds(e){return(e=jn(e))&&cs.test(e)?e.replace(us,ls):e}var ps=/[\\^$.*+?()[\]{}|]/g,fs=RegExp(ps.source);function hs(e){return(e=jn(e))&&fs.test(e)?e.replace(ps,"\\$&"):e}function gs(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function vs(e,t){var n=!0;return oa(e,function(e,r,o){return n=!!t(e,r,o)}),n}function ms(e,t,n){var r=C(e)?gs:vs;return n&&wt(e,t,n)&&(t=void 0),r(e,Ji(t))}function ys(e){return e?vo(V(e),0,4294967295):0}function bs(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&wt(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=V(n))<0&&(n=-n>o?0:o+n),(r=void 0===r||r>o?o:V(r))<0&&(r+=o),r=n>r?0:ys(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]}function _s(e,t){var n=[];return oa(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}function xs(e,t){return(C(e)?ko:_s)(e,Ji(t))}function ws(e){return function(t,n,r){var o=Object(t);if(!xt(t)){var i=Ji(n);t=Zt(t),n=function(e){return i(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:void 0}}var Ss=Math.max;function Es(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:V(n);return o<0&&(o=Ss(r+o,0)),qe(e,Ji(t),o)}var ks=ws(Es);function Cs(e,t,n){var r;return n(e,function(e,n,o){if(t(e,n,o))return r=n,!1}),r}function Os(e,t){return Cs(e,Ji(t),na)}var As=Math.max,js=Math.min;function Ls(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return void 0!==n&&(o=V(n),o=n<0?As(r+o,0):js(o,r-1)),qe(e,Ji(t),o,!0)}var Rs=ws(Ls);function Ps(e,t){return Cs(e,Ji(t),ts)}function Ms(e){return e&&e.length?e[0]:void 0}function Is(e,t){var n=-1,r=xt(e)?Array(e.length):[];return oa(e,function(e,o,i){r[++n]=t(e,o,i)}),r}function Ns(e,t){return(C(e)?k:Is)(e,Ji(t))}function Ts(e,t){return $n(Ns(e,t),1)}var Bs=1/0;function $s(e,t){return $n(Ns(e,t),Bs)}function Ds(e,t,n){return n=void 0===n?1:V(n),$n(Ns(e,t),n)}var Ws=1/0;function zs(e){return(null==e?0:e.length)?$n(e,Ws):[]}function Fs(e,t){return(null==e?0:e.length)?$n(e,t=void 0===t?1:V(t)):[]}function Us(e){return ct(e,512)}var Vs=uo("floor");function Hs(e){return Wn(function(t){var n=t.length,r=n,o=Ae.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if("function"!=typeof i)throw new TypeError("Expected a function");if(o&&!a&&"wrapper"==Oe(i))var a=new Ae([],!0)}for(r=a?r:n;++r<n;){var s=Oe(i=t[r]),l="wrapper"==s?Ee(i):void 0;a=l&&Me(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?a[Oe(l[0])].apply(a,l[3]):1==i.length&&Me(i)?a[s]():a.thru(i)}return function(){var e=arguments,r=e[0];if(a&&1==e.length&&C(r))return a.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}})}var qs=Hs(),Ks=Hs(!0);function Js(e,t){return null==e?e:ta(e,Za(t),rn)}function Ys(e,t){return null==e?e:es(e,Za(t),rn)}function Gs(e,t){return e&&na(e,Za(t))}function Zs(e,t){return e&&ts(e,Za(t))}function Qs(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r}function Xs(e,t){return ko(t,function(t){return K(e[t])})}function el(e){return null==e?[]:Xs(e,Zt(e))}function tl(e){return null==e?[]:Xs(e,rn(e))}var nl=Object.prototype.hasOwnProperty,rl=aa(function(e,t,n){nl.call(e,n)?e[n].push(t):pt(e,n,[t])}),ol=rl;function il(e,t){return e>t}function al(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=z(t),n=z(n)),e(t,n)}}var sl=al(il),ll=al(function(e,t){return e>=t}),ul=Object.prototype.hasOwnProperty;function cl(e,t){return null!=e&&ul.call(e,t)}function dl(e,t){return null!=e&&Ui(e,t,cl)}var pl=Math.max,fl=Math.min;function hl(e,t,n){return t=U(t),void 0===n?(n=t,t=0):n=U(n),function(e,t,n){return e>=fl(t,n)&&e<pl(t,n)}(e=z(e),t,n)}function gl(e){return"string"==typeof e||!C(e)&&w(e)&&"[object String]"==x(e)}function vl(e,t){return k(t,function(t){return e[t]})}function ml(e){return null==e?[]:vl(e,Zt(e))}var yl=Math.max;function bl(e,t,n,r){e=xt(e)?e:ml(e),n=n&&!r?V(n):0;var o=e.length;return n<0&&(n=yl(o+n,0)),gl(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Je(e,t,n)>-1}var _l=Math.max;function xl(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:V(n);return o<0&&(o=_l(r+o,0)),Je(e,t,o)}function wl(e){return(null==e?0:e.length)?ir(e,0,-1):[]}var Sl=Math.min;function El(e,t,n){for(var r=n?Ta:Ye,o=e[0].length,i=e.length,a=i,s=Array(i),l=1/0,u=[];a--;){var c=e[a];a&&t&&(c=k(c,$t(t))),l=Sl(c.length,l),s[a]=!n&&(t||o>=120&&c.length>=120)?new wi(a&&c):void 0}c=e[0];var d=-1,p=s[0];e:for(;++d<o&&u.length<l;){var f=c[d],h=t?t(f):f;if(f=n||0!==f?f:0,!(p?Ei(p,h):r(u,h,n))){for(a=i;--a;){var g=s[a];if(!(g?Ei(g,h):r(e[a],h,n)))continue e}p&&p.push(h),u.push(f)}}return u}function kl(e){return Sa(e)?e:[]}var Cl=bt(function(e){var t=k(e,kl);return t.length&&t[0]===e[0]?El(t):[]}),Ol=bt(function(e){var t=Wa(e),n=k(e,kl);return t===Wa(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?El(n,Ji(t)):[]}),Al=Ol,jl=bt(function(e){var t=Wa(e),n=k(e,kl);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?El(n,void 0,t):[]});function Ll(e,t){return function(n,r){return function(e,t,n,r){return na(e,function(e,o,i){t(r,n(e),o,i)}),r}(n,e,t(r),{})}}var Rl=Object.prototype.toString,Pl=Ll(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Rl.call(t)),e[t]=n},We(q)),Ml=Pl,Il=Object.prototype,Nl=Il.hasOwnProperty,Tl=Il.toString,Bl=Ll(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Tl.call(t)),Nl.call(e,t)?e[t].push(n):e[t]=[n]},Ji),$l=Bl;function Dl(e,t){return t.length<2?e:Pn(e,ir(t,0,-1))}function Wl(e,t,n){var r=null==(e=Dl(e,t=Ln(t,e)))?e:e[Rn(Wa(t))];return null==r?void 0:ge(r,e,n)}var zl=bt(Wl),Fl=bt(function(e,t,n){var r=-1,o="function"==typeof t,i=xt(e)?Array(e.length):[];return oa(e,function(e){i[++r]=o?ge(t,e,n):Wl(e,t,n)}),i}),Ul=Fl;var Vl=Ft&&Ft.isArrayBuffer,Hl=Vl?$t(Vl):function(e){return w(e)&&"[object ArrayBuffer]"==x(e)};function ql(e){return!0===e||!1===e||w(e)&&"[object Boolean]"==x(e)}var Kl=Ft&&Ft.isDate,Jl=Kl?$t(Kl):function(e){return w(e)&&"[object Date]"==x(e)};function Yl(e){return w(e)&&1===e.nodeType&&!Jn(e)}var Gl=Object.prototype.hasOwnProperty;function Zl(e){if(null==e)return!0;if(xt(e)&&(C(e)||"string"==typeof e||"function"==typeof e.splice||Tt(e)||Vt(e)||Rt(e)))return!e.length;var t=Go(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(kt(e))return!Gt(e).length;for(var n in e)if(Gl.call(e,n))return!1;return!0}function Ql(e,t){return Ti(e,t)}function Xl(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?Ti(e,t,void 0,n):!!r}var eu=f.isFinite;function tu(e){return"number"==typeof e&&eu(e)}function nu(e){return"number"==typeof e&&e==V(e)}function ru(e,t){return e===t||Bi(e,t,Di(t))}function ou(e,t,n){return n="function"==typeof n?n:void 0,Bi(e,t,Di(t),n)}function iu(e){return"number"==typeof e||w(e)&&"[object Number]"==x(e)}function au(e){return iu(e)&&e!=+e}var su=Y?K:Pt;function lu(e){if(su(e))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return ie(e)}function uu(e){return null==e}function cu(e){return null===e}var du=Ft&&Ft.isRegExp,pu=du?$t(du):function(e){return w(e)&&"[object RegExp]"==x(e)},fu=9007199254740991;function hu(e){return nu(e)&&e>=-9007199254740991&&e<=fu}function gu(e){return void 0===e}function vu(e){return w(e)&&"[object WeakMap]"==Go(e)}function mu(e){return w(e)&&"[object WeakSet]"==x(e)}function yu(e){return Ji("function"==typeof e?e:hi(e,1))}var bu=Array.prototype.join;function _u(e,t){return null==e?"":bu.call(e,t)}var xu=ro(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),wu=xu,Su=aa(function(e,t,n){pt(e,n,t)}),Eu=Su;var ku=Math.max,Cu=Math.min;function Ou(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=V(n))<0?ku(r+o,0):Cu(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):qe(e,Ke,o,!0)}var Au=ro(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),ju=Au,Lu=wr("toLowerCase");function Ru(e,t){return e<t}var Pu=al(Ru),Mu=al(function(e,t){return e<=t});function Iu(e,t){var n={};return t=Ji(t),na(e,function(e,r,o){pt(n,t(e,r,o),e)}),n}function Nu(e,t){var n={};return t=Ji(t),na(e,function(e,r,o){pt(n,r,t(e,r,o))}),n}function Tu(e){return zi(hi(e,1))}function Bu(e,t){return Hi(e,hi(t,1))}function $u(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(null!=a&&(void 0===s?a==a&&!S(a):n(a,s)))var s=a,l=i}return l}function Du(e){return e&&e.length?$u(e,q,il):void 0}function Wu(e,t){return e&&e.length?$u(e,Ji(t),il):void 0}function zu(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n}function Fu(e,t){var n=null==e?0:e.length;return n?zu(e,t)/n:NaN}function Uu(e){return Fu(e,q)}function Vu(e,t){return Fu(e,Ji(t))}var Hu=St(function(e,t,n){Ca(e,t,n)}),qu=Hu,Ku=bt(function(e,t){return function(n){return Wl(n,e,t)}}),Ju=Ku,Yu=bt(function(e,t){return function(n){return Wl(e,n,t)}}),Gu=Yu;function Zu(e){return e&&e.length?$u(e,q,Ru):void 0}function Qu(e,t){return e&&e.length?$u(e,Ji(t),Ru):void 0}function Xu(e,t,n){var r=Zt(t),o=Xs(t,r),i=!(T(n)&&"chain"in n&&!n.chain),a=K(e);return He(o,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=je(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Nn([this.value()],arguments))})}),e}var ec=L(function(e,t){return e*t},1);function tc(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}var nc=h?h.iterator:void 0;function rc(e){if(!e)return[];if(xt(e))return gl(e)?xr(e):je(e);if(nc&&e[nc])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[nc]());var t=Go(e);return("[object Map]"==t?Ci:"[object Set]"==t?Oi:ml)(e)}function oc(){void 0===this.__values__&&(this.__values__=rc(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}}function ic(e,t){var n=e.length;if(n)return tt(t+=t<0?n:0,n)?e[t]:void 0}function ac(e,t){return e&&e.length?ic(e,V(t)):void 0}function sc(e){return e=V(e),bt(function(t){return ic(t,e)})}var lc=Object.prototype.hasOwnProperty;function uc(e,t){var n=-1,r=(t=Ln(t,e)).length;if(!r)return!0;for(var o=null==e||"object"!=typeof e&&"function"!=typeof e;++n<r;){var i=t[n];if("string"==typeof i){if("__proto__"===i&&!lc.call(e,"__proto__"))return!1;if("constructor"===i&&n+1<r&&"string"==typeof t[n+1]&&"prototype"===t[n+1]){if(o&&0===n)continue;return!1}}}var a=Dl(e,t);return null==a||delete a[Rn(Wa(t))]}function cc(e){return Jn(e)?void 0:e}var dc=Wn(function(e,t){var n={};if(null==e)return n;var r=!1;t=k(t,function(t){return t=Ln(t,e),r||(r=t.length>1),t}),vt(e,No(e),n),r&&(n=hi(n,7,cc));for(var o=t.length;o--;)uc(n,t[o]);return n}),pc=dc;function fc(e,t,n,r){if(!T(e))return e;for(var o=-1,i=(t=Ln(t,e)).length,a=i-1,s=e;null!=s&&++o<i;){var l=Rn(t[o]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=a){var c=s[l];void 0===(u=r?r(c,l,s):void 0)&&(u=T(c)?c:tt(t[o+1])?[]:{})}gt(s,l,u),s=s[l]}return e}function hc(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=Pn(e,a);n(s,a)&&fc(i,Ln(a,e),s)}return i}function gc(e,t){if(null==e)return{};var n=k(No(e),function(e){return[e]});return t=Ji(t),hc(e,n,function(e,n){return t(e,n[0])})}function vc(e,t){return gc(e,tc(Ji(t)))}function mc(e){return Qn(2,e)}function yc(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,i=S(e),a=void 0!==t,s=null===t,l=t==t,u=S(t);if(!s&&!u&&!i&&e>t||i&&a&&l&&!s&&!u||r&&a&&l||!n&&l||!o)return 1;if(!r&&!i&&!u&&e<t||u&&n&&o&&!r&&!i||s&&n&&o||!a&&o||!l)return-1}return 0}function bc(e,t,n){t=t.length?k(t,function(e){return C(e)?function(t){return Pn(t,1===e.length?e[0]:e)}:e}):[q];var r=-1;t=k(t,$t(Ji));var o=Is(e,function(e,n,o){var i=k(t,function(t){return t(e)});return{criteria:i,index:++r,value:e}});return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var l=yc(o[r],i[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)})}function _c(e,t,n,r){return null==e?[]:(C(t)||(t=null==t?[]:[t]),C(n=r?void 0:n)||(n=null==n?[]:[n]),bc(e,t,n))}function xc(e){return Wn(function(t){return t=k(t,$t(Ji)),bt(function(n){var r=this;return e(t,function(e){return ge(e,r,n)})})})}var wc=xc(k),Sc=bt,Ec=Math.min,kc=Sc(function(e,t){var n=(t=1==t.length&&C(t[0])?k(t[0],$t(Ji)):k($n(t,1),$t(Ji))).length;return bt(function(r){for(var o=-1,i=Ec(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return ge(e,this,r)})}),Cc=kc,Oc=xc(gs),Ac=xc(Si),jc=Math.floor;function Lc(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=jc(t/2))&&(e+=e)}while(t);return n}var Rc=qi("length"),Pc="\\ud800-\\udfff",Mc="["+Pc+"]",Ic="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Nc="\\ud83c[\\udffb-\\udfff]",Tc="[^"+Pc+"]",Bc="(?:\\ud83c[\\udde6-\\uddff]){2}",$c="[\\ud800-\\udbff][\\udc00-\\udfff]",Dc="(?:"+Ic+"|"+Nc+")"+"?",Wc="[\\ufe0e\\ufe0f]?",zc=Wc+Dc+("(?:\\u200d(?:"+[Tc,Bc,$c].join("|")+")"+Wc+Dc+")*"),Fc="(?:"+[Tc+Ic+"?",Ic,Bc,$c,Mc].join("|")+")",Uc=RegExp(Nc+"(?="+Nc+")|"+Fc+zc,"g");function Vc(e){return lr(e)?function(e){for(var t=Uc.lastIndex=0;Uc.test(e);)++t;return t}(e):Rc(e)}var Hc=Math.ceil;function qc(e,t){var n=(t=void 0===t?" ":j(t)).length;if(n<2)return n?Lc(t,e):t;var r=Lc(t,Hc(e/Vc(t)));return lr(t)?ar(xr(r),0,e).join(""):r.slice(0,e)}var Kc=Math.ceil,Jc=Math.floor;function Yc(e,t,n){e=jn(e);var r=(t=V(t))?Vc(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return qc(Jc(o),n)+e+qc(Kc(o),n)}function Gc(e,t,n){e=jn(e);var r=(t=V(t))?Vc(e):0;return t&&r<t?e+qc(t-r,n):e}function Zc(e,t,n){e=jn(e);var r=(t=V(t))?Vc(e):0;return t&&r<t?qc(t-r,n)+e:e}var Qc=/^\s+/,Xc=f.parseInt;function ed(e,t,n){return n||null==t?t=0:t&&(t=+t),Xc(jn(e).replace(Qc,""),t||0)}var td=bt(function(e,t){return ct(e,32,void 0,t,ot(t,Xe(td)))});td.placeholder={};var nd=td,rd=bt(function(e,t){return ct(e,64,void 0,t,ot(t,Xe(rd)))});rd.placeholder={};var od=rd,id=aa(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),ad=id;var sd=Wn(function(e,t){return null==e?{}:function(e,t){return hc(e,t,function(t,n){return Vi(e,n)})}(e,t)}),ld=sd;function ud(e){for(var t,n=this;n instanceof _e;){var r=Le(n);r.__index__=0,r.__values__=void 0,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t}function cd(e){return function(t){return null==e?void 0:Pn(e,t)}}function dd(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}var pd=Array.prototype.splice;function fd(e,t,n,r){var o=r?dd:Je,i=-1,a=t.length,s=e;for(e===t&&(t=je(t)),n&&(s=k(e,$t(n)));++i<a;)for(var l=0,u=t[i],c=n?n(u):u;(l=o(s,c,l,r))>-1;)s!==e&&pd.call(s,l,1),pd.call(e,l,1);return e}function hd(e,t){return e&&e.length&&t&&t.length?fd(e,t):e}var gd=bt(hd);function vd(e,t,n){return e&&e.length&&t&&t.length?fd(e,t,Ji(n)):e}function md(e,t,n){return e&&e.length&&t&&t.length?fd(e,t,void 0,n):e}var yd=Array.prototype.splice;function bd(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;tt(o)?yd.call(e,o,1):uc(e,o)}}return e}var _d=Wn(function(e,t){var n=null==e?0:e.length,r=In(e,t);return bd(e,k(t,function(e){return tt(e,n)?+e:e}).sort(yc)),r}),xd=_d,wd=Math.floor,Sd=Math.random;function Ed(e,t){return e+wd(Sd()*(t-e+1))}var kd=parseFloat,Cd=Math.min,Od=Math.random;function Ad(e,t,n){if(n&&"boolean"!=typeof n&&wt(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=U(e),void 0===t?(t=e,e=0):t=U(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Od();return Cd(e+o*(t-e+kd("1e-"+((o+"").length-1))),t)}return Ed(e,t)}var jd=Math.ceil,Ld=Math.max;function Rd(e){return function(t,n,r){return r&&"number"!=typeof r&&wt(t,n,r)&&(n=r=void 0),t=U(t),void 0===n?(n=t,t=0):n=U(n),function(e,t,n,r){for(var o=-1,i=Ld(jd((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a}(t,n,r=void 0===r?t<n?1:-1:U(r),e)}}var Pd=Rd(),Md=Rd(!0),Id=Wn(function(e,t){return ct(e,256,void 0,void 0,void 0,t)}),Nd=Id;function Td(e,t,n,r,o){return o(e,function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)}),n}function Bd(e,t,n){var r=C(e)?kr:Td,o=arguments.length<3;return r(e,Ji(t),n,o,oa)}function $d(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Dd(e,t,n){var r=C(e)?$d:Td,o=arguments.length<3;return r(e,Ji(t),n,o,ns)}function Wd(e,t){return(C(e)?ko:_s)(e,tc(Ji(t)))}function zd(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=Ji(t);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return bd(e,o),n}function Fd(e,t,n){return t=(n?wt(e,t,n):void 0===t)?1:V(t),Lc(jn(e),t)}function Ud(){var e=arguments,t=jn(e[0]);return e.length<3?t:t.replace(e[1],e[2])}function Vd(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");return bt(e,t=void 0===t?t:V(t))}function Hd(e,t,n){var r=-1,o=(t=Ln(t,e)).length;for(o||(o=1,e=void 0);++r<o;){var i=null==e?void 0:e[Rn(t[r])];void 0===i&&(r=o,i=n),e=K(i)?i.call(e):i}return e}var qd=Array.prototype.reverse;function Kd(e){return null==e?e:qd.call(e)}var Jd=uo("round");function Yd(e){var t=e.length;return t?e[Ed(0,t-1)]:void 0}function Gd(e){return Yd(ml(e))}function Zd(e){return(C(e)?Yd:Gd)(e)}function Qd(e,t){var n=-1,r=e.length,o=r-1;for(t=void 0===t?r:t;++n<t;){var i=Ed(n,o),a=e[i];e[i]=e[n],e[n]=a}return e.length=t,e}function Xd(e,t){return Qd(je(e),vo(t,0,e.length))}function ep(e,t){var n=ml(e);return Qd(n,vo(t,0,n.length))}function tp(e,t,n){return t=(n?wt(e,t,n):void 0===t)?1:V(t),(C(e)?Xd:ep)(e,t)}function np(e,t,n){return null==e?e:fc(e,t,n)}function rp(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:fc(e,t,n,r)}function op(e){return Qd(je(e))}function ip(e){return Qd(ml(e))}function ap(e){return(C(e)?op:ip)(e)}function sp(e){if(null==e)return 0;if(xt(e))return gl(e)?Vc(e):e.length;var t=Go(e);return"[object Map]"==t||"[object Set]"==t?e.size:Gt(e).length}function lp(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&wt(e,t,n)?(t=0,n=r):(t=null==t?0:V(t),n=void 0===n?r:V(n)),ir(e,t,n)):[]}var up=ro(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),cp=up;function dp(e,t){var n;return oa(e,function(e,r,o){return!(n=t(e,r,o))}),!!n}function pp(e,t,n){var r=C(e)?Si:dp;return n&&wt(e,t,n)&&(t=void 0),r(e,Ji(t))}var fp=bt(function(e,t){if(null==e)return[];var n=t.length;return n>1&&wt(e,t[0],t[1])?t=[]:n>2&&wt(t[0],t[1],t[2])&&(t=[t[0]]),bc(e,$n(t,1),[])}),hp=fp,gp=Math.floor,vp=Math.min;function mp(e,t,n,r){var o=0,i=null==e?0:e.length;if(0===i)return 0;for(var a=(t=n(t))!=t,s=null===t,l=S(t),u=void 0===t;o<i;){var c=gp((o+i)/2),d=n(e[c]),p=void 0!==d,f=null===d,h=d==d,g=S(d);if(a)var v=r||h;else v=u?h&&(r||p):s?h&&p&&(r||!f):l?h&&p&&!f&&(r||!g):!f&&!g&&(r?d<=t:d<t);v?o=c+1:i=c}return vp(i,4294967294)}function yp(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!S(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return mp(e,t,q,n)}function bp(e,t){return yp(e,t)}function _p(e,t,n){return mp(e,t,Ji(n))}function xp(e,t){var n=null==e?0:e.length;if(n){var r=yp(e,t);if(r<n&&ft(e[r],t))return r}return-1}function wp(e,t){return yp(e,t,!0)}function Sp(e,t,n){return mp(e,t,Ji(n),!0)}function Ep(e,t){if(null==e?0:e.length){var n=yp(e,t,!0)-1;if(ft(e[n],t))return n}return-1}function kp(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!ft(s,l)){var l=s;i[o++]=0===a?0:a}}return i}function Cp(e){return e&&e.length?kp(e):[]}function Op(e,t){return e&&e.length?kp(e,Ji(t)):[]}function Ap(e,t,n){return n&&"number"!=typeof n&&wt(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=jn(e))&&("string"==typeof t||null!=t&&!pu(t))&&!(t=j(t))&&lr(e)?ar(xr(e),0,n):e.split(t,n):[]}var jp=Math.max;function Lp(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");return t=null==t?0:jp(V(t),0),bt(function(n){var r=n[t],o=ar(n,0,t);return r&&Nn(o,r),ge(e,this,o)})}var Rp=ro(function(e,t,n){return e+(n?" ":"")+Sr(t)}),Pp=Rp;function Mp(e,t,n){return e=jn(e),n=null==n?0:vo(V(n),0,e.length),t=j(t),e.slice(n,n+t.length)==t}function Ip(){return{}}function Np(){return""}function Tp(){return!0}var Bp=L(function(e,t){return e-t},0);function $p(e){return e&&e.length?zu(e,q):0}function Dp(e,t){return e&&e.length?zu(e,Ji(t)):0}function Wp(e){var t=null==e?0:e.length;return t?ir(e,1,t):[]}function zp(e,t,n){return e&&e.length?ir(e,0,(t=n||void 0===t?1:V(t))<0?0:t):[]}function Fp(e,t,n){var r=null==e?0:e.length;return r?ir(e,(t=r-(t=n||void 0===t?1:V(t)))<0?0:t,r):[]}function Up(e,t){return e&&e.length?Ja(e,Ji(t),!1,!0):[]}function Vp(e,t){return e&&e.length?Ja(e,Ji(t)):[]}function Hp(e,t){return t(e),e}var qp=Object.prototype,Kp=qp.hasOwnProperty;function Jp(e,t,n,r){return void 0===e||ft(e,qp[n])&&!Kp.call(r,n)?t:e}var Yp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function Gp(e){return"\\"+Yp[e]}var Zp=/<%=([\s\S]+?)%>/g,Qp={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:Zp,variable:"",imports:{_:{escape:ds}}},Xp=/\b__p \+= '';/g,ef=/\b(__p \+=) '' \+/g,tf=/(__e\(.*?\)|\b__t\)) \+\n'';/g,nf=/[()=,{}\[\]\/\s]/,rf=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,of=/($^)/,af=/['\n\r\u2028\u2029\\]/g,sf=Object.prototype.hasOwnProperty;function lf(e,t,n){var r=Qp.imports._.templateSettings||Qp;n&&wt(e,t,n)&&(t=void 0),e=jn(e),t=ln({},t,r,Jp);var o,i,a=ln({},t.imports,r.imports,Jp),s=Zt(a),l=vl(a,s),u=0,c=t.interpolate||of,d="__p += '",p=RegExp((t.escape||of).source+"|"+c.source+"|"+(c===Zp?rf:of).source+"|"+(t.evaluate||of).source+"|$","g"),f=sf.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+"\n":"";e.replace(p,function(t,n,r,a,s,l){return r||(r=a),d+=e.slice(u,l).replace(af,Gp),n&&(o=!0,d+="' +\n__e("+n+") +\n'"),s&&(i=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t}),d+="';\n";var h=sf.call(t,"variable")&&t.variable;if(h){if(nf.test(h))throw new Error("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(i?d.replace(Xp,""):d).replace(ef,"$1").replace(tf,"$1;"),d="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=Zn(function(){return Function(s,f+"return "+d).apply(void 0,l)});if(g.source=d,Yn(g))throw g;return g}function uf(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return T(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),va(e,t,{leading:r,maxWait:t,trailing:o})}function cf(e,t){return t(e)}var df=4294967295,pf=Math.min;function ff(e,t){if((e=V(e))<1||e>9007199254740991)return[];var n=df,r=pf(e,df);t=Za(t),e-=df;for(var o=Ct(r,t);++n<e;)t(n);return o}function hf(){return this}function gf(e,t){var n=e;return n instanceof xe&&(n=n.value()),kr(t,function(e,t){return t.func.apply(t.thisArg,Nn([e],t.args))},n)}function vf(){return gf(this.__wrapped__,this.__actions__)}function mf(e){return jn(e).toLowerCase()}function yf(e){return C(e)?k(e,Rn):S(e)?[e]:je(An(jn(e)))}var bf=9007199254740991;function _f(e){return e?vo(V(e),-9007199254740991,bf):0===e?e:0}function xf(e){return jn(e).toUpperCase()}function wf(e,t,n){var r=C(e),o=r||Tt(e)||Vt(e);if(t=Ji(t),null==n){var i=e&&e.constructor;n=o?r?new i:[]:T(e)&&K(i)?fe(Fn(e)):{}}return(o?He:na)(e,function(e,r,o){return t(n,e,r,o)}),n}function Sf(e,t){for(var n=e.length;n--&&Je(t,e[n],0)>-1;);return n}function Ef(e,t){for(var n=-1,r=e.length;++n<r&&Je(t,e[n],0)>-1;);return n}function kf(e,t,n){if((e=jn(e))&&(n||void 0===t))return N(e);if(!e||!(t=j(t)))return e;var r=xr(e),o=xr(t);return ar(r,Ef(r,o),Sf(r,o)+1).join("")}function Cf(e,t,n){if((e=jn(e))&&(n||void 0===t))return e.slice(0,M(e)+1);if(!e||!(t=j(t)))return e;var r=xr(e);return ar(r,0,Sf(r,xr(t))+1).join("")}var Of=/^\s+/;function Af(e,t,n){if((e=jn(e))&&(n||void 0===t))return e.replace(Of,"");if(!e||!(t=j(t)))return e;var r=xr(e);return ar(r,Ef(r,xr(t))).join("")}var jf=/\w*$/;function Lf(e,t){var n=30,r="...";if(T(t)){var o="separator"in t?t.separator:o;n="length"in t?V(t.length):n,r="omission"in t?j(t.omission):r}var i=(e=jn(e)).length;if(lr(e)){var a=xr(e);i=a.length}if(n>=i)return e;var s=n-Vc(r);if(s<1)return r;var l=a?ar(a,0,s).join(""):e.slice(0,s);if(void 0===o)return l+r;if(a&&(s+=l.length-s),pu(o)){if(e.slice(s).search(o)){var u,c=l;for(o.global||(o=RegExp(o.source,jn(jf.exec(o))+"g")),o.lastIndex=0;u=o.exec(c);)var d=u.index;l=l.slice(0,void 0===d?s:d)}}else if(e.indexOf(j(o),s)!=s){var p=l.lastIndexOf(o);p>-1&&(l=l.slice(0,p))}return l+r}function Rf(e){return dt(e,1)}var Pf=Cr({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Mf=/&(?:amp|lt|gt|quot|#39);/g,If=RegExp(Mf.source);function Nf(e){return(e=jn(e))&&If.test(e)?e.replace(Mf,Pf):e}var Tf=$o&&1/Oi(new $o([,-0]))[1]==1/0?function(e){return new $o(e)}:we,Bf=Tf;function $f(e,t,n){var r=-1,o=Ye,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=Ta;else if(i>=200){var u=t?null:Bf(e);if(u)return Oi(u);a=!1,o=Ei,l=new wi}else l=t?[]:s;e:for(;++r<i;){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,a&&d==d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(c)}else o(l,d,n)||(l!==s&&l.push(d),s.push(c))}return s}var Df=bt(function(e){return $f($n(e,1,Sa,!0))}),Wf=bt(function(e){var t=Wa(e);return Sa(t)&&(t=void 0),$f($n(e,1,Sa,!0),Ji(t))}),zf=Wf,Ff=bt(function(e){var t=Wa(e);return t="function"==typeof t?t:void 0,$f($n(e,1,Sa,!0),void 0,t)});function Uf(e){return e&&e.length?$f(e):[]}function Vf(e,t){return e&&e.length?$f(e,Ji(t)):[]}function Hf(e,t){return t="function"==typeof t?t:void 0,e&&e.length?$f(e,void 0,t):[]}var qf=0;function Kf(e){var t=++qf;return jn(e)+t}function Jf(e,t){return null==e||uc(e,t)}var Yf=Math.max;function Gf(e){if(!e||!e.length)return[];var t=0;return e=ko(e,function(e){if(Sa(e))return t=Yf(e.length,t),!0}),Ct(t,function(t){return k(e,qi(t))})}function Zf(e,t){if(!e||!e.length)return[];var n=Gf(e);return null==t?n:k(n,function(e){return ge(t,void 0,e)})}function Qf(e,t,n,r){return fc(e,t,n(Pn(e,t)),r)}function Xf(e,t,n){return null==e?e:Qf(e,t,Za(n))}function eh(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:Qf(e,t,Za(n),r)}var th=ro(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),nh=th;function rh(e){return null==e?[]:vl(e,rn(e))}var oh=bt(function(e,t){return Sa(e)?Ba(e,t):[]}),ih=oh;function ah(e,t){return nd(Za(t),e)}var sh=Wn(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return In(t,e)};return!(t>1||this.__actions__.length)&&r instanceof xe&&tt(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:cf,args:[o],thisArg:void 0}),new Ae(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(void 0),e})):this.thru(o)}),lh=sh;function uh(){return po(this)}function ch(){var e=this.__wrapped__;if(e instanceof xe){var t=e;return this.__actions__.length&&(t=new xe(this)),(t=t.reverse()).__actions__.push({func:cf,args:[Kd],thisArg:void 0}),new Ae(t,this.__chain__)}return this.thru(Kd)}function dh(e,t,n){var r=e.length;if(r<2)return r?$f(e[0]):[];for(var o=-1,i=Array(r);++o<r;)for(var a=e[o],s=-1;++s<r;)s!=o&&(i[o]=Ba(i[o]||a,e[s],t,n));return $f($n(i,1),t,n)}var ph=bt(function(e){return dh(ko(e,Sa))}),fh=bt(function(e){var t=Wa(e);return Sa(t)&&(t=void 0),dh(ko(e,Sa),Ji(t))}),hh=fh,gh=bt(function(e){var t=Wa(e);return t="function"==typeof t?t:void 0,dh(ko(e,Sa),void 0,t)}),vh=bt(Gf);function mh(e,t,n){for(var r=-1,o=e.length,i=t.length,a={};++r<o;){var s=r<i?t[r]:void 0;n(a,e[r],s)}return a}function yh(e,t){return mh(e||[],t||[],gt)}function bh(e,t){return mh(e||[],t||[],fc)}var _h=bt(function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Zf(e,n)}),xh=_h,wh={chunk:go,compact:_i,concat:xi,difference:Da,differenceBy:Fa,differenceWith:Va,drop:qa,dropRight:Ka,dropRightWhile:Ya,dropWhile:Ga,fill:bs,findIndex:Es,findLastIndex:Ls,first:Ms,flatten:Dn,flattenDeep:zs,flattenDepth:Fs,fromPairs:Qs,head:Ms,indexOf:xl,initial:wl,intersection:Cl,intersectionBy:Al,intersectionWith:jl,join:_u,last:Wa,lastIndexOf:Ou,nth:ac,pull:gd,pullAll:hd,pullAllBy:vd,pullAllWith:md,pullAt:xd,remove:zd,reverse:Kd,slice:lp,sortedIndex:bp,sortedIndexBy:_p,sortedIndexOf:xp,sortedLastIndex:wp,sortedLastIndexBy:Sp,sortedLastIndexOf:Ep,sortedUniq:Cp,sortedUniqBy:Op,tail:Wp,take:zp,takeRight:Fp,takeRightWhile:Up,takeWhile:Vp,union:Df,unionBy:zf,unionWith:Ff,uniq:Uf,uniqBy:Vf,uniqWith:Hf,unzip:Gf,unzipWith:Zf,without:ih,xor:ph,xorBy:hh,xorWith:gh,zip:vh,zipObject:yh,zipObjectDeep:bh,zipWith:xh},Sh={countBy:ua,each:Qa,eachRight:rs,every:ms,filter:xs,find:ks,findLast:Rs,flatMap:Ts,flatMapDeep:$s,flatMapDepth:Ds,forEach:Qa,forEachRight:rs,groupBy:ol,includes:bl,invokeMap:Ul,keyBy:Eu,map:Ns,orderBy:_c,partition:ad,reduce:Bd,reduceRight:Dd,reject:Wd,sample:Zd,sampleSize:tp,shuffle:ap,size:sp,some:pp,sortBy:hp},Eh={now:fa},kh={after:H,ary:dt,before:Qn,bind:er,bindKey:or,curry:da,curryRight:pa,debounce:va,defer:Ma,delay:Na,flip:Us,memoize:En,negate:tc,once:mc,overArgs:Cc,partial:nd,partialRight:od,rearg:Nd,rest:Vd,spread:Lp,throttle:uf,unary:Rf,wrap:ah},Ch={castArray:ao,clone:gi,cloneDeep:vi,cloneDeepWith:mi,cloneWith:yi,conformsTo:Qi,eq:ft,gt:sl,gte:ll,isArguments:Rt,isArray:C,isArrayBuffer:Hl,isArrayLike:xt,isArrayLikeObject:Sa,isBoolean:ql,isBuffer:Tt,isDate:Jl,isElement:Yl,isEmpty:Zl,isEqual:Ql,isEqualWith:Xl,isError:Yn,isFinite:tu,isFunction:K,isInteger:nu,isLength:_t,isMap:si,isMatch:ru,isMatchWith:ou,isNaN:au,isNative:lu,isNil:uu,isNull:cu,isNumber:iu,isObject:T,isObjectLike:w,isPlainObject:Jn,isRegExp:pu,isSafeInteger:hu,isSet:ui,isString:gl,isSymbol:S,isTypedArray:Vt,isUndefined:gu,isWeakMap:vu,isWeakSet:mu,lt:Pu,lte:Mu,toArray:rc,toFinite:U,toInteger:V,toLength:ys,toNumber:z,toPlainObject:ka,toSafeInteger:_f,toString:jn},Oh={add:R,ceil:co,divide:Ha,floor:Vs,max:Du,maxBy:Wu,mean:Uu,meanBy:Vu,min:Zu,minBy:Qu,multiply:ec,round:Jd,subtract:Bp,sum:$p,sumBy:Dp},Ah=mo,jh=hl,Lh=Ad,Rh={assign:en,assignIn:an,assignInWith:ln,assignWith:cn,at:zn,create:ca,defaults:xa,defaultsDeep:La,entries:as,entriesIn:ss,extend:an,extendWith:ln,findKey:Os,findLastKey:Ps,forIn:Js,forInRight:Ys,forOwn:Gs,forOwnRight:Zs,functions:el,functionsIn:tl,get:Mn,has:dl,hasIn:Vi,invert:Ml,invertBy:$l,invoke:zl,keys:Zt,keysIn:rn,mapKeys:Iu,mapValues:Nu,merge:qu,mergeWith:ja,omit:pc,omitBy:vc,pick:ld,pickBy:gc,result:Hd,set:np,setWith:rp,toPairs:as,toPairsIn:ss,transform:wf,unset:Jf,update:Xf,updateWith:eh,values:ml,valuesIn:rh},Ph={at:lh,chain:po,commit:bi,lodash:Pe,next:oc,plant:ud,reverse:ch,tap:Hp,thru:cf,toIterator:hf,toJSON:vf,value:vf,valueOf:vf,wrapperChain:uh},Mh={camelCase:io,capitalize:Er,deburr:Lr,endsWith:os,escape:ds,escapeRegExp:hs,kebabCase:wu,lowerCase:ju,lowerFirst:Lu,pad:Yc,padEnd:Gc,padStart:Zc,parseInt:ed,repeat:Fd,replace:Ud,snakeCase:cp,split:Ap,startCase:Pp,startsWith:Mp,template:lf,templateSettings:Qp,toLower:mf,toUpper:xf,trim:kf,trimEnd:Cf,trimStart:Af,truncate:Lf,unescape:Nf,upperCase:nh,upperFirst:Sr,words:to},Ih={attempt:Zn,bindAll:nr,cond:Yi,conforms:Zi,constant:We,defaultTo:ma,flow:qs,flowRight:Ks,identity:q,iteratee:yu,matches:Tu,matchesProperty:Bu,method:Ju,methodOf:Gu,mixin:Xu,noop:we,nthArg:sc,over:wc,overEvery:Oc,overSome:Ac,property:Ki,propertyOf:cd,range:Pd,rangeRight:Md,stubArray:Co,stubFalse:Pt,stubObject:Ip,stubString:Np,stubTrue:Tp,times:ff,toPath:yf,uniqueId:Kf};var Nh=Math.max,Th=Math.min;var Bh=Math.min;var $h,Dh=4294967295,Wh=Array.prototype,zh=Object.prototype.hasOwnProperty,Fh=h?h.iterator:void 0,Uh=Math.max,Vh=Math.min,Hh=function(e){return function(t,n,r){if(null==r){var o=T(n),i=o&&Zt(n),a=i&&i.length&&Xs(n,i);(a?a.length:o)||(r=n,n=t,t=this)}return e(t,n,r)}}(Xu);Pe.after=kh.after,Pe.ary=kh.ary,Pe.assign=Rh.assign,Pe.assignIn=Rh.assignIn,Pe.assignInWith=Rh.assignInWith,Pe.assignWith=Rh.assignWith,Pe.at=Rh.at,Pe.before=kh.before,Pe.bind=kh.bind,Pe.bindAll=Ih.bindAll,Pe.bindKey=kh.bindKey,Pe.castArray=Ch.castArray,Pe.chain=Ph.chain,Pe.chunk=wh.chunk,Pe.compact=wh.compact,Pe.concat=wh.concat,Pe.cond=Ih.cond,Pe.conforms=Ih.conforms,Pe.constant=Ih.constant,Pe.countBy=Sh.countBy,Pe.create=Rh.create,Pe.curry=kh.curry,Pe.curryRight=kh.curryRight,Pe.debounce=kh.debounce,Pe.defaults=Rh.defaults,Pe.defaultsDeep=Rh.defaultsDeep,Pe.defer=kh.defer,Pe.delay=kh.delay,Pe.difference=wh.difference,Pe.differenceBy=wh.differenceBy,Pe.differenceWith=wh.differenceWith,Pe.drop=wh.drop,Pe.dropRight=wh.dropRight,Pe.dropRightWhile=wh.dropRightWhile,Pe.dropWhile=wh.dropWhile,Pe.fill=wh.fill,Pe.filter=Sh.filter,Pe.flatMap=Sh.flatMap,Pe.flatMapDeep=Sh.flatMapDeep,Pe.flatMapDepth=Sh.flatMapDepth,Pe.flatten=wh.flatten,Pe.flattenDeep=wh.flattenDeep,Pe.flattenDepth=wh.flattenDepth,Pe.flip=kh.flip,Pe.flow=Ih.flow,Pe.flowRight=Ih.flowRight,Pe.fromPairs=wh.fromPairs,Pe.functions=Rh.functions,Pe.functionsIn=Rh.functionsIn,Pe.groupBy=Sh.groupBy,Pe.initial=wh.initial,Pe.intersection=wh.intersection,Pe.intersectionBy=wh.intersectionBy,Pe.intersectionWith=wh.intersectionWith,Pe.invert=Rh.invert,Pe.invertBy=Rh.invertBy,Pe.invokeMap=Sh.invokeMap,Pe.iteratee=Ih.iteratee,Pe.keyBy=Sh.keyBy,Pe.keys=Zt,Pe.keysIn=Rh.keysIn,Pe.map=Sh.map,Pe.mapKeys=Rh.mapKeys,Pe.mapValues=Rh.mapValues,Pe.matches=Ih.matches,Pe.matchesProperty=Ih.matchesProperty,Pe.memoize=kh.memoize,Pe.merge=Rh.merge,Pe.mergeWith=Rh.mergeWith,Pe.method=Ih.method,Pe.methodOf=Ih.methodOf,Pe.mixin=Hh,Pe.negate=tc,Pe.nthArg=Ih.nthArg,Pe.omit=Rh.omit,Pe.omitBy=Rh.omitBy,Pe.once=kh.once,Pe.orderBy=Sh.orderBy,Pe.over=Ih.over,Pe.overArgs=kh.overArgs,Pe.overEvery=Ih.overEvery,Pe.overSome=Ih.overSome,Pe.partial=kh.partial,Pe.partialRight=kh.partialRight,Pe.partition=Sh.partition,Pe.pick=Rh.pick,Pe.pickBy=Rh.pickBy,Pe.property=Ih.property,Pe.propertyOf=Ih.propertyOf,Pe.pull=wh.pull,Pe.pullAll=wh.pullAll,Pe.pullAllBy=wh.pullAllBy,Pe.pullAllWith=wh.pullAllWith,Pe.pullAt=wh.pullAt,Pe.range=Ih.range,Pe.rangeRight=Ih.rangeRight,Pe.rearg=kh.rearg,Pe.reject=Sh.reject,Pe.remove=wh.remove,Pe.rest=kh.rest,Pe.reverse=wh.reverse,Pe.sampleSize=Sh.sampleSize,Pe.set=Rh.set,Pe.setWith=Rh.setWith,Pe.shuffle=Sh.shuffle,Pe.slice=wh.slice,Pe.sortBy=Sh.sortBy,Pe.sortedUniq=wh.sortedUniq,Pe.sortedUniqBy=wh.sortedUniqBy,Pe.split=Mh.split,Pe.spread=kh.spread,Pe.tail=wh.tail,Pe.take=wh.take,Pe.takeRight=wh.takeRight,Pe.takeRightWhile=wh.takeRightWhile,Pe.takeWhile=wh.takeWhile,Pe.tap=Ph.tap,Pe.throttle=kh.throttle,Pe.thru=cf,Pe.toArray=Ch.toArray,Pe.toPairs=Rh.toPairs,Pe.toPairsIn=Rh.toPairsIn,Pe.toPath=Ih.toPath,Pe.toPlainObject=Ch.toPlainObject,Pe.transform=Rh.transform,Pe.unary=kh.unary,Pe.union=wh.union,Pe.unionBy=wh.unionBy,Pe.unionWith=wh.unionWith,Pe.uniq=wh.uniq,Pe.uniqBy=wh.uniqBy,Pe.uniqWith=wh.uniqWith,Pe.unset=Rh.unset,Pe.unzip=wh.unzip,Pe.unzipWith=wh.unzipWith,Pe.update=Rh.update,Pe.updateWith=Rh.updateWith,Pe.values=Rh.values,Pe.valuesIn=Rh.valuesIn,Pe.without=wh.without,Pe.words=Mh.words,Pe.wrap=kh.wrap,Pe.xor=wh.xor,Pe.xorBy=wh.xorBy,Pe.xorWith=wh.xorWith,Pe.zip=wh.zip,Pe.zipObject=wh.zipObject,Pe.zipObjectDeep=wh.zipObjectDeep,Pe.zipWith=wh.zipWith,Pe.entries=Rh.toPairs,Pe.entriesIn=Rh.toPairsIn,Pe.extend=Rh.assignIn,Pe.extendWith=Rh.assignInWith,Hh(Pe,Pe),Pe.add=Oh.add,Pe.attempt=Ih.attempt,Pe.camelCase=Mh.camelCase,Pe.capitalize=Mh.capitalize,Pe.ceil=Oh.ceil,Pe.clamp=Ah,Pe.clone=Ch.clone,Pe.cloneDeep=Ch.cloneDeep,Pe.cloneDeepWith=Ch.cloneDeepWith,Pe.cloneWith=Ch.cloneWith,Pe.conformsTo=Ch.conformsTo,Pe.deburr=Mh.deburr,Pe.defaultTo=Ih.defaultTo,Pe.divide=Oh.divide,Pe.endsWith=Mh.endsWith,Pe.eq=Ch.eq,Pe.escape=Mh.escape,Pe.escapeRegExp=Mh.escapeRegExp,Pe.every=Sh.every,Pe.find=Sh.find,Pe.findIndex=wh.findIndex,Pe.findKey=Rh.findKey,Pe.findLast=Sh.findLast,Pe.findLastIndex=wh.findLastIndex,Pe.findLastKey=Rh.findLastKey,Pe.floor=Oh.floor,Pe.forEach=Sh.forEach,Pe.forEachRight=Sh.forEachRight,Pe.forIn=Rh.forIn,Pe.forInRight=Rh.forInRight,Pe.forOwn=Rh.forOwn,Pe.forOwnRight=Rh.forOwnRight,Pe.get=Rh.get,Pe.gt=Ch.gt,Pe.gte=Ch.gte,Pe.has=Rh.has,Pe.hasIn=Rh.hasIn,Pe.head=wh.head,Pe.identity=q,Pe.includes=Sh.includes,Pe.indexOf=wh.indexOf,Pe.inRange=jh,Pe.invoke=Rh.invoke,Pe.isArguments=Ch.isArguments,Pe.isArray=C,Pe.isArrayBuffer=Ch.isArrayBuffer,Pe.isArrayLike=Ch.isArrayLike,Pe.isArrayLikeObject=Ch.isArrayLikeObject,Pe.isBoolean=Ch.isBoolean,Pe.isBuffer=Ch.isBuffer,Pe.isDate=Ch.isDate,Pe.isElement=Ch.isElement,Pe.isEmpty=Ch.isEmpty,Pe.isEqual=Ch.isEqual,Pe.isEqualWith=Ch.isEqualWith,Pe.isError=Ch.isError,Pe.isFinite=Ch.isFinite,Pe.isFunction=Ch.isFunction,Pe.isInteger=Ch.isInteger,Pe.isLength=Ch.isLength,Pe.isMap=Ch.isMap,Pe.isMatch=Ch.isMatch,Pe.isMatchWith=Ch.isMatchWith,Pe.isNaN=Ch.isNaN,Pe.isNative=Ch.isNative,Pe.isNil=Ch.isNil,Pe.isNull=Ch.isNull,Pe.isNumber=Ch.isNumber,Pe.isObject=T,Pe.isObjectLike=Ch.isObjectLike,Pe.isPlainObject=Ch.isPlainObject,Pe.isRegExp=Ch.isRegExp,Pe.isSafeInteger=Ch.isSafeInteger,Pe.isSet=Ch.isSet,Pe.isString=Ch.isString,Pe.isSymbol=Ch.isSymbol,Pe.isTypedArray=Ch.isTypedArray,Pe.isUndefined=Ch.isUndefined,Pe.isWeakMap=Ch.isWeakMap,Pe.isWeakSet=Ch.isWeakSet,Pe.join=wh.join,Pe.kebabCase=Mh.kebabCase,Pe.last=Wa,Pe.lastIndexOf=wh.lastIndexOf,Pe.lowerCase=Mh.lowerCase,Pe.lowerFirst=Mh.lowerFirst,Pe.lt=Ch.lt,Pe.lte=Ch.lte,Pe.max=Oh.max,Pe.maxBy=Oh.maxBy,Pe.mean=Oh.mean,Pe.meanBy=Oh.meanBy,Pe.min=Oh.min,Pe.minBy=Oh.minBy,Pe.stubArray=Ih.stubArray,Pe.stubFalse=Ih.stubFalse,Pe.stubObject=Ih.stubObject,Pe.stubString=Ih.stubString,Pe.stubTrue=Ih.stubTrue,Pe.multiply=Oh.multiply,Pe.nth=wh.nth,Pe.noop=Ih.noop,Pe.now=Eh.now,Pe.pad=Mh.pad,Pe.padEnd=Mh.padEnd,Pe.padStart=Mh.padStart,Pe.parseInt=Mh.parseInt,Pe.random=Lh,Pe.reduce=Sh.reduce,Pe.reduceRight=Sh.reduceRight,Pe.repeat=Mh.repeat,Pe.replace=Mh.replace,Pe.result=Rh.result,Pe.round=Oh.round,Pe.sample=Sh.sample,Pe.size=Sh.size,Pe.snakeCase=Mh.snakeCase,Pe.some=Sh.some,Pe.sortedIndex=wh.sortedIndex,Pe.sortedIndexBy=wh.sortedIndexBy,Pe.sortedIndexOf=wh.sortedIndexOf,Pe.sortedLastIndex=wh.sortedLastIndex,Pe.sortedLastIndexBy=wh.sortedLastIndexBy,Pe.sortedLastIndexOf=wh.sortedLastIndexOf,Pe.startCase=Mh.startCase,Pe.startsWith=Mh.startsWith,Pe.subtract=Oh.subtract,Pe.sum=Oh.sum,Pe.sumBy=Oh.sumBy,Pe.template=Mh.template,Pe.times=Ih.times,Pe.toFinite=Ch.toFinite,Pe.toInteger=V,Pe.toLength=Ch.toLength,Pe.toLower=Mh.toLower,Pe.toNumber=Ch.toNumber,Pe.toSafeInteger=Ch.toSafeInteger,Pe.toString=Ch.toString,Pe.toUpper=Mh.toUpper,Pe.trim=Mh.trim,Pe.trimEnd=Mh.trimEnd,Pe.trimStart=Mh.trimStart,Pe.truncate=Mh.truncate,Pe.unescape=Mh.unescape,Pe.uniqueId=Ih.uniqueId,Pe.upperCase=Mh.upperCase,Pe.upperFirst=Mh.upperFirst,Pe.each=Sh.forEach,Pe.eachRight=Sh.forEachRight,Pe.first=wh.head,Hh(Pe,($h={},na(Pe,function(e,t){zh.call(Pe.prototype,t)||($h[t]=e)}),$h),{chain:!1}),Pe.VERSION="4.17.23",(Pe.templateSettings=Mh.templateSettings).imports._=Pe,He(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Pe[e].placeholder=Pe}),He(["drop","take"],function(e,t){xe.prototype[e]=function(n){n=void 0===n?1:Uh(V(n),0);var r=this.__filtered__&&!t?new xe(this):this.clone();return r.__filtered__?r.__takeCount__=Vh(n,r.__takeCount__):r.__views__.push({size:Vh(n,Dh),type:e+(r.__dir__<0?"Right":"")}),r},xe.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),He(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;xe.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ji(e),type:n}),t.__filtered__=t.__filtered__||r,t}}),He(["head","last"],function(e,t){var n="take"+(t?"Right":"");xe.prototype[e]=function(){return this[n](1).value()[0]}}),He(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");xe.prototype[e]=function(){return this.__filtered__?new xe(this):this[n](1)}}),xe.prototype.compact=function(){return this.filter(q)},xe.prototype.find=function(e){return this.filter(e).head()},xe.prototype.findLast=function(e){return this.reverse().find(e)},xe.prototype.invokeMap=bt(function(e,t){return"function"==typeof e?new xe(this):this.map(function(n){return Wl(n,e,t)})}),xe.prototype.reject=function(e){return this.filter(tc(Ji(e)))},xe.prototype.slice=function(e,t){e=V(e);var n=this;return n.__filtered__&&(e>0||t<0)?new xe(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=V(t))<0?n.dropRight(-t):n.take(t-e)),n)},xe.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},xe.prototype.toArray=function(){return this.take(Dh)},na(xe.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Pe[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(Pe.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,s=t instanceof xe,l=a[0],u=s||C(t),c=function(e){var t=o.apply(Pe,Nn([e],a));return r&&d?t[0]:t};u&&n&&"function"==typeof l&&1!=l.length&&(s=u=!1);var d=this.__chain__,p=!!this.__actions__.length,f=i&&!d,h=s&&!p;if(!i&&u){t=h?t:new xe(this);var g=e.apply(t,a);return g.__actions__.push({func:cf,args:[c],thisArg:void 0}),new Ae(g,d)}return f&&h?e.apply(this,a):(g=this.thru(c),f?r?g.value()[0]:g.value():g)})}),He(["pop","push","shift","sort","splice","unshift"],function(e){var t=Wh[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Pe.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(C(o)?o:[],e)}return this[n](function(n){return t.apply(C(n)?n:[],e)})}}),na(xe.prototype,function(e,t){var n=Pe[t];if(n){var r=n.name+"";zh.call(ke,r)||(ke[r]=[]),ke[r].push({name:t,func:n})}}),ke[it(void 0,2).name]=[{name:"wrapper",func:void 0}],xe.prototype.clone=function(){var e=new xe(this.__wrapped__);return e.__actions__=je(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=je(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=je(this.__views__),e},xe.prototype.reverse=function(){if(this.__filtered__){var e=new xe(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},xe.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=C(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Th(t,e+a);break;case"takeRight":e=Nh(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,l=s-a,u=r?s:a-1,c=this.__iteratees__,d=c.length,p=0,f=Bh(l,this.__takeCount__);if(!n||!r&&o==l&&f==l)return gf(e,this.__actions__);var h=[];e:for(;l--&&p<f;){for(var g=-1,v=e[u+=t];++g<d;){var m=c[g],y=m.iteratee,b=m.type,_=y(v);if(2==b)v=_;else if(!_){if(1==b)continue e;break e}}h[p++]=v}return h},Pe.prototype.at=Ph.at,Pe.prototype.chain=Ph.wrapperChain,Pe.prototype.commit=Ph.commit,Pe.prototype.next=Ph.next,Pe.prototype.plant=Ph.plant,Pe.prototype.reverse=Ph.reverse,Pe.prototype.toJSON=Pe.prototype.valueOf=Pe.prototype.value=Ph.value,Pe.prototype.first=Pe.prototype.head,Fh&&(Pe.prototype[Fh]=Ph.toIterator);var qh=Object.freeze({__proto__:null,add:R,after:H,ary:dt,assign:en,assignIn:an,assignInWith:ln,assignWith:cn,at:zn,attempt:Zn,before:Qn,bind:er,bindAll:nr,bindKey:or,camelCase:io,capitalize:Er,castArray:ao,ceil:co,chain:po,chunk:go,clamp:mo,clone:gi,cloneDeep:vi,cloneDeepWith:mi,cloneWith:yi,commit:bi,compact:_i,concat:xi,cond:Yi,conforms:Zi,conformsTo:Qi,constant:We,countBy:ua,create:ca,curry:da,curryRight:pa,debounce:va,deburr:Lr,defaultTo:ma,defaults:xa,defaultsDeep:La,defer:Ma,delay:Na,difference:Da,differenceBy:Fa,differenceWith:Va,divide:Ha,drop:qa,dropRight:Ka,dropRightWhile:Ya,dropWhile:Ga,each:Qa,eachRight:rs,endsWith:os,entries:as,entriesIn:ss,eq:ft,escape:ds,escapeRegExp:hs,every:ms,extend:an,extendWith:ln,fill:bs,filter:xs,find:ks,findIndex:Es,findKey:Os,findLast:Rs,findLastIndex:Ls,findLastKey:Ps,first:Ms,flatMap:Ts,flatMapDeep:$s,flatMapDepth:Ds,flatten:Dn,flattenDeep:zs,flattenDepth:Fs,flip:Us,floor:Vs,flow:qs,flowRight:Ks,forEach:Qa,forEachRight:rs,forIn:Js,forInRight:Ys,forOwn:Gs,forOwnRight:Zs,fromPairs:Qs,functions:el,functionsIn:tl,get:Mn,groupBy:ol,gt:sl,gte:ll,has:dl,hasIn:Vi,head:Ms,identity:q,inRange:hl,includes:bl,indexOf:xl,initial:wl,intersection:Cl,intersectionBy:Al,intersectionWith:jl,invert:Ml,invertBy:$l,invoke:zl,invokeMap:Ul,isArguments:Rt,isArray:C,isArrayBuffer:Hl,isArrayLike:xt,isArrayLikeObject:Sa,isBoolean:ql,isBuffer:Tt,isDate:Jl,isElement:Yl,isEmpty:Zl,isEqual:Ql,isEqualWith:Xl,isError:Yn,isFinite:tu,isFunction:K,isInteger:nu,isLength:_t,isMap:si,isMatch:ru,isMatchWith:ou,isNaN:au,isNative:lu,isNil:uu,isNull:cu,isNumber:iu,isObject:T,isObjectLike:w,isPlainObject:Jn,isRegExp:pu,isSafeInteger:hu,isSet:ui,isString:gl,isSymbol:S,isTypedArray:Vt,isUndefined:gu,isWeakMap:vu,isWeakSet:mu,iteratee:yu,join:_u,kebabCase:wu,keyBy:Eu,keys:Zt,keysIn:rn,last:Wa,lastIndexOf:Ou,lodash:Pe,lowerCase:ju,lowerFirst:Lu,lt:Pu,lte:Mu,map:Ns,mapKeys:Iu,mapValues:Nu,matches:Tu,matchesProperty:Bu,max:Du,maxBy:Wu,mean:Uu,meanBy:Vu,memoize:En,merge:qu,mergeWith:ja,method:Ju,methodOf:Gu,min:Zu,minBy:Qu,mixin:Xu,multiply:ec,negate:tc,next:oc,noop:we,now:fa,nth:ac,nthArg:sc,omit:pc,omitBy:vc,once:mc,orderBy:_c,over:wc,overArgs:Cc,overEvery:Oc,overSome:Ac,pad:Yc,padEnd:Gc,padStart:Zc,parseInt:ed,partial:nd,partialRight:od,partition:ad,pick:ld,pickBy:gc,plant:ud,property:Ki,propertyOf:cd,pull:gd,pullAll:hd,pullAllBy:vd,pullAllWith:md,pullAt:xd,random:Ad,range:Pd,rangeRight:Md,rearg:Nd,reduce:Bd,reduceRight:Dd,reject:Wd,remove:zd,repeat:Fd,replace:Ud,rest:Vd,result:Hd,reverse:Kd,round:Jd,sample:Zd,sampleSize:tp,set:np,setWith:rp,shuffle:ap,size:sp,slice:lp,snakeCase:cp,some:pp,sortBy:hp,sortedIndex:bp,sortedIndexBy:_p,sortedIndexOf:xp,sortedLastIndex:wp,sortedLastIndexBy:Sp,sortedLastIndexOf:Ep,sortedUniq:Cp,sortedUniqBy:Op,split:Ap,spread:Lp,startCase:Pp,startsWith:Mp,stubArray:Co,stubFalse:Pt,stubObject:Ip,stubString:Np,stubTrue:Tp,subtract:Bp,sum:$p,sumBy:Dp,tail:Wp,take:zp,takeRight:Fp,takeRightWhile:Up,takeWhile:Vp,tap:Hp,template:lf,templateSettings:Qp,throttle:uf,thru:cf,times:ff,toArray:rc,toFinite:U,toInteger:V,toIterator:hf,toJSON:vf,toLength:ys,toLower:mf,toNumber:z,toPairs:as,toPairsIn:ss,toPath:yf,toPlainObject:ka,toSafeInteger:_f,toString:jn,toUpper:xf,transform:wf,trim:kf,trimEnd:Cf,trimStart:Af,truncate:Lf,unary:Rf,unescape:Nf,union:Df,unionBy:zf,unionWith:Ff,uniq:Uf,uniqBy:Vf,uniqWith:Hf,uniqueId:Kf,unset:Jf,unzip:Gf,unzipWith:Zf,update:Xf,updateWith:eh,upperCase:nh,upperFirst:Sr,value:vf,valueOf:vf,values:ml,valuesIn:rh,without:ih,words:to,wrap:ah,wrapperAt:lh,wrapperChain:uh,wrapperCommit:bi,wrapperLodash:Pe,wrapperNext:oc,wrapperPlant:ud,wrapperReverse:ch,wrapperToIterator:hf,wrapperValue:vf,xor:ph,xorBy:hh,xorWith:gh,zip:vh,zipObject:yh,zipObjectDeep:bh,zipWith:xh,default:Pe});function Kh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Jh(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t}var Yh={},Gh={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(Gh),Kh(Gh.exports);var Zh={exports:{}},Qh={exports:{}},Xh={exports:{}};!function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Xh),Kh(Xh.exports);var eg={exports:{}};!function(e){var t=Xh.exports.default;e.exports=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(eg),Kh(eg.exports),function(e){var t=Xh.exports.default,n=eg.exports;e.exports=function(e){var r=n(e,"string");return"symbol"==t(r)?r:r+""},e.exports.__esModule=!0,e.exports.default=e.exports}(Qh),Kh(Qh.exports),function(e){var t=Qh.exports;e.exports=function(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}(Zh),Kh(Zh.exports);var tg={},ng={exports:{}};!function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ng),Kh(ng.exports);var rg={};function og(e,t){return null!=e?e:t()}function ig(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=i(n)):"call"!==o&&"optionalCall"!==o||(n=i((...e)=>n.call(t,...e)),t=void 0)}return n}const ag=e=>"string"==typeof e,sg=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},lg=e=>null==e?"":""+e,ug=/###/g,cg=e=>e&&e.indexOf("###")>-1?e.replace(ug,"."):e,dg=e=>!e||ag(e),pg=(e,t,n)=>{const r=ag(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(dg(e))return{};const t=cg(r[o]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return dg(e)?{}:{obj:e,k:cg(r[o])}},fg=(e,t,n)=>{const{obj:r,k:o}=pg(e,t,Object);if(void 0!==r||1===t.length)return void(r[o]=n);let i=t[t.length-1],a=t.slice(0,t.length-1),s=pg(e,a,Object);for(;void 0===s.obj&&a.length;)i=`${a[a.length-1]}.${i}`,a=a.slice(0,a.length-1),s=pg(e,a,Object),ig([s,"optionalAccess",e=>e.obj])&&void 0!==s.obj[`${s.k}.${i}`]&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=n},hg=(e,t)=>{const{obj:n,k:r}=pg(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},gg=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?ag(e[r])||e[r]instanceof String||ag(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):gg(e[r],t[r],n):e[r]=t[r]);return e},vg=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var mg={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const yg=e=>ag(e)?e.replace(/[&<>"'\/]/g,e=>mg[e]):e;const bg=[" ",",","?","!",";"],_g=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),xg=(e,t,n=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}const r=t.split(n);let o=e;for(let e=0;e<r.length;){if(!o||"object"!=typeof o)return;let t,i="";for(let a=e;a<r.length;++a)if(a!==e&&(i+=n),i+=r[a],t=o[i],void 0!==t){if(["string","number","boolean"].indexOf(typeof t)>-1&&a<r.length-1)continue;e+=a-e+1;break}o=t}return o},wg=e=>ig([e,"optionalAccess",e=>e.replace,"call",e=>e("_","-")]),Sg={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){ig([console,"optionalAccess",t=>t[e],"optionalAccess",e=>e.apply,"optionalCall",e=>e(console,t)])}};class Eg{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||Sg,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:(ag(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Eg(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new Eg(this.logger,e)}}var kg=new Eg;class Cg{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e,...t){if(this.observers[e]){Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)})}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach(([n,r])=>{for(let o=0;o<r;o++)n.apply(n,[e,...t])})}}}class Og extends Cg{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){const o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],n&&(Array.isArray(n)?a.push(...n):ag(n)&&o?a.push(...n.split(o)):a.push(n)));const s=hg(this.data,a);return!s&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),!s&&i&&ag(n)?xg(ig([this,"access",e=>e.data,"optionalAccess",t=>t[e],"optionalAccess",e=>e[t]]),n,o):s}addResource(e,t,n,r,o={silent:!1}){const i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),fg(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(const r in n)(ag(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,o,i={silent:!1,skipCopy:!1}){let a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let s=hg(this.data,a)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?gg(s,n,o):s={...s,...n},fg(this.data,a,s),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var Ag={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(e=>{t=og(ig([this,"access",e=>e.processors,"access",t=>t[e],"optionalAccess",e=>e.process,"call",e=>e(t,n,r,o)]),()=>t)}),t}};const jg=Symbol("i18next/PATH_KEY");function Lg(e,t){const{[jg]:n}=e(function(){const e=[],t=Object.create(null);let n;return t.get=(r,o)=>(ig([n,"optionalAccess",e=>e.revoke,"optionalCall",e=>e()]),o===jg?e:(e.push(o),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}());return n.join(og(ig([t,"optionalAccess",e=>e.keySeparator]),()=>"."))}const Rg={},Pg=e=>!ag(e)&&"boolean"!=typeof e&&"number"!=typeof e;class Mg extends Cg{constructor(e,t={}){var n,r;super(),n=e,r=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach(e=>{n[e]&&(r[e]=n[e])}),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=kg.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){const n={...t};if(null==e)return!1;const r=this.resolve(e,n);if(void 0===ig([r,"optionalAccess",e=>e.res]))return!1;const o=Pg(r.res);return!1!==n.returnObjects||!o}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const i=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,n)=>{t=t||"",n=n||"";const r=bg.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(0===r.length)return!0;const o=_g.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`);let i=!o.test(e);if(!i){const t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i})(e,n,r));if(i&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:ag(o)?[o]:o};const i=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(r)}return{key:e,namespaces:ag(o)?[o]:o}}translate(e,t,n){let r="object"==typeof t?{...t}:t;if("object"!=typeof r&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof r&&(r={...r}),r||(r={}),null==e)return"";"function"==typeof e&&(e=Lg(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]);const o=void 0!==r.returnDetails?r.returnDetails:this.options.returnDetails,i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(e[e.length-1],r),l=s[s.length-1];let u=void 0!==r.nsSeparator?r.nsSeparator:this.options.nsSeparator;void 0===u&&(u=":");const c=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===ig([c,"optionalAccess",e=>e.toLowerCase,"call",e=>e()]))return d?o?{res:`${l}${u}${a}`,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:`${l}${u}${a}`:o?{res:a,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:a;const p=this.resolve(e,r);let f=ig([p,"optionalAccess",e=>e.res]);const h=ig([p,"optionalAccess",e=>e.usedKey])||a,g=ig([p,"optionalAccess",e=>e.exactUsedKey])||a,v=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject,y=void 0!==r.count&&!ag(r.count),b=Mg.hasDefaultValue(r),_=y?this.pluralResolver.getSuffix(c,r.count,r):"",x=r.ordinal&&y?this.pluralResolver.getSuffix(c,r.count,{ordinal:!1}):"",w=y&&!r.ordinal&&0===r.count,S=w&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${_}`]||r[`defaultValue${x}`]||r.defaultValue;let E=f;m&&!f&&b&&(E=S);const k=Pg(E),C=Object.prototype.toString.apply(E);if(!(m&&E&&k&&["[object Number]","[object Function]","[object RegExp]"].indexOf(C)<0)||ag(v)&&Array.isArray(E))if(m&&ag(v)&&Array.isArray(f))f=f.join(v),f&&(f=this.extendTranslation(f,e,r,n));else{let t=!1,o=!1;!this.isValidLookup(f)&&b&&(t=!0,f=S),this.isValidLookup(f)||(o=!0,f=a);const s=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&o?void 0:f,d=b&&S!==f&&this.options.updateMissing;if(o||t||d){if(this.logger.log(d?"updateKey":"missingKey",c,l,a,d?S:f),i){const e=this.resolve(a,{...r,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(r.lng||this.language):e.push(r.lng||this.language);const n=(e,t,n)=>{const o=b&&n!==f?n:s;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,o,d,r):ig([this,"access",e=>e.backendConnector,"optionalAccess",e=>e.saveMissing])&&this.backendConnector.saveMissing(e,l,t,o,d,r),this.emit("missingKey",e,l,t,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&y?e.forEach(e=>{const t=this.pluralResolver.getSuffixes(e,r);w&&r[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],a+t,r[`defaultValue${t}`]||S)})}):n(e,a,S))}f=this.extendTranslation(f,e,r,p,n),o&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${l}${u}${a}`),(o||t)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${a}`:a,t?f:void 0,r))}else{if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...r,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return o?(p.res=e,p.usedParams=this.getUsedParamsDetails(r),p):e}if(i){const e=Array.isArray(E),t=e?[]:{},n=e?g:h;for(const e in E)if(Object.prototype.hasOwnProperty.call(E,e)){const o=`${n}${i}${e}`;t[e]=b&&!f?this.translate(o,{...r,defaultValue:Pg(S)?S[e]:void 0,joinArrays:!1,ns:s}):this.translate(o,{...r,joinArrays:!1,ns:s}),t[e]===o&&(t[e]=E[e])}f=t}}return o?(p.res=f,p.usedParams=this.getUsedParamsDetails(r),p):f}extendTranslation(e,t,n,r,o){if(ig([this,"access",e=>e.i18nFormat,"optionalAccess",e=>e.parse]))e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const i=ag(e)&&(void 0!==ig([n,"optionalAccess",e=>e.interpolation,"optionalAccess",e=>e.skipOnVariables])?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let a;if(i){const t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let s=n.replace&&!ag(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),i){const t=e.match(this.interpolator.nestingRegexp);a<(t&&t.length)&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(...e)=>ig([o,"optionalAccess",e=>e[0]])!==e[0]||n.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),n)),n.interpolation&&this.interpolator.reset()}const i=n.postProcess||this.options.postProcess,a=ag(i)?[i]:i;return null!=e&&ig([a,"optionalAccess",e=>e.length])&&!1!==n.applyPostProcessor&&(e=Ag.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,o,i,a;return ag(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(n))return;const s=this.extractFromKey(e,t),l=s.key;r=l;let u=s.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const c=void 0!==t.count&&!ag(t.count),d=c&&!t.ordinal&&0===t.count,p=void 0!==t.context&&(ag(t.context)||"number"==typeof t.context)&&""!==t.context,f=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);u.forEach(e=>{this.isValidLookup(n)||(a=e,Rg[`${f[0]}-${e}`]||!ig([this,"access",e=>e.utils,"optionalAccess",e=>e.hasLoadedNamespace])||ig([this,"access",e=>e.utils,"optionalAccess",e=>e.hasLoadedNamespace,"call",e=>e(a)])||(Rg[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${f.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(r=>{if(this.isValidLookup(n))return;i=r;const a=[l];if(ig([this,"access",e=>e.i18nFormat,"optionalAccess",e=>e.addLookupKeys]))this.i18nFormat.addLookupKeys(a,l,r,e,t);else{let e;c&&(e=this.pluralResolver.getSuffix(r,t.count,t));const n=`${this.options.pluralSeparator}zero`,o=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(t.ordinal&&0===e.indexOf(o)&&a.push(l+e.replace(o,this.options.pluralSeparator)),a.push(l+e),d&&a.push(l+n)),p){const r=`${l}${this.options.contextSeparator||"_"}${t.context}`;a.push(r),c&&(t.ordinal&&0===e.indexOf(o)&&a.push(r+e.replace(o,this.options.pluralSeparator)),a.push(r+e),d&&a.push(r+n))}}let s;for(;s=a.pop();)this.isValidLookup(n)||(o=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:o,usedLng:i,usedNS:a}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n,r={}){return ig([this,"access",e=>e.i18nFormat,"optionalAccess",e=>e.getResource])?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!ag(e.replace);let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}class Ig{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=kg.create("languageUtils")}getScriptPartFromCode(e){if(!(e=wg(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=wg(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(ag(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;const r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?e:e.indexOf("-")<0&&r.indexOf("-")<0?void 0:e.indexOf("-")>0&&r.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===r||0===e.indexOf(r)&&r.length>1?e:void 0)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),ag(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),r=[],o=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return ag(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):ag(e)&&o(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&o(this.formatLanguageCode(e))}),r}}const Ng={zero:0,one:1,two:2,few:3,many:4,other:5},Tg={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Bg{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=kg.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const n=wg("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:n,type:r});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let i;try{i=new Intl.PluralRules(n,{type:r})}catch(n){if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Tg;if(!e.match(/-|_/))return Tg;const r=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(r,t)}return this.pluralRulesCache[o]=i,i}needsPlural(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),ig([n,"optionalAccess",e=>e.resolvedOptions,"call",e=>e(),"access",e=>e.pluralCategories,"access",e=>e.length])>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?n.resolvedOptions().pluralCategories.sort((e,t)=>Ng[e]-Ng[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,n={}){const r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}const $g=(e,t,n,r=".",o=!0)=>{let i=((e,t,n)=>{const r=hg(e,n);return void 0!==r?r:hg(t,n)})(e,t,n);return!i&&o&&ag(n)&&(i=xg(e,n,r),void 0===i&&(i=xg(t,n,r))),i},Dg=e=>e.replace(/\$/g,"$$$$");class Wg{constructor(e={}){this.logger=kg.create("interpolator"),this.options=e,this.format=ig([e,"optionalAccess",e=>e.interpolation,"optionalAccess",e=>e.format])||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:o,prefixEscaped:i,suffix:a,suffixEscaped:s,formatSeparator:l,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:d,nestingPrefixEscaped:p,nestingSuffix:f,nestingSuffixEscaped:h,nestingOptionsSeparator:g,maxReplaces:v,alwaysFormat:m}=e.interpolation;this.escape=void 0!==t?t:yg,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=o?vg(o):i||"{{",this.suffix=a?vg(a):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=d?vg(d):p||vg("$t("),this.nestingSuffix=f?vg(f):h||vg(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=v||1e3,this.alwaysFormat=void 0!==m&&m,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>ig([e,"optionalAccess",e=>e.source])===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let o,i,a;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(e.indexOf(this.formatSeparator)<0){const o=$g(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...r,...t,interpolationkey:e}):o}const o=e.split(this.formatSeparator),i=o.shift().trim(),a=o.join(this.formatSeparator).trim();return this.format($g(t,s,i,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:i})};this.resetRegExp();const u=ig([r,"optionalAccess",e=>e.missingInterpolationHandler])||this.options.missingInterpolationHandler,c=void 0!==ig([r,"optionalAccess",e=>e.interpolation,"optionalAccess",e=>e.skipOnVariables])?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>Dg(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?Dg(this.escape(e)):Dg(e)}].forEach(t=>{for(a=0;o=t.regex.exec(e);){const n=o[1].trim();if(i=l(n),void 0===i)if("function"==typeof u){const t=u(e,o,r);i=ag(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))i="";else{if(c){i=o[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i=""}else ag(i)||this.useRawValueToEscape||(i=lg(i));const s=t.safeValue(i);if(e=e.replace(o[0],s),c?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,o,i;const a=(e,t)=>{const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${n}[ ]*{`));let o=`{${r[1]}`;e=r[0],o=this.interpolate(o,i);const a=o.match(/'/g),s=o.match(/"/g);(og(ig([a,"optionalAccess",e=>e.length]),()=>0)%2==0&&!s||s.length%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i={...t,...i})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${o}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];i={...n},i=i.replace&&!ag(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;const l=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(-1!==l&&(s=r[1].slice(l).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,l)),o=t(a.call(this,r[1].trim(),i),i),o&&r[0]===e&&!ag(o))return o;ag(o)||(o=lg(o)),o||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),o=""),s.length&&(o=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),o.trim())),e=e.replace(r[0],o),this.regexp.lastIndex=0}return e}}const zg=e=>{const t={};return(n,r,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const a=r+JSON.stringify(i);let s=t[a];return s||(s=e(wg(r),o),t[a]=s),s(n)}},Fg=e=>(t,n,r)=>e(wg(n),r)(t);class Ug{constructor(e={}){this.logger=kg.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const n=t.cacheInBuiltFormats?zg:Fg;this.formats={number:n((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:n((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:n((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=zg(t)}format(e,t,n,r={}){const o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(e=>e.indexOf(")")>-1)){const e=o.findIndex(e=>e.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,e)].join(this.formatSeparator)}const i=o.reduce((e,t)=>{const{formatName:o,formatOptions:i}=(e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);"currency"===t&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(e=>{if(e){const[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();n[i]||(n[i]=o),"false"===o&&(n[i]=!1),"true"===o&&(n[i]=!0),isNaN(o)||(n[i]=parseInt(o,10))}})}return{formatName:t,formatOptions:n}})(t);if(this.formats[o]){let t=e;try{const a=ig([r,"optionalAccess",e=>e.formatParams,"optionalAccess",e=>e[r.interpolationkey]])||{},s=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[o](e,s,{...i,...r,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e);return i}}class Vg extends Cg{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=kg.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],ig([this,"access",e=>e.backend,"optionalAccess",e=>e.init,"optionalCall",e=>e(n,r.backend,r)])}queueLoad(e,t,n,r){const o={},i={},a={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{const a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===i[a]&&(i[a]=!0):(this.state[a]=1,r=!1,void 0===i[a]&&(i[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===s[t]&&(s[t]=!0)))}),r||(a[e]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){const r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),!t&&n&&this.store.addResourceBundle(o,i,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const a={};this.queue.forEach(n=>{((e,t,n)=>{const{obj:r,k:o}=pg(e,t,Object);r[o]=r[o]||[],r[o].push(n)})(n.loaded,[o],i),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{a[e]||(a[e]={});const t=n.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,o=this.retryTimeout,i){if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:i});this.readingCalls++;const a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&r<this.maxRetries?setTimeout(()=>{this.read.call(this,e,t,n,r+1,2*o,i)},o):i(a,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(e,t,a);try{const n=s(e,t);n&&"function"==typeof n.then?n.then(e=>a(null,e)).catch(a):a(null,n)}catch(e){a(e)}}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();ag(e)&&(e=this.languageUtils.toResolveHierarchy(e)),ag(t)&&(t=[t]);const o=this.queueLoad(e,t,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=""){const n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,(n,i)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${r}`,i),this.loaded(e,n,i)})}saveMissing(e,t,n,r,o,i={},a=()=>{}){if(!ig([this,"access",e=>e.services,"optionalAccess",e=>e.utils,"optionalAccess",e=>e.hasLoadedNamespace])||ig([this,"access",e=>e.services,"optionalAccess",e=>e.utils,"optionalAccess",e=>e.hasLoadedNamespace,"call",e=>e(t)])){if(null!=n&&""!==n){if(ig([this,"access",e=>e.backend,"optionalAccess",e=>e.create])){const s={...i,isUpdate:o},l=this.backend.create.bind(this.backend);if(l.length<6)try{let o;o=5===l.length?l(e,t,n,r,s):l(e,t,n,r),o&&"function"==typeof o.then?o.then(e=>a(null,e)).catch(a):a(null,o)}catch(e){a(e)}else l(e,t,n,r,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}else this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}}const Hg=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),ag(e[1])&&(t.defaultValue=e[1]),ag(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),qg=e=>(ag(e.ns)&&(e.ns=[e.ns]),ag(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),ag(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),ig([e,"access",e=>e.supportedLngs,"optionalAccess",e=>e.indexOf,"optionalCall",e=>e("cimode")])<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e),Kg=()=>{};class Jg extends Cg{constructor(e={},t){var n;if(super(),this.options=qg(e),this.services={},this.logger=kg,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(ag(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const n=Hg();var r;this.options={...n,...this.options,...qg(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler),!1===this.options.showSupportNotice||(ig([r=this,"optionalAccess",e=>e.modules,"optionalAccess",e=>e.backend,"optionalAccess",e=>e.name,"optionalAccess",e=>e.indexOf,"call",e=>e("Locize")])>0||ig([r,"optionalAccess",e=>e.modules,"optionalAccess",e=>e.backend,"optionalAccess",e=>e.constructor,"optionalAccess",e=>e.name,"optionalAccess",e=>e.indexOf,"call",e=>e("Locize")])>0||ig([r,"optionalAccess",e=>e.options,"optionalAccess",e=>e.backend,"optionalAccess",e=>e.backends])&&r.options.backend.backends.some(e=>ig([e,"optionalAccess",e=>e.name,"access",e=>e.indexOf,"call",e=>e("Locize")])>0||ig([e,"optionalAccess",e=>e.constructor,"optionalAccess",e=>e.name,"access",e=>e.indexOf,"call",e=>e("Locize")])>0))||"undefined"!=typeof console&&void 0!==console.info&&console.info("🌐 i18next is maintained with support from locize.com — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙");const o=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?kg.init(o(this.modules.logger),this.options):kg.init(null,this.options),e=this.modules.formatter?this.modules.formatter:Ug;const t=new Ig(this.options);this.store=new Og(this.options.resources,this.options);const r=this.services;r.logger=kg,r.resourceStore=this.store,r.languageUtils=t,r.pluralResolver=new Bg(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix});this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),!e||this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format||(r.formatter=o(e),r.formatter.init&&r.formatter.init(r,this.options),this.options.interpolation.format=r.formatter.format.bind(r.formatter)),r.interpolator=new Wg(this.options),r.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},r.backendConnector=new Vg(o(this.modules.backend),r.resourceStore,r,this.options),r.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(r.languageDetector=o(this.modules.languageDetector),r.languageDetector.init&&r.languageDetector.init(r,this.options.detection,this.options)),this.modules.i18nFormat&&(r.i18nFormat=o(this.modules.i18nFormat),r.i18nFormat.init&&r.i18nFormat.init(this)),this.translator=new Mg(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=Kg),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});const i=sg(),a=()=>{const e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),i.resolve(n),t(e,n)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=Kg){let n=t;const r=ag(e)?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===ig([r,"optionalAccess",e=>e.toLowerCase,"call",e=>e()])&&(!this.options.preload||0===this.options.preload.length))return n();const e=[],t=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)})};if(r)t(r);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e))}ig([this,"access",e=>e.options,"access",e=>e.preload,"optionalAccess",e=>e.forEach,"optionalCall",e=>e(e=>t(e))]),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){const r=sg();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=Kg),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Ag.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;const n=sg();this.emit("languageChanging",e);const r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(o,i)=>{i?this.isLanguageChangingTo===e&&(r(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(o,(...e)=>this.t(...e))},i=t=>{e||t||!this.services.languageDetector||(t=[]);const n=ag(t)?t:t&&t[0],i=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(ag(t)?[t]:t);i&&(this.language||r(i),this.translator.language||this.translator.changeLanguage(i),ig([this,"access",e=>e.services,"access",e=>e.languageDetector,"optionalAccess",e=>e.cacheUserLanguage,"optionalCall",e=>e(i)])),this.loadResources(i,e=>{o(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),n}getFixedT(e,t,n){const r=(e,t,...o)=>{let i;i="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(o)):{...t},i.lng=i.lng||r.lng,i.lngs=i.lngs||r.lngs,i.ns=i.ns||r.ns,""!==i.keyPrefix&&(i.keyPrefix=i.keyPrefix||n||r.keyPrefix);const a=this.options.keySeparator||".";let s;return i.keyPrefix&&Array.isArray(e)?s=e.map(e=>("function"==typeof e&&(e=Lg(e,{...this.options,...t})),`${i.keyPrefix}${a}${e}`)):("function"==typeof e&&(e=Lg(e,{...this.options,...t})),s=i.keyPrefix?`${i.keyPrefix}${a}${e}`:e),this.t(s,i)};return ag(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return ig([this,"access",e=>e.translator,"optionalAccess",e=>e.translate,"call",t=>t(...e)])}exists(...e){return ig([this,"access",e=>e.translator,"optionalAccess",e=>e.exists,"call",t=>t(...e)])}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const i=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||0===n||2===n};if(t.precheck){const e=t.precheck(this,i);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!i(n,e)||r&&!i(o,e)))}loadNamespaces(e,t){const n=sg();return this.options.ns?(ag(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=sg();ag(e)&&(e=[e]);const r=this.options.preload||[],o=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=r.concat(o),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(ig([this,"access",e=>e.languages,"optionalAccess",e=>e.length])>0?this.languages[0]:this.language)),!e)return"rtl";try{const t=new Intl.Locale(e);if(t&&t.getTextInfo){const e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}const t=ig([this,"access",e=>e.services,"optionalAccess",e=>e.languageUtils])||new Ig(Hg());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){const n=new Jg(e,t);return n.createInstance=Jg.createInstance,n}cloneInstance(e={},t=Kg){const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},o=new Jg(r);void 0===e.debug&&void 0===e.prefix||(o.logger=o.logger.clone(e));if(["store","services","language"].forEach(e=>{o[e]=this[e]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n){const e=Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{});o.store=new Og(e,r),o.services.resourceStore=o.store}if(e.interpolation){const t={...Hg().interpolation,...this.options.interpolation,...e.interpolation},n={...r,interpolation:t};o.services.interpolator=new Wg(n)}return o.translator=new Mg(o.services,r),o.translator.on("*",(e,...t)=>{o.emit(e,...t)}),o.init(r,t),o.translator.options=r,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Yg=Jg.createInstance();Yg.createInstance,Yg.dir,Yg.init,Yg.loadResources,Yg.reloadResources,Yg.use,Yg.changeLanguage,Yg.getFixedT,Yg.t,Yg.exists,Yg.setDefaultNamespace,Yg.hasLoadedNamespace,Yg.loadNamespaces,Yg.loadLanguages;Yg.init({fallbackLng:"en",lng:"en",debug:!0,resources:{en:{translation:{categorize:{limitMaxChoicesPerCategory:"You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.",maxChoicesPerCategoryRestriction:"To change this value to {{maxChoicesPerCategory}}, each category must have {{maxChoicesPerCategory}} or fewer answer choice[s]."},ebsr:{part:"Part {{index}}"},numberLine:{addElementLimit_one:"You can only add {{count}} element",addElementLimit_other:"You can only add {{count}} elements",clearAll:"Clear all"},imageClozeAssociation:{reachedLimit_one:"You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.",reachedLimit_other:"Full"},drawingResponse:{fillColor:"Fill color",outlineColor:"Outline color",noFill:"No fill",lightblue:"Light blue",lightyellow:"Light yellow",red:"Red",orange:"Orange",yellow:"Yellow",violet:"Violet",blue:"Blue",green:"Green",white:"White",black:"Black",onDoubleClick:"Double click to edit this text. Press Enter to submit."},charting:{addCategory:"Add category",actions:"Actions",add:"Add",delete:"Delete",newLabel:"New label",reachedLimit_other:"There can't be more than {{count}} categories.",keyLegend:{incorrectAnswer:"Student incorrect answer",correctAnswer:"Student correct answer",correctKeyAnswer:"Answer key correct"}},graphing:{point:"Point",circle:"Circle",line:"Line",parabola:"Parabola",absolute:"Absolute Value",exponential:"Exponential",polygon:"Polygon",ray:"Ray",segment:"Segment",sine:"Sine",vector:"Vector",label:"Label",redo:"Redo",reset:"Reset"},mathInline:{primaryCorrectWithAlternates:"Note: The answer shown above is the primary correct answer specified by the author for this item, but other answers may also be recognized as correct."},multipleChoice:{minSelections:"Select at least {{minSelections}}.",maxSelections_one:"Only {{maxSelections}} answer is allowed.",maxSelections_other:"Only {{maxSelections}} answers are allowed.",minmaxSelections_equal:"Select {{minSelections}}.",minmaxSelections_range:"Select between {{minSelections}} and {{maxSelections}}."},selectText:{correctAnswerSelected:"Correct",correctAnswerNotSelected:"Correct Answer Not Selected",incorrectSelection:"Incorrect Selection",key:"Key"}},common:{undo:"Undo",clearAll:"Clear all",correct:"Correct",incorrect:"Incorrect",showCorrectAnswer:"Show correct answer",hideCorrectAnswer:"Hide correct answer",commonCorrectAnswerWithAlternates:"Note: The answer shown above is the most common correct answer for this item. One or more additional correct answers are also defined, and will also be recognized as correct.",warning:"Warning",showNote:"Show Note",hideNote:"Hide Note",cancel:"Cancel"}},es:{translation:{categorize:{limitMaxChoicesPerCategory:"Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.",maxChoicesPerCategoryRestriction:"Para cambiar este valor a {{maxChoicesPerCategory}}, cada categoría debe tener {{maxChoicesPerCategory}} o menos opciones de respuesta"},ebsr:{part:"Parte {{index}}"},numberLine:{addElementLimit_one:"Solo puedes agregar {{count}} elemento",addElementLimit_other:"Solo puedes agregar {{count}} elementos",clearAll:"Borrar todo"},imageClozeAssociation:{reachedLimit_one:"Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.",reachedLimit_other:"Lleno"},drawingResponse:{fillColor:"Color de relleno",outlineColor:"Color del contorno",noFill:"Sin relleno",lightblue:"Azul claro",lightyellow:"Amarillo claro",red:"Rojo",orange:"Naranja",yellow:"Amarillo",violet:"Violeta",blue:"Azul",green:"Verde",white:"Blanco",black:"Negro",onDoubleClick:"Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar"},charting:{addCategory:"Añadir categoría",actions:"Acciones",add:"Añadir",delete:"Eliminar",newLabel:"Nueva etiqueta",reachedLimit_other:"No puede haber más de {{count}} categorías.",keyLegend:{incorrectAnswer:"Respuesta incorrecta del estudiante",correctAnswer:"Respuesta correcta del estudiante",correctKeyAnswer:"Clave de respuesta correcta"}},graphing:{point:"Punto",circle:"Circulo",line:"Línea",parabola:"Parábola",absolute:"Valor absoluto",exponential:"Exponencial",polygon:"Polígono",ray:"Semirrecta",segment:"Segmento ",sine:"Seno",vector:"Vector",label:"Etiqueta",redo:"Rehacer",reset:"Reiniciar"},mathInline:{primaryCorrectWithAlternates:"Nota: La respuesta que se muestra arriba es la respuesta correcta principal especificada por el autor para esta pregunta, pero también se pueden reconocer otras respuestas como correctas."},multipleChoice:{minSelections:"Seleccione al menos {{minSelections}}.",maxSelections_one:"Sólo se permite {{maxSelections}} respuesta.",maxSelections_other:"Sólo se permiten {{maxSelections}} respuestas.",minmaxSelections_equal:"Seleccione {{minSelections}}.",minmaxSelections_range:"Seleccione entre {{minSelections}} y {{maxSelections}}."},selectText:{correctAnswerSelected:"Respuesta Correcta",correctAnswerNotSelected:"Respuesta Correcta No Seleccionada",incorrectSelection:"Selección Incorrecta",key:"Clave"}},common:{undo:"Deshacer",clearAll:"Borrar todo",correct:"Correct",incorrect:"Incorrect",showCorrectAnswer:"Mostrar respuesta correcta",hideCorrectAnswer:"Ocultar respuesta correcta",commonCorrectAnswerWithAlternates:"Nota: La respuesta que se muestra arriba es la respuesta correcta más común para esta pregunta. También se definen una o más respuestas correctas adicionales, y también se reconocerán como correctas.",warning:"Advertencia",showNote:"Mostrar Nota",hideNote:"Ocultar Nota",cancel:"Cancelar"}}}});var Gg={translator:{...Yg,t:(e,t)=>{const{lng:n}=t;switch(n){case"en_US":case"en-US":t.lng="en";break;case"es_ES":case"es-ES":case"es_MX":case"es-MX":t.lng="es"}return Yg.t(e,{lng:n,...t})}},languageOptions:[{value:"en_US",label:"English (US)"},{value:"es_ES",label:"Spanish"}]},Zg=Jh(Object.freeze({__proto__:null,default:Gg})),Qg={},Xg={},ev={};function tv(){return tv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tv.apply(null,arguments)}function nv(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function rv(e,t){return rv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rv(e,t)}function ov(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,rv(e,t)}function iv(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var av={disabled:!1};var sv=e.createContext(null),lv=function(e){return e.scrollTop};const uv=e,cv=t;var dv="unmounted",pv="exited",fv="entering",hv="entered",gv="exiting",vv=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=pv,r.appearStatus=fv):o=hv:o=t.unmountOnExit||t.mountOnEnter?dv:pv,r.state={status:o},r.nextCallback=null,r}ov(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===dv?{status:pv}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==fv&&n!==hv&&(t=fv):n!==fv&&n!==hv||(t=gv)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===fv){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:cv.findDOMNode(this);n&&lv(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===pv&&this.setState({status:dv})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[cv.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||av.disabled?this.safeSetState({status:hv},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:fv},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:hv},function(){t.props.onEntered(i,a)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:cv.findDOMNode(this);t&&!av.disabled?(this.props.onExit(r),this.safeSetState({status:gv},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:pv},function(){e.props.onExited(r)})})})):this.safeSetState({status:pv},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:cv.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===dv)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=nv(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return uv.createElement(sv.Provider,{value:null},"function"==typeof n?n(e,r):uv.cloneElement(uv.Children.only(n),r))},t}(uv.Component);function mv(){}vv.contextType=sv,vv.propTypes={},vv.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:mv,onEntering:mv,onEntered:mv,onExit:mv,onExiting:mv,onExited:mv},vv.UNMOUNTED=dv,vv.EXITED=pv,vv.ENTERING=fv,vv.ENTERED=hv,vv.EXITING=gv;var yv=vv;const bv=e;var _v=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r})},xv=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=iv(n.className,r):n.setAttribute("class",iv(n.className&&n.className.baseVal||"",r)));var n,r})},wv=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}ov(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&lv(e),r&&(this.appliedClasses[t][n]=r,_v(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&xv(e,r),o&&xv(e,o),i&&xv(e,i)},n.render=function(){var e=this.props;e.classNames;var t=nv(e,["classNames"]);return bv.createElement(yv,tv({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(bv.Component);wv.defaultProps={classNames:""},wv.propTypes={};var Sv=wv;const{Children:Ev}=e,{cloneElement:kv}=e,{isValidElement:Cv}=e;function Ov(e,t){var n=Object.create(null);return e&&Ev.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&Cv(e)?t(e):e}(e)}),n}function Av(e,t,n){return null!=n[t]?n[t]:e.props[t]}function jv(e,t,n){var r=Ov(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var u=o[l][r];s[o[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(Cv(a)){var s=i in t,l=i in r,u=t[i],c=Cv(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&Cv(u)&&(o[i]=kv(a,{onExited:n.bind(null,a),in:u.props.in,exit:Av(a,"exit",e),enter:Av(a,"enter",e)})):o[i]=kv(a,{in:!1}):o[i]=kv(a,{onExited:n.bind(null,a),in:!0,exit:Av(a,"exit",e),enter:Av(a,"enter",e)})}}),o}const Lv=e;var Rv=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Pv=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}ov(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,Ov(n.children,function(e){return kv(e,{onExited:r.bind(null,e),in:!0,appear:Av(e,"appear",n),enter:Av(e,"enter",n),exit:Av(e,"exit",n)})})):jv(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Ov(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=tv({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=nv(e,["component","childFactory"]),o=this.state.contextValue,i=Rv(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?Lv.createElement(sv.Provider,{value:o},i):Lv.createElement(sv.Provider,{value:o},Lv.createElement(t,r,i))},t}(Lv.Component);Pv.propTypes={},Pv.defaultProps={component:"div",childFactory:function(e){return e}};var Mv=Pv;const Iv=e,Nv=t;var Tv=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}ov(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,o=this.props.children,i=Iv.Children.toArray(o)[t];if(i.props[e]&&(r=i.props)[e].apply(r,n),this.props[e]){var a=i.props.nodeRef?void 0:Nv.findDOMNode(this);this.props[e](a)}},n.render=function(){var e=this.props,t=e.children,n=e.in,r=nv(e,["children","in"]),o=Iv.Children.toArray(t),i=o[0],a=o[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,Iv.createElement(Mv,r,n?Iv.cloneElement(i,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):Iv.cloneElement(a,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(Iv.Component);Tv.propTypes={};var Bv=Tv;const $v=e;var Dv,Wv;var zv="out-in",Fv="in-out",Uv=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},Vv=((Dv={})[zv]=function(e){var t=e.current,n=e.changeState;return $v.cloneElement(t,{in:!1,onExited:Uv(t,"onExited",function(){n(fv,null)})})},Dv[Fv]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,$v.cloneElement(r,{in:!0,onEntered:Uv(r,"onEntered",function(){n(fv)})})]},Dv),Hv=((Wv={})[zv]=function(e){var t=e.children,n=e.changeState;return $v.cloneElement(t,{in:!0,onEntered:Uv(t,"onEntered",function(){n(hv,$v.cloneElement(t,{in:!0}))})})},Wv[Fv]=function(e){var t=e.current,n=e.children,r=e.changeState;return[$v.cloneElement(t,{in:!1,onExited:Uv(t,"onExited",function(){r(hv,$v.cloneElement(n,{in:!0}))})}),$v.cloneElement(n,{in:!0})]},Wv),qv=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={status:hv,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}ov(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===fv&&e.mode===Fv?{status:fv}:!t.current||(n=t.current,r=e.children,n===r||$v.isValidElement(n)&&$v.isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:$v.cloneElement(e.children,{in:!0})}:{status:gv};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,o=this.state,i=o.status,a=o.current,s={children:n,current:a,changeState:this.changeState,status:i};switch(i){case fv:e=Hv[r](s);break;case gv:e=Vv[r](s);break;case hv:e=a}return $v.createElement(sv.Provider,{value:{isMounting:!this.appeared}},e)},t}($v.Component);qv.propTypes={},qv.defaultProps={mode:zv};var Kv=qv,Jv=Jh(Object.freeze({__proto__:null,CSSTransition:Sv,ReplaceTransition:Bv,SwitchTransition:Kv,TransitionGroup:Mv,Transition:yv,config:av}));const Yv=e,Gv=o,{Box:Zv}=n,Qv=r,Xv=i;var em=Gh.exports;Object.defineProperty(ev,"__esModule",{value:!0}),ev.default=void 0;var tm=em(Zh.exports),nm=em(Yv),rm=Jv,om=Gv,im=em(Zv),am=em(Qv),sm=Xv;const lm=(0,om.styled)(im.default)({width:"33px",height:"33px","& svg":{position:"absolute",display:"inline-block",width:"33px",height:"33px",verticalAlign:"middle","& hide":{display:"none"}}}),um=(0,om.styled)("svg")({"& .incorrect-fill":{fill:`var(--feedback-incorrect-bg-color, ${sm.color.incorrect()})`},"& .correct-fill":{fill:`var(--feedback-correct-bg-color, ${sm.color.correct()})`}}),cm=(0,om.styled)("div")({position:"relative","&.feedback-tick-enter":{opacity:"0",left:"-50px"},"&.feedback-tick-enter-active":{opacity:"1",left:"0px",transition:"left 500ms ease-in 200ms, opacity 500ms linear 200ms"},"&.feedback-tick-exit":{opacity:"1",left:"0px"},"&.feedback-tick-exit-active":{opacity:"0",left:"-50px",transition:"left 300ms ease-in, opacity 300ms"}});class dm extends nm.default.Component{constructor(e){super(e),(0,tm.default)(this,"getIncorrectIcon",()=>nm.default.createElement(um,{key:"1",preserveAspectRatio:"xMinYMin meet",x:"0px",y:"0px",viewBox:"0 0 44 40",style:{enableBackground:"new 0 0 44 40"}},nm.default.createElement("g",null,nm.default.createElement("rect",{x:"11",y:"17.3",transform:"matrix(0.7071 -0.7071 0.7071 0.7071 -7.852 19.2507)",className:"incorrect-fill",width:"16.6",height:"3.7"}),nm.default.createElement("rect",{x:"17.4",y:"10.7",transform:"matrix(0.7071 -0.7071 0.7071 0.7071 -7.8175 19.209)",className:"incorrect-fill",width:"3.7",height:"16.6"})))),(0,tm.default)(this,"getCorrectIcon",()=>nm.default.createElement(um,{key:"2",preserveAspectRatio:"xMinYMin meet",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 44 40",style:{enableBackground:"new 0 0 44 40"}},nm.default.createElement("polygon",{className:"correct-fill",points:"19.1,28.6 11.8,22.3 14.4,19.2 17.9,22.1 23.9,11.4 27.5,13.4"}))),this.nodeRef=nm.default.createRef()}render(){const{correctness:e}=this.props,t=(()=>"incorrect"===e?this.getIncorrectIcon():"correct"===e?this.getCorrectIcon():null)();return nm.default.createElement(lm,null,nm.default.createElement(rm.TransitionGroup,null,e&&nm.default.createElement(rm.CSSTransition,{nodeRef:this.nodeRef,classNames:{enter:"feedback-tick-enter",enterActive:"feedback-tick-enter-active",exit:"feedback-tick-exit",exitActive:"feedback-tick-exit-active"},timeout:{enter:700,exit:300}},nm.default.createElement(cm,{ref:this.nodeRef},t))))}}(0,tm.default)(dm,"propTypes",{correctness:am.default.string}),ev.default=dm;const{FormControlLabel:pm}=n,{Box:fm}=n,{Checkbox:hm}=n,{Radio:gm}=n,vm=e,mm=r,ym=o,bm=i,_m=a;var xm=Gh.exports;Object.defineProperty(Xg,"__esModule",{value:!0}),Xg.default=Xg.StyledRadio=Xg.StyledFormControlLabel=Xg.StyledCheckbox=Xg.ChoiceInput=void 0;var wm=xm(Zh.exports),Sm=xm(ng.exports),Em=xm(pm),km=xm(vm),Cm=xm(mm),Om=ym,Am=xm(fm),jm=xm(hm),Lm=bm,Rm=xm(gm),Pm=xm(_m),Mm=xm(ev);const Im="multiple-choice-component",Nm=(0,Om.styled)(Am.default)({display:"flex",alignItems:"center",backgroundColor:Lm.color.background()}),Tm=(0,Om.styled)(Am.default)({display:"flex",alignItems:"center",backgroundColor:Lm.color.background(),flex:1,"& .MuiFormControlLabel-root":{marginLeft:"-14px"},"& label":{color:Lm.color.text(),"& > span":{fontSize:"inherit"},"& > .MuiButtonBase-root":{padding:"12px"}}}),Bm=(0,Om.styled)("span")(({theme:e})=>({display:"flex",alignItems:"center","& > span":{marginLeft:`-${e.spacing(1)}`}})),$m=(0,Om.styled)("span")({position:"absolute",left:"-10000px",top:"auto",width:"1px",height:"1px",overflow:"hidden"}),Dm=Xg.StyledFormControlLabel=(0,Om.styled)(Em.default)({"& .MuiFormControlLabel-label":{color:`${Lm.color.text()} !important`,backgroundColor:Lm.color.background(),letterSpacing:"normal"},"&.Mui-disabled *":{cursor:"not-allowed !important"}}),Wm=(e,t)=>({[`&.${Im}`]:{color:`var(--choice-input-${e}, ${t}) !important`}}),zm=e=>{const t=t=>e?`${e}-${t}`:t;return{[t("root")]:{...Wm("color",Lm.color.text()),...e?{}:{"&:hover":{color:`${Lm.color.primaryLight()} !important`}},..."correct"===e?Wm("correct-color",Lm.color.text()):{},..."incorrect"===e?Wm("incorrect-color",Lm.color.incorrect()):{}},[t("checked")]:{..."correct"===e?Wm("correct-selected-color",Lm.color.correct()):{},..."incorrect"===e?Wm("incorrect-checked",Lm.color.incorrect()):{},...e?{}:Wm("selected-color",Lm.color.primary())},[t("disabled")]:{...Wm("disabled-color",Lm.color.text()),..."correct"===e?Wm("correct-disabled-color",Lm.color.disabled()):{},..."incorrect"===e?Wm("incorrect-disabled-color",Lm.color.disabled()):{},opacity:.6,cursor:"not-allowed !important",pointerEvents:"initial !important"},focusVisibleUnchecked:{outline:`2px solid ${Lm.color.focusUncheckedBorder()}`,backgroundColor:Lm.color.focusUnchecked()},focusVisibleChecked:{outline:`2px solid ${Lm.color.focusCheckedBorder()}`,backgroundColor:Lm.color.focusChecked()}}},Fm=(0,Om.styled)(jm.default,{shouldForwardProp:e=>"correctness"!==e})(({correctness:e})=>{const t=zm(e),n=t=>e?`${e}-${t}`:t;return{[`&.${Im}`]:{...t[n("root")],"&.Mui-checked":t[n("checked")],"&.Mui-disabled":e?{}:t[n("disabled")]},"&.Mui-focusVisible":{"&:not(.Mui-checked)":t.focusVisibleUnchecked,"&.Mui-checked":t.focusVisibleChecked}}}),Um=e=>{const{correctness:t,checked:n,onChange:r,disabled:o,value:i,id:a,onKeyDown:s,inputRef:l}=e,u={checked:n,onChange:r,disabled:o,value:i};return km.default.createElement(Fm,(0,Sm.default)({id:a,slotProps:{input:{ref:l}},onKeyDown:s,disableRipple:!0},u,{correctness:t,className:Im}))};Xg.StyledCheckbox=Um;const Vm=(0,Om.styled)(Rm.default,{shouldForwardProp:e=>"correctness"!==e})(({correctness:e})=>{const t=zm(e),n=t=>e?`${e}-${t}`:t;return{[`&.${Im}`]:{...t[n("root")],"&.Mui-checked":t[n("checked")],"&.Mui-disabled":e?{}:t[n("disabled")]},"&.Mui-focusVisible":{"&:not(.Mui-checked)":t.focusVisibleUnchecked,"&.Mui-checked":t.focusVisibleChecked}}}),Hm=e=>{const{correctness:t,checked:n,onChange:r,disabled:o,value:i,id:a,tagName:s,inputRef:l}=e,u={checked:n,onChange:r,disabled:o,value:i};return km.default.createElement(Vm,(0,Sm.default)({id:a,slotProps:{input:{ref:l}},disableRipple:!0},u,{correctness:t,className:Im,name:s}))};Xg.StyledRadio=Hm;class qm extends km.default.Component{constructor(e){super(e),(0,wm.default)(this,"handleKeyDown",e=>{const{choiceMode:t}=this.props;if("checkbox"!==t)return;const n="ArrowDown"===e.key,r="ArrowUp"===e.key;if(!n&&!r)return;e.preventDefault();const o=document.getElementById(this.choiceId);if(!o)return;const i=o.closest("fieldset");if(!i)return;const a=Array.from(i.querySelectorAll('input[type="checkbox"]')),s=a.findIndex(e=>e===o);if(-1===s)return;const l=a[n?s+1:s-1];l&&l.focus()}),this.onToggleChoice=this.onToggleChoice.bind(this),this.choiceId=this.generateChoiceId(),this.descId=`${this.choiceId}-desc`}onToggleChoice(e){this.props.onChange(e)}generateChoiceId(){return"choice-"+(1e4*Math.random()).toFixed()}render(){const{choiceMode:e,disabled:t,displayKey:n,feedback:r,label:o,correctness:i,className:a,rationale:s,hideTick:l,isEvaluateMode:u,choicesLayout:c,value:d,checked:p,tagName:f,isSelectionButtonBelow:h}=this.props,g="checkbox"===e?Um:Hm,v="checkbox"===e?"checkbox":"radio-button",m={..."horizontal"===c&&{[`& .${Im}`]:{padding:"8px",margin:"4px 0 4px 4px"}},...h&&"grid"!==c&&{"& > label":{alignItems:"flex-start"}},...h&&"grid"===c&&{justifyContent:"center","& > label":{alignItems:"center"}}},y="string"==typeof o&&(o.includes("<math")||o.includes("\\(")||o.includes("\\[")||o.includes("<img")||o.includes("data-latex")||o.includes("data-raw")||o.includes("<mjx-container")),b=n?km.default.createElement($m,{id:this.descId},y?`Pick the answer below, ${n}`:n):null,_=km.default.createElement(km.default.Fragment,null,n&&!h?km.default.createElement(Nm,{component:"span"},km.default.createElement("span",{"aria-hidden":"true"},n,"."," "),km.default.createElement(Lm.PreviewPrompt,{className:"prompt-label",prompt:o,tagName:"span"})):km.default.createElement(Lm.PreviewPrompt,{className:"prompt-label",prompt:o,tagName:"span"})),x={disabled:t,checked:p,correctness:i,tagName:f,value:d,id:this.choiceId,onChange:this.onToggleChoice,onKeyDown:this.handleKeyDown,...b?{"aria-describedby":this.descId}:{}},w=h?km.default.createElement(Bm,null,b,km.default.createElement(g,(0,Sm.default)({},x,{style:{padding:0}})),km.default.createElement("span",{"aria-hidden":"true"},n?`${n}.`:"")):km.default.createElement(km.default.Fragment,null,b,km.default.createElement(g,(0,Sm.default)({},x,{slotProps:{input:{ref:this.props.autoFocusRef}}})));return km.default.createElement("div",{className:(0,Pm.default)(a,"corespring-"+v,"choice-input")},km.default.createElement(Nm,null,!l&&u&&km.default.createElement(Mm.default,{correctness:i}),km.default.createElement(Tm,{className:"checkbox-holder",sx:m},km.default.createElement(Dm,{label:_,value:d,htmlFor:this.choiceId,labelPlacement:h?"top":void 0,control:w}))),s&&km.default.createElement(Lm.PreviewPrompt,{className:"rationale",defaultClassName:"rationale",prompt:s}),km.default.createElement(Lm.Feedback,{feedback:r,correctness:i}))}}Xg.ChoiceInput=qm,(0,wm.default)(qm,"propTypes",{choiceMode:Cm.default.oneOf(["radio","checkbox"]),displayKey:Cm.default.string,checked:Cm.default.bool.isRequired,correctness:Cm.default.string,disabled:Cm.default.bool.isRequired,feedback:Cm.default.string,label:Cm.default.string.isRequired,rationale:Cm.default.string,onChange:Cm.default.func.isRequired,value:Cm.default.string.isRequired,className:Cm.default.string,tagName:Cm.default.string,hideTick:Cm.default.bool,isEvaluateMode:Cm.default.bool,choicesLayout:Cm.default.oneOf(["vertical","grid","horizontal"]),isSelectionButtonBelow:Cm.default.bool}),(0,wm.default)(qm,"defaultProps",{rationale:null,checked:!1,isEvaluateMode:!1}),Xg.default=qm;const Km=e,Jm=r,Ym=o,{Box:Gm}=n;var Zm=Gh.exports;Object.defineProperty(Qg,"__esModule",{value:!0}),Qg.default=Qg.Choice=void 0;var Qm=Zm(ng.exports),Xm=Zm(Zh.exports),ey=Zm(Km),ty=Zm(Jm),ny=Ym,ry=Zm(Gm),oy=Zm(Xg);const iy=(0,ny.styled)(ry.default,{shouldForwardProp:e=>"noBorder"!==e&&"horizontalLayout"!==e})(({theme:e,noBorder:t,horizontalLayout:n})=>({paddingTop:e.spacing(2.5),paddingBottom:`calc(${e.spacing(1)} + 2px)`,paddingLeft:`calc(${e.spacing(1)} + 2px)`,paddingRight:`calc(${e.spacing(1)} + 2px)`,borderBottom:t?"none":`1px solid ${e.palette.grey[300]}`,...n&&{paddingRight:e.spacing(2.5),"& label":{marginRight:e.spacing(1)}}}));class ay extends ey.default.Component{constructor(...e){super(...e),(0,Xm.default)(this,"state",{isHovered:!1}),(0,Xm.default)(this,"handleMouseEnter",()=>{const{disabled:e,checked:t}=this.props;e||t||this.setState({isHovered:!0})}),(0,Xm.default)(this,"handleMouseLeave",()=>{this.setState({isHovered:!1})}),(0,Xm.default)(this,"onChange",e=>{const{disabled:t,onChoiceChanged:n}=this.props;t||n(e)})}render(){const{choice:e,index:t,choicesLength:n,showCorrect:r,isEvaluateMode:o,choiceMode:i,disabled:a,checked:s,correctness:l,displayKey:u,choicesLayout:c,gridColumns:d,isSelectionButtonBelow:p,selectedAnswerBackgroundColor:f,selectedAnswerStrokeColor:h,selectedAnswerStrokeWidth:g,hoverAnswerBackgroundColor:v,hoverAnswerStrokeColor:m,hoverAnswerStrokeWidth:y,autoFocusRef:b,tagName:_}=this.props,{isHovered:x}=this.state,w="choice"+(t===n-1?" last":""),S=!o||r?"":e.feedback,E={...e,checked:s,choiceMode:i,disabled:a,feedback:S,correctness:l,displayKey:u,index:t,choicesLayout:c,gridColumns:d,onChange:this.onChange,isEvaluateMode:o,isSelectionButtonBelow:p,selectedAnswerStrokeColor:h,selectedAnswerStrokeWidth:g,tagName:_},k=h&&"initial"!==h,C=m&&"initial"!==m;let O="transparent",A="2px",j="initial";(k||C)&&(s&&k?(O=h,A=g):x&&!a&&C&&(O=m,A=y)),s&&f&&"initial"!==f?j=f:x&&!a&&v&&"initial"!==v&&(j=v);const L=k||C,R=L?{border:`${(e=>{if(!e)return"2px";const t=String(e).trim();return/^\d+(\.\d+)?$/.test(t)?`${t}px`:t})(A)} solid ${O}`,borderRadius:"8px"}:{},P=t===n-1||"vertical"!==c||L,M="horizontal"===c,I="initial"!==j?j:"initial";return ey.default.createElement("div",{className:w,key:t,style:{backgroundColor:I,...R},onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},ey.default.createElement(iy,{component:"div",noBorder:P,horizontalLayout:M},ey.default.createElement(oy.default,(0,Qm.default)({},E,{autoFocusRef:b}))))}}Qg.Choice=ay,(0,Xm.default)(ay,"propTypes",{}),ay.propTypes={choiceMode:ty.default.oneOf(["radio","checkbox"]),choice:ty.default.object,disabled:ty.default.bool.isRequired,onChoiceChanged:ty.default.func,index:ty.default.number,choicesLength:ty.default.number,showCorrect:ty.default.bool,isEvaluateMode:ty.default.bool,checked:ty.default.bool,correctness:ty.default.string,displayKey:ty.default.string,choicesLayout:ty.default.oneOf(["vertical","grid","horizontal"]),gridColumns:ty.default.string,selectedAnswerBackgroundColor:ty.default.string,selectedAnswerStrokeColor:ty.default.string,selectedAnswerStrokeWidth:ty.default.string,hoverAnswerBackgroundColor:ty.default.string,hoverAnswerStrokeColor:ty.default.string,hoverAnswerStrokeWidth:ty.default.string,tagName:ty.default.string,isSelectionButtonBelow:ty.default.bool,autoFocusRef:ty.default.object},Qg.default=ay;const sy=e,ly=r,uy=s,cy=a,dy=o,{Box:py}=n,fy=i;var hy=Gh.exports;Object.defineProperty(rg,"__esModule",{value:!0}),rg.default=rg.MultipleChoice=void 0;var gy=hy(Zh.exports),vy=hy(sy),my=hy(ly),yy=hy(uy),by=hy(cy),_y=dy,xy=hy(py),wy=fy,Sy=hy(Zg),Ey=hy(Qg);const{translator:ky}=Sy.default,Cy=(0,_y.styled)(xy.default)({color:wy.color.text(),backgroundColor:wy.color.background(),"& *":{"-webkit-font-smoothing":"antialiased"},position:"relative","& legend":{border:"none !important"}}),Oy=(0,_y.styled)("h2")(({theme:e})=>({display:"block",fontSize:"inherit",margin:"0",fontWeight:"normal",paddingBottom:e.spacing(2)})),Ay=(0,_y.styled)(xy.default)(({theme:e})=>({marginBottom:e.spacing(2)})),jy=(0,_y.styled)(xy.default)({display:"flex",flexDirection:"row",flexWrap:"wrap"}),Ly=(0,_y.styled)(xy.default)({display:"grid"}),Ry=(0,_y.styled)("fieldset")({border:"0px",padding:"0.01em 0 0 0",margin:"0px",minWidth:"0px","&:focus":{outline:"none"}}),Py=(0,_y.styled)("h3")({position:"absolute",left:"-10000px",top:"auto",width:"1px",height:"1px",overflow:"hidden"}),My=(0,_y.styled)("div")(({theme:e})=>({fontSize:e.typography.fontSize-2,color:e.palette.error.main,paddingTop:e.spacing(1)}));class Iy extends vy.default.Component{constructor(e){super(e),(0,gy.default)(this,"handleChange",e=>{const{value:t,checked:n}=e.target,{maxSelections:r,onChoiceChanged:o,session:i}=this.props;i.value&&i.value.length>=r&&(this.setState({maxSelectionsErrorState:n}),n)||o({value:t,selected:n,selector:"Mouse"})}),(0,gy.default)(this,"onToggle",()=>{"evaluate"===this.props.mode&&this.setState({showCorrect:!this.state.showCorrect},()=>{this.props.onShowCorrectToggle&&this.props.onShowCorrectToggle()})}),(0,gy.default)(this,"getCorrectness",(e={})=>{const t=e.correct,n=this.isSelected(e.value);return this.state.showCorrect?t?"correct":void 0:t?n?"correct":"incorrect":n?"incorrect":void 0}),(0,gy.default)(this,"handleGroupFocus",e=>{const t=e.currentTarget,n=document.activeElement;t.contains(n)&&n!==t||(!e.relatedTarget||t.compareDocumentPosition(e.relatedTarget)&Node.DOCUMENT_POSITION_PRECEDING)&&function(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=i(n)):"call"!==o&&"optionalCall"!==o||(n=i((...e)=>n.call(t,...e)),t=void 0)}return n}([this,"access",e=>e.firstInputRef,"optionalAccess",e=>e.current])&&this.firstInputRef.current.focus()}),this.state={showCorrect:this.props.options&&this.props.alwaysShowCorrect||!1,maxSelectionsErrorState:!1},this.onToggle=this.onToggle.bind(this),this.firstInputRef=vy.default.createRef()}isSelected(e){const t=this.props.session&&this.props.session.value;return t&&t.indexOf&&t.indexOf(e)>=0}UNSAFE_componentWillReceiveProps(e){e.correctResponse||!1===this.state.showCorrect||this.setState({showCorrect:!1},()=>{this.props.onShowCorrectToggle&&this.props.onShowCorrectToggle()}),e.options&&e.alwaysShowCorrect&&!0!==this.state.showCorrect&&this.setState({showCorrect:!0},()=>{this.props.onShowCorrectToggle&&this.props.onShowCorrectToggle()})}indexToSymbol(e){return"numbers"===this.props.keyMode?`${e+1}`:"letters"===this.props.keyMode?String.fromCharCode(97+e).toUpperCase():""}getChecked(e){if(this.props.options&&this.props.alwaysShowCorrect)return e.correct||!1;return this.state.showCorrect&&"evaluate"===this.props.mode?e.correct||!1:this.isSelected(e.value)}renderHeading(){const{mode:e,choiceMode:t,includeSrHeading:n,baseHeadingLevel:r,partLabel:o}=this.props;if(!(!o&&!1!==n)||"gather"!==e)return null;const i=r?Math.min(6,r):2,a=Py.withComponent(`h${i}`),s="radio"===t?"Multiple Choice Question":"Multiple Select Question";return vy.default.createElement(a,null,s)}render(){const{mode:e,disabled:t,className:n,choices:r=[],choiceMode:o,gridColumns:i,partLabel:a,prompt:s,responseCorrect:l,teacherInstructions:u,alwaysShowCorrect:c,animationsDisabled:d,language:p,isSelectionButtonBelow:f,minSelections:h,maxSelections:g,autoplayAudioEnabled:v,session:m,customAudioButton:y,options:b,baseHeadingLevel:_}=this.props,{showCorrect:x,maxSelectionsErrorState:w}=this.state,S="evaluate"===e,E=S&&!l,k=i>1?{gridTemplateColumns:`repeat(${i}, 1fr)`}:void 0,C=m.value&&m.value.length||0,O=(()=>{if(!_)return;let e=1;return a&&(e+=1),Math.min(6,_+e)})(),A=vy.default.createElement(wy.PreviewPrompt,{tagName:"div",className:"prompt",defaultClassName:"teacher-instructions",prompt:u}),j="grid"===this.props.choicesLayout?Ly:"horizontal"===this.props.choicesLayout?jy:xy.default;return vy.default.createElement(Cy,{id:"main-container",className:(0,by.default)(n,"multiple-choice")},a&&vy.default.createElement(Oy,{as:_?`h${Math.min(6,_+1)}`:"h2"},a),this.renderHeading(),u&&vy.default.createElement(Ay,null,d?A:vy.default.createElement(wy.Collapsible,{labels:{hidden:"Show Teacher Instructions",visible:"Hide Teacher Instructions"}},A)),vy.default.createElement(Ry,{tabIndex:0,onFocus:this.handleGroupFocus,role:"radio"===o?"radiogroup":"group"},vy.default.createElement(wy.PreviewPrompt,{className:"prompt",defaultClassName:"prompt",prompt:(L=s,L&&O?(0,wy.transformDataHeadings)(L,O):L),tagName:"legend",autoplayAudioEnabled:v,customAudioButton:y}),!(b&&c)&&vy.default.createElement(yy.default,{show:E,toggled:x,onToggle:this.onToggle.bind(this),language:p}),vy.default.createElement(j,{style:k},r.map((e,n)=>vy.default.createElement(Ey.default,{autoFocusRef:0===n?this.firstInputRef:null,choicesLayout:this.props.choicesLayout,selectedAnswerBackgroundColor:this.props.selectedAnswerBackgroundColor,selectedAnswerStrokeColor:this.props.selectedAnswerStrokeColor,selectedAnswerStrokeWidth:this.props.selectedAnswerStrokeWidth,hoverAnswerBackgroundColor:this.props.hoverAnswerBackgroundColor,hoverAnswerStrokeColor:this.props.hoverAnswerStrokeColor,hoverAnswerStrokeWidth:this.props.hoverAnswerStrokeWidth,gridColumns:i,key:`choice-${n}`,choice:e,index:n,choicesLength:r.length,showCorrect:x,isEvaluateMode:S,choiceMode:o,disabled:t,tagName:a?`group-${a}`:"group",onChoiceChanged:this.handleChange,hideTick:e.hideTick,checked:this.getChecked(e),correctness:S?this.getCorrectness(e):void 0,displayKey:this.indexToSymbol(n),isSelectionButtonBelow:f})))),"checkbox"===o&&C<h&&vy.default.createElement(My,null,h&&g?h===g?ky.t("translation:multipleChoice:minmaxSelections_equal",{lng:p,minSelections:h}):ky.t("translation:multipleChoice:minmaxSelections_range",{lng:p,minSelections:h,maxSelections:g}):h?ky.t("translation:multipleChoice:minSelections",{lng:p,minSelections:h}):""),"checkbox"===o&&w&&vy.default.createElement(My,null,ky.t("translation:multipleChoice:maxSelections_"+(1===g?"one":"other"),{lng:p,maxSelections:g})));var L}}rg.MultipleChoice=Iy,(0,gy.default)(Iy,"propTypes",{className:my.default.string,mode:my.default.oneOf(["gather","view","evaluate"]),choiceMode:my.default.oneOf(["radio","checkbox"]),keyMode:my.default.oneOf(["numbers","letters","none"]),choices:my.default.array,partLabel:my.default.string,prompt:my.default.string,teacherInstructions:my.default.string,session:my.default.object,disabled:my.default.bool,onChoiceChanged:my.default.func,responseCorrect:my.default.bool,correctResponse:my.default.array,choicesLayout:my.default.oneOf(["vertical","grid","horizontal"]),gridColumns:my.default.string,alwaysShowCorrect:my.default.bool,animationsDisabled:my.default.bool,language:my.default.string,selectedAnswerBackgroundColor:my.default.string,selectedAnswerStrokeColor:my.default.string,selectedAnswerStrokeWidth:my.default.string,hoverAnswerBackgroundColor:my.default.string,hoverAnswerStrokeColor:my.default.string,hoverAnswerStrokeWidth:my.default.string,onShowCorrectToggle:my.default.func,isSelectionButtonBelow:my.default.bool,minSelections:my.default.number,maxSelections:my.default.number,autoplayAudioEnabled:my.default.bool,customAudioButton:{playImage:my.default.string,pauseImage:my.default.string},options:my.default.object,baseHeadingLevel:my.default.number,includeSrHeading:my.default.bool}),Iy.defaultProps={session:{value:[]}},rg.default=Iy;const Ny=e,Ty=r,By=i;var $y=Gh.exports;Object.defineProperty(tg,"__esModule",{value:!0}),tg.default=void 0;var Dy=$y(ng.exports),Wy=$y(Zh.exports),zy=$y(Ny),Fy=$y(Ty),Uy=By,Vy=$y(rg);class Hy extends zy.default.Component{render(){const{model:e,onChoiceChanged:t,session:n,onShowCorrectToggle:r,options:o,baseHeadingLevel:i,includeSrHeading:a}=this.props,{extraCSSRules:s,fontSizeFactor:l}=e;return zy.default.createElement(Uy.PreviewLayout,{extraCSSRules:s,fontSizeFactor:l,classes:{}},zy.default.createElement(Vy.default,(0,Dy.default)({},e,{options:o,session:n,onChoiceChanged:t,onShowCorrectToggle:r,baseHeadingLevel:i,includeSrHeading:a})))}}(0,Wy.default)(Hy,"propTypes",{model:Fy.default.object,session:Fy.default.object,options:Fy.default.object,onChoiceChanged:Fy.default.func,onShowCorrectToggle:Fy.default.func,extraCSSRules:Fy.default.shape({names:Fy.default.arrayOf(Fy.default.string),rules:Fy.default.string}),baseHeadingLevel:Fy.default.number,includeSrHeading:Fy.default.bool}),(0,Wy.default)(Hy,"defaultProps",{model:{},session:{}}),tg.default=Hy;var qy=Jh(qh),Ky={};Object.defineProperty(Ky,"__esModule",{value:!0});class Jy extends CustomEvent{constructor(e,t,n){super(Jy.TYPE,{bubbles:!0,composed:!0,detail:{complete:t,component:e,hasModel:n}}),this.component=e,this.complete=t}}Jy.TYPE="model-set",Ky.ModelSetEvent=Jy;class Yy extends CustomEvent{constructor(e,t){super(Yy.TYPE,{bubbles:!0,composed:!0,detail:{complete:t,component:e}}),this.component=e,this.complete=t}}Yy.TYPE="session-changed";var Gy=Ky.SessionChangedEvent=Yy,Zy={};Object.defineProperty(Zy,"__esModule",{value:!0}),Zy.updateSessionMetadata=function(e,t){e.audioStartTime=e.audioStartTime||t.audioStartTime,e.audioEndTime=e.audioEndTime||t.audioEndTime,!e.waitTime&&e.audioStartTime&&e.audioEndTime&&(e.waitTime=e.audioEndTime-e.audioStartTime)},Zy.updateSessionValue=function(e,t,n){e.value=e.value||[],"checkbox"===t&&(n.selected?e.value=Array.from(new Set([...e.value,n.value])):e.value=e.value.filter(e=>e!==n.value));"radio"===t&&(n.selected?e.value=[n.value]:e.value=[]);e.selector=n.selector};const Qy=e,Xy=u,eb=l,tb=i,nb=c;var rb=Gh.exports;Object.defineProperty(Yh,"__esModule",{value:!0}),Yh.isComplete=Yh.default=void 0;var ob=rb(Zh.exports),ib=rb(tg),ab=rb(Qy),sb=Xy,lb=qy,ub=rb(eb),cb=Ky,db=nb,pb=tb,fb=Zy;const hb=(0,ub.default)("pie-ui:multiple-choice"),gb=(e,t,n,r)=>{const{autoplayAudioEnabled:o,completeAudioEnabled:i}=t||{};if(o&&i&&!n&&r){const e=r.querySelector("audio"),t=e&&e.closest("#preview-prompt");if(e&&t)return!1}if(!e||!e.value)return!1;const{choiceMode:a,minSelections:s=1,maxSelections:l}=t||{},u=e.value.length||0;return"radio"===a?!!u:!(u<s||u>l)};function vb(e){const t=function(e){const t=e.closest("pie-player")||e.closest("pie-item-player");if(!t)return{baseHeadingLevel:void 0,includeSrHeading:!0};const n=(e,n,r)=>{let o=t[e];var i;return null==o&&(o=null!=(i=t.getAttribute(n))?i:(()=>t.getAttribute(r))()),o},r=n("baseHeadingLevel","base-heading-level","baseheadinglevel"),o=parseInt(r,10),i=Number.isFinite(o)&&o>=1&&o<=6?o:void 0,a=n("includeSrHeading","include-sr-heading","includesrheading"),s=null==a||!1!==a&&"false"!==a;return console.log("getPlayerAttributes",{baseHeadingLevel:i,includeSrHeading:s}),{baseHeadingLevel:i,includeSrHeading:s}}(e);return console.log("element._baseHeadingLevel",e._baseHeadingLevel,"element._includeSrHeading",e._includeSrHeading),{baseHeadingLevel:void 0!==e._baseHeadingLevel?e._baseHeadingLevel:t.baseHeadingLevel,includeSrHeading:void 0!==e._includeSrHeading?e._includeSrHeading:t.includeSrHeading}}Yh.isComplete=gb;class mb extends HTMLElement{constructor(){super(),(0,ob.default)(this,"_scheduleMathRender",()=>{this._mathRenderPending||(this._mathRenderPending=!0,requestAnimationFrame(()=>{this._mathObserver&&this._mathObserver.disconnect(),hb("render complete - render math"),(0,db.renderMath)(this),this._mathRenderPending=!1,setTimeout(()=>{this._mathObserver&&this._mathObserver.observe(this,{childList:!0,subtree:!0})},50)}))}),this._model=null,this._session=null,this._options=null,this.audioComplete=!1,this._boundHandleKeyDown=this.handleKeyDown.bind(this),this._keyboardEventsEnabled=!1,this._audioInitialized=!1,this._root=null,this._mathObserver=null,this._mathRenderPending=!1,this._rerender=(0,lb.debounce)(()=>{if(this._model&&this._session){var e=ab.default.createElement(ib.default,{model:this._model,session:this._session,options:this._options,onChoiceChanged:this._onChange.bind(this),onShowCorrectToggle:this.onShowCorrectToggle.bind(this),...vb(this)});this.setAttribute("aria-label","radio"===this._model.choiceMode?"Multiple Choice Question":"Multiple Correct Answer Question"),this.setAttribute("role","region"),this.setLangAttribute(),this._initMathObserver(),this._root||(this._root=(0,sb.createRoot)(this)),this._root.render(e),!0!==this._model.keyboardEventsEnabled||this._keyboardEventsEnabled||this.enableKeyboardEvents()}else hb("skip")},50,{leading:!1,trailing:!0}),this._dispatchResponseChanged=(0,lb.debounce)(()=>{this.dispatchEvent(new cb.SessionChangedEvent(this.tagName.toLowerCase(),gb(this._session,this._model,this.audioComplete,this)))}),this._dispatchModelSet=(0,lb.debounce)(()=>{this.dispatchEvent(new cb.ModelSetEvent(this.tagName.toLowerCase(),gb(this._session,this._model,this.audioComplete,this),void 0!==this._model))},50,{leading:!1,trailing:!0})}_initMathObserver(){this._mathObserver||(this._mathObserver=new MutationObserver(this._scheduleMathRender),this._mathObserver.observe(this,{childList:!0,subtree:!0}))}_disconnectMathObserver(){this._mathObserver&&(this._mathObserver.disconnect(),this._mathObserver=null)}onShowCorrectToggle(){(0,db.renderMath)(this)}setLangAttribute(){const e=this._model&&(this._model.language,1)?this._model.language:"",t=e?e.slice(0,2):"en";this.setAttribute("lang",t)}set model(e){this._model=e,this._rerender(),this._audioInitialized=!1,this._dispatchModelSet()}get session(){return this._session}get options(){return this._options}set options(e){this._options=e,this._rerender()}set baseHeadingLevel(e){this._baseHeadingLevel=e,this._rerender()}set includeSrHeading(e){this._includeSrHeading=e,this._rerender()}set session(e){this._session=e,this._rerender(),this._dispatchResponseChanged()}_onChange(e){(0,fb.updateSessionValue)(this._session,this._model.choiceMode,e),this._dispatchResponseChanged(),this._rerender()}_createAudioInfoToast(){const e=document.createElement("div");e.id="play-audio-info",Object.assign(e.style,{position:"absolute",top:0,width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",background:"white",zIndex:"1000",cursor:"pointer"});const t=document.createElement("img");return t.src=pb.EnableAudioAutoplayImage,t.alt="Click anywhere to enable audio autoplay",t.width=500,t.height=300,e.appendChild(t),e}connectedCallback(){this._initMathObserver(),this._initPlayerObserver(),this._rerender();new MutationObserver((e,t)=>{e.forEach(e=>{if("childList"===e.type){if(this._audioInitialized)return;const e=this.querySelector("audio"),n=e&&e.closest("#preview-prompt");if(!this._model)return;if(!this._model.autoplayAudioEnabled)return;if(e&&!n)return;if(!e)return;const r=this._createAudioInfoToast(),o=this.querySelector("#main-container"),i=()=>{this.querySelector("#play-audio-info")&&(e.play(),o.removeChild(r)),document.removeEventListener("click",i)};setTimeout(()=>{e.paused&&!this.querySelector("#play-audio-info")?(o.appendChild(r),document.addEventListener("click",i)):document.removeEventListener("click",i)},500);const a=()=>{(0,fb.updateSessionMetadata)(this._session,{audioStartTime:(new Date).getTime()});const t=this.querySelector("#play-audio-info");t&&o.removeChild(t),e.removeEventListener("playing",a)};e.addEventListener("playing",a);const s=()=>{(0,fb.updateSessionMetadata)(this._session,{audioEndTime:(new Date).getTime()}),this.audioComplete=!0,this._dispatchResponseChanged(),e.removeEventListener("ended",s)};e.addEventListener("ended",s),this._audio=e,this._handlePlaying=a,this._handleEnded=s,this._enableAudio=i,this._audioInitialized=!0,t.disconnect()}})}).observe(this,{childList:!0,subtree:!0})}enableKeyboardEvents(){this._keyboardEventsEnabled||(window.addEventListener("keydown",this._boundHandleKeyDown),this._keyboardEventsEnabled=!0)}_initPlayerObserver(){const e=this.closest("pie-player")||this.closest("pie-item-player");e&&(this._playerObserver=new MutationObserver(()=>{this._rerender()}),this._playerObserver.observe(e,{attributes:!0,attributeFilter:["base-heading-level","baseheadinglevel","include-sr-heading","includesrheading"]}))}_disconnectPlayerObserver(){this._playerObserver&&(this._playerObserver.disconnect(),this._playerObserver=null)}disconnectedCallback(){this._disconnectMathObserver(),this._disconnectPlayerObserver(),this._keyboardEventsEnabled&&(window.removeEventListener("keydown",this._boundHandleKeyDown),this._keyboardEventsEnabled=!1),document.removeEventListener("click",this._enableAudio),this._audio&&(this._audio.removeEventListener("playing",this._handlePlaying),this._audio.removeEventListener("ended",this._handleEnded),this._audio=null),this._root&&this._root.unmount()}handleKeyDown(e){if(!this._model||!this._session)return;const{mode:t}=this._model;if("gather"!==t)return;const n=(e=>{const t=e>="1"&&e<="9"?e-"1":"0"===e?9:-1,n=/^[a-jA-J]$/.test(e)?e.toLowerCase().charCodeAt(0)-"a".charCodeAt(0):-1;return t>=0?t:n})(e.key);if(void 0===n||n<=-1||n>=function(e){let t,n=e[0],r=1;for(;r<e.length;){const o=e[r],i=e[r+1];if(r+=2,("optionalAccess"===o||"optionalCall"===o)&&null==n)return;"access"===o||"optionalAccess"===o?(t=n,n=i(n)):"call"!==o&&"optionalCall"!==o||(n=i((...e)=>n.call(t,...e)),t=void 0)}return n}([this,"access",e=>e._model,"access",e=>e.choices,"optionalAccess",e=>e.length]))return;const r=this._session.value||[],o=this._model.choices[n].value,i={value:o,selected:!r.includes(o),selector:"Keyboard"};this._onChange(i)}}var yb=Yh.default=mb;const bb=l,_b="ebsr-multiple-choice",xb=Gy.TYPE,{translator:wb}=Gg,Sb=bb("pie-element:ebsr:print"),Eb=(e,t)=>{const n="instructor"===t.role,r=vi(e);return r.prompt=!1!==r.promptEnabled?r.prompt:void 0,r.teacherInstructions=n&&!1!==r.teacherInstructionsEnabled?r.teacherInstructions:void 0,r.showTeacherInstructions=n,r.alwaysShowCorrect=n,r.mode=n?"evaluate":"gather",r.disabled=!0,r.animationsDisabled=!0,r.lockChoiceOrder=!0,r.choicesLayout=r.choicesLayout||"vertical",r.choices=(r.choices||[]).map(e=>(e.rationale=n&&!1!==r.rationaleEnabled?e.rationale:void 0,e.hideTick=n,e.feedback=void 0,e)),r.keyMode=r.choicePrefix||"letters",r};class kb extends yb{}customElements.get(_b)||customElements.define(_b,kb);const Cb=e=>Array.isArray(e)&&e.length>0,Ob=e=>{const t=Mn(e,"value.partA.value"),n=Mn(e,"value.partB.value");return Cb(t)&&Cb(n)};class Ab extends HTMLElement{constructor(){super(),Ab.prototype.__init.call(this),this._model={},this._session={},this._options=null}__init(){this.onSessionUpdated=e=>{if(e.target===this)return;e.preventDefault(),e.stopImmediatePropagation();const t=e.target.getAttribute("id");if(t){const n=`part${t.toUpperCase()}`;e.update&&(this._model[n]=e.update),this.dispatchSessionChanged(e.srcElement._session,n)}}}set model(e){this._model=e,this._updateParts()}set session(e){this._session=e,customElements.whenDefined(_b).then(()=>{this.setPartSession(this.partA,"partA"),this.setPartSession(this.partB,"partB")})}_updateParts(){customElements.whenDefined(_b).then(()=>{this.setPartModel(this.partA,"partA"),this.setPartModel(this.partB,"partB")})}setPartModel(e,t){if(this._model&&this._model[t]&&e&&this._options){let n={partA:void 0,partB:void 0};if(this._model.partLabels){const e=this._model.language;n={partA:wb.t("ebsr.part",{lng:e,index:"Letters"===this._model.partLabelType?"A":"1"}),partB:wb.t("ebsr.part",{lng:e,index:"Letters"===this._model.partLabelType?"B":"2"})}}e.model={...Eb(this._model[t],this._options),keyMode:this._model[t].choicePrefix,partLabel:n[t]},e.options=this._options,e._session||(e.session={})}}set options(e){this._options=e,this._updateParts()}setPartSession(e,t){if(this._session&&this._model&&e){const{value:n}=this._session;e.session=n&&n[t]?n[t]:{id:t}}}dispatchSessionChanged(e,t){this._session.value={...this._session.value,[t]:e},Sb("[onSessionChanged] session: ",this._session);const n=Ob(this._session);this.dispatchEvent(new Gy(this.tagName.toLowerCase(),n))}get partA(){return this.querySelector(`${_b}#a`)}get partB(){return this.querySelector(`${_b}#b`)}connectedCallback(){this._render(),this.addEventListener(xb,this.onSessionUpdated)}disconnectedCallback(){this.removeEventListener(xb,this.onSessionUpdated)}_render(){this.innerHTML=`\n <div>\n <${_b} id="a"></${_b}>\n <${_b} id="b"></${_b}>\n </div>\n `}}export{Ab as default,Ob as isSessionComplete};
|