@mhmo91/schmancy 0.2.140 → 0.2.143

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.
Files changed (52) hide show
  1. package/dist/card.cjs +1 -1
  2. package/dist/card.js +1 -1
  3. package/dist/content-drawer.cjs +1 -1
  4. package/dist/content-drawer.js +1 -1
  5. package/dist/context-array-Cpar9dLN.cjs +2 -0
  6. package/dist/context-array-Cpar9dLN.cjs.map +1 -0
  7. package/dist/context-array-DpyA_ATT.js +1020 -0
  8. package/dist/context-array-DpyA_ATT.js.map +1 -0
  9. package/dist/extra.cjs +1 -1
  10. package/dist/extra.js +1 -1
  11. package/dist/index.cjs +1 -1
  12. package/dist/index.js +102 -92
  13. package/dist/mixins/tailwind.css +5 -0
  14. package/dist/nav-drawer.cjs +1 -1
  15. package/dist/nav-drawer.js +1 -1
  16. package/dist/selector-hook-CCTCDtVe.js +323 -0
  17. package/dist/selector-hook-CCTCDtVe.js.map +1 -0
  18. package/dist/selector-hook-DGMX3Yt0.cjs +2 -0
  19. package/dist/selector-hook-DGMX3Yt0.cjs.map +1 -0
  20. package/dist/store.cjs +1 -1
  21. package/dist/store.js +33 -23
  22. package/dist/teleport.cjs +1 -1
  23. package/dist/{teleport.component-CqG_93Gb.js → teleport.component-Dg62mNQm.js} +3 -3
  24. package/dist/{teleport.component-CqG_93Gb.js.map → teleport.component-Dg62mNQm.js.map} +1 -1
  25. package/dist/{teleport.component-C6QSf6Kd.cjs → teleport.component-F3-R3PAX.cjs} +2 -2
  26. package/dist/{teleport.component-C6QSf6Kd.cjs.map → teleport.component-F3-R3PAX.cjs.map} +1 -1
  27. package/dist/teleport.js +1 -1
  28. package/dist/{timezone-Bh92BXoh.cjs → timezone-2Eb26kSx.cjs} +1 -3
  29. package/dist/timezone-2Eb26kSx.cjs.map +1 -0
  30. package/dist/{timezone-95O0-5pe.js → timezone-C8cbkh7P.js} +1 -3
  31. package/dist/timezone-C8cbkh7P.js.map +1 -0
  32. package/package.json +2 -1
  33. package/types/src/store/context-array.d.ts +83 -0
  34. package/types/src/store/context-collection.d.ts +20 -41
  35. package/types/src/store/context-create.d.ts +31 -9
  36. package/types/src/store/context-object.d.ts +18 -41
  37. package/types/src/store/filter-directive.d.ts +62 -5
  38. package/types/src/store/immer-integration.d.ts +60 -0
  39. package/types/src/store/selector-hook.d.ts +4 -0
  40. package/types/src/store/selectors.d.ts +29 -20
  41. package/types/src/store/store.class.d.ts +73 -0
  42. package/types/src/store/types.d.ts +102 -0
  43. package/dist/context-object-BDXZ5EKJ.js +0 -306
  44. package/dist/context-object-BDXZ5EKJ.js.map +0 -1
  45. package/dist/context-object-BIywslrO.cjs +0 -2
  46. package/dist/context-object-BIywslrO.cjs.map +0 -1
  47. package/dist/selector-hook-C6VCezv7.js +0 -273
  48. package/dist/selector-hook-C6VCezv7.js.map +0 -1
  49. package/dist/selector-hook-DDaYMsHs.cjs +0 -2
  50. package/dist/selector-hook-DDaYMsHs.cjs.map +0 -1
  51. package/dist/timezone-95O0-5pe.js.map +0 -1
  52. package/dist/timezone-Bh92BXoh.cjs.map +0 -1
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import "./animated-text-CWRnkzJa.js";
2
- import { F as d, H as w, b as D, S as g, a as M, r as b } from "./area.component-BzuHoeHG.js";
2
+ import { F as D, H as d, b as w, S as g, a as b, r as M } from "./area.component-BzuHoeHG.js";
3
3
  import "./autocomplete-B3W-MX_R.js";
4
4
  import "./spinner-37Y-o4jr.js";
5
5
  import { S as T, a as I } from "./icon-button-BMkOl7zP.js";
6
- import { $ as v, H as R, e as H, b as A, f as E, c as F, d as L, g as k, S as O, a as Y, i as $, k as j, l as G, m as W, j as B, n as V, o as _, W as K, s as P, h as q, t as z } from "./teleport.component-CqG_93Gb.js";
6
+ import { $ as A, H as v, e as R, b as E, f as F, c as H, d as L, g as O, S as k, a as G, i as Y, k as $, l as j, m as B, j as W, n as z, o as P, W as V, s as _, h as K, t as q } from "./teleport.component-Dg62mNQm.js";
7
7
  import { S as Q } from "./checkbox-gDmmaU-i.js";
