@stryke/trpc-next 0.5.87 → 0.5.89

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/_virtual/{rolldown_runtime.cjs → _rolldown/runtime.cjs} +1 -1
  3. package/dist/action-handler.cjs +5 -4
  4. package/dist/action-handler.d.cts +7 -8
  5. package/dist/action-handler.d.cts.map +1 -1
  6. package/dist/action-handler.d.mts +7 -8
  7. package/dist/action-handler.d.mts.map +1 -1
  8. package/dist/action-handler.mjs.map +1 -1
  9. package/dist/client.cjs +8 -7
  10. package/dist/client.d.cts +2 -3
  11. package/dist/client.d.cts.map +1 -1
  12. package/dist/client.d.mts +2 -3
  13. package/dist/client.d.mts.map +1 -1
  14. package/dist/env/src/environment-checks.cjs +6 -6
  15. package/dist/env/src/environment-checks.mjs +6 -6
  16. package/dist/env/src/environment-checks.mjs.map +1 -1
  17. package/dist/env/src/get-env-paths.cjs +2 -2
  18. package/dist/env/src/load-env.cjs +2 -2
  19. package/dist/env/src/providers.cjs +4 -4
  20. package/dist/env/src/providers.mjs +4 -4
  21. package/dist/env/src/providers.mjs.map +1 -1
  22. package/dist/env/src/runtime-checks.mjs.map +1 -1
  23. package/dist/index.cjs +5 -4
  24. package/dist/path/src/join-paths.mjs.map +1 -1
  25. package/dist/server.cjs +10 -9
  26. package/dist/server.d.cts +1 -1
  27. package/dist/server.d.cts.map +1 -1
  28. package/dist/server.d.mts +1 -1
  29. package/dist/server.d.mts.map +1 -1
  30. package/dist/shared.cjs +12 -11
  31. package/dist/shared.d.cts.map +1 -1
  32. package/dist/shared.d.mts.map +1 -1
  33. package/dist/shield/constructors.cjs +4 -3
  34. package/dist/shield/constructors.d.cts +0 -1
  35. package/dist/shield/constructors.d.cts.map +1 -1
  36. package/dist/shield/constructors.d.mts +0 -1
  37. package/dist/shield/constructors.d.mts.map +1 -1
  38. package/dist/shield/constructors.mjs +3 -3
  39. package/dist/shield/constructors.mjs.map +1 -1
  40. package/dist/shield/generator.cjs +1 -0
  41. package/dist/shield/generator.d.cts +0 -1
  42. package/dist/shield/generator.d.cts.map +1 -1
  43. package/dist/shield/generator.d.mts +0 -1
  44. package/dist/shield/generator.d.mts.map +1 -1
  45. package/dist/shield/generator.mjs.map +1 -1
  46. package/dist/shield/index.cjs +1 -0
  47. package/dist/shield/rules.cjs +1 -0
  48. package/dist/shield/rules.d.cts.map +1 -1
  49. package/dist/shield/rules.d.mts.map +1 -1
  50. package/dist/shield/rules.mjs.map +1 -1
  51. package/dist/shield/shield.cjs +1 -0
  52. package/dist/shield/shield.d.cts +0 -1
  53. package/dist/shield/shield.d.cts.map +1 -1
  54. package/dist/shield/shield.d.mts +0 -1
  55. package/dist/shield/shield.d.mts.map +1 -1
  56. package/dist/shield/types.d.cts.map +1 -1
  57. package/dist/shield/types.d.mts.map +1 -1
  58. package/dist/shield/utils.cjs +1 -0
  59. package/dist/shield/utils.d.cts +0 -1
  60. package/dist/shield/utils.d.cts.map +1 -1
  61. package/dist/shield/utils.d.mts +0 -1
  62. package/dist/shield/utils.d.mts.map +1 -1
  63. package/dist/shield/utils.mjs.map +1 -1
  64. package/dist/shield/validation.cjs +3 -2
  65. package/dist/shield/validation.d.cts +0 -1
  66. package/dist/shield/validation.d.cts.map +1 -1
  67. package/dist/shield/validation.d.mts +0 -1
  68. package/dist/shield/validation.d.mts.map +1 -1
  69. package/dist/shield/validation.mjs +2 -2
  70. package/dist/shield/validation.mjs.map +1 -1
  71. package/dist/string-format/src/acronyms.cjs +0 -1
  72. package/dist/string-format/src/acronyms.mjs +0 -1
  73. package/dist/string-format/src/acronyms.mjs.map +1 -1
  74. package/dist/tanstack-query/client.cjs +8 -7
  75. package/dist/tanstack-query/client.d.cts +4 -5
  76. package/dist/tanstack-query/client.d.cts.map +1 -1
  77. package/dist/tanstack-query/client.d.mts +4 -5
  78. package/dist/tanstack-query/client.d.mts.map +1 -1
  79. package/dist/tanstack-query/client.mjs.map +1 -1
  80. package/dist/tanstack-query/server.cjs +9 -8
  81. package/dist/tanstack-query/server.d.cts +4 -6
  82. package/dist/tanstack-query/server.d.cts.map +1 -1
  83. package/dist/tanstack-query/server.d.mts +4 -6
  84. package/dist/tanstack-query/server.d.mts.map +1 -1
  85. package/dist/tanstack-query/server.mjs.map +1 -1
  86. package/dist/types/src/base.d.cts +0 -1
  87. package/dist/types/src/base.d.cts.map +1 -1
  88. package/dist/types/src/base.d.mts +0 -1
  89. package/dist/types/src/base.d.mts.map +1 -1
  90. package/dist/types.d.cts.map +1 -1
  91. package/dist/types.d.mts.map +1 -1
  92. package/dist/url/src/index.d.cts +1 -0
  93. package/dist/url/src/index.d.mts +1 -2
  94. package/dist/url/src/storm-url.d.cts +1 -0
  95. package/dist/url/src/storm-url.d.mts +1 -1
  96. package/dist/url/src/types.d.cts +1 -2
  97. package/dist/url/src/types.d.cts.map +1 -1
  98. package/dist/url/src/types.d.mts +0 -1
  99. package/dist/url/src/types.d.mts.map +1 -1
  100. package/package.json +94 -36
@@ -1,3 +1,4 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1
2
  const require_shield_rules = require('./rules.cjs');
2
3
 
3
4
  //#region src/shield/utils.ts
@@ -1,7 +1,6 @@
1
1
  import { LogicRuleInterface, RuleFieldMapInterface, RuleInterface, ShieldRule } from "./types.cjs";
2
2
 
3
3
  //#region src/shield/utils.d.ts
4
-
5
4
  /**
6
5
  * Makes sure that a certain field is a rule.
7
6
  */
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.cts","names":[],"sources":["../../src/shield/utils.ts"],"sourcesContent":[],"mappings":";;;;;;AA6BA;AAAwC,iBAAxB,MAAwB,CAAA,iBAAA,MAAA,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,CAAA,EAAA,GAAA,CAAA,EAAA,CAAA,IAEhC,aAFgC,CAElB,QAFkB,CAAA;;;;AAWxB,iBAAA,WAAW,CAAA,iBAAk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/B9B;;iBA0CgB,eAAA,GAAA,CACd,GAAA;EAAA,CAAQ,GAAA;AAAA,GACR,CAAA,GAAI,CAAA,oBACH,CAAA;;;;iBAkBa,WAAA,GAAA,CAAe,QAAA,EAAU,CAAA,IAAK,KAAA,EAAO,CAAA,iBAAkB,CAAA"}
@@ -1,7 +1,6 @@
1
1
  import { LogicRuleInterface, RuleFieldMapInterface, RuleInterface, ShieldRule } from "./types.mjs";
2
2
 
3
3
  //#region src/shield/utils.d.ts
4
-
5
4
  /**
6
5
  * Makes sure that a certain field is a rule.
7
6
  */
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.mts","names":[],"sources":["../../src/shield/utils.ts"],"sourcesContent":[],"mappings":";;;;;;AA6BA;AAAwC,iBAAxB,MAAwB,CAAA,iBAAA,MAAA,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,CAAA,EAAA,GAAA,CAAA,EAAA,CAAA,IAEhC,aAFgC,CAElB,QAFkB,CAAA;;;;AAWxB,iBAAA,WAAW,CAAA,iBAAkB,MAAlB,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,CAAA,EAAA,GAAA,CAAA,EAAA,CAAA,IAEnB,kBAFmB,CAEA,QAFA,CAAA;;;;AAED,iBAkBV,cAlBU,CAAA,iBAkBsB,MAlBtB,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,CAAA,EAAA,GAAA,CAAA,EAAA,CAAA,IAoBlB,UApBkB,CAoBP,QApBO,CAAA;AAkB1B;;;AAEQ,iBAOQ,cAPR,CAAA,iBAOwC,MAPxC,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,CAAA,EAAA,GAAA,CAAA,EAAA,CAAA,IASA,qBATA,CASsB,QATtB,CAAA;;AAOR;;;AAEQ,iBAWQ,eAXR,CAAA,CAAA,CAAA,CAAA,GAAA,EAAA;EAAqB,CAAA,GAAA,EAAA,MAAA,CAAA,EAAA,GAAA;AAW7B,CAAA,EAAA,CAAgB,EAAA,CAAA,CAAA,EAAA,GAAA,EAAA,GAAA,OAAe,CAAA,EAG5B,CAH4B,EAAA;AAqB/B;;;AAAuE,iBAAvD,WAAuD,CAAA,CAAA,CAAA,CAAA,QAAA,EAA9B,CAA8B,CAAA,EAAA,CAAA,KAAA,EAAlB,CAAkB,GAAA,SAAA,EAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"utils.d.mts","names":[],"sources":["../../src/shield/utils.ts"],"mappings":";;;;;AA6BA;iBAAgB,MAAA,kBAAwB,MAAA,cAAA,CACtC,CAAA,QACC,CAAA,IAAK,aAAA,CAAc,QAAA;;;;iBASN,WAAA,kBAA6B,MAAA,cAAA,CAC3C,CAAA,QACC,CAAA,IAAK,kBAAA,CAAmB,QAAA;;;;iBAkBX,cAAA,kBAAgC,MAAA,cAAA,CAC9C,CAAA,QACC,CAAA,IAAK,UAAA,CAAW,QAAA;;;;iBAOH,cAAA,kBAAgC,MAAA,cAAA,CAC9C,CAAA,QACC,CAAA,IAAK,qBAAA,CAAsB,QAAA;;;AA/B9B;;iBA0CgB,eAAA,GAAA,CACd,GAAA;EAAA,CAAQ,GAAA;AAAA,GACR,CAAA,GAAI,CAAA,oBACH,CAAA;;;;iBAkBa,WAAA,GAAA,CAAe,QAAA,EAAU,CAAA,IAAK,KAAA,EAAO,CAAA,iBAAkB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.mjs","names":[],"sources":["../../src/shield/utils.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { LogicRule, Rule } from \"./rules\";\nimport type {\n LogicRuleInterface,\n RuleFieldMapInterface,\n RuleInterface,\n ShieldRule\n} from \"./types\";\n\n/**\n * Makes sure that a certain field is a rule.\n */\nexport function isRule<TContext extends Record<string, any>>(\n x: any\n): x is RuleInterface<TContext> {\n return (\n x instanceof Rule || (x && x.constructor && x.constructor.name === \"Rule\")\n );\n}\n\n/**\n * Makes sure that a certain field is a logic rule.\n */\nexport function isLogicRule<TContext extends Record<string, any>>(\n x: any\n): x is LogicRuleInterface<TContext> {\n return (\n x instanceof LogicRule ||\n (x &&\n x.constructor &&\n (x.constructor.name === \"RuleOr\" ||\n x.constructor.name === \"RuleAnd\" ||\n x.constructor.name === \"RuleChain\" ||\n x.constructor.name === \"RuleRace\" ||\n x.constructor.name === \"RuleNot\" ||\n x.constructor.name === \"RuleTrue\" ||\n x.constructor.name === \"RuleFalse\"))\n );\n}\n\n/**\n * Makes sure that a certain field is a rule or a logic rule.\n */\nexport function isRuleFunction<TContext extends Record<string, any>>(\n x: any\n): x is ShieldRule<TContext> {\n return isRule(x) || isLogicRule(x);\n}\n\n/**\n * Determines whether a certain field is rule field map or not.\n */\nexport function isRuleFieldMap<TContext extends Record<string, any>>(\n x: any\n): x is RuleFieldMapInterface<TContext> {\n return (\n typeof x === \"object\" &&\n Object.values(x).every(rule => isRuleFunction(rule))\n );\n}\n\n/**\n * Flattens object of particular type by checking if the leaf\n * evaluates to true from particular function.\n */\nexport function flattenObjectOf<T>(\n obj: { [key: string]: any },\n f: (x: any) => boolean\n): T[] {\n const values = Object.keys(obj).reduce<T[]>((acc, key) => {\n const val = obj[key];\n if (f(val)) {\n return [...acc, val];\n } else if (typeof val === \"object\" && !f(val)) {\n return [...acc, ...flattenObjectOf(val, f)];\n } else {\n return acc;\n }\n }, []);\n\n return values;\n}\n\n/**\n * Returns fallback is provided value is undefined\n */\nexport function withDefault<T>(fallback: T): (value: T | undefined) => T {\n return value => {\n if (value === undefined) return fallback;\n return value;\n };\n}\n"],"mappings":";;;;;;AA6BA,SAAgB,OACd,GAC8B;AAC9B,QACE,aAAa,QAAS,KAAK,EAAE,eAAe,EAAE,YAAY,SAAS;;;;;AAOvE,SAAgB,YACd,GACmC;AACnC,QACE,aAAa,aACZ,KACC,EAAE,gBACD,EAAE,YAAY,SAAS,YACtB,EAAE,YAAY,SAAS,aACvB,EAAE,YAAY,SAAS,eACvB,EAAE,YAAY,SAAS,cACvB,EAAE,YAAY,SAAS,aACvB,EAAE,YAAY,SAAS,cACvB,EAAE,YAAY,SAAS;;;;;AAO/B,SAAgB,eACd,GAC2B;AAC3B,QAAO,OAAO,EAAE,IAAI,YAAY,EAAE;;;;;AAMpC,SAAgB,eACd,GACsC;AACtC,QACE,OAAO,MAAM,YACb,OAAO,OAAO,EAAE,CAAC,OAAM,SAAQ,eAAe,KAAK,CAAC;;;;;;AAQxD,SAAgB,gBACd,KACA,GACK;AAYL,QAXe,OAAO,KAAK,IAAI,CAAC,QAAa,KAAK,QAAQ;EACxD,MAAM,MAAM,IAAI;AAChB,MAAI,EAAE,IAAI,CACR,QAAO,CAAC,GAAG,KAAK,IAAI;WACX,OAAO,QAAQ,YAAY,CAAC,EAAE,IAAI,CAC3C,QAAO,CAAC,GAAG,KAAK,GAAG,gBAAgB,KAAK,EAAE,CAAC;MAE3C,QAAO;IAER,EAAE,CAAC;;;;;AAQR,SAAgB,YAAe,UAA0C;AACvE,SAAO,UAAS;AACd,MAAI,UAAU,OAAW,QAAO;AAChC,SAAO"}
1
+ {"version":3,"file":"utils.mjs","names":[],"sources":["../../src/shield/utils.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { LogicRule, Rule } from \"./rules\";\nimport type {\n LogicRuleInterface,\n RuleFieldMapInterface,\n RuleInterface,\n ShieldRule\n} from \"./types\";\n\n/**\n * Makes sure that a certain field is a rule.\n */\nexport function isRule<TContext extends Record<string, any>>(\n x: any\n): x is RuleInterface<TContext> {\n return (\n x instanceof Rule || (x && x.constructor && x.constructor.name === \"Rule\")\n );\n}\n\n/**\n * Makes sure that a certain field is a logic rule.\n */\nexport function isLogicRule<TContext extends Record<string, any>>(\n x: any\n): x is LogicRuleInterface<TContext> {\n return (\n x instanceof LogicRule ||\n (x &&\n x.constructor &&\n (x.constructor.name === \"RuleOr\" ||\n x.constructor.name === \"RuleAnd\" ||\n x.constructor.name === \"RuleChain\" ||\n x.constructor.name === \"RuleRace\" ||\n x.constructor.name === \"RuleNot\" ||\n x.constructor.name === \"RuleTrue\" ||\n x.constructor.name === \"RuleFalse\"))\n );\n}\n\n/**\n * Makes sure that a certain field is a rule or a logic rule.\n */\nexport function isRuleFunction<TContext extends Record<string, any>>(\n x: any\n): x is ShieldRule<TContext> {\n return isRule(x) || isLogicRule(x);\n}\n\n/**\n * Determines whether a certain field is rule field map or not.\n */\nexport function isRuleFieldMap<TContext extends Record<string, any>>(\n x: any\n): x is RuleFieldMapInterface<TContext> {\n return (\n typeof x === \"object\" &&\n Object.values(x).every(rule => isRuleFunction(rule))\n );\n}\n\n/**\n * Flattens object of particular type by checking if the leaf\n * evaluates to true from particular function.\n */\nexport function flattenObjectOf<T>(\n obj: { [key: string]: any },\n f: (x: any) => boolean\n): T[] {\n const values = Object.keys(obj).reduce<T[]>((acc, key) => {\n const val = obj[key];\n if (f(val)) {\n return [...acc, val];\n } else if (typeof val === \"object\" && !f(val)) {\n return [...acc, ...flattenObjectOf(val, f)];\n } else {\n return acc;\n }\n }, []);\n\n return values;\n}\n\n/**\n * Returns fallback is provided value is undefined\n */\nexport function withDefault<T>(fallback: T): (value: T | undefined) => T {\n return value => {\n if (value === undefined) return fallback;\n return value;\n };\n}\n"],"mappings":";;;;;;AA6BA,SAAgB,OACd,GAC8B;AAC9B,QACE,aAAa,QAAS,KAAK,EAAE,eAAe,EAAE,YAAY,SAAS;;;;;AAOvE,SAAgB,YACd,GACmC;AACnC,QACE,aAAa,aACZ,KACC,EAAE,gBACD,EAAE,YAAY,SAAS,YACtB,EAAE,YAAY,SAAS,aACvB,EAAE,YAAY,SAAS,eACvB,EAAE,YAAY,SAAS,cACvB,EAAE,YAAY,SAAS,aACvB,EAAE,YAAY,SAAS,cACvB,EAAE,YAAY,SAAS;;;;;AAO/B,SAAgB,eACd,GAC2B;AAC3B,QAAO,OAAO,EAAE,IAAI,YAAY,EAAE;;;;;AAMpC,SAAgB,eACd,GACsC;AACtC,QACE,OAAO,MAAM,YACb,OAAO,OAAO,EAAE,CAAC,OAAM,SAAQ,eAAe,KAAK,CAAC;;;;;;AAQxD,SAAgB,gBACd,KACA,GACK;AAYL,QAXe,OAAO,KAAK,IAAI,CAAC,QAAa,KAAK,QAAQ;EACxD,MAAM,MAAM,IAAI;AAChB,MAAI,EAAE,IAAI,CACR,QAAO,CAAC,GAAG,KAAK,IAAI;WACX,OAAO,QAAQ,YAAY,CAAC,EAAE,IAAI,CAC3C,QAAO,CAAC,GAAG,KAAK,GAAG,gBAAgB,KAAK,EAAE,CAAC;MAE3C,QAAO;IAER,EAAE,CAEQ;;;;;AAMf,SAAgB,YAAe,UAA0C;AACvE,SAAO,UAAS;AACd,MAAI,UAAU,OAAW,QAAO;AAChC,SAAO"}
@@ -1,3 +1,4 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1
2
  const require_shield_utils = require('./utils.cjs');
