@genesislcap/foundation-forms 10.3.1 → 11.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/dist/dts/form.d.ts +5 -2
  2. package/dist/dts/form.d.ts.map +1 -1
  3. package/dist/dts/jsonforms/json-forms.d.ts.map +1 -1
  4. package/dist/dts/jsonforms/renderers/BooleanControlRenderer.d.ts +1 -1
  5. package/dist/dts/jsonforms/renderers/BooleanControlRenderer.d.ts.map +1 -1
  6. package/dist/dts/jsonforms/renderers/ConnectedMultiselectControlRenderer.d.ts +1 -1
  7. package/dist/dts/jsonforms/renderers/ConnectedMultiselectControlRenderer.d.ts.map +1 -1
  8. package/dist/dts/jsonforms/renderers/ConnectedSelectControlRenderer.d.ts.map +1 -1
  9. package/dist/dts/jsonforms/renderers/ControlWrapperRenderer.d.ts.map +1 -1
  10. package/dist/dts/jsonforms/testers/isOneOfNumber.d.ts.map +1 -1
  11. package/dist/dts/types.d.ts +11 -2
  12. package/dist/dts/types.d.ts.map +1 -1
  13. package/dist/dts/utils/translation.d.ts +1 -0
  14. package/dist/dts/utils/translation.d.ts.map +1 -1
  15. package/dist/dts/utils/validation.d.ts +2 -1
  16. package/dist/dts/utils/validation.d.ts.map +1 -1
  17. package/dist/esm/form.js +6 -6
  18. package/dist/esm/form.styles.js +0 -1
  19. package/dist/esm/form.template.js +0 -1
  20. package/dist/esm/index.federated.js +0 -1
  21. package/dist/esm/index.js +0 -1
  22. package/dist/esm/jsonforms/json-forms.js +1 -7
  23. package/dist/esm/jsonforms/renderers/BooleanControlRenderer.js +1 -2
  24. package/dist/esm/jsonforms/renderers/ConnectedMultiselectControlRenderer.js +0 -1
  25. package/dist/esm/jsonforms/renderers/ConnectedSelectControlRenderer.js +0 -2
  26. package/dist/esm/jsonforms/renderers/ControlWrapperRenderer.js +0 -3
  27. package/dist/esm/jsonforms/renderers/DateControlRenderer.js +1 -2
  28. package/dist/esm/jsonforms/renderers/EnumControlRenderer.js +0 -1
  29. package/dist/esm/jsonforms/renderers/InvisibleControlRenderer.js +0 -1
  30. package/dist/esm/jsonforms/renderers/LayoutRenderer.js +0 -1
  31. package/dist/esm/jsonforms/renderers/LayoutVertical2ColumnsRenderer.js +0 -1
  32. package/dist/esm/jsonforms/renderers/NumberControlRenderer.js +1 -2
  33. package/dist/esm/jsonforms/renderers/RenderersRanks.js +0 -1
  34. package/dist/esm/jsonforms/renderers/StringControlRenderer.js +0 -1
  35. package/dist/esm/jsonforms/renderers/dispatch-renderer.js +0 -1
  36. package/dist/esm/jsonforms/testers/isDate.js +0 -1
  37. package/dist/esm/jsonforms/testers/isInvisible.js +0 -1
  38. package/dist/esm/jsonforms/testers/isOneOfBoolean.js +0 -1
  39. package/dist/esm/jsonforms/testers/isOneOfEnum.js +0 -1
  40. package/dist/esm/jsonforms/testers/isOneOfNumber.js +0 -1
  41. package/dist/esm/jsonforms/testers/isOneOfOptionMultiselect.js +0 -1
  42. package/dist/esm/jsonforms/testers/optionIs.js +0 -1
  43. package/dist/esm/types.js +0 -1
  44. package/dist/esm/utils/index.js +0 -1
  45. package/dist/esm/utils/translation.js +1 -1
  46. package/dist/esm/utils/validation.js +2 -2
  47. package/dist/foundation-forms.api.json +42 -38
  48. package/dist/foundation-forms.d.ts +17 -2
  49. package/docs/api/foundation-forms.form.data.md +1 -1
  50. package/docs/api/foundation-forms.form.md +1 -1
  51. package/docs/api/foundation-forms.genesiserrortranslator.md +1 -0
  52. package/docs/api/foundation-forms.md +1 -1
  53. package/docs/api/foundation-forms.rendererentry.md +1 -0
  54. package/docs/api/{foundation-forms.logger.md → foundation-forms.renderers.md} +4 -3
  55. package/docs/api/foundation-forms.uischema.md +1 -0
  56. package/docs/api/foundation-forms.uischemaelement.md +1 -0
  57. package/docs/api/foundation-forms.uischemaelementoptions.md +4 -0
  58. package/docs/api/foundation-forms.uischemaelementtype.md +1 -0
  59. package/docs/api-report.md +12 -3
  60. package/package.json +14 -9
  61. package/dist/1.0.0.remoteEntry.js +0 -1
  62. package/dist/160.160.124ed2c5959b53210cbd.js +0 -2
  63. package/dist/160.190aff29e1d6cef60fa941e3ecd169b4.js.map +0 -1
  64. package/dist/173.173.72404a543fa554805856.js +0 -317
  65. package/dist/173.a84be468354229f21219811743190e9a.js.map +0 -1
  66. package/dist/191.191.0325d5c8852ae4921bad.js +0 -2
  67. package/dist/191.cfb3865153509ec434d0ee1d06702e06.js.map +0 -1
  68. package/dist/211.211.9bb272a936b1d1e91e6d.js +0 -2
  69. package/dist/211.618f438c5ae26e2eca20a00121c574ad.js.map +0 -1
  70. package/dist/259.259.2d238ae3cf8d8bdeba08.js +0 -2
  71. package/dist/259.550ac263c3f91b2416d000cf2f255ebb.js.map +0 -1
  72. package/dist/338.338.3768ac40171574445388.js +0 -3
  73. package/dist/338.338.3768ac40171574445388.js.LICENSE.txt +0 -1
  74. package/dist/338.b80e69713f188e86ac3d235966bec4b6.js.map +0 -1
  75. package/dist/623.2132bb44d6962138c26ec8c716abfb8c.js.map +0 -1
  76. package/dist/623.623.4eb55ef851cb4acfb42d.js +0 -3
  77. package/dist/623.623.4eb55ef851cb4acfb42d.js.LICENSE.txt +0 -4
  78. package/dist/730.730.d1c0de79e754bac881cb.js +0 -2
  79. package/dist/730.a7dfb868a3009f72a7daed20f5f05cd4.js.map +0 -1
  80. package/dist/755.755.001fb1761db3672074d3.js +0 -2
  81. package/dist/755.ef9ff39a1d56dfd14bc47cd9f22cfc9f.js.map +0 -1
  82. package/dist/817.817.09800be1f64f8771bf91.js +0 -2
  83. package/dist/817.c03de73750c9e91e022d445f10572b93.js.map +0 -1
  84. package/dist/914.3464d6aedd1272b9a7824381f8c69dc5.js.map +0 -1
  85. package/dist/914.914.9c2af15b0145e5b35752.js +0 -3
  86. package/dist/914.914.9c2af15b0145e5b35752.js.LICENSE.txt +0 -4
  87. package/dist/dashboard.json +0 -1
  88. package/dist/esm/form.js.map +0 -1
  89. package/dist/esm/form.styles.js.map +0 -1
  90. package/dist/esm/form.template.js.map +0 -1
  91. package/dist/esm/index.federated.js.map +0 -1
  92. package/dist/esm/index.js.map +0 -1
  93. package/dist/esm/jsonforms/json-forms.js.map +0 -1
  94. package/dist/esm/jsonforms/renderers/BooleanControlRenderer.js.map +0 -1
  95. package/dist/esm/jsonforms/renderers/ConnectedMultiselectControlRenderer.js.map +0 -1
  96. package/dist/esm/jsonforms/renderers/ConnectedSelectControlRenderer.js.map +0 -1
  97. package/dist/esm/jsonforms/renderers/ControlWrapperRenderer.js.map +0 -1
  98. package/dist/esm/jsonforms/renderers/DateControlRenderer.js.map +0 -1
  99. package/dist/esm/jsonforms/renderers/EnumControlRenderer.js.map +0 -1
  100. package/dist/esm/jsonforms/renderers/InvisibleControlRenderer.js.map +0 -1
  101. package/dist/esm/jsonforms/renderers/LayoutRenderer.js.map +0 -1
  102. package/dist/esm/jsonforms/renderers/LayoutVertical2ColumnsRenderer.js.map +0 -1
  103. package/dist/esm/jsonforms/renderers/NumberControlRenderer.js.map +0 -1
  104. package/dist/esm/jsonforms/renderers/RenderersRanks.js.map +0 -1
  105. package/dist/esm/jsonforms/renderers/StringControlRenderer.js.map +0 -1
  106. package/dist/esm/jsonforms/renderers/dispatch-renderer.js.map +0 -1
  107. package/dist/esm/jsonforms/testers/isDate.js.map +0 -1
  108. package/dist/esm/jsonforms/testers/isInvisible.js.map +0 -1
  109. package/dist/esm/jsonforms/testers/isOneOfBoolean.js.map +0 -1
  110. package/dist/esm/jsonforms/testers/isOneOfEnum.js.map +0 -1
  111. package/dist/esm/jsonforms/testers/isOneOfNumber.js.map +0 -1
  112. package/dist/esm/jsonforms/testers/isOneOfOptionMultiselect.js.map +0 -1
  113. package/dist/esm/jsonforms/testers/optionIs.js.map +0 -1
  114. package/dist/esm/types.js.map +0 -1
  115. package/dist/esm/utils/index.js.map +0 -1
  116. package/dist/esm/utils/translation.js.map +0 -1
  117. package/dist/esm/utils/validation.js.map +0 -1
  118. package/dist/favicon.ico +0 -0
  119. package/dist/foundation-forms.iife.min.js +0 -28
  120. package/dist/foundation-forms.js +0 -30840
  121. package/dist/foundation-forms.min.js +0 -26
  122. package/dist/foundationForms.76da734dcb8b5804415dc15f81837c4e.js.map +0 -1
  123. package/dist/index.ejs +0 -23
  124. package/dist/index.html +0 -18
  125. package/dist/info.ejs +0 -13
  126. package/dist/main.3c0082e87729584525356a6468a82555.js.map +0 -1
  127. package/dist/main.8584b1425d55f4af99a6.js +0 -2
  128. package/dist/npm.ajv.213.0edf0dee76a3e8e16fa5.js +0 -8
  129. package/dist/npm.ajv.a70ac538476d2b86b0c95c3cddc46db2.js.map +0 -1
  130. package/dist/npm.analytics.343.c50e91b7d34234ff5598.js +0 -2
  131. package/dist/npm.analytics.9350473da68aa7584e1ffd2293d7eb64.js.map +0 -1
  132. package/dist/npm.consola.713.0a877d79045b2ced4b28.js +0 -2
  133. package/dist/npm.consola.b723f5d54df2d007a63f167647d0db4f.js.map +0 -1
  134. package/dist/npm.finos.690.a9cbfbb544d61a77cb75.js +0 -2
  135. package/dist/npm.finos.d24836382e0fd4c82511da38f1e2d712.js.map +0 -1
  136. package/dist/npm.jsonforms.832.135f578bfa3e3426340a.js +0 -2
  137. package/dist/npm.jsonforms.d742a744d53545575dc0f741c7f95a16.js.map +0 -1
  138. package/dist/npm.lodash.913.2f761568d7b7540de80a.js +0 -2
  139. package/dist/npm.lodash.a3a76c8fca5de460b782c77b99c930c9.js.map +0 -1
  140. package/dist/npm.microsoft.127.c2ce55cc34c771dd0e4f.js +0 -1469
  141. package/dist/npm.microsoft.127.c2ce55cc34c771dd0e4f.js.LICENSE.txt +0 -14
  142. package/dist/npm.microsoft.351f8b8b5cd6f2b1872524cc47c1a893.js.map +0 -1
  143. package/dist/npm.rxjs.271.c9ec2153535d20987f67.js +0 -2
  144. package/dist/npm.rxjs.d2fed746c0fef18592a807dcc82cba1c.js.map +0 -1
  145. package/dist/npm.uri-js.2c30a8d9b49ce1474de4ba46d0bc69a6.js.map +0 -1
  146. package/dist/npm.uri-js.415.4ffa54936c8e552b506d.js +0 -3
  147. package/dist/npm.uri-js.415.4ffa54936c8e552b506d.js.LICENSE.txt +0 -1
  148. package/dist/remoteEntry.js +0 -2
  149. package/dist/serve.json +0 -3