8
8
  import "./chips-DtYGQiRe.js";
9
9
  import { S as X } from "./payment-card-form-CUgTRvBS.js";
@@ -11,110 +11,110 @@ import "./date-range-CKocQ00P.js";
11
11
  import { S as aa, d as ea } from "./delay-Byk3BNTS.js";
12
12
  import { c as ta, f as oa, r as ca } from "./ripple-BumgqsDT.js";
13
13
  import "./divider-DW1XYPUt.js";
14
- import { S as na, a as ma } from "./timezone-95O0-5pe.js";
14
+ import { S as na, a as Sa } from "./timezone-C8cbkh7P.js";
15
15
  import "./form-DvQXRrGJ.js";
16
16
  import "./icon-CoTwcGO7.js";
17
17
  import "./input-FLgsuB5g.js";
18
- import { S as ia, c as ha, a as pa, b as ya } from "./flex-BCcCTIEB.js";
18
+ import { S as ia, c as ya, a as pa, b as ha } from "./flex-BCcCTIEB.js";
19
19
  import { L as fa, a as xa, S as Ca } from "./list-DxHWsB3z.js";
20
20
  import "./menu-rWt1jKex.js";
21
- import { N as wa, S as Da, a as ga } from "./notification-container-DKLh7Vt2.js";
22
- import { $ as ba, N as ua } from "./notification-service-DWeUoHi2.js";
21
+ import { N as da, S as wa, a as ga } from "./notification-container-DKLh7Vt2.js";
22
+ import { $ as Ma, N as ua } from "./notification-service-DWeUoHi2.js";
23
23
  import "./option-ztBnKZ_w.js";
24
24
  import { R as Ia } from "./radio-group-BZMhEi5P.js";
25
- import { mutationObserver as va } from "./rxjs-utils.js";
25
+ import { mutationObserver as Aa } from "./rxjs-utils.js";
26
26
  import "rxjs";
27
27
  import "./index-CuY8m6ta.js";
28
- import { S as Ha } from "./select-Dx6IF984.js";
29
- import { S as Ea, b as Fa, a as La, s as ka } from "./sheet-Bl64wfBe.js";
30
- import { S as Ya, a as $a } from "./slider-nyTR0hyw.js";
31
- import { S as Ga, a as Wa, b as Ba, s as Va } from "./schmancy-steps-container-srToeIjV.js";
32
- import { I as Ka, L as Pa, M as qa, S as za, a as Ja, b as Qa, c as Ua } from "./context-object-BDXZ5EKJ.js";
33
- import { d as Za, b as ae, l as ee, q as re, c as te, p as oe, t as ce, n as se, w as ne, o as me, m as Se, r as ie, u as he, a as pe, k as ye, v as le, i as fe, e as xe, h as Ce, f as de, g as we, s as De, j as ge } from "./selector-hook-C6VCezv7.js";
34
- import { a as be, S as ue } from "./surface-RtVWZEdq.js";
35
- import { a as Ie, S as Ne } from "./table-CGdNPIeN.js";
28
+ import { S as Ra } from "./select-Dx6IF984.js";
29
+ import { S as Fa, b as Ha, a as La, s as Oa } from "./sheet-Bl64wfBe.js";
30
+ import { S as Ga, a as Ya } from "./slider-nyTR0hyw.js";
31
+ import { S as ja, a as Ba, b as Wa, s as za } from "./schmancy-steps-container-srToeIjV.js";
32
+ import { I as Va, L as _a, M as Ka, S as qa, a as Ja, b as Qa, c as Ua } from "./context-array-DpyA_ATT.js";
33
+ import { p as Za, a as ae, v as ee, y as re, c as te, F as oe, A as ce, D as se, C as ne, x as Se, w as me, z as ie, E as ye, G as pe, u as he, B as le, b as fe, r as xe, d as Ce, q as De, f as de, g as we, i as ge, j as be, k as Me, l as ue, o as Te, h as Ie, n as Ne, m as Ae, e as ve, s as Re, t as Ee } from "./selector-hook-CCTCDtVe.js";
34
+ import { a as He, S as Le } from "./surface-RtVWZEdq.js";
35
+ import { a as ke, S as Ge } from "./table-CGdNPIeN.js";
36
36
  import "./tabs-group-CvHe90C_.js";
37
37
  import "./textarea-Ddi7wWLs.js";
38
- import { S as Re, f as He, t as Ae } from "./theme.component-Dk0d_7Og.js";
39
- import { S as Fe } from "./theme.interface-C5Kj6WjD.js";
38
+ import { S as $e, f as je, t as Be } from "./theme.component-Dk0d_7Og.js";
39
+ import { S as ze } from "./theme.interface-C5Kj6WjD.js";
40
40
  import "./theme-button-84n-IAL1.js";
