@fastr-pro/global-header 1.0.5 → 1.0.7
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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +6 -2
- package/dist/index.js +400 -383
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -104,80 +104,80 @@ var R = ({ className: e = "h-9 w-auto cursor-pointer", isDarkMode: n, theme: r,
|
|
|
104
104
|
})
|
|
105
105
|
]
|
|
106
106
|
});
|
|
107
|
-
},
|
|
107
|
+
}, z = 48, B = (e, t = 0) => {
|
|
108
108
|
let n = new Int32Array(e.length);
|
|
109
|
-
for (let r = 0; r < e.length; r++) n[r] = e.charCodeAt(r) -
|
|
109
|
+
for (let r = 0; r < e.length; r++) n[r] = e.charCodeAt(r) - z - t;
|
|
110
110
|
return n;
|
|
111
|
-
},
|
|
111
|
+
}, V = (e) => {
|
|
112
112
|
let t = new Int32Array(e.length + 1);
|
|
113
113
|
for (let n = 0; n < e.length; n++) t[n + 1] = t[n] + e[n];
|
|
114
114
|
return t;
|
|
115
|
-
},
|
|
115
|
+
}, H = (e) => {
|
|
116
116
|
let t = new Int32Array(e.length), n = 0;
|
|
117
117
|
for (let r = 0; r < e.length; r++) {
|
|
118
|
-
let i = e.charCodeAt(r) -
|
|
118
|
+
let i = e.charCodeAt(r) - z;
|
|
119
119
|
n += i >>> 1 ^ -(i & 1), t[r] = n;
|
|
120
120
|
}
|
|
121
121
|
return t;
|
|
122
|
-
},
|
|
123
|
-
let e =
|
|
122
|
+
}, oe = 384, U = [], W = V(B("E0500002005282000000002000150000020021820000011200000003022202000300004200120000200420001200021200301200010400162000010000220021010:2192001200220012000220012000200200200400010200040000000000400200108200110100000022010313000162002000020020012020080213000228200000000082000000000120002000120020020040101020300130001001010")), G = V(B(":11111111211111119311546544411119731869:671397415686432441111111111161114151214313433415:78311132233313187211117221449443411141111151152226611131111112212518142224214215421421542142424242516171151615616347111111111197911327451111111111111111111113134714133513411111311111111111111111111112444411111342312715245411117:3")), K = "@containerabcdefghinlmoprstunderlineviawzccentlignnimatespectuto-colsrowsaglorightnessckdrop-sisbcontrastfiltergrayscalehue-rotateinvertopacityslurrightnessaturateepia-coniclinearpositionradialsizeockurrderttom-belrstxyespacing-xyaretoursorlnt-umnsendspantartainentrasteividerop-shadowurationcorationlay-xyasendillexontromlter-featuresstretchapr-xyayscaleidow-colsrowsue-rotatedentlinesetvert-beringsxyeshadoweiadingftnest-clamp-imageabein-lrstxyskx--b-coniclpositionrsizet-x-y-fromto-fromto-inearfromto-fromto-adialfromto-fromtofromtofromtofromtoblockhinlinew-screenesblockhinlinewbjectpacityrutlinederigin-offsetbelrstxyesrspective-originaceholderioghtng-offsettateundedw-xyz-belrstlreseslr-endspantartaturatecepiahizekewpace-taleroll-xyz-barmpbelrstxyesbelrstxyes-thumbrackadowrink-xyxyartrokeabextora-shadowpckingnsformitionlate-xyz-offsetill-changeoom", se = (() => {
|
|
123
|
+
let e = W.length - 1, t = new Int32Array(e);
|
|
124
124
|
for (let n = e - 1; n >= 0; n--) {
|
|
125
125
|
let e = 1, r = n + 1;
|
|
126
|
-
for (let i =
|
|
126
|
+
for (let i = W[n]; i < W[n + 1]; i++) e += t[r], r += t[r];
|
|
127
127
|
t[n] = e;
|
|
128
128
|
}
|
|
129
|
-
let n = new Int32Array(
|
|
129
|
+
let n = new Int32Array(W[e]), r = 0;
|
|
130
130
|
for (let i = 0; i < e; i++) {
|
|
131
131
|
let e = i + 1;
|
|
132
|
-
for (let a =
|
|
132
|
+
for (let a = W[i]; a < W[i + 1]; a++) n[r++] = e, e += t[e];
|
|
133
133
|
}
|
|
134
134
|
return n;
|
|
135
|
-
})(),
|
|
136
|
-
let e = (/* @__PURE__ */ new Int32Array(319)).fill(-1), t =
|
|
135
|
+
})(), ce = B("02000000000000900<=0?000B000F00F00ŏI0J0LNPRTVX0000]_a00000000000000000000000rst0000000zŏ00000000000
ŏ0000000ŏ00000000000000000000000000000000000000000000000000000000000000Ë000000000000000000000Þ000000000000000000ð0000000ø0ùúûüýþÿĀāĂ㥹Ć000000000000000000000000000000000000000000ħ0ĨĪ00000000000000000000ļĽ00000Ŭ000000", 1), q = V(B("123333359346463635126536711576")), le = B("93203242332583253248325D>E?F@03263243255B:032523853:0325B:8GA032542H<C=12727B:0328432553;D>E?3257D>032585:0325B:;0328B:032"), ue = B("012113445661666666789111:5;;;;;;;;444;;;:62999<1161=62>>?61:21@ABCD4446996:64E:::;:?::64:F114GHHIHHHHIHH1HH1HH1HHHHHH::EEJ4444::EE4444441691;644444114244444:;K6666555555555555555999666664444444444444444444444226?6:66644L9M?D:111::::6DE199"), de = H("020200202020020020020020020020200200200200200200200002020202001003040106000200200200200200200200200200200200200200200200200200200200200200200200200200200200020020020020020020002020200202002002002002002002002002002020002002020020200220200200200200200200200200200200020020020000200020002000200200200020020020002000200200200020020202002020202000200200020022000200200020020002002000200220002002000200W0Z00020020002002020002002000200g0j0002002000200200020020002002000200200020020002000200002000002002002002002000200020000200002002002002002002002020020020200200200200200200200200202020020020020020020020020002002002020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020002002002002002002000200200200200200200200200200020202020002000200020002002002002000020200200"), fe = (() => {
|
|
136
|
+
let e = (/* @__PURE__ */ new Int32Array(319)).fill(-1), t = H("02422242:222222242224222242442222222422222244442242226224222426222422442462222422622222222626222462242622422622422424242422222222422222222242422222222222222222622442224222222222222224424442262222222222222222222226224222424242422224422422422222"), n = H("02222222222222222222202222222222222222222222221422222222222222222222222222222222222Y\\222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222221422222222222222222222222222222222222222Ŀł222222222222222222");
|
|
137
137
|
for (let r = 0; r < t.length; r++) e[t[r]] = n[r];
|
|
138
138
|
return e;
|
|
139
|
-
})(),
|
|
139
|
+
})(), pe = "container |break-after- all auto avoid avoid-page column left page right|break-before- all auto avoid avoid-page column left page right|break-inside-a uto void void-column void-page|box-decoration- clone slice|box- border content| contents flow-root hidden table table-caption table-cell table-column table-column-group table-footer-group table-header-group table-row table-row-group| not-sr-only sr-only|float- end left none right start|clear- both end left none right start|isolat e ion-auto|overflow- auto clip hidden scroll visible|overflow-x- auto clip hidden scroll visible|overflow-y- auto clip hidden scroll visible|overscroll- auto contain none|overscroll-x- auto contain none|overscroll-y- auto contain none| absolute fixed relative static sticky| collapse invisible visible|justify- around baseline between center center-safe end end-safe evenly normal start stretch|justify-items- center center-safe end end-safe normal start stretch|justify-self- auto center center-safe end end-safe start stretch|items- baseline baseline-last center center-safe end end-safe start stretch|self- auto baseline baseline-last center center-safe end end-safe start stretch|place-content- around baseline between center center-safe end end-safe evenly start stretch|place-items- baseline center center-safe end end-safe start stretch|place-self- auto center center-safe end end-safe start stretch| antialiased subpixel-antialiased| italic not-italic|normal-nums |ordinal |slashed-zero | lining-nums oldstyle-nums| proportional-nums tabular-nums| diagonal-fractions stacked-fractions| no-underline overline| capitalize lowercase normal-case uppercase|truncate |whitespace- break-spaces normal nowrap pre pre-line pre-wrap|break- all keep normal words|wrap- anywhere break-word normal|hyphens- auto manual none|mix-blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay plus-darker plus-lighter saturation screen soft-light|table- auto fixed|caption- bottom top|backface- hidden visible|appearance- auto none|scheme- dark light light-dark normal only-dark only-light|field-sizing- content fixed|pointer-events- auto none|resize -none -x -y|snap- align-none center end start|snap- always normal|snap- both none x y|snap- mandatory proximity|touch- auto manipulation none|touch-pan- left right x|touch-pan- down up y|touch-pinch-zoom |select- all auto none text|forced-color-adjust- auto none| normal size| baseline bottom middle sub super text-bottom text-top top| bounce none ping pulse spin| auto square video| auto fr max min px|none | auto full px| fixed local scroll|clip- border content padding text|origin- border content padding| bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right| no-repeat repeat repeat-round repeat-space repeat-x repeat-y| auto contain cover| gradient-to-b gradient-to-bl gradient-to-br gradient-to-l gradient-to-r gradient-to-t gradient-to-tl gradient-to-tr none|blend- color color-burn color-dodge darken difference exclusion hard-light hue lighten luminosity multiply normal overlay saturation screen soft-light|to- b bl br l r t tl tr| auto dvh fit full lh lvh max min px screen svh| dashed dotted double hidden none solid| collapse separate|px |auto |full | content none strict| inline-size size|layout |paint |style | around baseline between center center-safe end end-safe evenly normal start stretch| alias all-scroll auto cell col-resize context-menu copy crosshair default e-resize ew-resize grab grabbing help move n-resize ne-resize nesw-resize no-drop none not-allowed ns-resize nw-resize nwse-resize pointer progress row-resize s-resize se-resize sw-resize text vertical-text w-resize wait zoom-in zoom-out| dashed dotted double solid wavy| auto from-font|reverse |initial | in in-out initial linear out| col col-reverse row row-reverse| nowrap wrap wrap-reverse| auto initial none| black bold extrabold extralight light medium normal semibold thin| condensed expanded extra-condensed extra-expanded normal semi-condensed semi-expanded ultra-condensed ultra-expanded|flow- col col-dense dense row row-dense| none subgrid| auto dvh dvw fit full lh lvh lvw max min px screen svh svw| block flex grid table| auto dvw fit full lvw max min px screen svw| loose none normal px relaxed snug tight|through |item | inside outside| decimal disc none| auto px| clip-border clip-content clip-fill clip-padding clip-stroke clip-view no-clip| add exclude intersect subtract| alpha luminance match|origin- border content fill padding stroke view|type- alpha luminance| circle ellipse| closest-corner closest-side farthest-corner farthest-side|at- bottom bottom-left bottom-right center left left-bottom left-top right right-bottom right-top top top-left top-right| dvh fit full lh lvh max min none px screen svh| auto dvh dvw fit full lh lvh lvw max min none px screen svh svw| dvw fit full lvw max min none px screen svw| auto dvh dvw fit full lvh lvw max min none prose px svh svw| auto dvh dvw fit full lvh lvw max min none px screen svh svw| contain cover fill none scale-down| first last none| distant dramatic midrange near none normal|inset | full none|3d | auto smooth|gutter- auto both stable| auto none thin| inner none| auto dvh dvw fit full lvh lvw max min px svh svw|base | center end justify left right start| clip ellipsis| balance nowrap pretty wrap| normal tight tighter wide wider widest| cpu gpu none| 3d flat| all colors none opacity shadow transform| discrete normal| full px| auto dvh dvw fit full lvh lvw max min px screen svh svw| auto contents scroll transform".split("|").map((e) => {
|
|
140
140
|
let t = e.split(" "), n = t.shift();
|
|
141
141
|
for (let e = 0; e < t.length; e++) t[e] = n + t[e];
|
|
142
142
|
return t;
|
|
143
|
-
}),
|
|
143
|
+
}), me = H("0000000000000000000000000000000000000000000000000000000000000262242:6@200000006:240B428:4422400002046044222426220026642642462026224222824220022400000000\\00N222422242222222224062242222222422226264222422222222222222442804222422222222222222222222220<4<0204260002444020204224422"), he = H("ɠ222222222222222222222222222222222222222222222222222222222222˕4222226>ʶ22ʷʺʷ2ʸʷ42ʴ2ʓ22>621422ɶ222ɹɼɷɺɷɺ22ɱ42222ɨ2ɧ26622ɘɓ244ƸƵ222]d24242ǖǓƚÄȫ2263ȨȥȨ2222222ǣ222222222222222222ǂƽ2ƾƵ2222222422222ƜƑ22222222222222222222144Ŧţ22Ţş222222222222222222222ĸ2ı68ĦģĦɡŰ4Ġ«®ĝ822ĔđĔ2ē2222622"), ge = H("02222222222222222222222222222222222222222222222222222222222222222202022222222222EH2200IL021042222Y\\222IL0cf2e10j2222U00X202[^2y0000120|{~22
:22|22222222222G000qOVI00000}2>40000B00000I¨©000¬00000000000000021M®00°000000000000000000000222HGHa1º222¿2À2222ÉÌ000°2±"), _e = /* @__PURE__ */ new Int32Array(995), ve = /* @__PURE__ */ new Int32Array(995), ye = /* @__PURE__ */ new Int32Array(995), be = "", J = /* @__PURE__ */ new Int32Array(1038);
|
|
144
144
|
{
|
|
145
145
|
let e = /* @__PURE__ */ new Map(), t = 0, n = 0;
|
|
146
|
-
for (let r = 0; r <
|
|
146
|
+
for (let r = 0; r < me.length; r++) for (let i of pe[ge[r]]) {
|
|
147
147
|
let a = e.get(i);
|
|
148
|
-
a === void 0 && (a = t++, e.set(i, a),
|
|
148
|
+
a === void 0 && (a = t++, e.set(i, a), J[a * 2] = be.length, J[a * 2 + 1] = i.length, be += i), _e[n] = me[r], ve[n] = he[r], ye[n] = a, n++;
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
var
|
|
152
|
-
GROUP_COUNT:
|
|
153
|
-
customValidatorNames:
|
|
154
|
-
edgeStart:
|
|
155
|
-
labelStart:
|
|
156
|
-
labelText:
|
|
157
|
-
edgeTarget:
|
|
158
|
-
nodeGroup:
|
|
159
|
-
nodeVlist:
|
|
160
|
-
vlistPat:
|
|
161
|
-
vlistOps:
|
|
162
|
-
vlistRef:
|
|
163
|
-
vlistGroup:
|
|
164
|
-
litAnchor:
|
|
165
|
-
litGroup:
|
|
166
|
-
litPool:
|
|
167
|
-
poolOffsets:
|
|
168
|
-
poolText:
|
|
169
|
-
adjGid:
|
|
170
|
-
adjStart:
|
|
171
|
-
adjTgt:
|
|
172
|
-
patGid:
|
|
173
|
-
patTgt:
|
|
174
|
-
postfixLookupGroups:
|
|
151
|
+
var xe = H("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Se = V(B("1::24444432:442:44:44>222222:44:4421322511111311111114")), Ce = H("24A;33N=C@H4A;33N=C@<27;83:;8393NQ:3NQʰ222ˉºŴŽ2R2=18cƴÅŇ=cĞÛC1ƈǝȈ:ħ25=11D3A@4=<1;1DEr25;11B3?<6;:371BCn9@7=<8192>2E121@9@EHE@9>2T25511<398454131<=V25511<398454131<=ƧNž2Đå242L222290000f22500ɛ000ǘ222"), we = B("ij"), Te = B(""), Ee = B("1"), De = {
|
|
152
|
+
GROUP_COUNT: oe,
|
|
153
|
+
customValidatorNames: U,
|
|
154
|
+
edgeStart: W,
|
|
155
|
+
labelStart: G,
|
|
156
|
+
labelText: K,
|
|
157
|
+
edgeTarget: se,
|
|
158
|
+
nodeGroup: ce,
|
|
159
|
+
nodeVlist: fe,
|
|
160
|
+
vlistPat: q,
|
|
161
|
+
vlistOps: le,
|
|
162
|
+
vlistRef: ue,
|
|
163
|
+
vlistGroup: de,
|
|
164
|
+
litAnchor: _e,
|
|
165
|
+
litGroup: ve,
|
|
166
|
+
litPool: ye,
|
|
167
|
+
poolOffsets: J,
|
|
168
|
+
poolText: be,
|
|
169
|
+
adjGid: xe,
|
|
170
|
+
adjStart: Se,
|
|
171
|
+
adjTgt: Ce,
|
|
172
|
+
patGid: we,
|
|
173
|
+
patTgt: Te,
|
|
174
|
+
postfixLookupGroups: Ee,
|
|
175
175
|
orderSensitiveModifiers: "* ** after backdrop before details-content file first-letter first-line marker placeholder selection"
|
|
176
|
-
},
|
|
176
|
+
}, Oe = "line" in /* @__PURE__ */ Error(), Y = -1, ke = -1, Ae = (e, t, n) => {
|
|
177
177
|
let r = 2166136261;
|
|
178
178
|
for (let i = t; i < n; i++) r = Math.imul(r ^ e.charCodeAt(i), 16777619);
|
|
179
179
|
return r;
|
|
180
|
-
},
|
|
180
|
+
}, je = (e, t, n) => {
|
|
181
181
|
let r = n - t, i = Math.imul(r, 2654435761) ^ e.charCodeAt(t);
|
|
182
182
|
if (r > 3) {
|
|
183
183
|
let a = r >> 2, o = r >> 1;
|
|
@@ -185,7 +185,7 @@ var we = B("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Te = se(
|
|
|
185
185
|
for (let r = t + 3, a = n - 4; r < t + 8 && r < a; r++, a--) i = Math.imul(i ^ e.charCodeAt(r) ^ e.charCodeAt(a) << 8, 16777619);
|
|
186
186
|
}
|
|
187
187
|
return i ^ i >>> 15 | 0;
|
|
188
|
-
},
|
|
188
|
+
}, Me = (e, t, n = {}) => {
|
|
189
189
|
let { GROUP_COUNT: r, edgeStart: i, labelStart: a, labelText: o, edgeTarget: s, nodeGroup: c, nodeVlist: l, vlistPat: u, vlistOps: d, vlistRef: f, vlistGroup: p, litAnchor: m, litGroup: h, litPool: g, poolOffsets: _, poolText: v, adjGid: y, adjStart: b, adjTgt: ee, patGid: te, patTgt: x, postfixLookupGroups: S, customValidatorNames: C, orderSensitiveModifiers: w } = e, T = new Int32Array(r).fill(-1);
|
|
190
190
|
for (let e = 0; e < y.length; e++) T[y[e]] = e;
|
|
191
191
|
let E = 0;
|
|
@@ -211,12 +211,12 @@ var we = B("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Te = se(
|
|
|
211
211
|
for (; j < m.length * 2;) j <<= 1;
|
|
212
212
|
let M = new Int32Array(j).fill(-1);
|
|
213
213
|
for (let e = 0; e < m.length; e++) {
|
|
214
|
-
let t = _[g[e] * 2], n = (
|
|
214
|
+
let t = _[g[e] * 2], n = (Ae(v, t, t + _[g[e] * 2 + 1]) ^ Math.imul(m[e], 2654435761) | 0) & j - 1;
|
|
215
215
|
for (; M[n] !== -1;) n = n + 1 & j - 1;
|
|
216
216
|
M[n] = e;
|
|
217
217
|
}
|
|
218
218
|
let N = (e, t, n, r) => {
|
|
219
|
-
let i = (
|
|
219
|
+
let i = (Ae(t, n, r) ^ Math.imul(e, 2654435761) | 0) & j - 1, a = r - n;
|
|
220
220
|
for (;;) {
|
|
221
221
|
let r = M[i];
|
|
222
222
|
if (r === -1) return -1;
|
|
@@ -234,32 +234,32 @@ var we = B("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Te = se(
|
|
|
234
234
|
let n = t && t[e];
|
|
235
235
|
if (!n) throw Error("cn: missing validator " + e);
|
|
236
236
|
return n;
|
|
237
|
-
}), R = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,
|
|
238
|
-
if (
|
|
237
|
+
}), R = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, z = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, B = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, V = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, H = 0, oe = -1, U = -1, W = -1, G = -1, K = (e) => e >= 97 && e <= 122 || e >= 65 && e <= 90 || e >= 48 && e <= 57 || e === 95, se = (e) => /\s/.test(String.fromCharCode(e)), ce = (e, t, n) => {
|
|
238
|
+
if (H = 0, oe = -1, n - t < 3) return;
|
|
239
239
|
let r = e.charCodeAt(t), i = e.charCodeAt(n - 1);
|
|
240
|
-
if (r === 91 && i === 93)
|
|
241
|
-
else if (r === 40 && i === 41)
|
|
240
|
+
if (r === 91 && i === 93) H = 1;
|
|
241
|
+
else if (r === 40 && i === 41) H = 2;
|
|
242
242
|
else return;
|
|
243
|
-
|
|
243
|
+
W = t + 1, G = n - 1;
|
|
244
244
|
let a = t + 1;
|
|
245
|
-
if (
|
|
245
|
+
if (K(e.charCodeAt(a))) {
|
|
246
246
|
for (a++; a < n - 1;) {
|
|
247
247
|
let t = e.charCodeAt(a);
|
|
248
|
-
if (!
|
|
248
|
+
if (!K(t) && t !== 45) break;
|
|
249
249
|
a++;
|
|
250
250
|
}
|
|
251
|
-
a < n - 2 && e.charCodeAt(a) === 58 && (
|
|
251
|
+
a < n - 2 && e.charCodeAt(a) === 58 && (oe = t + 1, U = a, W = a + 1);
|
|
252
252
|
}
|
|
253
|
-
},
|
|
253
|
+
}, q = (e, t, n, r) => {
|
|
254
254
|
if (n - t !== r.length) return !1;
|
|
255
255
|
for (let n = 0; n < r.length; n++) if (e.charCodeAt(t + n) !== r.charCodeAt(n)) return !1;
|
|
256
256
|
return !0;
|
|
257
|
-
},
|
|
258
|
-
if (n - t < 11 || !
|
|
257
|
+
}, le = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, ue = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, de = (e) => !!e && !Number.isNaN(Number(e)), fe = (e, t, n) => {
|
|
258
|
+
if (n - t < 11 || !q(e, t, t + 10, "@container")) return !1;
|
|
259
259
|
if (e.charCodeAt(t + 10) === 47) return n - t >= 12;
|
|
260
260
|
let r = e.charCodeAt(t + 11);
|
|
261
|
-
return r === 115 && n - t >= 17 &&
|
|
262
|
-
},
|
|
261
|
+
return r === 115 && n - t >= 17 && q(e, t + 10, t + 16, "-size/") || r === 110 && n - t >= 19 && q(e, t + 10, t + 18, "-normal/");
|
|
262
|
+
}, pe = [
|
|
263
263
|
1,
|
|
264
264
|
1,
|
|
265
265
|
1,
|
|
@@ -275,7 +275,7 @@ var we = B("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Te = se(
|
|
|
275
275
|
2,
|
|
276
276
|
2,
|
|
277
277
|
2
|
|
278
|
-
],
|
|
278
|
+
], me = "length|number|number weight|family-name|position percentage|length size bg-size|image url|shadow|length|family-name|position percentage|length size bg-size|image url|shadow|number weight".split("|").map((e) => e.split(" ")), he = [
|
|
279
279
|
2,
|
|
280
280
|
3,
|
|
281
281
|
1,
|
|
@@ -291,44 +291,44 @@ var we = B("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Te = se(
|
|
|
291
291
|
0,
|
|
292
292
|
1,
|
|
293
293
|
1
|
|
294
|
-
],
|
|
294
|
+
], ge = (e, t, n, r) => {
|
|
295
295
|
if (e >= 10) {
|
|
296
296
|
if (e >= 25) return L[e - 25](t.slice(n, r));
|
|
297
297
|
let i = e - 10;
|
|
298
|
-
if (
|
|
299
|
-
if (
|
|
300
|
-
for (let e of
|
|
298
|
+
if (H !== pe[i]) return !1;
|
|
299
|
+
if (oe >= 0) {
|
|
300
|
+
for (let e of me[i]) if (q(t, oe, U, e)) return !0;
|
|
301
301
|
return !1;
|
|
302
302
|
}
|
|
303
|
-
switch (
|
|
303
|
+
switch (he[i]) {
|
|
304
304
|
case 0: return !1;
|
|
305
305
|
case 1: return !0;
|
|
306
306
|
case 2: {
|
|
307
|
-
let e = t.slice(
|
|
308
|
-
return R.test(e) && !
|
|
307
|
+
let e = t.slice(W, G);
|
|
308
|
+
return R.test(e) && !z.test(e);
|
|
309
309
|
}
|
|
310
|
-
case 3: return
|
|
311
|
-
case 4: return
|
|
312
|
-
default: return
|
|
310
|
+
case 3: return de(t.slice(W, G));
|
|
311
|
+
case 4: return V.test(t.slice(W, G));
|
|
312
|
+
default: return B.test(t.slice(W, G));
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
switch (e) {
|
|
316
316
|
case 0: return !0;
|
|
317
|
-
case 1: return
|
|
318
|
-
case 2: return
|
|
319
|
-
case 3: return
|
|
320
|
-
case 4: return
|
|
321
|
-
case 5: return
|
|
317
|
+
case 1: return H === 0;
|
|
318
|
+
case 2: return H === 1;
|
|
319
|
+
case 3: return H === 2;
|
|
320
|
+
case 4: return le.test(t.slice(n, r));
|
|
321
|
+
case 5: return de(t.slice(n, r));
|
|
322
322
|
case 6: {
|
|
323
323
|
let e = t.slice(n, r);
|
|
324
324
|
return !!e && Number.isInteger(Number(e));
|
|
325
325
|
}
|
|
326
|
-
case 7: return r > n && t.charCodeAt(r - 1) === 37 &&
|
|
327
|
-
case 8: return
|
|
328
|
-
default: return
|
|
326
|
+
case 7: return r > n && t.charCodeAt(r - 1) === 37 && de(t.slice(n, r - 1));
|
|
327
|
+
case 8: return ue.test(t.slice(n, r));
|
|
328
|
+
default: return fe(t, n, r);
|
|
329
329
|
}
|
|
330
|
-
},
|
|
331
|
-
let o =
|
|
330
|
+
}, _e = new Set(typeof w == "string" ? w.split(" ") : w), ve = (e, t, n, r, i, a) => {
|
|
331
|
+
let o = Ae(t, n, r) ^ (i ? 2654435769 : 0) | 0, s = e.get(o);
|
|
332
332
|
if (s !== void 0) outer: for (let e = 0; e < s.length; e++) {
|
|
333
333
|
let a = s[e];
|
|
334
334
|
if (a.imp === i && a.k.length === r - n) {
|
|
@@ -343,7 +343,7 @@ var we = B("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Te = se(
|
|
|
343
343
|
imp: i,
|
|
344
344
|
id: l
|
|
345
345
|
}), l;
|
|
346
|
-
},
|
|
346
|
+
}, ye = /* @__PURE__ */ new Map(), be = /* @__PURE__ */ new Map(), J = 2, xe = 4096, Se = (e, t) => {
|
|
347
347
|
let n = [], r = 0, i = 0, a = 0;
|
|
348
348
|
for (let t = 0; t < e.length; t++) {
|
|
349
349
|
let o = e.charCodeAt(t);
|
|
@@ -353,53 +353,53 @@ var we = B("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Te = se(
|
|
|
353
353
|
let o = n[0];
|
|
354
354
|
if (n.length > 1) {
|
|
355
355
|
let e = [], t = [];
|
|
356
|
-
for (let r of n) r.charCodeAt(0) === 91 ||
|
|
356
|
+
for (let r of n) r.charCodeAt(0) === 91 || _e.has(r) ? (t.length && (e.push(...t.sort()), t = []), e.push(r)) : t.push(r);
|
|
357
357
|
t.length && e.push(...t.sort()), o = e.join(":");
|
|
358
358
|
}
|
|
359
|
-
let s = t ? o + " !" : o, c =
|
|
360
|
-
return c === void 0 &&
|
|
361
|
-
},
|
|
359
|
+
let s = t ? o + " !" : o, c = be.get(s);
|
|
360
|
+
return c === void 0 && be.set(s, c = J++), c;
|
|
361
|
+
}, Ce = /* @__PURE__ */ new Map(), we = r, Te = r + 4096, Ee = () => we++, De = 2097152, Me = 8192, Ne = new Int32Array(Me), Pe = Array(Me).fill(null), Ie = new Int32Array(Me), Le = new Int32Array(Me), Re = new Uint8Array(Me), ze = 0, Be = (e, t, n, r, i, a, o, s) => {
|
|
362
362
|
let c = e;
|
|
363
|
-
if (
|
|
364
|
-
if (
|
|
365
|
-
else if (!(
|
|
363
|
+
if (Pe[e] !== null) {
|
|
364
|
+
if (Pe[e | 1] === null) c = e | 1;
|
|
365
|
+
else if (!(ze++ & 3)) c = e | ze >> 2 & 1;
|
|
366
366
|
else return;
|
|
367
367
|
}
|
|
368
|
-
|
|
369
|
-
},
|
|
370
|
-
new Int32Array(
|
|
371
|
-
new Int32Array(
|
|
372
|
-
new Int32Array(
|
|
373
|
-
new Int32Array(
|
|
374
|
-
], [We, Ge, Ke
|
|
375
|
-
|
|
376
|
-
let t = new Int32Array(
|
|
368
|
+
Pe[c] = t.slice(n, r), Ne[c] = i, Ie[c] = a, Le[c] = o, Re[c] = s;
|
|
369
|
+
}, Ve = () => Pe.fill(null), X = 256, He = [
|
|
370
|
+
new Int32Array(X),
|
|
371
|
+
new Int32Array(X),
|
|
372
|
+
new Int32Array(X),
|
|
373
|
+
new Int32Array(X)
|
|
374
|
+
], [Ue, We, Ge, Ke] = He, qe = new Uint8Array(X), Je = new Uint8Array(X), Ye = () => {
|
|
375
|
+
X *= 2, He = He.map((e) => {
|
|
376
|
+
let t = new Int32Array(X);
|
|
377
377
|
return t.set(e), t;
|
|
378
|
-
}), [We, Ge, Ke
|
|
379
|
-
let e = new Uint8Array(
|
|
380
|
-
e.set(
|
|
381
|
-
},
|
|
382
|
-
if (e === 0 && t < r) return
|
|
383
|
-
let n = e * 2097152 + t + 1, i = Math.imul(n, 2654435761) >>>
|
|
384
|
-
for (;
|
|
385
|
-
if (
|
|
386
|
-
i = i + 1 &
|
|
378
|
+
}), [Ue, We, Ge, Ke] = He;
|
|
379
|
+
let e = new Uint8Array(X);
|
|
380
|
+
e.set(qe), qe = e, Je = new Uint8Array(X);
|
|
381
|
+
}, Xe = 64, Ze = new Int32Array(Xe), Qe = new Int32Array(Xe), $e = new Int32Array(r), et = 2048, tt = 21, nt = new Float64Array(et), rt = new Int32Array(et), it = 0, at = (e, t) => {
|
|
382
|
+
if (e === 0 && t < r) return $e[t] === it ? 1 : ($e[t] = it, 0);
|
|
383
|
+
let n = e * 2097152 + t + 1, i = Math.imul(n, 2654435761) >>> tt;
|
|
384
|
+
for (; rt[i] === it;) {
|
|
385
|
+
if (nt[i] === n) return 1;
|
|
386
|
+
i = i + 1 & et - 1;
|
|
387
387
|
}
|
|
388
|
-
return
|
|
389
|
-
},
|
|
388
|
+
return nt[i] = n, rt[i] = it, 0;
|
|
389
|
+
}, ot = (e, t, n, r, i) => {
|
|
390
390
|
if (n - t >= 2 && e.charCodeAt(t) === 91 && e.charCodeAt(n - 1) === 93) {
|
|
391
391
|
let r = -1;
|
|
392
392
|
for (let i = t + 1; i < n - 1; i++) if (e.charCodeAt(i) === 58) {
|
|
393
393
|
r = i;
|
|
394
394
|
break;
|
|
395
395
|
}
|
|
396
|
-
return r === -1 || r === t + 1 ?
|
|
396
|
+
return r === -1 || r === t + 1 ? Y : ve(Ce, e, t + 1, r, 0, Ee);
|
|
397
397
|
}
|
|
398
398
|
if (r >= 0 && c[r] >= 0) return c[r];
|
|
399
399
|
for (let t = i - 1; t >= 0; t--) {
|
|
400
|
-
let r =
|
|
400
|
+
let r = Qe[t];
|
|
401
401
|
if (r > n) continue;
|
|
402
|
-
let i =
|
|
402
|
+
let i = Ze[t], a = n - r;
|
|
403
403
|
if (ie[i] === 1 && a > 0 && a <= k) {
|
|
404
404
|
let t = e.charCodeAt(r);
|
|
405
405
|
if (A === !1 || t !== 91 && t !== 40) {
|
|
@@ -411,18 +411,18 @@ var we = B("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Te = se(
|
|
|
411
411
|
if (o < 0) continue;
|
|
412
412
|
let s = f[o], c = u[s], m = u[s + 1];
|
|
413
413
|
if (c === m) continue;
|
|
414
|
-
|
|
414
|
+
ce(e, r, n);
|
|
415
415
|
let h = O[o] - c;
|
|
416
|
-
for (let t = c; t < m; t++) if (
|
|
416
|
+
for (let t = c; t < m; t++) if (ge(d[t], e, r, n)) return p[h + t];
|
|
417
417
|
}
|
|
418
|
-
return
|
|
419
|
-
},
|
|
418
|
+
return Y;
|
|
419
|
+
}, st = (e) => {
|
|
420
420
|
let t = e.length, n = 0, c = 0, u = !1;
|
|
421
|
-
(
|
|
421
|
+
(J > xe || ye.size > xe) && (ye = /* @__PURE__ */ new Map(), be = /* @__PURE__ */ new Map(), J = 2, Ve()), we > Te && (Ce = /* @__PURE__ */ new Map(), we = r, Ve());
|
|
422
422
|
let d = 0;
|
|
423
423
|
for (; d < t;) {
|
|
424
424
|
let f = e.charCodeAt(d);
|
|
425
|
-
if (f === 32 || f >= 9 && f <= 13 || f >= 160 &&
|
|
425
|
+
if (f === 32 || f >= 9 && f <= 13 || f >= 160 && se(f)) {
|
|
426
426
|
f !== 32 && (u = !0), d++;
|
|
427
427
|
continue;
|
|
428
428
|
}
|
|
@@ -434,27 +434,27 @@ var we = B("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Te = se(
|
|
|
434
434
|
u = !0;
|
|
435
435
|
break;
|
|
436
436
|
}
|
|
437
|
-
} else if (f >= 160 &&
|
|
437
|
+
} else if (f >= 160 && se(f)) {
|
|
438
438
|
u = !0;
|
|
439
439
|
break;
|
|
440
440
|
}
|
|
441
441
|
m = Math.imul(m ^ f, 16777619), d++;
|
|
442
442
|
}
|
|
443
443
|
let h = d, g = h - p;
|
|
444
|
-
n ===
|
|
444
|
+
n === X && Ye();
|
|
445
445
|
let _ = n++;
|
|
446
|
-
|
|
446
|
+
Ue[_] = p, We[_] = h, c += g, m ^= Math.imul(g, 2654435761);
|
|
447
447
|
let v = m ^ m >>> 15 | 0, y = v & 8190;
|
|
448
448
|
{
|
|
449
449
|
let t = -1;
|
|
450
|
-
if (
|
|
451
|
-
let n =
|
|
450
|
+
if (Ne[y] === v && Pe[y] !== null && Pe[y].length === g ? t = y : Ne[y | 1] === v && Pe[y | 1] !== null && Pe[y | 1].length === g && (t = y | 1), t >= 0) {
|
|
451
|
+
let n = Pe[t], r = !0;
|
|
452
452
|
for (let t = 0; t < g; t++) if (n.charCodeAt(t) !== e.charCodeAt(p + t)) {
|
|
453
453
|
r = !1;
|
|
454
454
|
break;
|
|
455
455
|
}
|
|
456
456
|
if (r) {
|
|
457
|
-
|
|
457
|
+
Ge[_] = Ie[t], Ke[_] = Le[t], qe[_] = Re[t];
|
|
458
458
|
continue;
|
|
459
459
|
}
|
|
460
460
|
}
|
|
@@ -462,7 +462,7 @@ var we = B("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Te = se(
|
|
|
462
462
|
let b = p;
|
|
463
463
|
if (I !== 0) {
|
|
464
464
|
if (h - p <= I || !e.startsWith(ae, p)) {
|
|
465
|
-
|
|
465
|
+
Ge[_] = Y, Be(y, e, p, h, v, Y, 0, 0);
|
|
466
466
|
continue;
|
|
467
467
|
}
|
|
468
468
|
b = p + I;
|
|
@@ -489,13 +489,13 @@ var we = B("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Te = se(
|
|
|
489
489
|
let re = w;
|
|
490
490
|
T - w > 1 && e.charCodeAt(w) === 45 && (re = w + 1);
|
|
491
491
|
let k = 0, A = 0, j = 0, M = -1, N = 0;
|
|
492
|
-
(l[0] >= 0 || ie[0] === 1) && (
|
|
493
|
-
let P =
|
|
494
|
-
for (let t = re; t < T; t++) if (t === O && (P = A < j ?
|
|
492
|
+
(l[0] >= 0 || ie[0] === 1) && (Ze[0] = 0, Qe[0] = re, N = 1);
|
|
493
|
+
let P = ke, F = 0;
|
|
494
|
+
for (let t = re; t < T; t++) if (t === O && (P = A < j ? ke : k, F = N), k !== ke) {
|
|
495
495
|
let n = e.charCodeAt(t), r = -1;
|
|
496
|
-
if (A < j) o.charCodeAt(A) === n ? (A++, A === j && (r = k = M)) : k =
|
|
496
|
+
if (A < j) o.charCodeAt(A) === n ? (A++, A === j && (r = k = M)) : k = ke;
|
|
497
497
|
else {
|
|
498
|
-
let e = i[k], t = i[k + 1], c =
|
|
498
|
+
let e = i[k], t = i[k + 1], c = ke;
|
|
499
499
|
for (let i = e; i < t; i++) {
|
|
500
500
|
let e = a[i];
|
|
501
501
|
if (o.charCodeAt(e) === n) {
|
|
@@ -506,93 +506,93 @@ var we = B("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Te = se(
|
|
|
506
506
|
k = c;
|
|
507
507
|
}
|
|
508
508
|
if (r >= 0 && (l[r] >= 0 || ie[r] === 1) && t + 1 < T && e.charCodeAt(t + 1) === 45) {
|
|
509
|
-
if (N ===
|
|
510
|
-
|
|
511
|
-
let e = new Int32Array(
|
|
512
|
-
e.set(
|
|
513
|
-
let t = new Int32Array(
|
|
514
|
-
t.set(
|
|
509
|
+
if (N === Xe) {
|
|
510
|
+
Xe *= 2;
|
|
511
|
+
let e = new Int32Array(Xe);
|
|
512
|
+
e.set(Ze), Ze = e;
|
|
513
|
+
let t = new Int32Array(Xe);
|
|
514
|
+
t.set(Qe), Qe = t;
|
|
515
515
|
}
|
|
516
|
-
|
|
516
|
+
Ze[N] = r, Qe[N] = t + 2, N++;
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
|
-
O === T && (P = A < j ?
|
|
520
|
-
let L = A < j ?
|
|
519
|
+
O === T && (P = A < j ? ke : k, F = N);
|
|
520
|
+
let L = A < j ? ke : k, R, z = !1;
|
|
521
521
|
if (O >= 0) {
|
|
522
|
-
if (
|
|
523
|
-
let t =
|
|
524
|
-
t !==
|
|
525
|
-
} else R ===
|
|
526
|
-
} else R =
|
|
527
|
-
let
|
|
528
|
-
R ===
|
|
522
|
+
if (z = !0, R = ot(e, w, O, P, F), R !== Y && R < r && ne[R]) {
|
|
523
|
+
let t = ot(e, w, T, L, N);
|
|
524
|
+
t !== Y && t !== R && (R = t, z = !1);
|
|
525
|
+
} else R === Y && (R = ot(e, w, T, L, N), z = !1);
|
|
526
|
+
} else R = ot(e, w, T, L, N);
|
|
527
|
+
let B = 0, V = 0;
|
|
528
|
+
R === Y ? Ge[_] = Y : (V = +!!z, B = b >= x ? +!!E : ve(ye, e, b, x, +!!E, (e) => Se(e, E)), Ge[_] = R, qe[_] = V, Ke[_] = B), Be(y, e, p, h, v, R, B, V);
|
|
529
529
|
}
|
|
530
530
|
if (n === 0) return "";
|
|
531
|
-
if (n === 1) return
|
|
532
|
-
if (n * D >
|
|
533
|
-
for (; n * D >
|
|
534
|
-
|
|
531
|
+
if (n === 1) return Ue[0] === 0 && We[0] === t ? e : e.slice(Ue[0], We[0]);
|
|
532
|
+
if (n * D > et) {
|
|
533
|
+
for (; n * D > et;) et <<= 1, tt--;
|
|
534
|
+
nt = new Float64Array(et), rt = new Int32Array(et);
|
|
535
535
|
}
|
|
536
|
-
if (
|
|
537
|
-
|
|
536
|
+
if (J >= De || we >= De) throw Error("cn: too many distinct classes in one merge");
|
|
537
|
+
it = it + 1 | 0, it === 0 && ($e.fill(0), rt.fill(0), it = 1);
|
|
538
538
|
let f = !1;
|
|
539
539
|
for (let e = n - 1; e >= 0; e--) {
|
|
540
|
-
let t =
|
|
541
|
-
if (t ===
|
|
542
|
-
|
|
540
|
+
let t = Ge[e];
|
|
541
|
+
if (t === Y) {
|
|
542
|
+
Je[e] = 1;
|
|
543
543
|
continue;
|
|
544
544
|
}
|
|
545
|
-
let n =
|
|
546
|
-
if (
|
|
547
|
-
|
|
545
|
+
let n = Ke[e];
|
|
546
|
+
if (at(n, t) === 1) {
|
|
547
|
+
Je[e] = 0, f = !0;
|
|
548
548
|
continue;
|
|
549
549
|
}
|
|
550
|
-
if (
|
|
550
|
+
if (Je[e] = 1, t < r) {
|
|
551
551
|
let r = T[t];
|
|
552
|
-
if (r >= 0) for (let e = b[r]; e < b[r + 1]; e++)
|
|
553
|
-
if (
|
|
552
|
+
if (r >= 0) for (let e = b[r]; e < b[r + 1]; e++) at(n, ee[e]);
|
|
553
|
+
if (qe[e] & 1) for (let e = 0; e < te.length; e++) te[e] === t && at(n, x[e]);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
556
|
if (!f && !u && t === c + n - 1) return e;
|
|
557
557
|
let p = "", m = 0;
|
|
558
558
|
for (; m < n;) {
|
|
559
|
-
if (!
|
|
559
|
+
if (!Je[m]) {
|
|
560
560
|
m++;
|
|
561
561
|
continue;
|
|
562
562
|
}
|
|
563
|
-
let t =
|
|
564
|
-
for (; i < n &&
|
|
563
|
+
let t = Ue[m], r = We[m], i = m + 1;
|
|
564
|
+
for (; i < n && Je[i] && Ue[i] === r + 1 && e.charCodeAt(r) === 32;) r = We[i], i++;
|
|
565
565
|
p.length > 0 && (p += " "), p += e.slice(t, r), m = i;
|
|
566
566
|
}
|
|
567
567
|
return p;
|
|
568
|
-
},
|
|
569
|
-
ut ^=
|
|
568
|
+
}, ct = 16384, lt = new Int32Array(ct * 2), ut = 0, Z = 1, dt = Object.create(null), ft = Object.create(null), pt = /* @__PURE__ */ new Map(), mt = /* @__PURE__ */ new Map(), Q = 0, ht = 0, $ = () => {
|
|
569
|
+
ut ^= ct, Z = Z + 1 | 0, ht = 0;
|
|
570
570
|
}, gt = (e) => {
|
|
571
571
|
let t = dt[e];
|
|
572
572
|
if (t !== void 0) return t;
|
|
573
|
-
let n =
|
|
574
|
-
return i && (t = ft[e], t !== void 0) ? (dt[e] = t, t) : (t =
|
|
573
|
+
let n = je(e, 0, e.length), r = (n & 16383) + ut, i = lt[r] === (n ^ Z) || lt[r ^ ct] === (n ^ Z - 1);
|
|
574
|
+
return i && (t = ft[e], t !== void 0) ? (dt[e] = t, t) : (t = st(e), i ? (dt[e] = t, ++Q > P && (Q = 0, ft = dt, dt = Object.create(null), $())) : (lt[r] = n ^ Z, ++ht > ct && $()), t);
|
|
575
575
|
}, _t = (e) => {
|
|
576
576
|
let t = pt.get(e);
|
|
577
577
|
if (t !== void 0) return t;
|
|
578
|
-
let n =
|
|
579
|
-
return i && (t = mt.get(e), t !== void 0) ? (pt.set(e, t), t) : (t =
|
|
578
|
+
let n = je(e, 0, e.length), r = (n & 16383) + ut, i = lt[r] === (n ^ Z) || lt[r ^ ct] === (n ^ Z - 1);
|
|
579
|
+
return i && (t = mt.get(e), t !== void 0) ? (pt.set(e, t), t) : (t = st(e), i ? (pt.set(e, t), ++Q > P && (Q = 0, mt = pt, pt = /* @__PURE__ */ new Map(), $())) : (lt[r] = n ^ Z, ++ht > ct && $()), t);
|
|
580
580
|
}, vt = (e) => {
|
|
581
|
-
let t =
|
|
582
|
-
return
|
|
583
|
-
}, yt = P === 0 ?
|
|
581
|
+
let t = je(e, 0, e.length), n = (t & 16383) + ut;
|
|
582
|
+
return lt[n] === (t ^ Z) || lt[n ^ ct] === (t ^ Z - 1) || (lt[n] = t ^ Z, ++ht > ct && $(), !1);
|
|
583
|
+
}, yt = P === 0 ? st : Oe ? (e) => {
|
|
584
584
|
let t = pt.get(e);
|
|
585
585
|
return t === void 0 ? _t(e) : t;
|
|
586
586
|
} : gt;
|
|
587
587
|
return {
|
|
588
588
|
merge: function() {
|
|
589
|
-
return arguments.length === 1 && typeof arguments[0] == "string" ? yt(arguments[0]) : yt(
|
|
589
|
+
return arguments.length === 1 && typeof arguments[0] == "string" ? yt(arguments[0]) : yt(Fe.apply(null, arguments));
|
|
590
590
|
},
|
|
591
591
|
mergeString: yt,
|
|
592
592
|
seenBefore: P === 0 ? () => !1 : vt,
|
|
593
|
-
mergeUncached:
|
|
593
|
+
mergeUncached: st
|
|
594
594
|
};
|
|
595
|
-
},
|
|
595
|
+
}, Ne = (e, t) => {
|
|
596
596
|
if (!e) return "";
|
|
597
597
|
if (typeof e == "string") return e;
|
|
598
598
|
let n = "";
|
|
@@ -601,7 +601,7 @@ var we = B("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Te = se(
|
|
|
601
601
|
for (let e = 0; e < r.length; e++) {
|
|
602
602
|
let i = r[e];
|
|
603
603
|
if (!i) continue;
|
|
604
|
-
let a = typeof i == "string" ? i :
|
|
604
|
+
let a = typeof i == "string" ? i : Ne(i, t);
|
|
605
605
|
a && (n && (n += " "), n += a);
|
|
606
606
|
}
|
|
607
607
|
return n;
|
|
@@ -611,21 +611,21 @@ var we = B("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Te = se(
|
|
|
611
611
|
if (typeof e == "object") for (let t in e) e[t] && (n && (n += " "), n += t);
|
|
612
612
|
}
|
|
613
613
|
return n;
|
|
614
|
-
},
|
|
614
|
+
}, Pe = (e, t) => {
|
|
615
615
|
let n = "";
|
|
616
616
|
for (let r = 0; r < e.length; r++) {
|
|
617
617
|
let i = e[r];
|
|
618
618
|
if (!i) continue;
|
|
619
|
-
let a = typeof i == "string" ? i :
|
|
619
|
+
let a = typeof i == "string" ? i : Ne(i, t);
|
|
620
620
|
a && (n && (n += " "), n += a);
|
|
621
621
|
}
|
|
622
622
|
return n;
|
|
623
|
-
},
|
|
624
|
-
return
|
|
625
|
-
},
|
|
623
|
+
}, Fe = function() {
|
|
624
|
+
return Pe(arguments, !1);
|
|
625
|
+
}, Ie = 256, Le = 16, Re = 1024, ze = 4096, Be = (e, t) => {
|
|
626
626
|
let n = t === void 0 ? () => !0 : t.seenBefore, r = t === void 0 ? e : t.mergeUncached, i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = 0, s = null, c = null, l = [], u = [], d = 0, f = (t, n, r) => {
|
|
627
|
-
c === null && (c = Array(
|
|
628
|
-
let i =
|
|
627
|
+
c === null && (c = Array(ze).fill(""), l = Array(ze).fill(""), u = Array(ze).fill(""));
|
|
628
|
+
let i = je(t, 0, t.length) & 4094;
|
|
629
629
|
if (c[i] === t && l[i] === n) return u[i];
|
|
630
630
|
if (c[i | 1] === t && l[i | 1] === n) return u[i | 1];
|
|
631
631
|
let a = e(r ? n + " " + t : t), o = c[i] === "" ? i : i | (c[i | 1] === "" ? 1 : d++ & 1);
|
|
@@ -666,7 +666,7 @@ var we = B("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Te = se(
|
|
|
666
666
|
let n = t[e];
|
|
667
667
|
if (n) {
|
|
668
668
|
if (typeof n != "string") {
|
|
669
|
-
if (n = t[e] =
|
|
669
|
+
if (n = t[e] = Ne(n, !0), !n) continue;
|
|
670
670
|
g = !0;
|
|
671
671
|
}
|
|
672
672
|
p < 0 && (d = n, p = e), h++;
|
|
@@ -725,12 +725,12 @@ var we = B("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Te = se(
|
|
|
725
725
|
miss: 0,
|
|
726
726
|
skip: 0,
|
|
727
727
|
at: 0
|
|
728
|
-
}) : ++_.miss >
|
|
728
|
+
}) : ++_.miss > Le && (_.miss = Le, _.skip = Re, _.e.length = 0, _.at = 0);
|
|
729
729
|
let u = _.e;
|
|
730
|
-
u.length <
|
|
730
|
+
u.length < Ie ? u.push(v) : (u[_.at] = v, _.at = _.at + 1 & 255), ++o > 1e3 && (o = 0, a = i, i = /* @__PURE__ */ new Map());
|
|
731
731
|
}
|
|
732
732
|
return s !== null && s !== v && (s.n = v), s = v, v.r;
|
|
733
|
-
}, g = (t) => Array.isArray(t) ? h(t.slice(), !1) : e(
|
|
733
|
+
}, g = (t) => Array.isArray(t) ? h(t.slice(), !1) : e(Ne(t, !0));
|
|
734
734
|
return function(t, n, r) {
|
|
735
735
|
let a = arguments.length;
|
|
736
736
|
if ((a | 1) == 3) {
|
|
@@ -787,29 +787,29 @@ var we = B("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Te = se(
|
|
|
787
787
|
for (let e = 0; e < a; e++) c.push(arguments[e]);
|
|
788
788
|
return h(c, !0);
|
|
789
789
|
};
|
|
790
|
-
},
|
|
791
|
-
|
|
790
|
+
}, Ve = /* @__PURE__ */ Me(De), X = /* @__PURE__ */ Be(Ve.mergeString, Ve);
|
|
791
|
+
Ve.merge;
|
|
792
792
|
//#endregion
|
|
793
793
|
//#region src/components/ui/dropdown-menu.jsx
|
|
794
|
-
function
|
|
794
|
+
function He({ ...e }) {
|
|
795
795
|
return /* @__PURE__ */ a(s.Root, {
|
|
796
796
|
"data-slot": "dropdown-menu",
|
|
797
797
|
...e
|
|
798
798
|
});
|
|
799
799
|
}
|
|
800
|
-
function
|
|
800
|
+
function Ue({ ...e }) {
|
|
801
801
|
return /* @__PURE__ */ a(s.Portal, {
|
|
802
802
|
"data-slot": "dropdown-menu-portal",
|
|
803
803
|
...e
|
|
804
804
|
});
|
|
805
805
|
}
|
|
806
|
-
function
|
|
806
|
+
function We({ ...e }) {
|
|
807
807
|
return /* @__PURE__ */ a(s.Trigger, {
|
|
808
808
|
"data-slot": "dropdown-menu-trigger",
|
|
809
809
|
...e
|
|
810
810
|
});
|
|
811
811
|
}
|
|
812
|
-
function
|
|
812
|
+
function Ge({ align: e = "start", alignOffset: t = 0, side: n = "bottom", sideOffset: r = 4, className: i, ...o }) {
|
|
813
813
|
return /* @__PURE__ */ a(s.Portal, {
|
|
814
814
|
"data-slot": "dropdown-menu-portal",
|
|
815
815
|
children: /* @__PURE__ */ a(s.Positioner, {
|
|
@@ -822,71 +822,71 @@ function Ke({ align: e = "start", alignOffset: t = 0, side: n = "bottom", sideOf
|
|
|
822
822
|
children: /* @__PURE__ */ a(s.Popup, {
|
|
823
823
|
"data-fastr-popup": "",
|
|
824
824
|
"data-slot": "dropdown-menu-content",
|
|
825
|
-
className:
|
|
825
|
+
className: X("bg-popover text-popover-foreground ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md p-1 shadow-md ring-1 duration-100 outline-none data-closed:overflow-hidden", i),
|
|
826
826
|
...o
|
|
827
827
|
})
|
|
828
828
|
})
|
|
829
829
|
});
|
|
830
830
|
}
|
|
831
|
-
function
|
|
831
|
+
function Ke({ ...e }) {
|
|
832
832
|
return /* @__PURE__ */ a(s.Group, {
|
|
833
833
|
"data-slot": "dropdown-menu-group",
|
|
834
834
|
...e
|
|
835
835
|
});
|
|
836
836
|
}
|
|
837
|
-
function
|
|
837
|
+
function qe({ className: e, inset: t, ...n }) {
|
|
838
838
|
return /* @__PURE__ */ a(s.GroupLabel, {
|
|
839
839
|
"data-slot": "dropdown-menu-label",
|
|
840
840
|
"data-inset": t,
|
|
841
|
-
className:
|
|
841
|
+
className: X("text-muted-foreground px-1.5 py-1 text-xs font-medium data-inset:pl-7", e),
|
|
842
842
|
...n
|
|
843
843
|
});
|
|
844
844
|
}
|
|
845
|
-
function
|
|
845
|
+
function Je({ className: e, inset: t, variant: n = "default", ...r }) {
|
|
846
846
|
return /* @__PURE__ */ a(s.Item, {
|
|
847
847
|
"data-slot": "dropdown-menu-item",
|
|
848
848
|
"data-inset": t,
|
|
849
849
|
"data-variant": n,
|
|
850
|
-
className:
|
|
850
|
+
className: X("group/dropdown-menu-item focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:*:[svg]:text-destructive relative flex cursor-default items-center gap-1.5 rounded px-2 py-1 text-xs outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5", e),
|
|
851
851
|
...r
|
|
852
852
|
});
|
|
853
853
|
}
|
|
854
|
-
function
|
|
854
|
+
function Ye({ className: e, ...t }) {
|
|
855
855
|
return /* @__PURE__ */ a(s.Separator, {
|
|
856
856
|
"data-slot": "dropdown-menu-separator",
|
|
857
|
-
className:
|
|
857
|
+
className: X("bg-border -mx-1 my-1 h-px", e),
|
|
858
858
|
...t
|
|
859
859
|
});
|
|
860
860
|
}
|
|
861
861
|
//#endregion
|
|
862
862
|
//#region src/components/ui/navigation-menu.jsx
|
|
863
|
-
function
|
|
863
|
+
function Xe({ align: e = "start", className: t, children: n, ...r }) {
|
|
864
864
|
return /* @__PURE__ */ o(c.Root, {
|
|
865
865
|
"data-slot": "navigation-menu",
|
|
866
|
-
className:
|
|
866
|
+
className: X("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center", t),
|
|
867
867
|
...r,
|
|
868
|
-
children: [n, /* @__PURE__ */ a(
|
|
868
|
+
children: [n, /* @__PURE__ */ a(nt, { align: e })]
|
|
869
869
|
});
|
|
870
870
|
}
|
|
871
|
-
function
|
|
871
|
+
function Ze({ className: e, ...t }) {
|
|
872
872
|
return /* @__PURE__ */ a(c.List, {
|
|
873
873
|
"data-slot": "navigation-menu-list",
|
|
874
|
-
className:
|
|
874
|
+
className: X("group flex flex-1 list-none items-center justify-center gap-1", e),
|
|
875
875
|
...t
|
|
876
876
|
});
|
|
877
877
|
}
|
|
878
|
-
function
|
|
878
|
+
function Qe({ className: e, ...t }) {
|
|
879
879
|
return /* @__PURE__ */ a(c.Item, {
|
|
880
880
|
"data-slot": "navigation-menu-item",
|
|
881
|
-
className:
|
|
881
|
+
className: X("relative", e),
|
|
882
882
|
...t
|
|
883
883
|
});
|
|
884
884
|
}
|
|
885
|
-
var
|
|
886
|
-
function
|
|
885
|
+
var $e = l("group/navigation-menu-trigger inline-flex h-9 w-max items-center justify-center gap-1.5 rounded-lg px-2.5 py-1.5 text-sm font-medium transition-colors outline-none hover:bg-muted focus:bg-muted focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-popup-open:bg-muted data-open:bg-muted cursor-pointer text-foreground select-none");
|
|
886
|
+
function et({ className: e, children: t, ...n }) {
|
|
887
887
|
return /* @__PURE__ */ o(c.Trigger, {
|
|
888
888
|
"data-slot": "navigation-menu-trigger",
|
|
889
|
-
className:
|
|
889
|
+
className: X($e(), "group", e),
|
|
890
890
|
...n,
|
|
891
891
|
children: [t, /* @__PURE__ */ a(g, {
|
|
892
892
|
className: "size-3.5 shrink-0 opacity-70 transition-transform duration-200 group-data-popup-open/navigation-menu-trigger:rotate-180 group-data-open/navigation-menu-trigger:rotate-180",
|
|
@@ -894,14 +894,14 @@ function tt({ className: e, children: t, ...n }) {
|
|
|
894
894
|
})]
|
|
895
895
|
});
|
|
896
896
|
}
|
|
897
|
-
function
|
|
897
|
+
function tt({ className: e, ...t }) {
|
|
898
898
|
return /* @__PURE__ */ a(c.Content, {
|
|
899
899
|
"data-slot": "navigation-menu-content",
|
|
900
|
-
className:
|
|
900
|
+
className: X("h-full w-auto p-0 rounded-xl overflow-hidden", e),
|
|
901
901
|
...t
|
|
902
902
|
});
|
|
903
903
|
}
|
|
904
|
-
function
|
|
904
|
+
function nt({ className: e, side: t = "bottom", sideOffset: n = 8, align: r = "start", alignOffset: i = 0, ...o }) {
|
|
905
905
|
return /* @__PURE__ */ a(c.Portal, {
|
|
906
906
|
"data-slot": "navigation-menu-portal",
|
|
907
907
|
children: /* @__PURE__ */ a(c.Positioner, {
|
|
@@ -910,7 +910,7 @@ function rt({ className: e, side: t = "bottom", sideOffset: n = 8, align: r = "s
|
|
|
910
910
|
sideOffset: n,
|
|
911
911
|
align: r,
|
|
912
912
|
alignOffset: i,
|
|
913
|
-
className:
|
|
913
|
+
className: X("isolate z-50 h-(--positioner-height) w-(--positioner-width) max-w-(--available-width) bg-transparent transition-[top,left,right,bottom] duration-300 ease-[cubic-bezier(0.22,1,0.36,1)] data-instant:transition-none data-[side=bottom]:before:-top-2.5 data-[side=bottom]:before:right-0 data-[side=bottom]:before:left-0", e),
|
|
914
914
|
...o,
|
|
915
915
|
children: /* @__PURE__ */ a(c.Popup, {
|
|
916
916
|
"data-slot": "navigation-menu-popup",
|
|
@@ -923,37 +923,37 @@ function rt({ className: e, side: t = "bottom", sideOffset: n = 8, align: r = "s
|
|
|
923
923
|
})
|
|
924
924
|
});
|
|
925
925
|
}
|
|
926
|
-
function
|
|
926
|
+
function rt({ className: e, ...t }) {
|
|
927
927
|
return /* @__PURE__ */ a(c.Link, {
|
|
928
928
|
"data-slot": "navigation-menu-link",
|
|
929
|
-
className:
|
|
929
|
+
className: X("flex items-center gap-2 rounded-lg p-2 text-sm transition-all outline-none hover:bg-muted focus:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-1 in-data-[slot=navigation-menu-content]:rounded-md data-active:bg-muted/50 data-active:hover:bg-muted data-active:focus:bg-muted [&_svg:not([class*='size-'])]:size-4", e),
|
|
930
930
|
...t
|
|
931
931
|
});
|
|
932
932
|
}
|
|
933
|
-
function
|
|
933
|
+
function it({ className: e, ...t }) {
|
|
934
934
|
return /* @__PURE__ */ a(c.Icon, {
|
|
935
935
|
"data-slot": "navigation-menu-indicator",
|
|
936
|
-
className:
|
|
936
|
+
className: X("top-full z-1 flex h-1.5 items-end justify-center overflow-hidden data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:animate-in data-[state=visible]:fade-in", e),
|
|
937
937
|
...t,
|
|
938
938
|
children: /* @__PURE__ */ a("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
939
939
|
});
|
|
940
940
|
}
|
|
941
941
|
//#endregion
|
|
942
942
|
//#region src/components/ui/popover.jsx
|
|
943
|
-
function
|
|
943
|
+
function at({ ...e }) {
|
|
944
944
|
return /* @__PURE__ */ a(L.Root, {
|
|
945
945
|
"data-slot": "popover",
|
|
946
946
|
...e
|
|
947
947
|
});
|
|
948
948
|
}
|
|
949
|
-
function
|
|
949
|
+
function ot({ className: e, ...t }) {
|
|
950
950
|
return /* @__PURE__ */ a(L.Trigger, {
|
|
951
951
|
"data-slot": "popover-trigger",
|
|
952
|
-
className:
|
|
952
|
+
className: X("w-full", e),
|
|
953
953
|
...t
|
|
954
954
|
});
|
|
955
955
|
}
|
|
956
|
-
function
|
|
956
|
+
function st({ className: e, align: t = "center", alignOffset: n = 0, side: r = "bottom", sideOffset: i = 4, ...o }) {
|
|
957
957
|
return /* @__PURE__ */ a(L.Portal, {
|
|
958
958
|
"data-slot": "popover-portal",
|
|
959
959
|
children: /* @__PURE__ */ a(L.Positioner, {
|
|
@@ -966,30 +966,30 @@ function ct({ className: e, align: t = "center", alignOffset: n = 0, side: r = "
|
|
|
966
966
|
children: /* @__PURE__ */ a(L.Popup, {
|
|
967
967
|
"data-fastr-popup": "",
|
|
968
968
|
"data-slot": "popover-content",
|
|
969
|
-
className:
|
|
969
|
+
className: X("bg-popover text-popover-foreground ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-[1000000] flex w-72 origin-(--transform-origin) flex-col gap-2.5 rounded-xl p-1 text-xs shadow-md ring-1 outline-hidden duration-100 overflow-hidden", e),
|
|
970
970
|
...o
|
|
971
971
|
})
|
|
972
972
|
})
|
|
973
973
|
});
|
|
974
974
|
}
|
|
975
|
-
function
|
|
975
|
+
function ct({ className: e, ...t }) {
|
|
976
976
|
return /* @__PURE__ */ a("div", {
|
|
977
977
|
"data-slot": "popover-header",
|
|
978
|
-
className:
|
|
978
|
+
className: X("flex flex-col gap-0.5 text-xs", e),
|
|
979
979
|
...t
|
|
980
980
|
});
|
|
981
981
|
}
|
|
982
|
-
function
|
|
982
|
+
function lt({ className: e, ...t }) {
|
|
983
983
|
return /* @__PURE__ */ a(L.Title, {
|
|
984
984
|
"data-slot": "popover-title",
|
|
985
|
-
className:
|
|
985
|
+
className: X("font-heading font-medium", e),
|
|
986
986
|
...t
|
|
987
987
|
});
|
|
988
988
|
}
|
|
989
989
|
function ut({ className: e, ...t }) {
|
|
990
990
|
return /* @__PURE__ */ a(L.Description, {
|
|
991
991
|
"data-slot": "popover-description",
|
|
992
|
-
className:
|
|
992
|
+
className: X("text-muted-foreground", e),
|
|
993
993
|
...t
|
|
994
994
|
});
|
|
995
995
|
}
|
|
@@ -3306,11 +3306,11 @@ function vt({ app: e, type: r = "macro", config: s, currentApp: c = "derivatives
|
|
|
3306
3306
|
href: n,
|
|
3307
3307
|
onClick: (t) => ae(t, n, e.onClick, e),
|
|
3308
3308
|
onMouseEnter: () => N(e),
|
|
3309
|
-
className:
|
|
3309
|
+
className: X("flex w-full cursor-pointer items-center justify-between rounded-lg px-3 py-2 text-left text-xs font-medium transition-all select-none sm:text-sm", t ? "bg-primary text-primary-foreground font-semibold shadow-xs" : "text-foreground/80 hover:bg-accent hover:text-accent-foreground"),
|
|
3310
3310
|
children: [/* @__PURE__ */ o("div", {
|
|
3311
3311
|
className: "flex items-center gap-2.5",
|
|
3312
|
-
children: [$(e.icon, { className:
|
|
3313
|
-
}), /* @__PURE__ */ a(_, { className:
|
|
3312
|
+
children: [$(e.icon, { className: X("size-4 shrink-0", t ? "text-primary-foreground" : "text-muted-foreground group-hover:text-foreground") }), /* @__PURE__ */ a("span", { children: e.label || e.title || e.name })]
|
|
3313
|
+
}), /* @__PURE__ */ a(_, { className: X("size-3.5 transition-transform", t ? "opacity-100" : "opacity-0") })]
|
|
3314
3314
|
}, e.id);
|
|
3315
3315
|
})
|
|
3316
3316
|
})] })
|
|
@@ -3376,16 +3376,19 @@ function yt(e) {
|
|
|
3376
3376
|
return e;
|
|
3377
3377
|
}
|
|
3378
3378
|
}
|
|
3379
|
-
function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, uiTheme: f, apps: p, user: g, logout: v, theme: y, setTheme: b,
|
|
3380
|
-
let
|
|
3379
|
+
function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, uiTheme: f, apps: p, user: g, logout: v, theme: y, setTheme: b, onThemeChange: x, currentApp: S, navigate: C, onNavigate: D, urls: O = {}, logo: ne, onLogoClick: re, categoryData: ie = [], chartingCallbacks: k = {}, products: A, extraRightContent: j, className: M }) {
|
|
3380
|
+
let N = n(() => {
|
|
3381
3381
|
let t = {
|
|
3382
3382
|
...s ? { authApiUrl: s } : {},
|
|
3383
3383
|
...l ? { authRedirectUrl: l } : {},
|
|
3384
3384
|
...u ? { profileGetter: u } : {},
|
|
3385
3385
|
...f ? { uiTheme: f } : {},
|
|
3386
3386
|
...p ? { apps: p } : {},
|
|
3387
|
-
...
|
|
3388
|
-
...
|
|
3387
|
+
...S ? { currentApp: S } : {},
|
|
3388
|
+
...O && Object.keys(O).length > 0 ? { urls: O } : {},
|
|
3389
|
+
...y === void 0 ? {} : { theme: y },
|
|
3390
|
+
...b ? { setTheme: b } : {},
|
|
3391
|
+
...x ? { onThemeChange: x } : {}
|
|
3389
3392
|
};
|
|
3390
3393
|
return ht({
|
|
3391
3394
|
...e || {},
|
|
@@ -3398,39 +3401,42 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
|
|
|
3398
3401
|
u,
|
|
3399
3402
|
f,
|
|
3400
3403
|
p,
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
+
S,
|
|
3405
|
+
O,
|
|
3406
|
+
y,
|
|
3407
|
+
b,
|
|
3408
|
+
x
|
|
3409
|
+
]), F = S || N.currentApp || "derivatives", I = (N.authApiUrl || "https://sso-api.datatokenapi.com/api").replace(/\/+$/, ""), L = (N.authRedirectUrl || N.urls?.sso || "https://sso.datatokenapi.com").replace(/\/+$/, ""), z = u || N.profileGetter, [B, V] = i(null), [H, oe] = i(!1);
|
|
3404
3410
|
t(() => {
|
|
3405
|
-
if (g === void 0 &&
|
|
3406
|
-
if (typeof
|
|
3407
|
-
|
|
3411
|
+
if (g === void 0 && N.user === void 0) {
|
|
3412
|
+
if (typeof z == "function") oe(!0), Promise.resolve(z()).then((e) => {
|
|
3413
|
+
V(e?.data || e?.user || e);
|
|
3408
3414
|
}).catch((e) => {
|
|
3409
3415
|
console.warn("[GlobalHeader] profileGetter error:", e);
|
|
3410
3416
|
}).finally(() => {
|
|
3411
|
-
|
|
3417
|
+
oe(!1);
|
|
3412
3418
|
});
|
|
3413
|
-
else if (
|
|
3414
|
-
|
|
3415
|
-
let e =
|
|
3419
|
+
else if (I && typeof window < "u") {
|
|
3420
|
+
oe(!0);
|
|
3421
|
+
let e = I.endsWith("/api") ? `${I}/auth/me` : `${I}/api/auth/me`, t = I.endsWith("/api") ? `${I}/auth/profile` : `${I}/api/auth/profile`;
|
|
3416
3422
|
fetch(e, { credentials: "include" }).then((e) => e.ok ? e.json() : fetch(t, { credentials: "include" }).then((e) => e.ok ? e.json() : null)).then((e) => {
|
|
3417
|
-
e &&
|
|
3418
|
-
}).catch(() => {}).finally(() =>
|
|
3423
|
+
e && V(e?.data || e?.user || e);
|
|
3424
|
+
}).catch(() => {}).finally(() => oe(!1));
|
|
3419
3425
|
}
|
|
3420
3426
|
}
|
|
3421
3427
|
}, [
|
|
3422
3428
|
g,
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3429
|
+
N.user,
|
|
3430
|
+
z,
|
|
3431
|
+
I
|
|
3426
3432
|
]);
|
|
3427
|
-
let
|
|
3428
|
-
let t =
|
|
3433
|
+
let U = g === void 0 ? N.user === void 0 ? B : N.user : g, W = (e) => {
|
|
3434
|
+
let t = U?.all_apps || U?.apps || [], n = (e || "").toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
3429
3435
|
return t.find((t) => {
|
|
3430
3436
|
let r = (t.code || "").toLowerCase().replace(/[^a-z0-9]/g, ""), i = (t.name || "").toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
3431
3437
|
return n.includes("scanner") && (r.includes("scanner") || i.includes("scanner")) || n.includes("chart") && (r.includes("chart") || i.includes("chart")) || n.includes("deriv") && (r.includes("deriv") || i.includes("deriv")) || n.includes("macro") && (r.includes("macro") || i.includes("macro")) || n.includes("xray") && (r.includes("xray") || i.includes("xray") || i.includes("stockxray") || i.includes("stock-x-ray")) || i === n || r === n || t.id === e;
|
|
3432
3438
|
});
|
|
3433
|
-
},
|
|
3439
|
+
}, G = () => {
|
|
3434
3440
|
if (typeof window > "u") return !1;
|
|
3435
3441
|
let e = document.documentElement, t = document.body;
|
|
3436
3442
|
if (e.classList.contains("dark") || t?.classList.contains("dark")) return !0;
|
|
@@ -3449,12 +3455,23 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
|
|
|
3449
3455
|
}
|
|
3450
3456
|
}
|
|
3451
3457
|
return window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
3452
|
-
}, [
|
|
3453
|
-
|
|
3454
|
-
|
|
3458
|
+
}, K = y === void 0 ? N.theme : y, [se, ce] = i(() => typeof window < "u" ? localStorage.getItem("theme") || K || N.uiTheme || "system" : K || N.uiTheme || "system");
|
|
3459
|
+
t(() => {
|
|
3460
|
+
K !== void 0 && ce(K);
|
|
3461
|
+
}, [K]);
|
|
3462
|
+
let q = K === void 0 ? se : K, le = (e) => {
|
|
3463
|
+
let t = e === "dark" || e !== "light" && G();
|
|
3464
|
+
if (ce(e), typeof window < "u") {
|
|
3465
|
+
try {
|
|
3466
|
+
localStorage.setItem("theme", e);
|
|
3467
|
+
} catch {}
|
|
3468
|
+
e === "dark" ? document.documentElement.classList.add("dark") : e === "light" ? document.documentElement.classList.remove("dark") : G() ? document.documentElement.classList.add("dark") : document.documentElement.classList.remove("dark");
|
|
3469
|
+
}
|
|
3470
|
+
typeof b == "function" && b(e, t), typeof x == "function" && x(e, t), typeof N?.setTheme == "function" && N.setTheme !== b && N.setTheme(e, t), typeof N?.onThemeChange == "function" && N.onThemeChange !== x && N.onThemeChange(e, t);
|
|
3471
|
+
}, [ue, de] = i(() => G());
|
|
3455
3472
|
t(() => {
|
|
3456
3473
|
if (typeof window > "u") return;
|
|
3457
|
-
let e = () =>
|
|
3474
|
+
let e = () => de(G());
|
|
3458
3475
|
e();
|
|
3459
3476
|
let t = window.matchMedia("(prefers-color-scheme: dark)");
|
|
3460
3477
|
t.addEventListener("change", e);
|
|
@@ -3480,12 +3497,12 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
|
|
|
3480
3497
|
t.removeEventListener("change", e), n.disconnect();
|
|
3481
3498
|
};
|
|
3482
3499
|
}, []);
|
|
3483
|
-
let
|
|
3484
|
-
let t =
|
|
3485
|
-
return t && t.id ? `${
|
|
3486
|
-
},
|
|
3487
|
-
if (!
|
|
3488
|
-
let t = (e || "").toLowerCase().replace(/[^a-z0-9]/g, ""), n =
|
|
3500
|
+
let fe = q === "dark" || q !== "light" && ue, [pe, me] = i(!1), [he, ge] = i(""), [_e, ve] = i(null), ye = r(null), be = N.urls?.profile || `${L}/profile`, J = N.urls?.purchase || `${L}/purchase`, xe = N.urls?.landing || "http://localhost:3005", Se = (e) => {
|
|
3501
|
+
let t = W(e);
|
|
3502
|
+
return t && t.id ? `${J}?app_id=${t.id}` : `${J}?app=${e}`;
|
|
3503
|
+
}, Ce = (e) => {
|
|
3504
|
+
if (!U || U?.role === "superadmin" || U?.is_superadmin) return !0;
|
|
3505
|
+
let t = (e || "").toLowerCase().replace(/[^a-z0-9]/g, ""), n = U?.subscriptions;
|
|
3489
3506
|
if (n && !Array.isArray(n) && typeof n == "object") for (let [e, r] of Object.entries(n)) {
|
|
3490
3507
|
let n = e.toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
3491
3508
|
if (t.includes("scanner") && n.includes("scanner") || t.includes("chart") && n.includes("chart") || t.includes("deriv") && n.includes("deriv") || t.includes("macro") && n.includes("macro") || t.includes("xray") && (n.includes("xray") || n.includes("stockxray")) || n === t) {
|
|
@@ -3500,31 +3517,31 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
|
|
|
3500
3517
|
if (t === "active" || t === "expiring_soon") return !0;
|
|
3501
3518
|
}
|
|
3502
3519
|
}
|
|
3503
|
-
let r =
|
|
3520
|
+
let r = W(e);
|
|
3504
3521
|
return r ? [
|
|
3505
3522
|
"superadmin",
|
|
3506
3523
|
"admin",
|
|
3507
3524
|
"staff"
|
|
3508
|
-
].includes(r.role) ? !0 : r.subscription_status === "active" || r.subscription_status === "expiring_soon" || r.is_subscribed === !0 :
|
|
3509
|
-
},
|
|
3510
|
-
let e =
|
|
3525
|
+
].includes(r.role) ? !0 : r.subscription_status === "active" || r.subscription_status === "expiring_soon" || r.is_subscribed === !0 : U?.subscription?.status === "active" || U?.subscription?.status === "expiring_soon";
|
|
3526
|
+
}, we = () => {
|
|
3527
|
+
let e = U?.fullName || U?.full_name || U?.name;
|
|
3511
3528
|
if (e && typeof e == "string" && e.trim() && !e.includes("@")) return e.trim();
|
|
3512
|
-
if (
|
|
3513
|
-
let e =
|
|
3529
|
+
if (U?.email && typeof U.email == "string") {
|
|
3530
|
+
let e = U.email.split("@")[0].replace(/[._0-9+-]+/g, " ").trim();
|
|
3514
3531
|
if (e) return e.split(/\s+/).map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(" ");
|
|
3515
3532
|
}
|
|
3516
3533
|
return e || "User";
|
|
3517
|
-
},
|
|
3518
|
-
if (Array.isArray(
|
|
3519
|
-
let t = (e.app_name || e.name || "").toLowerCase().replace(/[^a-z0-9]/g, ""), n = (
|
|
3534
|
+
}, Te = n(() => {
|
|
3535
|
+
if (Array.isArray(U?.subscriptions) && U.subscriptions.length > 0) return U.subscriptions.find((e) => {
|
|
3536
|
+
let t = (e.app_name || e.name || "").toLowerCase().replace(/[^a-z0-9]/g, ""), n = (F || "").toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
3520
3537
|
return n.includes("scanner") && t.includes("scanner") || n.includes("chart") && t.includes("chart") || n.includes("deriv") && t.includes("deriv") || n.includes("macro") && t.includes("macro") || n.includes("xray") && (t.includes("xray") || t.includes("stockxray")) || t === n;
|
|
3521
|
-
}) ||
|
|
3522
|
-
if (
|
|
3523
|
-
if (Array.isArray(
|
|
3524
|
-
let e =
|
|
3525
|
-
let t = (e.name || "").toLowerCase().replace(/[^a-z0-9]/g, ""), n = (
|
|
3538
|
+
}) || U.subscriptions.find((e) => e.status === "active") || U.subscriptions[0];
|
|
3539
|
+
if (U?.subscription) return U.subscription;
|
|
3540
|
+
if (Array.isArray(U?.all_apps) && U.all_apps.length > 0) {
|
|
3541
|
+
let e = U.all_apps.find((e) => {
|
|
3542
|
+
let t = (e.name || "").toLowerCase().replace(/[^a-z0-9]/g, ""), n = (F || "").toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
3526
3543
|
return (n.includes("scanner") && t.includes("scanner") || n.includes("chart") && t.includes("chart") || n.includes("deriv") && t.includes("deriv") || n.includes("macro") && t.includes("macro") || n.includes("xray") && (t.includes("xray") || t.includes("stockxray")) || t === n) && e.is_subscribed;
|
|
3527
|
-
}) ||
|
|
3544
|
+
}) || U.all_apps.find((e) => e.is_subscribed);
|
|
3528
3545
|
if (e) return {
|
|
3529
3546
|
plan_name: e.plan_name,
|
|
3530
3547
|
status: e.subscription_status || (e.is_subscribed ? "active" : "inactive"),
|
|
@@ -3533,34 +3550,34 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
|
|
|
3533
3550
|
};
|
|
3534
3551
|
}
|
|
3535
3552
|
return null;
|
|
3536
|
-
}, [
|
|
3537
|
-
|
|
3553
|
+
}, [U, F]), Ee = (e, t, n) => {
|
|
3554
|
+
D ? D(e, t, n) : C ? C(e) : window.location.assign(e);
|
|
3538
3555
|
}, De = () => {
|
|
3539
|
-
let e = v ||
|
|
3540
|
-
e ? e() : window.location.assign(`${
|
|
3556
|
+
let e = v || N.logout;
|
|
3557
|
+
e ? e() : window.location.assign(`${L}/logout`);
|
|
3541
3558
|
}, Oe = n(() => {
|
|
3542
|
-
if (
|
|
3543
|
-
let e =
|
|
3559
|
+
if (A) return A;
|
|
3560
|
+
let e = N.apps || {};
|
|
3544
3561
|
return (Array.isArray(e) ? e : Object.entries(e).map(([e, t]) => ({
|
|
3545
3562
|
id: e,
|
|
3546
3563
|
...t
|
|
3547
3564
|
}))).map((e) => {
|
|
3548
|
-
let t = e.id, n = e.name || e.label || t, r = e.hasMegaMenu !== !1 && !!(e.pages?.length || e.categories?.length), i =
|
|
3565
|
+
let t = e.id, n = e.name || e.label || t, r = e.hasMegaMenu !== !1 && !!(e.pages?.length || e.categories?.length), i = W(t), a = e.url || N.urls?.[t] || i?.app_url || "", o = gt({
|
|
3549
3566
|
baseUrl: a,
|
|
3550
3567
|
route: e.route || "/",
|
|
3551
3568
|
href: e.href,
|
|
3552
3569
|
queryParams: e.queryParams,
|
|
3553
3570
|
params: e.params,
|
|
3554
|
-
currentTheme:
|
|
3555
|
-
appendTheme:
|
|
3556
|
-
themeParamName:
|
|
3557
|
-
isCurrentApp: t ===
|
|
3571
|
+
currentTheme: q,
|
|
3572
|
+
appendTheme: N.appendThemeParam !== !1,
|
|
3573
|
+
themeParamName: N.themeParamName || "theme",
|
|
3574
|
+
isCurrentApp: t === F
|
|
3558
3575
|
});
|
|
3559
3576
|
return {
|
|
3560
3577
|
id: t,
|
|
3561
3578
|
name: n,
|
|
3562
3579
|
icon: e.icon,
|
|
3563
|
-
isActive: t ===
|
|
3580
|
+
isActive: t === F,
|
|
3564
3581
|
hasMegaMenu: r,
|
|
3565
3582
|
href: o,
|
|
3566
3583
|
rawApp: {
|
|
@@ -3570,110 +3587,110 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
|
|
|
3570
3587
|
};
|
|
3571
3588
|
});
|
|
3572
3589
|
}, [
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
]),
|
|
3590
|
+
A,
|
|
3591
|
+
N.apps,
|
|
3592
|
+
N.urls,
|
|
3593
|
+
N.appendThemeParam,
|
|
3594
|
+
N.themeParamName,
|
|
3595
|
+
F,
|
|
3596
|
+
q,
|
|
3597
|
+
U
|
|
3598
|
+
]), Y = (e, t) => {
|
|
3582
3599
|
let n = t.rawApp || {};
|
|
3583
3600
|
if (n.onClick) {
|
|
3584
3601
|
e.preventDefault(), n.onClick(n);
|
|
3585
3602
|
return;
|
|
3586
3603
|
}
|
|
3587
|
-
if (t.id !==
|
|
3588
|
-
e.preventDefault(),
|
|
3604
|
+
if (t.id !== F && !Ce(t.id)) {
|
|
3605
|
+
e.preventDefault(), ge(""), window.location.assign(Se(t.id));
|
|
3589
3606
|
return;
|
|
3590
3607
|
}
|
|
3591
|
-
t.id === "derivatives" ? (e.preventDefault(),
|
|
3608
|
+
t.id === "derivatives" ? (e.preventDefault(), ge((e) => e === "derivatives" ? "" : "derivatives"), Ee("/positions", n, t)) : t.id === F && (D || C) && (e.preventDefault(), ge(""), Ee(t.href, n, t));
|
|
3592
3609
|
};
|
|
3593
3610
|
return /* @__PURE__ */ o("header", {
|
|
3594
3611
|
"data-fastr-header": "",
|
|
3595
|
-
"data-theme":
|
|
3596
|
-
className:
|
|
3612
|
+
"data-theme": fe ? "dark" : "light",
|
|
3613
|
+
className: X("bg-background sticky top-0 z-50 w-full border-b", M),
|
|
3597
3614
|
children: [/* @__PURE__ */ o("div", {
|
|
3598
3615
|
className: "relative flex h-10 w-full items-center justify-between gap-4 px-3 sm:h-12 sm:px-4",
|
|
3599
3616
|
children: [/* @__PURE__ */ o("div", {
|
|
3600
3617
|
className: "no-scrollbar flex items-center gap-4 overflow-x-auto py-1 lg:gap-6",
|
|
3601
3618
|
children: [/* @__PURE__ */ a("a", {
|
|
3602
|
-
href:
|
|
3619
|
+
href: xe,
|
|
3603
3620
|
className: "mr-1 flex shrink-0 cursor-pointer items-center gap-1.5 select-none",
|
|
3604
3621
|
onClick: (e) => {
|
|
3605
|
-
e.metaKey || e.ctrlKey || e.shiftKey || e.button === 1 ||
|
|
3622
|
+
e.metaKey || e.ctrlKey || e.shiftKey || e.button === 1 || re && (e.preventDefault(), re());
|
|
3606
3623
|
},
|
|
3607
|
-
children:
|
|
3624
|
+
children: ne || /* @__PURE__ */ a(R, {
|
|
3608
3625
|
className: "h-9 w-auto sm:h-10",
|
|
3609
|
-
isDarkMode:
|
|
3626
|
+
isDarkMode: fe
|
|
3610
3627
|
})
|
|
3611
3628
|
}), /* @__PURE__ */ o(c.Root, {
|
|
3612
|
-
value:
|
|
3613
|
-
onValueChange:
|
|
3629
|
+
value: he,
|
|
3630
|
+
onValueChange: ge,
|
|
3614
3631
|
"data-slot": "navigation-menu",
|
|
3615
|
-
className: "group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",
|
|
3616
|
-
children: [/* @__PURE__ */ a(
|
|
3617
|
-
className: "gap-0",
|
|
3632
|
+
className: "group/navigation-menu relative bg-transparent! flex max-w-max flex-1 items-center justify-center",
|
|
3633
|
+
children: [/* @__PURE__ */ a(Ze, {
|
|
3634
|
+
className: "gap-0 bg-transparent!",
|
|
3618
3635
|
children: Oe.map((e, t) => {
|
|
3619
3636
|
let n = e.rawApp || e;
|
|
3620
|
-
return e.hasMegaMenu ? /* @__PURE__ */ o(
|
|
3637
|
+
return e.hasMegaMenu ? /* @__PURE__ */ o(Qe, {
|
|
3621
3638
|
value: e.id,
|
|
3622
|
-
children: [/* @__PURE__ */ o(
|
|
3623
|
-
ref: t === 0 ?
|
|
3624
|
-
className:
|
|
3639
|
+
children: [/* @__PURE__ */ o(et, {
|
|
3640
|
+
ref: t === 0 ? ye : void 0,
|
|
3641
|
+
className: X(e.isActive && "bg-primary text-primary-foreground font-semibold hover:bg-primary/90 hover:text-primary-foreground data-popup-open:bg-primary data-popup-open:text-primary-foreground data-open:bg-primary data-open:text-primary-foreground"),
|
|
3625
3642
|
children: [$(e.icon, { className: "size-4 shrink-0" }), /* @__PURE__ */ a("span", { children: e.name })]
|
|
3626
|
-
}), /* @__PURE__ */ a(
|
|
3627
|
-
className: "p-0 rounded-xl overflow-hidden",
|
|
3643
|
+
}), /* @__PURE__ */ a(tt, {
|
|
3644
|
+
className: "p-0 rounded-xl bg-transparent! overflow-hidden",
|
|
3628
3645
|
children: /* @__PURE__ */ a(vt, {
|
|
3629
3646
|
app: n,
|
|
3630
3647
|
type: e.id,
|
|
3631
|
-
config:
|
|
3632
|
-
currentApp:
|
|
3633
|
-
isDarkMode:
|
|
3634
|
-
isSubscribed:
|
|
3635
|
-
purchaseUrl:
|
|
3636
|
-
categoryData:
|
|
3637
|
-
theme:
|
|
3638
|
-
onClose: () =>
|
|
3648
|
+
config: N,
|
|
3649
|
+
currentApp: F,
|
|
3650
|
+
isDarkMode: fe,
|
|
3651
|
+
isSubscribed: Ce(e.id),
|
|
3652
|
+
purchaseUrl: Se(e.id),
|
|
3653
|
+
categoryData: ie,
|
|
3654
|
+
theme: q,
|
|
3655
|
+
onClose: () => ge(""),
|
|
3639
3656
|
onNavigate: Ee,
|
|
3640
|
-
urls:
|
|
3641
|
-
...
|
|
3657
|
+
urls: N.urls,
|
|
3658
|
+
...k
|
|
3642
3659
|
})
|
|
3643
3660
|
})]
|
|
3644
|
-
}, e.id) : /* @__PURE__ */ a(
|
|
3661
|
+
}, e.id) : /* @__PURE__ */ a(Qe, {
|
|
3645
3662
|
value: e.id,
|
|
3646
|
-
children: /* @__PURE__ */ a(
|
|
3663
|
+
children: /* @__PURE__ */ a(rt, {
|
|
3647
3664
|
asChild: !0,
|
|
3648
3665
|
children: /* @__PURE__ */ o("a", {
|
|
3649
|
-
ref: t === 0 ?
|
|
3666
|
+
ref: t === 0 ? ye : void 0,
|
|
3650
3667
|
href: e.href || "/",
|
|
3651
3668
|
onClick: (t) => {
|
|
3652
|
-
t.metaKey || t.ctrlKey || t.shiftKey || t.button === 1 ||
|
|
3669
|
+
t.metaKey || t.ctrlKey || t.shiftKey || t.button === 1 || Y(t, e);
|
|
3653
3670
|
},
|
|
3654
|
-
className:
|
|
3671
|
+
className: X($e(), "cursor-pointer", e.isActive && "bg-primary text-primary-foreground font-semibold hover:bg-primary/90 hover:text-primary-foreground"),
|
|
3655
3672
|
children: [$(e.icon, { className: "size-4 shrink-0" }), /* @__PURE__ */ a("span", { children: e.name })]
|
|
3656
3673
|
})
|
|
3657
3674
|
})
|
|
3658
3675
|
}, e.id);
|
|
3659
3676
|
})
|
|
3660
|
-
}), /* @__PURE__ */ a(
|
|
3677
|
+
}), /* @__PURE__ */ a(nt, {
|
|
3661
3678
|
align: "start",
|
|
3662
|
-
anchor:
|
|
3679
|
+
anchor: ye
|
|
3663
3680
|
})]
|
|
3664
3681
|
})]
|
|
3665
3682
|
}), /* @__PURE__ */ o("div", {
|
|
3666
3683
|
className: "flex shrink-0 items-center gap-2",
|
|
3667
3684
|
children: [
|
|
3668
|
-
|
|
3669
|
-
/* @__PURE__ */ o(
|
|
3685
|
+
j,
|
|
3686
|
+
/* @__PURE__ */ o(He, { children: [/* @__PURE__ */ a(We, {
|
|
3670
3687
|
className: "hover:bg-accent hover:text-accent-foreground text-muted-foreground flex size-8 cursor-pointer items-center justify-center rounded-lg transition-colors sm:size-8.5",
|
|
3671
|
-
title: `Theme: ${
|
|
3672
|
-
children: a(
|
|
3673
|
-
}), /* @__PURE__ */ a(
|
|
3688
|
+
title: `Theme: ${q === "system" ? "System Default" : q === "dark" ? "Dark" : "Light"}`,
|
|
3689
|
+
children: a(q === "system" ? T : fe ? P : E, { className: "size-4.5" })
|
|
3690
|
+
}), /* @__PURE__ */ a(Ge, {
|
|
3674
3691
|
align: "end",
|
|
3675
3692
|
className: "w-44",
|
|
3676
|
-
"data-theme":
|
|
3693
|
+
"data-theme": fe ? "dark" : "light",
|
|
3677
3694
|
children: [
|
|
3678
3695
|
{
|
|
3679
3696
|
id: "light",
|
|
@@ -3691,9 +3708,9 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
|
|
|
3691
3708
|
icon: T
|
|
3692
3709
|
}
|
|
3693
3710
|
].map((e) => {
|
|
3694
|
-
let t = e.icon, n =
|
|
3695
|
-
return /* @__PURE__ */ o(
|
|
3696
|
-
onClick: () =>
|
|
3711
|
+
let t = e.icon, n = q === e.id;
|
|
3712
|
+
return /* @__PURE__ */ o(Je, {
|
|
3713
|
+
onClick: () => le(e.id),
|
|
3697
3714
|
className: "cursor-pointer justify-between",
|
|
3698
3715
|
children: [/* @__PURE__ */ o("div", {
|
|
3699
3716
|
className: "flex items-center gap-2",
|
|
@@ -3702,30 +3719,30 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
|
|
|
3702
3719
|
}, e.id);
|
|
3703
3720
|
})
|
|
3704
3721
|
})] }),
|
|
3705
|
-
/* @__PURE__ */ o(
|
|
3706
|
-
open:
|
|
3707
|
-
onOpenChange:
|
|
3708
|
-
children: [/* @__PURE__ */ a(
|
|
3722
|
+
/* @__PURE__ */ o(at, {
|
|
3723
|
+
open: pe,
|
|
3724
|
+
onOpenChange: me,
|
|
3725
|
+
children: [/* @__PURE__ */ a(ot, {
|
|
3709
3726
|
className: "hover:bg-accent hover:text-accent-foreground text-foreground flex cursor-pointer justify-center items-center size-10! gap-2 rounded-full p-0 transition-colors select-none",
|
|
3710
3727
|
children: /* @__PURE__ */ o("div", {
|
|
3711
3728
|
className: "relative",
|
|
3712
3729
|
children: [/* @__PURE__ */ a("div", {
|
|
3713
3730
|
className: "border-border/60 bg-muted flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-full border",
|
|
3714
|
-
children:
|
|
3715
|
-
src:
|
|
3716
|
-
alt:
|
|
3731
|
+
children: U?.profile_image_url ? /* @__PURE__ */ a("img", {
|
|
3732
|
+
src: U.profile_image_url,
|
|
3733
|
+
alt: we(),
|
|
3717
3734
|
className: "size-full object-cover",
|
|
3718
3735
|
referrerPolicy: "no-referrer",
|
|
3719
3736
|
onError: (e) => {
|
|
3720
3737
|
e.currentTarget.style.display = "none";
|
|
3721
3738
|
}
|
|
3722
3739
|
}) : /* @__PURE__ */ a(ae, { className: "text-muted-foreground size-3.5 sm:size-4" })
|
|
3723
|
-
}),
|
|
3740
|
+
}), U && /* @__PURE__ */ a("span", { className: "border-background absolute bottom-0 right-0 size-2.5 rounded-full border-2 bg-emerald-500" })]
|
|
3724
3741
|
})
|
|
3725
|
-
}), /* @__PURE__ */ o(
|
|
3742
|
+
}), /* @__PURE__ */ o(st, {
|
|
3726
3743
|
className: "border-border bg-popover text-popover-foreground w-84 gap-0! rounded-xl p-0 shadow-2xl overflow-hidden",
|
|
3727
3744
|
align: "end",
|
|
3728
|
-
"data-theme":
|
|
3745
|
+
"data-theme": fe ? "dark" : "light",
|
|
3729
3746
|
children: [
|
|
3730
3747
|
/* @__PURE__ */ o("div", {
|
|
3731
3748
|
className: "border-border/60 bg-muted/20 border-b p-3",
|
|
@@ -3735,9 +3752,9 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
|
|
|
3735
3752
|
className: "relative shrink-0",
|
|
3736
3753
|
children: [/* @__PURE__ */ a("div", {
|
|
3737
3754
|
className: "border-border bg-muted flex size-14 items-center justify-center overflow-hidden rounded-full border shadow-xs",
|
|
3738
|
-
children:
|
|
3739
|
-
src:
|
|
3740
|
-
alt:
|
|
3755
|
+
children: U?.profile_image_url ? /* @__PURE__ */ a("img", {
|
|
3756
|
+
src: U.profile_image_url,
|
|
3757
|
+
alt: we(),
|
|
3741
3758
|
className: "size-full object-cover",
|
|
3742
3759
|
referrerPolicy: "no-referrer"
|
|
3743
3760
|
}) : /* @__PURE__ */ a(ae, { className: "text-muted-foreground size-6" })
|
|
@@ -3748,14 +3765,14 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
|
|
|
3748
3765
|
className: "flex items-center justify-between gap-1.5",
|
|
3749
3766
|
children: [/* @__PURE__ */ a("p", {
|
|
3750
3767
|
className: "text-foreground truncate text-sm font-bold tracking-tight",
|
|
3751
|
-
children:
|
|
3768
|
+
children: we()
|
|
3752
3769
|
}), /* @__PURE__ */ a("span", {
|
|
3753
3770
|
className: "border-border bg-muted text-muted-foreground shrink-0 rounded-md border px-1.5 py-0.5 text-[10px] font-semibold capitalize",
|
|
3754
|
-
children:
|
|
3771
|
+
children: U?.is_superadmin ? "Superadmin" : U?.role || "User"
|
|
3755
3772
|
})]
|
|
3756
3773
|
}), /* @__PURE__ */ a("p", {
|
|
3757
3774
|
className: "text-muted-foreground truncate text-xs font-medium",
|
|
3758
|
-
children:
|
|
3775
|
+
children: U?.email || ""
|
|
3759
3776
|
})]
|
|
3760
3777
|
})]
|
|
3761
3778
|
}), /* @__PURE__ */ o("div", {
|
|
@@ -3766,23 +3783,23 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
|
|
|
3766
3783
|
className: "flex items-center gap-1.5",
|
|
3767
3784
|
children: /* @__PURE__ */ a("span", {
|
|
3768
3785
|
className: "text-foreground text-xs font-bold",
|
|
3769
|
-
children:
|
|
3786
|
+
children: Te?.plan_name ? `${Te.plan_name} Plan` : U?.is_superadmin ? "Superadmin Access" : "Fastr Pro Member"
|
|
3770
3787
|
})
|
|
3771
3788
|
}), /* @__PURE__ */ o("span", {
|
|
3772
3789
|
className: "inline-flex items-center gap-1 rounded-full bg-emerald-500/10 px-2 py-0.5 text-[10px] text-emerald-600 dark:text-emerald-400",
|
|
3773
|
-
children: [/* @__PURE__ */ a(h, { className: "size-3 text-emerald-500" }),
|
|
3790
|
+
children: [/* @__PURE__ */ a(h, { className: "size-3 text-emerald-500" }), Te?.status ? Te.status.toUpperCase() : "ACTIVE"]
|
|
3774
3791
|
})]
|
|
3775
|
-
}), (
|
|
3792
|
+
}), (Te?.expiry_date || Te?.expiry) && /* @__PURE__ */ o("div", {
|
|
3776
3793
|
className: "text-muted-foreground mt-2 flex items-center justify-between text-[11px]",
|
|
3777
3794
|
children: [/* @__PURE__ */ o("span", {
|
|
3778
3795
|
className: "flex items-center gap-1",
|
|
3779
3796
|
children: [
|
|
3780
3797
|
/* @__PURE__ */ a(m, { className: "text-muted-foreground/70 size-3" }),
|
|
3781
3798
|
"Renews: ",
|
|
3782
|
-
yt(
|
|
3799
|
+
yt(Te.expiry_date || Te.expiry)
|
|
3783
3800
|
]
|
|
3784
3801
|
}), /* @__PURE__ */ o("a", {
|
|
3785
|
-
href:
|
|
3802
|
+
href: J,
|
|
3786
3803
|
className: "text-primary hover:text-primary/80 font-semibold transition-colors hover:underline",
|
|
3787
3804
|
children: ["Manage ", /* @__PURE__ */ a(d, { className: "size-2.5 inline" })]
|
|
3788
3805
|
})]
|
|
@@ -3799,7 +3816,7 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
|
|
|
3799
3816
|
}), /* @__PURE__ */ o("span", {
|
|
3800
3817
|
className: "text-muted-foreground text-[10px]",
|
|
3801
3818
|
children: [
|
|
3802
|
-
Oe.filter((e) =>
|
|
3819
|
+
Oe.filter((e) => Ce(e.id)).length,
|
|
3803
3820
|
"/",
|
|
3804
3821
|
Oe.length,
|
|
3805
3822
|
" Active"
|
|
@@ -3808,22 +3825,22 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
|
|
|
3808
3825
|
}), /* @__PURE__ */ a("div", {
|
|
3809
3826
|
className: "grid grid-cols-2 gap-1.5",
|
|
3810
3827
|
children: Oe.map((e) => {
|
|
3811
|
-
let t =
|
|
3828
|
+
let t = Ce(e.id);
|
|
3812
3829
|
return /* @__PURE__ */ o("a", {
|
|
3813
3830
|
href: e.href,
|
|
3814
3831
|
onClick: (n) => {
|
|
3815
3832
|
if (!(n.metaKey || n.ctrlKey || n.shiftKey || n.button === 1)) {
|
|
3816
|
-
if (e.id ===
|
|
3817
|
-
n.preventDefault(),
|
|
3833
|
+
if (e.id === F) {
|
|
3834
|
+
n.preventDefault(), me(!1);
|
|
3818
3835
|
return;
|
|
3819
3836
|
}
|
|
3820
|
-
t || (n.preventDefault(),
|
|
3837
|
+
t || (n.preventDefault(), me(!1), window.location.assign(Se(e.id)));
|
|
3821
3838
|
}
|
|
3822
3839
|
},
|
|
3823
|
-
className:
|
|
3840
|
+
className: X("flex items-center justify-between rounded-lg border p-2 text-xs transition-all", e.isActive ? "border-primary/10 bg-primary/10 text-primary shadow-2xs font-bold" : t ? "border-border/50 bg-card text-foreground hover:bg-accent hover:border-border" : "border-border/60 bg-muted/30 text-muted-foreground hover:bg-muted/60 border-dashed"),
|
|
3824
3841
|
children: [/* @__PURE__ */ o("div", {
|
|
3825
3842
|
className: "flex min-w-0 items-center gap-1.5",
|
|
3826
|
-
children: [$(e.icon, { className:
|
|
3843
|
+
children: [$(e.icon, { className: X("size-3.5 shrink-0", e.isActive ? "text-primary" : t ? "text-foreground" : "text-muted-foreground") }), /* @__PURE__ */ a("span", {
|
|
3827
3844
|
className: "truncate",
|
|
3828
3845
|
children: e.name
|
|
3829
3846
|
})]
|
|
@@ -3838,14 +3855,14 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
|
|
|
3838
3855
|
/* @__PURE__ */ o("div", {
|
|
3839
3856
|
className: "space-y-1 p-2",
|
|
3840
3857
|
children: [/* @__PURE__ */ o("a", {
|
|
3841
|
-
href:
|
|
3858
|
+
href: be,
|
|
3842
3859
|
className: "hover:bg-accent hover:text-accent-foreground text-foreground group flex w-full items-center justify-between rounded-lg px-2.5 py-2 text-xs font-semibold transition-colors",
|
|
3843
3860
|
children: [/* @__PURE__ */ o("div", {
|
|
3844
3861
|
className: "flex items-center gap-2",
|
|
3845
3862
|
children: [/* @__PURE__ */ a(ae, { className: "text-muted-foreground group-hover:text-foreground size-4 transition-colors" }), /* @__PURE__ */ a("span", { children: "Profile & Account Settings" })]
|
|
3846
3863
|
}), /* @__PURE__ */ a(_, { className: "text-muted-foreground/60 group-hover:text-foreground size-3.5 transition-transform group-hover:translate-x-0.5" })]
|
|
3847
3864
|
}), /* @__PURE__ */ o("a", {
|
|
3848
|
-
href:
|
|
3865
|
+
href: J,
|
|
3849
3866
|
className: "hover:bg-accent hover:text-accent-foreground text-foreground group flex w-full items-center justify-between rounded-lg px-2.5 py-2 text-xs font-semibold transition-colors",
|
|
3850
3867
|
children: [/* @__PURE__ */ o("div", {
|
|
3851
3868
|
className: "flex items-center gap-2",
|
|
@@ -3869,11 +3886,11 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
|
|
|
3869
3886
|
})
|
|
3870
3887
|
]
|
|
3871
3888
|
})]
|
|
3872
|
-
}),
|
|
3889
|
+
}), _e && /* @__PURE__ */ a("div", {
|
|
3873
3890
|
"data-fastr-popup": "",
|
|
3874
|
-
"data-theme":
|
|
3891
|
+
"data-theme": fe ? "dark" : "light",
|
|
3875
3892
|
className: "animate-in fade-in fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4 backdrop-blur-xs duration-200",
|
|
3876
|
-
onClick: () =>
|
|
3893
|
+
onClick: () => ve(null),
|
|
3877
3894
|
children: /* @__PURE__ */ o("div", {
|
|
3878
3895
|
className: "animate-in zoom-in-95 bg-card text-card-foreground border-border flex w-full max-w-md transform flex-col items-center rounded-xl border p-8 text-center shadow-2xl transition-all duration-200 sm:max-w-lg sm:p-10",
|
|
3879
3896
|
onClick: (e) => e.stopPropagation(),
|
|
@@ -3901,20 +3918,20 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
|
|
|
3901
3918
|
}),
|
|
3902
3919
|
/* @__PURE__ */ o("h2", {
|
|
3903
3920
|
className: "text-foreground mb-2 text-xl font-bold tracking-tight sm:text-2xl",
|
|
3904
|
-
children: [
|
|
3921
|
+
children: [_e.name, " isn't included in your current subscription."]
|
|
3905
3922
|
}),
|
|
3906
3923
|
/* @__PURE__ */ o("p", {
|
|
3907
3924
|
className: "text-muted-foreground mb-8 max-w-sm text-sm sm:text-base",
|
|
3908
3925
|
children: [
|
|
3909
3926
|
"Add ",
|
|
3910
|
-
|
|
3927
|
+
_e.name,
|
|
3911
3928
|
" to your subscription to unlock full access."
|
|
3912
3929
|
]
|
|
3913
3930
|
}),
|
|
3914
3931
|
/* @__PURE__ */ a("button", {
|
|
3915
3932
|
type: "button",
|
|
3916
3933
|
onClick: () => {
|
|
3917
|
-
let e =
|
|
3934
|
+
let e = U?.apps?.find((e) => (e.code || "").toLowerCase().includes(_e.id.toLowerCase()) || (e.name || "").toLowerCase().includes(_e.name.toLowerCase())), t = e?.id ? `${J}?app_id=${e.id}` : `${J}?app=${_e.id}`;
|
|
3918
3935
|
window.location.assign(t);
|
|
3919
3936
|
},
|
|
3920
3937
|
className: "bg-primary text-primary-foreground hover:bg-primary/90 w-full max-w-xs cursor-pointer rounded-xl px-6 py-3 text-sm font-medium shadow-sm transition-all sm:text-base",
|
|
@@ -3922,7 +3939,7 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
|
|
|
3922
3939
|
}),
|
|
3923
3940
|
/* @__PURE__ */ a("button", {
|
|
3924
3941
|
type: "button",
|
|
3925
|
-
onClick: () =>
|
|
3942
|
+
onClick: () => ve(null),
|
|
3926
3943
|
className: "text-muted-foreground hover:text-foreground mt-5 cursor-pointer text-sm font-medium transition-colors",
|
|
3927
3944
|
children: "Maybe Later"
|
|
3928
3945
|
})
|
|
@@ -3935,6 +3952,6 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
|
|
|
3935
3952
|
//#region src/index.js
|
|
3936
3953
|
var xt = bt;
|
|
3937
3954
|
//#endregion
|
|
3938
|
-
export {
|
|
3955
|
+
export { He as DropdownMenu, Ge as DropdownMenuContent, Ke as DropdownMenuGroup, Je as DropdownMenuItem, qe as DropdownMenuLabel, Ue as DropdownMenuPortal, Ye as DropdownMenuSeparator, We as DropdownMenuTrigger, R as FasterProLogo, bt as GlobalHeader, vt as GlobalMegaMenu, Xe as NavigationMenu, tt as NavigationMenuContent, it as NavigationMenuIndicator, Qe as NavigationMenuItem, rt as NavigationMenuLink, Ze as NavigationMenuList, nt as NavigationMenuPositioner, et as NavigationMenuTrigger, at as Popover, st as PopoverContent, ut as PopoverDescription, ct as PopoverHeader, lt as PopoverTitle, ot as PopoverTrigger, gt as buildItemUrl, dt as chartingCategories, X as cn, ht as createHeaderConfig, xt as default, Q as defaultHeaderConfig, mt as derivativesCategories, pt as macroPulseCategories, $e as navigationMenuTriggerStyle, $ as renderIcon, ft as scannerCategories, Z as stockXRayCategories, _t as withThemeParam };
|
|
3939
3956
|
|
|
3940
3957
|
//# sourceMappingURL=index.js.map
|