@perses-dev/heatmap-chart-plugin 0.4.1 → 0.5.0-beta.1
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/__mf/css/async/653.85c2cbf6.css +1 -0
- package/__mf/font/inter-cyrillic-300-normal.432f2b21.woff +0 -0
- package/__mf/font/inter-cyrillic-300-normal.9da91009.woff2 +0 -0
- package/__mf/font/inter-cyrillic-400-normal.372704ff.woff2 +0 -0
- package/__mf/font/inter-cyrillic-400-normal.a6b6ef6f.woff +0 -0
- package/__mf/font/inter-cyrillic-500-normal.7c15bba8.woff2 +0 -0
- package/__mf/font/inter-cyrillic-500-normal.b9f8c929.woff +0 -0
- package/__mf/font/inter-cyrillic-600-normal.2f42892a.woff2 +0 -0
- package/__mf/font/inter-cyrillic-600-normal.c3987adc.woff +0 -0
- package/__mf/font/inter-cyrillic-700-normal.93eba3c3.woff +0 -0
- package/__mf/font/inter-cyrillic-700-normal.e9e5b2dc.woff2 +0 -0
- package/__mf/font/inter-cyrillic-900-normal.f285bd7a.woff2 +0 -0
- package/__mf/font/inter-cyrillic-900-normal.ffbd8a3a.woff +0 -0
- package/__mf/font/inter-cyrillic-ext-300-normal.95bb9038.woff2 +0 -0
- package/__mf/font/inter-cyrillic-ext-300-normal.cfc143a9.woff +0 -0
- package/__mf/font/inter-cyrillic-ext-400-normal.2a31c04b.woff +0 -0
- package/__mf/font/inter-cyrillic-ext-400-normal.f572b170.woff2 +0 -0
- package/__mf/font/inter-cyrillic-ext-500-normal.5a6bb1da.woff +0 -0
- package/__mf/font/inter-cyrillic-ext-500-normal.fe0d9b14.woff2 +0 -0
- package/__mf/font/inter-cyrillic-ext-600-normal.ecbdecad.woff +0 -0
- package/__mf/font/inter-cyrillic-ext-600-normal.f7b3c15b.woff2 +0 -0
- package/__mf/font/inter-cyrillic-ext-700-normal.4b4022a6.woff +0 -0
- package/__mf/font/inter-cyrillic-ext-700-normal.74b516d2.woff2 +0 -0
- package/__mf/font/inter-cyrillic-ext-900-normal.9970ddb5.woff +0 -0
- package/__mf/font/inter-cyrillic-ext-900-normal.a0d59adc.woff2 +0 -0
- package/__mf/font/inter-greek-300-normal.0d7be683.woff2 +0 -0
- package/__mf/font/inter-greek-300-normal.8f0b988e.woff +0 -0
- package/__mf/font/inter-greek-400-normal.cc58c11b.woff +0 -0
- package/__mf/font/inter-greek-400-normal.d7020e3c.woff2 +0 -0
- package/__mf/font/inter-greek-500-normal.d9a33207.woff +0 -0
- package/__mf/font/inter-greek-500-normal.f41f43db.woff2 +0 -0
- package/__mf/font/inter-greek-600-normal.4ec0c1c1.woff +0 -0
- package/__mf/font/inter-greek-600-normal.cc532937.woff2 +0 -0
- package/__mf/font/inter-greek-700-normal.5ec6c758.woff +0 -0
- package/__mf/font/inter-greek-700-normal.97f0eeeb.woff2 +0 -0
- package/__mf/font/inter-greek-900-normal.46b66369.woff2 +0 -0
- package/__mf/font/inter-greek-900-normal.9ae3a3c5.woff +0 -0
- package/__mf/font/inter-greek-ext-300-normal.10247a66.woff2 +0 -0
- package/__mf/font/inter-greek-ext-300-normal.4668e5cb.woff +0 -0
- package/__mf/font/inter-greek-ext-400-normal.4ce1df5d.woff2 +0 -0
- package/__mf/font/inter-greek-ext-400-normal.88ede1ea.woff +0 -0
- package/__mf/font/inter-greek-ext-500-normal.7a4aa726.woff +0 -0
- package/__mf/font/inter-greek-ext-500-normal.cbd51e2d.woff2 +0 -0
- package/__mf/font/inter-greek-ext-600-normal.089a95ee.woff +0 -0
- package/__mf/font/inter-greek-ext-600-normal.1f33d317.woff2 +0 -0
- package/__mf/font/inter-greek-ext-700-normal.31f1075d.woff +0 -0
- package/__mf/font/inter-greek-ext-700-normal.827cd618.woff2 +0 -0
- package/__mf/font/inter-greek-ext-900-normal.531bcee7.woff +0 -0
- package/__mf/font/inter-greek-ext-900-normal.8a9b36b9.woff2 +0 -0
- package/__mf/font/inter-latin-300-normal.15fb600d.woff2 +0 -0
- package/__mf/font/inter-latin-300-normal.6f95f590.woff +0 -0
- package/__mf/font/inter-latin-400-normal.2c7a775c.woff +0 -0
- package/__mf/font/inter-latin-400-normal.ef6d3f52.woff2 +0 -0
- package/__mf/font/inter-latin-500-normal.b7b43ace.woff2 +0 -0
- package/__mf/font/inter-latin-500-normal.cb4c8ceb.woff +0 -0
- package/__mf/font/inter-latin-600-normal.8fb1a964.woff2 +0 -0
- package/__mf/font/inter-latin-600-normal.ce0f5f43.woff +0 -0
- package/__mf/font/inter-latin-700-normal.953b7aa5.woff2 +0 -0
- package/__mf/font/inter-latin-700-normal.9c21d4dc.woff +0 -0
- package/__mf/font/inter-latin-900-normal.2a8028ec.woff2 +0 -0
- package/__mf/font/inter-latin-900-normal.fa252135.woff +0 -0
- package/__mf/font/inter-latin-ext-300-normal.167cc8c9.woff2 +0 -0
- package/__mf/font/inter-latin-ext-300-normal.f695be66.woff +0 -0
- package/__mf/font/inter-latin-ext-400-normal.32a25442.woff2 +0 -0
- package/__mf/font/inter-latin-ext-400-normal.4edcaace.woff +0 -0
- package/__mf/font/inter-latin-ext-500-normal.a19a84a6.woff +0 -0
- package/__mf/font/inter-latin-ext-500-normal.d9b491de.woff2 +0 -0
- package/__mf/font/inter-latin-ext-600-normal.38b075d8.woff2 +0 -0
- package/__mf/font/inter-latin-ext-600-normal.49faa47a.woff +0 -0
- package/__mf/font/inter-latin-ext-700-normal.93534b50.woff +0 -0
- package/__mf/font/inter-latin-ext-700-normal.b63daa1a.woff2 +0 -0
- package/__mf/font/inter-latin-ext-900-normal.0efdb307.woff +0 -0
- package/__mf/font/inter-latin-ext-900-normal.9c0fc2c7.woff2 +0 -0
- package/__mf/font/inter-vietnamese-300-normal.aad496d8.woff +0 -0
- package/__mf/font/inter-vietnamese-300-normal.ad9ef503.woff2 +0 -0
- package/__mf/font/inter-vietnamese-400-normal.a9dd2faf.woff +0 -0
- package/__mf/font/inter-vietnamese-400-normal.de4fc44f.woff2 +0 -0
- package/__mf/font/inter-vietnamese-500-normal.7c0a695f.woff2 +0 -0
- package/__mf/font/inter-vietnamese-500-normal.a3a73b95.woff +0 -0
- package/__mf/font/inter-vietnamese-600-normal.9d518599.woff2 +0 -0
- package/__mf/font/inter-vietnamese-600-normal.c5ce3fcb.woff +0 -0
- package/__mf/font/inter-vietnamese-700-normal.bc68b199.woff +0 -0
- package/__mf/font/inter-vietnamese-700-normal.faf12809.woff2 +0 -0
- package/__mf/font/inter-vietnamese-900-normal.2b782045.woff +0 -0
- package/__mf/font/inter-vietnamese-900-normal.e639b65a.woff2 +0 -0
- package/__mf/js/HeatMapChart.32a03178.js +7 -0
- package/__mf/js/async/{121.8ac14a6e.js → 121.b18ceb80.js} +2 -2
- package/__mf/js/async/392.0f59f214.js +2 -0
- package/__mf/js/async/470.399d3ba9.js +2 -0
- package/__mf/js/async/535.1d535ef6.js +1 -0
- package/__mf/js/async/653.fc6fe010.js +71 -0
- package/__mf/js/async/{12.4ae967ba.js.LICENSE.txt → 653.fc6fe010.js.LICENSE.txt} +42 -2
- package/__mf/js/async/888.1c9d2db3.js +1 -0
- package/__mf/js/async/941.a8fee60a.js +2 -0
- package/__mf/js/async/963.f3d8b714.js +1 -0
- package/__mf/js/async/980.2f9fb38d.js +83 -0
- package/__mf/js/async/{980.092bc51a.js.LICENSE.txt → 980.2f9fb38d.js.LICENSE.txt} +1 -1
- package/__mf/js/async/{__federation_expose_HeatMapChart.142ce29b.js → __federation_expose_HeatMapChart.d2caae8a.js} +8 -8
- package/__mf/js/main.abb24772.js +7 -0
- package/lib/cjs/components/HeatMapChart.js +3 -4
- package/lib/cjs/components/HeatMapTooltip.js +2 -3
- package/lib/cjs/utils/data-transform.js +2 -2
- package/lib/components/HeatMapChart.d.ts +2 -1
- package/lib/components/HeatMapChart.d.ts.map +1 -1
- package/lib/components/HeatMapChart.js +1 -2
- package/lib/components/HeatMapChart.js.map +1 -1
- package/lib/components/HeatMapChartPanel.d.ts +1 -1
- package/lib/components/HeatMapChartPanel.d.ts.map +1 -1
- package/lib/components/HeatMapChartPanel.js.map +1 -1
- package/lib/components/HeatMapTooltip.d.ts +1 -1
- package/lib/components/HeatMapTooltip.d.ts.map +1 -1
- package/lib/components/HeatMapTooltip.js +1 -2
- package/lib/components/HeatMapTooltip.js.map +1 -1
- package/lib/heat-map-chart-model.d.ts +2 -1
- package/lib/heat-map-chart-model.d.ts.map +1 -1
- package/lib/heat-map-chart-model.js.map +1 -1
- package/lib/utils/data-transform.d.ts +1 -1
- package/lib/utils/data-transform.d.ts.map +1 -1
- package/lib/utils/data-transform.js +1 -1
- package/lib/utils/data-transform.js.map +1 -1
- package/lib/utils/thresholds.d.ts +1 -2
- package/lib/utils/thresholds.d.ts.map +1 -1
- package/lib/utils/thresholds.js.map +1 -1
- package/mf-manifest.json +38 -33
- package/mf-stats.json +45 -37
- package/package.json +5 -4
- package/__mf/css/async/442.d3010b86.css +0 -1
- package/__mf/css/async/61.d3010b86.css +0 -1
- package/__mf/font/lato-all-300-normal.322bdf14.woff +0 -0
- package/__mf/font/lato-all-400-normal.63513b00.woff +0 -0
- package/__mf/font/lato-all-700-normal.bb27db94.woff +0 -0
- package/__mf/font/lato-all-900-normal.a27049a3.woff +0 -0
- package/__mf/font/lato-latin-300-normal.c5195215.woff2 +0 -0
- package/__mf/font/lato-latin-400-normal.b7ffde23.woff2 +0 -0
- package/__mf/font/lato-latin-700-normal.d5eb20bc.woff2 +0 -0
- package/__mf/font/lato-latin-900-normal.d884a71c.woff2 +0 -0
- package/__mf/font/lato-latin-ext-300-normal.abcc64a9.woff2 +0 -0
- package/__mf/font/lato-latin-ext-400-normal.6ebed106.woff2 +0 -0
- package/__mf/font/lato-latin-ext-700-normal.8697d1d5.woff2 +0 -0
- package/__mf/font/lato-latin-ext-900-normal.20a2b415.woff2 +0 -0
- package/__mf/js/HeatMapChart.9e89e9fc.js +0 -6
- package/__mf/js/async/12.4ae967ba.js +0 -2
- package/__mf/js/async/392.81aab132.js +0 -2
- package/__mf/js/async/470.6889fffa.js +0 -2
- package/__mf/js/async/631.8bf555e3.js +0 -71
- package/__mf/js/async/631.8bf555e3.js.LICENSE.txt +0 -21
- package/__mf/js/async/65.b8155b50.js +0 -1
- package/__mf/js/async/888.944e0384.js +0 -1
- package/__mf/js/async/941.05360f3e.js +0 -2
- package/__mf/js/async/963.6eed3d33.js +0 -1
- package/__mf/js/async/980.092bc51a.js +0 -83
- package/__mf/js/main.d436962b.js +0 -6
- /package/__mf/js/async/{121.8ac14a6e.js.LICENSE.txt → 121.b18ceb80.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{392.81aab132.js.LICENSE.txt → 392.0f59f214.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{470.6889fffa.js.LICENSE.txt → 470.399d3ba9.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{941.05360f3e.js.LICENSE.txt → 941.a8fee60a.js.LICENSE.txt} +0 -0
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* react-table
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) TanStack
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the MIT license found in the
|
|
7
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
-
*
|
|
9
|
-
* @license MIT
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* table-core
|
|
14
|
-
*
|
|
15
|
-
* Copyright (c) TanStack
|
|
16
|
-
*
|
|
17
|
-
* This source code is licensed under the MIT license found in the
|
|
18
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
19
|
-
*
|
|
20
|
-
* @license MIT
|
|
21
|
-
*/
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.chunk_HeatMapChart=self.chunk_HeatMapChart||[]).push([["65"],{8102:function(t,n,e){e.d(n,{A:()=>r});function r(){return(r=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)({}).hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t}).apply(null,arguments)}},5130:function(t,n,e){e.d(n,{f:()=>i});var r=e(2015),a=e(4721);function i(t,n,e){let i=(0,a.a)(t,e?.in);return isNaN(n)?(0,r.w)(e?.in||t,NaN):(n&&i.setDate(i.getDate()+n),i)}},8086:function(t,n,e){e.d(n,{P:()=>i});var r=e(2015),a=e(4721);function i(t,n,e){let i=(0,a.a)(t,e?.in);if(isNaN(n))return(0,r.w)(e?.in||t,NaN);if(!n)return i;let u=i.getDate(),o=(0,r.w)(e?.in||t,i.getTime());return(o.setMonth(i.getMonth()+n+1,0),u>=o.getDate())?o:(i.setFullYear(o.getFullYear(),o.getMonth(),u),i)}},439:function(t,n,e){e.d(n,{_P:()=>u,my:()=>r,s0:()=>i,w4:()=>a});let r=6048e5,a=864e5,i=36e5,u=Symbol.for("constructDateFrom")},2015:function(t,n,e){e.d(n,{w:()=>a});var r=e(439);function a(t,n){return"function"==typeof t?t(n):t&&"object"==typeof t&&r._P in t?t[r._P](n):t instanceof Date?new t.constructor(n):new Date(n)}},4721:function(t,n,e){e.d(n,{a:()=>a});var r=e(2015);function a(t,n){return(0,r.w)(n||t,t)}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.chunk_HeatMapChart=self.chunk_HeatMapChart||[]).push([["888"],{5130:function(t,e,n){n.d(e,{f:()=>u});var a=n(2015),r=n(4721);function u(t,e,n){let u=(0,r.a)(t,n?.in);return isNaN(e)?(0,a.w)(n?.in||t,NaN):(e&&u.setDate(u.getDate()+e),u)}},8086:function(t,e,n){n.d(e,{P:()=>u});var a=n(2015),r=n(4721);function u(t,e,n){let u=(0,r.a)(t,n?.in);if(isNaN(e))return(0,a.w)(n?.in||t,NaN);if(!e)return u;let i=u.getDate(),o=(0,a.w)(n?.in||t,u.getTime());return(o.setMonth(u.getMonth()+e+1,0),i>=o.getDate())?o:(u.setFullYear(o.getFullYear(),o.getMonth(),i),u)}},439:function(t,e,n){n.d(e,{_P:()=>i,my:()=>a,s0:()=>u,w4:()=>r});let a=6048e5,r=864e5,u=36e5,i=Symbol.for("constructDateFrom")},2015:function(t,e,n){n.d(e,{w:()=>r});var a=n(439);function r(t,e){return"function"==typeof t?t(e):t&&"object"==typeof t&&a._P in t?t[a._P](e):t instanceof Date?new t.constructor(e):new Date(e)}},4721:function(t,e,n){n.d(e,{a:()=>r});var a=n(2015);function r(t,e){return(0,a.w)(e||t,t)}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 941.05360f3e.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.chunk_HeatMapChart=self.chunk_HeatMapChart||[]).push([["941"],{7470:function(e,r,t){var o=t(231);r.createRoot=o.createRoot,r.hydrateRoot=o.hydrateRoot},2192:function(e,r,t){var o=t(451),n=Symbol.for("react.element"),a=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,c=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function _(e,r,t){var o,a={},_=null,s=null;for(o in void 0!==t&&(_=""+t),void 0!==r.key&&(_=""+r.key),void 0!==r.ref&&(s=r.ref),r)f.call(r,o)&&!u.hasOwnProperty(o)&&(a[o]=r[o]);if(e&&e.defaultProps)for(o in r=e.defaultProps)void 0===a[o]&&(a[o]=r[o]);return{$$typeof:n,type:e,key:_,ref:s,props:a,_owner:c.current}}r.Fragment=a,r.jsx=_,r.jsxs=_},2540:function(e,r,t){e.exports=t(2192)},6604:function(e,r,t){t.r(r);var o=t(2540),n=t(451),a=t.n(n);t(7470).createRoot(document.getElementById("root")).render((0,o.jsx)(a().StrictMode,{}))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.chunk_HeatMapChart=self.chunk_HeatMapChart||[]).push([["963"],{8662:function(e,t,r){r.r(t),r.d(t,{Immer:()=>J,applyPatches:()=>Z,castDraft:()=>er,castImmutable:()=>en,createDraft:()=>ee,current:()=>$,enableMapSet:()=>B,enablePatches:()=>q,finishDraft:()=>et,freeze:()=>P,immerable:()=>s,isDraft:()=>u,isDraftable:()=>l,nothing:()=>a,original:()=>_,produce:()=>Q,produceWithPatches:()=>T,setAutoFreeze:()=>V,setUseStrictShallowCopy:()=>Y});var n,a=Symbol.for("immer-nothing"),s=Symbol.for("immer-draftable"),i=Symbol.for("immer-state");function o(e){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var c=Object.getPrototypeOf;function u(e){return!!e&&!!e[i]}function l(e){return!!e&&(p(e)||Array.isArray(e)||!!e[s]||!!e.constructor?.[s]||g(e)||m(e))}var f=Object.prototype.constructor.toString();function p(e){if(!e||"object"!=typeof e)return!1;let t=c(e);if(null===t)return!0;let r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===f}function _(e){return u(e)||o(15,e),e[i].base_}function h(e,t){0===d(e)?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function d(e){let t=e[i];return t?t.type_:Array.isArray(e)?1:g(e)?2:3*!!m(e)}function y(e,t){return 2===d(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function b(e,t){return 2===d(e)?e.get(t):e[t]}function v(e,t,r){let n=d(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function g(e){return e instanceof Map}function m(e){return e instanceof Set}function w(e){return e.copy_||e.base_}function S(e,t){if(g(e))return new Map(e);if(m(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let r=p(e);if(!0!==t&&("class_only"!==t||r)){let t=c(e);return null!==t&&r?{...e}:Object.assign(Object.create(t),e)}{let t=Object.getOwnPropertyDescriptors(e);delete t[i];let r=Reflect.ownKeys(t);for(let n=0;n<r.length;n++){let a=r[n],s=t[a];!1===s.writable&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(t[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[a]})}return Object.create(c(e),t)}}function P(e,t=!1){return O(e)||u(e)||!l(e)||(d(e)>1&&(e.set=e.add=e.clear=e.delete=z),Object.freeze(e),t&&Object.entries(e).forEach(([e,t])=>P(t,!0))),e}function z(){o(2)}function O(e){return Object.isFrozen(e)}var M={};function A(e){let t=M[e];return t||o(0,e),t}function j(e,t){t&&(A("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function D(e){F(e),e.drafts_.forEach(E),e.drafts_=null}function F(e){e===n&&(n=e.parent_)}function k(e){return n={drafts_:[],parent_:n,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function E(e){let t=e[i];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function x(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];return void 0!==e&&e!==r?(r[i].modified_&&(D(t),o(4)),l(e)&&(e=C(t,e),t.parent_||R(t,e)),t.patches_&&A("Patches").generateReplacementPatches_(r[i].base_,e,t.patches_,t.inversePatches_)):e=C(t,r,[]),D(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==a?e:void 0}function C(e,t,r){if(O(t))return t;let n=t[i];if(!n)return h(t,(a,s)=>N(e,n,t,a,s,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return R(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;let t=n.copy_,a=t,s=!1;3===n.type_&&(a=new Set(t),t.clear(),s=!0),h(a,(a,i)=>N(e,n,t,a,i,r,s)),R(e,t,!1),r&&e.patches_&&A("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function N(e,t,r,n,a,s,i){if(u(a)){let i=C(e,a,s&&t&&3!==t.type_&&!y(t.assigned_,n)?s.concat(n):void 0);if(v(r,n,i),!u(i))return;e.canAutoFreeze_=!1}else i&&r.add(a);if(l(a)&&!O(a)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;C(e,a),(!t||!t.scope_.parent_)&&"symbol"!=typeof n&&Object.prototype.propertyIsEnumerable.call(r,n)&&R(e,a)}}function R(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&P(t,r)}var K={get(e,t){if(t===i)return e;let r=w(e);if(!y(r,t)){var n;let a;return n=e,(a=U(r,t))?"value"in a?a.value:a.get?.call(n.draft_):void 0}let a=r[t];return e.finalized_||!l(a)?a:a===I(e.base_,t)?(L(e),e.copy_[t]=X(a,e)):a},has:(e,t)=>t in w(e),ownKeys:e=>Reflect.ownKeys(w(e)),set(e,t,r){let n=U(w(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let n=I(w(e),t),a=n?.[i];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if((r===n?0!==r||1/r==1/n:r!=r&&n!=n)&&(void 0!==r||y(e.base_,t)))return!0;L(e),H(e)}return!!(e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t]))||(e.copy_[t]=r,e.assigned_[t]=!0,!0)},deleteProperty:(e,t)=>(void 0!==I(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,L(e),H(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let r=w(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty(){o(11)},getPrototypeOf:e=>c(e.base_),setPrototypeOf(){o(12)}},W={};function I(e,t){let r=e[i];return(r?w(r):e)[t]}function U(e,t){if(!(t in e))return;let r=c(e);for(;r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=c(r)}}function H(e){!e.modified_&&(e.modified_=!0,e.parent_&&H(e.parent_))}function L(e){e.copy_||(e.copy_=S(e.base_,e.scope_.immer_.useStrictShallowCopy_))}h(K,(e,t)=>{W[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),W.deleteProperty=function(e,t){return W.set.call(this,e,t,void 0)},W.set=function(e,t,r){return K.set.call(this,e[0],t,r,e[0])};var J=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,r)=>{let n;if("function"==typeof e&&"function"!=typeof t){let r=t;t=e;let n=this;return function(e=r,...a){return n.produce(e,e=>t.call(this,e,...a))}}if("function"!=typeof t&&o(6),void 0!==r&&"function"!=typeof r&&o(7),l(e)){let a=k(this),s=X(e,void 0),i=!0;try{n=t(s),i=!1}finally{i?D(a):F(a)}return j(a,r),x(n,a)}if(e&&"object"==typeof e)o(1,e);else{if(void 0===(n=t(e))&&(n=e),n===a&&(n=void 0),this.autoFreeze_&&P(n,!0),r){let t=[],a=[];A("Patches").generateReplacementPatches_(e,n,t,a),r(t,a)}return n}},this.produceWithPatches=(e,t)=>{let r,n;return"function"==typeof e?(t,...r)=>this.produceWithPatches(t,t=>e(t,...r)):[this.produce(e,t,(e,t)=>{r=e,n=t}),r,n]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){l(e)||o(8),u(e)&&(e=$(e));let t=k(this),r=X(e,void 0);return r[i].isManual_=!0,F(t),r}finishDraft(e,t){let r=e&&e[i];r&&r.isManual_||o(9);let{scope_:n}=r;return j(n,t),x(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));let n=A("Patches").applyPatches_;return u(e)?n(e,t):this.produce(e,e=>n(e,t))}};function X(e,t){let r=g(e)?A("MapSet").proxyMap_(e,t):m(e)?A("MapSet").proxySet_(e,t):function(e,t){let r=Array.isArray(e),a={type_:+!!r,scope_:t?t.scope_:n,modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},s=a,i=K;r&&(s=[a],i=W);let{revoke:o,proxy:c}=Proxy.revocable(s,i);return a.draft_=c,a.revoke_=o,c}(e,t);return(t?t.scope_:n).drafts_.push(r),r}function $(e){return u(e)||o(10,e),function e(t){let r;if(!l(t)||O(t))return t;let n=t[i];if(n){if(!n.modified_)return n.base_;n.finalized_=!0,r=S(t,n.scope_.immer_.useStrictShallowCopy_)}else r=S(t,!0);return h(r,(t,n)=>{v(r,t,e(n))}),n&&(n.finalized_=!1),r}(e)}function q(){let e="replace",t="remove";function r(e){if(!l(e))return e;if(Array.isArray(e))return e.map(r);if(g(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,r(t)]));if(m(e))return new Set(Array.from(e).map(r));let t=Object.create(c(e));for(let n in e)t[n]=r(e[n]);return y(e,s)&&(t[s]=e[s]),t}function n(e){return u(e)?r(e):e}M.Patches||(M.Patches={applyPatches_:function(n,a){return a.forEach(a=>{let{path:s,op:i}=a,c=n;for(let e=0;e<s.length-1;e++){let t=d(c),r=s[e];"string"!=typeof r&&"number"!=typeof r&&(r=""+r),(0===t||1===t)&&("__proto__"===r||"constructor"===r)&&o(19),"function"==typeof c&&"prototype"===r&&o(19),"object"!=typeof(c=b(c,r))&&o(18,s.join("/"))}let u=d(c),l=r(a.value),f=s[s.length-1];switch(i){case e:switch(u){case 2:return c.set(f,l);case 3:o(16);default:return c[f]=l}case"add":switch(u){case 1:return"-"===f?c.push(l):c.splice(f,0,l);case 2:return c.set(f,l);case 3:return c.add(l);default:return c[f]=l}case t:switch(u){case 1:return c.splice(f,1);case 2:return c.delete(f);case 3:return c.delete(a.value);default:return delete c[f]}default:o(17,i)}}),n},generatePatches_:function(r,a,s,i){switch(r.type_){case 0:case 2:return function(r,a,s,i){let{base_:o,copy_:c}=r;h(r.assigned_,(r,u)=>{let l=b(o,r),f=b(c,r),p=u?y(o,r)?e:"add":t;if(l===f&&p===e)return;let _=a.concat(r);s.push(p===t?{op:p,path:_}:{op:p,path:_,value:f}),i.push("add"===p?{op:t,path:_}:p===t?{op:"add",path:_,value:n(l)}:{op:e,path:_,value:n(l)})})}(r,a,s,i);case 1:return function(r,a,s,i){let{base_:o,assigned_:c}=r,u=r.copy_;u.length<o.length&&([o,u]=[u,o],[s,i]=[i,s]);for(let t=0;t<o.length;t++)if(c[t]&&u[t]!==o[t]){let r=a.concat([t]);s.push({op:e,path:r,value:n(u[t])}),i.push({op:e,path:r,value:n(o[t])})}for(let e=o.length;e<u.length;e++){let t=a.concat([e]);s.push({op:"add",path:t,value:n(u[e])})}for(let e=u.length-1;o.length<=e;--e){let r=a.concat([e]);i.push({op:t,path:r})}}(r,a,s,i);case 3:return function(e,r,n,a){let{base_:s,copy_:i}=e,o=0;s.forEach(e=>{if(!i.has(e)){let s=r.concat([o]);n.push({op:t,path:s,value:e}),a.unshift({op:"add",path:s,value:e})}o++}),o=0,i.forEach(e=>{if(!s.has(e)){let s=r.concat([o]);n.push({op:"add",path:s,value:e}),a.unshift({op:t,path:s,value:e})}o++})}(r,a,s,i)}},generateReplacementPatches_:function(t,r,n,s){n.push({op:e,path:[],value:r===a?void 0:r}),s.push({op:e,path:[],value:t})}})}function B(){class e extends Map{constructor(e,t){super(),this[i]={type_:2,parent_:t,scope_:t?t.scope_:n,modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:e,draft_:this,isManual_:!1,revoked_:!1}}get size(){return w(this[i]).size}has(e){return w(this[i]).has(e)}set(e,r){let n=this[i];return s(n),w(n).has(e)&&w(n).get(e)===r||(t(n),H(n),n.assigned_.set(e,!0),n.copy_.set(e,r),n.assigned_.set(e,!0)),this}delete(e){if(!this.has(e))return!1;let r=this[i];return s(r),t(r),H(r),r.base_.has(e)?r.assigned_.set(e,!1):r.assigned_.delete(e),r.copy_.delete(e),!0}clear(){let e=this[i];s(e),w(e).size&&(t(e),H(e),e.assigned_=new Map,h(e.base_,t=>{e.assigned_.set(t,!1)}),e.copy_.clear())}forEach(e,t){w(this[i]).forEach((r,n,a)=>{e.call(t,this.get(n),n,this)})}get(e){let r=this[i];s(r);let n=w(r).get(e);if(r.finalized_||!l(n)||n!==r.base_.get(e))return n;let a=X(n,r);return t(r),r.copy_.set(e,a),a}keys(){return w(this[i]).keys()}values(){let e=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{let t=e.next();return t.done?t:{done:!1,value:this.get(t.value)}}}}entries(){let e=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{let t=e.next();if(t.done)return t;let r=this.get(t.value);return{done:!1,value:[t.value,r]}}}}[Symbol.iterator](){return this.entries()}}function t(e){e.copy_||(e.assigned_=new Map,e.copy_=new Map(e.base_))}class r extends Set{constructor(e,t){super(),this[i]={type_:3,parent_:t,scope_:t?t.scope_:n,modified_:!1,finalized_:!1,copy_:void 0,base_:e,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1}}get size(){return w(this[i]).size}has(e){let t=this[i];return(s(t),t.copy_)?!!(t.copy_.has(e)||t.drafts_.has(e)&&t.copy_.has(t.drafts_.get(e))):t.base_.has(e)}add(e){let t=this[i];return s(t),this.has(e)||(a(t),H(t),t.copy_.add(e)),this}delete(e){if(!this.has(e))return!1;let t=this[i];return s(t),a(t),H(t),t.copy_.delete(e)||!!t.drafts_.has(e)&&t.copy_.delete(t.drafts_.get(e))}clear(){let e=this[i];s(e),w(e).size&&(a(e),H(e),e.copy_.clear())}values(){let e=this[i];return s(e),a(e),e.copy_.values()}entries(){let e=this[i];return s(e),a(e),e.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(e,t){let r=this.values(),n=r.next();for(;!n.done;)e.call(t,n.value,n.value,this),n=r.next()}}function a(e){e.copy_||(e.copy_=new Set,e.base_.forEach(t=>{if(l(t)){let r=X(t,e);e.drafts_.set(t,r),e.copy_.add(r)}else e.copy_.add(t)}))}function s(e){e.revoked_&&o(3,JSON.stringify(w(e)))}M.MapSet||(M.MapSet={proxyMap_:function(t,r){return new e(t,r)},proxySet_:function(e,t){return new r(e,t)}})}var G=new J,Q=G.produce,T=G.produceWithPatches.bind(G),V=G.setAutoFreeze.bind(G),Y=G.setUseStrictShallowCopy.bind(G),Z=G.applyPatches.bind(G),ee=G.createDraft.bind(G),et=G.finishDraft.bind(G);function er(e){return e}function en(e){return e}}}]);
|