2
3
 
3
4
  //#region src/shield/validation.ts
@@ -32,8 +33,8 @@ function validateRuleTree(ruleTree) {
32
33
  /**
33
34
  * Extracts rules from rule tree.
34
35
  */
35
- function extractRules(ruleTree$1) {
36
- return require_shield_utils.flattenObjectOf(ruleTree$1, require_shield_utils.isRuleFunction).reduce((rules, rule) => {
36
+ function extractRules(ruleTree) {
37
+ return require_shield_utils.flattenObjectOf(ruleTree, require_shield_utils.isRuleFunction).reduce((rules, rule) => {
37
38
  if (require_shield_utils.isLogicRule(rule)) return [...rules, ...extractLogicRules(rule)];
38
39
  else return [...rules, rule];
39
40
  }, []);
@@ -1,7 +1,6 @@
1
1
  import { IRules } from "./types.cjs";
2
2
 
3
3
  //#region src/shield/validation.d.ts
4
-
5
4
  /**
6
5
  * Validates the rule tree declaration by checking references of rule
7
6
  * functions. We deem rule tree valid if no two rules with the same name point
@@ -1 +1 @@
1
- {"version":3,"file":"validation.d.cts","names":[],"sources":["../../src/shield/validation.ts"],"sourcesContent":[],"mappings":";;;;;;AA+BA;;;AACY,iBADI,gBACJ,CAAA,iBADsC,MACtC,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,QAAA,EAAA,MAAA,CAAO,QAAP,CAAA,CAAA,EAAA;EAAM,MAAA,EAAA,IAAA;AAmFlB,CAAA,GAAa;;;;cAAA,eAAA,SAAwB,KAAA"}
1
+ {"version":3,"file":"validation.d.cts","names":[],"sources":["../../src/shield/validation.ts"],"mappings":";;;;;AA+BA;;;iBAAgB,gBAAA,kBAAkC,MAAA,cAAA,CAChD,QAAA,EAAU,MAAA,CAAO,QAAA;EACd,MAAA;AAAA;EAAmB,MAAA;EAAe,OAAA;AAAA;AAAA,cAkF1B,eAAA,SAAwB,KAAA;cACvB,OAAA;AAAA"}
@@ -1,7 +1,6 @@
1
1
  import { IRules } from "./types.mjs";
2
2
 
3
3
  //#region src/shield/validation.d.ts
4
-
5
4
  /**
6
5
  * Validates the rule tree declaration by checking references of rule
7
6
  * functions. We deem rule tree valid if no two rules with the same name point
@@ -1 +1 @@
1
- {"version":3,"file":"validation.d.mts","names":[],"sources":["../../src/shield/validation.ts"],"sourcesContent":[],"mappings":";;;;;;AA+BA;;;AACY,iBADI,gBACJ,CAAA,iBADsC,MACtC,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA,CAAA,QAAA,EAAA,MAAA,CAAO,QAAP,CAAA,CAAA,EAAA;EAAM,MAAA,EAAA,IAAA;AAmFlB,CAAA,GAAa;;;;cAAA,eAAA,SAAwB,KAAA"}
1
+ {"version":3,"file":"validation.d.mts","names":[],"sources":["../../src/shield/validation.ts"],"mappings":";;;;;AA+BA;;;iBAAgB,gBAAA,kBAAkC,MAAA,cAAA,CAChD,QAAA,EAAU,MAAA,CAAO,QAAA;EACd,MAAA;AAAA;EAAmB,MAAA;EAAe,OAAA;AAAA;AAAA,cAkF1B,eAAA,SAAwB,KAAA;cACvB,OAAA;AAAA"}
@@ -32,8 +32,8 @@ function validateRuleTree(ruleTree) {
32
32
  /**
33
33
  * Extracts rules from rule tree.
34
34
  */
35
- function extractRules(ruleTree$1) {
36
- return flattenObjectOf(ruleTree$1, isRuleFunction).reduce((rules, rule) => {
35
+ function extractRules(ruleTree) {
36
+ return flattenObjectOf(ruleTree, isRuleFunction).reduce((rules, rule) => {
37
37
  if (isLogicRule(rule)) return [...rules, ...extractLogicRules(rule)];
38
38
  else return [...rules, rule];
39
39
  }, []);
@@ -1 +1 @@
1
- {"version":3,"file":"validation.mjs","names":["ruleTree"],"sources":["../../src/shield/validation.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type {\n IRules,\n LogicRuleInterface,\n RuleInterface,\n ShieldRule\n} from \"./types\";\nimport { flattenObjectOf, isLogicRule, isRuleFunction } from \"./utils\";\n\n/**\n * Validates the rule tree declaration by checking references of rule\n * functions. We deem rule tree valid if no two rules with the same name point\n * to different rules.\n */\nexport function validateRuleTree<TContext extends Record<string, any>>(\n ruleTree: IRules<TContext>\n): { status: \"ok\" } | { status: \"err\"; message: string } {\n const rules = extractRules(ruleTree);\n\n const valid = rules.reduce<{\n map: Map<string, RuleInterface<TContext>>;\n duplicates: string[];\n }>(\n ({ map, duplicates }, rule) => {\n if (!map.has(rule.name)) {\n return { map: map.set(rule.name, rule), duplicates };\n } else if (\n !map.get(rule.name)!.equals(rule) &&\n !duplicates.includes(rule.name)\n ) {\n return {\n map: map.set(rule.name, rule),\n duplicates: [...duplicates, rule.name]\n };\n } else {\n return { map, duplicates };\n }\n },\n { map: new Map<string, RuleInterface<TContext>>(), duplicates: [] }\n );\n\n if (valid.duplicates.length === 0) {\n return { status: \"ok\" };\n } else {\n const duplicates = valid.duplicates.join(\", \");\n\n return {\n status: \"err\",\n message: `There seem to be multiple definitions of these rules: ${duplicates}`\n };\n }\n\n /**\n * Extracts rules from rule tree.\n */\n function extractRules<TContext extends Record<string, any>>(\n ruleTree: IRules<TContext>\n ): RuleInterface<TContext>[] {\n const resolvers = flattenObjectOf<ShieldRule<TContext>>(\n ruleTree,\n isRuleFunction\n );\n\n const rules = resolvers.reduce<RuleInterface<TContext>[]>((rules, rule) => {\n if (isLogicRule(rule)) {\n return [\n ...rules,\n ...extractLogicRules(rule)\n ] as RuleInterface<TContext>[];\n } else {\n return [...rules, rule] as RuleInterface<TContext>[];\n }\n }, []);\n\n return rules;\n }\n\n /**\n * Recursively extracts Rules from LogicRule\n */\n function extractLogicRules<TContext extends Record<string, any>>(\n rule: LogicRuleInterface<TContext>\n ): RuleInterface<TContext>[] {\n return rule\n .getRules()\n .reduce<RuleInterface<TContext>[]>((acc, shieldRule) => {\n if (isLogicRule(shieldRule)) {\n return [\n ...acc,\n ...extractLogicRules(shieldRule)\n ] as RuleInterface<TContext>[];\n } else {\n return [...acc, shieldRule] as RuleInterface<TContext>[];\n }\n }, []);\n }\n}\n\nexport class ValidationError extends Error {\n constructor(message: string) {\n super(message);\n }\n}\n"],"mappings":";;;;;;;;AA+BA,SAAgB,iBACd,UACuD;CAGvD,MAAM,QAFQ,aAAa,SAAS,CAEhB,QAIjB,EAAE,KAAK,cAAc,SAAS;AAC7B,MAAI,CAAC,IAAI,IAAI,KAAK,KAAK,CACrB,QAAO;GAAE,KAAK,IAAI,IAAI,KAAK,MAAM,KAAK;GAAE;GAAY;WAEpD,CAAC,IAAI,IAAI,KAAK,KAAK,CAAE,OAAO,KAAK,IACjC,CAAC,WAAW,SAAS,KAAK,KAAK,CAE/B,QAAO;GACL,KAAK,IAAI,IAAI,KAAK,MAAM,KAAK;GAC7B,YAAY,CAAC,GAAG,YAAY,KAAK,KAAK;GACvC;MAED,QAAO;GAAE;GAAK;GAAY;IAG9B;EAAE,qBAAK,IAAI,KAAsC;EAAE,YAAY,EAAE;EAAE,CACpE;AAED,KAAI,MAAM,WAAW,WAAW,EAC9B,QAAO,EAAE,QAAQ,MAAM;KAIvB,QAAO;EACL,QAAQ;EACR,SAAS,yDAJQ,MAAM,WAAW,KAAK,KAAK;EAK7C;;;;CAMH,SAAS,aACP,YAC2B;AAiB3B,SAhBkB,gBAChBA,YACA,eACD,CAEuB,QAAmC,OAAO,SAAS;AACzE,OAAI,YAAY,KAAK,CACnB,QAAO,CACL,GAAG,OACH,GAAG,kBAAkB,KAAK,CAC3B;OAED,QAAO,CAAC,GAAG,OAAO,KAAK;KAExB,EAAE,CAAC;;;;;CAQR,SAAS,kBACP,MAC2B;AAC3B,SAAO,KACJ,UAAU,CACV,QAAmC,KAAK,eAAe;AACtD,OAAI,YAAY,WAAW,CACzB,QAAO,CACL,GAAG,KACH,GAAG,kBAAkB,WAAW,CACjC;OAED,QAAO,CAAC,GAAG,KAAK,WAAW;KAE5B,EAAE,CAAC;;;AAIZ,IAAa,kBAAb,cAAqC,MAAM;CACzC,YAAY,SAAiB;AAC3B,QAAM,QAAQ"}
1
+ {"version":3,"file":"validation.mjs","names":[],"sources":["../../src/shield/validation.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type {\n IRules,\n LogicRuleInterface,\n RuleInterface,\n ShieldRule\n} from \"./types\";\nimport { flattenObjectOf, isLogicRule, isRuleFunction } from \"./utils\";\n\n/**\n * Validates the rule tree declaration by checking references of rule\n * functions. We deem rule tree valid if no two rules with the same name point\n * to different rules.\n */\nexport function validateRuleTree<TContext extends Record<string, any>>(\n ruleTree: IRules<TContext>\n): { status: \"ok\" } | { status: \"err\"; message: string } {\n const rules = extractRules(ruleTree);\n\n const valid = rules.reduce<{\n map: Map<string, RuleInterface<TContext>>;\n duplicates: string[];\n }>(\n ({ map, duplicates }, rule) => {\n if (!map.has(rule.name)) {\n return { map: map.set(rule.name, rule), duplicates };\n } else if (\n !map.get(rule.name)!.equals(rule) &&\n !duplicates.includes(rule.name)\n ) {\n return {\n map: map.set(rule.name, rule),\n duplicates: [...duplicates, rule.name]\n };\n } else {\n return { map, duplicates };\n }\n },\n { map: new Map<string, RuleInterface<TContext>>(), duplicates: [] }\n );\n\n if (valid.duplicates.length === 0) {\n return { status: \"ok\" };\n } else {\n const duplicates = valid.duplicates.join(\", \");\n\n return {\n status: \"err\",\n message: `There seem to be multiple definitions of these rules: ${duplicates}`\n };\n }\n\n /**\n * Extracts rules from rule tree.\n */\n function extractRules<TContext extends Record<string, any>>(\n ruleTree: IRules<TContext>\n ): RuleInterface<TContext>[] {\n const resolvers = flattenObjectOf<ShieldRule<TContext>>(\n ruleTree,\n isRuleFunction\n );\n\n const rules = resolvers.reduce<RuleInterface<TContext>[]>((rules, rule) => {\n if (isLogicRule(rule)) {\n return [\n ...rules,\n ...extractLogicRules(rule)\n ] as RuleInterface<TContext>[];\n } else {\n return [...rules, rule] as RuleInterface<TContext>[];\n }\n }, []);\n\n return rules;\n }\n\n /**\n * Recursively extracts Rules from LogicRule\n */\n function extractLogicRules<TContext extends Record<string, any>>(\n rule: LogicRuleInterface<TContext>\n ): RuleInterface<TContext>[] {\n return rule\n .getRules()\n .reduce<RuleInterface<TContext>[]>((acc, shieldRule) => {\n if (isLogicRule(shieldRule)) {\n return [\n ...acc,\n ...extractLogicRules(shieldRule)\n ] as RuleInterface<TContext>[];\n } else {\n return [...acc, shieldRule] as RuleInterface<TContext>[];\n }\n }, []);\n }\n}\n\nexport class ValidationError extends Error {\n constructor(message: string) {\n super(message);\n }\n}\n"],"mappings":";;;;;;;;AA+BA,SAAgB,iBACd,UACuD;CAGvD,MAAM,QAFQ,aAAa,SAER,CAAC,QAIjB,EAAE,KAAK,cAAc,SAAS;AAC7B,MAAI,CAAC,IAAI,IAAI,KAAK,KAAK,CACrB,QAAO;GAAE,KAAK,IAAI,IAAI,KAAK,MAAM,KAAK;GAAE;GAAY;WAEpD,CAAC,IAAI,IAAI,KAAK,KAAK,CAAE,OAAO,KAAK,IACjC,CAAC,WAAW,SAAS,KAAK,KAAK,CAE/B,QAAO;GACL,KAAK,IAAI,IAAI,KAAK,MAAM,KAAK;GAC7B,YAAY,CAAC,GAAG,YAAY,KAAK,KAAK;GACvC;MAED,QAAO;GAAE;GAAK;GAAY;IAG9B;EAAE,qBAAK,IAAI,KAAsC;EAAE,YAAY,EAAE;EAAE,CACpE;AAED,KAAI,MAAM,WAAW,WAAW,EAC9B,QAAO,EAAE,QAAQ,MAAM;KAIvB,QAAO;EACL,QAAQ;EACR,SAAS,yDAJQ,MAAM,WAAW,KAAK,KAIqC;EAC7E;;;;CAMH,SAAS,aACP,UAC2B;AAiB3B,SAhBkB,gBAChB,UACA,eAGqB,CAAC,QAAmC,OAAO,SAAS;AACzE,OAAI,YAAY,KAAK,CACnB,QAAO,CACL,GAAG,OACH,GAAG,kBAAkB,KAAK,CAC3B;OAED,QAAO,CAAC,GAAG,OAAO,KAAK;KAExB,EAAE,CAEO;;;;;CAMd,SAAS,kBACP,MAC2B;AAC3B,SAAO,KACJ,UAAU,CACV,QAAmC,KAAK,eAAe;AACtD,OAAI,YAAY,WAAW,CACzB,QAAO,CACL,GAAG,KACH,GAAG,kBAAkB,WAAW,CACjC;OAED,QAAO,CAAC,GAAG,KAAK,WAAW;KAE5B,EAAE,CAAC;;;AAIZ,IAAa,kBAAb,cAAqC,MAAM;CACzC,YAAY,SAAiB;AAC3B,QAAM,QAAQ"}
@@ -409,6 +409,5 @@ const ACRONYMS = {
409
409
  };
410
410
  const ACRONYM_DISPLAY = Object.fromEntries(Object.entries(ACRONYMS).map(([key, value]) => [key, value.display ?? key]));
411
411
  const ACRONYM_DESCRIPTION = Object.fromEntries(Object.entries(ACRONYMS).map(([key, value]) => [key, value.description]));
412
- const ACRONYM_LIST = Object.keys(ACRONYMS);
413
412
 
414
413
  //#endregion
@@ -408,7 +408,6 @@ const ACRONYMS = {
408
408
  };
409
409
  const ACRONYM_DISPLAY = Object.fromEntries(Object.entries(ACRONYMS).map(([key, value]) => [key, value.display ?? key]));
410
410
  const ACRONYM_DESCRIPTION = Object.fromEntries(Object.entries(ACRONYMS).map(([key, value]) => [key, value.description]));
411
- const ACRONYM_LIST = Object.keys(ACRONYMS);
412
411
 
413
412
  //#endregion
414
413
  //# sourceMappingURL=acronyms.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acronyms.mjs","names":["ACRONYMS: Record<\n string,\n { description: string; display?: string }\n>","ACRONYM_DISPLAY: Record<string, string>","ACRONYM_DESCRIPTION: Record<string, string>","ACRONYM_LIST: string[]"],"sources":["../../../../string-format/src/acronyms.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\n/**\n * A running list of common acronyms and their meanings.\n *\n * @remarks\n * This list is not exhaustive and may be updated over time.\n */\nexport const ACRONYMS: Record<\n string,\n { description: string; display?: string }\n> = {\n \"2D\": { description: \"Two-Dimensional\", display: \"2d\" },\n \"3D\": { description: \"Three-Dimensional\", display: \"3d\" },\n \"4D\": { description: \"Four-Dimensional\", display: \"4d\" },\n \"5G\": { description: \"Fifth Generation (mobile networks)\" },\n \"6G\": { description: \"Sixth Generation (mobile networks)\" },\n \"7G\": { description: \"Seventh Generation (mobile networks)\" },\n \"8G\": { description: \"Eighth Generation (mobile networks)\" },\n ACID: { description: \"Atomicity, Consistency, Isolation, Durability\" },\n AITA: { description: \"Am I The Asshole\" },\n AES: { description: \"Advanced Encryption Standard\" },\n AI: { description: \"Artificial Intelligence\" },\n AJAX: { description: \"Asynchronous JavaScript and XML\" },\n API: { description: \"Application Programming Interface\" },\n AR: { description: \"Augmented Reality\" },\n ASCII: {\n description: \"American Standard Code for Information Interchange\"\n },\n ATF: { description: \"Bureau of Alcohol, Tobacco, Firearms and Explosives\" },\n ATM: { description: \"Automated Teller Machine\" },\n B2B: { description: \"Business to Business\" },\n B2C: { description: \"Business to Consumer\" },\n BATFE: {\n description: \"Bureau of Alcohol, Tobacco, Firearms and Explosives\"\n },\n BFF: { description: \"Best Friends Forever\" },\n BFFS: { description: \"Best Friends Forever (plural)\" },\n BI: { description: \"Business Intelligence\" },\n BIOS: { description: \"Basic Input/Output System\" },\n BGP: { description: \"Border Gateway Protocol\" },\n BOM: { description: \"Bill of Materials / Byte Order Mark\" },\n BSON: { description: \"Binary JSON\" },\n BYOD: { description: \"Bring Your Own Device\" },\n C2C: { description: \"Consumer to Consumer\" },\n CAGR: { description: \"Compound Annual Growth Rate\" },\n CAPTCHA: {\n description:\n \"Completely Automated Public Turing test to tell Computers and Humans Apart\"\n },\n CCTV: { description: \"Closed-Circuit Television\" },\n CD: { description: \"Continuous Delivery / Compact Disc\" },\n CDN: { description: \"Content Delivery Network\" },\n CDP: { description: \"Customer Data Platform\" },\n CDT: { description: \"Central Daylight Time\" },\n CIA: { description: \"Central Intelligence Agency\" },\n CI: { description: \"Continuous Integration\" },\n \"CI/CD\": { description: \"Continuous Integration/Continuous Delivery\" },\n CIAM: { description: \"Customer Identity and Access Management\" },\n CICD: {\n description: \"Continuous Integration Continuous Delivery\",\n display: \"CI/CD\"\n },\n CLI: { description: \"Command Line Interface\" },\n CMDB: { description: \"Configuration Management Database\" },\n CORS: { description: \"Cross-Origin Resource Sharing\" },\n CPA: { description: \"Certified Public Accountant\" },\n CPU: { description: \"Central Processing Unit\" },\n CRUD: { description: \"Create, Read, Update, Delete\" },\n CSR: {\n description: \"Certificate Signing Request / Corporate Social Responsibility\"\n },\n CSS: { description: \"Cascading Style Sheets\" },\n CST: { description: \"Central Standard Time\" },\n CTA: { description: \"Call To Action\" },\n CWD: { description: \"Current Working Directory\" },\n CX: { description: \"Customer Experience\" },\n DAG: { description: \"Directed Acyclic Graph\" },\n DBMS: { description: \"Database Management System\" },\n DDOS: { description: \"Distributed Denial of Service\", display: \"DDoS\" },\n DEA: { description: \"Drug Enforcement Administration\" },\n DEVENV: { description: \"Devenv\", display: \"Devenv\" },\n DEVOPS: { description: \"Development Operations\", display: \"DevOps\" },\n DHS: { description: \"Department of Homeland Security\" },\n DEST: { description: \"Destination\" },\n DESTDIR: { description: \"Destination Directory\" },\n DESTPATH: { description: \"Destination Path\" },\n DIRENV: { description: \"DirEnv\", display: \"DirEnv\" },\n DNC: { description: \"Democratic National Committee / Do Not Call\" },\n DNS: { description: \"Domain Name System\" },\n DNSSEC: { description: \"Domain Name System Security Extensions\" },\n DOD: { description: \"Department of Defense\", display: \"DoD\" },\n DOJ: { description: \"Department of Justice\", display: \"DoJ\" },\n DOM: { description: \"Document Object Model\" },\n DOT: { description: \"Department of Transportation\", display: \"DoT\" },\n DOTENV: { description: \"Dotenv (.env)\", display: \"Dotenv\" },\n DR: { description: \"Disaster Recovery\" },\n DRM: { description: \"Digital Rights Management\" },\n DSN: { description: \"Data Source Name\" },\n DWH: { description: \"Data Warehouse\" },\n E2E: { description: \"End to End\" },\n EAI: { description: \"Enterprise Application Integration\" },\n EDT: { description: \"Eastern Daylight Time\" },\n EEA: { description: \"European Economic Area\" },\n EKS: { description: \"Elastic Kubernetes Service\" },\n EOF: { description: \"End Of File\" },\n EOD: { description: \"End Of Day / Explosive Ordnance Disposal\" },\n EPA: { description: \"Environmental Protection Agency\" },\n ER: { description: \"Emergency Room / Entity Relationship\" },\n EST: { description: \"Eastern Standard Time\" },\n ETC: { description: \"Et Cetera\" },\n ETL: { description: \"Extract, Transform, Load\" },\n EULA: { description: \"End User License Agreement\" },\n FAAS: { description: \"Function as a Service\", display: \"FaaS\" },\n FAQ: { description: \"Frequently Asked Questions\", display: \"FAQs\" },\n FAQS: { description: \"Frequently Asked Questions\" },\n FBI: { description: \"Federal Bureau of Investigation\" },\n FCC: { description: \"Federal Communications Commission\" },\n FDA: { description: \"Food and Drug Administration\" },\n FIDO: { description: \"Fast IDentity Online\" },\n FLOTUS: { description: \"First Lady of the United States\" },\n FQDN: { description: \"Fully Qualified Domain Name\" },\n FTC: { description: \"Federal Trade Commission\" },\n FTP: { description: \"File Transfer Protocol\" },\n GC: { description: \"Garbage Collection\" },\n GCP: { description: \"Google Cloud Platform\" },\n GDPR: { description: \"General Data Protection Regulation\" },\n GMT: { description: \"Greenwich Mean Time\" },\n GOP: { description: \"Grand Old Party\" },\n GPU: { description: \"Graphics Processing Unit\" },\n GUID: { description: \"Globally Unique Identifier\" },\n GUI: { description: \"Graphical User Interface\" },\n GZIP: { description: \"GNU Zip\" },\n HCI: {\n description: \"Human Computer Interaction / Hyper-Converged Infrastructure\"\n },\n HDD: { description: \"Hard Disk Drive\" },\n HDFS: { description: \"Hadoop Distributed File System\" },\n HHS: { description: \"Health and Human Services\" },\n HIPAA: {\n description: \"Health Insurance Portability and Accountability Act\"\n },\n HMAC: { description: \"Hash-based Message Authentication Code\" },\n HOTP: { description: \"HMAC-based One-Time Password\" },\n HSM: { description: \"Hardware Security Module\" },\n HTML: { description: \"HyperText Markup Language\" },\n HTTP: { description: \"HyperText Transfer Protocol (HTTP)\" },\n \"HTTP/2\": { description: \"HyperText Transfer Protocol Version 2 (HTTP/2)\" },\n \"HTTP/2.0\": {\n description: \"HyperText Transfer Protocol Version 2 (HTTP/2)\",\n display: \"HTTP2\"\n },\n \"HTTP/3\": { description: \"HyperText Transfer Protocol Version 3 (HTTP/3)\" },\n \"HTTP/3.0\": {\n description: \"HyperText Transfer Protocol Version 3 (HTTP/3)\",\n display: \"HTTP3\"\n },\n HTTP2: {\n description: \"HyperText Transfer Protocol Version 2 (HTTP/2)\",\n display: \"HTTP2\"\n },\n \"HTTP2.0\": {\n description: \"HyperText Transfer Protocol Version 2 (HTTP/2)\",\n display: \"HTTP2\"\n },\n HTTP3: {\n description: \"HyperText Transfer Protocol Version 3 (HTTP/3)\",\n display: \"HTTP3\"\n },\n \"HTTP3.0\": {\n description: \"HyperText Transfer Protocol Version 3 (HTTP/3)\",\n display: \"HTTP3\"\n },\n HTTPS: { description: \"HyperText Transfer Protocol Secure (HTTPS)\" },\n \"HTTPS/2\": {\n description: \"HyperText Transfer Protocol Secure Version 2 (HTTPS/2)\"\n },\n \"HTTPS/2.0\": {\n description: \"HyperText Transfer Protocol Secure Version 2 (HTTPS/2)\",\n display: \"HTTPS2\"\n },\n \"HTTPS/3\": {\n description: \"HyperText Transfer Protocol Secure Version 3 (HTTPS/3)\"\n },\n \"HTTPS/3.0\": {\n description: \"HyperText Transfer Protocol Secure Version 3 (HTTPS/3)\",\n display: \"HTTPS3\"\n },\n HTTPS2: {\n description: \"HyperText Transfer Protocol Secure Version 2 (HTTPS/2)\",\n display: \"HTTPS2\"\n },\n \"HTTPS2.0\": {\n description: \"HyperText Transfer Protocol Secure Version 2 (HTTPS/2)\",\n display: \"HTTPS2\"\n },\n HTTPS3: {\n description: \"HyperText Transfer Protocol Secure Version 3 (HTTPS/3)\",\n display: \"HTTPS3\"\n },\n \"HTTPS3.0\": {\n description: \"HyperText Transfer Protocol Secure Version 3 (HTTPS/3)\",\n display: \"HTTPS3\"\n },\n IAAS: { description: \"Infrastructure as a Service\", display: \"IaaS\" },\n IAM: { description: \"Identity and Access Management\" },\n IAMM: { description: \"Identity and Access Management and Monitoring\" },\n IAMT: { description: \"Identity and Access Management Tool\" },\n ID: { description: \"Identifier\", display: \"Id\" },\n IFTTT: { description: \"If This Then That\" },\n IMAP: { description: \"Internet Message Access Protocol\" },\n IO: { description: \"Input/Output\" },\n IP: { description: \"Internet Protocol\" },\n IPFS: { description: \"InterPlanetary File System\" },\n IPS: { description: \"Intrusion Prevention System\" },\n ISO: { description: \"International Organization for Standardization\" },\n IQ: { description: \"Intelligence Quotient\", display: \"IQ\" },\n IOT: { description: \"Internet of Things\", display: \"IoT\" },\n JSON: { description: \"JavaScript Object Notation\" },\n JSONP: { description: \"JSON with Padding\" },\n JWT: { description: \"JSON Web Token\" },\n K8S: { description: \"Kubernetes\", display: \"K8s\" },\n KMS: { description: \"Key Management Service\" },\n KPI: { description: \"Key Performance Indicator\" },\n KV: { description: \"Key Value\" },\n LAN: { description: \"Local Area Network\" },\n LHS: { description: \"Left Hand Side\" },\n LPGA: { description: \"Ladies Professional Golf Association\" },\n LXC: { description: \"Linux Containers\" },\n MDT: { description: \"Mountain Daylight Time\" },\n MFA: { description: \"Multi-Factor Authentication\" },\n ML: { description: \"Machine Learning\" },\n MLB: { description: \"Major League Baseball\" },\n MLOps: { description: \"Machine Learning Operations\" },\n MPA: { description: \"Multi-Page Application\" },\n MST: { description: \"Mountain Standard Time\" },\n MVC: { description: \"Model View Controller\" },\n MVP: { description: \"Minimum Viable Product / Most Valuable Player\" },\n NAIA: { description: \"National Association of Intercollegiate Athletics\" },\n NAS: { description: \"Network Attached Storage\" },\n NASA: { description: \"National Aeronautics and Space Administration\" },\n NASCAR: { description: \"National Association for Stock Car Auto Racing\" },\n NAT: { description: \"Network Address Translation\" },\n NBA: { description: \"National Basketball Association\" },\n NCAA: { description: \"National Collegiate Athletic Association\" },\n NDA: { description: \"Non-Disclosure Agreement\" },\n NFS: { description: \"Network File System\" },\n NHL: { description: \"National Hockey League\" },\n NIST: { description: \"National Institute of Standards and Technology\" },\n NLP: { description: \"Natural Language Processing\" },\n NPS: { description: \"Net Promoter Score\" },\n NRA: { description: \"National Rifle Association\" },\n NSFW: { description: \"Not Safe For Work\" },\n NX: { description: \"Nx\", display: \"Nx\" },\n OCR: { description: \"Optical Character Recognition\" },\n OEM: { description: \"Original Equipment Manufacturer\" },\n OKR: { description: \"Objectives and Key Results\" },\n OLAP: { description: \"Online Analytical Processing\" },\n OLTP: { description: \"Online Transaction Processing\" },\n OOP: { description: \"Object Oriented Programming\" },\n ORM: { description: \"Object Relational Mapping\" },\n OS: { description: \"Operating System\" },\n OSINT: { description: \"Open Source Intelligence\" },\n OSS: { description: \"Open Source Software\" },\n OTP: { description: \"One-Time Password\" },\n P2P: { description: \"Peer to Peer\" },\n PAAS: { description: \"Platform as a Service\", display: \"PaaS\" },\n PCI: { description: \"Payment Card Industry\" },\n PDP: { description: \"Policy Decision Point / Product Detail Page\" },\n PDT: { description: \"Pacific Daylight Time\" },\n PGA: { description: \"Professional Golfers' Association\" },\n POTUS: { description: \"President of the United States\" },\n PP: { description: \"Pages / PayPal / Percentage Points\" },\n PST: { description: \"Pacific Standard Time\" },\n PTO: { description: \"Paid Time Off / Power Take-Off\" },\n PKI: { description: \"Public Key Infrastructure\" },\n PWA: { description: \"Progressive Web App\" },\n PX: { description: \"Pixel\" },\n QA: { description: \"Quality Assurance\" },\n R2: { description: \"R2\" },\n RAID: { description: \"Redundant Array of Independent Disks\" },\n RAM: { description: \"Random Access Memory\" },\n RDS: { description: \"Relational Database Service\" },\n REST: { description: \"Representational State Transfer\" },\n RHS: { description: \"Right Hand Side\" },\n ROI: { description: \"Return on Investment\" },\n RPC: { description: \"Remote Procedure Call\" },\n RPA: { description: \"Robotic Process Automation\" },\n RSC: { description: \"React Server Components\" },\n RSS: { description: \"Really Simple Syndication\" },\n RUM: { description: \"Real User Monitoring\" },\n S3: { description: \"Simple Storage Service (S3)\" },\n SAN: { description: \"Storage Area Network\" },\n SASE: { description: \"Secure Access Service Edge\" },\n SCOTUS: { description: \"Supreme Court of the United States\" },\n SDLC: { description: \"Software Development Life Cycle\" },\n SDK: { description: \"Software Development Kit\" },\n SEC: { description: \"Securities and Exchange Commission\" },\n SEO: { description: \"Search Engine Optimization\" },\n SFTP: {\n description: \"SSH File Transfer Protocol / Secure File Transfer Protocol\"\n },\n SIEM: { description: \"Security Information and Event Management\" },\n SLA: { description: \"Service Level Agreement\" },\n SMB: { description: \"Server Message Block / Small and Medium Business\" },\n SMTP: { description: \"Simple Mail Transfer Protocol\" },\n SOAP: { description: \"Simple Object Access Protocol\" },\n SOA: { description: \"Service Oriented Architecture\" },\n SOC: { description: \"Security Operations Center / System on Chip\" },\n SPA: { description: \"Single Page Application\" },\n SPDY: { description: 'Speedy (pronounced \"SPeeDY\")' },\n SPF: { description: \"Sender Policy Framework\" },\n SQL: { description: \"Structured Query Language\" },\n SRC: { description: \"Source\" },\n SRCDIR: { description: \"Source Directory\" },\n SRCPATH: { description: \"Source Path\" },\n SRV: { description: \"Service\" },\n SRE: { description: \"Site Reliability Engineering\" },\n SSH: { description: \"Secure Shell\" },\n SSDL: { description: \"Secure Software Development Lifecycle\" },\n SSG: { description: \"Static Site Generation\" },\n SSR: { description: \"Server Side Rendering\" },\n SSO: { description: \"Single Sign-On\" },\n SSL: { description: \"Secure Sockets Layer\" },\n TDD: { description: \"Test Driven Development\" },\n TLD: { description: \"Top Level Domain\" },\n TLS: { description: \"Transport Layer Security\" },\n \"TLS1.3\": { description: \"Transport Layer Security 1.3\" },\n TOR: { description: \"The Onion Router\" },\n TOTP: { description: \"Time-based One-Time Password\" },\n TRPC: { description: \"TypeScript Remote Procedure Call\" },\n TSA: { description: \"Transportation Security Administration\" },\n TSC: { description: \"TypeScript Compiler\" },\n TTL: { description: \"Time To Live\" },\n UDP: { description: \"User Datagram Protocol\" },\n UI: { description: \"User Interface\" },\n UID: { description: \"Unique Identifier\" },\n URI: { description: \"Uniform Resource Identifier\" },\n URL: { description: \"Uniform Resource Locator\" },\n USOPC: { description: \"United States Olympic & Paralympic Committee\" },\n USPS: { description: \"United States Postal Service\" },\n USTA: { description: \"United States Tennis Association\" },\n UTF: { description: \"Unicode Transformation Format\" },\n UTC: { description: \"Coordinated Universal Time\" },\n UUID: { description: \"Universally Unique Identifier\" },\n UX: { description: \"User Experience\" },\n VM: { description: \"Virtual Machine\" },\n VLAN: { description: \"Virtual Local Area Network\" },\n VPN: { description: \"Virtual Private Network\" },\n VPPA: { description: \"Video Privacy Protection Act\" },\n VR: { description: \"Virtual Reality\" },\n WAF: { description: \"Web Application Firewall\" },\n WAN: { description: \"Wide Area Network\" },\n WNBA: { description: \"Women's National Basketball Association\" },\n WLAN: { description: \"Wireless Local Area Network\" },\n WPA: { description: \"Wi-Fi Protected Access\" },\n WPA2: { description: \"Wi-Fi Protected Access II\" },\n WPA3: { description: \"Wi-Fi Protected Access III\" },\n WWW: { description: \"World Wide Web\" },\n WYSIWYG: { description: \"What You See Is What You Get\" },\n XACML: { description: \"eXtensible Access Control Markup Language\" },\n XDG: { description: \"Cross-Desktop Group\" },\n XML: { description: \"eXtensible Markup Language\" },\n XSRF: { description: \"Cross-Site Request Forgery\" },\n XSS: { description: \"Cross-Site Scripting\" },\n XR: { description: \"Extended Reality\" },\n YAML: { description: \"YAML Ain't Markup Language\" },\n YMCA: { description: \"Young Men's Christian Association\" },\n YWCA: { description: \"Young Women's Christian Association\" },\n ZTA: { description: \"Zero Trust Architecture\" }\n} as const;\n\nexport const ACRONYM_DISPLAY: Record<string, string> = Object.fromEntries(\n Object.entries(ACRONYMS).map(([key, value]) => [key, value.display ?? key])\n);\n\nexport const ACRONYM_DESCRIPTION: Record<string, string> = Object.fromEntries(\n Object.entries(ACRONYMS).map(([key, value]) => [key, value.description])\n);\n\nexport const ACRONYM_LIST: string[] = Object.keys(ACRONYMS);\n"],"mappings":";;;;;;;AAwBA,MAAaA,WAGT;CACF,MAAM;EAAE,aAAa;EAAmB,SAAS;EAAM;CACvD,MAAM;EAAE,aAAa;EAAqB,SAAS;EAAM;CACzD,MAAM;EAAE,aAAa;EAAoB,SAAS;EAAM;CACxD,MAAM,EAAE,aAAa,sCAAsC;CAC3D,MAAM,EAAE,aAAa,sCAAsC;CAC3D,MAAM,EAAE,aAAa,wCAAwC;CAC7D,MAAM,EAAE,aAAa,uCAAuC;CAC5D,MAAM,EAAE,aAAa,iDAAiD;CACtE,MAAM,EAAE,aAAa,oBAAoB;CACzC,KAAK,EAAE,aAAa,gCAAgC;CACpD,IAAI,EAAE,aAAa,2BAA2B;CAC9C,MAAM,EAAE,aAAa,mCAAmC;CACxD,KAAK,EAAE,aAAa,qCAAqC;CACzD,IAAI,EAAE,aAAa,qBAAqB;CACxC,OAAO,EACL,aAAa,sDACd;CACD,KAAK,EAAE,aAAa,uDAAuD;CAC3E,KAAK,EAAE,aAAa,4BAA4B;CAChD,KAAK,EAAE,aAAa,wBAAwB;CAC5C,KAAK,EAAE,aAAa,wBAAwB;CAC5C,OAAO,EACL,aAAa,uDACd;CACD,KAAK,EAAE,aAAa,wBAAwB;CAC5C,MAAM,EAAE,aAAa,iCAAiC;CACtD,IAAI,EAAE,aAAa,yBAAyB;CAC5C,MAAM,EAAE,aAAa,6BAA6B;CAClD,KAAK,EAAE,aAAa,2BAA2B;CAC/C,K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E,aAAa,4BAA4B;CAChD,KAAK,EAAE,aAAa,qBAAqB;CACzC,MAAM,EAAE,aAAa,2CAA2C;CAChE,MAAM,EAAE,aAAa,+BAA+B;CACpD,KAAK,EAAE,aAAa,0BAA0B;CAC9C,MAAM,EAAE,aAAa,6BAA6B;CAClD,MAAM,EAAE,aAAa,8BAA8B;CACnD,KAAK,EAAE,aAAa,kBAAkB;CACtC,SAAS,EAAE,aAAa,gCAAgC;CACxD,OAAO,EAAE,aAAa,6CAA6C;CACnE,KAAK,EAAE,aAAa,uBAAuB;CAC3C,KAAK,EAAE,aAAa,8BAA8B;CAClD,MAAM,EAAE,aAAa,8BAA8B;CACnD,KAAK,EAAE,aAAa,wBAAwB;CAC5C,IAAI,EAAE,aAAa,oBAAoB;CACvC,MAAM,EAAE,aAAa,8BAA8B;CACnD,MAAM,EAAE,aAAa,qCAAqC;CAC1D,MAAM,EAAE,aAAa,uCAAuC;CAC5D,KAAK,EAAE,aAAa,2BAA2B;CAChD;AAED,MAAaC,kBAA0C,OAAO,YAC5D,OAAO,QAAQ,SAAS,CAAC,KAAK,CAAC,KAAK,WAAW,CAAC,KAAK,MAAM,WAAW,IAAI,CAAC,CAC5E;AAED,MAAaC,sBAA8C,OAAO,YAChE,OAAO,QAAQ,SAAS,CAAC,KAAK,CAAC,KAAK,WAAW,CAAC,KAAK,MAAM,YAAY,CAAC,CACzE;AAED,MAAaC,eAAyB,OAAO,KAAK,SAAS"}
1
+ {"version":3,"file":"acronyms.mjs","names":[],"sources":["../../../../string-format/src/acronyms.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\n/**\n * A running list of common acronyms and their meanings.\n *\n * @remarks\n * This list is not exhaustive and may be updated over time.\n */\nexport const ACRONYMS: Record<\n string,\n { description: string; display?: string }\n> = {\n \"2D\": { description: \"Two-Dimensional\", display: \"2d\" },\n \"3D\": { description: \"Three-Dimensional\", display: \"3d\" },\n \"4D\": { description: \"Four-Dimensional\", display: \"4d\" },\n \"5G\": { description: \"Fifth Generation (mobile networks)\" },\n \"6G\": { description: \"Sixth Generation (mobile networks)\" },\n \"7G\": { description: \"Seventh Generation (mobile networks)\" },\n \"8G\": { description: \"Eighth Generation (mobile networks)\" },\n ACID: { description: \"Atomicity, Consistency, Isolation, Durability\" },\n AITA: { description: \"Am I The Asshole\" },\n AES: { description: \"Advanced Encryption Standard\" },\n AI: { description: \"Artificial Intelligence\" },\n AJAX: { description: \"Asynchronous JavaScript and XML\" },\n API: { description: \"Application Programming Interface\" },\n AR: { description: \"Augmented Reality\" },\n ASCII: {\n description: \"American Standard Code for Information Interchange\"\n },\n ATF: { description: \"Bureau of Alcohol, Tobacco, Firearms and Explosives\" },\n ATM: { description: \"Automated Teller Machine\" },\n B2B: { description: \"Business to Business\" },\n B2C: { description: \"Business to Consumer\" },\n BATFE: {\n description: \"Bureau of Alcohol, Tobacco, Firearms and Explosives\"\n },\n BFF: { description: \"Best Friends Forever\" },\n BFFS: { description: \"Best Friends Forever (plural)\" },\n BI: { description: \"Business Intelligence\" },\n BIOS: { description: \"Basic Input/Output System\" },\n BGP: { description: \"Border Gateway Protocol\" },\n BOM: { description: \"Bill of Materials / Byte Order Mark\" },\n BSON: { description: \"Binary JSON\" },\n BYOD: { description: \"Bring Your Own Device\" },\n C2C: { description: \"Consumer to Consumer\" },\n CAGR: { description: \"Compound Annual Growth Rate\" },\n CAPTCHA: {\n description:\n \"Completely Automated Public Turing test to tell Computers and Humans Apart\"\n },\n CCTV: { description: \"Closed-Circuit Television\" },\n CD: { description: \"Continuous Delivery / Compact Disc\" },\n CDN: { description: \"Content Delivery Network\" },\n CDP: { description: \"Customer Data Platform\" },\n CDT: { description: \"Central Daylight Time\" },\n CIA: { description: \"Central Intelligence Agency\" },\n CI: { description: \"Continuous Integration\" },\n \"CI/CD\": { description: \"Continuous Integration/Continuous Delivery\" },\n CIAM: { description: \"Customer Identity and Access Management\" },\n CICD: {\n description: \"Continuous Integration Continuous Delivery\",\n display: \"CI/CD\"\n },\n CLI: { description: \"Command Line Interface\" },\n CMDB: { description: \"Configuration Management Database\" },\n CORS: { description: \"Cross-Origin Resource Sharing\" },\n CPA: { description: \"Certified Public Accountant\" },\n CPU: { description: \"Central Processing Unit\" },\n CRUD: { description: \"Create, Read, Update, Delete\" },\n CSR: {\n description: \"Certificate Signing Request / Corporate Social Responsibility\"\n },\n CSS: { description: \"Cascading Style Sheets\" },\n CST: { description: \"Central Standard Time\" },\n CTA: { description: \"Call To Action\" },\n CWD: { description: \"Current Working Directory\" },\n CX: { description: \"Customer Experience\" },\n DAG: { description: \"Directed Acyclic Graph\" },\n DBMS: { description: \"Database Management System\" },\n DDOS: { description: \"Distributed Denial of Service\", display: \"DDoS\" },\n DEA: { description: \"Drug Enforcement Administration\" },\n DEVENV: { description: \"Devenv\", display: \"Devenv\" },\n DEVOPS: { description: \"Development Operations\", display: \"DevOps\" },\n DHS: { description: \"Department of Homeland Security\" },\n DEST: { description: \"Destination\" },\n DESTDIR: { description: \"Destination Directory\" },\n DESTPATH: { description: \"Destination Path\" },\n DIRENV: { description: \"DirEnv\", display: \"DirEnv\" },\n DNC: { description: \"Democratic National Committee / Do Not Call\" },\n DNS: { description: \"Domain Name System\" },\n DNSSEC: { description: \"Domain Name System Security Extensions\" },\n DOD: { description: \"Department of Defense\", display: \"DoD\" },\n DOJ: { description: \"Department of Justice\", display: \"DoJ\" },\n DOM: { description: \"Document Object Model\" },\n DOT: { description: \"Department of Transportation\", display: \"DoT\" },\n DOTENV: { description: \"Dotenv (.env)\", display: \"Dotenv\" },\n DR: { description: \"Disaster Recovery\" },\n DRM: { description: \"Digital Rights Management\" },\n DSN: { description: \"Data Source Name\" },\n DWH: { description: \"Data Warehouse\" },\n E2E: { description: \"End to End\" },\n EAI: { description: \"Enterprise Application Integration\" },\n EDT: { description: \"Eastern Daylight Time\" },\n EEA: { description: \"European Economic Area\" },\n EKS: { description: \"Elastic Kubernetes Service\" },\n EOF: { description: \"End Of File\" },\n EOD: { description: \"End Of Day / Explosive Ordnance Disposal\" },\n EPA: { description: \"Environmental Protection Agency\" },\n ER: { description: \"Emergency Room / Entity Relationship\" },\n EST: { description: \"Eastern Standard Time\" },\n ETC: { description: \"Et Cetera\" },\n ETL: { description: \"Extract, Transform, Load\" },\n EULA: { description: \"End User License Agreement\" },\n FAAS: { description: \"Function as a Service\", display: \"FaaS\" },\n FAQ: { description: \"Frequently Asked Questions\", display: \"FAQs\" },\n FAQS: { description: \"Frequently Asked Questions\" },\n FBI: { description: \"Federal Bureau of Investigation\" },\n FCC: { description: \"Federal Communications Commission\" },\n FDA: { description: \"Food and Drug Administration\" },\n FIDO: { description: \"Fast IDentity Online\" },\n FLOTUS: { description: \"First Lady of the United States\" },\n FQDN: { description: \"Fully Qualified Domain Name\" },\n FTC: { description: \"Federal Trade Commission\" },\n FTP: { description: \"File Transfer Protocol\" },\n GC: { description: \"Garbage Collection\" },\n GCP: { description: \"Google Cloud Platform\" },\n GDPR: { description: \"General Data Protection Regulation\" },\n GMT: { description: \"Greenwich Mean Time\" },\n GOP: { description: \"Grand Old Party\" },\n GPU: { description: \"Graphics Processing Unit\" },\n GUID: { description: \"Globally Unique Identifier\" },\n GUI: { description: \"Graphical User Interface\" },\n GZIP: { description: \"GNU Zip\" },\n HCI: {\n description: \"Human Computer Interaction / Hyper-Converged Infrastructure\"\n },\n HDD: { description: \"Hard Disk Drive\" },\n HDFS: { description: \"Hadoop Distributed File System\" },\n HHS: { description: \"Health and Human Services\" },\n HIPAA: {\n description: \"Health Insurance Portability and Accountability Act\"\n },\n HMAC: { description: \"Hash-based Message Authentication Code\" },\n HOTP: { description: \"HMAC-based One-Time Password\" },\n HSM: { description: \"Hardware Security Module\" },\n HTML: { description: \"HyperText Markup Language\" },\n HTTP: { description: \"HyperText Transfer Protocol (HTTP)\" },\n \"HTTP/2\": { description: \"HyperText Transfer Protocol Version 2 (HTTP/2)\" },\n \"HTTP/2.0\": {\n description: \"HyperText Transfer Protocol Version 2 (HTTP/2)\",\n display: \"HTTP2\"\n },\n \"HTTP/3\": { description: \"HyperText Transfer Protocol Version 3 (HTTP/3)\" },\n \"HTTP/3.0\": {\n description: \"HyperText Transfer Protocol Version 3 (HTTP/3)\",\n display: \"HTTP3\"\n },\n HTTP2: {\n description: \"HyperText Transfer Protocol Version 2 (HTTP/2)\",\n display: \"HTTP2\"\n },\n \"HTTP2.0\": {\n description: \"HyperText Transfer Protocol Version 2 (HTTP/2)\",\n display: \"HTTP2\"\n },\n HTTP3: {\n description: \"HyperText Transfer Protocol Version 3 (HTTP/3)\",\n display: \"HTTP3\"\n },\n \"HTTP3.0\": {\n description: \"HyperText Transfer Protocol Version 3 (HTTP/3)\",\n display: \"HTTP3\"\n },\n HTTPS: { description: \"HyperText Transfer Protocol Secure (HTTPS)\" },\n \"HTTPS/2\": {\n description: \"HyperText Transfer Protocol Secure Version 2 (HTTPS/2)\"\n },\n \"HTTPS/2.0\": {\n description: \"HyperText Transfer Protocol Secure Version 2 (HTTPS/2)\",\n display: \"HTTPS2\"\n },\n \"HTTPS/3\": {\n description: \"HyperText Transfer Protocol Secure Version 3 (HTTPS/3)\"\n },\n \"HTTPS/3.0\": {\n description: \"HyperText Transfer Protocol Secure Version 3 (HTTPS/3)\",\n display: \"HTTPS3\"\n },\n HTTPS2: {\n description: \"HyperText Transfer Protocol Secure Version 2 (HTTPS/2)\",\n display: \"HTTPS2\"\n },\n \"HTTPS2.0\": {\n description: \"HyperText Transfer Protocol Secure Version 2 (HTTPS/2)\",\n display: \"HTTPS2\"\n },\n HTTPS3: {\n description: \"HyperText Transfer Protocol Secure Version 3 (HTTPS/3)\",\n display: \"HTTPS3\"\n },\n \"HTTPS3.0\": {\n description: \"HyperText Transfer Protocol Secure Version 3 (HTTPS/3)\",\n display: \"HTTPS3\"\n },\n IAAS: { description: \"Infrastructure as a Service\", display: \"IaaS\" },\n IAM: { description: \"Identity and Access Management\" },\n IAMM: { description: \"Identity and Access Management and Monitoring\" },\n IAMT: { description: \"Identity and Access Management Tool\" },\n ID: { description: \"Identifier\", display: \"Id\" },\n IFTTT: { description: \"If This Then That\" },\n IMAP: { description: \"Internet Message Access Protocol\" },\n IO: { description: \"Input/Output\" },\n IP: { description: \"Internet Protocol\" },\n IPFS: { description: \"InterPlanetary File System\" },\n IPS: { description: \"Intrusion Prevention System\" },\n ISO: { description: \"International Organization for Standardization\" },\n IQ: { description: \"Intelligence Quotient\", display: \"IQ\" },\n IOT: { description: \"Internet of Things\", display: \"IoT\" },\n JSON: { description: \"JavaScript Object Notation\" },\n JSONP: { description: \"JSON with Padding\" },\n JWT: { description: \"JSON Web Token\" },\n K8S: { description: \"Kubernetes\", display: \"K8s\" },\n KMS: { description: \"Key Management Service\" },\n KPI: { description: \"Key Performance Indicator\" },\n KV: { description: \"Key Value\" },\n LAN: { description: \"Local Area Network\" },\n LHS: { description: \"Left Hand Side\" },\n LPGA: { description: \"Ladies Professional Golf Association\" },\n LXC: { description: \"Linux Containers\" },\n MDT: { description: \"Mountain Daylight Time\" },\n MFA: { description: \"Multi-Factor Authentication\" },\n ML: { description: \"Machine Learning\" },\n MLB: { description: \"Major League Baseball\" },\n MLOps: { description: \"Machine Learning Operations\" },\n MPA: { description: \"Multi-Page Application\" },\n MST: { description: \"Mountain Standard Time\" },\n MVC: { description: \"Model View Controller\" },\n MVP: { description: \"Minimum Viable Product / Most Valuable Player\" },\n NAIA: { description: \"National Association of Intercollegiate Athletics\" },\n NAS: { description: \"Network Attached Storage\" },\n NASA: { description: \"National Aeronautics and Space Administration\" },\n NASCAR: { description: \"National Association for Stock Car Auto Racing\" },\n NAT: { description: \"Network Address Translation\" },\n NBA: { description: \"National Basketball Association\" },\n NCAA: { description: \"National Collegiate Athletic Association\" },\n NDA: { description: \"Non-Disclosure Agreement\" },\n NFS: { description: \"Network File System\" },\n NHL: { description: \"National Hockey League\" },\n NIST: { description: \"National Institute of Standards and Technology\" },\n NLP: { description: \"Natural Language Processing\" },\n NPS: { description: \"Net Promoter Score\" },\n NRA: { description: \"National Rifle Association\" },\n NSFW: { description: \"Not Safe For Work\" },\n NX: { description: \"Nx\", display: \"Nx\" },\n OCR: { description: \"Optical Character Recognition\" },\n OEM: { description: \"Original Equipment Manufacturer\" },\n OKR: { description: \"Objectives and Key Results\" },\n OLAP: { description: \"Online Analytical Processing\" },\n OLTP: { description: \"Online Transaction Processing\" },\n OOP: { description: \"Object Oriented Programming\" },\n ORM: { description: \"Object Relational Mapping\" },\n OS: { description: \"Operating System\" },\n OSINT: { description: \"Open Source Intelligence\" },\n OSS: { description: \"Open Source Software\" },\n OTP: { description: \"One-Time Password\" },\n P2P: { description: \"Peer to Peer\" },\n PAAS: { description: \"Platform as a Service\", display: \"PaaS\" },\n PCI: { description: \"Payment Card Industry\" },\n PDP: { description: \"Policy Decision Point / Product Detail Page\" },\n PDT: { description: \"Pacific Daylight Time\" },\n PGA: { description: \"Professional Golfers' Association\" },\n POTUS: { description: \"President of the United States\" },\n PP: { description: \"Pages / PayPal / Percentage Points\" },\n PST: { description: \"Pacific Standard Time\" },\n PTO: { description: \"Paid Time Off / Power Take-Off\" },\n PKI: { description: \"Public Key Infrastructure\" },\n PWA: { description: \"Progressive Web App\" },\n PX: { description: \"Pixel\" },\n QA: { description: \"Quality Assurance\" },\n R2: { description: \"R2\" },\n RAID: { description: \"Redundant Array of Independent Disks\" },\n RAM: { description: \"Random Access Memory\" },\n RDS: { description: \"Relational Database Service\" },\n REST: { description: \"Representational State Transfer\" },\n RHS: { description: \"Right Hand Side\" },\n ROI: { description: \"Return on Investment\" },\n RPC: { description: \"Remote Procedure Call\" },\n RPA: { description: \"Robotic Process Automation\" },\n RSC: { description: \"React Server Components\" },\n RSS: { description: \"Really Simple Syndication\" },\n RUM: { description: \"Real User Monitoring\" },\n S3: { description: \"Simple Storage Service (S3)\" },\n SAN: { description: \"Storage Area Network\" },\n SASE: { description: \"Secure Access Service Edge\" },\n SCOTUS: { description: \"Supreme Court of the United States\" },\n SDLC: { description: \"Software Development Life Cycle\" },\n SDK: { description: \"Software Development Kit\" },\n SEC: { description: \"Securities and Exchange Commission\" },\n SEO: { description: \"Search Engine Optimization\" },\n SFTP: {\n description: \"SSH File Transfer Protocol / Secure File Transfer Protocol\"\n },\n SIEM: { description: \"Security Information and Event Management\" },\n SLA: { description: \"Service Level Agreement\" },\n SMB: { description: \"Server Message Block / Small and Medium Business\" },\n SMTP: { description: \"Simple Mail Transfer Protocol\" },\n SOAP: { description: \"Simple Object Access Protocol\" },\n SOA: { description: \"Service Oriented Architecture\" },\n SOC: { description: \"Security Operations Center / System on Chip\" },\n SPA: { description: \"Single Page Application\" },\n SPDY: { description: 'Speedy (pronounced \"SPeeDY\")' },\n SPF: { description: \"Sender Policy Framework\" },\n SQL: { description: \"Structured Query Language\" },\n SRC: { description: \"Source\" },\n SRCDIR: { description: \"Source Directory\" },\n SRCPATH: { description: \"Source Path\" },\n SRV: { description: \"Service\" },\n SRE: { description: \"Site Reliability Engineering\" },\n SSH: { description: \"Secure Shell\" },\n SSDL: { description: \"Secure Software Development Lifecycle\" },\n SSG: { description: \"Static Site Generation\" },\n SSR: { description: \"Server Side Rendering\" },\n SSO: { description: \"Single Sign-On\" },\n SSL: { description: \"Secure Sockets Layer\" },\n TDD: { description: \"Test Driven Development\" },\n TLD: { description: \"Top Level Domain\" },\n TLS: { description: \"Transport Layer Security\" },\n \"TLS1.3\": { description: \"Transport Layer Security 1.3\" },\n TOR: { description: \"The Onion Router\" },\n TOTP: { description: \"Time-based One-Time Password\" },\n TRPC: { description: \"TypeScript Remote Procedure Call\" },\n TSA: { description: \"Transportation Security Administration\" },\n TSC: { description: \"TypeScript Compiler\" },\n TTL: { description: \"Time To Live\" },\n UDP: { description: \"User Datagram Protocol\" },\n UI: { description: \"User Interface\" },\n UID: { description: \"Unique Identifier\" },\n URI: { description: \"Uniform Resource Identifier\" },\n URL: { description: \"Uniform Resource Locator\" },\n USOPC: { description: \"United States Olympic & Paralympic Committee\" },\n USPS: { description: \"United States Postal Service\" },\n USTA: { description: \"United States Tennis Association\" },\n UTF: { description: \"Unicode Transformation Format\" },\n UTC: { description: \"Coordinated Universal Time\" },\n UUID: { description: \"Universally Unique Identifier\" },\n UX: { description: \"User Experience\" },\n VM: { description: \"Virtual Machine\" },\n VLAN: { description: \"Virtual Local Area Network\" },\n VPN: { description: \"Virtual Private Network\" },\n VPPA: { description: \"Video Privacy Protection Act\" },\n VR: { description: \"Virtual Reality\" },\n WAF: { description: \"Web Application Firewall\" },\n WAN: { description: \"Wide Area Network\" },\n WNBA: { description: \"Women's National Basketball Association\" },\n WLAN: { description: \"Wireless Local Area Network\" },\n WPA: { description: \"Wi-Fi Protected Access\" },\n WPA2: { description: \"Wi-Fi Protected Access II\" },\n WPA3: { description: \"Wi-Fi Protected Access III\" },\n WWW: { description: \"World Wide Web\" },\n WYSIWYG: { description: \"What You See Is What You Get\" },\n XACML: { description: \"eXtensible Access Control Markup Language\" },\n XDG: { description: \"Cross-Desktop Group\" },\n XML: { description: \"eXtensible Markup Language\" },\n XSRF: { description: \"Cross-Site Request Forgery\" },\n XSS: { description: \"Cross-Site Scripting\" },\n XR: { description: \"Extended Reality\" },\n YAML: { description: \"YAML Ain't Markup Language\" },\n YMCA: { description: \"Young Men's Christian Association\" },\n YWCA: { description: \"Young Women's Christian Association\" },\n ZTA: { description: \"Zero Trust Architecture\" }\n} as const;\n\nexport const ACRONYM_DISPLAY: Record<string, string> = Object.fromEntries(\n Object.entries(ACRONYMS).map(([key, value]) => [key, value.display ?? key])\n);\n\nexport const ACRONYM_DESCRIPTION: Record<string, string> = Object.fromEntries(\n Object.entries(ACRONYMS).map(([key, value]) => [key, value.description])\n);\n\nexport const ACRONYM_LIST: string[] = Object.keys(ACRONYMS);\n"],"mappings":";;;;;;;AAwBA,MAAa,WAGT;CACF,MAAM;EAAE,aAAa;EAAmB,SAAS;EAAM;CACvD,MAAM;EAAE,aAAa;EAAqB,SAAS;EAAM;CACzD,MAAM;EAAE,aAAa;EAAoB,SAAS;EAAM;CACxD,MAAM,EAAE,aAAa,sCAAsC;CAC3D,MAAM,EAAE,aAAa,sCAAsC;CAC3D,MAAM,EAAE,aAAa,wCAAwC;CAC7D,MAAM,EAAE,aAAa,uCAAuC;CAC5D,MAAM,EAAE,aAAa,iDAAiD;CACtE,MAAM,EAAE,aAAa,oBAAoB;CACzC,KAAK,EAAE,aAAa,gCAAgC;CACpD,IAAI,EAAE,aAAa,2BAA2B;CAC9C,MAAM,EAAE,aAAa,mCAAmC;CACxD,KAAK,EAAE,aAAa,qCAAqC;CACzD,IAAI,EAAE,aAAa,qBAAqB;CACxC,OAAO,EACL,aAAa,sDACd;CACD,KAAK,EAAE,aAAa,uDAAuD;CAC3E,KAAK,EAAE,aAAa,4BAA4B;CAChD,KAAK,EAAE,aAAa,wBAAwB;CAC5C,KAAK,EAAE,aAAa,wBAAwB;CAC5C,OAAO,EACL,aAAa,uDACd;CACD,KAAK,EAAE,aAAa,wBAAwB;CAC5C,MAAM,EAAE,aAAa,iCAAiC;CACtD,IAAI,EAAE,aAAa,yBAAyB;CAC5C,MAAM,EAAE,aAAa,6BAA6B;CAClD,KAAK,EAAE,aAAa,2BAA2B;CAC/C,KAAK,EAAE,aAAa,uCAAuC;CAC3D,MAAM,EAAE,aAAa,eAAe;CACpC,MAAM,EAAE,aAAa,yBAAyB;CAC9C,KAAK,EAAE,aAAa,wBAAwB;CAC5C,MAAM,EAAE,aAAa,+BAA+B;CACpD,SAAS,EACP,aACE,8EACH;CACD,MAAM,EAAE,aAAa,6BAA6B;CAClD,IAAI,EAAE,aAAa,sCAAsC;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tC,SAAS,EAAE,aAAa,gCAAgC;CACxD,OAAO,EAAE,aAAa,6CAA6C;CACnE,KAAK,EAAE,aAAa,uBAAuB;CAC3C,KAAK,EAAE,aAAa,8BAA8B;CAClD,MAAM,EAAE,aAAa,8BAA8B;CACnD,KAAK,EAAE,aAAa,wBAAwB;CAC5C,IAAI,EAAE,aAAa,oBAAoB;CACvC,MAAM,EAAE,aAAa,8BAA8B;CACnD,MAAM,EAAE,aAAa,qCAAqC;CAC1D,MAAM,EAAE,aAAa,uCAAuC;CAC5D,KAAK,EAAE,aAAa,2BAA2B;CAChD;AAED,MAAa,kBAA0C,OAAO,YAC5D,OAAO,QAAQ,SAAS,CAAC,KAAK,CAAC,KAAK,WAAW,CAAC,KAAK,MAAM,WAAW,IAAI,CAAC,CAC5E;AAED,MAAa,sBAA8C,OAAO,YAChE,OAAO,QAAQ,SAAS,CAAC,KAAK,CAAC,KAAK,WAAW,CAAC,KAAK,MAAM,YAAY,CAAC,CACzE"}
@@ -1,12 +1,13 @@
1
1
  "use client";
2
2
 
3
- const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+ const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
4
5
  const require_shared = require('../shared.cjs');
5
6
  const require_environment_checks = require('../env/src/environment-checks.cjs');
6
7
  require('../env/src/index.cjs');
7
- let __trpc_client = require("@trpc/client");
8
- let __tanstack_react_query = require("@tanstack/react-query");
9
- let __trpc_tanstack_react_query = require("@trpc/tanstack-react-query");
8
+ let _trpc_client = require("@trpc/client");
9
+ let _tanstack_react_query = require("@tanstack/react-query");
10
+ let _trpc_tanstack_react_query = require("@trpc/tanstack-react-query");
10
11
  let react = require("react");
11
12
  let react_jsx_runtime = require("react/jsx-runtime");
12
13
 
@@ -17,12 +18,12 @@ let react_jsx_runtime = require("react/jsx-runtime");
17
18
  * @returns The TRPC Tanstack Query client
18
19
  */
19
20
  function createTRPCTanstackQueryClient(baseUrl, queryClient) {
20
- const { TRPCProvider, useTRPC } = (0, __trpc_tanstack_react_query.createTRPCContext)();
21
+ const { TRPCProvider, useTRPC } = (0, _trpc_tanstack_react_query.createTRPCContext)();
21
22
  return {
22
23
  useTRPCTanstackQuery: useTRPC,
23
24
  TRPCTanstackQueryProvider: (props) => {
24
25
  const { children } = props;
25
- const [trpcClient] = (0, react.useState)(() => (0, __trpc_client.createTRPCClient)({ links: [(0, __trpc_client.loggerLink)({ enabled: (op) => require_environment_checks.isDevelopment || op.direction === "down" && op.result instanceof Error }), (0, __trpc_client.httpBatchStreamLink)({
26
+ const [trpcClient] = (0, react.useState)(() => (0, _trpc_client.createTRPCClient)({ links: [(0, _trpc_client.loggerLink)({ enabled: (op) => require_environment_checks.isDevelopment || op.direction === "down" && op.result instanceof Error }), (0, _trpc_client.httpBatchStreamLink)({
26
27
  transformer: require_shared.transformer,
27
28
  url: require_shared.getTRPCServerUrl(baseUrl),
28
29
  headers: { "x-trpc-source": "react-query" }
@@ -30,7 +31,7 @@ function createTRPCTanstackQueryClient(baseUrl, queryClient) {
30
31
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TRPCProvider, {
31
32
  trpcClient,
32
33
  queryClient,
33
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__tanstack_react_query.QueryClientProvider, {
34
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_tanstack_react_query.QueryClientProvider, {
34
35
  client: queryClient,
35
36
  children
36
37
  })
@@ -1,23 +1,22 @@
1
1
  import { StormURLInterface } from "../url/src/types.cjs";
2
2
  import { AnyTRPCRouter } from "@trpc/server";
3
- import * as _trpc_tanstack_react_query0 from "@trpc/tanstack-react-query";
3
+ import * as _$_trpc_tanstack_react_query0 from "@trpc/tanstack-react-query";
4
4
  import { QueryClient } from "@tanstack/react-query";
5
- import * as react_jsx_runtime0 from "react/jsx-runtime";
5
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
6
6
 
7
7
  //#region src/tanstack-query/client.d.ts
8
-
9
8
  /**
10
9
  * Create a TRPC Tanstack Query client.
11
10
  *
12
11
  * @returns The TRPC Tanstack Query client
13
12
  */
14
13
  declare function createTRPCTanstackQueryClient<TRouter extends AnyTRPCRouter>(baseUrl: string | StormURLInterface, queryClient: QueryClient): {
15
- useTRPCTanstackQuery: () => _trpc_tanstack_react_query0.TRPCOptionsProxy<TRouter, {
14
+ useTRPCTanstackQuery: () => _$_trpc_tanstack_react_query0.TRPCOptionsProxy<TRouter, {
16
15
  keyPrefix: false;
17
16
  }>;
18
17
  TRPCTanstackQueryProvider: (props: {
19
18
  children: React.ReactNode;
20
- }) => react_jsx_runtime0.JSX.Element;
19
+ }) => _$react_jsx_runtime0.JSX.Element;
21
20
  };
22
21
  //#endregion
23
22
  export { createTRPCTanstackQueryClient };
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.cts","names":[],"sources":["../../src/tanstack-query/client.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;;;AAuCA;AAA8D,iBAA9C,6BAA8C,CAAA,gBAAA,aAAA,CAAA,CAAA,OAAA,EAAA,MAAA,GAC1C,iBAD0C,EAAA,WAAA,EAE/C,WAF+C,CAAA,EAAA;EAC1C,oBAAA,EAAA,GAAA,+CAAA,QAAA,EAAA;IACL,SAAA,EAAA,KAAA;;;IAM0C,QAAA,EAAN,KAAA,CAAM,SAAA;EAAW,CAAA,EAAA,GAAA,kBAAA,CAAA,GAAA,CAAA,OAAA;CAAA"}
1
+ {"version":3,"file":"client.d.cts","names":[],"sources":["../../src/tanstack-query/client.tsx"],"mappings":";;;;;;;;;;;;iBAuCgB,6BAAA,iBAA8C,aAAA,CAAA,CAC5D,OAAA,WAAkB,iBAAA,EAClB,WAAA,EAAa,WAAA;;;;;IAM0B,QAAA,EAAU,KAAA,CAAM,SAAA;EAAA,MAAW,oBAAA,CAAA,GAAA,CAAA,OAAA;AAAA"}
@@ -1,8 +1,7 @@
1
1
  import { StormURLInterface } from "../url/src/types.mjs";
2
- import "../url/src/index.mjs";
3
2
  import { QueryClient } from "@tanstack/react-query";
4
- import * as _trpc_tanstack_react_query0 from "@trpc/tanstack-react-query";
5
- import * as react_jsx_runtime0 from "react/jsx-runtime";
3
+ import * as _$_trpc_tanstack_react_query0 from "@trpc/tanstack-react-query";
4
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
6
5
  import { AnyTRPCRouter } from "@trpc/server";
7
6
 
8
7
  //#region src/tanstack-query/client.d.ts
@@ -12,12 +11,12 @@ import { AnyTRPCRouter } from "@trpc/server";
12
11
  * @returns The TRPC Tanstack Query client
13
12
  */
14
13
  declare function createTRPCTanstackQueryClient<TRouter extends AnyTRPCRouter>(baseUrl: string | StormURLInterface, queryClient: QueryClient): {
15
- useTRPCTanstackQuery: () => _trpc_tanstack_react_query0.TRPCOptionsProxy<TRouter, {
14
+ useTRPCTanstackQuery: () => _$_trpc_tanstack_react_query0.TRPCOptionsProxy<TRouter, {
16
15
  keyPrefix: false;
17
16
  }>;
18
17
  TRPCTanstackQueryProvider: (props: {
19
18
  children: React.ReactNode;
20
- }) => react_jsx_runtime0.JSX.Element;
19
+ }) => _$react_jsx_runtime0.JSX.Element;
21
20
  };
22
21
  //#endregion
23
22
  export { createTRPCTanstackQueryClient };
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.mts","names":[],"sources":["../../src/tanstack-query/client.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;AAuCgB,iBAAA,6BAA6B,CAAA,gBAAiB,aAAjB,CAAA,CAAA,OAAA,EAAA,MAAA,GACzB,iBADyB,EAAA,WAAA,EAE9B,WAF8B,CAAA,EAAA;EAAiB,oBAAA,EAAA,GAAA,+CAAA,QAAA,EAAA;IAC1C,SAAA,EAAA,KAAA;EACL,CAAA,CAAA;;cAMoC,KAAA,CAAM;EAAN,CAAA,EAAM,GAAW,kBAAA,CAAA,GAAA,CAAA,OAAX;CAAW"}
1
+ {"version":3,"file":"client.d.mts","names":[],"sources":["../../src/tanstack-query/client.tsx"],"mappings":";;;;;;;;;;;;iBAuCgB,6BAAA,iBAA8C,aAAA,CAAA,CAC5D,OAAA,WAAkB,iBAAA,EAClB,WAAA,EAAa,WAAA;;;;;IAM0B,QAAA,EAAU,KAAA,CAAM,SAAA;EAAA,MAAW,oBAAA,CAAA,GAAA,CAAA,OAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"client.mjs","names":[],"sources":["../../src/tanstack-query/client.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\n\"use client\";\n\nimport { isDevelopment } from \"@stryke/env\";\nimport type { StormURLInterface } from \"@stryke/url\";\nimport type { QueryClient } from \"@tanstack/react-query\";\nimport { QueryClientProvider } from \"@tanstack/react-query\";\nimport {\n createTRPCClient,\n httpBatchStreamLink,\n loggerLink\n} from \"@trpc/client\";\nimport type { AnyTRPCRouter } from \"@trpc/server\";\nimport { createTRPCContext } from \"@trpc/tanstack-react-query\";\nimport { useState } from \"react\";\nimport { getTRPCServerUrl, transformer } from \"../shared\";\n\n/**\n * Create a TRPC Tanstack Query client.\n *\n * @returns The TRPC Tanstack Query client\n */\nexport function createTRPCTanstackQueryClient<TRouter extends AnyTRPCRouter>(\n baseUrl: string | StormURLInterface,\n queryClient: QueryClient\n) {\n const { TRPCProvider, useTRPC } = createTRPCContext<TRouter>();\n\n return {\n useTRPCTanstackQuery: useTRPC,\n TRPCTanstackQueryProvider: (props: { children: React.ReactNode }) => {\n const { children } = props;\n\n const [trpcClient] = useState(() =>\n createTRPCClient<TRouter>({\n links: [\n loggerLink({\n enabled: op =>\n isDevelopment ||\n (op.direction === \"down\" && op.result instanceof Error)\n }),\n httpBatchStreamLink<TRouter>({\n transformer,\n url: getTRPCServerUrl(baseUrl),\n headers: { \"x-trpc-source\": \"react-query\" }\n } as TRouter[\"_def\"][\"_config\"][\"$types\"])\n ]\n })\n );\n\n return (\n <TRPCProvider trpcClient={trpcClient} queryClient={queryClient}>\n <QueryClientProvider client={queryClient}>\n {children}\n </QueryClientProvider>\n </TRPCProvider>\n );\n }\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAuCA,SAAgB,8BACd,SACA,aACA;CACA,MAAM,EAAE,cAAc,YAAY,mBAA4B;AAE9D,QAAO;EACL,sBAAsB;EACtB,4BAA4B,UAAyC;GACnE,MAAM,EAAE,aAAa;GAErB,MAAM,CAAC,cAAc,eACnB,iBAA0B,EACxB,OAAO,CACL,WAAW,EACT,UAAS,OACP,iBACC,GAAG,cAAc,UAAU,GAAG,kBAAkB,OACpD,CAAC,EACF,oBAA6B;IAC3B;IACA,KAAK,iBAAiB,QAAQ;IAC9B,SAAS,EAAE,iBAAiB,eAAe;IAC5C,CAAyC,CAC3C,EACF,CAAC,CACH;AAED,UACE,oBAAC;IAAyB;IAAyB;cACjD,oBAAC;KAAoB,QAAQ;KAC1B;MACmB;KACT;;EAGpB"}
1
+ {"version":3,"file":"client.mjs","names":[],"sources":["../../src/tanstack-query/client.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\n\"use client\";\n\nimport { isDevelopment } from \"@stryke/env\";\nimport type { StormURLInterface } from \"@stryke/url\";\nimport type { QueryClient } from \"@tanstack/react-query\";\nimport { QueryClientProvider } from \"@tanstack/react-query\";\nimport {\n createTRPCClient,\n httpBatchStreamLink,\n loggerLink\n} from \"@trpc/client\";\nimport type { AnyTRPCRouter } from \"@trpc/server\";\nimport { createTRPCContext } from \"@trpc/tanstack-react-query\";\nimport { useState } from \"react\";\nimport { getTRPCServerUrl, transformer } from \"../shared\";\n\n/**\n * Create a TRPC Tanstack Query client.\n *\n * @returns The TRPC Tanstack Query client\n */\nexport function createTRPCTanstackQueryClient<TRouter extends AnyTRPCRouter>(\n baseUrl: string | StormURLInterface,\n queryClient: QueryClient\n) {\n const { TRPCProvider, useTRPC } = createTRPCContext<TRouter>();\n\n return {\n useTRPCTanstackQuery: useTRPC,\n TRPCTanstackQueryProvider: (props: { children: React.ReactNode }) => {\n const { children } = props;\n\n const [trpcClient] = useState(() =>\n createTRPCClient<TRouter>({\n links: [\n loggerLink({\n enabled: op =>\n isDevelopment ||\n (op.direction === \"down\" && op.result instanceof Error)\n }),\n httpBatchStreamLink<TRouter>({\n transformer,\n url: getTRPCServerUrl(baseUrl),\n headers: { \"x-trpc-source\": \"react-query\" }\n } as TRouter[\"_def\"][\"_config\"][\"$types\"])\n ]\n })\n );\n\n return (\n <TRPCProvider trpcClient={trpcClient} queryClient={queryClient}>\n <QueryClientProvider client={queryClient}>\n {children}\n </QueryClientProvider>\n </TRPCProvider>\n );\n }\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAuCA,SAAgB,8BACd,SACA,aACA;CACA,MAAM,EAAE,cAAc,YAAY,mBAA4B;AAE9D,QAAO;EACL,sBAAsB;EACtB,4BAA4B,UAAyC;GACnE,MAAM,EAAE,aAAa;GAErB,MAAM,CAAC,cAAc,eACnB,iBAA0B,EACxB,OAAO,CACL,WAAW,EACT,UAAS,OACP,iBACC,GAAG,cAAc,UAAU,GAAG,kBAAkB,OACpD,CAAC,EACF,oBAA6B;IAC3B;IACA,KAAK,iBAAiB,QAAQ;IAC9B,SAAS,EAAE,iBAAiB,eAAe;IAC5C,CAAyC,CAC3C,EACF,CAAC,CACH;AAED,UACE,oBAAC,cAAD;IAA0B;IAAyB;cACjD,oBAAC,qBAAD;KAAqB,QAAQ;KAC1B;KACmB;IACT;;EAGpB"}
@@ -1,11 +1,12 @@
1
- const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
2
3
  const require_shared = require('../shared.cjs');
3
4
  let defu = require("defu");
4
- defu = require_rolldown_runtime.__toESM(defu);
5
- let __tanstack_react_query = require("@tanstack/react-query");
6
- let __trpc_tanstack_react_query = require("@trpc/tanstack-react-query");
5
+ defu = require_runtime.__toESM(defu);
6
+ let _tanstack_react_query = require("@tanstack/react-query");
7
+ let _trpc_tanstack_react_query = require("@trpc/tanstack-react-query");
7
8
  let react = require("react");
8
- react = require_rolldown_runtime.__toESM(react);
9
+ react = require_runtime.__toESM(react);
9
10
  let react_jsx_runtime = require("react/jsx-runtime");
10
11
  require("server-only");
11
12
 
@@ -53,14 +54,14 @@ function createTRPCTanstackQueryServer(headers, router, createContext = () => ({
53
54
  */
54
55
  const getQueryClient = (0, react.cache)(() => require_shared.createQueryClient(queryClientConfig));
55
56
  return {
56
- trpc: (0, __trpc_tanstack_react_query.createTRPCOptionsProxy)({
57
+ trpc: (0, _trpc_tanstack_react_query.createTRPCOptionsProxy)({
57
58
  router,
58
59
  queryClient: getQueryClient,
59
60
  ctx: _createContext
60
61
  }),
61
62
  HydrateClient: (props) => {
62
- return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__tanstack_react_query.HydrationBoundary, {
63
- state: (0, __tanstack_react_query.dehydrate)(getQueryClient()),
63
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_tanstack_react_query.HydrationBoundary, {
64
+ state: (0, _tanstack_react_query.dehydrate)(getQueryClient()),
64
65
  children: props.children
65
66
  });
66
67
  },
@@ -1,13 +1,11 @@
1
1
  import { MaybePromise } from "../types/src/base.cjs";
2
2
  import { AnyTRPCRouter, inferRouterContext } from "@trpc/server";
3
- import * as _trpc_tanstack_react_query0 from "@trpc/tanstack-react-query";
3
+ import * as _$_trpc_tanstack_react_query0 from "@trpc/tanstack-react-query";
4
4
  import { TRPCQueryOptions } from "@trpc/tanstack-react-query";
5
5
  import { QueryClientConfig } from "@tanstack/react-query";
6
- import * as react_jsx_runtime0 from "react/jsx-runtime";
6
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
7
7
  import React from "react";
8
-
9
8
  //#region src/tanstack-query/server.d.ts
10
-
11
9
  /**
12
10
  * Create a TRPC Tanstack Query server.
13
11
  *
@@ -39,12 +37,12 @@ import React from "react";
39
37
  * @returns An object containing the TRPC context and a component to hydrate the client state.
40
38
  */
41
39
  declare function createTRPCTanstackQueryServer<TRouter extends AnyTRPCRouter, TContext extends inferRouterContext<TRouter> = inferRouterContext<TRouter>>(headers: () => Promise<Headers>, router: TRouter, createContext?: () => MaybePromise<TContext>, queryClientConfig?: Partial<QueryClientConfig>): {
42
- trpc: _trpc_tanstack_react_query0.TRPCOptionsProxy<TRouter, {
40
+ trpc: _$_trpc_tanstack_react_query0.TRPCOptionsProxy<TRouter, {
43
41
  keyPrefix: false;
44
42
  }>;
45
43
  HydrateClient: (props: {
46
44
  children: React.ReactNode;
47
- }) => react_jsx_runtime0.JSX.Element;
45
+ }) => _$react_jsx_runtime0.JSX.Element;
48
46
  prefetch: <T extends ReturnType<TRPCQueryOptions<any>>>(queryOptions: T) => void;
49
47
  };
50
48
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.cts","names":[],"sources":["../../src/tanstack-query/server.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;AA2DA;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAgB,8CACE,gCACC,mBAAmB,WAAW,mBAAmB,yBAEnD,QAAQ,kBACf,+BACa,aAAa,+BACf,QAAQ;;;;;cA8BU,KAAA,CAAM;QAAW,kBAAA,CAAA,GAAA,CAAA;uBAS/B,WAAW,sCAChB"}
1
+ {"version":3,"file":"server.d.cts","names":[],"sources":["../../src/tanstack-query/server.tsx"],"mappings":";;;;;;;;;;;;AA2DA;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAgB,6BAAA,iBACE,aAAA,mBACC,kBAAA,CAAmB,OAAA,IAAW,kBAAA,CAAmB,OAAA,EAAA,CAElE,OAAA,QAAe,OAAA,CAAQ,OAAA,GACvB,MAAA,EAAQ,OAAA,EACR,aAAA,SAAqB,YAAA,CAAa,QAAA,GAClC,iBAAA,GAAmB,OAAA,CAAQ,iBAAA;;;;;IA8BA,QAAA,EAAU,KAAA,CAAM,SAAA;EAAA,MAAW,oBAAA,CAAA,GAAA,CAAA,OAAA;uBAS/B,UAAA,CAAW,gBAAA,QAAsB,YAAA,EACtC,CAAA;AAAA"}
@@ -1,14 +1,12 @@
1
1
  import { MaybePromise } from "../types/src/base.mjs";
2
2
  import { QueryClientConfig } from "@tanstack/react-query";
3
- import * as _trpc_tanstack_react_query0 from "@trpc/tanstack-react-query";
3
+ import * as _$_trpc_tanstack_react_query0 from "@trpc/tanstack-react-query";
4
4
  import { TRPCQueryOptions } from "@trpc/tanstack-react-query";
5
5
  import React from "react";
6
- import * as react_jsx_runtime0 from "react/jsx-runtime";
7
- import "server-only";
6
+ import * as _$react_jsx_runtime0 from "react/jsx-runtime";
8
7
  import { AnyTRPCRouter, inferRouterContext } from "@trpc/server";
9
8
 
10
9
  //#region src/tanstack-query/server.d.ts
11
-
12
10
  /**
13
11
  * Create a TRPC Tanstack Query server.
14
12
  *
@@ -40,12 +38,12 @@ import { AnyTRPCRouter, inferRouterContext } from "@trpc/server";
40
38
  * @returns An object containing the TRPC context and a component to hydrate the client state.
41
39
  */
42
40
  declare function createTRPCTanstackQueryServer<TRouter extends AnyTRPCRouter, TContext extends inferRouterContext<TRouter> = inferRouterContext<TRouter>>(headers: () => Promise<Headers>, router: TRouter, createContext?: () => MaybePromise<TContext>, queryClientConfig?: Partial<QueryClientConfig>): {
43
- trpc: _trpc_tanstack_react_query0.TRPCOptionsProxy<TRouter, {
41
+ trpc: _$_trpc_tanstack_react_query0.TRPCOptionsProxy<TRouter, {
44
42
  keyPrefix: false;
45
43
  }>;
46
44
  HydrateClient: (props: {
47
45
  children: React.ReactNode;
48
- }) => react_jsx_runtime0.JSX.Element;
46
+ }) => _$react_jsx_runtime0.JSX.Element;
49
47
  prefetch: <T extends ReturnType<TRPCQueryOptions<any>>>(queryOptions: T) => void;
50
48
  };
51
49
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.mts","names":[],"sources":["../../src/tanstack-query/server.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;AA2DA;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAgB,8CACE,gCACC,mBAAmB,WAAW,mBAAmB,yBAEnD,QAAQ,kBACf,+BACa,aAAa,+BACf,QAAQ;;;;;cA8BU,KAAA,CAAM;QAAW,kBAAA,CAAA,GAAA,CAAA;uBAS/B,WAAW,sCAChB"}
1
+ {"version":3,"file":"server.d.mts","names":[],"sources":["../../src/tanstack-query/server.tsx"],"mappings":";;;;;;;;;;;;;AA2DA;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAgB,6BAAA,iBACE,aAAA,mBACC,kBAAA,CAAmB,OAAA,IAAW,kBAAA,CAAmB,OAAA,EAAA,CAElE,OAAA,QAAe,OAAA,CAAQ,OAAA,GACvB,MAAA,EAAQ,OAAA,EACR,aAAA,SAAqB,YAAA,CAAa,QAAA,GAClC,iBAAA,GAAmB,OAAA,CAAQ,iBAAA;;;;;IA8BA,QAAA,EAAU,KAAA,CAAM,SAAA;EAAA,MAAW,oBAAA,CAAA,GAAA,CAAA,OAAA;uBAS/B,UAAA,CAAW,gBAAA,QAAsB,YAAA,EACtC,CAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"server.mjs","names":[],"sources":["../../src/tanstack-query/server.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { MaybePromise } from \"@stryke/types\";\nimport type { QueryClientConfig } from \"@tanstack/react-query\";\nimport { dehydrate, HydrationBoundary } from \"@tanstack/react-query\";\nimport type { AnyTRPCRouter, inferRouterContext } from \"@trpc/server\";\nimport type { TRPCQueryOptions } from \"@trpc/tanstack-react-query\";\nimport { createTRPCOptionsProxy } from \"@trpc/tanstack-react-query\";\nimport defu from \"defu\";\nimport React, { cache } from \"react\";\nimport \"server-only\";\nimport { createQueryClient } from \"../shared\";\n\n/**\n * Create a TRPC Tanstack Query server.\n *\n * @example\n * ```tsx title=\"app/api/trpc/route.tsx\"\n * import { createTRPCTanstackQueryServer } from \"@trpc-next/tanstack-query/server\";\n * import { z } from \"zod\";\n * import { createRouter } from \"@trpc/server\";\n *\n * const router = createRouter().query(\"hello\", {\n * input: z.object({\n * name: z.string()\n * }),\n * resolve({ input }) {\n * return `Hello, ${input.name}!`;\n * }\n * });\n *\n * const { trpc, HydrateClient } = createTRPCTanstackQueryServer({\n * router,\n * headers: async () => new Headers()\n * });\n * ```\n *\n * @param headers - A function that returns the headers for the TRPC context.\n * @param router - The TRPC router to use for the server.\n * @param createContext - A function that creates the context for the TRPC server.\n * @param queryClientConfig - Optional configuration for the Tanstack Query client.\n * @returns An object containing the TRPC context and a component to hydrate the client state.\n */\nexport function createTRPCTanstackQueryServer<\n TRouter extends AnyTRPCRouter,\n TContext extends inferRouterContext<TRouter> = inferRouterContext<TRouter>\n>(\n headers: () => Promise<Headers>,\n router: TRouter,\n createContext: () => MaybePromise<TContext> = () => ({}) as TContext,\n queryClientConfig: Partial<QueryClientConfig> = {}\n) {\n const _createContext = cache(async (): Promise<TContext> => {\n const context = await Promise.resolve(createContext());\n\n const _headers = new Headers(await headers());\n _headers.set(\"x-trpc-source\", \"rsc\");\n\n return defu(\n {\n headers: Object.fromEntries(_headers)\n },\n context\n ) as TContext;\n });\n\n /**\n * Create a stable getter for the query client that\n * will return the same client during the same request.\n */\n const getQueryClient = cache(() => createQueryClient(queryClientConfig));\n\n const trpc = createTRPCOptionsProxy({\n router,\n queryClient: getQueryClient,\n ctx: _createContext\n });\n\n return {\n trpc,\n HydrateClient: (props: { children: React.ReactNode }) => {\n const dehydratedState = dehydrate(getQueryClient());\n\n return (\n <HydrationBoundary state={dehydratedState}>\n {props.children}\n </HydrationBoundary>\n );\n },\n prefetch: <T extends ReturnType<TRPCQueryOptions<any>>>(\n queryOptions: T\n ) => {\n const queryClient = getQueryClient();\n if (queryOptions.queryKey[1]?.type === \"infinite\") {\n void queryClient.prefetchInfiniteQuery(queryOptions as any);\n } else {\n void queryClient.prefetchQuery(queryOptions);\n }\n }\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2DA,SAAgB,8BAId,SACA,QACA,uBAAqD,EAAE,GACvD,oBAAgD,EAAE,EAClD;CACA,MAAM,iBAAiB,MAAM,YAA+B;EAC1D,MAAM,UAAU,MAAM,QAAQ,QAAQ,eAAe,CAAC;EAEtD,MAAM,WAAW,IAAI,QAAQ,MAAM,SAAS,CAAC;AAC7C,WAAS,IAAI,iBAAiB,MAAM;AAEpC,SAAO,KACL,EACE,SAAS,OAAO,YAAY,SAAS,EACtC,EACD,QACD;GACD;;;;;CAMF,MAAM,iBAAiB,YAAY,kBAAkB,kBAAkB,CAAC;AAQxE,QAAO;EACL,MAPW,uBAAuB;GAClC;GACA,aAAa;GACb,KAAK;GACN,CAAC;EAIA,gBAAgB,UAAyC;AAGvD,UACE,oBAAC;IAAkB,OAHG,UAAU,gBAAgB,CAAC;cAI9C,MAAM;KACW;;EAGxB,WACE,iBACG;GACH,MAAM,cAAc,gBAAgB;AACpC,OAAI,aAAa,SAAS,IAAI,SAAS,WACrC,CAAK,YAAY,sBAAsB,aAAoB;OAE3D,CAAK,YAAY,cAAc,aAAa;;EAGjD"}
1
+ {"version":3,"file":"server.mjs","names":[],"sources":["../../src/tanstack-query/server.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { MaybePromise } from \"@stryke/types\";\nimport type { QueryClientConfig } from \"@tanstack/react-query\";\nimport { dehydrate, HydrationBoundary } from \"@tanstack/react-query\";\nimport type { AnyTRPCRouter, inferRouterContext } from \"@trpc/server\";\nimport type { TRPCQueryOptions } from \"@trpc/tanstack-react-query\";\nimport { createTRPCOptionsProxy } from \"@trpc/tanstack-react-query\";\nimport defu from \"defu\";\nimport React, { cache } from \"react\";\nimport \"server-only\";\nimport { createQueryClient } from \"../shared\";\n\n/**\n * Create a TRPC Tanstack Query server.\n *\n * @example\n * ```tsx title=\"app/api/trpc/route.tsx\"\n * import { createTRPCTanstackQueryServer } from \"@trpc-next/tanstack-query/server\";\n * import { z } from \"zod\";\n * import { createRouter } from \"@trpc/server\";\n *\n * const router = createRouter().query(\"hello\", {\n * input: z.object({\n * name: z.string()\n * }),\n * resolve({ input }) {\n * return `Hello, ${input.name}!`;\n * }\n * });\n *\n * const { trpc, HydrateClient } = createTRPCTanstackQueryServer({\n * router,\n * headers: async () => new Headers()\n * });\n * ```\n *\n * @param headers - A function that returns the headers for the TRPC context.\n * @param router - The TRPC router to use for the server.\n * @param createContext - A function that creates the context for the TRPC server.\n * @param queryClientConfig - Optional configuration for the Tanstack Query client.\n * @returns An object containing the TRPC context and a component to hydrate the client state.\n */\nexport function createTRPCTanstackQueryServer<\n TRouter extends AnyTRPCRouter,\n TContext extends inferRouterContext<TRouter> = inferRouterContext<TRouter>\n>(\n headers: () => Promise<Headers>,\n router: TRouter,\n createContext: () => MaybePromise<TContext> = () => ({}) as TContext,\n queryClientConfig: Partial<QueryClientConfig> = {}\n) {\n const _createContext = cache(async (): Promise<TContext> => {\n const context = await Promise.resolve(createContext());\n\n const _headers = new Headers(await headers());\n _headers.set(\"x-trpc-source\", \"rsc\");\n\n return defu(\n {\n headers: Object.fromEntries(_headers)\n },\n context\n ) as TContext;\n });\n\n /**\n * Create a stable getter for the query client that\n * will return the same client during the same request.\n */\n const getQueryClient = cache(() => createQueryClient(queryClientConfig));\n\n const trpc = createTRPCOptionsProxy({\n router,\n queryClient: getQueryClient,\n ctx: _createContext\n });\n\n return {\n trpc,\n HydrateClient: (props: { children: React.ReactNode }) => {\n const dehydratedState = dehydrate(getQueryClient());\n\n return (\n <HydrationBoundary state={dehydratedState}>\n {props.children}\n </HydrationBoundary>\n );\n },\n prefetch: <T extends ReturnType<TRPCQueryOptions<any>>>(\n queryOptions: T\n ) => {\n const queryClient = getQueryClient();\n if (queryOptions.queryKey[1]?.type === \"infinite\") {\n void queryClient.prefetchInfiniteQuery(queryOptions as any);\n } else {\n void queryClient.prefetchQuery(queryOptions);\n }\n }\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2DA,SAAgB,8BAId,SACA,QACA,uBAAqD,EAAE,GACvD,oBAAgD,EAAE,EAClD;CACA,MAAM,iBAAiB,MAAM,YAA+B;EAC1D,MAAM,UAAU,MAAM,QAAQ,QAAQ,eAAe,CAAC;EAEtD,MAAM,WAAW,IAAI,QAAQ,MAAM,SAAS,CAAC;AAC7C,WAAS,IAAI,iBAAiB,MAAM;AAEpC,SAAO,KACL,EACE,SAAS,OAAO,YAAY,SAAS,EACtC,EACD,QACD;GACD;;;;;CAMF,MAAM,iBAAiB,YAAY,kBAAkB,kBAAkB,CAAC;AAQxE,QAAO;EACL,MAPW,uBAAuB;GAClC;GACA,aAAa;GACb,KAAK;GACN,CAGK;EACJ,gBAAgB,UAAyC;AAGvD,UACE,oBAAC,mBAAD;IAAmB,OAHG,UAAU,gBAAgB,CAGP;cACtC,MAAM;IACW;;EAGxB,WACE,iBACG;GACH,MAAM,cAAc,gBAAgB;AACpC,OAAI,aAAa,SAAS,IAAI,SAAS,WACrC,CAAK,YAAY,sBAAsB,aAAoB;OAE3D,CAAK,YAAY,cAAc,aAAa;;EAGjD"}