41
- import { S as ke } from "./tree-_dvGG1Dk.js";
42
- import { SchmancyEvents as Ye } from "./types.js";
43
- import { T as je } from "./typewriter-D1rGUZyO.js";
44
- import { S as We } from "./typography-C3AU6NFt.js";
45
- import { i as Ve } from "./intersection-CJxzz8c-.js";
41
+ import { S as Ve } from "./tree-_dvGG1Dk.js";
42
+ import { SchmancyEvents as Ke } from "./types.js";
43
+ import { T as Je } from "./typewriter-D1rGUZyO.js";
44
+ import { S as Ue } from "./typography-C3AU6NFt.js";
45
+ import { i as Ze } from "./intersection-CJxzz8c-.js";
46
46
  export {
47
- v as $drawer,
48
- ba as $notify,
49
- d as FINDING_MORTIES,
50
- w as HERE_RICKY,
51
- D as HISTORY_STRATEGY,
52
- R as HereMorty,
53
- Ka as IndexedDBStorageManager,
47
+ A as $drawer,
48
+ Ma as $notify,
49
+ D as FINDING_MORTIES,
50
+ d as HERE_RICKY,
51
+ w as HISTORY_STRATEGY,
52
+ v as HereMorty,
53
+ Va as IndexedDBStorageManager,
54
54
  fa as List,
55
- Pa as LocalStorageManager,
56
- qa as MemoryStorageManager,
57
- wa as NotificationAudioService,
55
+ _a as LocalStorageManager,
56
+ Ka as MemoryStorageManager,
57
+ da as NotificationAudioService,
58
58
  ua as NotificationService,
59
59
  Ia as RadioGroup,
60
60
  g as SchmancyArea,
61
61
  T as SchmancyButton,
62
62
  Q as SchmancyCheckbox,
63
- H as SchmancyContentDrawer,
64
- A as SchmancyContentDrawerID,
65
- E as SchmancyContentDrawerMain,
66
- F as SchmancyContentDrawerMaxHeight,
63
+ R as SchmancyContentDrawer,
64
+ E as SchmancyContentDrawerID,
65
+ F as SchmancyContentDrawerMain,
66
+ H as SchmancyContentDrawerMaxHeight,
67
67
  L as SchmancyContentDrawerMinWidth,
68
- k as SchmancyContentDrawerSheet,
69
- O as SchmancyContentDrawerSheetMode,
70
- Y as SchmancyContentDrawerSheetState,
68
+ O as SchmancyContentDrawerSheet,
69
+ k as SchmancyContentDrawerSheetMode,
70
+ G as SchmancyContentDrawerSheetState,
71
71
  na as SchmancyCountriesSelect,
72
- Ie as SchmancyDataTable,
72
+ ke as SchmancyDataTable,
73
73
  aa as SchmancyDelay,
74
- $ as SchmancyDrawerAppbar,
75
- j as SchmancyDrawerNavbarMode,
76
- G as SchmancyDrawerNavbarState,
77
- Ye as SchmancyEvents,
74
+ Y as SchmancyDrawerAppbar,
75
+ $ as SchmancyDrawerNavbarMode,
76
+ j as SchmancyDrawerNavbarState,
77
+ Ke as SchmancyEvents,
78
78
  ia as SchmancyFlex,
79
- ha as SchmancyFlexV2,
79
+ ya as SchmancyFlexV2,
80
80
  pa as SchmancyGrid,
81
81
  xa as SchmancyListItem,
82
82
  Ca as SchmancyListTypeContext,
83
- W as SchmancyNavigationDrawer,
84
- B as SchmancyNavigationDrawerContent,
85
- V as SchmancyNavigationDrawerSidebar,
86
- Da as SchmancyNotification,
83
+ B as SchmancyNavigationDrawer,
84
+ W as SchmancyNavigationDrawerContent,
85
+ z as SchmancyNavigationDrawerSidebar,
86
+ wa as SchmancyNotification,
87
87
  ga as SchmancyNotificationContainer,
88
88
  X as SchmancyPaymentCardForm,
89
- ya as SchmancyScroll,
90
- Ha as SchmancySelect,
91
- Ea as SchmancySheetPosition,
92
- Ya as SchmancySlide,
93
- $a as SchmancySlider,
94
- Ga as SchmancyStep,
95
- Wa as SchmancyStepsContainer,
96
- za as SchmancyStoreObject,
97
- be as SchmancySurface,
98
- ue as SchmancySurfaceTypeContext,
99
- Ne as SchmancyTableRow,
100
- _ as SchmancyTeleportation,
101
- Fe as SchmancyTheme,
102
- Re as SchmancyThemeComponent,
103
- ma as SchmancyTimezonesSelect,
104
- ke as SchmancyTree,
105
- We as SchmancyTypography,
89
+ ha as SchmancyScroll,
90
+ Ra as SchmancySelect,
91
+ Fa as SchmancySheetPosition,
92
+ Ga as SchmancySlide,
93
+ Ya as SchmancySlider,
94
+ ja as SchmancyStep,
95
+ Ba as SchmancyStepsContainer,
96
+ qa as SchmancyStoreObject,
97
+ He as SchmancySurface,
98
+ Le as SchmancySurfaceTypeContext,
99
+ Ge as SchmancyTableRow,
100
+ P as SchmancyTeleportation,
101
+ ze as SchmancyTheme,
102
+ $e as SchmancyThemeComponent,
103
+ Sa as SchmancyTimezonesSelect,
104
+ Ve as SchmancyTree,
105
+ Ue as SchmancyTypography,
106
106
  I as SchmnacyIconButton,
107
107
  Ja as SessionStorageManager,
108
- Fa as SheetHereMorty,
108
+ Ha as SheetHereMorty,
109
109
  La as SheetWhereAreYouRicky,
110
- Ba as StepsController,
110
+ Wa as StepsController,
111
111
  Qa as StoreError,
112
- je as TypewriterElement,
113
- K as WhereAreYouRicky,
114
- M as area,
112
+ Je as TypewriterElement,
113
+ V as WhereAreYouRicky,
114
+ b as area,
115
115
  ta as color,
116
116
  Za as compareValues,
117
- ae as createCollectionContext,
117
+ ae as createArrayContext,
118
118
  ee as createCollectionSelector,
119
119
  re as createCompoundSelector,
120
120
  te as createContext,
@@ -122,33 +122,43 @@ export {
122
122
  ce as createEntriesSelector,
123
123
  se as createFilterSelector,
124
124
  ne as createFindSelector,
125
- me as createItemSelector,
126
- Se as createItemsSelector,
125
+ Se as createItemSelector,
126
+ me as createItemsSelector,
127
127
  ie as createKeysSelector,
128
- he as createMapSelector,
129
- pe as createObjectContext,
130
- ye as createSelector,
128
+ ye as createMapSelector,
129
+ pe as createOptimizedSelector,
130
+ he as createSelector,
131
131
  le as createSortSelector,
132
132
  Ua as createStorageManager,
133
+ fe as createTestArrayContext,
133
134
  ea as delayContext,
134
- fe as filterArray,
135
- xe as filterArrayItems,
136
- Ce as filterMap,
135
+ xe as filterArray,
136
+ Ce as filterArrayItems,
137
+ De as filterMap,
137
138
  de as filterMapItems,
138
- He as formateTheme,
139
+ je as formateTheme,
139
140
  oa as fullHeight,
140
141
  we as getFieldValue,
141
- Ve as intersection$,
142
- va as mutationObserver,
142
+ Ze as intersection$,
143
+ ge as isArray,
144
+ be as isDate,
145
+ Me as isIterable,
146
+ ue as isMap,
147
+ Te as isNil,
148
+ Ie as isNumber,
149
+ Ne as isPlainObject,
150
+ Ae as isSet,
151
+ ve as isString,
152
+ Aa as mutationObserver,
143
153
  ca as ripple,
144
- b as routerHistory,
145
- P as schmancyContentDrawer,
146
- q as schmancyNavDrawer,
147
- De as select,
148
- ge as selectItem,
149
- ka as sheet,
150
- Va as stepsContext,
151
- Ae as tailwindStyles,
152
- z as teleport
154
+ M as routerHistory,
155
+ _ as schmancyContentDrawer,
156
+ K as schmancyNavDrawer,
157
+ Re as select,
158
+ Ee as selectItem,
159
+ Oa as sheet,
160
+ za as stepsContext,
161
+ Be as tailwindStyles,
162
+ q as teleport
153
163
  };
154
164
  //# sourceMappingURL=index.js.map
@@ -15,6 +15,7 @@
15
15
  --color-scrim: var(--schmancy-sys-color-scrim);
16
16
  --color-outline: var(--schmancy-sys-color-outline);
17
17
  --color-outlineVariant: var(--schmancy-sys-color-outlineVariant);
18
+ --color-outline-variant: var(--schmancy-sys-color-outlineVariant);
18
19
  --color-surface-default: var(--schmancy-sys-color-surface-default);
19
20
  --color-surface-dim: var(--schmancy-sys-color-surface-dim);
20
21
  --color-surface-bright: var(--schmancy-sys-color-surface-bright);
@@ -25,10 +26,12 @@
25
26
  --color-surface-lowest: var(--schmancy-sys-color-surface-lowest);
26
27
  --color-surface-on: var(--schmancy-sys-color-surface-on);
27
28
  --color-surface-onVariant: var(--schmancy-sys-color-surface-onVariant);
29
+ --color-surface-on-variant: var(--schmancy-sys-color-surface-onVariant);
28
30
  --color-primary-default: var(--schmancy-sys-color-primary-default);
29
31
  --color-primary-on: var(--schmancy-sys-color-primary-on);
30
32
  --color-primary-container: var(--schmancy-sys-color-primary-container);
31
33
  --color-primary-onContainer: var(--schmancy-sys-color-primary-onContainer);
34
+ --color-primary-on-container: var(--schmancy-sys-color-primary-onContainer);
32
35
  --color-secondary-default: var(--schmancy-sys-color-secondary-default);
33
36
  --color-secondary-on: var(--schmancy-sys-color-secondary-on);
34
37
  --color-secondary-container: var(--schmancy-sys-color-secondary-container);
@@ -41,10 +44,12 @@
41
44
  --color-error-on: var(--schmancy-sys-color-error-on);
42
45
  --color-error-container: var(--schmancy-sys-color-error-container);
43
46
  --color-error-onContainer: var(--schmancy-sys-color-error-onContainer);
47
+ --color-error-on-container: var(--schmancy-sys-color-error-onContainer);
44
48
  --color-success-default: var(--schmancy-sys-color-success-default);
45
49
  --color-success-on: var(--schmancy-sys-color-success-on);
46
50
  --color-success-container: var(--schmancy-sys-color-success-container);
47
51
  --color-success-onContainer: var(--schmancy-sys-color-success-onContainer);
52
+ --color-success-on-container: var(--schmancy-sys-color-success-onContainer);
48
53
  --shadow-0: var(--schmancy-sys-elevation-0);
49
54
  --shadow-1: var(--schmancy-sys-elevation-1);
50
55
  --shadow-2: var(--schmancy-sys-elevation-2);
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./teleport.component-C6QSf6Kd.cjs");exports.$drawer=e.$drawer,Object.defineProperty(exports,"SchmancyDrawerAppbar",{enumerable:!0,get:()=>e.SchmancyDrawerAppbar}),exports.SchmancyDrawerNavbarMode=e.SchmancyDrawerNavbarMode,exports.SchmancyDrawerNavbarState=e.SchmancyDrawerNavbarState,Object.defineProperty(exports,"SchmancyNavigationDrawer",{enumerable:!0,get:()=>e.SchmancyNavigationDrawer}),Object.defineProperty(exports,"SchmancyNavigationDrawerContent",{enumerable:!0,get:()=>e.SchmancyNavigationDrawerContent}),Object.defineProperty(exports,"SchmancyNavigationDrawerSidebar",{enumerable:!0,get:()=>e.SchmancyNavigationDrawerSidebar}),exports.schmancyNavDrawer=e.schmancyNavDrawer;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./teleport.component-F3-R3PAX.cjs");exports.$drawer=e.$drawer,Object.defineProperty(exports,"SchmancyDrawerAppbar",{enumerable:!0,get:()=>e.SchmancyDrawerAppbar}),exports.SchmancyDrawerNavbarMode=e.SchmancyDrawerNavbarMode,exports.SchmancyDrawerNavbarState=e.SchmancyDrawerNavbarState,Object.defineProperty(exports,"SchmancyNavigationDrawer",{enumerable:!0,get:()=>e.SchmancyNavigationDrawer}),Object.defineProperty(exports,"SchmancyNavigationDrawerContent",{enumerable:!0,get:()=>e.SchmancyNavigationDrawerContent}),Object.defineProperty(exports,"SchmancyNavigationDrawerSidebar",{enumerable:!0,get:()=>e.SchmancyNavigationDrawerSidebar}),exports.schmancyNavDrawer=e.schmancyNavDrawer;
2
2
  //# sourceMappingURL=nav-drawer.cjs.map