@@ -1 +0,0 @@
1
- {"version":3,"sources":["webpack://@genesislcap/foundation-forms/../node_modules/@finos/fdc3/dist/fdc3.esm.js"],"names":["OpenError","ResolveError","ChannelError","asyncGeneratorStep","gen","resolve","reject","_next","_throw","key","arg","info","value","error","done","Promise","then","_asyncToGenerator","fn","self","this","args","arguments","apply","err","undefined","module","runtime_1","runtime","exports","undefined$1","Op","Object","prototype","hasOwn","hasOwnProperty","$Symbol","Symbol","iteratorSymbol","iterator","asyncIteratorSymbol","asyncIterator","toStringTagSymbol","toStringTag","define","obj","defineProperty","enumerable","configurable","writable","wrap","innerFn","outerFn","tryLocsList","protoGenerator","Generator","generator","create","context","Context","_invoke","state","GenStateSuspendedStart","method","GenStateExecuting","Error","GenStateCompleted","doneResult","delegate","delegateResult","maybeInvokeDelegate","ContinueSentinel","sent","_sent","dispatchException","abrupt","record","tryCatch","type","GenStateSuspendedYield","makeInvokeMethod","call","GeneratorFunction","GeneratorFunctionPrototype","IteratorPrototype","getProto","getPrototypeOf","NativeIteratorPrototype","values","Gp","defineIteratorMethods","forEach","AsyncIterator","PromiseImpl","invoke","result","__await","unwrapped","previousPromise","callInvokeWithMethodAndArg","TypeError","resultName","next","nextLoc","pushTryEntry","locs","entry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","iterable","iteratorMethod","isNaN","length","i","constructor","displayName","isGeneratorFunction","genFun","ctor","name","mark","setPrototypeOf","__proto__","awrap","async","iter","toString","keys","object","reverse","pop","skipTempReset","prev","charAt","slice","stop","rootRecord","rval","exception","handle","loc","caught","hasCatch","hasFinally","finallyEntry","complete","finish","thrown","delegateYield","regeneratorRuntime","accidentalStrictMode","Function","UnavailableError","TimeoutError","UnexpectedError","rejectIfNoGlobal","f","window","fdc3","throwIfNoGlobal","fdc3Ready","_ref","_callee","waitForMs","_context","timeout","setTimeout","addEventListener","clearTimeout","once","_x","findIntent","intent","findIntentsByContext","raiseIntent","app","raiseIntentForContext","addIntentListener","handler","joinChannel","channelId","getOrCreateChannel","getInfo","ContextTypes","versionIsAtLeast","metadata","version","comparison","a","b","aVerArr","split","map","Number","bVerArr","index","Math","max","e","console","compareVersionNumbers","fdc3Version","Intents"],"mappings":"6IAIA,IAAIA,EASAC,EAQAC,EAQJ,SAASC,EAAmBC,EAAKC,EAASC,EAAQC,EAAOC,EAAQC,EAAKC,GACpE,IACE,IAAIC,EAAOP,EAAIK,GAAKC,GAChBE,EAAQD,EAAKC,KACnB,CAAE,MAAOC,GAEP,YADAP,EAAOO,EAET,CAEIF,EAAKG,KACPT,EAAQO,GAERG,QAAQV,QAAQO,GAAOI,KAAKT,EAAOC,EAEvC,CAEA,SAASS,EAAkBC,GACzB,OAAO,WACL,IAAIC,EAAOC,KACPC,EAAOC,UACX,OAAO,IAAIP,SAAQ,SAAUV,EAASC,GACpC,IAAIF,EAAMc,EAAGK,MAAMJ,EAAME,GAEzB,SAASd,EAAMK,GACbT,EAAmBC,EAAKC,EAASC,EAAQC,EAAOC,EAAQ,OAAQI,EAClE,CAEA,SAASJ,EAAOgB,GACdrB,EAAmBC,EAAKC,EAASC,EAAQC,EAAOC,EAAQ,QAASgB,EACnE,CAEAjB,OAAMkB,EACR,GACF,CACF,C,mGAzDA,SAAWzB,GACTA,EAAuB,YAAI,cAC3BA,EAAyB,cAAI,gBAC7BA,EAAsB,WAAI,aAC1BA,EAA+B,oBAAI,qBACpC,CALD,CAKGA,IAAcA,EAAY,CAAC,IAI9B,SAAWC,GACTA,EAA0B,YAAI,cAC9BA,EAAkC,oBAAI,sBACtCA,EAA8B,gBAAI,iBACnC,CAJD,CAIGA,IAAiBA,EAAe,CAAC,IAIpC,SAAWC,GACTA,EAA6B,eAAI,iBACjCA,EAA2B,aAAI,eAC/BA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AQ,EAAGA,EAAQC,KAAKC,IAAIP,EAAQ9E,OAAQkF,EAAQlF,QAASmF,IAAS,CAG7E,GAAIA,IAAUL,EAAQ9E,QAAU8E,EAAQK,GAASD,EAAQC,GACvD,OAAQ,EACH,GAAIA,IAAUD,EAAQlF,QAAU8E,EAAQK,GAASD,EAAQC,GAC9D,OAAO,CAEX,CAEA,OAAO,CACT,CAAE,MAAOG,GAEP,OADAC,QAAQjM,MAAM,oCAAqCgM,GAC5C,IACT,CACF,CAYmBE,CAAsBf,EAASgB,YAAaf,GAC7D,OAAsB,OAAfC,EAAsB,KAAOA,GAAc,CACpD,GAIA,SAAWJ,GACTA,EAAsB,QAAI,eAC1BA,EAA0B,YAAI,mBAC9BA,EAAsB,QAAI,eAC1BA,EAAyB,WAAI,kBAC7BA,EAA2B,aAAI,oBAC/BA,EAAwB,UAAI,iBAC5BA,EAAuB,SAAI,eAC5B,CARD,CAQGA,IAAiBA,EAAe,CAAC,IAuRpC,IAgNImB,GAEJ,SAAWA,GACTA,EAAmB,UAAI,YACvBA,EAAmB,UAAI,YACvBA,EAAmB,UAAI,YACvBA,EAAqB,YAAI,cACzBA,EAAmB,UAAI,YACvBA,EAAkB,SAAI,WACtBA,EAAwB,eAAI,iBAC5BA,EAAsB,aAAI,cAC3B,CATD,CASGA,IAAYA,EAAU,CAAC,G","file":"npm.finos.690.xxxxxxxxxxxxxxxxxxxx.js","sourcesContent":["/**\r\n * SPDX-License-Identifier: Apache-2.0\r\n * Copyright 2019 FINOS FDC3 contributors - see NOTICE file\r\n */\nvar OpenError;\n\n(function (OpenError) {\n OpenError[\"AppNotFound\"] = \"AppNotFound\";\n OpenError[\"ErrorOnLaunch\"] = \"ErrorOnLaunch\";\n OpenError[\"AppTimeout\"] = \"AppTimeout\";\n OpenError[\"ResolverUnavailable\"] = \"ResolverUnavailable\";\n})(OpenError || (OpenError = {}));\n\nvar ResolveError;\n\n(function (ResolveError) {\n ResolveError[\"NoAppsFound\"] = \"NoAppsFound\";\n ResolveError[\"ResolverUnavailable\"] = \"ResolverUnavailable\";\n ResolveError[\"ResolverTimeout\"] = \"ResolverTimeout\";\n})(ResolveError || (ResolveError = {}));\n\nvar ChannelError;\n\n(function (ChannelError) {\n ChannelError[\"NoChannelFound\"] = \"NoChannelFound\";\n ChannelError[\"AccessDenied\"] = \"AccessDenied\";\n ChannelError[\"CreationFailed\"] = \"CreationFailed\";\n})(ChannelError || (ChannelError = {}));\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\n\nfunction _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}\n\nfunction createCommonjsModule(fn, module) {\n\treturn module = { exports: {} }, fn(module, module.exports), module.exports;\n}\n\nvar runtime_1 = createCommonjsModule(function (module) {\n/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar runtime = (function (exports) {\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined$1; // More compressible than void 0.\n var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\n function define(obj, key, value) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n return obj[key];\n }\n try {\n // IE 8 has a broken Object.defineProperty that only works on DOM objects.\n define({}, \"\");\n } catch (err) {\n define = function(obj, key, value) {\n return obj[key] = value;\n };\n }\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []);\n\n // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n\n return generator;\n }\n exports.wrap = wrap;\n\n // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there's no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don't have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n function tryCatch(fn, obj, arg) {\n try {\n return { type: \"normal\", arg: fn.call(obj, arg) };\n } catch (err) {\n return { type: \"throw\", arg: err };\n }\n }\n\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n\n // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n var ContinueSentinel = {};\n\n // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n\n // This is a polyfill for %IteratorPrototype% for environments that\n // don't natively support it.\n var IteratorPrototype = {};\n IteratorPrototype[iteratorSymbol] = function () {\n return this;\n };\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n if (NativeIteratorPrototype &&\n NativeIteratorPrototype !== Op &&\n hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype =\n Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;\n GeneratorFunctionPrototype.constructor = GeneratorFunction;\n GeneratorFunction.displayName = define(\n GeneratorFunctionPrototype,\n toStringTagSymbol,\n \"GeneratorFunction\"\n );\n\n // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function(method) {\n define(prototype, method, function(arg) {\n return this._invoke(method, arg);\n });\n });\n }\n\n exports.isGeneratorFunction = function(genFun) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor\n ? ctor === GeneratorFunction ||\n // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n : false;\n };\n\n exports.mark = function(genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n define(genFun, toStringTagSymbol, \"GeneratorFunction\");\n }\n genFun.prototype = Object.create(Gp);\n return genFun;\n };\n\n // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, \"__await\")` to determine if the yielded value is\n // meant to be awaited.\n exports.awrap = function(arg) {\n return { __await: arg };\n };\n\n function AsyncIterator(generator, PromiseImpl) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (record.type === \"throw\") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n if (value &&\n typeof value === \"object\" &&\n hasOwn.call(value, \"__await\")) {\n return PromiseImpl.resolve(value.__await).then(function(value) {\n invoke(\"next\", value, resolve, reject);\n }, function(err) {\n invoke(\"throw\", err, resolve, reject);\n });\n }\n\n return PromiseImpl.resolve(value).then(function(unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise<{value,done}> result for the\n // current iteration.\n result.value = unwrapped;\n resolve(result);\n }, function(error) {\n // If a rejected Promise was yielded, throw the rejection back\n // into the async generator function so it can be handled there.\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new PromiseImpl(function(resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise =\n // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(\n callInvokeWithMethodAndArg,\n // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg\n ) : callInvokeWithMethodAndArg();\n }\n\n // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n AsyncIterator.prototype[asyncIteratorSymbol] = function () {\n return this;\n };\n exports.AsyncIterator = AsyncIterator;\n\n // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {\n if (PromiseImpl === void 0) PromiseImpl = Promise;\n\n var iter = new AsyncIterator(\n wrap(innerFn, outerFn, self, tryLocsList),\n PromiseImpl\n );\n\n return exports.isGeneratorFunction(outerFn)\n ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function(result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n\n // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === \"next\") {\n // Setting context._sent for legacy support of Babel's\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n\n } else if (context.method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n\n } else if (context.method === \"return\") {\n context.abrupt(\"return\", context.arg);\n }\n\n state = GenStateExecuting;\n\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done\n ? GenStateCompleted\n : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n context.method = \"throw\";\n context.arg = record.arg;\n }\n }\n };\n }\n\n // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (method === undefined$1) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === \"throw\") {\n // Note: [\"return\"] must be used for ES3 parsing compatibility.\n if (delegate.iterator[\"return\"]) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = \"return\";\n context.arg = undefined$1;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === \"throw\") {\n // If maybeInvokeDelegate(context) changed context.method from\n // \"return\" to \"throw\", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = \"throw\";\n context.arg = new TypeError(\n \"The iterator does not provide a 'throw' method\");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === \"throw\") {\n context.method = \"throw\";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (! info) {\n context.method = \"throw\";\n context.arg = new TypeError(\"iterator result is not an object\");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value;\n\n // Resume execution at the desired location (see delegateYield).\n context.next = delegate.nextLoc;\n\n // If context.method was \"throw\" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was \"next\", forget context.arg since it has been\n // \"consumed\" by the delegate iterator. If context.method was\n // \"return\", allow the original .return call to continue in the\n // outer generator.\n if (context.method !== \"return\") {\n context.method = \"next\";\n context.arg = undefined$1;\n }\n\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n }\n\n // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n context.delegate = null;\n return ContinueSentinel;\n }\n\n // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n defineIteratorMethods(Gp);\n\n define(Gp, toStringTagSymbol, \"Generator\");\n\n // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn't happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n Gp[iteratorSymbol] = function() {\n return this;\n };\n\n Gp.toString = function() {\n return \"[object Generator]\";\n };\n\n function pushTryEntry(locs) {\n var entry = { tryLoc: locs[0] };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{ tryLoc: \"root\" }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n exports.keys = function(object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n\n // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n\n // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1, next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined$1;\n next.done = true;\n\n return next;\n };\n\n return next.next = next;\n }\n }\n\n // Return an iterator with no values.\n return { next: doneResult };\n }\n exports.values = values;\n\n function doneResult() {\n return { value: undefined$1, done: true };\n }\n\n Context.prototype = {\n constructor: Context,\n\n reset: function(skipTempReset) {\n this.prev = 0;\n this.next = 0;\n // Resetting context._sent for legacy support of Babel's\n // function.sent implementation.\n this.sent = this._sent = undefined$1;\n this.done = false;\n this.delegate = null;\n\n this.method = \"next\";\n this.arg = undefined$1;\n\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === \"t\" &&\n hasOwn.call(this, name) &&\n !isNaN(+name.slice(1))) {\n this[name] = undefined$1;\n }\n }\n }\n },\n\n stop: function() {\n this.done = true;\n\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n\n dispatchException: function(exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = \"next\";\n context.arg = undefined$1;\n }\n\n return !! caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === \"root\") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle(\"end\");\n }\n\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n\n abrupt: function(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev &&\n hasOwn.call(entry, \"finallyLoc\") &&\n this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry &&\n (type === \"break\" ||\n type === \"continue\") &&\n finallyEntry.tryLoc <= arg &&\n arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = \"next\";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n\n complete: function(record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n\n if (record.type === \"break\" ||\n record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = this.arg = record.arg;\n this.method = \"return\";\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n\n finish: function(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n\n \"catch\": function(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n\n // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n throw new Error(\"illegal catch attempt\");\n },\n\n delegateYield: function(iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === \"next\") {\n // Deliberately forget the last sent value so that we don't\n // accidentally pass it on to the delegate.\n this.arg = undefined$1;\n }\n\n return ContinueSentinel;\n }\n };\n\n // Regardless of whether this script is executing as a CommonJS module\n // or not, return the runtime object so that we can declare the variable\n // regeneratorRuntime in the outer scope, which allows this module to be\n // injected easily by `bin/regenerator --include-runtime script.js`.\n return exports;\n\n}(\n // If this script is executing as a CommonJS module, use module.exports\n // as the regeneratorRuntime namespace. Otherwise create a new empty\n // object. Either way, the resulting object will be used to initialize\n // the regeneratorRuntime variable at the top of this file.\n module.exports \n));\n\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n // This module should not be running in strict mode, so the above\n // assignment should always work unless something is misconfigured. Just\n // in case runtime.js accidentally runs in strict mode, we can escape\n // strict mode using a global Function call. This could conceivably fail\n // if a Content Security Policy forbids using Function, but in that case\n // the proper solution is to fix the accidental strict mode problem. If\n // you've misconfigured your bundler to force strict mode and applied a\n // CSP to forbid Function, and you're not willing to fix either of those\n // problems, please detail your unique predicament in a GitHub issue.\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n}\n});\n\nvar DEFAULT_TIMEOUT = 5000;\nvar UnavailableError = /*#__PURE__*/new Error('FDC3 DesktopAgent not available at `window.fdc3`.');\nvar TimeoutError = /*#__PURE__*/new Error('Timed out waiting for `fdc3Ready` event.');\nvar UnexpectedError = /*#__PURE__*/new Error('`fdc3Ready` event fired, but `window.fdc3` not set to DesktopAgent.');\n\nfunction rejectIfNoGlobal(f) {\n return window.fdc3 ? f() : Promise.reject(UnavailableError);\n}\n\nfunction throwIfNoGlobal(f) {\n if (!window.fdc3) {\n throw UnavailableError;\n }\n\n return f();\n}\n\nvar fdc3Ready = /*#__PURE__*/function () {\n var _ref = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(waitForMs) {\n return runtime_1.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (waitForMs === void 0) {\n waitForMs = DEFAULT_TIMEOUT;\n }\n\n return _context.abrupt(\"return\", new Promise(function (resolve, reject) {\n // if the global is already available resolve immediately\n if (window.fdc3) {\n resolve();\n } else {\n // if its not available setup a timeout to return a rejected promise\n var timeout = setTimeout(function () {\n return window.fdc3 ? resolve() : reject(TimeoutError);\n }, waitForMs); // listen for the fdc3Ready event\n\n window.addEventListener('fdc3Ready', function () {\n clearTimeout(timeout);\n window.fdc3 ? resolve() : reject(UnexpectedError);\n }, {\n once: true\n });\n }\n }));\n\n case 2:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n\n return function fdc3Ready(_x) {\n return _ref.apply(this, arguments);\n };\n}();\nfunction open(app, context) {\n return rejectIfNoGlobal(function () {\n return window.fdc3.open(app, context);\n });\n}\nfunction findIntent(intent, context) {\n return rejectIfNoGlobal(function () {\n return window.fdc3.findIntent(intent, context);\n });\n}\nfunction findIntentsByContext(context) {\n return rejectIfNoGlobal(function () {\n return window.fdc3.findIntentsByContext(context);\n });\n}\nfunction broadcast(context) {\n throwIfNoGlobal(function () {\n return window.fdc3.broadcast(context);\n });\n}\nfunction raiseIntent(intent, context, app) {\n return rejectIfNoGlobal(function () {\n return window.fdc3.raiseIntent(intent, context, app);\n });\n}\nfunction raiseIntentForContext(context, app) {\n return rejectIfNoGlobal(function () {\n return window.fdc3.raiseIntentForContext(context, app);\n });\n}\nfunction addIntentListener(intent, handler) {\n return throwIfNoGlobal(function () {\n return window.fdc3.addIntentListener(intent, handler);\n });\n}\nfunction addContextListener(contextTypeOrHandler, handler) {\n if (typeof contextTypeOrHandler !== 'function') {\n return throwIfNoGlobal(function () {\n return window.fdc3.addContextListener(contextTypeOrHandler, handler);\n });\n } else {\n return throwIfNoGlobal(function () {\n return window.fdc3.addContextListener(contextTypeOrHandler);\n });\n }\n}\nfunction getSystemChannels() {\n return rejectIfNoGlobal(function () {\n return window.fdc3.getSystemChannels();\n });\n}\nfunction joinChannel(channelId) {\n return rejectIfNoGlobal(function () {\n return window.fdc3.joinChannel(channelId);\n });\n}\nfunction getOrCreateChannel(channelId) {\n return rejectIfNoGlobal(function () {\n return window.fdc3.getOrCreateChannel(channelId);\n });\n}\nfunction getCurrentChannel() {\n return rejectIfNoGlobal(function () {\n return window.fdc3.getCurrentChannel();\n });\n}\nfunction leaveCurrentChannel() {\n return rejectIfNoGlobal(function () {\n return window.fdc3.leaveCurrentChannel();\n });\n}\nfunction getInfo() {\n return throwIfNoGlobal(function () {\n return window.fdc3.getInfo();\n });\n}\n/**\r\n * Compare numeric semver version number strings (in the form `1.2.3`).\r\n *\r\n * Returns `-1` if the first argument is a lower version number than the second,\r\n * `1` if the first argument is greater than the second, 0 if the arguments are\r\n * equal and `null` if an error occurred during the comparison.\r\n *\r\n * @param a\r\n * @param b\r\n */\n\nvar compareVersionNumbers = function compareVersionNumbers(a, b) {\n try {\n var aVerArr = a.split('.').map(Number);\n var bVerArr = b.split('.').map(Number);\n\n for (var index = 0; index < Math.max(aVerArr.length, bVerArr.length); index++) {\n /* If one version number has more digits and the other does not, and they are otherwise equal,\r\n assume the longer is greater. E.g. 1.1.1 > 1.1 */\n if (index === aVerArr.length || aVerArr[index] < bVerArr[index]) {\n return -1;\n } else if (index === bVerArr.length || aVerArr[index] > bVerArr[index]) {\n return 1;\n }\n }\n\n return 0;\n } catch (e) {\n console.error('Failed to compare version strings', e);\n return null;\n }\n};\n/**\r\n * Check if the FDC3 version in an ImplementationMetadata object is greater than\r\n * or equal to the supplied numeric semver version number string (in the form `1.2.3`).\r\n *\r\n * Returns a boolean or null if an error occurred while comparing the version numbers.\r\n *\r\n * @param metadata\r\n * @param version\r\n */\n\nvar versionIsAtLeast = function versionIsAtLeast(metadata, version) {\n var comparison = compareVersionNumbers(metadata.fdc3Version, version);\n return comparison === null ? null : comparison >= 0 ? true : false;\n};\n\nvar ContextTypes;\n\n(function (ContextTypes) {\n ContextTypes[\"Contact\"] = \"fdc3.contact\";\n ContextTypes[\"ContactList\"] = \"fdc3.contactList\";\n ContextTypes[\"Country\"] = \"fdc3.country\";\n ContextTypes[\"Instrument\"] = \"fdc3.instrument\";\n ContextTypes[\"Organization\"] = \"fdc3.organization\";\n ContextTypes[\"Portfolio\"] = \"fdc3.portfolio\";\n ContextTypes[\"Position\"] = \"fdc3.position\";\n})(ContextTypes || (ContextTypes = {}));\n\n// To parse this data:\n//\n// import { Convert, Context, Contact, ContactList, Instrument, InstrumentList, Country, Organization, Portfolio, Position } from \"./file\";\n//\n// const context = Convert.toContext(json);\n// const contact = Convert.toContact(json);\n// const contactList = Convert.toContactList(json);\n// const instrument = Convert.toInstrument(json);\n// const instrumentList = Convert.toInstrumentList(json);\n// const country = Convert.toCountry(json);\n// const organization = Convert.toOrganization(json);\n// const portfolio = Convert.toPortfolio(json);\n// const position = Convert.toPosition(json);\n//\n// These functions will throw an error if the JSON doesn't\n// match the expected interface, even if the JSON is valid.\n// Converts JSON strings to/from your types\n// and asserts the results of JSON.parse at runtime\nvar Convert = /*#__PURE__*/function () {\n function Convert() {}\n\n Convert.toContext = function toContext(json) {\n return cast(JSON.parse(json), r('Context'));\n };\n\n Convert.contextToJson = function contextToJson(value) {\n return JSON.stringify(uncast(value, r('Context')), null, 2);\n };\n\n Convert.toContact = function toContact(json) {\n return cast(JSON.parse(json), r('Contact'));\n };\n\n Convert.contactToJson = function contactToJson(value) {\n return JSON.stringify(uncast(value, r('Contact')), null, 2);\n };\n\n Convert.toContactList = function toContactList(json) {\n return cast(JSON.parse(json), r('ContactList'));\n };\n\n Convert.contactListToJson = function contactListToJson(value) {\n return JSON.stringify(uncast(value, r('ContactList')), null, 2);\n };\n\n Convert.toInstrument = function toInstrument(json) {\n return cast(JSON.parse(json), r('Instrument'));\n };\n\n Convert.instrumentToJson = function instrumentToJson(value) {\n return JSON.stringify(uncast(value, r('Instrument')), null, 2);\n };\n\n Convert.toInstrumentList = function toInstrumentList(json) {\n return cast(JSON.parse(json), r('InstrumentList'));\n };\n\n Convert.instrumentListToJson = function instrumentListToJson(value) {\n return JSON.stringify(uncast(value, r('InstrumentList')), null, 2);\n };\n\n Convert.toCountry = function toCountry(json) {\n return cast(JSON.parse(json), r('Country'));\n };\n\n Convert.countryToJson = function countryToJson(value) {\n return JSON.stringify(uncast(value, r('Country')), null, 2);\n };\n\n Convert.toOrganization = function toOrganization(json) {\n return cast(JSON.parse(json), r('Organization'));\n };\n\n Convert.organizationToJson = function organizationToJson(value) {\n return JSON.stringify(uncast(value, r('Organization')), null, 2);\n };\n\n Convert.toPortfolio = function toPortfolio(json) {\n return cast(JSON.parse(json), r('Portfolio'));\n };\n\n Convert.portfolioToJson = function portfolioToJson(value) {\n return JSON.stringify(uncast(value, r('Portfolio')), null, 2);\n };\n\n Convert.toPosition = function toPosition(json) {\n return cast(JSON.parse(json), r('Position'));\n };\n\n Convert.positionToJson = function positionToJson(value) {\n return JSON.stringify(uncast(value, r('Position')), null, 2);\n };\n\n return Convert;\n}();\n\nfunction invalidValue(typ, val, key) {\n if (key === void 0) {\n key = '';\n }\n\n if (key) {\n throw Error(\"Invalid value for key \\\"\" + key + \"\\\". Expected type \" + JSON.stringify(typ) + \" but got \" + JSON.stringify(val));\n }\n\n throw Error(\"Invalid value \" + JSON.stringify(val) + \" for type \" + JSON.stringify(typ));\n}\n\nfunction jsonToJSProps(typ) {\n if (typ.jsonToJS === undefined) {\n var map = {};\n typ.props.forEach(function (p) {\n return map[p.json] = {\n key: p.js,\n typ: p.typ\n };\n });\n typ.jsonToJS = map;\n }\n\n return typ.jsonToJS;\n}\n\nfunction jsToJSONProps(typ) {\n if (typ.jsToJSON === undefined) {\n var map = {};\n typ.props.forEach(function (p) {\n return map[p.js] = {\n key: p.json,\n typ: p.typ\n };\n });\n typ.jsToJSON = map;\n }\n\n return typ.jsToJSON;\n}\n\nfunction transform(val, typ, getProps, key) {\n if (key === void 0) {\n key = '';\n }\n\n function transformPrimitive(typ, val) {\n if (typeof typ === typeof val) return val;\n return invalidValue(typ, val, key);\n }\n\n function transformUnion(typs, val) {\n // val must validate against one typ in typs\n var l = typs.length;\n\n for (var i = 0; i < l; i++) {\n var _typ = typs[i];\n\n try {\n return transform(val, _typ, getProps);\n } catch (_) {}\n }\n\n return invalidValue(typs, val);\n }\n\n function transformEnum(cases, val) {\n if (cases.indexOf(val) !== -1) return val;\n return invalidValue(cases, val);\n }\n\n function transformArray(typ, val) {\n // val must be an array with no invalid elements\n if (!Array.isArray(val)) return invalidValue('array', val);\n return val.map(function (el) {\n return transform(el, typ, getProps);\n });\n }\n\n function transformDate(val) {\n if (val === null) {\n return null;\n }\n\n var d = new Date(val);\n\n if (isNaN(d.valueOf())) {\n return invalidValue('Date', val);\n }\n\n return d;\n }\n\n function transformObject(props, additional, val) {\n if (val === null || typeof val !== 'object' || Array.isArray(val)) {\n return invalidValue('object', val);\n }\n\n var result = {};\n Object.getOwnPropertyNames(props).forEach(function (key) {\n var prop = props[key];\n var v = Object.prototype.hasOwnProperty.call(val, key) ? val[key] : undefined;\n result[prop.key] = transform(v, prop.typ, getProps, prop.key);\n });\n Object.getOwnPropertyNames(val).forEach(function (key) {\n if (!Object.prototype.hasOwnProperty.call(props, key)) {\n result[key] = transform(val[key], additional, getProps, key);\n }\n });\n return result;\n }\n\n if (typ === 'any') return val;\n\n if (typ === null) {\n if (val === null) return val;\n return invalidValue(typ, val);\n }\n\n if (typ === false) return invalidValue(typ, val);\n\n while (typeof typ === 'object' && typ.ref !== undefined) {\n typ = typeMap[typ.ref];\n }\n\n if (Array.isArray(typ)) return transformEnum(typ, val);\n\n if (typeof typ === 'object') {\n return typ.hasOwnProperty('unionMembers') ? transformUnion(typ.unionMembers, val) : typ.hasOwnProperty('arrayItems') ? transformArray(typ.arrayItems, val) : typ.hasOwnProperty('props') ? transformObject(getProps(typ), typ.additional, val) : invalidValue(typ, val);\n } // Numbers can be parsed by Date but shouldn't be.\n\n\n if (typ === Date && typeof val !== 'number') return transformDate(val);\n return transformPrimitive(typ, val);\n}\n\nfunction cast(val, typ) {\n return transform(val, typ, jsonToJSProps);\n}\n\nfunction uncast(val, typ) {\n return transform(val, typ, jsToJSONProps);\n}\n\nfunction a(typ) {\n return {\n arrayItems: typ\n };\n}\n\nfunction u() {\n for (var _len = arguments.length, typs = new Array(_len), _key = 0; _key < _len; _key++) {\n typs[_key] = arguments[_key];\n }\n\n return {\n unionMembers: typs\n };\n}\n\nfunction o(props, additional) {\n return {\n props: props,\n additional: additional\n };\n}\n\nfunction m(additional) {\n return {\n props: [],\n additional: additional\n };\n}\n\nfunction r(name) {\n return {\n ref: name\n };\n}\n\nvar typeMap = {\n Context: /*#__PURE__*/o([{\n json: 'id',\n js: 'id',\n typ: /*#__PURE__*/u(undefined, /*#__PURE__*/m(''))\n }, {\n json: 'name',\n js: 'name',\n typ: /*#__PURE__*/u(undefined, '')\n }, {\n json: 'type',\n js: 'type',\n typ: ''\n }], 'any'),\n ContactList: /*#__PURE__*/o([{\n json: 'contacts',\n js: 'contacts',\n typ: /*#__PURE__*/a( /*#__PURE__*/r('Contact'))\n }, {\n json: 'type',\n js: 'type',\n typ: ''\n }, {\n json: 'id',\n js: 'id',\n typ: /*#__PURE__*/u(undefined, /*#__PURE__*/m(''))\n }, {\n json: 'name',\n js: 'name',\n typ: /*#__PURE__*/u(undefined, '')\n }], 'any'),\n Contact: /*#__PURE__*/o([{\n json: 'id',\n js: 'id',\n typ: /*#__PURE__*/r('ContactID')\n }, {\n json: 'type',\n js: 'type',\n typ: ''\n }, {\n json: 'name',\n js: 'name',\n typ: /*#__PURE__*/u(undefined, '')\n }], 'any'),\n ContactID: /*#__PURE__*/o([{\n json: 'email',\n js: 'email',\n typ: /*#__PURE__*/u(undefined, '')\n }, {\n json: 'FDS_ID',\n js: 'FDS_ID',\n typ: /*#__PURE__*/u(undefined, '')\n }], ''),\n InstrumentList: /*#__PURE__*/o([{\n json: 'instruments',\n js: 'instruments',\n typ: /*#__PURE__*/a( /*#__PURE__*/r('Instrument'))\n }, {\n json: 'type',\n js: 'type',\n typ: ''\n }, {\n json: 'id',\n js: 'id',\n typ: /*#__PURE__*/u(undefined, /*#__PURE__*/m(''))\n }, {\n json: 'name',\n js: 'name',\n typ: /*#__PURE__*/u(undefined, '')\n }], 'any'),\n Instrument: /*#__PURE__*/o([{\n json: 'id',\n js: 'id',\n typ: /*#__PURE__*/r('InstrumentID')\n }, {\n json: 'type',\n js: 'type',\n typ: ''\n }, {\n json: 'name',\n js: 'name',\n typ: /*#__PURE__*/u(undefined, '')\n }], 'any'),\n InstrumentID: /*#__PURE__*/o([{\n json: 'BBG',\n js: 'BBG',\n typ: /*#__PURE__*/u(undefined, '')\n }, {\n json: 'CUSIP',\n js: 'CUSIP',\n typ: /*#__PURE__*/u(undefined, '')\n }, {\n json: 'FDS_ID',\n js: 'FDS_ID',\n typ: /*#__PURE__*/u(undefined, '')\n }, {\n json: 'FIGI',\n js: 'FIGI',\n typ: /*#__PURE__*/u(undefined, '')\n }, {\n json: 'ISIN',\n js: 'ISIN',\n typ: /*#__PURE__*/u(undefined, '')\n }, {\n json: 'PERMID',\n js: 'PERMID',\n typ: /*#__PURE__*/u(undefined, '')\n }, {\n json: 'RIC',\n js: 'RIC',\n typ: /*#__PURE__*/u(undefined, '')\n }, {\n json: 'SEDOL',\n js: 'SEDOL',\n typ: /*#__PURE__*/u(undefined, '')\n }, {\n json: 'ticker',\n js: 'ticker',\n typ: /*#__PURE__*/u(undefined, '')\n }], ''),\n Country: /*#__PURE__*/o([{\n json: 'id',\n js: 'id',\n typ: /*#__PURE__*/r('CountryID')\n }, {\n json: 'type',\n js: 'type',\n typ: ''\n }, {\n json: 'name',\n js: 'name',\n typ: /*#__PURE__*/u(undefined, '')\n }], 'any'),\n CountryID: /*#__PURE__*/o([{\n json: 'ISOALPHA2',\n js: 'ISOALPHA2',\n typ: /*#__PURE__*/u(undefined, '')\n }, {\n json: 'ISOALPHA3',\n js: 'ISOALPHA3',\n typ: /*#__PURE__*/u(undefined, '')\n }], ''),\n Organization: /*#__PURE__*/o([{\n json: 'id',\n js: 'id',\n typ: /*#__PURE__*/r('OrganizationID')\n }, {\n json: 'type',\n js: 'type',\n typ: ''\n }, {\n json: 'name',\n js: 'name',\n typ: /*#__PURE__*/u(undefined, '')\n }], 'any'),\n OrganizationID: /*#__PURE__*/o([{\n json: 'FDS_ID',\n js: 'FDS_ID',\n typ: /*#__PURE__*/u(undefined, '')\n }, {\n json: 'LEI',\n js: 'LEI',\n typ: /*#__PURE__*/u(undefined, '')\n }, {\n json: 'PERMID',\n js: 'PERMID',\n typ: /*#__PURE__*/u(undefined, '')\n }], ''),\n Portfolio: /*#__PURE__*/o([{\n json: 'positions',\n js: 'positions',\n typ: /*#__PURE__*/a( /*#__PURE__*/r('Position'))\n }, {\n json: 'type',\n js: 'type',\n typ: ''\n }, {\n json: 'id',\n js: 'id',\n typ: /*#__PURE__*/u(undefined, /*#__PURE__*/m(''))\n }, {\n json: 'name',\n js: 'name',\n typ: /*#__PURE__*/u(undefined, '')\n }], 'any'),\n Position: /*#__PURE__*/o([{\n json: 'holding',\n js: 'holding',\n typ: 3.14\n }, {\n json: 'instrument',\n js: 'instrument',\n typ: /*#__PURE__*/r('Instrument')\n }, {\n json: 'type',\n js: 'type',\n typ: ''\n }, {\n json: 'id',\n js: 'id',\n typ: /*#__PURE__*/u(undefined, /*#__PURE__*/m(''))\n }, {\n json: 'name',\n js: 'name',\n typ: /*#__PURE__*/u(undefined, '')\n }], 'any')\n};\n\nvar Intents;\n\n(function (Intents) {\n Intents[\"StartCall\"] = \"StartCall\";\n Intents[\"StartChat\"] = \"StartChat\";\n Intents[\"ViewChart\"] = \"ViewChart\";\n Intents[\"ViewContact\"] = \"ViewContact\";\n Intents[\"ViewQuote\"] = \"ViewQuote\";\n Intents[\"ViewNews\"] = \"ViewNews\";\n Intents[\"ViewInstrument\"] = \"ViewInstrument\";\n Intents[\"ViewAnalysis\"] = \"ViewAnalysis\";\n})(Intents || (Intents = {}));\n\nexport { ChannelError, ContextTypes, Convert, Intents, OpenError, ResolveError, addContextListener, addIntentListener, broadcast, compareVersionNumbers, fdc3Ready, findIntent, findIntentsByContext, getCurrentChannel, getInfo, getOrCreateChannel, getSystemChannels, joinChannel, leaveCurrentChannel, open, raiseIntent, raiseIntentForContext, versionIsAtLeast };\n//# sourceMappingURL=fdc3.esm.js.map\n"],"sourceRoot":""}
@@ -1,2 +0,0 @@
1
- (self.webpackChunk_genesislcap_foundation_forms=self.webpackChunk_genesislcap_foundation_forms||[]).push([[832],{724:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ADD_CELL:()=>qo,ADD_DEFAULT_DATA:()=>ea,ADD_RENDERER:()=>Ho,ADD_UI_SCHEMA:()=>Jo,Actions:()=>Aa,Draft4:()=>te,Generate:()=>$o,Helpers:()=>Ca,INIT:()=>wo,NOT_APPLICABLE:()=>Ze,Paths:()=>_r,REMOVE_CELL:()=>Wo,REMOVE_DEFAULT_DATA:()=>ta,REMOVE_RENDERER:()=>Fo,REMOVE_UI_SCHEMA:()=>zo,Resolve:()=>Pr,RuleEffect:()=>re,Runtime:()=>Rr,SET_AJV:()=>Uo,SET_CONFIG:()=>Bo,SET_LOCALE:()=>Xo,SET_SCHEMA:()=>Go,SET_TRANSLATOR:()=>Yo,SET_UISCHEMA:()=>Ko,SET_VALIDATION_MODE:()=>Qo,Test:()=>kt,UPDATE_CORE:()=>No,UPDATE_DATA:()=>Vo,UPDATE_ERRORS:()=>xo,UPDATE_I18N:()=>Zo,VALIDATE:()=>ko,and:()=>ct,categorizationHasCategory:()=>Vt,cellReducer:()=>ue,clearAllIds:()=>Co,compose:()=>sr,composePaths:()=>sr,composeWithUi:()=>lr,computeLabel:()=>Nr,configReducer:()=>ye,controlDefaultProps:()=>ro,convertToValidClassName:()=>jr,coreReducer:()=>je,createAjv:()=>Po,createCleanLabel:()=>Mr,createCombinatorRenderInfos:()=>Eo,createControlElement:()=>Ro,createDefaultValue:()=>Vr,createId:()=>bo,createLabelDescriptionFrom:()=>$r,decode:()=>pr,defaultDataReducer:()=>Ue,defaultErrorTranslator:()=>We,defaultJsonFormsI18nState:()=>ze,defaultMapDispatchToControlProps:()=>ho,defaultMapStateToEnumCellProps:()=>mo,defaultTranslator:()=>qe,deriveLabelForUISchemaElement:()=>Je,deriveTypes:()=>Ir,encode:()=>cr,enumToEnumOptionMapper:()=>kr,errorAt:()=>we,errorsAt:()=>Re,evalEnablement:()=>vr,evalVisibility:()=>gr,extractAjv:()=>Pe,extractData:()=>De,extractDefaultData:()=>Ve,extractSchema:()=>Te,extractUiSchema:()=>Ie,fetchErrorTranslator:()=>Xe,fetchLocale:()=>Ke,fetchTranslator:()=>Qe,findAllRefs:()=>dr,findMatchingUISchema:()=>Ft,findUISchema:()=>Wt,formatErrorMessage:()=>Dr,formatIs:()=>at,generateDefaultUISchema:()=>Mo,generateJsonSchema:()=>ee,getAjv:()=>er,getCells:()=>or,getCombinedErrorMessage:()=>Be,getConfig:()=>zt,getControlPath:()=>_e,getData:()=>Xt,getDefaultData:()=>tr,getErrorAt:()=>Bt,getErrorTranslator:()=>Qt,getFirstPrimitiveProp:()=>So,getI18nKey:()=>Fe,getI18nKeyPrefix:()=>He,getI18nKeyPrefixBySchema:()=>xe,getLocale:()=>Gt,getRenderers:()=>rr,getSchema:()=>Yt,getSubErrorsAt:()=>Jt,getTranslator:()=>Kt,getUISchemas:()=>ar,getUiSchema:()=>Zt,hasCategory:()=>Ut,hasEnableRule:()=>br,hasShowRule:()=>Or,hasType:()=>Tr,i18nReducer:()=>Ge,init:()=>ra,isAllOfControl:()=>ht,isAnyOfControl:()=>yt,isArrayObjectControl:()=>Rt,isBooleanControl:()=>ut,isCategorization:()=>wt,isCategory:()=>Nt,isControl:()=>et,isDateControl:()=>St,isDateTimeControl:()=>Dt,isDescriptionHidden:()=>xr,isEnabled:()=>Cr,isEnumControl:()=>gt,isGroup:()=>ae,isInherentlyEnabled:()=>Sr,isIntegerControl:()=>Ot,isInternationalized:()=>oe,isLabelable:()=>le,isLabeled:()=>ce,isLayout:()=>se,isMultiLineControl:()=>Ct,isNumberControl:()=>bt,isNumberFormatControl:()=>$t,isObjectArray:()=>Tt,isObjectArrayControl:()=>It,isObjectArrayWithNesting:()=>_t,isObjectControl:()=>ft,isOneOfControl:()=>Et,isOneOfEnumControl:()=>vt,isPrimitiveArrayControl:()=>Lt,isRangeControl:()=>Mt,isScopable:()=>ne,isScoped:()=>ie,isStringControl:()=>At,isTimeControl:()=>jt,isVisible:()=>Ar,iterateSchema:()=>Io,jsonFormsReducerConfig:()=>qt,layoutDefaultProps:()=>Yr,mapDispatchToArrayControlProps:()=>Qr,mapDispatchToCellProps:()=>fo,mapDispatchToControlProps:()=>qr,mapDispatchToMultiEnumProps:()=>Xr,mapStateToAllOfProps:()=>ao,mapStateToAnyOfProps:()=>so,mapStateToArrayControlProps:()=>Kr,mapStateToArrayLayoutProps:()=>io,mapStateToCellProps:()=>co,mapStateToCombinatorRendererProps:()=>oo,mapStateToControlProps:()=>Fr,mapStateToControlWithDetailProps:()=>Gr,mapStateToDispatchCellProps:()=>po,mapStateToEnumControlProps:()=>Wr,mapStateToJsonFormsRendererProps:()=>to,mapStateToLabelProps:()=>lo,mapStateToLayoutProps:()=>eo,mapStateToMasterListItemProps:()=>zr,mapStateToMultiEnumControlProps:()=>Jr,mapStateToOneOfEnumCellProps:()=>uo,mapStateToOneOfEnumControlProps:()=>Br,mapStateToOneOfProps:()=>no,moveDown:()=>de,moveUp:()=>me,not:()=>xt,oneOfToEnumOptionMapper:()=>Hr,optionIs:()=>nt,or:()=>pt,rankWith:()=>mt,registerCell:()=>pa,registerDefaultData:()=>aa,registerRenderer:()=>ca,registerUISchema:()=>ha,removeId:()=>Ao,rendererReducer:()=>Ye,resolveData:()=>mr,resolveSchema:()=>ur,schemaMatches:()=>tt,schemaSubPathMatches:()=>rt,schemaTypeIs:()=>ot,scopeEndIs:()=>lt,scopeEndsWith:()=>it,setAjv:()=>na,setConfig:()=>ua,setLocale:()=>Ea,setReadonly:()=>Do,setSchema:()=>ga,setTranslator:()=>va,setUISchema:()=>ba,setValidationMode:()=>fa,showAsRequired:()=>Ur,subErrorsAt:()=>Ne,toDataPath:()=>ir,toDataPathSegments:()=>nr,transformPathToI18nPrefix:()=>ke,uiTypeIs:()=>st,uischemaRegistryReducer:()=>Ht,unregisterCell:()=>ma,unregisterDefaultData:()=>sa,unregisterRenderer:()=>da,unregisterUISchema:()=>ya,unsetReadonly:()=>To,update:()=>ia,updateCore:()=>oa,updateErrors:()=>la,updateI18n:()=>Oa,validate:()=>Ee,withIncreasedRank:()=>dt});var o=r(6834),a=r.n(o),s=r(4340),n=r.n(s),i=r(2635),l=r.n(i),c=r(7905),p=r.n(c),m=r(6349),d=r.n(m),u=r(9381),f=r.n(u),h=r(4626),y=r.n(h),E=r(3795),g=r.n(E),v=r(6330),O=r.n(v),b=r(9793),A=r.n(b),C=r(3839),S=r.n(C),j=r(340),D=r.n(j),T=r(3913),I=r.n(T),P=r(1788),_=r.n(P),R=r(2972),L=r.n(R),M=r(7236),$=r.n(M),w=r(520),N=r.n(w),U=r(6334),V=r.n(U),x=r(6901),k=r.n(x),H=r(6786),F=r.n(H),q=r(9717),W=r.n(q),B=r(3973),J=r.n(B),z=r(2308),G=r.n(z),K=r(6817),Q=r.n(K);const X="additionalProperties",Y="required";class Z{constructor(e){this.findOption=e,this.schemaObject=e=>{const t=this.properties(e),r={type:"object",properties:t,additionalProperties:this.findOption(t)(X)},o=this.findOption(t)(Y);return o.length>0&&(r.required=o),r},this.properties=e=>Object.keys(e).reduce(((t,r)=>(t[r]=this.property(e[r]),t)),{}),this.property=e=>{switch(typeof e){case"string":return{type:"string"};case"boolean":return{type:"boolean"};case"number":return Number.isInteger(e)?{type:"integer"}:{type:"number"};case"object":return null==e?{type:"null"}:this.schemaObjectOrArray(e);default:return{}}},this.schemaObjectOrArray=e=>e instanceof Array?this.schemaArray(e):this.schemaObject(e),this.schemaArray=e=>{if(e.length>0){const t=((e,t)=>{const r={};return e.filter((e=>{const o=t(e);return!r.hasOwnProperty(o)&&(r[o]=!0,!0)}))})(e.map(this.property),(e=>JSON.stringify(e)));return 1===t.length?{type:"array",items:t[0]}:{type:"array",items:{oneOf:t}}}return{type:"array",items:{}}}}}const ee=(e,t={})=>new Z((e=>r=>{switch(r){case X:return!t.hasOwnProperty(X)||t[X];case Y:return t.hasOwnProperty(Y)?t[Y](e):Object.keys(e);default:return}})).schemaObject(e),te={id:"http://json-schema.org/draft-04/schema#",$schema:"http://json-schema.org/draft-04/schema#",description:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}};var re;!function(e){e.HIDE="HIDE",e.SHOW="SHOW",e.ENABLE="ENABLE",e.DISABLE="DISABLE"}(re||(re={}));const oe=e=>"object"==typeof e&&null!==e&&"string"==typeof e.i18n,ae=e=>"Group"===e.type,se=e=>void 0!==e.elements,ne=e=>!!e&&"object"==typeof e,ie=e=>ne(e)&&"string"==typeof e.scope,le=e=>!!e&&"object"==typeof e,ce=e=>le(e)&&["string","boolean"].includes(typeof e.label),pe=(e,t,r)=>{const o=t+r;if(o<0||o>=e.length)return;const a=[t,o].sort(((e,t)=>e-t));e.splice(a[0],2,e[a[1]],e[a[0]])},me=(e,t)=>{pe(e,t,-1)},de=(e,t)=>{pe(e,t,1)},ue=(e=[],{type:t,tester:r,cell:o})=>{switch(t){case qo:return e.concat([{tester:r,cell:o}]);case Wo:return e.filter((e=>e.tester!==r));default:return e}},fe={restrict:!1,trim:!1,showUnfocusedDescription:!1,hideRequiredAsterisk:!1},he=(e={})=>d()({},fe,e),ye=(e=he(),t)=>t.type===Bo?he(t.config):e,Ee=(e,t)=>{if(void 0===e)return[];return e(t)?[]:e.errors},ge={data:{},schema:{},uischema:void 0,errors:[],validator:void 0,ajv:void 0,validationMode:"ValidateAndShow",additionalErrors:[]},ve=(e,t)=>((t.hasOwnProperty("id")||t.hasOwnProperty("$id"))&&e.removeSchema(t),e),Oe=(e,t)=>{if(t){if(be(t.options))return t.options.ajv;if(void 0!==t.options&&S()(t.options.compile))return t.options}return e.ajv?t?.schema?ve(e.ajv,t.schema):e.ajv:Po()},be=e=>!!e&&void 0!==e.ajv,Ae=(e,t)=>t&&Ce(t.options)?t.options.validationMode:e.validationMode,Ce=e=>!!e&&void 0!==e.validationMode,Se=(e,t)=>{return t&&((r=t.options)&&void 0!==r.additionalErrors)?t.options.additionalErrors:e.additionalErrors;var r},je=(e=ge,t)=>{switch(t.type){case wo:{const r=Oe(e,t),o=Ae(e,t),a="NoValidation"===o?void 0:r.compile(t.schema),s=Ee(a,t.data),n=Se(e,t);return{...e,data:t.data,schema:t.schema,uischema:t.uischema,additionalErrors:n,errors:s,validator:a,ajv:r,validationMode:o}}case No:{const r=Oe(e,t),o=Ae(e,t);let a=e.validator,s=e.errors;e.schema!==t.schema||e.validationMode!==o||e.ajv!==r?(a="NoValidation"===o?void 0:r.compile(t.schema),s=Ee(a,t.data)):e.data!==t.data&&(s=Ee(a,t.data));const n=Se(e,t);return e.data!==t.data||e.schema!==t.schema||e.uischema!==t.uischema||e.ajv!==r||e.errors!==s||e.validator!==a||e.validationMode!==o||e.additionalErrors!==n?{...e,data:t.data,schema:t.schema,uischema:t.uischema,ajv:r,errors:A()(s,e.errors)?e.errors:s,validator:a,validationMode:o,additionalErrors:n}:e}case Uo:{const r=t.ajv,o="NoValidation"===e.validationMode?void 0:r.compile(e.schema),a=Ee(o,e.data);return{...e,validator:o,errors:a}}case Go:{const r=t.schema&&e.ajv&&"NoValidation"!==e.validationMode?ve(e.ajv,t.schema).compile(t.schema):e.validator,o=Ee(r,e.data);return{...e,validator:r,schema:t.schema,errors:o}}case Ko:return{...e,uischema:t.uischema};case Vo:if(void 0===t.path||null===t.path)return e;if(""===t.path){const r=t.updater(f()(e.data)),o=Ee(e.validator,r);return{...e,data:r,errors:o}}{const r=g()(e.data,t.path),o=t.updater(f()(r)),a=y()(t.path,o,void 0===e.data?{}:e.data),s=Ee(e.validator,a);return{...e,data:a,errors:s}}case xo:return{...e,errors:t.errors};case Qo:if(e.validationMode===t.validationMode)return e;if("NoValidation"===t.validationMode){const r=Ee(void 0,e.data);return{...e,errors:r,validationMode:t.validationMode}}if("NoValidation"===e.validationMode){const r=ve(e.ajv,e.schema).compile(e.schema),o=Ee(r,e.data);return{...e,validator:r,errors:o,validationMode:t.validationMode}}return{...e,validationMode:t.validationMode};default:return e}},De=e=>g()(e,"data"),Te=e=>g()(e,"schema"),Ie=e=>g()(e,"uischema"),Pe=e=>g()(e,"ajv"),_e=e=>{const t=e.dataPath;if(t)return t.replace(/\//g,".").substr(1);var r=e.instancePath;r=r.replace(/\//g,".");const o=(e=>{switch(e.keyword){case"required":case"dependencies":return e.params.missingProperty;case"additionalProperties":return e.params.additionalProperty;default:return}})(e);return void 0===o||r.endsWith(o)||(r=`${r}.${o}`),r=r.replace(/^./,"")},Re=(e,t,r)=>o=>{const a=O()(o,(e=>"oneOf"===e.keyword||"anyOf"===e.keyword)).map((e=>_e(e)));return O()(o,(o=>{if(-1!==Me.indexOf(o.keyword))return!1;const s=_e(o);let n=r(s);const i=o.parentSchema;return n&&!Le(i)&&-1!==a.findIndex((t=>e.startsWith(t)))&&(n=n&&A()(i,t)),n}))},Le=e=>"object"===e?.type||!!e?.properties,Me=["additionalProperties","allOf","anyOf","oneOf"],$e=(e,t,r)=>o=>{const a=o.errors??[],s=o.additionalErrors??[];return Re(e,t,r)("ValidateAndHide"===o.validationMode?s:[...a,...s])},we=(e,t)=>$e(e,t,(t=>t===e)),Ne=(e,t)=>$e(e,t,(t=>t.startsWith(e))),Ue=(e=[],t)=>{switch(t.type){case ea:return e.concat([{schemaPath:t.schemaPath,data:t.data}]);case ta:return e.filter((e=>e.schemaPath!==t.schemaPath));default:return e}},Ve=e=>e,xe=(e,t)=>oe(t)?t.i18n:e?.i18n??void 0,ke=e=>e?.split(".").filter((e=>!/^\d+$/.test(e))).join(".")||"root",He=(e,t,r)=>xe(e,t)??ke(r),Fe=(e,t,r,o)=>`${He(e,t,r)}.${o}`,qe=(e,t)=>t,We=(e,t,r)=>{const o=t(Fe(e.parentSchema,r,_e(e),`error.${e.keyword}`),void 0,{error:e});if(void 0!==o)return o;const a=t(`error.${e.keyword}`,void 0,{error:e});if(void 0!==a)return a;const s=t(e.message,void 0,{error:e});return void 0!==s?s:"required"===e.keyword&&e.message?.startsWith("must have required property")?t("is a required property","is a required property",{error:e}):e.message},Be=(e,t,r,o,a,s)=>{if(e.length>0&&r){const t=Fe(o,a,s,"error.custom"),n=r(t,void 0,{schema:o,uischema:a,path:s,errors:e});if(void 0!==n)return n}return Dr(e.map((e=>t(e,r,a))))},Je=(e,t)=>{if(!1===e.label)return;if((void 0===e.label||null===e.label||!0===e.label)&&!oe(e))return;const r="string"==typeof e.label?e.label:JSON.stringify(e.label),o=xe(void 0,e);return t("string"==typeof o?`${o}.label`:r,r,{uischema:e})},ze={locale:"en",translate:qe,translateError:We},Ge=(e=ze,t)=>{switch(t.type){case Zo:{const r=t.locale??ze.locale,o=t.translator??ze.translate,a=t.errorTranslator??ze.translateError;return r!==e.locale||o!==e.translate||a!==e.translateError?{...e,locale:r,translate:o,translateError:a}:e}case Yo:return{...e,translate:t.translator??qe,translateError:t.errorTranslator??We};case Xo:return{...e,locale:t.locale??navigator.languages[0]};default:return e}},Ke=e=>{if(void 0!==e)return e.locale},Qe=e=>void 0===e?qe:e.translate,Xe=e=>void 0===e?We:e.translateError,Ye=(e=[],t)=>{switch(t.type){case Ho:return e.concat([{tester:t.tester,renderer:t.renderer}]);case Fo:return e.filter((e=>e.tester!==t.tester));default:return e}},Ze=-1,et=e=>!a()(e)&&void 0!==e.scope,tt=e=>(t,r,o)=>{if(a()(t)||!et(t))return!1;if(a()(r))return!1;const s=t.scope;if(a()(s))return!1;let n=r;return Tr(r,"object")&&(n=ur(r,s,o?.rootSchema)),void 0!==n&&e(n,o?.rootSchema)},rt=(e,t)=>(r,o,s)=>{if(a()(r)||!et(r))return!1;const n=r.scope;let i=o;return Tr(o,"object")&&(i=ur(o,n,s?.rootSchema)),i=g()(i,e),void 0!==i&&t(i,s?.rootSchema)},ot=e=>tt((t=>!a()(t)&&Tr(t,e))),at=e=>tt((t=>!a()(t)&&t.format===e&&Tr(t,"string"))),st=e=>t=>!a()(t)&&t.type===e,nt=(e,t)=>r=>{if(a()(r))return!1;const o=r.options;return!a()(o)&&o[e]===t},it=e=>t=>!(a()(e)||!et(t))&&_()(t.scope,e),lt=e=>t=>{if(a()(e)||!et(t))return!1;const r=t.scope;return!a()(r)&&L()(r.split("/"))===e},ct=(...e)=>(t,r,o)=>e.reduce(((e,a)=>e&&a(t,r,o)),!0),pt=(...e)=>(t,r,o)=>e.reduce(((e,a)=>e||a(t,r,o)),!1),mt=(e,t)=>(r,o,a)=>t(r,o,a)?e:Ze,dt=(e,t)=>(r,o,a)=>{const s=t(r,o,a);return s===Ze?Ze:s+e},ut=ct(st("Control"),ot("boolean")),ft=ct(st("Control"),ot("object")),ht=ct(st("Control"),tt((e=>e.hasOwnProperty("allOf")))),yt=ct(st("Control"),tt((e=>e.hasOwnProperty("anyOf")))),Et=ct(st("Control"),tt((e=>e.hasOwnProperty("oneOf")))),gt=ct(st("Control"),pt(tt((e=>e.hasOwnProperty("enum"))),tt((e=>e.hasOwnProperty("const"))))),vt=ct(st("Control"),tt((e=>e.hasOwnProperty("oneOf")&&e.oneOf.every((e=>void 0!==e.const))))),Ot=ct(st("Control"),ot("integer")),bt=ct(st("Control"),ot("number")),At=ct(st("Control"),ot("string")),Ct=ct(st("Control"),nt("multi",!0)),St=ct(st("Control"),pt(at("date"),nt("format","date"))),jt=ct(st("Control"),pt(at("time"),nt("format","time"))),Dt=ct(st("Control"),pt(at("date-time"),nt("format","date-time"))),Tt=ct(tt(((e,t)=>Tr(e,"array")&&!Array.isArray(ur(e,"items",t)))),rt("items",((e,t)=>{const r=e.$ref?ur(t,e.$ref,t):e;return Tr(r,"object")}))),It=ct(st("Control"),Tt),Pt=(e,t,r)=>{if($()(e))return N()(e,((e,o)=>e||Pt(o,t,r)),!1);if(t(e))return!0;if(e.$ref){const o=ur(r,e.$ref,r);if(o&&!o.$ref)return Pt(o,t,r)}return e.items?Pt(e.items,t,r):!!e.properties&&N()(V()(e.properties),((e,[o,a])=>e||Pt(a,t,r)),!1)},_t=(e,t,r)=>{if(!st("Control")(e,t,r))return!1;const o=e.scope,a=ur(t,o,r?.rootSchema??t);let s=0;if(void 0!==a&&void 0!==a.items){if(Pt(a.items,(e=>e!==t&&(void 0===e.$ref&&(!(!e.anyOf&&!e.oneOf)||(!(!Tr(e,"object")||(s++,2!==s))||!!Tr(e,"array"))))),r?.rootSchema))return!0;if(e.options&&e.options.detail){if("string"==typeof e.options.detail)return"DEFAULT"!==e.options.detail.toUpperCase();if("object"==typeof e.options.detail&&e.options.detail.type)return!0}}return!1},Rt=It,Lt=ct(st("Control"),tt(((e,t)=>0!==Ir(e).length&&!Array.isArray(ur(e,"items",t)))),rt("items",((e,t)=>{const r=e.$ref?ur(t,e.$ref,t):e,o=Ir(r);return 1===o.length&&k()(["integer","number","boolean","string"],o[0])}))),Mt=ct(st("Control"),pt(ot("number"),ot("integer")),tt((e=>e.hasOwnProperty("maximum")&&e.hasOwnProperty("minimum")&&e.hasOwnProperty("default"))),nt("slider",!0)),$t=ct(st("Control"),ot("integer"),nt("format",!0)),wt=e=>"Categorization"===e.type,Nt=e=>"Category"===e.type,Ut=e=>!a()(e.elements)&&e.elements.map((e=>wt(e)?Ut(e):Nt(e))).reduce(((e,t)=>e&&t),!0),Vt=e=>Ut(e),xt=e=>(t,r,o)=>!e(t,r,o);var kt=Object.freeze({__proto__:null,NOT_APPLICABLE:Ze,isControl:et,schemaMatches:tt,schemaSubPathMatches:rt,schemaTypeIs:ot,formatIs:at,uiTypeIs:st,optionIs:nt,scopeEndsWith:it,scopeEndIs:lt,and:ct,or:pt,rankWith:mt,withIncreasedRank:dt,isBooleanControl:ut,isObjectControl:ft,isAllOfControl:ht,isAnyOfControl:yt,isOneOfControl:Et,isEnumControl:gt,isOneOfEnumControl:vt,isIntegerControl:Ot,isNumberControl:bt,isStringControl:At,isMultiLineControl:Ct,isDateControl:St,isTimeControl:jt,isDateTimeControl:Dt,isObjectArray:Tt,isObjectArrayControl:It,isObjectArrayWithNesting:_t,isArrayObjectControl:Rt,isPrimitiveArrayControl:Lt,isRangeControl:Mt,isNumberFormatControl:$t,isCategorization:wt,isCategory:Nt,hasCategory:Ut,categorizationHasCategory:Vt,not:xt});const Ht=(e=[],t)=>{switch(t.type){case Jo:return e.slice().concat({tester:t.tester,uischema:t.uischema});case zo:const r=e.slice();return I()(r,(e=>e.tester===t.tester)),r;default:return e}},Ft=e=>(t,r,o)=>{const a=D()(e,(e=>e.tester(t,r,o)));if(void 0!==a&&a.tester(t,r,o)!==Ze)return a.uischema},qt={core:je,renderers:Ye,cells:ue,config:ye,uischemas:Ht,defaultData:Ue,i18n:Ge},Wt=(e,t,r,o,a="VerticalLayout",s,n)=>{if(s&&s.options&&s.options.detail)if("string"==typeof s.options.detail){if("GENERATE"===s.options.detail.toUpperCase())return"function"==typeof a?a():$o.uiSchema(t,a)}else if("object"==typeof s.options.detail&&s.options.detail.type&&"string"==typeof s.options.detail.type)return s.options.detail;const i=Ft(e)(t,r,o);return void 0===i?"function"==typeof a?a():$o.uiSchema(t,a,"#",n):i},Bt=(e,t)=>r=>we(e,t)(r.jsonforms.core),Jt=(e,t)=>r=>Ne(e,t)(r.jsonforms.core),zt=e=>e.jsonforms.config,Gt=e=>Ke(g()(e,"jsonforms.i18n")),Kt=()=>e=>Qe(g()(e,"jsonforms.i18n")),Qt=()=>e=>Xe(g()(e,"jsonforms.i18n")),Xt=e=>De(g()(e,"jsonforms.core")),Yt=e=>Te(g()(e,"jsonforms.core")),Zt=e=>Ie(g()(e,"jsonforms.core")),er=e=>Pe(g()(e,"jsonforms.core")),tr=e=>Ve(g()(e,"jsonforms.defaultData")),rr=e=>g()(e,"jsonforms.renderers"),or=e=>g()(e,"jsonforms.cells"),ar=e=>g()(e,"jsonforms.uischemas"),sr=(e,t)=>{let r=e;return a()(e)||a()(t)||t.startsWith("[")||(r=e+"."),a()(r)?t:a()(t)?r:`${r}${t}`},nr=e=>{const t=e.replace(/(anyOf|allOf|oneOf)\/[\d]\//g,"").replace(/(then|else)\//g,"").split("/").map(pr),r="#"===t[0]||""===t[0]?2:1;return W()(r,t.length,2).map((e=>t[e]))},ir=e=>nr(e).join("."),lr=(e,t)=>{if(!ie(e))return t??"";const r=nr(e.scope);return a()(r)?t??"":sr(t,r.join("."))},cr=e=>e?.replace(/~/g,"~0").replace(/\//g,"~1"),pr=e=>e?.replace(/~1/g,"/").replace(/~0/,"~"),mr=(e,t)=>{if(a()(t))return e;return t.split(".").map((e=>decodeURIComponent(e))).reduce(((e,t)=>{if(e&&e.hasOwnProperty(t))return e[t]}),e)},dr=(e,t={},r=!1)=>{if((e=>void 0!==e.properties)(e)&&Object.keys(e.properties).forEach((r=>dr(e.properties[r],t))),(e=>"array"===e.type&&void 0!==e.items)(e))if(Array.isArray(e.items)){if(r){e.items.forEach((e=>dr(e,t)))}}else dr(e.items,t);if(Array.isArray(e.anyOf)){e.anyOf.forEach((e=>dr(e,t)))}return void 0!==e.$ref&&(t[e.$ref]=e),t},ur=(e,t,r)=>{const o=t?.split("/").map(pr);return fr(e,o,r)},fr=(e,t,r)=>{if(a()(e))return;if(e.$ref&&(e=ur(r,e.$ref,r)),!t||0===t.length)return e;const[o,...s]=t;if("#"===(n=o)||void 0===n||""===n)return fr(e,s,r);var n;const i=g()(e,o),l=fr(i,s,r);if(l)return l;if("properties"===o||"items"===o){let t;const a=[].concat(e.oneOf??[],e.allOf??[],e.anyOf??[],e.then??[],e.else??[]);for(const e of a)if(t=fr(e,[o,...s],r),t)break;return t}},hr=(e,t)=>lr(e,t),yr=(e,t,r,o)=>{if((e=>"AND"===e.type)(t))return t.conditions.reduce(((t,a)=>t&&yr(e,a,r,o)),!0);if((e=>"OR"===e.type)(t))return t.conditions.reduce(((t,a)=>t||yr(e,a,r,o)),!1);if((e=>"LEAF"===e.type)(t)){return mr(e,hr(t,r))===t.expectedValue}if((e=>J()(e,"schema"))(t)){const a=mr(e,hr(t,r));return o.validate(t.schema,a)}return!0},Er=(e,t,r,o)=>{const a=e.rule.condition;return yr(t,a,r,o)},gr=(e,t,r=undefined,o)=>{const a=Er(e,t,r,o);switch(e.rule.effect){case re.HIDE:return!a;case re.SHOW:return a;default:return!0}},vr=(e,t,r=undefined,o)=>{const a=Er(e,t,r,o);switch(e.rule.effect){case re.DISABLE:return!a;case re.ENABLE:return a;default:return!0}},Or=e=>!(!e.rule||e.rule.effect!==re.SHOW&&e.rule.effect!==re.HIDE),br=e=>!(!e.rule||e.rule.effect!==re.ENABLE&&e.rule.effect!==re.DISABLE),Ar=(e,t,r=undefined,o)=>!e.rule||gr(e,t,r,o),Cr=(e,t,r=undefined,o)=>!e.rule||vr(e,t,r,o),Sr=(e,t,r,o,a,s)=>!e?.jsonforms?.readonly&&(r&&br(r)?Cr(r,a,t?.path,er(e)):"boolean"==typeof r?.options?.readonly?!r.options.readonly:"boolean"==typeof r?.options?.readOnly?!r.options.readOnly:"boolean"==typeof s?.readonly?!s.readonly:"boolean"==typeof s?.readOnly?!s.readOnly:!0!==o?.readOnly&&("boolean"!=typeof t?.enabled||t.enabled)),jr=e=>e.replace("#","root").replace(new RegExp("/","g"),"_"),Dr=e=>null==e?"":e.join("\n"),Tr=(e,t)=>k()(Ir(e),t),Ir=e=>{if(a()(e))return[];if(!a()(e.type)&&"string"==typeof e.type)return[e.type];if($()(e.type))return e.type;if(!a()(e.properties)||!a()(e.additionalProperties))return["object"];if(!a()(e.items))return["array"];if(!a()(e.allOf)){const t=F()(e.allOf,(e=>0!==Ir(e).length));if(t)return Ir(t)}return[]},Pr={schema:ur,data:mr},_r={compose:sr,fromScoped:e=>nr(e.scope).join(".")},Rr={isEnabled:(e,t,r)=>Cr(e,t,void 0,r),isVisible:(e,t,r)=>Ar(e,t,void 0,r)},Lr=(e,t)=>{if(t&&"string"==typeof t.title)return t.title;if("string"==typeof e.scope){const t=e.scope,r=pr(t.substr(t.lastIndexOf("/")+1));return n()(r)}return""},Mr=e=>n()(e.replace("_"," ")),$r=(e,t)=>{const r=e.label;if("boolean"==typeof r)return wr(Lr(e,t),r);if("string"==typeof r)return wr(r,!0);if("object"==typeof r){const o="string"==typeof r.text?r.text:Lr(e,t),a="boolean"!=typeof r.show||r.show;return wr(o,a)}return wr(Lr(e,t),!0)},wr=(e,t)=>({text:e,show:t}),Nr=(e,t,r)=>`${e??""}${t&&!r?"*":""}`,Ur=(e,t)=>e&&!t,Vr=e=>{switch(e.type){case"string":return"date-time"===e.format||"date"===e.format||"time"===e.format?new Date:"";case"integer":case"number":return 0;case"boolean":return!1;case"array":return[];case"null":return null;default:return{}}},xr=(e,t,r,o)=>void 0===t||void 0!==t&&!e||!o&&!r,kr=(e,t,r)=>{let o="string"==typeof e?e:JSON.stringify(e);return t&&(o=t(r?`${r}.${o}`:o,o)),{label:o,value:e}},Hr=(e,t,r)=>{let o=e.title??("string"==typeof e.const?e.const:JSON.stringify(e.const));return t&&(o=e.i18n?t(e.i18n,o):t(r?`${r}.${o}`:o,o)),{label:o,value:e.const}},Fr=(e,t)=>{const{uischema:r}=t,o=Xt(e),a=lr(r,t.path),s=void 0===t.visible||Or(r)?Ar(r,o,t.path,er(e)):t.visible,n=r,i=t.id,l=Yt(e),c=void 0!==n.scope&&((e,t,r)=>{const o=t.split("/"),a=o[o.length-1],s=o.slice(0,o.length-2).join("/"),n=Pr.schema(e,s,r);return void 0!==n&&void 0!==n.required&&-1!==n.required.indexOf(a)})(t.schema,n.scope,l),p=Pr.schema(t.schema||l,n.scope,l),m=Bt(a,p)(e),d=void 0!==p?p.description:"",u=Pr.data(o,a),f=$r(r,p),h=f.show?f.text:"",y=zt(e),E=Sr(e,t,r,p||l,o,y),g=p??l,v=Kt()(e),O=Qt()(e),b=v(Fe(g,r,a,"label"),h,{schema:g,uischema:r,path:a,errors:m});return{data:u,description:v(Fe(g,r,a,"description"),d,{schema:g,uischema:r,path:a,errors:m}),errors:Be(m,O,v,g,r,a),label:b,visible:s,enabled:E,id:i,path:a,required:c,uischema:r,schema:g,config:zt(e),cells:t.cells||e.jsonforms.cells,rootSchema:l}},qr=e=>({handleChange(t,r){e(ia(t,(()=>r)))}}),Wr=(e,t)=>{const r=Fr(e,t),o=t.options||r.schema.enum?.map((t=>kr(t,Kt()(e),He(r.schema,r.uischema,r.path))))||r.schema.const&&[kr(r.schema.const,Kt()(e),He(r.schema,r.uischema,r.path))];return{...r,options:o}},Br=(e,t)=>{const r=Fr(e,t),o=t.options||r.schema.oneOf?.map((t=>Hr(t,Kt()(e),He(r.schema,r.uischema,r.path))));return{...r,options:o}},Jr=(e,t)=>{const r=Fr(e,t),o=r.schema.items,a=t.options||o?.oneOf&&o.oneOf.map((t=>Hr(t,e.jsonforms.i18n?.translate,He(r.schema,r.uischema,r.path))))||o?.enum?.map((t=>kr(t,e.jsonforms.i18n?.translate,He(r.schema,r.uischema,r.path))));return{...r,options:a}},zr=(e,t)=>{const{schema:r,path:o,index:a}=t,s=r.properties?F()(Object.keys(r.properties),(e=>{const t=r.properties[e];return"string"===t.type||"number"===t.type||"integer"===t.type})):void 0,n=sr(o,`${a}`),i=Pr.data(Xt(e),n),l=s?i[s]:"";return{...t,childLabel:l}},Gr=(e,t)=>{const{...r}=Fr(e,t);return{...r,uischemas:e.jsonforms.uischemas}},Kr=(e,t)=>{const{path:r,schema:o,uischema:a,...s}=Gr(e,t),n=Pr.schema(o,"items",s.rootSchema),i=Jt(r,n)(e);return{...s,path:r,uischema:a,schema:n,childErrors:i,renderers:t.renderers||rr(e),cells:t.cells||or(e)}},Qr=e=>({addItem:(t,r)=>()=>{e(ia(t,(e=>null==e?[r]:(e.push(r),e))))},removeItems:(t,r)=>()=>{e(ia(t,(e=>(r.sort().reverse().forEach((t=>e.splice(t,1))),e))))},moveUp:(t,r)=>()=>{e(ia(t,(e=>(me(e,r),e))))},moveDown:(t,r)=>()=>{e(ia(t,(e=>(de(e,r),e))))}}),Xr=e=>({addItem:(t,r)=>{e(ia(t,(e=>null==e?[r]:(e.push(r),e))))},removeItem:(t,r)=>{e(ia(t,(e=>{const t=e.indexOf(r);return e.splice(t,1),e})))}}),Yr={visible:!0,enabled:!0,path:"",direction:"column"},Zr=e=>"HorizontalLayout"===e.type?"row":"VerticalLayout"===e.type?"column":Yr.direction,eo=(e,t)=>{const r=Xt(e),{uischema:o}=t,a=void 0===t.visible||Or(o)?Ar(t.uischema,r,t.path,er(e)):t.visible,s=Pr.data(r,t.path),n=zt(e),i=Sr(e,t,o,void 0,r,n),l=Kt()(e),c=le(o)?Je(o,l):void 0;return{...Yr,renderers:t.renderers||rr(e),cells:t.cells||or(e),visible:a,enabled:i,path:t.path,data:s,uischema:t.uischema,schema:t.schema,direction:t.direction??Zr(o),config:n,label:c}},to=(e,t)=>({renderers:t.renderers||g()(e.jsonforms,"renderers"),cells:t.cells||g()(e.jsonforms,"cells"),schema:t.schema||Yt(e),rootSchema:Yt(e),uischema:t.uischema||Zt(e),path:t.path,enabled:t.enabled,config:zt(e)}),ro={...Yr,errors:[]},oo=(e,t,r)=>{const{data:o,schema:a,rootSchema:s,...n}=Fr(e,t),i=e.jsonforms.core.ajv,l=["required","additionalProperties","type","enum","const"];let c;for(let e=0;e<a[r]?.length;e++)try{let t=a[r][e];t.$ref&&(t=Pr.schema(s,t.$ref,s));const n=i.compile(t);if(n(o),!(p=n.errors)||0===p.length||!p.find((e=>-1!==l.indexOf(e.keyword)))){c=e;break}}catch(e){console.debug("Combinator subschema is not self contained, can't hand it over to AJV")}var p;return{data:o,schema:a,rootSchema:s,...n,indexOfFittingSchema:c,uischemas:ar(e)}},ao=(e,t)=>oo(e,t,"allOf"),so=(e,t)=>oo(e,t,"anyOf"),no=(e,t)=>oo(e,t,"oneOf"),io=(e,t)=>{const{path:r,schema:o,uischema:a,errors:s,...n}=Gr(e,t),i=Pr.schema(o,"items",n.rootSchema),l=Be(Jt(r,i)(e),Qt()(e),Kt()(e),void 0,void 0,void 0),c=s+(s.length>0&&l.length>0?"\n":"")+l;return{...n,path:r,uischema:a,schema:i,data:n.data?n.data.length:0,errors:c,minItems:o.minItems}},lo=(e,t)=>{const{uischema:r}=t,o=void 0===t.visible||Or(r)?Ar(t.uischema,Xt(e),t.path,er(e)):t.visible,a=r.text,s=Kt()(e),n=xe(void 0,r);return{text:s(n?`${n}.text`:a??"",a,{uischema:r}),visible:o,config:zt(e),renderers:t.renderers||rr(e),cells:t.cells||or(e)}},co=(e,t)=>{const{id:r,schema:o,path:s,uischema:n,renderers:i,cells:l}=t,c=Xt(e),m=void 0!==t.visible?t.visible:Ar(n,c,void 0,er(e)),d=Yt(e),u=zt(e);let f;f=!0!==e.jsonforms.readonly&&("boolean"==typeof t.enabled?t.enabled:Sr(e,t,n,o||d,c,u));const h=Dr(p()(Bt(s,o)(e).map((e=>e.message)))),y=a()(h);return{data:Pr.data(c,s),visible:m,enabled:f,id:r,path:s,errors:h,isValid:y,schema:o,uischema:n,config:zt(e),rootSchema:d,renderers:i,cells:l}},po=(e,t)=>{const r=co(e,t),{renderers:o,cells:a,...s}=t;return{...r,...s,cells:a||e.jsonforms.cells||[]}},mo=(e,t)=>{const r=co(e,t),o=t.options||r.schema.enum?.map((t=>kr(t,Kt()(e),He(r.schema,r.uischema,r.path))))||r.schema.const&&[kr(r.schema.const,Kt()(e),He(r.schema,r.uischema,r.path))];return{...r,options:o}},uo=(e,t)=>{const r=co(e,t),o=t.options||r.schema.oneOf?.map((t=>Hr(t,Kt()(e),He(r.schema,r.uischema,r.path))));return{...r,options:o}},fo=qr,ho=(e,t)=>{const{handleChange:r}=fo(e);return{handleChange:t.handleChange||r}},yo=(e,t,r)=>e.title?e.title:r+"-"+t,Eo=(e,t,r,o,a,s)=>e.map(((e,n)=>{const i=e.$ref?Pr.schema(t,e.$ref,t):e;return{schema:i,uischema:Wt(s,i,o.scope,a,void 0,o,t),label:yo(e,n,r)}})),go=new Set,vo=(e,t)=>t<=1?e:e+t.toString(),Oo=(e,t)=>{const r=vo(e,t);return!go.has(r)},bo=e=>{void 0===e&&(e="undefined");let t=0;for(;!Oo(e,t);)t++;const r=vo(e,t);return go.add(r),r},Ao=e=>go.delete(e),Co=()=>go.clear(),So=e=>{if(e.properties)return F()(Object.keys(e.properties),(t=>{const r=e.properties[t];return"string"===r.type||"number"===r.type||"integer"===r.type}))},jo=e=>t=>{t.options||(t.options={}),t.options.readonly=e},Do=e=>{Io(e,jo(!0))},To=e=>{Io(e,jo(!1))},Io=(e,t)=>{a()(e)||(se(e)?e.elements.forEach((e=>Io(e,t))):t(e))},Po=e=>{const t=new(G())({allErrors:!0,verbose:!0,strict:!1,...e});return Q()(t),t},_o=e=>({type:e,elements:[]}),Ro=e=>({type:"Control",scope:e}),Lo=(e,t,r,o,s,i)=>{if(!a()(e)&&void 0!==e.$ref)return Lo(ur(i,e.$ref,i),t,r,o,s,i);if((e=>!(a()(e)||a()(e.oneOf)&&a()(e.anyOf)&&a()(e.allOf)))(e)){const e=Ro(r);return t.push(e),e}const c=Ir(e);if(0===c.length)return null;if(c.length>1){const e=Ro(r);return t.push(e),e}if("#"===r&&"object"===c[0]){const c=_o(s);if(t.push(c),e.properties&&l()(e.properties).length>1&&((e,t)=>{if(!a()(t)){const r=n()(t);if(ae(e))e.label=r;else{const t={type:"Label",text:r};e.elements.push(t)}}})(c,o),!a()(e.properties)){const t=r+"/properties";Object.keys(e.properties).map((r=>{let o=e.properties[r];const a=`${t}/${cr(r)}`;void 0!==o.$ref&&(o=ur(i,o.$ref,i)),Lo(o,c.elements,a,r,s,i)}))}return c}switch(c[0]){case"object":case"array":case"string":case"number":case"integer":case"boolean":const o=Ro(r);return t.push(o),o;default:throw new Error("Unknown type: "+JSON.stringify(e))}},Mo=(e,t="VerticalLayout",r="#",o=e)=>((e,t)=>{if(!a()(e)&&!se(e)){const r=_o(t);return r.elements.push(e),r}return e})(Lo(e,[],r,"",t,o),t),$o={jsonSchema:ee,uiSchema:Mo,controlElement:Ro},wo="jsonforms/INIT",No="jsonforms/UPDATE_CORE",Uo="jsonforms/SET_AJV",Vo="jsonforms/UPDATE",xo="jsonforms/UPDATE_ERRORS",ko="jsonforms/VALIDATE",Ho="jsonforms/ADD_RENDERER",Fo="jsonforms/REMOVE_RENDERER",qo="jsonforms/ADD_CELL",Wo="jsonforms/REMOVE_CELL",Bo="jsonforms/SET_CONFIG",Jo="jsonforms/ADD_UI_SCHEMA",zo="jsonforms/REMOVE_UI_SCHEMA",Go="jsonforms/SET_SCHEMA",Ko="jsonforms/SET_UISCHEMA",Qo="jsonforms/SET_VALIDATION_MODE",Xo="jsonforms/SET_LOCALE",Yo="jsonforms/SET_TRANSLATOR",Zo="jsonforms/UPDATE_I18N",ea="jsonforms/ADD_DEFAULT_DATA",ta="jsonforms/REMOVE_DEFAULT_DATA",ra=(e,t=ee(e),r,o)=>({type:wo,data:e,schema:t,uischema:"object"==typeof r?r:Mo(t),options:o}),oa=(e,t,r,o)=>({type:No,data:e,schema:t,uischema:r,options:o}),aa=(e,t)=>({type:ea,schemaPath:e,data:t}),sa=e=>({type:ta,schemaPath:e}),na=e=>({type:Uo,ajv:e}),ia=(e,t)=>({type:Vo,path:e,updater:t}),la=e=>({type:xo,errors:e}),ca=(e,t)=>({type:Ho,tester:e,renderer:t}),pa=(e,t)=>({type:qo,tester:e,cell:t}),ma=(e,t)=>({type:Wo,tester:e,cell:t}),da=(e,t)=>({type:Fo,tester:e,renderer:t}),ua=e=>({type:Bo,config:e}),fa=e=>({type:Qo,validationMode:e}),ha=(e,t)=>({type:Jo,tester:e,uischema:t}),ya=e=>({type:zo,tester:e}),Ea=e=>({type:Xo,locale:e}),ga=e=>({type:Go,schema:e}),va=(e,t)=>({type:Yo,translator:e,errorTranslator:t}),Oa=(e,t,r)=>({type:Zo,locale:e,translator:t,errorTranslator:r}),ba=e=>({type:Ko,uischema:e});var Aa=Object.freeze({__proto__:null,INIT:wo,UPDATE_CORE:No,SET_AJV:Uo,UPDATE_DATA:Vo,UPDATE_ERRORS:xo,VALIDATE:ko,ADD_RENDERER:Ho,REMOVE_RENDERER:Fo,ADD_CELL:qo,REMOVE_CELL:Wo,SET_CONFIG:Bo,ADD_UI_SCHEMA:Jo,REMOVE_UI_SCHEMA:zo,SET_SCHEMA:Go,SET_UISCHEMA:Ko,SET_VALIDATION_MODE:Qo,SET_LOCALE:Xo,SET_TRANSLATOR:Yo,UPDATE_I18N:Zo,ADD_DEFAULT_DATA:ea,REMOVE_DEFAULT_DATA:ta,init:ra,updateCore:oa,registerDefaultData:aa,unregisterDefaultData:sa,setAjv:na,update:ia,updateErrors:la,registerRenderer:ca,registerCell:pa,unregisterCell:ma,unregisterRenderer:da,setConfig:ua,setValidationMode:fa,registerUISchema:ha,unregisterUISchema:ya,setLocale:Ea,setSchema:ga,setTranslator:va,updateI18n:Oa,setUISchema:ba});const Ca={createLabelDescriptionFrom:$r,convertToValidClassName:jr}}}]);
2
- //# sourceMappingURL=npm.jsonforms.d742a744d53545575dc0f741c7f95a16.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["webpack://@genesislcap/foundation-forms/../node_modules/@jsonforms/core/lib/jsonforms-core.esm.js"],"names":["ADDITIONAL_PROPERTIES","REQUIRED_PROPERTIES","Gen","constructor","findOption","this","schemaObject","data","props","properties","schema","type","additionalProperties","required","length","Object","keys","reduce","acc","propName","property","Number","isInteger","schemaObjectOrArray","Array","schemaArray","uniqueProperties","discriminator","known","filter","item","discriminatorValue","hasOwnProperty","distinct","map","prop","JSON","stringify","items","oneOf","generateJsonSchema","instance","options","optionName","Draft4","id","$schema","description","definitions","minItems","$ref","positiveInteger","minimum","positiveIntegerDefault0","allOf","default","simpleTypes","enum","stringArray","uniqueItems","format","title","multipleOf","exclusiveMinimum","maximum","exclusiveMaximum","maxLength","minLength","pattern","additionalItems","anyOf","maxItems","maxProperties","minProperties","patternProperties","dependencies","not","RuleEffect","isInternationalized","element","i18n","isGroup","layout","isLayout","uischema","undefined","elements","isScopable","obj","isScoped","scope","isLabelable","isLabeled","includes","label","move","array","index","delta","newIndex","indexes","sort","a","b","splice","moveUp","toMove","moveDown","cellReducer","state","tester","cell","ADD_CELL","concat","REMOVE_CELL","t","configDefault","restrict","trim","showUnfocusedDescription","hideRequiredAsterisk","applyDefaultConfiguration","config","configReducer","action","SET_CONFIG","validate","validator","errors","initState","ajv","validationMode","additionalErrors","reuseAjvForSchema","removeSchema","getOrCreateAjv","hasAjvOption","compile","createAjv","option","getValidationMode","hasValidationModeOption","getAdditionalErrors","coreReducer","INIT","thisAjv","v","e","UPDATE_CORE","SET_AJV","currentAjv","SET_SCHEMA","SET_UISCHEMA","UPDATE_DATA","path","result","updater","oldData","newData","newState","UPDATE_ERRORS","SET_VALIDATION_MODE","extractData","extractSchema","extractUiSchema","extractAjv","getControlPath","error","dataPath","replace","substr","controlPath","instancePath","invalidProperty","keyword","params","missingProperty","additionalProperty","getInvalidProperty","endsWith","errorsAt","matchPath","combinatorPaths","filteredErrorKeywords","indexOf","parentSchema","isObjectSchema$1","findIndex","p","startsWith","getErrorsAt","errorAt","subErrorsAt","defaultDataReducer","ADD_DEFAULT_DATA","schemaPath","REMOVE_DEFAULT_DATA","extractDefaultData","getI18nKeyPrefixBySchema","transformPathToI18nPrefix","split","segment","test","join","getI18nKeyPrefix","getI18nKey","key","defaultTranslator","_id","defaultMessage","defaultErrorTranslator","specializedKeywordMessage","genericKeywordMessage","messageCustomization","message","getCombinedErrorMessage","et","customErrorKey","specializedErrorMessage","formatErrorMessage","deriveLabelForUISchemaElement","stringifiedLabel","i18nKeyPrefix","defaultJsonFormsI18nState","locale","translate","translateError","i18nReducer","UPDATE_I18N","translator","errorTranslator","SET_TRANSLATOR","SET_LOCALE","navigator","languages","fetchLocale","fetchTranslator","fetchErrorTranslator","rendererReducer","ADD_RENDERER","renderer","REMOVE_RENDERER","NOT_APPLICABLE","isControl","schemaMatches","predicate","context","currentDataSchema","hasType","resolveSchema","rootSchema","schemaSubPathMatches","subPath","schemaTypeIs","expectedType","formatIs","expectedFormat","uiTypeIs","expected","optionIs","optionValue","scopeEndsWith","scopeEndIs","and","testers","or","rankWith","rank","withIncreasedRank","by","rankedTester","isBooleanControl","isObjectControl","isAllOfControl","isAnyOfControl","isOneOfControl","isEnumControl","isOneOfEnumControl","every","s","const","isIntegerControl","isNumberControl","isStringControl","isMultiLineControl","isDateControl","isTimeControl","isDateTimeControl","isObjectArray","isArray","resolvedSchema","isObjectArrayControl","traverse","any","pred","el","toTraverse","_key","val","isObjectArrayWithNesting","objectDepth","detail","toUpperCase","isArrayObjectControl","isPrimitiveArrayControl","deriveTypes","types","isRangeControl","isNumberFormatControl","isCategorization","category","isCategory","hasCategory","categorization","elem","prev","curr","categorizationHasCategory","index$1","freeze","__proto__","uischemaRegistryReducer","ADD_UI_SCHEMA","slice","REMOVE_UI_SCHEMA","copy","entry","findMatchingUISchema","jsonSchema","match","jsonFormsReducerConfig","core","renderers","cells","uischemas","defaultData","findUISchema","fallback","control","Generate","uiSchema","getErrorAt","jsonforms","getSubErrorsAt","getConfig","getLocale","getTranslator","getErrorTranslator","getData","getSchema","getUiSchema","getAjv","getDefaultData","getRenderers","getCells","getUISchemas","compose","path1","path2","p1","toDataPathSegments","decodedSegments","decode","startIndex","idx","toDataPath","composeWithUi","scopableUi","segments","encode","pointerSegment","resolveData","decodeURIComponent","curInstance","decodedSegment","findAllRefs","resolveTuples","isObjectSchema","forEach","isArraySchema","child","resolveSchemaWithSegments","pathSegments","remainingSegments","pathSegment","singleSegmentResolveSchema","alternativeResolveResult","subSchemas","then","else","subSchema","getConditionScope","condition","evaluateCondition","isAndCondition","conditions","cur","isOrCondition","isLeafCondition","expectedValue","isSchemaCondition","value","isRuleFulfilled","rule","evalVisibility","fulfilled","effect","HIDE","SHOW","evalEnablement","DISABLE","ENABLE","hasShowRule","hasEnableRule","isVisible","isEnabled","isInherentlyEnabled","ownProps","rootData","readonly","readOnly","enabled","convertToValidClassName","RegExp","allOfType","Resolve","Paths","fromScoped","scopable","Runtime","deriveLabel","controlElement","schemaElement","ref","lastIndexOf","createCleanLabel","createLabelDescriptionFrom","withLabel","labelProperty","labelDescription","text","show","computeLabel","showAsRequired","createDefaultValue","Date","isDescriptionHidden","visible","isFocused","enumToEnumOptionMapper","i18nKey","oneOfToEnumOptionMapper","fallbackI18nKey","mapStateToControlProps","lastSegment","nextHigherSchemaPath","nextHigherSchema","isRequired","labelDesc","te","i18nLabel","mapDispatchToControlProps","dispatch","handleChange","update","mapStateToEnumControlProps","mapStateToOneOfEnumControlProps","oneOfSubSchema","mapStateToMultiEnumControlProps","mapStateToMasterListItemProps","firstPrimitiveProp","childPath","childData","childLabel","mapStateToControlWithDetailProps","mapStateToArrayControlProps","childErrors","mapDispatchToArrayControlProps","addItem","push","removeItems","toDelete","reverse","mapDispatchToMultiEnumProps","removeItem","indexInData","layoutDefaultProps","direction","getDirection","mapStateToLayoutProps","mapStateToJsonFormsRendererProps","controlDefaultProps","mapStateToCombinatorRendererProps","structuralKeywords","indexOfFittingSchema","i","_schema","valFn","find","console","debug","mapStateToAllOfProps","mapStateToAnyOfProps","mapStateToOneOfProps","mapStateToArrayLayoutProps","allErrors","mapStateToLabelProps","mapStateToCellProps","isValid","mapStateToDispatchCellProps","otherOwnProps","defaultMapStateToEnumCellProps","mapStateToOneOfEnumCellProps","mapDispatchToCellProps","defaultMapDispatchToControlProps","createLabel","subSchemaIndex","createCombinatorRenderInfos","combinatorSubSchemas","usedIds","Set","makeId","idBase","iteration","toString","isUniqueId","newID","has","createId","proposedId","tries","add","removeId","delete","clearAllIds","clear","getFirstPrimitiveProp","setReadonlyPropertyValue","setReadonly","iterateSchema","unsetReadonly","toApply","verbose","strict","createLayout","layoutType","createControlElement","generateUISchema","schemaElements","currentRef","schemaName","isCombinator","controlObject","labelName","fixedLabel","addLabel","nextRef","Error","generateDefaultUISchema","prefix","verticalLayout","wrapInLayoutIfNecessary","VALIDATE","init","updateCore","registerDefaultData","unregisterDefaultData","setAjv","updateErrors","registerRenderer","registerCell","unregisterCell","unregisterRenderer","setConfig","setValidationMode","registerUISchema","unregisterUISchema","setLocale","setSchema","setTranslator","updateI18n","setUISchema","Helpers"],"mappings":"mzKAyBA,MAAMA,EAAwB,uBACxBC,EAAsB,WAc5B,MAAMC,EACFC,YAAYC,GACRC,KAAKD,WAAaA,EAClBC,KAAKC,aAAgBC,IACjB,MAAMC,EAAQH,KAAKI,WAAWF,GACxBG,EAAS,CACXC,KAAM,SACNF,WAAYD,EACZI,qBAAsBP,KAAKD,WAAWI,EAAhBH,CAAuBL,IAE3Ca,EAAWR,KAAKD,WAAWI,EAAhBH,CAAuBJ,GAIxC,OAHIY,EAASC,OAAS,IAClBJ,EAAOG,SAAWA,GAEfH,CAAM,EAEjBL,KAAKI,WAAcF,GAERQ,OAAOC,KAAKT,GAAMU,QAAO,CAACC,EAAKC,KAClCD,EAAIC,GAAYd,KAAKe,SAASb,EAAKY,IAC5BD,IAHQ,CAAC,GAMxBb,KAAKe,SAAYb,IACb,cAAeA,GACX,IAAK,SACD,MAAO,CAAEI,KAAM,UACnB,IAAK,UACD,MAAO,CAAEA,KAAM,WACnB,IAAK,SACD,OAAIU,OAAOC,UAAUf,GACV,CAAEI,KAAM,WAEZ,CAAEA,KAAM,UACnB,IAAK,SACD,OAAY,MAARJ,EACO,CAAEI,KAAM,QAEZN,KAAKkB,oBAAoBhB,GACpC,QACI,MAAO,CAAC,EAChB,EAEJF,KAAKkB,oBAAuBhB,GACpBA,aAAgBiB,MACTnB,KAAKoB,YAAYlB,GAGjBF,KAAKC,aAAaC,GAGjCF,KAAKoB,YAAelB,IAChB,GAAIA,EAAKO,OAAS,EAAG,CACjB,MACMY,EAnEL,EAACjB,EAAYkB,KAC1B,MAAMC,EAAQ,CAAC,EACf,OAAOnB,EAAWoB,QAAOC,IACrB,MAAMC,EAAqBJ,EAAcG,GACzC,OAAIF,EAAMI,eAAeD,KAIrBH,EAAMG,IAAsB,GACrB,EACX,GACF,EAwDmCE,CADH1B,EAAK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,GACNJ,SACAK,aACAC,oBAEE+V,GAAejf,IAAa,CAC9BzE,KAAM6I,GACNpE,aAGJ,IAAIa,GAAqBlF,OAAOgT,OAAO,CACrCC,UAAW,KACXhL,KAAMA,GACNI,YAAaA,GACbC,QAASA,GACTI,YAAaA,GACbO,cAAeA,GACfkZ,SAAUA,GACVnU,aAAcA,GACdE,gBAAiBA,GACjBjI,SAAUA,GACVE,YAAaA,GACbW,WAAYA,GACZqM,cAAeA,GACfE,iBAAkBA,GAClB7K,WAAYA,GACZC,aAAcA,GACdS,oBAAqBA,GACrBuE,WAAYA,GACZD,eAAgBA,GAChBH,YAAaA,GACblC,iBAAkBA,GAClBE,oBAAqBA,GACrB+W,KAAMA,GACNC,WAAYA,GACZC,oBAAqBA,GACrBC,sBAAuBA,GACvBC,OAAQA,GACRvG,OAAQA,GACRwG,aAAcA,GACdC,iBAAkBA,GAClBC,aAAcA,GACdC,eAAgBA,GAChBC,mBAAoBA,GACpBC,UAAWA,GACXC,kBAAmBA,GACnBC,iBAAkBA,GAClBC,mBAAoBA,GACpBC,UAAWA,GACXC,UAAWA,GACXC,cAAeA,GACfC,WAAYA,GACZC,YAAaA,KAGf,MAAMC,GAAU,CACZlJ,8BACAd,2B","file":"npm.jsonforms.832.xxxxxxxxxxxxxxxxxxxx.js","sourcesContent":["import isEmpty from 'lodash/isEmpty';\nimport startCase from 'lodash/startCase';\nimport keys from 'lodash/keys';\nimport union from 'lodash/union';\nimport merge from 'lodash/merge';\nimport cloneDeep from 'lodash/cloneDeep';\nimport setFp from 'lodash/fp/set';\nimport get from 'lodash/get';\nimport filter from 'lodash/filter';\nimport isEqual from 'lodash/isEqual';\nimport isFunction from 'lodash/isFunction';\nimport maxBy from 'lodash/maxBy';\nimport remove from 'lodash/remove';\nimport endsWith from 'lodash/endsWith';\nimport last from 'lodash/last';\nimport isArray from 'lodash/isArray';\nimport reduce from 'lodash/reduce';\nimport toPairs from 'lodash/toPairs';\nimport includes from 'lodash/includes';\nimport find from 'lodash/find';\nimport range from 'lodash/range';\nimport has from 'lodash/has';\nimport Ajv from 'ajv';\nimport addFormats from 'ajv-formats';\n\nconst ADDITIONAL_PROPERTIES = 'additionalProperties';\nconst REQUIRED_PROPERTIES = 'required';\nconst distinct = (properties, discriminator) => {\n const known = {};\n return properties.filter(item => {\n const discriminatorValue = discriminator(item);\n if (known.hasOwnProperty(discriminatorValue)) {\n return false;\n }\n else {\n known[discriminatorValue] = true;\n return true;\n }\n });\n};\nclass Gen {\n constructor(findOption) {\n this.findOption = findOption;\n this.schemaObject = (data) => {\n const props = this.properties(data);\n const schema = {\n type: 'object',\n properties: props,\n additionalProperties: this.findOption(props)(ADDITIONAL_PROPERTIES)\n };\n const required = this.findOption(props)(REQUIRED_PROPERTIES);\n if (required.length > 0) {\n schema.required = required;\n }\n return schema;\n };\n this.properties = (data) => {\n const emptyProps = {};\n return Object.keys(data).reduce((acc, propName) => {\n acc[propName] = this.property(data[propName]);\n return acc;\n }, emptyProps);\n };\n this.property = (data) => {\n switch (typeof data) {\n case 'string':\n return { type: 'string' };\n case 'boolean':\n return { type: 'boolean' };\n case 'number':\n if (Number.isInteger(data)) {\n return { type: 'integer' };\n }\n return { type: 'number' };\n case 'object':\n if (data == null) {\n return { type: 'null' };\n }\n return this.schemaObjectOrArray(data);\n default:\n return {};\n }\n };\n this.schemaObjectOrArray = (data) => {\n if (data instanceof Array) {\n return this.schemaArray(data);\n }\n else {\n return this.schemaObject(data);\n }\n };\n this.schemaArray = (data) => {\n if (data.length > 0) {\n const allProperties = data.map(this.property);\n const uniqueProperties = distinct(allProperties, prop => JSON.stringify(prop));\n if (uniqueProperties.length === 1) {\n return {\n type: 'array',\n items: uniqueProperties[0]\n };\n }\n else {\n return {\n type: 'array',\n items: {\n oneOf: uniqueProperties\n }\n };\n }\n }\n else {\n return {\n type: 'array',\n items: {}\n };\n }\n };\n }\n}\nconst generateJsonSchema = (instance, options = {}) => {\n const findOption = (props) => (optionName) => {\n switch (optionName) {\n case ADDITIONAL_PROPERTIES:\n if (options.hasOwnProperty(ADDITIONAL_PROPERTIES)) {\n return options[ADDITIONAL_PROPERTIES];\n }\n return true;\n case REQUIRED_PROPERTIES:\n if (options.hasOwnProperty(REQUIRED_PROPERTIES)) {\n return options[REQUIRED_PROPERTIES](props);\n }\n return Object.keys(props);\n default:\n return;\n }\n };\n const gen = new Gen(findOption);\n return gen.schemaObject(instance);\n};\n\nconst Draft4 = {\n id: 'http://json-schema.org/draft-04/schema#',\n $schema: 'http://json-schema.org/draft-04/schema#',\n description: 'Core schema meta-schema',\n definitions: {\n schemaArray: {\n type: 'array',\n minItems: 1,\n items: { $ref: '#' }\n },\n positiveInteger: {\n type: 'integer',\n minimum: 0\n },\n positiveIntegerDefault0: {\n allOf: [{ $ref: '#/definitions/positiveInteger' }, { default: 0 }]\n },\n simpleTypes: {\n enum: [\n 'array',\n 'boolean',\n 'integer',\n 'null',\n 'number',\n 'object',\n 'string'\n ]\n },\n stringArray: {\n type: 'array',\n items: { type: 'string' },\n minItems: 1,\n uniqueItems: true\n }\n },\n type: 'object',\n properties: {\n id: {\n type: 'string',\n format: 'uri'\n },\n $schema: {\n type: 'string',\n format: 'uri'\n },\n title: {\n type: 'string'\n },\n description: {\n type: 'string'\n },\n default: {},\n multipleOf: {\n type: 'number',\n minimum: 0,\n exclusiveMinimum: true\n },\n maximum: {\n type: 'number'\n },\n exclusiveMaximum: {\n type: 'boolean',\n default: false\n },\n minimum: {\n type: 'number'\n },\n exclusiveMinimum: {\n type: 'boolean',\n default: false\n },\n maxLength: { $ref: '#/definitions/positiveInteger' },\n minLength: { $ref: '#/definitions/positiveIntegerDefault0' },\n pattern: {\n type: 'string',\n format: 'regex'\n },\n additionalItems: {\n anyOf: [{ type: 'boolean' }, { $ref: '#' }],\n default: {}\n },\n items: {\n anyOf: [{ $ref: '#' }, { $ref: '#/definitions/schemaArray' }],\n default: {}\n },\n maxItems: { $ref: '#/definitions/positiveInteger' },\n minItems: { $ref: '#/definitions/positiveIntegerDefault0' },\n uniqueItems: {\n type: 'boolean',\n default: false\n },\n maxProperties: { $ref: '#/definitions/positiveInteger' },\n minProperties: { $ref: '#/definitions/positiveIntegerDefault0' },\n required: { $ref: '#/definitions/stringArray' },\n additionalProperties: {\n anyOf: [{ type: 'boolean' }, { $ref: '#' }],\n default: {}\n },\n definitions: {\n type: 'object',\n additionalProperties: { $ref: '#' },\n default: {}\n },\n properties: {\n type: 'object',\n additionalProperties: { $ref: '#' },\n default: {}\n },\n patternProperties: {\n type: 'object',\n additionalProperties: { $ref: '#' },\n default: {}\n },\n dependencies: {\n type: 'object',\n additionalProperties: {\n anyOf: [{ $ref: '#' }, { $ref: '#/definitions/stringArray' }]\n }\n },\n enum: {\n type: 'array',\n minItems: 1,\n uniqueItems: true\n },\n type: {\n anyOf: [\n { $ref: '#/definitions/simpleTypes' },\n {\n type: 'array',\n items: { $ref: '#/definitions/simpleTypes' },\n minItems: 1,\n uniqueItems: true\n }\n ]\n },\n allOf: { $ref: '#/definitions/schemaArray' },\n anyOf: { $ref: '#/definitions/schemaArray' },\n oneOf: { $ref: '#/definitions/schemaArray' },\n not: { $ref: '#' }\n },\n dependencies: {\n exclusiveMaximum: ['maximum'],\n exclusiveMinimum: ['minimum']\n },\n default: {}\n};\n\nvar RuleEffect;\n(function (RuleEffect) {\n RuleEffect[\"HIDE\"] = \"HIDE\";\n RuleEffect[\"SHOW\"] = \"SHOW\";\n RuleEffect[\"ENABLE\"] = \"ENABLE\";\n RuleEffect[\"DISABLE\"] = \"DISABLE\";\n})(RuleEffect || (RuleEffect = {}));\nconst isInternationalized = (element) => typeof element === 'object' && element !== null && typeof element.i18n === 'string';\nconst isGroup = (layout) => layout.type === 'Group';\nconst isLayout = (uischema) => uischema.elements !== undefined;\nconst isScopable = (obj) => !!obj && typeof obj === 'object';\nconst isScoped = (obj) => isScopable(obj) && typeof obj.scope === 'string';\nconst isLabelable = (obj) => !!obj && typeof obj === 'object';\nconst isLabeled = (obj) => isLabelable(obj) && ['string', 'boolean'].includes(typeof obj.label);\n\nconst move = (array, index, delta) => {\n const newIndex = index + delta;\n if (newIndex < 0 || newIndex >= array.length) {\n return;\n }\n const indexes = [index, newIndex].sort((a, b) => a - b);\n array.splice(indexes[0], 2, array[indexes[1]], array[indexes[0]]);\n};\nconst moveUp = (array, toMove) => {\n move(array, toMove, -1);\n};\nconst moveDown = (array, toMove) => {\n move(array, toMove, 1);\n};\n\nconst cellReducer = (state = [], { type, tester, cell }) => {\n switch (type) {\n case ADD_CELL:\n return state.concat([{ tester, cell }]);\n case REMOVE_CELL:\n return state.filter(t => t.tester !== tester);\n default:\n return state;\n }\n};\n\nconst configDefault = {\n restrict: false,\n trim: false,\n showUnfocusedDescription: false,\n hideRequiredAsterisk: false\n};\n\nconst applyDefaultConfiguration = (config = {}) => merge({}, configDefault, config);\nconst configReducer = (state = applyDefaultConfiguration(), action) => {\n switch (action.type) {\n case SET_CONFIG:\n return applyDefaultConfiguration(action.config);\n default:\n return state;\n }\n};\n\nconst validate = (validator, data) => {\n if (validator === undefined) {\n return [];\n }\n const valid = validator(data);\n if (valid) {\n return [];\n }\n return validator.errors;\n};\nconst initState = {\n data: {},\n schema: {},\n uischema: undefined,\n errors: [],\n validator: undefined,\n ajv: undefined,\n validationMode: 'ValidateAndShow',\n additionalErrors: []\n};\nconst reuseAjvForSchema = (ajv, schema) => {\n if (schema.hasOwnProperty('id') || schema.hasOwnProperty('$id')) {\n ajv.removeSchema(schema);\n }\n return ajv;\n};\nconst getOrCreateAjv = (state, action) => {\n if (action) {\n if (hasAjvOption(action.options)) {\n return action.options.ajv;\n }\n else if (action.options !== undefined) {\n if (isFunction(action.options.compile)) {\n return action.options;\n }\n }\n }\n if (state.ajv) {\n return action?.schema\n ? reuseAjvForSchema(state.ajv, action.schema)\n : state.ajv;\n }\n return createAjv();\n};\nconst hasAjvOption = (option) => {\n if (option) {\n return option.ajv !== undefined;\n }\n return false;\n};\nconst getValidationMode = (state, action) => {\n if (action && hasValidationModeOption(action.options)) {\n return action.options.validationMode;\n }\n return state.validationMode;\n};\nconst hasValidationModeOption = (option) => {\n if (option) {\n return option.validationMode !== undefined;\n }\n return false;\n};\nconst hasAdditionalErrorsOption = (option) => {\n if (option) {\n return option.additionalErrors !== undefined;\n }\n return false;\n};\nconst getAdditionalErrors = (state, action) => {\n if (action && hasAdditionalErrorsOption(action.options)) {\n return action.options.additionalErrors;\n }\n return state.additionalErrors;\n};\nconst coreReducer = (state = initState, action) => {\n switch (action.type) {\n case INIT: {\n const thisAjv = getOrCreateAjv(state, action);\n const validationMode = getValidationMode(state, action);\n const v = validationMode === 'NoValidation' ? undefined : thisAjv.compile(action.schema);\n const e = validate(v, action.data);\n const additionalErrors = getAdditionalErrors(state, action);\n return {\n ...state,\n data: action.data,\n schema: action.schema,\n uischema: action.uischema,\n additionalErrors,\n errors: e,\n validator: v,\n ajv: thisAjv,\n validationMode,\n };\n }\n case UPDATE_CORE: {\n const thisAjv = getOrCreateAjv(state, action);\n const validationMode = getValidationMode(state, action);\n let validator = state.validator;\n let errors = state.errors;\n if (state.schema !== action.schema ||\n state.validationMode !== validationMode ||\n state.ajv !== thisAjv) {\n validator =\n validationMode === 'NoValidation'\n ? undefined\n : thisAjv.compile(action.schema);\n errors = validate(validator, action.data);\n }\n else if (state.data !== action.data) {\n errors = validate(validator, action.data);\n }\n const additionalErrors = getAdditionalErrors(state, action);\n const stateChanged = state.data !== action.data ||\n state.schema !== action.schema ||\n state.uischema !== action.uischema ||\n state.ajv !== thisAjv ||\n state.errors !== errors ||\n state.validator !== validator ||\n state.validationMode !== validationMode ||\n state.additionalErrors !== additionalErrors;\n return stateChanged\n ? {\n ...state,\n data: action.data,\n schema: action.schema,\n uischema: action.uischema,\n ajv: thisAjv,\n errors: isEqual(errors, state.errors) ? state.errors : errors,\n validator: validator,\n validationMode: validationMode,\n additionalErrors\n }\n : state;\n }\n case SET_AJV: {\n const currentAjv = action.ajv;\n const validator = state.validationMode === 'NoValidation' ? undefined : currentAjv.compile(state.schema);\n const errors = validate(validator, state.data);\n return {\n ...state,\n validator,\n errors\n };\n }\n case SET_SCHEMA: {\n const needsNewValidator = action.schema && state.ajv && state.validationMode !== 'NoValidation';\n const v = needsNewValidator\n ? reuseAjvForSchema(state.ajv, action.schema).compile(action.schema)\n : state.validator;\n const errors = validate(v, state.data);\n return {\n ...state,\n validator: v,\n schema: action.schema,\n errors\n };\n }\n case SET_UISCHEMA: {\n return {\n ...state,\n uischema: action.uischema\n };\n }\n case UPDATE_DATA: {\n if (action.path === undefined || action.path === null) {\n return state;\n }\n else if (action.path === '') {\n const result = action.updater(cloneDeep(state.data));\n const errors = validate(state.validator, result);\n return {\n ...state,\n data: result,\n errors\n };\n }\n else {\n const oldData = get(state.data, action.path);\n const newData = action.updater(cloneDeep(oldData));\n const newState = setFp(action.path, newData, state.data === undefined ? {} : state.data);\n const errors = validate(state.validator, newState);\n return {\n ...state,\n data: newState,\n errors\n };\n }\n }\n case UPDATE_ERRORS: {\n return {\n ...state,\n errors: action.errors\n };\n }\n case SET_VALIDATION_MODE: {\n if (state.validationMode === action.validationMode) {\n return state;\n }\n if (action.validationMode === 'NoValidation') {\n const errors = validate(undefined, state.data);\n return {\n ...state,\n errors,\n validationMode: action.validationMode\n };\n }\n if (state.validationMode === 'NoValidation') {\n const validator = reuseAjvForSchema(state.ajv, state.schema).compile(state.schema);\n const errors = validate(validator, state.data);\n return {\n ...state,\n validator,\n errors,\n validationMode: action.validationMode\n };\n }\n return {\n ...state,\n validationMode: action.validationMode\n };\n }\n default:\n return state;\n }\n};\nconst extractData = (state) => get(state, 'data');\nconst extractSchema = (state) => get(state, 'schema');\nconst extractUiSchema = (state) => get(state, 'uischema');\nconst extractAjv = (state) => get(state, 'ajv');\nconst getInvalidProperty = (error) => {\n switch (error.keyword) {\n case 'required':\n case 'dependencies':\n return error.params.missingProperty;\n case 'additionalProperties':\n return error.params.additionalProperty;\n default:\n return undefined;\n }\n};\nconst getControlPath = (error) => {\n const dataPath = error.dataPath;\n if (dataPath) {\n return dataPath.replace(/\\//g, '.').substr(1);\n }\n var controlPath = error.instancePath;\n controlPath = controlPath.replace(/\\//g, '.');\n const invalidProperty = getInvalidProperty(error);\n if (invalidProperty !== undefined && !controlPath.endsWith(invalidProperty)) {\n controlPath = `${controlPath}.${invalidProperty}`;\n }\n controlPath = controlPath.replace(/^./, '');\n return controlPath;\n};\nconst errorsAt = (instancePath, schema, matchPath) => (errors) => {\n const combinatorPaths = filter(errors, error => error.keyword === 'oneOf' || error.keyword === 'anyOf').map(error => getControlPath(error));\n return filter(errors, error => {\n if (filteredErrorKeywords.indexOf(error.keyword) !== -1) {\n return false;\n }\n const controlPath = getControlPath(error);\n let result = matchPath(controlPath);\n const parentSchema = error.parentSchema;\n if (result && !isObjectSchema$1(parentSchema)\n && combinatorPaths.findIndex(p => instancePath.startsWith(p)) !== -1) {\n result = result && isEqual(parentSchema, schema);\n }\n return result;\n });\n};\nconst isObjectSchema$1 = (schema) => {\n return schema?.type === 'object' || !!schema?.properties;\n};\nconst filteredErrorKeywords = ['additionalProperties', 'allOf', 'anyOf', 'oneOf'];\nconst getErrorsAt = (instancePath, schema, matchPath) => (state) => {\n const errors = state.errors ?? [];\n const additionalErrors = state.additionalErrors ?? [];\n return errorsAt(instancePath, schema, matchPath)(state.validationMode === 'ValidateAndHide' ? additionalErrors : [...errors, ...additionalErrors]);\n};\nconst errorAt = (instancePath, schema) => getErrorsAt(instancePath, schema, path => path === instancePath);\nconst subErrorsAt = (instancePath, schema) => getErrorsAt(instancePath, schema, path => path.startsWith(instancePath));\n\nconst defaultDataReducer = (state = [], action) => {\n switch (action.type) {\n case ADD_DEFAULT_DATA:\n return state.concat([\n { schemaPath: action.schemaPath, data: action.data }\n ]);\n case REMOVE_DEFAULT_DATA:\n return state.filter(t => t.schemaPath !== action.schemaPath);\n default:\n return state;\n }\n};\nconst extractDefaultData = (state) => state;\n\nconst getI18nKeyPrefixBySchema = (schema, uischema) => {\n if (isInternationalized(uischema)) {\n return uischema.i18n;\n }\n return schema?.i18n ?? undefined;\n};\nconst transformPathToI18nPrefix = (path) => {\n return (path\n ?.split('.')\n .filter(segment => !/^\\d+$/.test(segment))\n .join('.') || 'root');\n};\nconst getI18nKeyPrefix = (schema, uischema, path) => {\n return (getI18nKeyPrefixBySchema(schema, uischema) ??\n transformPathToI18nPrefix(path));\n};\nconst getI18nKey = (schema, uischema, path, key) => {\n return `${getI18nKeyPrefix(schema, uischema, path)}.${key}`;\n};\nconst defaultTranslator = (_id, defaultMessage) => defaultMessage;\nconst defaultErrorTranslator = (error, t, uischema) => {\n const i18nKey = getI18nKey(error.parentSchema, uischema, getControlPath(error), `error.${error.keyword}`);\n const specializedKeywordMessage = t(i18nKey, undefined, { error });\n if (specializedKeywordMessage !== undefined) {\n return specializedKeywordMessage;\n }\n const genericKeywordMessage = t(`error.${error.keyword}`, undefined, { error });\n if (genericKeywordMessage !== undefined) {\n return genericKeywordMessage;\n }\n const messageCustomization = t(error.message, undefined, { error });\n if (messageCustomization !== undefined) {\n return messageCustomization;\n }\n if (error.keyword === 'required' && error.message?.startsWith('must have required property')) {\n return t('is a required property', 'is a required property', { error });\n }\n return error.message;\n};\nconst getCombinedErrorMessage = (errors, et, t, schema, uischema, path) => {\n if (errors.length > 0 && t) {\n const customErrorKey = getI18nKey(schema, uischema, path, 'error.custom');\n const specializedErrorMessage = t(customErrorKey, undefined, { schema, uischema, path, errors });\n if (specializedErrorMessage !== undefined) {\n return specializedErrorMessage;\n }\n }\n return formatErrorMessage(errors.map(error => et(error, t, uischema)));\n};\nconst deriveLabelForUISchemaElement = (uischema, t) => {\n if (uischema.label === false) {\n return undefined;\n }\n if ((uischema.label === undefined || uischema.label === null || uischema.label === true) && !isInternationalized(uischema)) {\n return undefined;\n }\n const stringifiedLabel = typeof uischema.label === 'string' ? uischema.label : JSON.stringify(uischema.label);\n const i18nKeyPrefix = getI18nKeyPrefixBySchema(undefined, uischema);\n const i18nKey = typeof i18nKeyPrefix === 'string' ? `${i18nKeyPrefix}.label` : stringifiedLabel;\n return t(i18nKey, stringifiedLabel, { uischema: uischema });\n};\n\nconst defaultJsonFormsI18nState = {\n locale: 'en',\n translate: defaultTranslator,\n translateError: defaultErrorTranslator\n};\nconst i18nReducer = (state = defaultJsonFormsI18nState, action) => {\n switch (action.type) {\n case UPDATE_I18N: {\n const locale = action.locale ?? defaultJsonFormsI18nState.locale;\n const translate = action.translator ?? defaultJsonFormsI18nState.translate;\n const translateError = action.errorTranslator ?? defaultJsonFormsI18nState.translateError;\n if (locale !== state.locale ||\n translate !== state.translate ||\n translateError !== state.translateError) {\n return {\n ...state,\n locale,\n translate,\n translateError\n };\n }\n return state;\n }\n case SET_TRANSLATOR:\n return {\n ...state,\n translate: action.translator ?? defaultTranslator,\n translateError: action.errorTranslator ?? defaultErrorTranslator\n };\n case SET_LOCALE:\n return {\n ...state,\n locale: action.locale ?? navigator.languages[0]\n };\n default:\n return state;\n }\n};\nconst fetchLocale = (state) => {\n if (state === undefined) {\n return undefined;\n }\n return state.locale;\n};\nconst fetchTranslator = (state) => {\n if (state === undefined) {\n return defaultTranslator;\n }\n return state.translate;\n};\nconst fetchErrorTranslator = (state) => {\n if (state === undefined) {\n return defaultErrorTranslator;\n }\n return state.translateError;\n};\n\nconst rendererReducer = (state = [], action) => {\n switch (action.type) {\n case ADD_RENDERER:\n return state.concat([\n { tester: action.tester, renderer: action.renderer }\n ]);\n case REMOVE_RENDERER:\n return state.filter(t => t.tester !== action.tester);\n default:\n return state;\n }\n};\n\nconst NOT_APPLICABLE = -1;\nconst isControl = (uischema) => !isEmpty(uischema) && uischema.scope !== undefined;\nconst schemaMatches = (predicate) => (uischema, schema, context) => {\n if (isEmpty(uischema) || !isControl(uischema)) {\n return false;\n }\n if (isEmpty(schema)) {\n return false;\n }\n const schemaPath = uischema.scope;\n if (isEmpty(schemaPath)) {\n return false;\n }\n let currentDataSchema = schema;\n if (hasType(schema, 'object')) {\n currentDataSchema = resolveSchema(schema, schemaPath, context?.rootSchema);\n }\n if (currentDataSchema === undefined) {\n return false;\n }\n return predicate(currentDataSchema, context?.rootSchema);\n};\nconst schemaSubPathMatches = (subPath, predicate) => (uischema, schema, context) => {\n if (isEmpty(uischema) || !isControl(uischema)) {\n return false;\n }\n const schemaPath = uischema.scope;\n let currentDataSchema = schema;\n if (hasType(schema, 'object')) {\n currentDataSchema = resolveSchema(schema, schemaPath, context?.rootSchema);\n }\n currentDataSchema = get(currentDataSchema, subPath);\n if (currentDataSchema === undefined) {\n return false;\n }\n return predicate(currentDataSchema, context?.rootSchema);\n};\nconst schemaTypeIs = (expectedType) => schemaMatches(schema => !isEmpty(schema) && hasType(schema, expectedType));\nconst formatIs = (expectedFormat) => schemaMatches(schema => !isEmpty(schema) &&\n schema.format === expectedFormat &&\n hasType(schema, 'string'));\nconst uiTypeIs = (expected) => (uischema) => !isEmpty(uischema) && uischema.type === expected;\nconst optionIs = (optionName, optionValue) => (uischema) => {\n if (isEmpty(uischema)) {\n return false;\n }\n const options = uischema.options;\n return !isEmpty(options) && options[optionName] === optionValue;\n};\nconst scopeEndsWith = (expected) => (uischema) => {\n if (isEmpty(expected) || !isControl(uischema)) {\n return false;\n }\n return endsWith(uischema.scope, expected);\n};\nconst scopeEndIs = (expected) => (uischema) => {\n if (isEmpty(expected) || !isControl(uischema)) {\n return false;\n }\n const schemaPath = uischema.scope;\n return !isEmpty(schemaPath) && last(schemaPath.split('/')) === expected;\n};\nconst and = (...testers) => (uischema, schema, context) => testers.reduce((acc, tester) => acc && tester(uischema, schema, context), true);\nconst or = (...testers) => (uischema, schema, context) => testers.reduce((acc, tester) => acc || tester(uischema, schema, context), false);\nconst rankWith = (rank, tester) => (uischema, schema, context) => {\n if (tester(uischema, schema, context)) {\n return rank;\n }\n return NOT_APPLICABLE;\n};\nconst withIncreasedRank = (by, rankedTester) => (uischema, schema, context) => {\n const rank = rankedTester(uischema, schema, context);\n if (rank === NOT_APPLICABLE) {\n return NOT_APPLICABLE;\n }\n return rank + by;\n};\nconst isBooleanControl = and(uiTypeIs('Control'), schemaTypeIs('boolean'));\nconst isObjectControl = and(uiTypeIs('Control'), schemaTypeIs('object'));\nconst isAllOfControl = and(uiTypeIs('Control'), schemaMatches(schema => schema.hasOwnProperty('allOf')));\nconst isAnyOfControl = and(uiTypeIs('Control'), schemaMatches(schema => schema.hasOwnProperty('anyOf')));\nconst isOneOfControl = and(uiTypeIs('Control'), schemaMatches(schema => schema.hasOwnProperty('oneOf')));\nconst isEnumControl = and(uiTypeIs('Control'), or(schemaMatches(schema => schema.hasOwnProperty('enum')), schemaMatches(schema => schema.hasOwnProperty('const'))));\nconst isOneOfEnumControl = and(uiTypeIs('Control'), schemaMatches(schema => schema.hasOwnProperty('oneOf') &&\n schema.oneOf.every(s => s.const !== undefined)));\nconst isIntegerControl = and(uiTypeIs('Control'), schemaTypeIs('integer'));\nconst isNumberControl = and(uiTypeIs('Control'), schemaTypeIs('number'));\nconst isStringControl = and(uiTypeIs('Control'), schemaTypeIs('string'));\nconst isMultiLineControl = and(uiTypeIs('Control'), optionIs('multi', true));\nconst isDateControl = and(uiTypeIs('Control'), or(formatIs('date'), optionIs('format', 'date')));\nconst isTimeControl = and(uiTypeIs('Control'), or(formatIs('time'), optionIs('format', 'time')));\nconst isDateTimeControl = and(uiTypeIs('Control'), or(formatIs('date-time'), optionIs('format', 'date-time')));\nconst isObjectArray = and(schemaMatches((schema, rootSchema) => hasType(schema, 'array') && !Array.isArray(resolveSchema(schema, 'items', rootSchema))\n), schemaSubPathMatches('items', (schema, rootSchema) => {\n const resolvedSchema = schema.$ref ? resolveSchema(rootSchema, schema.$ref, rootSchema) : schema;\n return hasType(resolvedSchema, 'object');\n}));\nconst isObjectArrayControl = and(uiTypeIs('Control'), isObjectArray);\nconst traverse = (any, pred, rootSchema) => {\n if (isArray(any)) {\n return reduce(any, (acc, el) => acc || traverse(el, pred, rootSchema), false);\n }\n if (pred(any)) {\n return true;\n }\n if (any.$ref) {\n const toTraverse = resolveSchema(rootSchema, any.$ref, rootSchema);\n if (toTraverse && !toTraverse.$ref) {\n return traverse(toTraverse, pred, rootSchema);\n }\n }\n if (any.items) {\n return traverse(any.items, pred, rootSchema);\n }\n if (any.properties) {\n return reduce(toPairs(any.properties), (acc, [_key, val]) => acc || traverse(val, pred, rootSchema), false);\n }\n return false;\n};\nconst isObjectArrayWithNesting = (uischema, schema, context) => {\n if (!uiTypeIs('Control')(uischema, schema, context)) {\n return false;\n }\n const schemaPath = uischema.scope;\n const resolvedSchema = resolveSchema(schema, schemaPath, context?.rootSchema ?? schema);\n let objectDepth = 0;\n if (resolvedSchema !== undefined && resolvedSchema.items !== undefined) {\n if (traverse(resolvedSchema.items, val => {\n if (val === schema) {\n return false;\n }\n if (val.$ref !== undefined) {\n return false;\n }\n if (val.anyOf || val.oneOf) {\n return true;\n }\n if (hasType(val, 'object')) {\n objectDepth++;\n if (objectDepth === 2) {\n return true;\n }\n }\n if (hasType(val, 'array')) {\n return true;\n }\n return false;\n }, context?.rootSchema)) {\n return true;\n }\n if (uischema.options && uischema.options.detail) {\n if (typeof uischema.options.detail === 'string') {\n return uischema.options.detail.toUpperCase() !== 'DEFAULT';\n }\n else if (typeof uischema.options.detail === 'object' &&\n uischema.options.detail.type) {\n return true;\n }\n }\n }\n return false;\n};\nconst isArrayObjectControl = isObjectArrayControl;\nconst isPrimitiveArrayControl = and(uiTypeIs('Control'), schemaMatches((schema, rootSchema) => deriveTypes(schema).length !== 0 &&\n !Array.isArray(resolveSchema(schema, 'items', rootSchema))\n), schemaSubPathMatches('items', (schema, rootSchema) => {\n const resolvedSchema = schema.$ref ? resolveSchema(rootSchema, schema.$ref, rootSchema) : schema;\n const types = deriveTypes(resolvedSchema);\n return (types.length === 1 &&\n includes(['integer', 'number', 'boolean', 'string'], types[0]));\n}));\nconst isRangeControl = and(uiTypeIs('Control'), or(schemaTypeIs('number'), schemaTypeIs('integer')), schemaMatches(schema => schema.hasOwnProperty('maximum') &&\n schema.hasOwnProperty('minimum') &&\n schema.hasOwnProperty('default')), optionIs('slider', true));\nconst isNumberFormatControl = and(uiTypeIs('Control'), schemaTypeIs('integer'), optionIs('format', true));\nconst isCategorization = (category) => category.type === 'Categorization';\nconst isCategory = (uischema) => uischema.type === 'Category';\nconst hasCategory = (categorization) => {\n if (isEmpty(categorization.elements)) {\n return false;\n }\n return categorization.elements\n .map(elem => isCategorization(elem) ? hasCategory(elem) : isCategory(elem))\n .reduce((prev, curr) => prev && curr, true);\n};\nconst categorizationHasCategory = (uischema) => hasCategory(uischema);\nconst not = (tester) => (uischema, schema, context) => !tester(uischema, schema, context);\n\nvar index$1 = /*#__PURE__*/Object.freeze({\n __proto__: null,\n NOT_APPLICABLE: NOT_APPLICABLE,\n isControl: isControl,\n schemaMatches: schemaMatches,\n schemaSubPathMatches: schemaSubPathMatches,\n schemaTypeIs: schemaTypeIs,\n formatIs: formatIs,\n uiTypeIs: uiTypeIs,\n optionIs: optionIs,\n scopeEndsWith: scopeEndsWith,\n scopeEndIs: scopeEndIs,\n and: and,\n or: or,\n rankWith: rankWith,\n withIncreasedRank: withIncreasedRank,\n isBooleanControl: isBooleanControl,\n isObjectControl: isObjectControl,\n isAllOfControl: isAllOfControl,\n isAnyOfControl: isAnyOfControl,\n isOneOfControl: isOneOfControl,\n isEnumControl: isEnumControl,\n isOneOfEnumControl: isOneOfEnumControl,\n isIntegerControl: isIntegerControl,\n isNumberControl: isNumberControl,\n isStringControl: isStringControl,\n isMultiLineControl: isMultiLineControl,\n isDateControl: isDateControl,\n isTimeControl: isTimeControl,\n isDateTimeControl: isDateTimeControl,\n isObjectArray: isObjectArray,\n isObjectArrayControl: isObjectArrayControl,\n isObjectArrayWithNesting: isObjectArrayWithNesting,\n isArrayObjectControl: isArrayObjectControl,\n isPrimitiveArrayControl: isPrimitiveArrayControl,\n isRangeControl: isRangeControl,\n isNumberFormatControl: isNumberFormatControl,\n isCategorization: isCategorization,\n isCategory: isCategory,\n hasCategory: hasCategory,\n categorizationHasCategory: categorizationHasCategory,\n not: not\n});\n\nconst uischemaRegistryReducer = (state = [], action) => {\n switch (action.type) {\n case ADD_UI_SCHEMA:\n return state\n .slice()\n .concat({ tester: action.tester, uischema: action.uischema });\n case REMOVE_UI_SCHEMA:\n const copy = state.slice();\n remove(copy, entry => entry.tester === action.tester);\n return copy;\n default:\n return state;\n }\n};\nconst findMatchingUISchema = (state) => (jsonSchema, schemaPath, path) => {\n const match = maxBy(state, entry => entry.tester(jsonSchema, schemaPath, path));\n if (match !== undefined &&\n match.tester(jsonSchema, schemaPath, path) !== NOT_APPLICABLE) {\n return match.uischema;\n }\n return undefined;\n};\n\nconst jsonFormsReducerConfig = {\n core: coreReducer,\n renderers: rendererReducer,\n cells: cellReducer,\n config: configReducer,\n uischemas: uischemaRegistryReducer,\n defaultData: defaultDataReducer,\n i18n: i18nReducer,\n};\nconst findUISchema = (uischemas, schema, schemaPath, path, fallback = 'VerticalLayout', control, rootSchema) => {\n if (control && control.options && control.options.detail) {\n if (typeof control.options.detail === 'string') {\n if (control.options.detail.toUpperCase() === 'GENERATE') {\n if (typeof fallback === \"function\") {\n return fallback();\n }\n return Generate.uiSchema(schema, fallback);\n }\n }\n else if (typeof control.options.detail === 'object') {\n if (control.options.detail.type &&\n typeof control.options.detail.type === 'string') {\n return control.options.detail;\n }\n }\n }\n const uiSchema = findMatchingUISchema(uischemas)(schema, schemaPath, path);\n if (uiSchema === undefined) {\n if (typeof fallback === 'function') {\n return fallback();\n }\n return Generate.uiSchema(schema, fallback, '#', rootSchema);\n }\n return uiSchema;\n};\nconst getErrorAt = (instancePath, schema) => (state) => {\n return errorAt(instancePath, schema)(state.jsonforms.core);\n};\nconst getSubErrorsAt = (instancePath, schema) => (state) => subErrorsAt(instancePath, schema)(state.jsonforms.core);\nconst getConfig = (state) => state.jsonforms.config;\nconst getLocale = (state) => fetchLocale(get(state, 'jsonforms.i18n'));\nconst getTranslator = () => (state) => fetchTranslator(get(state, 'jsonforms.i18n'));\nconst getErrorTranslator = () => (state) => fetchErrorTranslator(get(state, 'jsonforms.i18n'));\n\nconst getData = (state) => extractData(get(state, 'jsonforms.core'));\nconst getSchema = (state) => extractSchema(get(state, 'jsonforms.core'));\nconst getUiSchema = (state) => extractUiSchema(get(state, 'jsonforms.core'));\nconst getAjv = (state) => extractAjv(get(state, 'jsonforms.core'));\nconst getDefaultData = (state) => extractDefaultData(get(state, 'jsonforms.defaultData'));\nconst getRenderers = (state) => get(state, 'jsonforms.renderers');\nconst getCells = (state) => get(state, 'jsonforms.cells');\nconst getUISchemas = (state) => get(state, 'jsonforms.uischemas');\n\nconst compose = (path1, path2) => {\n let p1 = path1;\n if (!isEmpty(path1) && !isEmpty(path2) && !path2.startsWith('[')) {\n p1 = path1 + '.';\n }\n if (isEmpty(p1)) {\n return path2;\n }\n else if (isEmpty(path2)) {\n return p1;\n }\n else {\n return `${p1}${path2}`;\n }\n};\nconst toDataPathSegments = (schemaPath) => {\n const s = schemaPath\n .replace(/(anyOf|allOf|oneOf)\\/[\\d]\\//g, '')\n .replace(/(then|else)\\//g, '');\n const segments = s.split('/');\n const decodedSegments = segments.map(decode);\n const startFromRoot = decodedSegments[0] === '#' || decodedSegments[0] === '';\n const startIndex = startFromRoot ? 2 : 1;\n return range(startIndex, decodedSegments.length, 2).map(idx => decodedSegments[idx]);\n};\nconst toDataPath = (schemaPath) => {\n return toDataPathSegments(schemaPath).join('.');\n};\nconst composeWithUi = (scopableUi, path) => {\n if (!isScoped(scopableUi)) {\n return path ?? '';\n }\n const segments = toDataPathSegments(scopableUi.scope);\n if (isEmpty(segments)) {\n return path ?? '';\n }\n return compose(path, segments.join('.'));\n};\nconst encode = (segment) => segment?.replace(/~/g, '~0').replace(/\\//g, '~1');\nconst decode = (pointerSegment) => pointerSegment?.replace(/~1/g, '/').replace(/~0/, '~');\n\nconst isObjectSchema = (schema) => {\n return schema.properties !== undefined;\n};\nconst isArraySchema = (schema) => {\n return schema.type === 'array' && schema.items !== undefined;\n};\nconst resolveData = (instance, dataPath) => {\n if (isEmpty(dataPath)) {\n return instance;\n }\n const dataPathSegments = dataPath.split('.');\n return dataPathSegments\n .map(segment => decodeURIComponent(segment))\n .reduce((curInstance, decodedSegment) => {\n if (!curInstance || !curInstance.hasOwnProperty(decodedSegment)) {\n return undefined;\n }\n return curInstance[decodedSegment];\n }, instance);\n};\nconst findAllRefs = (schema, result = {}, resolveTuples = false) => {\n if (isObjectSchema(schema)) {\n Object.keys(schema.properties).forEach(key => findAllRefs(schema.properties[key], result));\n }\n if (isArraySchema(schema)) {\n if (Array.isArray(schema.items)) {\n if (resolveTuples) {\n const items = schema.items;\n items.forEach(child => findAllRefs(child, result));\n }\n }\n else {\n findAllRefs(schema.items, result);\n }\n }\n if (Array.isArray(schema.anyOf)) {\n const anyOf = schema.anyOf;\n anyOf.forEach(child => findAllRefs(child, result));\n }\n if (schema.$ref !== undefined) {\n result[schema.$ref] = schema;\n }\n return result;\n};\nconst invalidSegment = (pathSegment) => pathSegment === '#' || pathSegment === undefined || pathSegment === '';\nconst resolveSchema = (schema, schemaPath, rootSchema) => {\n const segments = schemaPath?.split('/').map(decode);\n return resolveSchemaWithSegments(schema, segments, rootSchema);\n};\nconst resolveSchemaWithSegments = (schema, pathSegments, rootSchema) => {\n if (isEmpty(schema)) {\n return undefined;\n }\n if (schema.$ref) {\n schema = resolveSchema(rootSchema, schema.$ref, rootSchema);\n }\n if (!pathSegments || pathSegments.length === 0) {\n return schema;\n }\n const [segment, ...remainingSegments] = pathSegments;\n if (invalidSegment(segment)) {\n return resolveSchemaWithSegments(schema, remainingSegments, rootSchema);\n }\n const singleSegmentResolveSchema = get(schema, segment);\n const resolvedSchema = resolveSchemaWithSegments(singleSegmentResolveSchema, remainingSegments, rootSchema);\n if (resolvedSchema) {\n return resolvedSchema;\n }\n if (segment === 'properties' || segment === 'items') {\n let alternativeResolveResult = undefined;\n const subSchemas = [].concat(schema.oneOf ?? [], schema.allOf ?? [], schema.anyOf ?? [], schema.then ?? [], schema.else ?? []);\n for (const subSchema of subSchemas) {\n alternativeResolveResult = resolveSchemaWithSegments(subSchema, [segment, ...remainingSegments], rootSchema);\n if (alternativeResolveResult) {\n break;\n }\n }\n return alternativeResolveResult;\n }\n return undefined;\n};\n\nconst isOrCondition = (condition) => condition.type === 'OR';\nconst isAndCondition = (condition) => condition.type === 'AND';\nconst isLeafCondition = (condition) => condition.type === 'LEAF';\nconst isSchemaCondition = (condition) => has(condition, 'schema');\nconst getConditionScope = (condition, path) => {\n return composeWithUi(condition, path);\n};\nconst evaluateCondition = (data, condition, path, ajv) => {\n if (isAndCondition(condition)) {\n return condition.conditions.reduce((acc, cur) => acc && evaluateCondition(data, cur, path, ajv), true);\n }\n else if (isOrCondition(condition)) {\n return condition.conditions.reduce((acc, cur) => acc || evaluateCondition(data, cur, path, ajv), false);\n }\n else if (isLeafCondition(condition)) {\n const value = resolveData(data, getConditionScope(condition, path));\n return value === condition.expectedValue;\n }\n else if (isSchemaCondition(condition)) {\n const value = resolveData(data, getConditionScope(condition, path));\n return ajv.validate(condition.schema, value);\n }\n else {\n return true;\n }\n};\nconst isRuleFulfilled = (uischema, data, path, ajv) => {\n const condition = uischema.rule.condition;\n return evaluateCondition(data, condition, path, ajv);\n};\nconst evalVisibility = (uischema, data, path = undefined, ajv) => {\n const fulfilled = isRuleFulfilled(uischema, data, path, ajv);\n switch (uischema.rule.effect) {\n case RuleEffect.HIDE:\n return !fulfilled;\n case RuleEffect.SHOW:\n return fulfilled;\n default:\n return true;\n }\n};\nconst evalEnablement = (uischema, data, path = undefined, ajv) => {\n const fulfilled = isRuleFulfilled(uischema, data, path, ajv);\n switch (uischema.rule.effect) {\n case RuleEffect.DISABLE:\n return !fulfilled;\n case RuleEffect.ENABLE:\n return fulfilled;\n default:\n return true;\n }\n};\nconst hasShowRule = (uischema) => {\n if (uischema.rule &&\n (uischema.rule.effect === RuleEffect.SHOW ||\n uischema.rule.effect === RuleEffect.HIDE)) {\n return true;\n }\n return false;\n};\nconst hasEnableRule = (uischema) => {\n if (uischema.rule &&\n (uischema.rule.effect === RuleEffect.ENABLE ||\n uischema.rule.effect === RuleEffect.DISABLE)) {\n return true;\n }\n return false;\n};\nconst isVisible = (uischema, data, path = undefined, ajv) => {\n if (uischema.rule) {\n return evalVisibility(uischema, data, path, ajv);\n }\n return true;\n};\nconst isEnabled = (uischema, data, path = undefined, ajv) => {\n if (uischema.rule) {\n return evalEnablement(uischema, data, path, ajv);\n }\n return true;\n};\nconst isInherentlyEnabled = (state, ownProps, uischema, schema, rootData, config) => {\n if (state?.jsonforms?.readonly) {\n return false;\n }\n if (uischema && hasEnableRule(uischema)) {\n return isEnabled(uischema, rootData, ownProps?.path, getAjv(state));\n }\n if (typeof uischema?.options?.readonly === 'boolean') {\n return !uischema.options.readonly;\n }\n if (typeof uischema?.options?.readOnly === 'boolean') {\n return !uischema.options.readOnly;\n }\n if (typeof config?.readonly === 'boolean') {\n return !config.readonly;\n }\n if (typeof config?.readOnly === 'boolean') {\n return !config.readOnly;\n }\n if (schema?.readOnly === true) {\n return false;\n }\n if (typeof ownProps?.enabled === 'boolean') {\n return ownProps.enabled;\n }\n return true;\n};\n\nconst convertToValidClassName = (s) => s.replace('#', 'root').replace(new RegExp('/', 'g'), '_');\nconst formatErrorMessage = (errors) => {\n if (errors === undefined || errors === null) {\n return '';\n }\n return errors.join('\\n');\n};\nconst hasType = (jsonSchema, expected) => {\n return includes(deriveTypes(jsonSchema), expected);\n};\nconst deriveTypes = (jsonSchema) => {\n if (isEmpty(jsonSchema)) {\n return [];\n }\n if (!isEmpty(jsonSchema.type) && typeof jsonSchema.type === 'string') {\n return [jsonSchema.type];\n }\n if (isArray(jsonSchema.type)) {\n return jsonSchema.type;\n }\n if (!isEmpty(jsonSchema.properties) ||\n !isEmpty(jsonSchema.additionalProperties)) {\n return ['object'];\n }\n if (!isEmpty(jsonSchema.items)) {\n return ['array'];\n }\n if (!isEmpty(jsonSchema.allOf)) {\n const allOfType = find(jsonSchema.allOf, (schema) => deriveTypes(schema).length !== 0);\n if (allOfType) {\n return deriveTypes(allOfType);\n }\n }\n return [];\n};\nconst Resolve = {\n schema: resolveSchema,\n data: resolveData\n};\nconst fromScoped = (scopable) => toDataPathSegments(scopable.scope).join('.');\nconst Paths = {\n compose: compose,\n fromScoped\n};\nconst Runtime = {\n isEnabled(uischema, data, ajv) {\n return isEnabled(uischema, data, undefined, ajv);\n },\n isVisible(uischema, data, ajv) {\n return isVisible(uischema, data, undefined, ajv);\n }\n};\n\nconst deriveLabel = (controlElement, schemaElement) => {\n if (schemaElement && typeof schemaElement.title === 'string') {\n return schemaElement.title;\n }\n if (typeof controlElement.scope === 'string') {\n const ref = controlElement.scope;\n const label = decode(ref.substr(ref.lastIndexOf('/') + 1));\n return startCase(label);\n }\n return '';\n};\nconst createCleanLabel = (label) => {\n return startCase(label.replace('_', ' '));\n};\nconst createLabelDescriptionFrom = (withLabel, schema) => {\n const labelProperty = withLabel.label;\n if (typeof labelProperty === 'boolean') {\n return labelDescription(deriveLabel(withLabel, schema), labelProperty);\n }\n if (typeof labelProperty === 'string') {\n return labelDescription(labelProperty, true);\n }\n if (typeof labelProperty === 'object') {\n const label = typeof labelProperty.text === 'string'\n ? labelProperty.text\n : deriveLabel(withLabel, schema);\n const show = typeof labelProperty.show === 'boolean' ? labelProperty.show : true;\n return labelDescription(label, show);\n }\n return labelDescription(deriveLabel(withLabel, schema), true);\n};\nconst labelDescription = (text, show) => ({\n text: text,\n show: show\n});\n\nconst isRequired = (schema, schemaPath, rootSchema) => {\n const pathSegments = schemaPath.split('/');\n const lastSegment = pathSegments[pathSegments.length - 1];\n const nextHigherSchemaSegments = pathSegments.slice(0, pathSegments.length - 2);\n const nextHigherSchemaPath = nextHigherSchemaSegments.join('/');\n const nextHigherSchema = Resolve.schema(schema, nextHigherSchemaPath, rootSchema);\n return (nextHigherSchema !== undefined &&\n nextHigherSchema.required !== undefined &&\n nextHigherSchema.required.indexOf(lastSegment) !== -1);\n};\nconst computeLabel = (label, required, hideRequiredAsterisk) => {\n return `${label ?? ''}${required && !hideRequiredAsterisk ? '*' : ''}`;\n};\nconst showAsRequired = (required, hideRequiredAsterisk) => {\n return required && !hideRequiredAsterisk;\n};\nconst createDefaultValue = (schema) => {\n switch (schema.type) {\n case 'string':\n if (schema.format === 'date-time' ||\n schema.format === 'date' ||\n schema.format === 'time') {\n return new Date();\n }\n return '';\n case 'integer':\n case 'number':\n return 0;\n case 'boolean':\n return false;\n case 'array':\n return [];\n case 'null':\n return null;\n default:\n return {};\n }\n};\nconst isDescriptionHidden = (visible, description, isFocused, showUnfocusedDescription) => {\n return (description === undefined ||\n (description !== undefined && !visible) ||\n (!showUnfocusedDescription && !isFocused));\n};\nconst enumToEnumOptionMapper = (e, t, i18nKey) => {\n let label = typeof e === 'string' ? e : JSON.stringify(e);\n if (t) {\n if (i18nKey) {\n label = t(`${i18nKey}.${label}`, label);\n }\n else {\n label = t(label, label);\n }\n }\n return { label, value: e };\n};\nconst oneOfToEnumOptionMapper = (e, t, fallbackI18nKey) => {\n let label = e.title ??\n (typeof e.const === 'string' ? e.const : JSON.stringify(e.const));\n if (t) {\n if (e.i18n) {\n label = t(e.i18n, label);\n }\n else if (fallbackI18nKey) {\n label = t(`${fallbackI18nKey}.${label}`, label);\n }\n else {\n label = t(label, label);\n }\n }\n return {\n label,\n value: e.const,\n };\n};\nconst mapStateToControlProps = (state, ownProps) => {\n const { uischema } = ownProps;\n const rootData = getData(state);\n const path = composeWithUi(uischema, ownProps.path);\n const visible = ownProps.visible === undefined || hasShowRule(uischema)\n ? isVisible(uischema, rootData, ownProps.path, getAjv(state))\n : ownProps.visible;\n const controlElement = uischema;\n const id = ownProps.id;\n const rootSchema = getSchema(state);\n const required = controlElement.scope !== undefined &&\n isRequired(ownProps.schema, controlElement.scope, rootSchema);\n const resolvedSchema = Resolve.schema(ownProps.schema || rootSchema, controlElement.scope, rootSchema);\n const errors = getErrorAt(path, resolvedSchema)(state);\n const description = resolvedSchema !== undefined ? resolvedSchema.description : '';\n const data = Resolve.data(rootData, path);\n const labelDesc = createLabelDescriptionFrom(uischema, resolvedSchema);\n const label = labelDesc.show ? labelDesc.text : '';\n const config = getConfig(state);\n const enabled = isInherentlyEnabled(state, ownProps, uischema, resolvedSchema || rootSchema, rootData, config);\n const schema = resolvedSchema ?? rootSchema;\n const t = getTranslator()(state);\n const te = getErrorTranslator()(state);\n const i18nLabel = t(getI18nKey(schema, uischema, path, 'label'), label, { schema, uischema, path, errors });\n const i18nDescription = t(getI18nKey(schema, uischema, path, 'description'), description, { schema, uischema, path, errors });\n const i18nErrorMessage = getCombinedErrorMessage(errors, te, t, schema, uischema, path);\n return {\n data,\n description: i18nDescription,\n errors: i18nErrorMessage,\n label: i18nLabel,\n visible,\n enabled,\n id,\n path,\n required,\n uischema,\n schema,\n config: getConfig(state),\n cells: ownProps.cells || state.jsonforms.cells,\n rootSchema\n };\n};\nconst mapDispatchToControlProps = (dispatch) => ({\n handleChange(path, value) {\n dispatch(update(path, () => value));\n }\n});\nconst mapStateToEnumControlProps = (state, ownProps) => {\n const props = mapStateToControlProps(state, ownProps);\n const options = ownProps.options ||\n props.schema.enum?.map(e => enumToEnumOptionMapper(e, getTranslator()(state), getI18nKeyPrefix(props.schema, props.uischema, props.path))) ||\n (props.schema.const && [\n enumToEnumOptionMapper(props.schema.const, getTranslator()(state), getI18nKeyPrefix(props.schema, props.uischema, props.path))\n ]);\n return {\n ...props,\n options\n };\n};\nconst mapStateToOneOfEnumControlProps = (state, ownProps) => {\n const props = mapStateToControlProps(state, ownProps);\n const options = ownProps.options ||\n props.schema.oneOf?.map(oneOfSubSchema => oneOfToEnumOptionMapper(oneOfSubSchema, getTranslator()(state), getI18nKeyPrefix(props.schema, props.uischema, props.path)));\n return {\n ...props,\n options\n };\n};\nconst mapStateToMultiEnumControlProps = (state, ownProps) => {\n const props = mapStateToControlProps(state, ownProps);\n const items = props.schema.items;\n const options = ownProps.options ||\n (items?.oneOf &&\n items.oneOf.map(oneOfSubSchema => oneOfToEnumOptionMapper(oneOfSubSchema, state.jsonforms.i18n?.translate, getI18nKeyPrefix(props.schema, props.uischema, props.path)))) ||\n items?.enum?.map(e => enumToEnumOptionMapper(e, state.jsonforms.i18n?.translate, getI18nKeyPrefix(props.schema, props.uischema, props.path)));\n return {\n ...props,\n options\n };\n};\nconst mapStateToMasterListItemProps = (state, ownProps) => {\n const { schema, path, index } = ownProps;\n const firstPrimitiveProp = schema.properties\n ? find(Object.keys(schema.properties), propName => {\n const prop = schema.properties[propName];\n return (prop.type === 'string' ||\n prop.type === 'number' ||\n prop.type === 'integer');\n })\n : undefined;\n const childPath = compose(path, `${index}`);\n const childData = Resolve.data(getData(state), childPath);\n const childLabel = firstPrimitiveProp ? childData[firstPrimitiveProp] : '';\n return {\n ...ownProps,\n childLabel\n };\n};\nconst mapStateToControlWithDetailProps = (state, ownProps) => {\n const { ...props } = mapStateToControlProps(state, ownProps);\n return {\n ...props,\n uischemas: state.jsonforms.uischemas\n };\n};\nconst mapStateToArrayControlProps = (state, ownProps) => {\n const { path, schema, uischema, ...props } = mapStateToControlWithDetailProps(state, ownProps);\n const resolvedSchema = Resolve.schema(schema, 'items', props.rootSchema);\n const childErrors = getSubErrorsAt(path, resolvedSchema)(state);\n return {\n ...props,\n path,\n uischema,\n schema: resolvedSchema,\n childErrors,\n renderers: ownProps.renderers || getRenderers(state),\n cells: ownProps.cells || getCells(state)\n };\n};\nconst mapDispatchToArrayControlProps = (dispatch) => ({\n addItem: (path, value) => () => {\n dispatch(update(path, array => {\n if (array === undefined || array === null) {\n return [value];\n }\n array.push(value);\n return array;\n }));\n },\n removeItems: (path, toDelete) => () => {\n dispatch(update(path, array => {\n toDelete\n .sort()\n .reverse()\n .forEach(s => array.splice(s, 1));\n return array;\n }));\n },\n moveUp: (path, toMove) => () => {\n dispatch(update(path, array => {\n moveUp(array, toMove);\n return array;\n }));\n },\n moveDown: (path, toMove) => () => {\n dispatch(update(path, array => {\n moveDown(array, toMove);\n return array;\n }));\n }\n});\nconst mapDispatchToMultiEnumProps = (dispatch) => ({\n addItem: (path, value) => {\n dispatch(update(path, data => {\n if (data === undefined || data === null) {\n return [value];\n }\n data.push(value);\n return data;\n }));\n },\n removeItem: (path, toDelete) => {\n dispatch(update(path, data => {\n const indexInData = data.indexOf(toDelete);\n data.splice(indexInData, 1);\n return data;\n }));\n }\n});\nconst layoutDefaultProps = {\n visible: true,\n enabled: true,\n path: '',\n direction: 'column'\n};\nconst getDirection = (uischema) => {\n if (uischema.type === 'HorizontalLayout') {\n return 'row';\n }\n if (uischema.type === 'VerticalLayout') {\n return 'column';\n }\n return layoutDefaultProps.direction;\n};\nconst mapStateToLayoutProps = (state, ownProps) => {\n const rootData = getData(state);\n const { uischema } = ownProps;\n const visible = ownProps.visible === undefined || hasShowRule(uischema)\n ? isVisible(ownProps.uischema, rootData, ownProps.path, getAjv(state))\n : ownProps.visible;\n const data = Resolve.data(rootData, ownProps.path);\n const config = getConfig(state);\n const enabled = isInherentlyEnabled(state, ownProps, uischema, undefined,\n rootData, config);\n const t = getTranslator()(state);\n const label = isLabelable(uischema) ? deriveLabelForUISchemaElement(uischema, t) : undefined;\n return {\n ...layoutDefaultProps,\n renderers: ownProps.renderers || getRenderers(state),\n cells: ownProps.cells || getCells(state),\n visible,\n enabled,\n path: ownProps.path,\n data,\n uischema: ownProps.uischema,\n schema: ownProps.schema,\n direction: ownProps.direction ?? getDirection(uischema),\n config,\n label\n };\n};\nconst mapStateToJsonFormsRendererProps = (state, ownProps) => {\n return {\n renderers: ownProps.renderers || get(state.jsonforms, 'renderers'),\n cells: ownProps.cells || get(state.jsonforms, 'cells'),\n schema: ownProps.schema || getSchema(state),\n rootSchema: getSchema(state),\n uischema: ownProps.uischema || getUiSchema(state),\n path: ownProps.path,\n enabled: ownProps.enabled,\n config: getConfig(state)\n };\n};\nconst controlDefaultProps = {\n ...layoutDefaultProps,\n errors: []\n};\nconst mapStateToCombinatorRendererProps = (state, ownProps, keyword) => {\n const { data, schema, rootSchema, ...props } = mapStateToControlProps(state, ownProps);\n const ajv = state.jsonforms.core.ajv;\n const structuralKeywords = [\n 'required',\n 'additionalProperties',\n 'type',\n 'enum',\n 'const'\n ];\n const dataIsValid = (errors) => {\n return (!errors ||\n errors.length === 0 ||\n !errors.find(e => structuralKeywords.indexOf(e.keyword) !== -1));\n };\n let indexOfFittingSchema;\n for (let i = 0; i < schema[keyword]?.length; i++) {\n try {\n let _schema = schema[keyword][i];\n if (_schema.$ref) {\n _schema = Resolve.schema(rootSchema, _schema.$ref, rootSchema);\n }\n const valFn = ajv.compile(_schema);\n valFn(data);\n if (dataIsValid(valFn.errors)) {\n indexOfFittingSchema = i;\n break;\n }\n }\n catch (error) {\n console.debug(\"Combinator subschema is not self contained, can't hand it over to AJV\");\n }\n }\n return {\n data,\n schema,\n rootSchema,\n ...props,\n indexOfFittingSchema,\n uischemas: getUISchemas(state)\n };\n};\nconst mapStateToAllOfProps = (state, ownProps) => mapStateToCombinatorRendererProps(state, ownProps, 'allOf');\nconst mapStateToAnyOfProps = (state, ownProps) => {\n return mapStateToCombinatorRendererProps(state, ownProps, 'anyOf');\n};\nconst mapStateToOneOfProps = (state, ownProps) => {\n return mapStateToCombinatorRendererProps(state, ownProps, 'oneOf');\n};\nconst mapStateToArrayLayoutProps = (state, ownProps) => {\n const { path, schema, uischema, errors, ...props } = mapStateToControlWithDetailProps(state, ownProps);\n const resolvedSchema = Resolve.schema(schema, 'items', props.rootSchema);\n const childErrors = getCombinedErrorMessage(getSubErrorsAt(path, resolvedSchema)(state), getErrorTranslator()(state), getTranslator()(state), undefined, undefined, undefined);\n const allErrors = errors +\n (errors.length > 0 && childErrors.length > 0 ? '\\n' : '') +\n childErrors;\n return {\n ...props,\n path,\n uischema,\n schema: resolvedSchema,\n data: props.data ? props.data.length : 0,\n errors: allErrors,\n minItems: schema.minItems\n };\n};\nconst mapStateToLabelProps = (state, props) => {\n const { uischema } = props;\n const visible = props.visible === undefined || hasShowRule(uischema)\n ? isVisible(props.uischema, getData(state), props.path, getAjv(state))\n : props.visible;\n const text = uischema.text;\n const t = getTranslator()(state);\n const i18nKeyPrefix = getI18nKeyPrefixBySchema(undefined, uischema);\n const i18nKey = i18nKeyPrefix ? `${i18nKeyPrefix}.text` : text ?? '';\n const i18nText = t(i18nKey, text, { uischema });\n return {\n text: i18nText,\n visible,\n config: getConfig(state),\n renderers: props.renderers || getRenderers(state),\n cells: props.cells || getCells(state),\n };\n};\n\nconst mapStateToCellProps = (state, ownProps) => {\n const { id, schema, path, uischema, renderers, cells } = ownProps;\n const rootData = getData(state);\n const visible = ownProps.visible !== undefined\n ? ownProps.visible\n : isVisible(uischema, rootData, undefined, getAjv(state));\n const rootSchema = getSchema(state);\n const config = getConfig(state);\n let enabled;\n if (state.jsonforms.readonly === true) {\n enabled = false;\n }\n else if (typeof ownProps.enabled === 'boolean') {\n enabled = ownProps.enabled;\n }\n else {\n enabled = isInherentlyEnabled(state, ownProps, uischema, schema || rootSchema, rootData, config);\n }\n const errors = formatErrorMessage(union(getErrorAt(path, schema)(state).map(error => error.message)));\n const isValid = isEmpty(errors);\n return {\n data: Resolve.data(rootData, path),\n visible,\n enabled,\n id,\n path,\n errors,\n isValid,\n schema,\n uischema,\n config: getConfig(state),\n rootSchema,\n renderers,\n cells\n };\n};\nconst mapStateToDispatchCellProps = (state, ownProps) => {\n const props = mapStateToCellProps(state, ownProps);\n const { renderers, cells, ...otherOwnProps } = ownProps;\n return {\n ...props,\n ...otherOwnProps,\n cells: cells || state.jsonforms.cells || []\n };\n};\nconst defaultMapStateToEnumCellProps = (state, ownProps) => {\n const props = mapStateToCellProps(state, ownProps);\n const options = ownProps.options ||\n props.schema.enum?.map(e => enumToEnumOptionMapper(e, getTranslator()(state), getI18nKeyPrefix(props.schema, props.uischema, props.path))) ||\n (props.schema.const && [\n enumToEnumOptionMapper(props.schema.const, getTranslator()(state), getI18nKeyPrefix(props.schema, props.uischema, props.path))\n ]);\n return {\n ...props,\n options\n };\n};\nconst mapStateToOneOfEnumCellProps = (state, ownProps) => {\n const props = mapStateToCellProps(state, ownProps);\n const options = ownProps.options ||\n props.schema.oneOf?.map(oneOfSubSchema => oneOfToEnumOptionMapper(oneOfSubSchema, getTranslator()(state), getI18nKeyPrefix(props.schema, props.uischema, props.path)));\n return {\n ...props,\n options\n };\n};\nconst mapDispatchToCellProps = mapDispatchToControlProps;\nconst defaultMapDispatchToControlProps =\n(dispatch, ownProps) => {\n const { handleChange } = mapDispatchToCellProps(dispatch);\n return {\n handleChange: ownProps.handleChange || handleChange\n };\n};\n\nconst createLabel = (subSchema, subSchemaIndex, keyword) => {\n if (subSchema.title) {\n return subSchema.title;\n }\n else {\n return keyword + '-' + subSchemaIndex;\n }\n};\nconst createCombinatorRenderInfos = (combinatorSubSchemas, rootSchema, keyword, control, path, uischemas) => combinatorSubSchemas.map((subSchema, subSchemaIndex) => {\n const schema = subSchema.$ref ? Resolve.schema(rootSchema, subSchema.$ref, rootSchema) : subSchema;\n return {\n schema,\n uischema: findUISchema(uischemas, schema, control.scope, path, undefined, control, rootSchema),\n label: createLabel(subSchema, subSchemaIndex, keyword)\n };\n});\n\nconst usedIds = new Set();\nconst makeId = (idBase, iteration) => iteration <= 1 ? idBase : idBase + iteration.toString();\nconst isUniqueId = (idBase, iteration) => {\n const newID = makeId(idBase, iteration);\n return !usedIds.has(newID);\n};\nconst createId = (proposedId) => {\n if (proposedId === undefined) {\n proposedId = 'undefined';\n }\n let tries = 0;\n while (!isUniqueId(proposedId, tries)) {\n tries++;\n }\n const newID = makeId(proposedId, tries);\n usedIds.add(newID);\n return newID;\n};\nconst removeId = (id) => usedIds.delete(id);\nconst clearAllIds = () => usedIds.clear();\n\nconst getFirstPrimitiveProp = (schema) => {\n if (schema.properties) {\n return find(Object.keys(schema.properties), propName => {\n const prop = schema.properties[propName];\n return (prop.type === 'string' ||\n prop.type === 'number' ||\n prop.type === 'integer');\n });\n }\n return undefined;\n};\n\nconst setReadonlyPropertyValue = (value) => (child) => {\n if (!child.options) {\n child.options = {};\n }\n child.options.readonly = value;\n};\nconst setReadonly = (uischema) => {\n iterateSchema(uischema, setReadonlyPropertyValue(true));\n};\nconst unsetReadonly = (uischema) => {\n iterateSchema(uischema, setReadonlyPropertyValue(false));\n};\nconst iterateSchema = (uischema, toApply) => {\n if (isEmpty(uischema)) {\n return;\n }\n if (isLayout(uischema)) {\n uischema.elements.forEach(child => iterateSchema(child, toApply));\n return;\n }\n toApply(uischema);\n};\n\nconst createAjv = (options) => {\n const ajv = new Ajv({\n allErrors: true,\n verbose: true,\n strict: false,\n ...options\n });\n addFormats(ajv);\n return ajv;\n};\n\nconst createLayout = (layoutType) => ({\n type: layoutType,\n elements: []\n});\nconst createControlElement = (ref) => ({\n type: 'Control',\n scope: ref\n});\nconst wrapInLayoutIfNecessary = (uischema, layoutType) => {\n if (!isEmpty(uischema) && !isLayout(uischema)) {\n const verticalLayout = createLayout(layoutType);\n verticalLayout.elements.push(uischema);\n return verticalLayout;\n }\n return uischema;\n};\nconst addLabel = (layout, labelName) => {\n if (!isEmpty(labelName)) {\n const fixedLabel = startCase(labelName);\n if (isGroup(layout)) {\n layout.label = fixedLabel;\n }\n else {\n const label = {\n type: 'Label',\n text: fixedLabel\n };\n layout.elements.push(label);\n }\n }\n};\nconst isCombinator = (jsonSchema) => {\n return (!isEmpty(jsonSchema) &&\n (!isEmpty(jsonSchema.oneOf) ||\n !isEmpty(jsonSchema.anyOf) ||\n !isEmpty(jsonSchema.allOf)));\n};\nconst generateUISchema = (jsonSchema, schemaElements, currentRef, schemaName, layoutType, rootSchema) => {\n if (!isEmpty(jsonSchema) && jsonSchema.$ref !== undefined) {\n return generateUISchema(resolveSchema(rootSchema, jsonSchema.$ref, rootSchema), schemaElements, currentRef, schemaName, layoutType, rootSchema);\n }\n if (isCombinator(jsonSchema)) {\n const controlObject = createControlElement(currentRef);\n schemaElements.push(controlObject);\n return controlObject;\n }\n const types = deriveTypes(jsonSchema);\n if (types.length === 0) {\n return null;\n }\n if (types.length > 1) {\n const controlObject = createControlElement(currentRef);\n schemaElements.push(controlObject);\n return controlObject;\n }\n if (currentRef === '#' && types[0] === 'object') {\n const layout = createLayout(layoutType);\n schemaElements.push(layout);\n if (jsonSchema.properties && keys(jsonSchema.properties).length > 1) {\n addLabel(layout, schemaName);\n }\n if (!isEmpty(jsonSchema.properties)) {\n const nextRef = currentRef + '/properties';\n Object.keys(jsonSchema.properties).map(propName => {\n let value = jsonSchema.properties[propName];\n const ref = `${nextRef}/${encode(propName)}`;\n if (value.$ref !== undefined) {\n value = resolveSchema(rootSchema, value.$ref, rootSchema);\n }\n generateUISchema(value, layout.elements, ref, propName, layoutType, rootSchema);\n });\n }\n return layout;\n }\n switch (types[0]) {\n case 'object':\n case 'array':\n case 'string':\n case 'number':\n case 'integer':\n case 'boolean':\n const controlObject = createControlElement(currentRef);\n schemaElements.push(controlObject);\n return controlObject;\n default:\n throw new Error('Unknown type: ' + JSON.stringify(jsonSchema));\n }\n};\nconst generateDefaultUISchema = (jsonSchema, layoutType = 'VerticalLayout', prefix = '#', rootSchema = jsonSchema) => wrapInLayoutIfNecessary(generateUISchema(jsonSchema, [], prefix, '', layoutType, rootSchema), layoutType);\n\nconst Generate = {\n jsonSchema: generateJsonSchema,\n uiSchema: generateDefaultUISchema,\n controlElement: createControlElement\n};\n\nconst INIT = 'jsonforms/INIT';\nconst UPDATE_CORE = `jsonforms/UPDATE_CORE`;\nconst SET_AJV = 'jsonforms/SET_AJV';\nconst UPDATE_DATA = 'jsonforms/UPDATE';\nconst UPDATE_ERRORS = 'jsonforms/UPDATE_ERRORS';\nconst VALIDATE = 'jsonforms/VALIDATE';\nconst ADD_RENDERER = 'jsonforms/ADD_RENDERER';\nconst REMOVE_RENDERER = 'jsonforms/REMOVE_RENDERER';\nconst ADD_CELL = 'jsonforms/ADD_CELL';\nconst REMOVE_CELL = 'jsonforms/REMOVE_CELL';\nconst SET_CONFIG = 'jsonforms/SET_CONFIG';\nconst ADD_UI_SCHEMA = `jsonforms/ADD_UI_SCHEMA`;\nconst REMOVE_UI_SCHEMA = `jsonforms/REMOVE_UI_SCHEMA`;\nconst SET_SCHEMA = `jsonforms/SET_SCHEMA`;\nconst SET_UISCHEMA = `jsonforms/SET_UISCHEMA`;\nconst SET_VALIDATION_MODE = 'jsonforms/SET_VALIDATION_MODE';\nconst SET_LOCALE = `jsonforms/SET_LOCALE`;\nconst SET_TRANSLATOR = 'jsonforms/SET_TRANSLATOR';\nconst UPDATE_I18N = 'jsonforms/UPDATE_I18N';\nconst ADD_DEFAULT_DATA = `jsonforms/ADD_DEFAULT_DATA`;\nconst REMOVE_DEFAULT_DATA = `jsonforms/REMOVE_DEFAULT_DATA`;\nconst init = (data, schema = generateJsonSchema(data), uischema, options) => ({\n type: INIT,\n data,\n schema,\n uischema: typeof uischema === 'object' ? uischema : generateDefaultUISchema(schema),\n options\n});\nconst updateCore = (data, schema, uischema, options) => ({\n type: UPDATE_CORE,\n data,\n schema,\n uischema,\n options\n});\nconst registerDefaultData = (schemaPath, data) => ({\n type: ADD_DEFAULT_DATA,\n schemaPath,\n data\n});\nconst unregisterDefaultData = (schemaPath) => ({\n type: REMOVE_DEFAULT_DATA,\n schemaPath\n});\nconst setAjv = (ajv) => ({\n type: SET_AJV,\n ajv\n});\nconst update = (path, updater) => ({\n type: UPDATE_DATA,\n path,\n updater\n});\nconst updateErrors = (errors) => ({\n type: UPDATE_ERRORS,\n errors\n});\nconst registerRenderer = (tester, renderer) => ({\n type: ADD_RENDERER,\n tester,\n renderer\n});\nconst registerCell = (tester, cell) => ({\n type: ADD_CELL,\n tester,\n cell\n});\nconst unregisterCell = (tester, cell) => ({\n type: REMOVE_CELL,\n tester,\n cell\n});\nconst unregisterRenderer = (tester, renderer) => ({\n type: REMOVE_RENDERER,\n tester,\n renderer\n});\nconst setConfig = (config) => ({\n type: SET_CONFIG,\n config\n});\nconst setValidationMode = (validationMode) => ({\n type: SET_VALIDATION_MODE,\n validationMode\n});\nconst registerUISchema = (tester, uischema) => {\n return {\n type: ADD_UI_SCHEMA,\n tester,\n uischema\n };\n};\nconst unregisterUISchema = (tester) => {\n return {\n type: REMOVE_UI_SCHEMA,\n tester\n };\n};\nconst setLocale = (locale) => ({\n type: SET_LOCALE,\n locale\n});\nconst setSchema = (schema) => ({\n type: SET_SCHEMA,\n schema\n});\nconst setTranslator = (translator, errorTranslator) => ({\n type: SET_TRANSLATOR,\n translator,\n errorTranslator\n});\nconst updateI18n = (locale, translator, errorTranslator) => ({\n type: UPDATE_I18N,\n locale,\n translator,\n errorTranslator\n});\nconst setUISchema = (uischema) => ({\n type: SET_UISCHEMA,\n uischema\n});\n\nvar index = /*#__PURE__*/Object.freeze({\n __proto__: null,\n INIT: INIT,\n UPDATE_CORE: UPDATE_CORE,\n SET_AJV: SET_AJV,\n UPDATE_DATA: UPDATE_DATA,\n UPDATE_ERRORS: UPDATE_ERRORS,\n VALIDATE: VALIDATE,\n ADD_RENDERER: ADD_RENDERER,\n REMOVE_RENDERER: REMOVE_RENDERER,\n ADD_CELL: ADD_CELL,\n REMOVE_CELL: REMOVE_CELL,\n SET_CONFIG: SET_CONFIG,\n ADD_UI_SCHEMA: ADD_UI_SCHEMA,\n REMOVE_UI_SCHEMA: REMOVE_UI_SCHEMA,\n SET_SCHEMA: SET_SCHEMA,\n SET_UISCHEMA: SET_UISCHEMA,\n SET_VALIDATION_MODE: SET_VALIDATION_MODE,\n SET_LOCALE: SET_LOCALE,\n SET_TRANSLATOR: SET_TRANSLATOR,\n UPDATE_I18N: UPDATE_I18N,\n ADD_DEFAULT_DATA: ADD_DEFAULT_DATA,\n REMOVE_DEFAULT_DATA: REMOVE_DEFAULT_DATA,\n init: init,\n updateCore: updateCore,\n registerDefaultData: registerDefaultData,\n unregisterDefaultData: unregisterDefaultData,\n setAjv: setAjv,\n update: update,\n updateErrors: updateErrors,\n registerRenderer: registerRenderer,\n registerCell: registerCell,\n unregisterCell: unregisterCell,\n unregisterRenderer: unregisterRenderer,\n setConfig: setConfig,\n setValidationMode: setValidationMode,\n registerUISchema: registerUISchema,\n unregisterUISchema: unregisterUISchema,\n setLocale: setLocale,\n setSchema: setSchema,\n setTranslator: setTranslator,\n updateI18n: updateI18n,\n setUISchema: setUISchema\n});\n\nconst Helpers = {\n createLabelDescriptionFrom,\n convertToValidClassName\n};\n\nexport { ADD_CELL, ADD_DEFAULT_DATA, ADD_RENDERER, ADD_UI_SCHEMA, index as Actions, Draft4, Generate, Helpers, INIT, NOT_APPLICABLE, Paths, REMOVE_CELL, REMOVE_DEFAULT_DATA, REMOVE_RENDERER, REMOVE_UI_SCHEMA, Resolve, RuleEffect, Runtime, SET_AJV, SET_CONFIG, SET_LOCALE, SET_SCHEMA, SET_TRANSLATOR, SET_UISCHEMA, SET_VALIDATION_MODE, index$1 as Test, UPDATE_CORE, UPDATE_DATA, UPDATE_ERRORS, UPDATE_I18N, VALIDATE, and, categorizationHasCategory, cellReducer, clearAllIds, compose, compose as composePaths, composeWithUi, computeLabel, configReducer, controlDefaultProps, convertToValidClassName, coreReducer, createAjv, createCleanLabel, createCombinatorRenderInfos, createControlElement, createDefaultValue, createId, createLabelDescriptionFrom, decode, defaultDataReducer, defaultErrorTranslator, defaultJsonFormsI18nState, defaultMapDispatchToControlProps, defaultMapStateToEnumCellProps, defaultTranslator, deriveLabelForUISchemaElement, deriveTypes, encode, enumToEnumOptionMapper, errorAt, errorsAt, evalEnablement, evalVisibility, extractAjv, extractData, extractDefaultData, extractSchema, extractUiSchema, fetchErrorTranslator, fetchLocale, fetchTranslator, findAllRefs, findMatchingUISchema, findUISchema, formatErrorMessage, formatIs, generateDefaultUISchema, generateJsonSchema, getAjv, getCells, getCombinedErrorMessage, getConfig, getControlPath, getData, getDefaultData, getErrorAt, getErrorTranslator, getFirstPrimitiveProp, getI18nKey, getI18nKeyPrefix, getI18nKeyPrefixBySchema, getLocale, getRenderers, getSchema, getSubErrorsAt, getTranslator, getUISchemas, getUiSchema, hasCategory, hasEnableRule, hasShowRule, hasType, i18nReducer, init, isAllOfControl, isAnyOfControl, isArrayObjectControl, isBooleanControl, isCategorization, isCategory, isControl, isDateControl, isDateTimeControl, isDescriptionHidden, isEnabled, isEnumControl, isGroup, isInherentlyEnabled, isIntegerControl, isInternationalized, isLabelable, isLabeled, isLayout, isMultiLineControl, isNumberControl, isNumberFormatControl, isObjectArray, isObjectArrayControl, isObjectArrayWithNesting, isObjectControl, isOneOfControl, isOneOfEnumControl, isPrimitiveArrayControl, isRangeControl, isScopable, isScoped, isStringControl, isTimeControl, isVisible, iterateSchema, jsonFormsReducerConfig, layoutDefaultProps, mapDispatchToArrayControlProps, mapDispatchToCellProps, mapDispatchToControlProps, mapDispatchToMultiEnumProps, mapStateToAllOfProps, mapStateToAnyOfProps, mapStateToArrayControlProps, mapStateToArrayLayoutProps, mapStateToCellProps, mapStateToCombinatorRendererProps, mapStateToControlProps, mapStateToControlWithDetailProps, mapStateToDispatchCellProps, mapStateToEnumControlProps, mapStateToJsonFormsRendererProps, mapStateToLabelProps, mapStateToLayoutProps, mapStateToMasterListItemProps, mapStateToMultiEnumControlProps, mapStateToOneOfEnumCellProps, mapStateToOneOfEnumControlProps, mapStateToOneOfProps, moveDown, moveUp, not, oneOfToEnumOptionMapper, optionIs, or, rankWith, registerCell, registerDefaultData, registerRenderer, registerUISchema, removeId, rendererReducer, resolveData, resolveSchema, schemaMatches, schemaSubPathMatches, schemaTypeIs, scopeEndIs, scopeEndsWith, setAjv, setConfig, setLocale, setReadonly, setSchema, setTranslator, setUISchema, setValidationMode, showAsRequired, subErrorsAt, toDataPath, toDataPathSegments, transformPathToI18nPrefix, uiTypeIs, uischemaRegistryReducer, unregisterCell, unregisterDefaultData, unregisterRenderer, unregisterUISchema, unsetReadonly, update, updateCore, updateErrors, updateI18n, validate, withIncreasedRank };\n//# sourceMappingURL=jsonforms-core.esm.js.map\n"],"sourceRoot":""}