laif-ds 0.2.21 → 0.2.22
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/_virtual/index.js +5 -3
- package/dist/_virtual/index3.js +2 -5
- package/dist/_virtual/index4.js +3 -5
- package/dist/_virtual/index6.js +5 -2
- package/dist/components/ui/app-select.js +92 -109
- package/dist/components/ui/gantt/constants/DimensionsSettings.js +6 -6
- package/dist/components/ui/gantt/constants/DragStepOptions.js +9 -9
- package/dist/components/ui/message-input.js +23 -23
- package/dist/components/ui/sidebar.js +1 -1
- package/dist/index.d.ts +4 -6
- package/dist/lib/audio-utils.js +2 -2
- package/dist/node_modules/@date-fns/tz/date/index.js +2 -7
- package/dist/node_modules/@date-fns/tz/date/mini.js +32 -27
- package/dist/node_modules/@date-fns/tz/tzName/index.js +12 -0
- package/dist/node_modules/@date-fns/tz/tzOffset/index.js +11 -12
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +137 -139
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +238 -235
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +88 -83
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +70 -69
- package/dist/node_modules/@lexical/clipboard/LexicalClipboard.prod.js +13 -13
- package/dist/node_modules/@lexical/code/LexicalCode.prod.js +3 -3
- package/dist/node_modules/@lexical/dragon/LexicalDragon.prod.js +2 -2
- package/dist/node_modules/@lexical/history/LexicalHistory.prod.js +9 -9
- package/dist/node_modules/@lexical/html/LexicalHtml.prod.js +6 -6
- package/dist/node_modules/@lexical/list/LexicalList.prod.js +48 -48
- package/dist/node_modules/@lexical/markdown/LexicalMarkdown.prod.js +29 -29
- package/dist/node_modules/@lexical/react/LexicalCheckListPlugin.prod.js +1 -1
- package/dist/node_modules/@lexical/react/LexicalClearEditorPlugin.prod.js +2 -2
- package/dist/node_modules/@lexical/react/LexicalComposer.prod.js +10 -10
- package/dist/node_modules/@lexical/react/LexicalComposerContext.prod.js +2 -2
- package/dist/node_modules/@lexical/react/LexicalContentEditable.prod.js +17 -17
- package/dist/node_modules/@lexical/react/LexicalErrorBoundary.prod.js +4 -4
- package/dist/node_modules/@lexical/react/LexicalHistoryPlugin.prod.js +4 -4
- package/dist/node_modules/@lexical/react/LexicalListPlugin.prod.js +5 -5
- package/dist/node_modules/@lexical/react/LexicalOnChangePlugin.prod.js +4 -4
- package/dist/node_modules/@lexical/react/LexicalRichTextPlugin.prod.js +20 -20
- package/dist/node_modules/@lexical/react/useLexicalEditable.prod.js +7 -7
- package/dist/node_modules/@lexical/rich-text/LexicalRichText.prod.js +43 -43
- package/dist/node_modules/@lexical/table/LexicalTable.prod.js +16 -16
- package/dist/node_modules/@lexical/utils/LexicalUtils.prod.js +3 -3
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +43 -42
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +2 -2
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +2 -2
- package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +1 -1
- package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js +183 -175
- package/dist/node_modules/@shikijs/core/dist/index.js +195 -175
- package/dist/node_modules/@shikijs/langs/dist/asciidoc.js +2 -2
- package/dist/node_modules/@shikijs/langs/dist/cobol.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/erlang.js +5 -3
- package/dist/node_modules/@shikijs/langs/dist/fsharp.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/gdscript.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/go.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/haxe.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/julia.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/latex.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/lean.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/markdown.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/marko.js +5 -5
- package/dist/node_modules/@shikijs/langs/dist/mermaid.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/nextflow.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/purescript.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/r.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/sql.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/swift.js +2 -2
- package/dist/node_modules/@shikijs/langs/dist/templ.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/tex.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/vue-vine.js +21 -0
- package/dist/node_modules/@shikijs/langs/dist/vue.js +1 -1
- package/dist/node_modules/@shikijs/langs/dist/zig.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/andromeeda.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-frappe.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-latte.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-macchiato.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/catppuccin-mocha.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-hard.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-medium.js +1 -1
- package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-soft.js +1 -1
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +215 -208
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +1 -1
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +1 -1
- package/dist/node_modules/classnames/index.js +2 -2
- package/dist/node_modules/d3-interpolate/src/rgb.js +2 -2
- package/dist/node_modules/dayjs/dayjs.min.js +14 -14
- package/dist/node_modules/dayjs/locale/it.js +4 -4
- package/dist/node_modules/dayjs/plugin/isoWeek.js +4 -4
- package/dist/node_modules/dayjs/plugin/localizedFormat.js +10 -10
- package/dist/node_modules/decimal.js-light/decimal.js +2 -2
- package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +2 -2
- package/dist/node_modules/es-toolkit/dist/array/flatten.js +2 -2
- package/dist/node_modules/es-toolkit/dist/array/uniqBy.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/compareValues.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getTag.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isIndex.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isKey.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/tags.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/_internal/toKey.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/array/orderBy.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/array/sortBy.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/array/uniqBy.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/function/debounce.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/function/throttle.js +14 -15
- package/dist/node_modules/es-toolkit/dist/compat/math/range.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeep.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +11 -11
- package/dist/node_modules/es-toolkit/dist/compat/object/get.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/object/has.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/object/property.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArguments.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isMatch.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isMatchWith.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isObject.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isSymbol.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/matches.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/predicate/matchesProperty.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/util/eq.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/util/iteratee.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/util/toFinite.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/util/toNumber.js +2 -2
- package/dist/node_modules/es-toolkit/dist/compat/util/toPath.js +2 -2
- package/dist/node_modules/es-toolkit/dist/function/debounce.js +15 -15
- package/dist/node_modules/es-toolkit/dist/function/identity.js +2 -2
- package/dist/node_modules/es-toolkit/dist/function/noop.js +2 -10
- package/dist/node_modules/es-toolkit/dist/object/cloneDeep.js +2 -2
- package/dist/node_modules/es-toolkit/dist/object/cloneDeepWith.js +3 -3
- package/dist/node_modules/es-toolkit/dist/predicate/isLength.js +2 -2
- package/dist/node_modules/es-toolkit/dist/predicate/isPrimitive.js +2 -2
- package/dist/node_modules/es-toolkit/dist/predicate/isTypedArray.js +2 -2
- package/dist/node_modules/eventemitter3/index.js +1 -1
- package/dist/node_modules/eventemitter3/index2.js +3 -3
- package/dist/node_modules/immer/dist/immer.js +213 -216
- package/dist/node_modules/lexical/Lexical.prod.js +212 -212
- package/dist/node_modules/lodash/_baseCreate.js +2 -2
- package/dist/node_modules/lodash/_cloneBuffer.js +2 -2
- package/dist/node_modules/lodash/_defineProperty.js +2 -2
- package/dist/node_modules/lodash/_isMasked.js +2 -2
- package/dist/node_modules/lodash/_nodeUtil.js +4 -4
- package/dist/node_modules/lodash/isArguments.js +2 -2
- package/dist/node_modules/lodash/isBuffer.js +2 -2
- package/dist/node_modules/lodash/lodash.js +16 -16
- package/dist/node_modules/prismjs/components/prism-cpp.js +2 -2
- package/dist/node_modules/prismjs/components/prism-java.js +2 -2
- package/dist/node_modules/prismjs/components/prism-rust.js +2 -2
- package/dist/node_modules/prismjs/components/prism-typescript.js +2 -2
- package/dist/node_modules/prismjs/prism.js +8 -8
- package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +183 -164
- package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +14 -14
- package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +10 -7
- package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +6 -6
- package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +30 -30
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +1 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +5 -5
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +9 -9
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +1 -1
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +11 -11
- package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +1 -1
- package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +12 -12
- package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +19 -19
- package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +9 -9
- package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +10 -10
- package/dist/node_modules/react-hook-form/dist/index.esm.js +150 -117
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +48 -48
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +9 -9
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +43 -39
- package/dist/node_modules/react-resizable-panels/dist/react-resizable-panels.browser.js +95 -94
- package/dist/node_modules/react-window/dist/index.esm.js +2 -2
- package/dist/node_modules/recharts/es6/animation/AnimationManager.js +14 -14
- package/dist/node_modules/recharts/es6/animation/JavascriptAnimate.js +49 -0
- package/dist/node_modules/recharts/es6/animation/createDefaultAnimationManager.js +9 -0
- package/dist/node_modules/recharts/es6/animation/useAnimationManager.js +12 -0
- package/dist/node_modules/recharts/es6/component/Cursor.js +5 -5
- package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js +55 -58
- package/dist/node_modules/recharts/es6/component/Legend.js +32 -27
- package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +44 -40
- package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +15 -23
- package/dist/node_modules/recharts/es6/context/useTooltipAxis.js +8 -7
- package/dist/node_modules/recharts/es6/shape/Curve.js +10 -10
- package/dist/node_modules/recharts/es6/shape/Rectangle.js +136 -99
- package/dist/node_modules/recharts/es6/shape/Symbols.js +55 -53
- package/dist/node_modules/recharts/es6/state/legendSlice.js +5 -4
- package/dist/node_modules/recharts/es6/state/selectors/axisSelectors.js +352 -307
- package/dist/node_modules/recharts/es6/state/selectors/brushSelectors.js +9 -9
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineDisplayedStackedData.js +26 -0
- package/dist/node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayload.js +117 -0
- package/dist/node_modules/recharts/es6/state/selectors/dataSelectors.js +4 -4
- package/dist/node_modules/recharts/es6/state/selectors/legendSelectors.js +10 -4
- package/dist/node_modules/recharts/es6/state/selectors/polarAxisSelectors.js +33 -32
- package/dist/node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js +108 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxis.js +13 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxisId.js +5 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js +9 -0
- package/dist/node_modules/recharts/es6/state/selectors/selectors.js +40 -143
- package/dist/node_modules/recharts/es6/state/selectors/tooltipSelectors.js +68 -63
- package/dist/node_modules/recharts/es6/state/types/StackedGraphicalItem.js +7 -0
- package/dist/node_modules/recharts/es6/util/ChartUtils.js +58 -57
- package/dist/node_modules/recharts/es6/util/DataUtils.js +34 -26
- package/dist/node_modules/recharts/es6/util/Events.js +1 -1
- package/dist/node_modules/recharts/es6/util/ReactUtils.js +20 -15
- package/dist/node_modules/recharts/es6/util/excludeEventProps.js +11 -0
- package/dist/node_modules/recharts/es6/util/getSliced.js +7 -0
- package/dist/node_modules/recharts/es6/util/scale/getNiceTickValues.js +44 -44
- package/dist/node_modules/recharts/es6/util/stacks/getStackSeriesIdentifier.js +7 -0
- package/dist/node_modules/recharts/es6/util/svgPropertiesNoEvents.js +328 -0
- package/dist/node_modules/recharts/es6/util/types.js +22 -332
- package/dist/node_modules/recharts/es6/util/useAnimationId.js +10 -0
- package/dist/node_modules/recharts/es6/util/useElementOffset.js +20 -16
- package/dist/node_modules/remeda/dist/hasAtLeast-F1Oj_xBB.js +9 -0
- package/dist/node_modules/remeda/dist/lazyDataLastImpl-BDhrIOwR.js +8 -0
- package/dist/node_modules/remeda/dist/omit-HZOiLuMO.js +19 -0
- package/dist/node_modules/remeda/dist/purry-DH9cw9sy.js +11 -0
- package/dist/node_modules/shiki/dist/langs.js +225 -220
- package/dist/node_modules/shiki/dist/themes.js +60 -60
- package/dist/node_modules/sonner/dist/index.js +309 -305
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +169 -168
- package/dist/node_modules/unified/lib/callable-instance.js +2 -2
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/dist/node_modules/unist-util-is/lib/index.js +2 -2
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +2 -2
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +2 -2
- package/dist/node_modules/vfile-message/lib/index.js +1 -1
- package/dist/styles.v3.css +1 -1
- package/package.json +1 -1
- package/dist/_virtual/isEqual.js +0 -8
- package/dist/_virtual/isEqual2.js +0 -5
- package/dist/_virtual/isEqualWith.js +0 -5
- package/dist/_virtual/isPlainObject.js +0 -5
- package/dist/_virtual/noop.js +0 -5
- package/dist/node_modules/es-toolkit/compat/isEqual.js +0 -9
- package/dist/node_modules/es-toolkit/dist/predicate/isEqual.js +0 -18
- package/dist/node_modules/es-toolkit/dist/predicate/isEqualWith.js +0 -139
- package/dist/node_modules/es-toolkit/dist/predicate/isPlainObject.js +0 -18
- package/dist/node_modules/recharts/es6/animation/Animate.js +0 -270
- package/dist/node_modules/recharts/es6/state/selectors/selectChartOffset.js +0 -98
- package/dist/node_modules/remeda/dist/chunk-AIG3BDKO.js +0 -9
- package/dist/node_modules/remeda/dist/chunk-D6FCK2GA.js +0 -8
- package/dist/node_modules/remeda/dist/chunk-KI5X74E2.js +0 -19
- package/dist/node_modules/remeda/dist/chunk-WIMGWYZL.js +0 -11
|
@@ -30,69 +30,69 @@ var W = Symbol.for("immer-nothing"), R = Symbol.for("immer-draftable"), u = Symb
|
|
|
30
30
|
// Note: if more errors are added, the errorOffset in Patches.ts should be increased
|
|
31
31
|
// See Patches.ts for additional errors
|
|
32
32
|
] : [];
|
|
33
|
-
function s(e, ...
|
|
33
|
+
function s(e, ...r) {
|
|
34
34
|
if (process.env.NODE_ENV !== "production") {
|
|
35
|
-
const
|
|
35
|
+
const t = Q[e], n = typeof t == "function" ? t.apply(null, r) : t;
|
|
36
36
|
throw new Error(`[Immer] ${n}`);
|
|
37
37
|
}
|
|
38
38
|
throw new Error(
|
|
39
39
|
`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`
|
|
40
40
|
);
|
|
41
41
|
}
|
|
42
|
-
var
|
|
43
|
-
function
|
|
42
|
+
var y = Object.getPrototypeOf;
|
|
43
|
+
function m(e) {
|
|
44
44
|
return !!e && !!e[u];
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
return e ?
|
|
46
|
+
function d(e) {
|
|
47
|
+
return e ? B(e) || Array.isArray(e) || !!e[R] || !!e.constructor?.[R] || P(e) || D(e) : !1;
|
|
48
48
|
}
|
|
49
49
|
var Y = Object.prototype.constructor.toString();
|
|
50
|
-
function
|
|
50
|
+
function B(e) {
|
|
51
51
|
if (!e || typeof e != "object")
|
|
52
52
|
return !1;
|
|
53
|
-
const
|
|
54
|
-
if (
|
|
53
|
+
const r = y(e);
|
|
54
|
+
if (r === null)
|
|
55
55
|
return !0;
|
|
56
|
-
const
|
|
57
|
-
return
|
|
56
|
+
const t = Object.hasOwnProperty.call(r, "constructor") && r.constructor;
|
|
57
|
+
return t === Object ? !0 : typeof t == "function" && Function.toString.call(t) === Y;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
|
|
61
|
-
t
|
|
62
|
-
}) : e.forEach((
|
|
59
|
+
function b(e, r) {
|
|
60
|
+
O(e) === 0 ? Reflect.ownKeys(e).forEach((t) => {
|
|
61
|
+
r(t, e[t], e);
|
|
62
|
+
}) : e.forEach((t, n) => r(n, t, e));
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
const
|
|
66
|
-
return
|
|
64
|
+
function O(e) {
|
|
65
|
+
const r = e[u];
|
|
66
|
+
return r ? r.type_ : Array.isArray(e) ? 1 : P(e) ? 2 : D(e) ? 3 : 0;
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
return
|
|
68
|
+
function E(e, r) {
|
|
69
|
+
return O(e) === 2 ? e.has(r) : Object.prototype.hasOwnProperty.call(e, r);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
const n =
|
|
73
|
-
n === 2 ? e.set(
|
|
71
|
+
function G(e, r, t) {
|
|
72
|
+
const n = O(e);
|
|
73
|
+
n === 2 ? e.set(r, t) : n === 3 ? e.add(t) : e[r] = t;
|
|
74
74
|
}
|
|
75
|
-
function Z(e,
|
|
76
|
-
return e ===
|
|
75
|
+
function Z(e, r) {
|
|
76
|
+
return e === r ? e !== 0 || 1 / e === 1 / r : e !== e && r !== r;
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function P(e) {
|
|
79
79
|
return e instanceof Map;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function D(e) {
|
|
82
82
|
return e instanceof Set;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function l(e) {
|
|
85
85
|
return e.copy_ || e.base_;
|
|
86
86
|
}
|
|
87
|
-
function N(e,
|
|
88
|
-
if (
|
|
87
|
+
function N(e, r) {
|
|
88
|
+
if (P(e))
|
|
89
89
|
return new Map(e);
|
|
90
|
-
if (
|
|
90
|
+
if (D(e))
|
|
91
91
|
return new Set(e);
|
|
92
92
|
if (Array.isArray(e))
|
|
93
93
|
return Array.prototype.slice.call(e);
|
|
94
|
-
const
|
|
95
|
-
if (
|
|
94
|
+
const t = B(e);
|
|
95
|
+
if (r === !0 || r === "class_only" && !t) {
|
|
96
96
|
const n = Object.getOwnPropertyDescriptors(e);
|
|
97
97
|
delete n[u];
|
|
98
98
|
let i = Reflect.ownKeys(n);
|
|
@@ -106,122 +106,127 @@ function N(e, t) {
|
|
|
106
106
|
value: e[c]
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
|
-
return Object.create(
|
|
109
|
+
return Object.create(y(e), n);
|
|
110
110
|
} else {
|
|
111
|
-
const n =
|
|
112
|
-
if (n !== null &&
|
|
111
|
+
const n = y(e);
|
|
112
|
+
if (n !== null && t)
|
|
113
113
|
return { ...e };
|
|
114
114
|
const i = Object.create(n);
|
|
115
115
|
return Object.assign(i, e);
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
function T(e,
|
|
119
|
-
return
|
|
118
|
+
function T(e, r = !1) {
|
|
119
|
+
return v(e) || m(e) || !d(e) || (O(e) > 1 && Object.defineProperties(e, {
|
|
120
|
+
set: { value: g },
|
|
121
|
+
add: { value: g },
|
|
122
|
+
clear: { value: g },
|
|
123
|
+
delete: { value: g }
|
|
124
|
+
}), Object.freeze(e), r && Object.values(e).forEach((t) => T(t, !0))), e;
|
|
120
125
|
}
|
|
121
|
-
function
|
|
126
|
+
function g() {
|
|
122
127
|
s(2);
|
|
123
128
|
}
|
|
124
|
-
function
|
|
129
|
+
function v(e) {
|
|
125
130
|
return Object.isFrozen(e);
|
|
126
131
|
}
|
|
127
|
-
var
|
|
128
|
-
function
|
|
129
|
-
const
|
|
130
|
-
return
|
|
132
|
+
var L = {};
|
|
133
|
+
function _(e) {
|
|
134
|
+
const r = L[e];
|
|
135
|
+
return r || s(0, e), r;
|
|
131
136
|
}
|
|
132
|
-
var
|
|
133
|
-
function
|
|
134
|
-
return
|
|
137
|
+
var h;
|
|
138
|
+
function U() {
|
|
139
|
+
return h;
|
|
135
140
|
}
|
|
136
|
-
function
|
|
141
|
+
function V(e, r) {
|
|
137
142
|
return {
|
|
138
143
|
drafts_: [],
|
|
139
144
|
parent_: e,
|
|
140
|
-
immer_:
|
|
145
|
+
immer_: r,
|
|
141
146
|
// Whenever the modified draft contains a draft from another scope, we
|
|
142
147
|
// need to prevent auto-freezing so the unowned draft can be finalized.
|
|
143
148
|
canAutoFreeze_: !0,
|
|
144
149
|
unfinalizedDrafts_: 0
|
|
145
150
|
};
|
|
146
151
|
}
|
|
147
|
-
function
|
|
148
|
-
|
|
152
|
+
function j(e, r) {
|
|
153
|
+
r && (_("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = r);
|
|
149
154
|
}
|
|
150
|
-
function
|
|
151
|
-
|
|
155
|
+
function A(e) {
|
|
156
|
+
I(e), e.drafts_.forEach(ee), e.drafts_ = null;
|
|
152
157
|
}
|
|
153
|
-
function
|
|
154
|
-
e ===
|
|
158
|
+
function I(e) {
|
|
159
|
+
e === h && (h = e.parent_);
|
|
155
160
|
}
|
|
156
|
-
function
|
|
157
|
-
return
|
|
161
|
+
function x(e) {
|
|
162
|
+
return h = V(h, e);
|
|
158
163
|
}
|
|
159
|
-
function
|
|
160
|
-
const
|
|
161
|
-
|
|
164
|
+
function ee(e) {
|
|
165
|
+
const r = e[u];
|
|
166
|
+
r.type_ === 0 || r.type_ === 1 ? r.revoke_() : r.revoked_ = !0;
|
|
162
167
|
}
|
|
163
|
-
function $(e,
|
|
164
|
-
|
|
165
|
-
const
|
|
166
|
-
return e !== void 0 && e !==
|
|
167
|
-
|
|
168
|
+
function $(e, r) {
|
|
169
|
+
r.unfinalizedDrafts_ = r.drafts_.length;
|
|
170
|
+
const t = r.drafts_[0];
|
|
171
|
+
return e !== void 0 && e !== t ? (t[u].modified_ && (A(r), s(4)), d(e) && (e = w(r, e), r.parent_ || z(r, e)), r.patches_ && _("Patches").generateReplacementPatches_(
|
|
172
|
+
t[u].base_,
|
|
168
173
|
e,
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
)) : e =
|
|
172
|
-
}
|
|
173
|
-
function
|
|
174
|
-
if (
|
|
175
|
-
return
|
|
176
|
-
const n =
|
|
174
|
+
r.patches_,
|
|
175
|
+
r.inversePatches_
|
|
176
|
+
)) : e = w(r, t, []), A(r), r.patches_ && r.patchListener_(r.patches_, r.inversePatches_), e !== W ? e : void 0;
|
|
177
|
+
}
|
|
178
|
+
function w(e, r, t) {
|
|
179
|
+
if (v(r))
|
|
180
|
+
return r;
|
|
181
|
+
const n = r[u];
|
|
177
182
|
if (!n)
|
|
178
|
-
return
|
|
179
|
-
|
|
180
|
-
(i, o) => K(e, n,
|
|
181
|
-
),
|
|
183
|
+
return b(
|
|
184
|
+
r,
|
|
185
|
+
(i, o) => K(e, n, r, i, o, t)
|
|
186
|
+
), r;
|
|
182
187
|
if (n.scope_ !== e)
|
|
183
|
-
return
|
|
188
|
+
return r;
|
|
184
189
|
if (!n.modified_)
|
|
185
|
-
return
|
|
190
|
+
return z(e, n.base_, !0), n.base_;
|
|
186
191
|
if (!n.finalized_) {
|
|
187
192
|
n.finalized_ = !0, n.scope_.unfinalizedDrafts_--;
|
|
188
193
|
const i = n.copy_;
|
|
189
194
|
let o = i, c = !1;
|
|
190
|
-
n.type_ === 3 && (o = new Set(i), i.clear(), c = !0),
|
|
195
|
+
n.type_ === 3 && (o = new Set(i), i.clear(), c = !0), b(
|
|
191
196
|
o,
|
|
192
|
-
(f,
|
|
193
|
-
),
|
|
197
|
+
(f, a) => K(e, n, i, f, a, t, c)
|
|
198
|
+
), z(e, i, !1), t && e.patches_ && _("Patches").generatePatches_(
|
|
194
199
|
n,
|
|
195
|
-
|
|
200
|
+
t,
|
|
196
201
|
e.patches_,
|
|
197
202
|
e.inversePatches_
|
|
198
203
|
);
|
|
199
204
|
}
|
|
200
205
|
return n.copy_;
|
|
201
206
|
}
|
|
202
|
-
function K(e,
|
|
203
|
-
if (process.env.NODE_ENV !== "production" && i ===
|
|
204
|
-
const f = o &&
|
|
205
|
-
!
|
|
206
|
-
if (
|
|
207
|
+
function K(e, r, t, n, i, o, c) {
|
|
208
|
+
if (process.env.NODE_ENV !== "production" && i === t && s(5), m(i)) {
|
|
209
|
+
const f = o && r && r.type_ !== 3 && // Set objects are atomic since they have no keys.
|
|
210
|
+
!E(r.assigned_, n) ? o.concat(n) : void 0, a = w(e, i, f);
|
|
211
|
+
if (G(t, n, a), m(a))
|
|
207
212
|
e.canAutoFreeze_ = !1;
|
|
208
213
|
else
|
|
209
214
|
return;
|
|
210
|
-
} else c &&
|
|
211
|
-
if (
|
|
215
|
+
} else c && t.add(i);
|
|
216
|
+
if (d(i) && !v(i)) {
|
|
212
217
|
if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1)
|
|
213
218
|
return;
|
|
214
|
-
|
|
219
|
+
w(e, i), (!r || !r.scope_.parent_) && typeof n != "symbol" && (P(t) ? t.has(n) : Object.prototype.propertyIsEnumerable.call(t, n)) && z(e, i);
|
|
215
220
|
}
|
|
216
221
|
}
|
|
217
|
-
function
|
|
218
|
-
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && T(
|
|
222
|
+
function z(e, r, t = !1) {
|
|
223
|
+
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && T(r, t);
|
|
219
224
|
}
|
|
220
|
-
function re(e,
|
|
221
|
-
const
|
|
222
|
-
type_:
|
|
225
|
+
function re(e, r) {
|
|
226
|
+
const t = Array.isArray(e), n = {
|
|
227
|
+
type_: t ? 1 : 0,
|
|
223
228
|
// Track which produce call this is associated with.
|
|
224
|
-
scope_:
|
|
229
|
+
scope_: r ? r.scope_ : U(),
|
|
225
230
|
// True for both shallow and deep changes.
|
|
226
231
|
modified_: !1,
|
|
227
232
|
// Used during finalization.
|
|
@@ -229,7 +234,7 @@ function re(e, t) {
|
|
|
229
234
|
// Track which properties have been assigned (true) or deleted (false).
|
|
230
235
|
assigned_: {},
|
|
231
236
|
// The parent draft state.
|
|
232
|
-
parent_:
|
|
237
|
+
parent_: r,
|
|
233
238
|
// The base state.
|
|
234
239
|
base_: e,
|
|
235
240
|
// The base proxy.
|
|
@@ -242,158 +247,158 @@ function re(e, t) {
|
|
|
242
247
|
isManual_: !1
|
|
243
248
|
};
|
|
244
249
|
let i = n, o = M;
|
|
245
|
-
|
|
250
|
+
t && (i = [n], o = p);
|
|
246
251
|
const { revoke: c, proxy: f } = Proxy.revocable(i, o);
|
|
247
252
|
return n.draft_ = f, n.revoke_ = c, f;
|
|
248
253
|
}
|
|
249
254
|
var M = {
|
|
250
|
-
get(e,
|
|
251
|
-
if (
|
|
255
|
+
get(e, r) {
|
|
256
|
+
if (r === u)
|
|
252
257
|
return e;
|
|
253
|
-
const
|
|
254
|
-
if (!
|
|
255
|
-
return
|
|
256
|
-
const n = r
|
|
257
|
-
return e.finalized_ || !
|
|
258
|
+
const t = l(e);
|
|
259
|
+
if (!E(t, r))
|
|
260
|
+
return te(e, t, r);
|
|
261
|
+
const n = t[r];
|
|
262
|
+
return e.finalized_ || !d(n) ? n : n === F(e.base_, r) ? (S(e), e.copy_[r] = k(n, e)) : n;
|
|
258
263
|
},
|
|
259
|
-
has(e,
|
|
260
|
-
return
|
|
264
|
+
has(e, r) {
|
|
265
|
+
return r in l(e);
|
|
261
266
|
},
|
|
262
267
|
ownKeys(e) {
|
|
263
|
-
return Reflect.ownKeys(
|
|
268
|
+
return Reflect.ownKeys(l(e));
|
|
264
269
|
},
|
|
265
|
-
set(e,
|
|
266
|
-
const n = H(
|
|
270
|
+
set(e, r, t) {
|
|
271
|
+
const n = H(l(e), r);
|
|
267
272
|
if (n?.set)
|
|
268
|
-
return n.set.call(e.draft_,
|
|
273
|
+
return n.set.call(e.draft_, t), !0;
|
|
269
274
|
if (!e.modified_) {
|
|
270
|
-
const i = F(
|
|
271
|
-
if (o && o.base_ ===
|
|
272
|
-
return e.copy_[
|
|
273
|
-
if (Z(
|
|
275
|
+
const i = F(l(e), r), o = i?.[u];
|
|
276
|
+
if (o && o.base_ === t)
|
|
277
|
+
return e.copy_[r] = t, e.assigned_[r] = !1, !0;
|
|
278
|
+
if (Z(t, i) && (t !== void 0 || E(e.base_, r)))
|
|
274
279
|
return !0;
|
|
275
|
-
|
|
280
|
+
S(e), C(e);
|
|
276
281
|
}
|
|
277
|
-
return e.copy_[
|
|
278
|
-
(
|
|
279
|
-
Number.isNaN(
|
|
282
|
+
return e.copy_[r] === t && // special case: handle new props with value 'undefined'
|
|
283
|
+
(t !== void 0 || r in e.copy_) || // special case: NaN
|
|
284
|
+
Number.isNaN(t) && Number.isNaN(e.copy_[r]) || (e.copy_[r] = t, e.assigned_[r] = !0), !0;
|
|
280
285
|
},
|
|
281
|
-
deleteProperty(e,
|
|
282
|
-
return F(e.base_,
|
|
286
|
+
deleteProperty(e, r) {
|
|
287
|
+
return F(e.base_, r) !== void 0 || r in e.base_ ? (e.assigned_[r] = !1, S(e), C(e)) : delete e.assigned_[r], e.copy_ && delete e.copy_[r], !0;
|
|
283
288
|
},
|
|
284
289
|
// Note: We never coerce `desc.value` into an Immer draft, because we can't make
|
|
285
290
|
// the same guarantee in ES5 mode.
|
|
286
|
-
getOwnPropertyDescriptor(e,
|
|
287
|
-
const
|
|
291
|
+
getOwnPropertyDescriptor(e, r) {
|
|
292
|
+
const t = l(e), n = Reflect.getOwnPropertyDescriptor(t, r);
|
|
288
293
|
return n && {
|
|
289
294
|
writable: !0,
|
|
290
|
-
configurable: e.type_ !== 1 ||
|
|
295
|
+
configurable: e.type_ !== 1 || r !== "length",
|
|
291
296
|
enumerable: n.enumerable,
|
|
292
|
-
value: r
|
|
297
|
+
value: t[r]
|
|
293
298
|
};
|
|
294
299
|
},
|
|
295
300
|
defineProperty() {
|
|
296
301
|
s(11);
|
|
297
302
|
},
|
|
298
303
|
getPrototypeOf(e) {
|
|
299
|
-
return
|
|
304
|
+
return y(e.base_);
|
|
300
305
|
},
|
|
301
306
|
setPrototypeOf() {
|
|
302
307
|
s(12);
|
|
303
308
|
}
|
|
304
|
-
},
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
return arguments[0] = arguments[0][0],
|
|
309
|
+
}, p = {};
|
|
310
|
+
b(M, (e, r) => {
|
|
311
|
+
p[e] = function() {
|
|
312
|
+
return arguments[0] = arguments[0][0], r.apply(this, arguments);
|
|
308
313
|
};
|
|
309
314
|
});
|
|
310
|
-
|
|
311
|
-
return process.env.NODE_ENV !== "production" && isNaN(parseInt(
|
|
315
|
+
p.deleteProperty = function(e, r) {
|
|
316
|
+
return process.env.NODE_ENV !== "production" && isNaN(parseInt(r)) && s(13), p.set.call(this, e, r, void 0);
|
|
312
317
|
};
|
|
313
|
-
|
|
314
|
-
return process.env.NODE_ENV !== "production" &&
|
|
318
|
+
p.set = function(e, r, t) {
|
|
319
|
+
return process.env.NODE_ENV !== "production" && r !== "length" && isNaN(parseInt(r)) && s(14), M.set.call(this, e[0], r, t, e[0]);
|
|
315
320
|
};
|
|
316
|
-
function F(e,
|
|
317
|
-
const
|
|
318
|
-
return (
|
|
321
|
+
function F(e, r) {
|
|
322
|
+
const t = e[u];
|
|
323
|
+
return (t ? l(t) : e)[r];
|
|
319
324
|
}
|
|
320
|
-
function
|
|
321
|
-
const n = H(
|
|
325
|
+
function te(e, r, t) {
|
|
326
|
+
const n = H(r, t);
|
|
322
327
|
return n ? "value" in n ? n.value : (
|
|
323
328
|
// This is a very special case, if the prop is a getter defined by the
|
|
324
329
|
// prototype, we should invoke it with the draft as context!
|
|
325
330
|
n.get?.call(e.draft_)
|
|
326
331
|
) : void 0;
|
|
327
332
|
}
|
|
328
|
-
function H(e,
|
|
329
|
-
if (!(
|
|
333
|
+
function H(e, r) {
|
|
334
|
+
if (!(r in e))
|
|
330
335
|
return;
|
|
331
|
-
let
|
|
332
|
-
for (;
|
|
333
|
-
const n = Object.getOwnPropertyDescriptor(
|
|
336
|
+
let t = y(e);
|
|
337
|
+
for (; t; ) {
|
|
338
|
+
const n = Object.getOwnPropertyDescriptor(t, r);
|
|
334
339
|
if (n)
|
|
335
340
|
return n;
|
|
336
|
-
|
|
341
|
+
t = y(t);
|
|
337
342
|
}
|
|
338
343
|
}
|
|
339
|
-
function
|
|
340
|
-
e.modified_ || (e.modified_ = !0, e.parent_ &&
|
|
344
|
+
function C(e) {
|
|
345
|
+
e.modified_ || (e.modified_ = !0, e.parent_ && C(e.parent_));
|
|
341
346
|
}
|
|
342
|
-
function
|
|
347
|
+
function S(e) {
|
|
343
348
|
e.copy_ || (e.copy_ = N(
|
|
344
349
|
e.base_,
|
|
345
350
|
e.scope_.immer_.useStrictShallowCopy_
|
|
346
351
|
));
|
|
347
352
|
}
|
|
348
|
-
var
|
|
353
|
+
var ne = class {
|
|
349
354
|
constructor(e) {
|
|
350
|
-
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.produce = (
|
|
351
|
-
if (typeof
|
|
352
|
-
const o =
|
|
353
|
-
|
|
355
|
+
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.produce = (r, t, n) => {
|
|
356
|
+
if (typeof r == "function" && typeof t != "function") {
|
|
357
|
+
const o = t;
|
|
358
|
+
t = r;
|
|
354
359
|
const c = this;
|
|
355
|
-
return function(
|
|
356
|
-
return c.produce(
|
|
360
|
+
return function(a = o, ...q) {
|
|
361
|
+
return c.produce(a, (J) => t.call(this, J, ...q));
|
|
357
362
|
};
|
|
358
363
|
}
|
|
359
|
-
typeof
|
|
364
|
+
typeof t != "function" && s(6), n !== void 0 && typeof n != "function" && s(7);
|
|
360
365
|
let i;
|
|
361
|
-
if (
|
|
362
|
-
const o =
|
|
366
|
+
if (d(r)) {
|
|
367
|
+
const o = x(this), c = k(r, void 0);
|
|
363
368
|
let f = !0;
|
|
364
369
|
try {
|
|
365
|
-
i =
|
|
370
|
+
i = t(c), f = !1;
|
|
366
371
|
} finally {
|
|
367
|
-
f ?
|
|
372
|
+
f ? A(o) : I(o);
|
|
368
373
|
}
|
|
369
|
-
return
|
|
370
|
-
} else if (!
|
|
371
|
-
if (i = r
|
|
374
|
+
return j(o, n), $(i, o);
|
|
375
|
+
} else if (!r || typeof r != "object") {
|
|
376
|
+
if (i = t(r), i === void 0 && (i = r), i === W && (i = void 0), this.autoFreeze_ && T(i, !0), n) {
|
|
372
377
|
const o = [], c = [];
|
|
373
|
-
|
|
378
|
+
_("Patches").generateReplacementPatches_(r, i, o, c), n(o, c);
|
|
374
379
|
}
|
|
375
380
|
return i;
|
|
376
381
|
} else
|
|
377
|
-
s(1,
|
|
378
|
-
}, this.produceWithPatches = (
|
|
379
|
-
if (typeof
|
|
380
|
-
return (c, ...f) => this.produceWithPatches(c, (
|
|
382
|
+
s(1, r);
|
|
383
|
+
}, this.produceWithPatches = (r, t) => {
|
|
384
|
+
if (typeof r == "function")
|
|
385
|
+
return (c, ...f) => this.produceWithPatches(c, (a) => r(a, ...f));
|
|
381
386
|
let n, i;
|
|
382
|
-
return [this.produce(
|
|
387
|
+
return [this.produce(r, t, (c, f) => {
|
|
383
388
|
n = c, i = f;
|
|
384
389
|
}), n, i];
|
|
385
390
|
}, typeof e?.autoFreeze == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof e?.useStrictShallowCopy == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy);
|
|
386
391
|
}
|
|
387
392
|
createDraft(e) {
|
|
388
|
-
|
|
389
|
-
const
|
|
390
|
-
return
|
|
393
|
+
d(e) || s(8), m(e) && (e = ie(e));
|
|
394
|
+
const r = x(this), t = k(e, void 0);
|
|
395
|
+
return t[u].isManual_ = !0, I(r), t;
|
|
391
396
|
}
|
|
392
|
-
finishDraft(e,
|
|
393
|
-
const
|
|
394
|
-
(!
|
|
395
|
-
const { scope_: n } =
|
|
396
|
-
return
|
|
397
|
+
finishDraft(e, r) {
|
|
398
|
+
const t = e && e[u];
|
|
399
|
+
(!t || !t.isManual_) && s(9);
|
|
400
|
+
const { scope_: n } = t;
|
|
401
|
+
return j(n, r), $(void 0, n);
|
|
397
402
|
}
|
|
398
403
|
/**
|
|
399
404
|
* Pass true to automatically freeze all copies created by Immer.
|
|
@@ -411,65 +416,57 @@ var ie = class {
|
|
|
411
416
|
setUseStrictShallowCopy(e) {
|
|
412
417
|
this.useStrictShallowCopy_ = e;
|
|
413
418
|
}
|
|
414
|
-
applyPatches(e,
|
|
415
|
-
let
|
|
416
|
-
for (
|
|
417
|
-
const i = t
|
|
419
|
+
applyPatches(e, r) {
|
|
420
|
+
let t;
|
|
421
|
+
for (t = r.length - 1; t >= 0; t--) {
|
|
422
|
+
const i = r[t];
|
|
418
423
|
if (i.path.length === 0 && i.op === "replace") {
|
|
419
424
|
e = i.value;
|
|
420
425
|
break;
|
|
421
426
|
}
|
|
422
427
|
}
|
|
423
|
-
|
|
424
|
-
const n =
|
|
425
|
-
return
|
|
428
|
+
t > -1 && (r = r.slice(t + 1));
|
|
429
|
+
const n = _("Patches").applyPatches_;
|
|
430
|
+
return m(e) ? n(e, r) : this.produce(
|
|
426
431
|
e,
|
|
427
|
-
(i) => n(i,
|
|
432
|
+
(i) => n(i, r)
|
|
428
433
|
);
|
|
429
434
|
}
|
|
430
435
|
};
|
|
431
|
-
function k(e,
|
|
432
|
-
const
|
|
433
|
-
return (
|
|
436
|
+
function k(e, r) {
|
|
437
|
+
const t = P(e) ? _("MapSet").proxyMap_(e, r) : D(e) ? _("MapSet").proxySet_(e, r) : re(e, r);
|
|
438
|
+
return (r ? r.scope_ : U()).drafts_.push(t), t;
|
|
434
439
|
}
|
|
435
|
-
function
|
|
436
|
-
return
|
|
440
|
+
function ie(e) {
|
|
441
|
+
return m(e) || s(10, e), X(e);
|
|
437
442
|
}
|
|
438
443
|
function X(e) {
|
|
439
|
-
if (!
|
|
444
|
+
if (!d(e) || v(e))
|
|
440
445
|
return e;
|
|
441
|
-
const
|
|
442
|
-
let
|
|
443
|
-
if (
|
|
444
|
-
if (!
|
|
445
|
-
return
|
|
446
|
-
|
|
446
|
+
const r = e[u];
|
|
447
|
+
let t;
|
|
448
|
+
if (r) {
|
|
449
|
+
if (!r.modified_)
|
|
450
|
+
return r.base_;
|
|
451
|
+
r.finalized_ = !0, t = N(e, r.scope_.immer_.useStrictShallowCopy_);
|
|
447
452
|
} else
|
|
448
|
-
|
|
449
|
-
return
|
|
450
|
-
|
|
451
|
-
}),
|
|
452
|
-
}
|
|
453
|
-
var
|
|
454
|
-
a.produceWithPatches.bind(
|
|
455
|
-
a
|
|
456
|
-
);
|
|
457
|
-
a.setAutoFreeze.bind(a);
|
|
458
|
-
a.setUseStrictShallowCopy.bind(a);
|
|
459
|
-
a.applyPatches.bind(a);
|
|
460
|
-
a.createDraft.bind(a);
|
|
461
|
-
a.finishDraft.bind(a);
|
|
453
|
+
t = N(e, !0);
|
|
454
|
+
return b(t, (n, i) => {
|
|
455
|
+
G(t, n, X(i));
|
|
456
|
+
}), r && (r.finalized_ = !1), t;
|
|
457
|
+
}
|
|
458
|
+
var oe = new ne(), ce = oe.produce;
|
|
462
459
|
function fe(e) {
|
|
463
460
|
return e;
|
|
464
461
|
}
|
|
465
462
|
export {
|
|
466
|
-
|
|
463
|
+
ne as Immer,
|
|
467
464
|
fe as castDraft,
|
|
468
|
-
|
|
465
|
+
ie as current,
|
|
469
466
|
T as freeze,
|
|
470
467
|
R as immerable,
|
|
471
|
-
|
|
472
|
-
|
|
468
|
+
m as isDraft,
|
|
469
|
+
d as isDraftable,
|
|
473
470
|
W as nothing,
|
|
474
471
|
ce as produce
|
|
475
472
|
};
|