@@ -1,4 +1,4 @@
1
- import { $ as c, i as e, k as n, l as m, m as s, j as h, n as i, h as t } from "./teleport.component-CqG_93Gb.js";
1
+ import { $ as c, i as e, k as n, l as m, m as s, j as h, n as i, h as t } from "./teleport.component-Dg62mNQm.js";
2
2
  export {
3
3
  c as $drawer,
4
4
  e as SchmancyDrawerAppbar,
@@ -0,0 +1,323 @@
1
+ import { b as z, d as B, e as R, S as F } from "./context-array-DpyA_ATT.js";
2
+ import { property as G } from "lit/decorators.js";
3
+ import { map as T, distinctUntilChanged as I, shareReplay as $, combineLatest as P, share as Z, Subject as H } from "rxjs";
4
+ import { takeUntil as J } from "rxjs/operators";
5
+ function K(n, e, t) {
6
+ if (e === "indexeddb") throw new z("IndexedDB storage is not supported for plain objects", null, { storage: e, key: t });
7
+ const r = F.getInstance(e, t, n);
8
+ var o;
9
+ return typeof (o = r.value) == "object" && o !== null && Object.keys(o).length === 0 && r.$.next({ ...n }), r;
10
+ }
11
+ function D(n, e, t) {
12
+ if (n == null) throw new z("Initial data cannot be null or undefined", null, { storage: e, key: t });
13
+ if (n instanceof Map) return function(r, o, u) {
14
+ const c = B.getInstance(o, u, r);
15
+ return c.value.size || c.$.next(new Map(r)), c;
16
+ }(n, e, t);
17
+ if (function(r) {
18
+ return Array.isArray(r);
19
+ }(n)) return function(r, o, u) {
20
+ const c = R.getInstance(o, u, r);
21
+ return c.value.length || c.$.next([...r]), c;
22
+ }(n, e, t);
23
+ if (typeof n == "object") return K(n, e, t);
24
+ throw new z("Initial data must be an object, an array, or a Map", null, { storage: e, key: t, dataType: typeof n });
25
+ }
26
+ function oe(n = [], e, t = "local") {
27
+ return D(n, t, e);
28
+ }
29
+ function se(n = [], e = "test-array") {
30
+ return D(n, "memory", e);
31
+ }
32
+ const Q = (n, e) => {
33
+ if (!e) return n;
34
+ const t = e.split(".");
35
+ let r = n;
36
+ for (const o of t) {
37
+ if (r == null) return;
38
+ r = r[o];
39
+ }
40
+ return r;
41
+ }, q = (n) => {
42
+ if (!n || n.length < 2) return [];
43
+ const e = [];
44
+ for (let t = 0; t < n.length - 1; t++) e.push(n.substring(t, t + 2).toLowerCase());
45
+ return e;
46
+ }, E = (n, e) => {
47
+ if (!n || !e) return 0;
48
+ const t = n.toLowerCase().trim(), r = e.toLowerCase().trim();
49
+ if (t === r) return 1;
50
+ const o = t.includes(r) ? 1 : 0, u = ((l, h) => {
51
+ if (!l) return !0;
52
+ if (!h) return !1;
53
+ let a = 0, i = 0;
54
+ for (; a < l.length && i < h.length; ) l[a].toLowerCase() === h[i].toLowerCase() && a++, i++;
55
+ return a === l.length;
56
+ })(r, t) ? 0.8 : 0, c = ((l, h) => {
57
+ if (!l) return !0;
58
+ if (!h) return !1;
59
+ const a = (j) => j.toLowerCase().split("").reduce((L, b) => (L[b] = (L[b] || 0) + 1, L), {}), i = a(l), d = a(h);
60
+ return Object.keys(i).every((j) => (d[j] || 0) >= i[j]);
61
+ })(r, t) ? 0.7 : 0, f = ((l, h) => {
62
+ if (!l || !h || l.length < 2 || h.length < 2) return 0;
63
+ const a = q(l), i = q(h);
64
+ if (a.length === 0 || i.length === 0) return 0;
65
+ let d = 0;
66
+ const j = new Array(i.length).fill(!1);
67
+ for (const L of a) for (let b = 0; b < i.length; b++) if (!j[b] && i[b] === L) {
68
+ d++, j[b] = !0;
69
+ break;
70
+ }
71
+ return 2 * d / (a.length + i.length);
72
+ })(t, r), s = Math.max(t.length, r.length), A = s ? 1 - ((l, h) => {
73
+ if (l === h) return 0;
74
+ const a = Array(h.length + 1).fill(null).map((i, d) => [d]);
75
+ for (let i = 0; i <= l.length; i++) a[0][i] = i;
76
+ for (let i = 1; i <= h.length; i++) for (let d = 1; d <= l.length; d++) h.charAt(i - 1) === l.charAt(d - 1) ? a[i][d] = a[i - 1][d - 1] : a[i][d] = Math.min(a[i - 1][d] + 1, a[i][d - 1] + 1, a[i - 1][d - 1] + 1);
77
+ return a[h.length][l.length];
78
+ })(t, r) / s : 0;
79
+ return Math.max(o, u, c, f, A);
80
+ }, N = (n) => n == null ? "" : String(n);
81
+ function V(n, e, t = 0.3) {
82
+ let r, o, u, c = !1;
83
+ if (Array.isArray(e) ? [r, o, u, c = !1] = e : (r = e.key, o = e.operator, u = e.value, c = e.strict || !1), !c && (u === "" || u == null || S(u) && u.length === 0)) return { valid: !0, score: 1 };
84
+ const f = Q(n, r);
85
+ if (c) {
86
+ if (o === "any") {
87
+ if (typeof f != "string" || typeof u != "string") return { valid: !1, score: 0 };
88
+ const s = E(f, u);
89
+ return { valid: s >= t, score: s >= t ? s : 0 };
90
+ }
91
+ {
92
+ const s = W(o, f, u);
93
+ return { valid: s, score: s ? 1 : 0 };
94
+ }
95
+ }
96
+ if (o === "any") {
97
+ if (typeof f != "string" || typeof u != "string") return { valid: !1, score: 0 };
98
+ const s = E(f, u);
99
+ return s < t ? { valid: !1, score: 0 } : { valid: !0, score: s };
100
+ }
101
+ {
102
+ const s = W(o, f, u);
103
+ return { valid: s, score: s ? 1 : 0 };
104
+ }
105
+ }
106
+ function U(n, e = [], t = 0.3) {
107
+ if (!e.length) return Array.from(n.values());
108
+ const r = [];
109
+ for (const [o, u] of n.entries()) {
110
+ let c = 0, f = 0, s = !0;
111
+ for (const A of e) {
112
+ const l = V(u, A, t);
113
+ if (!l.valid) {
114
+ s = !1;
115
+ break;
116
+ }
117
+ c += l.score, f++;
118
+ }
119
+ s && r.push({ item: u, score: f > 0 ? c / f : 1 });
120
+ }
121
+ return r.sort((o, u) => u.score - o.score), r.map((o) => o.item);
122
+ }
123
+ function X(n, e = [], t = 0.3) {
124
+ const r = /* @__PURE__ */ new Map();
125
+ return n.forEach((o, u) => r.set(String(u), o)), U(r, e, t);
126
+ }
127
+ function S(n) {
128
+ return Array.isArray(n);
129
+ }
130
+ function p(n) {
131
+ return typeof n == "string";
132
+ }
133
+ function C(n) {
134
+ return typeof n == "number" && !isNaN(n);
135
+ }
136
+ function v(n) {
137
+ return n instanceof Date && !isNaN(n.getTime());
138
+ }
139
+ function ie(n) {
140
+ return n != null && typeof n == "object" && Symbol.iterator in Object(n) && typeof n[Symbol.iterator] == "function";
141
+ }
142
+ function O(n) {
143
+ return n instanceof Map;
144
+ }
145
+ function M(n) {
146
+ return n instanceof Set;
147
+ }
148
+ function ae(n) {
149
+ if (n === null || typeof n != "object") return !1;
150
+ const e = Object.getPrototypeOf(n);
151
+ return e === Object.prototype || e === null;
152
+ }
153
+ function x(n) {
154
+ return n == null;
155
+ }
156
+ function W(n, e, t) {
157
+ if (x(e) && x(t)) return !0;
158
+ if (x(e) || x(t)) return n === "==" ? e === t : n === "!=" && e !== t;
159
+ switch (n) {
160
+ case "==":
161
+ return e === t;
162
+ case "!=":
163
+ return e !== t;
164
+ case ">":
165
+ return C(e) && C(t) ? e > t : v(e) && v(t) ? e.getTime() > t.getTime() : !(!p(e) || !p(t)) && e.localeCompare(t) > 0;
166
+ case "<":
167
+ return C(e) && C(t) ? e < t : v(e) && v(t) ? e.getTime() < t.getTime() : !(!p(e) || !p(t)) && e.localeCompare(t) < 0;
168
+ case ">=":
169
+ return C(e) && C(t) ? e >= t : v(e) && v(t) ? e.getTime() >= t.getTime() : !(!p(e) || !p(t)) && e.localeCompare(t) >= 0;
170
+ case "<=":
171
+ return C(e) && C(t) ? e <= t : v(e) && v(t) ? e.getTime() <= t.getTime() : !(!p(e) || !p(t)) && e.localeCompare(t) <= 0;
172
+ case "includes":
173
+ return p(e) ? e.toLowerCase().includes(N(t).toLowerCase()) : S(e) ? e.includes(t) : M(e) ? e.has(t) : !!O(e) && Array.from(e.values()).includes(t);
174
+ case "notIncludes":
175
+ return p(e) ? !e.toLowerCase().includes(N(t).toLowerCase()) : S(e) ? !e.includes(t) : M(e) ? !e.has(t) : !O(e) || !Array.from(e.values()).includes(t);
176
+ case "startsWith":
177
+ return !(!p(e) || !p(t)) && e.toLowerCase().startsWith(t.toLowerCase());
178
+ case "endsWith":
179
+ return !(!p(e) || !p(t)) && e.toLowerCase().endsWith(t.toLowerCase());
180
+ case "in":
181
+ return S(t) ? t.includes(e) : M(t) ? t.has(e) : !!O(t) && (t.has(e) || Array.from(t.values()).includes(e));
182
+ case "notIn":
183
+ return S(t) ? !t.includes(e) : M(t) ? !t.has(e) : !O(t) || !t.has(e) && !Array.from(t.values()).includes(e);
184
+ default:
185
+ return !1;
186
+ }
187
+ }
188
+ const ue = U, ce = X;
189
+ function k(n, e) {
190
+ if (n === e) return !0;
191
+ if (n instanceof Map && e instanceof Map) {
192
+ if (n.size !== e.size) return !1;
193
+ for (const [t, r] of n) if (!e.has(t) || !k(r, e.get(t))) return !1;
194
+ return !0;
195
+ }
196
+ if (n instanceof Set && e instanceof Set) {
197
+ if (n.size !== e.size) return !1;
198
+ for (const t of n) if (!e.has(t)) return !1;
199
+ return !0;
200
+ }
201
+ if (typeof n == "object" && n !== null && typeof e == "object" && e !== null) {
202
+ const t = Object.keys(n), r = Object.keys(e);
203
+ if (t.length !== r.length) return !1;
204
+ for (const o of t) if (!k(n[o], e[o])) return !1;
205
+ return !0;
206
+ }
207
+ return !1;
208
+ }
209
+ function Y(n, e) {
210
+ return n.$.pipe(T(e), I(k), $(1));
211
+ }
212
+ function y(n, e) {
213
+ return n.$.pipe(T(e), I(k), $(1));
214
+ }
215
+ function le(n) {
216
+ return y(n, (e) => Array.from(e.values()));
217
+ }
218
+ function fe(n, e) {
219
+ return y(n, (t) => t.get(e));
220
+ }
221
+ function he(n, e) {
222
+ return P(n).pipe(T((t) => e(...t)), I(k), $(1));
223
+ }
224
+ function de(n) {
225
+ return y(n, (e) => Array.from(e.keys()));
226
+ }
227
+ function pe(n) {
228
+ return y(n, (e) => Array.from(e.entries()));
229
+ }
230
+ function ge(n, e) {
231
+ return y(n, (t) => Array.from(t.values()).sort(e));
232
+ }
233
+ function ye(n, e) {
234
+ return y(n, (t) => {
235
+ for (const [r, o] of t.entries()) if (e(o, r)) return o;
236
+ });
237
+ }
238
+ function me(n, e) {
239
+ return y(n, (t) => Array.from(t.entries()).filter(([r, o]) => e(o, r)).map(([r, o]) => o));
240
+ }
241
+ function be(n, e) {
242
+ return y(n, (t) => Array.from(t.entries()).map(([r, o]) => e(o, r)));
243
+ }
244
+ function Ce(n, e) {
245
+ return y(n, (t) => e ? Array.from(t.entries()).filter(([r, o]) => e(o, r)).length : t.size);
246
+ }
247
+ function ve(n, e) {
248
+ return n.$.pipe(T(e), I(k), Z({ resetOnRefCountZero: !0, resetOnError: !1, resetOnComplete: !1 }));
249
+ }
250
+ const w = Symbol("selectorCleanup"), g = Symbol("selectorSubscriptions"), m = Symbol("selectorInitialized");
251
+ function _(n, e = (r) => r, t = {}) {
252
+ return function(r, o, u) {
253
+ G({ attribute: !1, type: Object })(r, o);
254
+ const c = r.connectedCallback, f = r.disconnectedCallback;
255
+ r.connectedCallback = function() {
256
+ var h;
257
+ var s;
258
+ (s = this)[w] && !s[w].closed || (s[w] = new H()), s[g] || (s[g] = /* @__PURE__ */ new Map()), s[m] || (s[m] = /* @__PURE__ */ new Set());
259
+ const A = function(a) {
260
+ return "set" in a && typeof a.set == "function" && a.value instanceof Map;
261
+ }(n) ? y(n, e) : Y(n, e);
262
+ t.required || this[m].has(o) || (c == null || c.call(this), this[m].add(o)), this[g].has(o) && ((h = this[g].get(o)) == null || h.unsubscribe(), this[g].delete(o)), t.debug;
263
+ const l = A.pipe(J(this[w])).subscribe({ next: (a) => {
264
+ var d;
265
+ const i = t.deepClone ? structuredClone(a) : a;
266
+ t.debug, t.updateOnly || (this[o] = i), (d = this.requestUpdate) == null || d.call(this), t.required && !this[m].has(o) && i != null && (t.debug, c == null || c.call(this), this[m].add(o));
267
+ }, error: (a) => {
268
+ this.isConnected && setTimeout(() => {
269
+ var i;
270
+ this.isConnected && (t.debug, (i = this.connectedCallback) == null || i.call(this));
271
+ }, 1e3);
272
+ } });
273
+ this[g].set(o, l);
274
+ }, r.disconnectedCallback = function() {
275
+ var s;
276
+ f == null || f.call(this), t.debug, (s = this)[w] && (s[w].next(), s[w].complete(), s[w] = void 0), s[g] && (s[g].forEach((A) => A.unsubscribe()), s[g].clear(), s[g] = void 0), s[m] && (s[m].clear(), s[m] = void 0);
277
+ };
278
+ };
279
+ }
280
+ function we(n, e, t = {}) {
281
+ return function(r, o, u) {
282
+ _(n, function(c) {
283
+ const f = e(this);
284
+ return f ? c.get(f) : void 0;
285
+ }, t)(r, o);
286
+ };
287
+ }
288
+ export {
289
+ pe as A,
290
+ ge as B,
291
+ ye as C,
292
+ me as D,
293
+ be as E,
294
+ Ce as F,
295
+ ve as G,
296
+ oe as a,
297
+ se as b,
298
+ D as c,
299
+ X as d,
300
+ p as e,
301
+ U as f,
302
+ Q as g,
303
+ C as h,
304
+ S as i,
305
+ v as j,
306
+ ie as k,
307
+ O as l,
308
+ M as m,
309
+ ae as n,
310
+ x as o,
311
+ W as p,
312
+ ue as q,
313
+ ce as r,
314
+ _ as s,
315
+ we as t,
316
+ Y as u,
317
+ y as v,
318
+ le as w,
319
+ fe as x,
320
+ he as y,
321
+ de as z
322
+ };
323
+ //# sourceMappingURL=selector-hook-CCTCDtVe.js.map