@fastr-pro/global-header 1.0.6 → 1.0.8

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.js CHANGED
@@ -119,7 +119,7 @@ var R = ({ className: e = "h-9 w-auto cursor-pointer", isDarkMode: n, theme: r,
119
119
  n += i >>> 1 ^ -(i & 1), t[r] = n;
120
120
  }
121
121
  return t;
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 = (() => {
122
+ }, oe = 384, U = [], W = V(B("E0500002005282000000002000150000020021820000011200000003022202000300004200120000200420001200021200301200010400162000010000220021010:2192001200220012000220012000200200200400010200040000000000400200108200110100000022010313000162002000020020012020080213000228200000000082000000000120002000120020020040101020300130001001010")), G = V(B(":11111111211111119311546544411119731869:671397415686432441111111111161114151214313433415:78311132233313187211117221449443411141111151152226611131111112212518142224214215421421542142424242516171151615616347111111111197911327451111111111111111111113134714133513411111311111111111111111111112444411111342312715245411117:3")), se = "@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", ce = (() => {
123
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;
@@ -132,46 +132,46 @@ var R = ({ className: e = "h-9 w-auto cursor-pointer", isDarkMode: n, theme: r,
132
132
  for (let a = W[i]; a < W[i + 1]; a++) n[r++] = e, e += t[e];
133
133
  }
134
134
  return n;
135
- })(), ce = B("02000000000000900<=0?000B000F00F00ŏI0J0LNPRTVX0000]_a00000000000000000000000rst0000000zŏ00000000000…ŏ000ˆ0000ŏ0000000000—0000000000000000000000000000000000000000000000000000Ë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 = (() => {
135
+ })(), le = B("02000000000000900<=0?000B000F00F00ŏI0J0LNPRTVX0000]_a00000000000000000000000rst0000000zŏ00000000000…ŏ000ˆ0000ŏ0000000000—0000000000000000000000000000000000000000000000000000Ë000000000000000000000Þ000000000000000000ð0000000ø0ùúûüýþÿĀāĂ㥹Ć000000000000000000000000000000000000000000ħ0ĨĪ00000000000000000000ļĽ00000Ŭ000000", 1), ue = V(B("123333359346463635126536711576")), de = B("93203242332583253248325D>E?F@03263243255B:032523853:0325B:8GA032542H<C=12727B:0328432553;D>E?3257D>032585:0325B:;0328B:032"), fe = B("012113445661666666789111:5;;;;;;;;444;;;:62999<1161=62>>?61:21@ABCD4446996:64E:::;:?::64:F114GHHIHHHHIHH1HH1HH1HHHHHH::EEJ4444::EE4444441691;644444114244444:;K6666555555555555555999666664444444444444444444444226?6:66644L9M?D:111::::6DE199"), K = H("020200202020020020020020020020200200200200200200200002020202001003040106000200200200200200200200200200200200200200200200200200200200200200200200200200200200020020020020020020002020200202002002002002002002002002002020002002020020200220200200200200200200200200200200020020020000200020002000200200200020020020002000200200200020020202002020202000200200020022000200200020020002002000200220002002000200W0Z00020020002002020002002000200g0j0002002000200200020020002002000200200020020002000200002000002002002002002000200020000200002002002002002002002020020020200200200200200200200200202020020020020020020020020002002002020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020020002002002002002002000200200200200200200200200200020202020002000200020002002002002000020200200"), pe = (() => {
136
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
- })(), 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) => {
139
+ })(), me = "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
- }), 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|22222222222G000q†OVI00000}š2›>40000ŒB00000I¨©000¬00000000000000021M®­00°“000000000000000000000–222›HGHa1º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);
143
+ }), he = H("0000000000000000000000000000000000000000000000000000000000000262242:6@200000006:240B428:4422400002046044222426220026642642462026224222824220022400000000\\00N222422242222222224062242222222422226264222422222222222222442804222422222222222222222222220<4<0204260002444020204224422"), ge = 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"), _e = H("02222222222222222222222222222222222222222222222222222222222222222202022222222222EH2200IL021042222Y\\222IL0cf2e10j2222U00X202[^2y0000120|{~‚22…ˆ‡:22|22222222222G000q†OVI00000}š2›>40000ŒB00000I¨©000¬00000000000000021M®­00°“000000000000000000000–222›HGHa1º222¿2À2222ÉÌ000­°2±"), ve = /* @__PURE__ */ new Int32Array(995), q = /* @__PURE__ */ new Int32Array(995), ye = /* @__PURE__ */ new Int32Array(995), be = "", xe = /* @__PURE__ */ new Int32Array(1038);
144
144
  {
145
145
  let e = /* @__PURE__ */ new Map(), t = 0, n = 0;
146
- for (let r = 0; r < me.length; r++) for (let i of pe[ge[r]]) {
146
+ for (let r = 0; r < he.length; r++) for (let i of me[_e[r]]) {
147
147
  let a = e.get(i);
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++;
148
+ a === void 0 && (a = t++, e.set(i, a), xe[a * 2] = be.length, xe[a * 2 + 1] = i.length, be += i), ve[n] = he[r], q[n] = ge[r], ye[n] = a, n++;
149
149
  }
150
150
  }
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("2Š4A;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 = {
151
+ var Se = H("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Ce = V(B("1::24444432:442:44:44>222222:44:4421322511111311111114")), we = H("2Š4A;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"), Te = B("ij"), Ee = B("—"), J = B("1"), De = {
152
152
  GROUP_COUNT: oe,
153
153
  customValidatorNames: U,
154
154
  edgeStart: W,
155
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,
156
+ labelText: se,
157
+ edgeTarget: ce,
158
+ nodeGroup: le,
159
+ nodeVlist: pe,
160
+ vlistPat: ue,
161
+ vlistOps: de,
162
+ vlistRef: fe,
163
+ vlistGroup: K,
164
+ litAnchor: ve,
165
+ litGroup: q,
166
166
  litPool: ye,
167
- poolOffsets: J,
167
+ poolOffsets: xe,
168
168
  poolText: be,
169
- adjGid: xe,
170
- adjStart: Se,
171
- adjTgt: Ce,
172
- patGid: we,
173
- patTgt: Te,
174
- postfixLookupGroups: Ee,
169
+ adjGid: Se,
170
+ adjStart: Ce,
171
+ adjTgt: we,
172
+ patGid: Te,
173
+ patTgt: Ee,
174
+ postfixLookupGroups: J,
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;
@@ -234,7 +234,7 @@ var xe = H("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Se = V(B
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$/, 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) => {
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, se = (e) => e >= 97 && e <= 122 || e >= 65 && e <= 90 || e >= 48 && e <= 57 || e === 95, ce = (e) => /\s/.test(String.fromCharCode(e)), le = (e, t, n) => {
238
238
  if (H = 0, oe = -1, n - t < 3) return;
239
239
  let r = e.charCodeAt(t), i = e.charCodeAt(n - 1);
240
240
  if (r === 91 && i === 93) H = 1;
@@ -242,24 +242,24 @@ var xe = H("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Se = V(B
242
242
  else return;
243
243
  W = t + 1, G = n - 1;
244
244
  let a = t + 1;
245
- if (K(e.charCodeAt(a))) {
245
+ if (se(e.charCodeAt(a))) {
246
246
  for (a++; a < n - 1;) {
247
247
  let t = e.charCodeAt(a);
248
- if (!K(t) && t !== 45) break;
248
+ if (!se(t) && t !== 45) break;
249
249
  a++;
250
250
  }
251
251
  a < n - 2 && e.charCodeAt(a) === 58 && (oe = t + 1, U = a, W = a + 1);
252
252
  }
253
- }, q = (e, t, n, r) => {
253
+ }, ue = (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
- }, 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;
257
+ }, de = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, fe = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, K = (e) => !!e && !Number.isNaN(Number(e)), pe = (e, t, n) => {
258
+ if (n - t < 11 || !ue(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 && q(e, t + 10, t + 16, "-size/") || r === 110 && n - t >= 19 && q(e, t + 10, t + 18, "-normal/");
262
- }, pe = [
261
+ return r === 115 && n - t >= 17 && ue(e, t + 10, t + 16, "-size/") || r === 110 && n - t >= 19 && ue(e, t + 10, t + 18, "-normal/");
262
+ }, me = [
263
263
  1,
264
264
  1,
265
265
  1,
@@ -275,7 +275,7 @@ var xe = H("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Se = V(B
275
275
  2,
276
276
  2,
277
277
  2
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 = [
278
+ ], he = "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(" ")), ge = [
279
279
  2,
280
280
  3,
281
281
  1,
@@ -291,23 +291,23 @@ var xe = H("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Se = V(B
291
291
  0,
292
292
  1,
293
293
  1
294
- ], ge = (e, t, n, r) => {
294
+ ], _e = (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 (H !== pe[i]) return !1;
298
+ if (H !== me[i]) return !1;
299
299
  if (oe >= 0) {
300
- for (let e of me[i]) if (q(t, oe, U, e)) return !0;
300
+ for (let e of he[i]) if (ue(t, oe, U, e)) return !0;
301
301
  return !1;
302
302
  }
303
- switch (he[i]) {
303
+ switch (ge[i]) {
304
304
  case 0: return !1;
305
305
  case 1: return !0;
306
306
  case 2: {
307
307
  let e = t.slice(W, G);
308
308
  return R.test(e) && !z.test(e);
309
309
  }
310
- case 3: return de(t.slice(W, G));
310
+ case 3: return K(t.slice(W, G));
311
311
  case 4: return V.test(t.slice(W, G));
312
312
  default: return B.test(t.slice(W, G));
313
313
  }
@@ -317,17 +317,17 @@ var xe = H("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Se = V(B
317
317
  case 1: return H === 0;
318
318
  case 2: return H === 1;
319
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));
320
+ case 4: return de.test(t.slice(n, r));
321
+ case 5: return K(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 && de(t.slice(n, r - 1));
327
- case 8: return ue.test(t.slice(n, r));
328
- default: return fe(t, n, r);
326
+ case 7: return r > n && t.charCodeAt(r - 1) === 37 && K(t.slice(n, r - 1));
327
+ case 8: return fe.test(t.slice(n, r));
328
+ default: return pe(t, n, r);
329
329
  }
330
- }, _e = new Set(typeof w == "string" ? w.split(" ") : w), ve = (e, t, n, r, i, a) => {
330
+ }, ve = new Set(typeof w == "string" ? w.split(" ") : w), q = (e, t, n, r, i, a) => {
331
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];
@@ -343,7 +343,7 @@ var xe = H("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Se = V(B
343
343
  imp: i,
344
344
  id: l
345
345
  }), l;
346
- }, ye = /* @__PURE__ */ new Map(), be = /* @__PURE__ */ new Map(), J = 2, xe = 4096, Se = (e, t) => {
346
+ }, ye = /* @__PURE__ */ new Map(), be = /* @__PURE__ */ new Map(), xe = 2, Se = 4096, Ce = (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,12 +353,12 @@ var xe = H("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Se = V(B
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 || _e.has(r) ? (t.length && (e.push(...t.sort()), t = []), e.push(r)) : t.push(r);
356
+ for (let r of n) r.charCodeAt(0) === 91 || ve.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
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) => {
360
+ return c === void 0 && be.set(s, c = xe++), c;
361
+ }, we = /* @__PURE__ */ new Map(), Te = r, Ee = r + 4096, J = () => Te++, 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
363
  if (Pe[e] !== null) {
364
364
  if (Pe[e | 1] === null) c = e | 1;
@@ -393,7 +393,7 @@ var xe = H("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Se = V(B
393
393
  r = i;
394
394
  break;
395
395
  }
396
- return r === -1 || r === t + 1 ? Y : ve(Ce, e, t + 1, r, 0, Ee);
396
+ return r === -1 || r === t + 1 ? Y : q(we, e, t + 1, r, 0, J);
397
397
  }
398
398
  if (r >= 0 && c[r] >= 0) return c[r];
399
399
  for (let t = i - 1; t >= 0; t--) {
@@ -411,18 +411,18 @@ var xe = H("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Se = V(B
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
- ce(e, r, n);
414
+ le(e, r, n);
415
415
  let h = O[o] - c;
416
- for (let t = c; t < m; t++) if (ge(d[t], e, r, n)) return p[h + t];
416
+ for (let t = c; t < m; t++) if (_e(d[t], e, r, n)) return p[h + t];
417
417
  }
418
418
  return Y;
419
419
  }, st = (e) => {
420
420
  let t = e.length, n = 0, c = 0, u = !1;
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());
421
+ (xe > Se || ye.size > Se) && (ye = /* @__PURE__ */ new Map(), be = /* @__PURE__ */ new Map(), xe = 2, Ve()), Te > Ee && (we = /* @__PURE__ */ new Map(), Te = 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 && se(f)) {
425
+ if (f === 32 || f >= 9 && f <= 13 || f >= 160 && ce(f)) {
426
426
  f !== 32 && (u = !0), d++;
427
427
  continue;
428
428
  }
@@ -434,7 +434,7 @@ var xe = H("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Se = V(B
434
434
  u = !0;
435
435
  break;
436
436
  }
437
- } else if (f >= 160 && se(f)) {
437
+ } else if (f >= 160 && ce(f)) {
438
438
  u = !0;
439
439
  break;
440
440
  }
@@ -525,7 +525,7 @@ var xe = H("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Se = V(B
525
525
  } else R === Y && (R = ot(e, w, T, L, N), z = !1);
526
526
  } else R = ot(e, w, T, L, N);
527
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);
528
+ R === Y ? Ge[_] = Y : (V = +!!z, B = b >= x ? +!!E : q(ye, e, b, x, +!!E, (e) => Ce(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
531
  if (n === 1) return Ue[0] === 0 && We[0] === t ? e : e.slice(Ue[0], We[0]);
@@ -533,7 +533,7 @@ var xe = H("0b2N:222@R>F@286¦2@H2D266226FB22B2>BD\\6N22222Z222D222p"), Se = V(B
533
533
  for (; n * D > et;) et <<= 1, tt--;
534
534
  nt = new Float64Array(et), rt = new Int32Array(et);
535
535
  }
536
- if (J >= De || we >= De) throw Error("cn: too many distinct classes in one merge");
536
+ if (xe >= De || Te >= De) throw Error("cn: too many distinct classes in one merge");
537
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--) {
@@ -3436,71 +3436,26 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
3436
3436
  let r = (t.code || "").toLowerCase().replace(/[^a-z0-9]/g, ""), i = (t.name || "").toLowerCase().replace(/[^a-z0-9]/g, "");
3437
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;
3438
3438
  });
3439
- }, G = () => {
3440
- if (typeof window > "u") return !1;
3441
- let e = document.documentElement, t = document.body;
3442
- if (e.classList.contains("dark") || t?.classList.contains("dark")) return !0;
3443
- if (e.classList.contains("light") || t?.classList.contains("light")) return !1;
3444
- let n = e.getAttribute("data-theme") || e.getAttribute("data-mode") || e.getAttribute("data-color-mode") || t?.getAttribute("data-theme") || t?.getAttribute("data-mode");
3445
- if (n === "dark") return !0;
3446
- if (n === "light") return !1;
3447
- if (t) {
3448
- let e = window.getComputedStyle(t).backgroundColor;
3449
- if (e && e !== "rgba(0, 0, 0, 0)" && e !== "transparent") {
3450
- let t = e.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);
3451
- if (t) {
3452
- let e = parseInt(t[1], 10), n = parseInt(t[2], 10), r = parseInt(t[3], 10);
3453
- return (e * 299 + n * 587 + r * 114) / 1e3 < 128;
3454
- }
3455
- }
3456
- }
3457
- return window.matchMedia("(prefers-color-scheme: dark)").matches;
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");
3439
+ }, G = y != null, se = () => typeof window > "u" ? !1 : window.matchMedia("(prefers-color-scheme: dark)").matches, [ce, le] = i(() => se());
3459
3440
  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") {
3441
+ if (G || typeof window > "u") return;
3442
+ let e = window.matchMedia("(prefers-color-scheme: dark)"), t = () => le(e.matches);
3443
+ if (t(), e.addEventListener) return e.addEventListener("change", t), () => e.removeEventListener("change", t);
3444
+ if (e.addListener) return e.addListener(t), () => e.removeListener(t);
3445
+ }, [G]);
3446
+ let [ue, de] = i(() => typeof window < "u" ? localStorage.getItem("theme") || N.uiTheme || "system" : N.uiTheme || "system"), fe = G ? y : ue, K = G ? y === "dark" : fe === "dark" || fe !== "light" && ce, pe = (e) => {
3447
+ let t = e === "dark" ? "dark" : e === "light" ? "light" : se() ? "dark" : "light";
3448
+ if (!G && (de(e), typeof window < "u")) {
3465
3449
  try {
3466
3450
  localStorage.setItem("theme", e);
3467
3451
  } 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");
3452
+ e === "dark" ? (document.documentElement.classList.add("dark"), document.documentElement.classList.remove("light")) : e === "light" ? (document.documentElement.classList.remove("dark"), document.documentElement.classList.add("light")) : document.documentElement.classList.remove("dark", "light");
3469
3453
  }
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());
3472
- t(() => {
3473
- if (typeof window > "u") return;
3474
- let e = () => de(G());
3475
- e();
3476
- let t = window.matchMedia("(prefers-color-scheme: dark)");
3477
- t.addEventListener("change", e);
3478
- let n = new MutationObserver(e);
3479
- return n.observe(document.documentElement, {
3480
- attributes: !0,
3481
- attributeFilter: [
3482
- "class",
3483
- "data-theme",
3484
- "data-mode",
3485
- "data-color-mode",
3486
- "style"
3487
- ]
3488
- }), document.body && n.observe(document.body, {
3489
- attributes: !0,
3490
- attributeFilter: [
3491
- "class",
3492
- "data-theme",
3493
- "data-mode",
3494
- "style"
3495
- ]
3496
- }), () => {
3497
- t.removeEventListener("change", e), n.disconnect();
3498
- };
3499
- }, []);
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) => {
3454
+ typeof b == "function" && b(t), typeof x == "function" && x(t), typeof N?.setTheme == "function" && N.setTheme !== b && N.setTheme(t), typeof N?.onThemeChange == "function" && N.onThemeChange !== x && N.onThemeChange(t);
3455
+ }, me = fe, [he, ge] = i(!1), [_e, ve] = i(""), [q, ye] = i(null), be = r(null), xe = N.urls?.profile || `${L}/profile`, Se = N.urls?.purchase || `${L}/purchase`, Ce = N.urls?.landing || "http://localhost:3005", we = (e) => {
3501
3456
  let t = W(e);
3502
- return t && t.id ? `${J}?app_id=${t.id}` : `${J}?app=${e}`;
3503
- }, Ce = (e) => {
3457
+ return t && t.id ? `${Se}?app_id=${t.id}` : `${Se}?app=${e}`;
3458
+ }, Te = (e) => {
3504
3459
  if (!U || U?.role === "superadmin" || U?.is_superadmin) return !0;
3505
3460
  let t = (e || "").toLowerCase().replace(/[^a-z0-9]/g, ""), n = U?.subscriptions;
3506
3461
  if (n && !Array.isArray(n) && typeof n == "object") for (let [e, r] of Object.entries(n)) {
@@ -3523,7 +3478,7 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
3523
3478
  "admin",
3524
3479
  "staff"
3525
3480
  ].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 = () => {
3481
+ }, Ee = () => {
3527
3482
  let e = U?.fullName || U?.full_name || U?.name;
3528
3483
  if (e && typeof e == "string" && e.trim() && !e.includes("@")) return e.trim();
3529
3484
  if (U?.email && typeof U.email == "string") {
@@ -3531,7 +3486,7 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
3531
3486
  if (e) return e.split(/\s+/).map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(" ");
3532
3487
  }
3533
3488
  return e || "User";
3534
- }, Te = n(() => {
3489
+ }, J = n(() => {
3535
3490
  if (Array.isArray(U?.subscriptions) && U.subscriptions.length > 0) return U.subscriptions.find((e) => {
3536
3491
  let t = (e.app_name || e.name || "").toLowerCase().replace(/[^a-z0-9]/g, ""), n = (F || "").toLowerCase().replace(/[^a-z0-9]/g, "");
3537
3492
  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;
@@ -3550,12 +3505,12 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
3550
3505
  };
3551
3506
  }
3552
3507
  return null;
3553
- }, [U, F]), Ee = (e, t, n) => {
3508
+ }, [U, F]), De = (e, t, n) => {
3554
3509
  D ? D(e, t, n) : C ? C(e) : window.location.assign(e);
3555
- }, De = () => {
3510
+ }, Oe = () => {
3556
3511
  let e = v || N.logout;
3557
3512
  e ? e() : window.location.assign(`${L}/logout`);
3558
- }, Oe = n(() => {
3513
+ }, Y = n(() => {
3559
3514
  if (A) return A;
3560
3515
  let e = N.apps || {};
3561
3516
  return (Array.isArray(e) ? e : Object.entries(e).map(([e, t]) => ({
@@ -3568,7 +3523,7 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
3568
3523
  href: e.href,
3569
3524
  queryParams: e.queryParams,
3570
3525
  params: e.params,
3571
- currentTheme: q,
3526
+ currentTheme: me,
3572
3527
  appendTheme: N.appendThemeParam !== !1,
3573
3528
  themeParamName: N.themeParamName || "theme",
3574
3529
  isCurrentApp: t === F
@@ -3593,67 +3548,67 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
3593
3548
  N.appendThemeParam,
3594
3549
  N.themeParamName,
3595
3550
  F,
3596
- q,
3551
+ me,
3597
3552
  U
3598
- ]), Y = (e, t) => {
3553
+ ]), ke = (e, t) => {
3599
3554
  let n = t.rawApp || {};
3600
3555
  if (n.onClick) {
3601
3556
  e.preventDefault(), n.onClick(n);
3602
3557
  return;
3603
3558
  }
3604
- if (t.id !== F && !Ce(t.id)) {
3605
- e.preventDefault(), ge(""), window.location.assign(Se(t.id));
3559
+ if (t.id !== F && !Te(t.id)) {
3560
+ e.preventDefault(), ve(""), window.location.assign(we(t.id));
3606
3561
  return;
3607
3562
  }
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));
3563
+ t.id === "derivatives" ? (e.preventDefault(), ve((e) => e === "derivatives" ? "" : "derivatives"), De("/positions", n, t)) : t.id === F && (D || C) && (e.preventDefault(), ve(""), De(t.href, n, t));
3609
3564
  };
3610
3565
  return /* @__PURE__ */ o("header", {
3611
3566
  "data-fastr-header": "",
3612
- "data-theme": fe ? "dark" : "light",
3567
+ "data-theme": K ? "dark" : "light",
3613
3568
  className: X("bg-background sticky top-0 z-50 w-full border-b", M),
3614
3569
  children: [/* @__PURE__ */ o("div", {
3615
3570
  className: "relative flex h-10 w-full items-center justify-between gap-4 px-3 sm:h-12 sm:px-4",
3616
3571
  children: [/* @__PURE__ */ o("div", {
3617
3572
  className: "no-scrollbar flex items-center gap-4 overflow-x-auto py-1 lg:gap-6",
3618
3573
  children: [/* @__PURE__ */ a("a", {
3619
- href: xe,
3574
+ href: Ce,
3620
3575
  className: "mr-1 flex shrink-0 cursor-pointer items-center gap-1.5 select-none",
3621
3576
  onClick: (e) => {
3622
3577
  e.metaKey || e.ctrlKey || e.shiftKey || e.button === 1 || re && (e.preventDefault(), re());
3623
3578
  },
3624
3579
  children: ne || /* @__PURE__ */ a(R, {
3625
3580
  className: "h-9 w-auto sm:h-10",
3626
- isDarkMode: fe
3581
+ isDarkMode: K
3627
3582
  })
3628
3583
  }), /* @__PURE__ */ o(c.Root, {
3629
- value: he,
3630
- onValueChange: ge,
3584
+ value: _e,
3585
+ onValueChange: ve,
3631
3586
  "data-slot": "navigation-menu",
3632
- className: "group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",
3587
+ className: "group/navigation-menu relative bg-transparent! flex max-w-max flex-1 items-center justify-center",
3633
3588
  children: [/* @__PURE__ */ a(Ze, {
3634
- className: "gap-0",
3635
- children: Oe.map((e, t) => {
3589
+ className: "gap-0 bg-transparent!",
3590
+ children: Y.map((e, t) => {
3636
3591
  let n = e.rawApp || e;
3637
3592
  return e.hasMegaMenu ? /* @__PURE__ */ o(Qe, {
3638
3593
  value: e.id,
3639
3594
  children: [/* @__PURE__ */ o(et, {
3640
- ref: t === 0 ? ye : void 0,
3595
+ ref: t === 0 ? be : void 0,
3641
3596
  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"),
3642
3597
  children: [$(e.icon, { className: "size-4 shrink-0" }), /* @__PURE__ */ a("span", { children: e.name })]
3643
3598
  }), /* @__PURE__ */ a(tt, {
3644
- className: "p-0 rounded-xl overflow-hidden",
3599
+ className: "p-0 rounded-xl bg-transparent! overflow-hidden",
3645
3600
  children: /* @__PURE__ */ a(vt, {
3646
3601
  app: n,
3647
3602
  type: e.id,
3648
3603
  config: N,
3649
3604
  currentApp: F,
3650
- isDarkMode: fe,
3651
- isSubscribed: Ce(e.id),
3652
- purchaseUrl: Se(e.id),
3605
+ isDarkMode: K,
3606
+ isSubscribed: Te(e.id),
3607
+ purchaseUrl: we(e.id),
3653
3608
  categoryData: ie,
3654
- theme: q,
3655
- onClose: () => ge(""),
3656
- onNavigate: Ee,
3609
+ theme: me,
3610
+ onClose: () => ve(""),
3611
+ onNavigate: De,
3657
3612
  urls: N.urls,
3658
3613
  ...k
3659
3614
  })
@@ -3663,10 +3618,10 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
3663
3618
  children: /* @__PURE__ */ a(rt, {
3664
3619
  asChild: !0,
3665
3620
  children: /* @__PURE__ */ o("a", {
3666
- ref: t === 0 ? ye : void 0,
3621
+ ref: t === 0 ? be : void 0,
3667
3622
  href: e.href || "/",
3668
3623
  onClick: (t) => {
3669
- t.metaKey || t.ctrlKey || t.shiftKey || t.button === 1 || Y(t, e);
3624
+ t.metaKey || t.ctrlKey || t.shiftKey || t.button === 1 || ke(t, e);
3670
3625
  },
3671
3626
  className: X($e(), "cursor-pointer", e.isActive && "bg-primary text-primary-foreground font-semibold hover:bg-primary/90 hover:text-primary-foreground"),
3672
3627
  children: [$(e.icon, { className: "size-4 shrink-0" }), /* @__PURE__ */ a("span", { children: e.name })]
@@ -3676,7 +3631,7 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
3676
3631
  })
3677
3632
  }), /* @__PURE__ */ a(nt, {
3678
3633
  align: "start",
3679
- anchor: ye
3634
+ anchor: be
3680
3635
  })]
3681
3636
  })]
3682
3637
  }), /* @__PURE__ */ o("div", {
@@ -3685,12 +3640,12 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
3685
3640
  j,
3686
3641
  /* @__PURE__ */ o(He, { children: [/* @__PURE__ */ a(We, {
3687
3642
  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",
3688
- title: `Theme: ${q === "system" ? "System Default" : q === "dark" ? "Dark" : "Light"}`,
3689
- children: a(q === "system" ? T : fe ? P : E, { className: "size-4.5" })
3643
+ title: `Theme: ${me === "system" ? "System Default" : me === "dark" ? "Dark" : "Light"}`,
3644
+ children: a(me === "system" ? T : K ? P : E, { className: "size-4.5" })
3690
3645
  }), /* @__PURE__ */ a(Ge, {
3691
3646
  align: "end",
3692
3647
  className: "w-44",
3693
- "data-theme": fe ? "dark" : "light",
3648
+ "data-theme": K ? "dark" : "light",
3694
3649
  children: [
3695
3650
  {
3696
3651
  id: "light",
@@ -3708,9 +3663,9 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
3708
3663
  icon: T
3709
3664
  }
3710
3665
  ].map((e) => {
3711
- let t = e.icon, n = q === e.id;
3666
+ let t = e.icon, n = me === e.id;
3712
3667
  return /* @__PURE__ */ o(Je, {
3713
- onClick: () => le(e.id),
3668
+ onClick: () => pe(e.id),
3714
3669
  className: "cursor-pointer justify-between",
3715
3670
  children: [/* @__PURE__ */ o("div", {
3716
3671
  className: "flex items-center gap-2",
@@ -3720,8 +3675,8 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
3720
3675
  })
3721
3676
  })] }),
3722
3677
  /* @__PURE__ */ o(at, {
3723
- open: pe,
3724
- onOpenChange: me,
3678
+ open: he,
3679
+ onOpenChange: ge,
3725
3680
  children: [/* @__PURE__ */ a(ot, {
3726
3681
  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",
3727
3682
  children: /* @__PURE__ */ o("div", {
@@ -3730,7 +3685,7 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
3730
3685
  className: "border-border/60 bg-muted flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-full border",
3731
3686
  children: U?.profile_image_url ? /* @__PURE__ */ a("img", {
3732
3687
  src: U.profile_image_url,
3733
- alt: we(),
3688
+ alt: Ee(),
3734
3689
  className: "size-full object-cover",
3735
3690
  referrerPolicy: "no-referrer",
3736
3691
  onError: (e) => {
@@ -3742,7 +3697,7 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
3742
3697
  }), /* @__PURE__ */ o(st, {
3743
3698
  className: "border-border bg-popover text-popover-foreground w-84 gap-0! rounded-xl p-0 shadow-2xl overflow-hidden",
3744
3699
  align: "end",
3745
- "data-theme": fe ? "dark" : "light",
3700
+ "data-theme": K ? "dark" : "light",
3746
3701
  children: [
3747
3702
  /* @__PURE__ */ o("div", {
3748
3703
  className: "border-border/60 bg-muted/20 border-b p-3",
@@ -3754,7 +3709,7 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
3754
3709
  className: "border-border bg-muted flex size-14 items-center justify-center overflow-hidden rounded-full border shadow-xs",
3755
3710
  children: U?.profile_image_url ? /* @__PURE__ */ a("img", {
3756
3711
  src: U.profile_image_url,
3757
- alt: we(),
3712
+ alt: Ee(),
3758
3713
  className: "size-full object-cover",
3759
3714
  referrerPolicy: "no-referrer"
3760
3715
  }) : /* @__PURE__ */ a(ae, { className: "text-muted-foreground size-6" })
@@ -3765,7 +3720,7 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
3765
3720
  className: "flex items-center justify-between gap-1.5",
3766
3721
  children: [/* @__PURE__ */ a("p", {
3767
3722
  className: "text-foreground truncate text-sm font-bold tracking-tight",
3768
- children: we()
3723
+ children: Ee()
3769
3724
  }), /* @__PURE__ */ a("span", {
3770
3725
  className: "border-border bg-muted text-muted-foreground shrink-0 rounded-md border px-1.5 py-0.5 text-[10px] font-semibold capitalize",
3771
3726
  children: U?.is_superadmin ? "Superadmin" : U?.role || "User"
@@ -3783,23 +3738,23 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
3783
3738
  className: "flex items-center gap-1.5",
3784
3739
  children: /* @__PURE__ */ a("span", {
3785
3740
  className: "text-foreground text-xs font-bold",
3786
- children: Te?.plan_name ? `${Te.plan_name} Plan` : U?.is_superadmin ? "Superadmin Access" : "Fastr Pro Member"
3741
+ children: J?.plan_name ? `${J.plan_name} Plan` : U?.is_superadmin ? "Superadmin Access" : "Fastr Pro Member"
3787
3742
  })
3788
3743
  }), /* @__PURE__ */ o("span", {
3789
3744
  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",
3790
- children: [/* @__PURE__ */ a(h, { className: "size-3 text-emerald-500" }), Te?.status ? Te.status.toUpperCase() : "ACTIVE"]
3745
+ children: [/* @__PURE__ */ a(h, { className: "size-3 text-emerald-500" }), J?.status ? J.status.toUpperCase() : "ACTIVE"]
3791
3746
  })]
3792
- }), (Te?.expiry_date || Te?.expiry) && /* @__PURE__ */ o("div", {
3747
+ }), (J?.expiry_date || J?.expiry) && /* @__PURE__ */ o("div", {
3793
3748
  className: "text-muted-foreground mt-2 flex items-center justify-between text-[11px]",
3794
3749
  children: [/* @__PURE__ */ o("span", {
3795
3750
  className: "flex items-center gap-1",
3796
3751
  children: [
3797
3752
  /* @__PURE__ */ a(m, { className: "text-muted-foreground/70 size-3" }),
3798
3753
  "Renews: ",
3799
- yt(Te.expiry_date || Te.expiry)
3754
+ yt(J.expiry_date || J.expiry)
3800
3755
  ]
3801
3756
  }), /* @__PURE__ */ o("a", {
3802
- href: J,
3757
+ href: Se,
3803
3758
  className: "text-primary hover:text-primary/80 font-semibold transition-colors hover:underline",
3804
3759
  children: ["Manage ", /* @__PURE__ */ a(d, { className: "size-2.5 inline" })]
3805
3760
  })]
@@ -3816,25 +3771,25 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
3816
3771
  }), /* @__PURE__ */ o("span", {
3817
3772
  className: "text-muted-foreground text-[10px]",
3818
3773
  children: [
3819
- Oe.filter((e) => Ce(e.id)).length,
3774
+ Y.filter((e) => Te(e.id)).length,
3820
3775
  "/",
3821
- Oe.length,
3776
+ Y.length,
3822
3777
  " Active"
3823
3778
  ]
3824
3779
  })]
3825
3780
  }), /* @__PURE__ */ a("div", {
3826
3781
  className: "grid grid-cols-2 gap-1.5",
3827
- children: Oe.map((e) => {
3828
- let t = Ce(e.id);
3782
+ children: Y.map((e) => {
3783
+ let t = Te(e.id);
3829
3784
  return /* @__PURE__ */ o("a", {
3830
3785
  href: e.href,
3831
3786
  onClick: (n) => {
3832
3787
  if (!(n.metaKey || n.ctrlKey || n.shiftKey || n.button === 1)) {
3833
3788
  if (e.id === F) {
3834
- n.preventDefault(), me(!1);
3789
+ n.preventDefault(), ge(!1);
3835
3790
  return;
3836
3791
  }
3837
- t || (n.preventDefault(), me(!1), window.location.assign(Se(e.id)));
3792
+ t || (n.preventDefault(), ge(!1), window.location.assign(we(e.id)));
3838
3793
  }
3839
3794
  },
3840
3795
  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"),
@@ -3855,14 +3810,14 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
3855
3810
  /* @__PURE__ */ o("div", {
3856
3811
  className: "space-y-1 p-2",
3857
3812
  children: [/* @__PURE__ */ o("a", {
3858
- href: be,
3813
+ href: xe,
3859
3814
  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",
3860
3815
  children: [/* @__PURE__ */ o("div", {
3861
3816
  className: "flex items-center gap-2",
3862
3817
  children: [/* @__PURE__ */ a(ae, { className: "text-muted-foreground group-hover:text-foreground size-4 transition-colors" }), /* @__PURE__ */ a("span", { children: "Profile & Account Settings" })]
3863
3818
  }), /* @__PURE__ */ a(_, { className: "text-muted-foreground/60 group-hover:text-foreground size-3.5 transition-transform group-hover:translate-x-0.5" })]
3864
3819
  }), /* @__PURE__ */ o("a", {
3865
- href: J,
3820
+ href: Se,
3866
3821
  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",
3867
3822
  children: [/* @__PURE__ */ o("div", {
3868
3823
  className: "flex items-center gap-2",
@@ -3873,7 +3828,7 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
3873
3828
  /* @__PURE__ */ a("div", {
3874
3829
  className: "border-border/60 my-1 border-t p-2",
3875
3830
  children: /* @__PURE__ */ a("button", {
3876
- onClick: De,
3831
+ onClick: Oe,
3877
3832
  className: "text-destructive hover:bg-destructive/10 flex w-full cursor-pointer items-center justify-between rounded-lg px-2.5 py-2 text-xs font-semibold transition-colors",
3878
3833
  children: /* @__PURE__ */ o("div", {
3879
3834
  className: "flex items-center gap-2",
@@ -3886,11 +3841,11 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
3886
3841
  })
3887
3842
  ]
3888
3843
  })]
3889
- }), _e && /* @__PURE__ */ a("div", {
3844
+ }), q && /* @__PURE__ */ a("div", {
3890
3845
  "data-fastr-popup": "",
3891
- "data-theme": fe ? "dark" : "light",
3846
+ "data-theme": K ? "dark" : "light",
3892
3847
  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",
3893
- onClick: () => ve(null),
3848
+ onClick: () => ye(null),
3894
3849
  children: /* @__PURE__ */ o("div", {
3895
3850
  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",
3896
3851
  onClick: (e) => e.stopPropagation(),
@@ -3918,20 +3873,20 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
3918
3873
  }),
3919
3874
  /* @__PURE__ */ o("h2", {
3920
3875
  className: "text-foreground mb-2 text-xl font-bold tracking-tight sm:text-2xl",
3921
- children: [_e.name, " isn't included in your current subscription."]
3876
+ children: [q.name, " isn't included in your current subscription."]
3922
3877
  }),
3923
3878
  /* @__PURE__ */ o("p", {
3924
3879
  className: "text-muted-foreground mb-8 max-w-sm text-sm sm:text-base",
3925
3880
  children: [
3926
3881
  "Add ",
3927
- _e.name,
3882
+ q.name,
3928
3883
  " to your subscription to unlock full access."
3929
3884
  ]
3930
3885
  }),
3931
3886
  /* @__PURE__ */ a("button", {
3932
3887
  type: "button",
3933
3888
  onClick: () => {
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}`;
3889
+ let e = U?.apps?.find((e) => (e.code || "").toLowerCase().includes(q.id.toLowerCase()) || (e.name || "").toLowerCase().includes(q.name.toLowerCase())), t = e?.id ? `${Se}?app_id=${e.id}` : `${Se}?app=${q.id}`;
3935
3890
  window.location.assign(t);
3936
3891
  },
3937
3892
  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",
@@ -3939,7 +3894,7 @@ function bt({ config: e, authApiUrl: s, authRedirectUrl: l, profileGetter: u, ui
3939
3894
  }),
3940
3895
  /* @__PURE__ */ a("button", {
3941
3896
  type: "button",
3942
- onClick: () => ve(null),
3897
+ onClick: () => ye(null),
3943
3898
  className: "text-muted-foreground hover:text-foreground mt-5 cursor-pointer text-sm font-medium transition-colors",
3944
3899
  children: "Maybe Later"
3945
3900
  })