@nmshd/runtime 4.6.0 → 4.7.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.
- package/dist/Runtime.d.ts.map +1 -1
- package/dist/Runtime.js +3 -0
- package/dist/Runtime.js.map +1 -1
- package/dist/buildInformation.js +5 -5
- package/dist/dataViews/DataViewExpander.d.ts +1 -2
- package/dist/dataViews/DataViewExpander.d.ts.map +1 -1
- package/dist/dataViews/DataViewExpander.js.map +1 -1
- package/dist/events/EventProxy.d.ts.map +1 -1
- package/dist/events/EventProxy.js +3 -0
- package/dist/events/EventProxy.js.map +1 -1
- package/dist/events/transport/IdentityDeletionProcessStatusChangedEvent.d.ts +7 -0
- package/dist/events/transport/IdentityDeletionProcessStatusChangedEvent.d.ts.map +1 -0
- package/dist/events/transport/IdentityDeletionProcessStatusChangedEvent.js +12 -0
- package/dist/events/transport/IdentityDeletionProcessStatusChangedEvent.js.map +1 -0
- package/dist/events/transport/index.d.ts +1 -0
- package/dist/events/transport/index.d.ts.map +1 -1
- package/dist/events/transport/index.js +1 -0
- package/dist/events/transport/index.js.map +1 -1
- package/dist/extensibility/TransportServices.d.ts +4 -2
- package/dist/extensibility/TransportServices.d.ts.map +1 -1
- package/dist/extensibility/TransportServices.js +8 -2
- package/dist/extensibility/TransportServices.js.map +1 -1
- package/dist/extensibility/facades/transport/IdentityDeletionProcessesFacade.d.ts +21 -0
- package/dist/extensibility/facades/transport/IdentityDeletionProcessesFacade.d.ts.map +1 -0
- package/dist/extensibility/facades/transport/IdentityDeletionProcessesFacade.js +67 -0
- package/dist/extensibility/facades/transport/IdentityDeletionProcessesFacade.js.map +1 -0
- package/dist/extensibility/facades/transport/index.d.ts +1 -0
- package/dist/extensibility/facades/transport/index.d.ts.map +1 -1
- package/dist/extensibility/facades/transport/index.js +1 -0
- package/dist/extensibility/facades/transport/index.js.map +1 -1
- package/dist/types/transport/IdentityDeletionProcessDTO.d.ts +15 -0
- package/dist/types/transport/IdentityDeletionProcessDTO.d.ts.map +1 -0
- package/dist/types/transport/IdentityDeletionProcessDTO.js +3 -0
- package/dist/types/transport/IdentityDeletionProcessDTO.js.map +1 -0
- package/dist/types/transport/index.d.ts +1 -0
- package/dist/types/transport/index.d.ts.map +1 -1
- package/dist/types/transport/index.js +1 -0
- package/dist/types/transport/index.js.map +1 -1
- package/dist/useCases/common/RuntimeErrors.d.ts +7 -0
- package/dist/useCases/common/RuntimeErrors.d.ts.map +1 -1
- package/dist/useCases/common/RuntimeErrors.js +15 -0
- package/dist/useCases/common/RuntimeErrors.js.map +1 -1
- package/dist/useCases/common/Schemas.d.ts +1 -0
- package/dist/useCases/common/Schemas.d.ts.map +1 -1
- package/dist/useCases/common/Schemas.js +24 -2
- package/dist/useCases/common/Schemas.js.map +1 -1
- package/dist/useCases/common/validation/ValidatableStrings.d.ts +4 -0
- package/dist/useCases/common/validation/ValidatableStrings.d.ts.map +1 -1
- package/dist/useCases/transport/account/SyncEverything.d.ts +2 -1
- package/dist/useCases/transport/account/SyncEverything.d.ts.map +1 -1
- package/dist/useCases/transport/account/SyncEverything.js +6 -3
- package/dist/useCases/transport/account/SyncEverything.js.map +1 -1
- package/dist/useCases/transport/identityDeletionProcesses/ApproveIdentityDeletionProcess.d.ts +11 -0
- package/dist/useCases/transport/identityDeletionProcesses/ApproveIdentityDeletionProcess.d.ts.map +1 -0
- package/dist/useCases/transport/identityDeletionProcesses/ApproveIdentityDeletionProcess.js +44 -0
- package/dist/useCases/transport/identityDeletionProcesses/ApproveIdentityDeletionProcess.js.map +1 -0
- package/dist/useCases/transport/identityDeletionProcesses/CancelIdentityDeletionProcess.d.ts +11 -0
- package/dist/useCases/transport/identityDeletionProcesses/CancelIdentityDeletionProcess.d.ts.map +1 -0
- package/dist/useCases/transport/identityDeletionProcesses/CancelIdentityDeletionProcess.js +44 -0
- package/dist/useCases/transport/identityDeletionProcesses/CancelIdentityDeletionProcess.js.map +1 -0
- package/dist/useCases/transport/identityDeletionProcesses/GetActiveIdentityDeletionProcess.d.ts +10 -0
- package/dist/useCases/transport/identityDeletionProcesses/GetActiveIdentityDeletionProcess.d.ts.map +1 -0
- package/dist/useCases/transport/identityDeletionProcesses/GetActiveIdentityDeletionProcess.js +39 -0
- package/dist/useCases/transport/identityDeletionProcesses/GetActiveIdentityDeletionProcess.js.map +1 -0
- package/dist/useCases/transport/identityDeletionProcesses/GetIdentityDeletionProcess.d.ts +17 -0
- package/dist/useCases/transport/identityDeletionProcesses/GetIdentityDeletionProcess.d.ts.map +1 -0
- package/dist/useCases/transport/identityDeletionProcesses/GetIdentityDeletionProcess.js +50 -0
- package/dist/useCases/transport/identityDeletionProcesses/GetIdentityDeletionProcess.js.map +1 -0
- package/dist/useCases/transport/identityDeletionProcesses/GetIdentityDeletionProcesses.d.ts +10 -0
- package/dist/useCases/transport/identityDeletionProcesses/GetIdentityDeletionProcesses.d.ts.map +1 -0
- package/dist/useCases/transport/identityDeletionProcesses/GetIdentityDeletionProcesses.js +36 -0
- package/dist/useCases/transport/identityDeletionProcesses/GetIdentityDeletionProcesses.js.map +1 -0
- package/dist/useCases/transport/identityDeletionProcesses/IdentityDeletionProcessMapper.d.ts +7 -0
- package/dist/useCases/transport/identityDeletionProcesses/IdentityDeletionProcessMapper.d.ts.map +1 -0
- package/dist/useCases/transport/identityDeletionProcesses/IdentityDeletionProcessMapper.js +30 -0
- package/dist/useCases/transport/identityDeletionProcesses/IdentityDeletionProcessMapper.js.map +1 -0
- package/dist/useCases/transport/identityDeletionProcesses/InitiateIdentityDeletionProcess.d.ts +11 -0
- package/dist/useCases/transport/identityDeletionProcesses/InitiateIdentityDeletionProcess.d.ts.map +1 -0
- package/dist/useCases/transport/identityDeletionProcesses/InitiateIdentityDeletionProcess.js +44 -0
- package/dist/useCases/transport/identityDeletionProcesses/InitiateIdentityDeletionProcess.js.map +1 -0
- package/dist/useCases/transport/identityDeletionProcesses/RejectIdentityDeletionProcess.d.ts +11 -0
- package/dist/useCases/transport/identityDeletionProcesses/RejectIdentityDeletionProcess.d.ts.map +1 -0
- package/dist/useCases/transport/identityDeletionProcesses/RejectIdentityDeletionProcess.js +44 -0
- package/dist/useCases/transport/identityDeletionProcesses/RejectIdentityDeletionProcess.js.map +1 -0
- package/dist/useCases/transport/identityDeletionProcesses/index.d.ts +9 -0
- package/dist/useCases/transport/identityDeletionProcesses/index.d.ts.map +1 -0
- package/dist/useCases/transport/identityDeletionProcesses/index.js +25 -0
- package/dist/useCases/transport/identityDeletionProcesses/index.js.map +1 -0
- package/dist/useCases/transport/index.d.ts +1 -0
- package/dist/useCases/transport/index.d.ts.map +1 -1
- package/dist/useCases/transport/index.js +1 -0
- package/dist/useCases/transport/index.js.map +1 -1
- package/package.json +10 -19
- package/lib-web/nmshd.runtime.js +0 -84011
- package/lib-web/nmshd.runtime.js.map +0 -1
- package/lib-web/nmshd.runtime.min.js +0 -9
- package/lib-web/nmshd.runtime.min.js.map +0 -1
- package/ui5.yaml +0 -9
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/*! For license information please see nmshd.runtime.min.js.LICENSE.txt */
|
|
2
|
-
var NMSHDRuntime;(()=>{var e={9683:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryTranslator=void 0;class QueryTranslator{static defaultKeyRegex=/^[a-zA-Z_@][a-zA-Z@0-9-_]*(\.[a-zA-Z_@][a-zA-Z@0-9-_]*)*$/;static defaultValRegex=void 0;static defaultArrRegex=/^[a-zA-Z@æøå0-9-_.]+(\[])?$/i;ops;alias;blacklist;whitelist;custom;string;keyRegex;valRegex;arrRegex;constructor(e={}){this.ops=e.ops??["!","^","$","~",">","<","$containsAny","$containsNone"],this.alias=e.alias??{},this.blacklist=e.blacklist??{},this.whitelist=e.whitelist??{},this.custom=e.custom??{},e.string=e.string??{},this.string=e.string,this.string.toBoolean="boolean"!=typeof e.string.toBoolean||e.string.toBoolean,this.string.toNumber="boolean"!=typeof e.string.toNumber||e.string.toNumber,this.keyRegex=e.keyRegex??QueryTranslator.defaultKeyRegex,this.valRegex=e.valRegex??QueryTranslator.defaultValRegex,this.arrRegex=e.arrRegex??QueryTranslator.defaultArrRegex}static setDefaultKeyRegex(e){QueryTranslator.defaultKeyRegex=e}static setDefaultValRegex(e){QueryTranslator.defaultValRegex=e}static setDefaultArrRegex(e){QueryTranslator.defaultArrRegex=e}parseString(e,t){let r=e[0]||"";const i="="===e[1];let n=e.substr(i?2:1)||"";const s=this.parseStringVal(n),o={op:r,org:n,value:s};switch(r){case"!":t?o.field="$containsNone":""===n?(o.field="$exists",o.value=!1):o.field="$ne";break;case">":o.field=i?"$gte":"$gt";break;case"<":o.field=i?"$lte":"$lt";break;case"^":case"$":case"~":switch(o.field="$regex",o.options="i",o.value=this.valRegex?n.replace(this.valRegex,""):o.value.toString(),r){case"^":o.value=`^${s}`;break;case"$":o.value=`${s}$`}break;default:o.org=n=r+n,o.op=r="",o.value=this.parseStringVal(n),t?o.field="$containsAny":""===n?(o.field="$exists",o.value=!0):o.field="$eq"}return o.parsed={},o.parsed[o.field]=o.value,o.options&&(o.parsed.$options=o.options),o}parseStringVal(e){return!(!this.string.toBoolean||"true"!==e.toLowerCase())||(!this.string.toBoolean||"false"!==e.toLowerCase())&&(this.string.toNumber&&!isNaN(parseInt(e,10))&&+e-+e+1>=0?parseFloat(e):e)}parse(e){if(!e)return{};const t={};for(let r of Object.keys(e)){if("__proto__"===r)continue;const i=e[r];if(Array.isArray(i)&&(r=r.replace(/\[]$/,"")),(!Object.keys(this.whitelist).length||this.whitelist[r])&&!this.blacklist[r]&&(this.alias[r]&&(r=this.alias[r]),("string"!=typeof i||this.keyRegex.test(r))&&(!Array.isArray(i)||this.arrRegex.test(r))))if("function"!=typeof this.custom[r])if(Array.isArray(i)){if(this.ops.includes("$containsAny")&&i.length>0){t[r]={};for(const e of i)if(this.ops.includes(e[0])){const i=this.parseString(e,!0);switch(i.field){case"$containsAny":case"$containsNone":t[r][i.field]=t[r][i.field]||[],t[r][i.field].push(i.value);break;case"$regex":t[r].$regex=i.value,t[r].$options=i.options;break;default:t[r][i.field]=i.value}}else t[r].$containsAny=t[r].$containsAny||[],t[r].$containsAny.push(this.parseStringVal(e))}}else"string"==typeof i&&(i?this.ops.includes(i[0])?t[r]=this.parseString(i).parsed:t[r]=this.parseStringVal(i):t[r]={$exists:!0});else this.custom[r].apply(null,[t,i])}return t}}t.QueryTranslator=QueryTranslator},7197:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryTranslator=void 0;var i=r(9683);Object.defineProperty(t,"QueryTranslator",{enumerable:!0,get:function(){return i.QueryTranslator}})},8072:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7040:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEventNamespaceFromObject=t.EventBus=void 0;t.EventBus=class EventBus{},t.getEventNamespaceFromObject=function getEventNamespaceFromObject(e){return e.namespace}},4226:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SubscriptionTargetInfo=void 0;class SubscriptionTargetInfo{namespace;constructor(e){this.namespace=e}static from(e){return e instanceof Function?new ConstructorSubscriptionTargetInfo(e):new NamespaceSubscriptionTargetInfo(e)}}t.SubscriptionTargetInfo=SubscriptionTargetInfo;class ConstructorSubscriptionTargetInfo extends SubscriptionTargetInfo{constructorFunction;constructor(e){super(function getEventNamespaceFromClass(e){return e.namespace}(e)),this.constructorFunction=e}isCompatibleWith(e){return e instanceof this.constructorFunction}}class NamespaceSubscriptionTargetInfo extends SubscriptionTargetInfo{constructor(e){super(e)}isCompatibleWith(e){return!0}}},6465:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventEmitter2EventBus=void 0;const i=r(9902);r(864);const n=r(7040),s=r(4226);t.EventEmitter2EventBus=class EventEmitter2EventBus{errorCallback;emitter;listeners=new Map;nextId=0;invocationPromises=[];constructor(e,t){this.errorCallback=e,this.emitter=new i.EventEmitter2({maxListeners:50,verboseMemoryLeak:!0,...t,wildcard:!0})}subscribe(e,t){return this.registerHandler(e,t)}subscribeOnce(e,t){return this.registerHandler(e,t,!0)}unsubscribe(e){return this.unregisterHandler(e)}registerHandler(e,t,r=!1){const i=s.SubscriptionTargetInfo.from(e),n=this.nextId++,handlerWrapper=async e=>{if(!i.isCompatibleWith(e))return;const s=(async()=>await t(e))();this.invocationPromises.push(s),await s.catch((e=>this.errorCallback(e,i.namespace))),this.invocationPromises=this.invocationPromises.filter((e=>e!==s)),r&&this.listeners.delete(n)};if(r){const e=this.emitter.once(i.namespace,handlerWrapper,{objectify:!0});return this.listeners.set(n,e),n}const o=this.emitter.on(i.namespace,handlerWrapper,{objectify:!0});return this.listeners.set(n,o),n}unregisterHandler(e){const t=this.listeners.get(e);return!!t&&(t.off(),this.listeners.delete(e),!0)}publish(e){const t=(0,n.getEventNamespaceFromObject)(e);if(!t)throw Error("The event needs a namespace. Use the EventNamespace-decorator in order to define a namespace for a event.");this.emitter.emit(t,e)}async close(e){this.emitter.removeAllListeners();const t=Promise.all(this.invocationPromises).catch((()=>{}));if(!e)return void await t;let r;const i=new Promise(((t,i)=>{r=setTimeout((()=>{i(new Error("timeout exceeded while waiting for events to process"))}),e)}));await Promise.race([t,i]),clearTimeout(r)}}},8756:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(7040),t),n(r(6465),t)},1347:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataEvent=void 0;const i=r(7179);class DataEvent extends i.Event{data;constructor(e,t){super(e),this.data=t}}t.DataEvent=DataEvent},7179:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Event=void 0;t.Event=class Event{namespace;constructor(e){this.namespace=e}}},4647:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(1347),t),n(r(7179),t)},1917:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(8756),t),n(r(4647),t),n(r(4186),t),n(r(967),t),n(r(9787),t),n(r(8072),t),n(r(3395),t),n(r(7106),t)},4186:function(e,t,r){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.log=void 0;const n=i(r(4191));t.log=function log(e){return function(t,r,i){const s=i.value;return i.value=function(...t){const i=this;try{e?.logParams?i.log.trace(`Calling ${r}(${t.map((e=>(0,n.default)(e))).join(", ")})`):i.log.trace(`Calling ${r}`);const o=s.apply(this,t);return e?.logReturnValue?i.log.trace(`Returning from ${r} with: ${(0,n.default)(o)}`):i.log.trace(`Returning from ${r}`),o}catch(e){throw e instanceof Error&&e.stack&&(e.stack=e.stack.split("\n").filter((e=>!e.includes(".propertyDescriptorDoNotChangeMyNamePlease.value"))).join("\n")),i.log.error(`Error in ${r}:`,e),e}},i}}},967:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.measureExcecutionTime=void 0,t.measureExcecutionTime=function measureExcecutionTime(e,t,r){const i=r.value;return r.value=async function(...e){const t=Date.now(),r=await i.apply(this,e),n=Date.now();return console.info(`Execution time: ${n-t}ms`),r},r}},9787:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomString=void 0,t.randomString=function randomString(e,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"){let r="";const i=t.length;for(let n=0;n<e;n++)r+=t.charAt(Math.floor(Math.random()*i));return r}},4439:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ApplicationError=void 0;class ApplicationError extends Error{code;data;constructor(e,t,r){super(t),this.code=e,this.data=r}equals(e){return this.code===e.code}toString(){return JSON.stringify({code:this.code,message:this.message,data:this.data},void 0,2)}}t.ApplicationError=ApplicationError},34:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Result=void 0;class Result{_isSuccess;_error;_value;constructor(e,t,r){if(e&&r)throw new Error("InvalidOperation: A result cannot be successful and contain an error");if(!e&&!r)throw new Error("InvalidOperation: A failing result needs to contain an error");if(void 0!==t&&!e)throw new Error("InvalidOperation: A value is only useful in case of a success.");this._value=t,this._isSuccess=e,this._error=r}get isSuccess(){return this._isSuccess}get isError(){return!this._isSuccess}get error(){return this._error}get value(){if(!this.isSuccess)throw new Error(`Can't get the value of an error result. Use 'error' instead. Root error: \r\n${this.error}`);return this._value}static ok(e){return new Result(!0,e)}static fail(e){return new Result(!1,void 0,e)}}t.Result=Result},3395:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(4439),t),n(r(34),t)},7106:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sleep=void 0,t.sleep=function sleep(e){return new Promise((t=>{setTimeout(t,e)}))}},864:()=>{var e;!function(e){!function(t){var r="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),i=makeExporter(e);function makeExporter(e,t){return function(r,i){"function"!=typeof e[r]&&Object.defineProperty(e,r,{configurable:!0,writable:!0,value:i}),t&&t(r,i)}}void 0===r.Reflect?r.Reflect=e:i=makeExporter(r.Reflect,i),function(e){var t=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,i=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",n=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",s="function"==typeof Object.create,o={__proto__:[]}instanceof Array,a=!s&&!o,c={create:s?function(){return MakeDictionary(Object.create(null))}:o?function(){return MakeDictionary({__proto__:null})}:function(){return MakeDictionary({})},has:a?function(e,r){return t.call(e,r)}:function(e,t){return t in e},get:a?function(e,r){return t.call(e,r)?e[r]:void 0}:function(e,t){return e[t]}},u=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,p=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?CreateMapPolyfill():Map,d=l||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?CreateSetPolyfill():Set,f=new(l||"function"!=typeof WeakMap?CreateWeakMapPolyfill():WeakMap);function decorate(e,t,r,i){if(IsUndefined(r)){if(!IsArray(e))throw new TypeError;if(!IsConstructor(t))throw new TypeError;return DecorateConstructor(e,t)}if(!IsArray(e))throw new TypeError;if(!IsObject(t))throw new TypeError;if(!IsObject(i)&&!IsUndefined(i)&&!IsNull(i))throw new TypeError;return IsNull(i)&&(i=void 0),DecorateProperty(e,t,r=ToPropertyKey(r),i)}function metadata(e,t){function decorator(r,i){if(!IsObject(r))throw new TypeError;if(!IsUndefined(i)&&!IsPropertyKey(i))throw new TypeError;OrdinaryDefineOwnMetadata(e,t,r,i)}return decorator}function defineMetadata(e,t,r,i){if(!IsObject(r))throw new TypeError;return IsUndefined(i)||(i=ToPropertyKey(i)),OrdinaryDefineOwnMetadata(e,t,r,i)}function hasMetadata(e,t,r){if(!IsObject(t))throw new TypeError;return IsUndefined(r)||(r=ToPropertyKey(r)),OrdinaryHasMetadata(e,t,r)}function hasOwnMetadata(e,t,r){if(!IsObject(t))throw new TypeError;return IsUndefined(r)||(r=ToPropertyKey(r)),OrdinaryHasOwnMetadata(e,t,r)}function getMetadata(e,t,r){if(!IsObject(t))throw new TypeError;return IsUndefined(r)||(r=ToPropertyKey(r)),OrdinaryGetMetadata(e,t,r)}function getOwnMetadata(e,t,r){if(!IsObject(t))throw new TypeError;return IsUndefined(r)||(r=ToPropertyKey(r)),OrdinaryGetOwnMetadata(e,t,r)}function getMetadataKeys(e,t){if(!IsObject(e))throw new TypeError;return IsUndefined(t)||(t=ToPropertyKey(t)),OrdinaryMetadataKeys(e,t)}function getOwnMetadataKeys(e,t){if(!IsObject(e))throw new TypeError;return IsUndefined(t)||(t=ToPropertyKey(t)),OrdinaryOwnMetadataKeys(e,t)}function deleteMetadata(e,t,r){if(!IsObject(t))throw new TypeError;IsUndefined(r)||(r=ToPropertyKey(r));var i=GetOrCreateMetadataMap(t,r,!1);if(IsUndefined(i))return!1;if(!i.delete(e))return!1;if(i.size>0)return!0;var n=f.get(t);return n.delete(r),n.size>0||f.delete(t),!0}function DecorateConstructor(e,t){for(var r=e.length-1;r>=0;--r){var i=(0,e[r])(t);if(!IsUndefined(i)&&!IsNull(i)){if(!IsConstructor(i))throw new TypeError;t=i}}return t}function DecorateProperty(e,t,r,i){for(var n=e.length-1;n>=0;--n){var s=(0,e[n])(t,r,i);if(!IsUndefined(s)&&!IsNull(s)){if(!IsObject(s))throw new TypeError;i=s}}return i}function GetOrCreateMetadataMap(e,t,r){var i=f.get(e);if(IsUndefined(i)){if(!r)return;i=new p,f.set(e,i)}var n=i.get(t);if(IsUndefined(n)){if(!r)return;n=new p,i.set(t,n)}return n}function OrdinaryHasMetadata(e,t,r){if(OrdinaryHasOwnMetadata(e,t,r))return!0;var i=OrdinaryGetPrototypeOf(t);return!IsNull(i)&&OrdinaryHasMetadata(e,i,r)}function OrdinaryHasOwnMetadata(e,t,r){var i=GetOrCreateMetadataMap(t,r,!1);return!IsUndefined(i)&&ToBoolean(i.has(e))}function OrdinaryGetMetadata(e,t,r){if(OrdinaryHasOwnMetadata(e,t,r))return OrdinaryGetOwnMetadata(e,t,r);var i=OrdinaryGetPrototypeOf(t);return IsNull(i)?void 0:OrdinaryGetMetadata(e,i,r)}function OrdinaryGetOwnMetadata(e,t,r){var i=GetOrCreateMetadataMap(t,r,!1);if(!IsUndefined(i))return i.get(e)}function OrdinaryDefineOwnMetadata(e,t,r,i){GetOrCreateMetadataMap(r,i,!0).set(e,t)}function OrdinaryMetadataKeys(e,t){var r=OrdinaryOwnMetadataKeys(e,t),i=OrdinaryGetPrototypeOf(e);if(null===i)return r;var n=OrdinaryMetadataKeys(i,t);if(n.length<=0)return r;if(r.length<=0)return n;for(var s=new d,o=[],a=0,c=r;a<c.length;a++){var u=c[a];s.has(u)||(s.add(u),o.push(u))}for(var l=0,p=n;l<p.length;l++){u=p[l];s.has(u)||(s.add(u),o.push(u))}return o}function OrdinaryOwnMetadataKeys(e,t){var r=[],i=GetOrCreateMetadataMap(e,t,!1);if(IsUndefined(i))return r;for(var n=GetIterator(i.keys()),s=0;;){var o=IteratorStep(n);if(!o)return r.length=s,r;var a=IteratorValue(o);try{r[s]=a}catch(e){try{IteratorClose(n)}finally{throw e}}s++}}function Type(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function IsUndefined(e){return void 0===e}function IsNull(e){return null===e}function IsSymbol(e){return"symbol"==typeof e}function IsObject(e){return"object"==typeof e?null!==e:"function"==typeof e}function ToPrimitive(e,t){switch(Type(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var r=3===t?"string":5===t?"number":"default",n=GetMethod(e,i);if(void 0!==n){var s=n.call(e,r);if(IsObject(s))throw new TypeError;return s}return OrdinaryToPrimitive(e,"default"===r?"number":r)}function OrdinaryToPrimitive(e,t){if("string"===t){var r=e.toString;if(IsCallable(r))if(!IsObject(n=r.call(e)))return n;if(IsCallable(i=e.valueOf))if(!IsObject(n=i.call(e)))return n}else{var i;if(IsCallable(i=e.valueOf))if(!IsObject(n=i.call(e)))return n;var n,s=e.toString;if(IsCallable(s))if(!IsObject(n=s.call(e)))return n}throw new TypeError}function ToBoolean(e){return!!e}function ToString(e){return""+e}function ToPropertyKey(e){var t=ToPrimitive(e,3);return IsSymbol(t)?t:ToString(t)}function IsArray(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function IsCallable(e){return"function"==typeof e}function IsConstructor(e){return"function"==typeof e}function IsPropertyKey(e){switch(Type(e)){case 3:case 4:return!0;default:return!1}}function GetMethod(e,t){var r=e[t];if(null!=r){if(!IsCallable(r))throw new TypeError;return r}}function GetIterator(e){var t=GetMethod(e,n);if(!IsCallable(t))throw new TypeError;var r=t.call(e);if(!IsObject(r))throw new TypeError;return r}function IteratorValue(e){return e.value}function IteratorStep(e){var t=e.next();return!t.done&&t}function IteratorClose(e){var t=e.return;t&&t.call(e)}function OrdinaryGetPrototypeOf(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===u)return t;if(t!==u)return t;var r=e.prototype,i=r&&Object.getPrototypeOf(r);if(null==i||i===Object.prototype)return t;var n=i.constructor;return"function"!=typeof n||n===e?t:n}function CreateMapPolyfill(){var e={},t=[],r=function(){function MapIterator(e,t,r){this._index=0,this._keys=e,this._values=t,this._selector=r}return MapIterator.prototype["@@iterator"]=function(){return this},MapIterator.prototype[n]=function(){return this},MapIterator.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var r=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},MapIterator.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},MapIterator.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},MapIterator}();return function(){function Map(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(Map.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),Map.prototype.has=function(e){return this._find(e,!1)>=0},Map.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},Map.prototype.set=function(e,t){var r=this._find(e,!0);return this._values[r]=t,this},Map.prototype.delete=function(t){var r=this._find(t,!1);if(r>=0){for(var i=this._keys.length,n=r+1;n<i;n++)this._keys[n-1]=this._keys[n],this._values[n-1]=this._values[n];return this._keys.length--,this._values.length--,t===this._cacheKey&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},Map.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},Map.prototype.keys=function(){return new r(this._keys,this._values,getKey)},Map.prototype.values=function(){return new r(this._keys,this._values,getValue)},Map.prototype.entries=function(){return new r(this._keys,this._values,getEntry)},Map.prototype["@@iterator"]=function(){return this.entries()},Map.prototype[n]=function(){return this.entries()},Map.prototype._find=function(e,t){return this._cacheKey!==e&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=e)),this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},Map}();function getKey(e,t){return e}function getValue(e,t){return t}function getEntry(e,t){return[e,t]}}function CreateSetPolyfill(){return function(){function Set(){this._map=new p}return Object.defineProperty(Set.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),Set.prototype.has=function(e){return this._map.has(e)},Set.prototype.add=function(e){return this._map.set(e,e),this},Set.prototype.delete=function(e){return this._map.delete(e)},Set.prototype.clear=function(){this._map.clear()},Set.prototype.keys=function(){return this._map.keys()},Set.prototype.values=function(){return this._map.values()},Set.prototype.entries=function(){return this._map.entries()},Set.prototype["@@iterator"]=function(){return this.keys()},Set.prototype[n]=function(){return this.keys()},Set}()}function CreateWeakMapPolyfill(){var e=16,r=c.create(),i=CreateUniqueKey();return function(){function WeakMap(){this._key=CreateUniqueKey()}return WeakMap.prototype.has=function(e){var t=GetOrCreateWeakMapTable(e,!1);return void 0!==t&&c.has(t,this._key)},WeakMap.prototype.get=function(e){var t=GetOrCreateWeakMapTable(e,!1);return void 0!==t?c.get(t,this._key):void 0},WeakMap.prototype.set=function(e,t){return GetOrCreateWeakMapTable(e,!0)[this._key]=t,this},WeakMap.prototype.delete=function(e){var t=GetOrCreateWeakMapTable(e,!1);return void 0!==t&&delete t[this._key]},WeakMap.prototype.clear=function(){this._key=CreateUniqueKey()},WeakMap}();function CreateUniqueKey(){var e;do{e="@@WeakMap@@"+CreateUUID()}while(c.has(r,e));return r[e]=!0,e}function GetOrCreateWeakMapTable(e,r){if(!t.call(e,i)){if(!r)return;Object.defineProperty(e,i,{value:c.create()})}return e[i]}function FillRandomBytes(e,t){for(var r=0;r<t;++r)e[r]=255*Math.random()|0;return e}function GenRandomBytes(e){return"function"==typeof Uint8Array?"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(e)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(e)):FillRandomBytes(new Uint8Array(e),e):FillRandomBytes(new Array(e),e)}function CreateUUID(){var t=GenRandomBytes(e);t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var r="",i=0;i<e;++i){var n=t[i];4!==i&&6!==i&&8!==i||(r+="-"),n<16&&(r+="0"),r+=n.toString(16).toLowerCase()}return r}}function MakeDictionary(e){return e.__=void 0,delete e.__,e}e("decorate",decorate),e("metadata",metadata),e("defineMetadata",defineMetadata),e("hasMetadata",hasMetadata),e("hasOwnMetadata",hasOwnMetadata),e("getMetadata",getMetadata),e("getOwnMetadata",getOwnMetadata),e("getMetadataKeys",getMetadataKeys),e("getOwnMetadataKeys",getOwnMetadataKeys),e("deleteMetadata",deleteMetadata)}(i)}()}(e||(e={}))},7156:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(1601),n=r(7898),s=r(3277),o=r(6223),a=r(9409),c=r(3036),u="errorMessage",l=new i.Name("emUsed"),p={required:"missingProperty",dependencies:"property",dependentRequired:"property"},d=/\$\{[^}]+\}/,f=/\$\{([^}]+)\}/g,y=/^""\s*\+\s*|\s*\+\s*""$/g;function errorMessage(e){return{keyword:u,schemaType:["string","object"],post:!0,code(t){const{gen:r,data:h,schema:g,schemaValue:m,it:v}=t;if(!1===v.createErrors)return;const b=g,R=n.strConcat(c.default.instancePath,v.errorPath);function matchKeywordError(e,t){return n.and(i._`${e}.keyword !== ${u}`,i._`!${e}.${l}`,i._`${e}.instancePath === ${R}`,i._`${e}.keyword in ${t}`,i._`${e}.schemaPath.indexOf(${v.errSchemaPath}) === 0`,i._`/^\\/[^\\/]*$/.test(${e}.schemaPath.slice(${v.errSchemaPath.length}))`)}function getTemplatesCode(e,t){const i=[];for(const r in e){const e=t[r];d.test(e)&&i.push([r,templateFunc(e)])}return r.object(...i)}function templateExpr(e){return d.test(e)?new s._Code(s.safeStringify(e).replace(f,((e,t)=>`" + JSON.stringify(${o.getData(t,v)}) + "`)).replace(y,"")):i.stringify(e)}function templateFunc(e){return i._`function(){return ${templateExpr(e)}}`}r.if(i._`${c.default.errors} > 0`,(()=>{if("object"==typeof b){const[s,o]=function keywordErrorsConfig(e){let t,r;for(const i in e){if("properties"===i||"items"===i)continue;const n=e[i];if("object"==typeof n){t||(t={});const e=t[i]={};for(const t in n)e[t]=[]}else r||(r={}),r[i]=[]}return[t,r]}(b);o&&function processKeywordErrors(n){const s=r.const("emErrors",i.stringify(n)),o=r.const("templates",getTemplatesCode(n,g));r.forOf("err",c.default.vErrors,(e=>r.if(matchKeywordError(e,s),(()=>r.code(i._`${s}[${e}.keyword].push(${e})`).assign(i._`${e}.${l}`,!0)))));const{singleError:u}=e;if(u){const e=r.let("message",i._`""`),n=r.let("paramsErrors",i._`[]`);loopErrors((t=>{r.if(e,(()=>r.code(i._`${e} += ${"string"==typeof u?u:";"}`))),r.code(i._`${e} += ${errMessage(t)}`),r.assign(n,i._`${n}.concat(${s}[${t}])`)})),a.reportError(t,{message:e,params:i._`{errors: ${n}}`})}else loopErrors((e=>a.reportError(t,{message:errMessage(e),params:i._`{errors: ${s}[${e}]}`})));function loopErrors(e){r.forIn("key",s,(t=>r.if(i._`${s}[${t}].length`,(()=>e(t)))))}function errMessage(e){return i._`${e} in ${o} ? ${o}[${e}]() : ${m}[${e}]`}}(o),s&&function processKeywordPropErrors(e){const n=r.const("emErrors",i.stringify(e)),s=[];for(const t in e)s.push([t,getTemplatesCode(e[t],g[t])]);const o=r.const("templates",r.object(...s)),u=r.scopeValue("obj",{ref:p,code:i.stringify(p)}),d=r.let("emPropParams"),f=r.let("emParamsErrors");r.forOf("err",c.default.vErrors,(e=>r.if(matchKeywordError(e,n),(()=>{r.assign(d,i._`${u}[${e}.keyword]`),r.assign(f,i._`${n}[${e}.keyword][${e}.params[${d}]]`),r.if(f,(()=>r.code(i._`${f}.push(${e})`).assign(i._`${e}.${l}`,!0)))})))),r.forIn("key",n,(e=>r.forIn("keyProp",i._`${n}[${e}]`,(s=>{r.assign(f,i._`${n}[${e}][${s}]`),r.if(i._`${f}.length`,(()=>{const n=r.const("tmpl",i._`${o}[${e}] && ${o}[${e}][${s}]`);a.reportError(t,{message:i._`${n} ? ${n}() : ${m}[${e}][${s}]`,params:i._`{errors: ${f}}`})}))}))))}(s),function processChildErrors(e){const{props:s,items:o}=e;if(!s&&!o)return;const p=i._`typeof ${h} == "object"`,d=i._`Array.isArray(${h})`,f=r.let("emErrors");let y,v;const b=r.let("templates");s&&o?(y=r.let("emChildKwd"),r.if(p),r.if(d,(()=>{init(o,g.items),r.assign(y,i.str`items`)}),(()=>{init(s,g.properties),r.assign(y,i.str`properties`)})),v=i._`[${y}]`):o?(r.if(d),init(o,g.items),v=i._`.items`):s&&(r.if(n.and(p,n.not(d))),init(s,g.properties),v=i._`.properties`);function init(e,t){r.assign(f,i.stringify(e)),r.assign(b,getTemplatesCode(e,t))}r.forOf("err",c.default.vErrors,(e=>function ifMatchesChildError(e,t,s){r.if(n.and(i._`${e}.keyword !== ${u}`,i._`!${e}.${l}`,i._`${e}.instancePath.indexOf(${R}) === 0`),(()=>{const n=r.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:i._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),o=r.const("emMatches",i._`${n}.exec(${e}.instancePath.slice(${R}.length))`),a=r.const("emChild",i._`${o} && ${o}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);r.if(i._`${a} !== undefined && ${a} in ${t}`,(()=>s(a)))}))}(e,f,(t=>r.code(i._`${f}[${t}].push(${e})`).assign(i._`${e}.${l}`,!0))))),r.forIn("key",f,(e=>r.if(i._`${f}[${e}].length`,(()=>{a.reportError(t,{message:i._`${e} in ${b} ? ${b}[${e}]() : ${m}${v}[${e}]`,params:i._`{errors: ${f}[${e}]}`}),r.assign(i._`${c.default.vErrors}[${c.default.errors}-1].instancePath`,i._`${R} + "/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})))),r.endIf()}(function childErrorsConfig({properties:e,items:t}){const r={};if(e){r.props={};for(const t in e)r.props[t]=[]}if(t){r.items={};for(let e=0;e<t.length;e++)r.items[e]=[]}return r}(b))}const s="string"==typeof b?b:b._;s&&function processAllErrors(e){const s=r.const("emErrs",i._`[]`);r.forOf("err",c.default.vErrors,(e=>r.if(function matchAnyError(e){return n.and(i._`${e}.keyword !== ${u}`,i._`!${e}.${l}`,n.or(i._`${e}.instancePath === ${R}`,n.and(i._`${e}.instancePath.indexOf(${R}) === 0`,i._`${e}.instancePath[${R}.length] === "/"`)),i._`${e}.schemaPath.indexOf(${v.errSchemaPath}) === 0`,i._`${e}.schemaPath[${v.errSchemaPath}.length] === "/"`)}(e),(()=>r.code(i._`${s}.push(${e})`).assign(i._`${e}.${l}`,!0))))),r.if(i._`${s}.length`,(()=>a.reportError(t,{message:templateExpr(e),params:i._`{errors: ${s}}`})))}(s),e.keepErrors||function removeUsedErrors(){const e=r.const("emErrs",i._`[]`);r.forOf("err",c.default.vErrors,(t=>r.if(i._`!${t}.${l}`,(()=>r.code(i._`${e}.push(${t})`))))),r.assign(c.default.vErrors,e).assign(c.default.errors,i._`${e}.length`)}()}))},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}const ajvErrors=(e,t={})=>{if(!e.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(e.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return e.addKeyword(errorMessage(t))};t.default=ajvErrors,e.exports=ajvErrors,e.exports.default=ajvErrors},5733:(e,t)=>{"use strict";function fmtDef(e,t){return{validate:e,compare:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.formatNames=t.fastFormats=t.fullFormats=void 0,t.fullFormats={date:fmtDef(date,compareDate),time:fmtDef(getTime(!0),compareTime),"date-time":fmtDef(getDateTime(!0),compareDateTime),"iso-time":fmtDef(getTime(),compareIsoTime),"iso-date-time":fmtDef(getDateTime(),compareIsoDateTime),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:function uri(e){return o.test(e)&&a.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:function regex(e){if(p.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}},uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:function byte(e){return c.lastIndex=0,c.test(e)},int32:{type:"number",validate:function validateInt32(e){return Number.isInteger(e)&&e<=l&&e>=u}},int64:{type:"number",validate:function validateInt64(e){return Number.isInteger(e)}},float:{type:"number",validate:validateNumber},double:{type:"number",validate:validateNumber},password:!0,binary:!0},t.fastFormats={...t.fullFormats,date:fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,compareDate),time:fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,compareTime),"date-time":fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,compareDateTime),"iso-time":fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,compareIsoTime),"iso-date-time":fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,compareIsoDateTime),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},t.formatNames=Object.keys(t.fullFormats);const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function date(e){const t=r.exec(e);if(!t)return!1;const n=+t[1],s=+t[2],o=+t[3];return s>=1&&s<=12&&o>=1&&o<=(2===s&&function isLeapYear(e){return e%4==0&&(e%100!=0||e%400==0)}(n)?29:i[s])}function compareDate(e,t){if(e&&t)return e>t?1:e<t?-1:0}const n=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function getTime(e){return function time(t){const r=n.exec(t);if(!r)return!1;const i=+r[1],s=+r[2],o=+r[3],a=r[4],c="-"===r[5]?-1:1,u=+(r[6]||0),l=+(r[7]||0);if(u>23||l>59||e&&!a)return!1;if(i<=23&&s<=59&&o<60)return!0;const p=s-l*c,d=i-u*c-(p<0?1:0);return(23===d||-1===d)&&(59===p||-1===p)&&o<61}}function compareTime(e,t){if(!e||!t)return;const r=new Date("2020-01-01T"+e).valueOf(),i=new Date("2020-01-01T"+t).valueOf();return r&&i?r-i:void 0}function compareIsoTime(e,t){if(!e||!t)return;const r=n.exec(e),i=n.exec(t);return r&&i?(e=r[1]+r[2]+r[3])>(t=i[1]+i[2]+i[3])?1:e<t?-1:0:void 0}const s=/t|\s/i;function getDateTime(e){const t=getTime(e);return function date_time(e){const r=e.split(s);return 2===r.length&&date(r[0])&&t(r[1])}}function compareDateTime(e,t){if(!e||!t)return;const r=new Date(e).valueOf(),i=new Date(t).valueOf();return r&&i?r-i:void 0}function compareIsoDateTime(e,t){if(!e||!t)return;const[r,i]=e.split(s),[n,o]=t.split(s),a=compareDate(r,n);return void 0!==a?a||compareTime(i,o):void 0}const o=/\/|:/,a=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;const c=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;const u=-(2**31),l=2**31-1;function validateNumber(){return!0}const p=/[^\\]\\Z/},4421:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(5733),n=r(1038),s=r(7898),o=new s.Name("fullFormats"),a=new s.Name("fastFormats"),formatsPlugin=(e,t={keywords:!0})=>{if(Array.isArray(t))return addFormats(e,t,i.fullFormats,o),e;const[r,s]="fast"===t.mode?[i.fastFormats,a]:[i.fullFormats,o];return addFormats(e,t.formats||i.formatNames,r,s),t.keywords&&(0,n.default)(e),e};function addFormats(e,t,r,i){var n,o;null!==(n=(o=e.opts.code).formats)&&void 0!==n||(o.formats=s._`require("ajv-formats/dist/formats").${i}`);for(const i of t)e.addFormat(i,r[i])}formatsPlugin.get=(e,t="full")=>{const r=("fast"===t?i.fastFormats:i.fullFormats)[e];if(!r)throw new Error(`Unknown format "${e}"`);return r},e.exports=t=formatsPlugin,Object.defineProperty(t,"__esModule",{value:!0}),t.default=formatsPlugin},1038:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatLimitDefinition=void 0;const i=r(1601),n=r(7898),s=n.operators,o={formatMaximum:{okStr:"<=",ok:s.LTE,fail:s.GT},formatMinimum:{okStr:">=",ok:s.GTE,fail:s.LT},formatExclusiveMaximum:{okStr:"<",ok:s.LT,fail:s.GTE},formatExclusiveMinimum:{okStr:">",ok:s.GT,fail:s.LTE}},a={message:({keyword:e,schemaCode:t})=>n.str`should be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>n._`{comparison: ${o[e].okStr}, limit: ${t}}`};t.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:!0,error:a,code(e){const{gen:t,data:r,schemaCode:s,keyword:a,it:c}=e,{opts:u,self:l}=c;if(!u.validateFormats)return;const p=new i.KeywordCxt(c,l.RULES.all.format.definition,"format");function compareCode(e){return n._`${e}.compare(${r}, ${s}) ${o[a].fail} 0`}p.$data?function validate$DataFormat(){const r=t.scopeValue("formats",{ref:l.formats,code:u.code.formats}),i=t.const("fmt",n._`${r}[${p.schemaCode}]`);e.fail$data((0,n.or)(n._`typeof ${i} != "object"`,n._`${i} instanceof RegExp`,n._`typeof ${i}.compare != "function"`,compareCode(i)))}():function validateFormat(){const r=p.schema,i=l.formats[r];if(!i||!0===i)return;if("object"!=typeof i||i instanceof RegExp||"function"!=typeof i.compare)throw new Error(`"${a}": format "${r}" does not define "compare" function`);const s=t.scopeValue("formats",{key:r,ref:i,code:u.code.formats?n._`${u.code.formats}${(0,n.getProperty)(r)}`:void 0});e.fail$data(compareCode(s))}()},dependencies:["format"]};t.default=e=>(e.addKeyword(t.formatLimitDefinition),e)},1601:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const i=r(5319),n=r(2431),s=r(1672),o=r(3928),a=["/properties"],c="http://json-schema.org/draft-07/schema";class Ajv extends i.default{_addVocabularies(){super._addVocabularies(),n.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(s.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(o,a):o;this.addMetaSchema(e,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}e.exports=t=Ajv,Object.defineProperty(t,"__esModule",{value:!0}),t.default=Ajv;var u=r(6223);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var l=r(7898);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var p=r(5031);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return p.default}});var d=r(5748);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return d.default}})},3277:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class _CodeOrName{}t._CodeOrName=_CodeOrName,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class Name extends _CodeOrName{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=Name;class _Code extends _CodeOrName{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof Name&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function _(e,...t){const r=[e[0]];let i=0;for(;i<t.length;)addCodeArg(r,t[i]),r.push(e[++i]);return new _Code(r)}t._Code=_Code,t.nil=new _Code(""),t._=_;const r=new _Code("+");function str(e,...t){const i=[safeStringify(e[0])];let n=0;for(;n<t.length;)i.push(r),addCodeArg(i,t[n]),i.push(r,safeStringify(e[++n]));return function optimize(e){let t=1;for(;t<e.length-1;){if(e[t]===r){const r=mergeExprItems(e[t-1],e[t+1]);if(void 0!==r){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}(i),new _Code(i)}function addCodeArg(e,t){t instanceof _Code?e.push(...t._items):t instanceof Name?e.push(t):e.push(function interpolate(e){return"number"==typeof e||"boolean"==typeof e||null===e?e:safeStringify(Array.isArray(e)?e.join(","):e)}(t))}function mergeExprItems(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof Name||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof Name?void 0:`"${e}${t.slice(1)}`}function safeStringify(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.str=str,t.addCodeArg=addCodeArg,t.strConcat=function strConcat(e,t){return t.emptyStr()?e:e.emptyStr()?t:str`${e}${t}`},t.stringify=function stringify(e){return new _Code(safeStringify(e))},t.safeStringify=safeStringify,t.getProperty=function getProperty(e){return"string"==typeof e&&t.IDENTIFIER.test(e)?new _Code(`.${e}`):_`[${e}]`},t.getEsmExportName=function getEsmExportName(e){if("string"==typeof e&&t.IDENTIFIER.test(e))return new _Code(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)},t.regexpCode=function regexpCode(e){return new _Code(e.toString())}},7898:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const i=r(3277),n=r(6930);var s=r(3277);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return s._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return s.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return s.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return s.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return s.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return s.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return s.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return s.Name}});var o=r(6930);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),t.operators={GT:new i._Code(">"),GTE:new i._Code(">="),LT:new i._Code("<"),LTE:new i._Code("<="),EQ:new i._Code("==="),NEQ:new i._Code("!=="),NOT:new i._Code("!"),OR:new i._Code("||"),AND:new i._Code("&&"),ADD:new i._Code("+")};class Node{optimizeNodes(){return this}optimizeNames(e,t){return this}}class Def extends Node{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render({es5:e,_n:t}){const r=e?n.varKinds.var:this.varKind,i=void 0===this.rhs?"":` = ${this.rhs}`;return`${r} ${this.name}${i};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=optimizeExpr(this.rhs,e,t)),this}get names(){return this.rhs instanceof i._CodeOrName?this.rhs.names:{}}}class Assign extends Node{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof i.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=optimizeExpr(this.rhs,e,t),this}get names(){return addExprNames(this.lhs instanceof i.Name?{}:{...this.lhs.names},this.rhs)}}class AssignOp extends Assign{constructor(e,t,r,i){super(e,r,i),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class Label extends Node{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class Break extends Node{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class Throw extends Node{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class AnyCode extends Node{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=optimizeExpr(this.code,e,t),this}get names(){return this.code instanceof i._CodeOrName?this.code.names:{}}}class ParentNode extends Node{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,r)=>t+r.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const r=e[t].optimizeNodes();Array.isArray(r)?e.splice(t,1,...r):r?e[t]=r:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:r}=this;let i=r.length;for(;i--;){const n=r[i];n.optimizeNames(e,t)||(subtractNames(e,n.names),r.splice(i,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>addNames(e,t.names)),{})}}class BlockNode extends ParentNode{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class Root extends ParentNode{}class Else extends BlockNode{}Else.kind="else";class If extends BlockNode{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new Else(e):e}return t?!1===e?t instanceof If?t:t.nodes:this.nodes.length?this:new If(not(e),t instanceof If?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=optimizeExpr(this.condition,e,t),this}get names(){const e=super.names;return addExprNames(e,this.condition),this.else&&addNames(e,this.else.names),e}}If.kind="if";class For extends BlockNode{}For.kind="for";class ForLoop extends For{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=optimizeExpr(this.iteration,e,t),this}get names(){return addNames(super.names,this.iteration.names)}}class ForRange extends For{constructor(e,t,r,i){super(),this.varKind=e,this.name=t,this.from=r,this.to=i}render(e){const t=e.es5?n.varKinds.var:this.varKind,{name:r,from:i,to:s}=this;return`for(${t} ${r}=${i}; ${r}<${s}; ${r}++)`+super.render(e)}get names(){const e=addExprNames(super.names,this.from);return addExprNames(e,this.to)}}class ForIter extends For{constructor(e,t,r,i){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=i}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=optimizeExpr(this.iterable,e,t),this}get names(){return addNames(super.names,this.iterable.names)}}class Func extends BlockNode{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}Func.kind="func";class Return extends ParentNode{render(e){return"return "+super.render(e)}}Return.kind="return";class Try extends BlockNode{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var r,i;return super.optimizeNames(e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(i=this.finally)||void 0===i||i.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&addNames(e,this.catch.names),this.finally&&addNames(e,this.finally.names),e}}class Catch extends BlockNode{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}Catch.kind="catch";class Finally extends BlockNode{render(e){return"finally"+super.render(e)}}Finally.kind="finally";function addNames(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function addExprNames(e,t){return t instanceof i._CodeOrName?addNames(e,t.names):e}function optimizeExpr(e,t,r){return e instanceof i.Name?replaceName(e):function canOptimize(e){return e instanceof i._Code&&e._items.some((e=>e instanceof i.Name&&1===t[e.str]&&void 0!==r[e.str]))}(e)?new i._Code(e._items.reduce(((e,t)=>(t instanceof i.Name&&(t=replaceName(t)),t instanceof i._Code?e.push(...t._items):e.push(t),e)),[])):e;function replaceName(e){const i=r[e.str];return void 0===i||1!==t[e.str]?e:(delete t[e.str],i)}}function subtractNames(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function not(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:i._`!${par(e)}`}t.CodeGen=class CodeGen{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new n.Scope({parent:e}),this._nodes=[new Root]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,i){const n=this._scope.toName(t);return void 0!==r&&i&&(this._constants[n.str]=r),this._leafNode(new Def(e,n,r)),n}const(e,t,r){return this._def(n.varKinds.const,e,t,r)}let(e,t,r){return this._def(n.varKinds.let,e,t,r)}var(e,t,r){return this._def(n.varKinds.var,e,t,r)}assign(e,t,r){return this._leafNode(new Assign(e,t,r))}add(e,r){return this._leafNode(new AssignOp(e,t.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==i.nil&&this._leafNode(new AnyCode(e)),this}object(...e){const t=["{"];for(const[r,n]of e)t.length>1&&t.push(","),t.push(r),(r!==n||this.opts.es5)&&(t.push(":"),(0,i.addCodeArg)(t,n));return t.push("}"),new i._Code(t)}if(e,t,r){if(this._blockNode(new If(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new If(e))}else(){return this._elseNode(new Else)}endIf(){return this._endBlockNode(If,Else)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new ForLoop(e),t)}forRange(e,t,r,i,s=(this.opts.es5?n.varKinds.var:n.varKinds.let)){const o=this._scope.toName(e);return this._for(new ForRange(s,o,t,r),(()=>i(o)))}forOf(e,t,r,s=n.varKinds.const){const o=this._scope.toName(e);if(this.opts.es5){const e=t instanceof i.Name?t:this.var("_arr",t);return this.forRange("_i",0,i._`${e}.length`,(t=>{this.var(o,i._`${e}[${t}]`),r(o)}))}return this._for(new ForIter("of",s,o,t),(()=>r(o)))}forIn(e,t,r,s=(this.opts.es5?n.varKinds.var:n.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,i._`Object.keys(${t})`,r);const o=this._scope.toName(e);return this._for(new ForIter("in",s,o,t),(()=>r(o)))}endFor(){return this._endBlockNode(For)}label(e){return this._leafNode(new Label(e))}break(e){return this._leafNode(new Break(e))}return(e){const t=new Return;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Return)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const i=new Try;if(this._blockNode(i),this.code(e),t){const e=this.name("e");this._currNode=i.catch=new Catch(e),t(e)}return r&&(this._currNode=i.finally=new Finally,this.code(r)),this._endBlockNode(Catch,Finally)}throw(e){return this._leafNode(new Throw(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=i.nil,r,n){return this._blockNode(new Func(e,t,r)),n&&this.code(n).endFunc(),this}endFunc(){return this._endBlockNode(Func)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof If))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},t.not=not;const a=mappend(t.operators.AND);t.and=function and(...e){return e.reduce(a)};const c=mappend(t.operators.OR);function mappend(e){return(t,r)=>t===i.nil?r:r===i.nil?t:i._`${par(t)} ${e} ${par(r)}`}function par(e){return e instanceof i.Name?e:i._`(${e})`}t.or=function or(...e){return e.reduce(c)}},6930:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const i=r(3277);class ValueError extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var n;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(n=t.UsedValueState||(t.UsedValueState={})),t.varKinds={const:new i.Name("const"),let:new i.Name("let"),var:new i.Name("var")};class Scope{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof i.Name?e:this.name(e)}name(e){return new i.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,r;if((null===(r=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===r?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=Scope;class ValueScopeName extends i.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:r}){this.value=e,this.scopePath=i._`.${new i.Name(t)}[${r}]`}}t.ValueScopeName=ValueScopeName;const s=i._`\n`;t.ValueScope=class ValueScope extends Scope{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?s:i.nil}}get(){return this._scope}name(e){return new ValueScopeName(e,this._newName(e))}value(e,t){var r;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const i=this.toName(e),{prefix:n}=i,s=null!==(r=t.key)&&void 0!==r?r:t.ref;let o=this._values[n];if(o){const e=o.get(s);if(e)return e}else o=this._values[n]=new Map;o.set(s,i);const a=this._scope[n]||(this._scope[n]=[]),c=a.length;return a[c]=t.ref,i.setValue(t,{property:n,itemIndex:c}),i}getValue(e,t){const r=this._values[e];if(r)return r.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,(t=>{if(void 0===t.scopePath)throw new Error(`CodeGen: name "${t}" has no value`);return i._`${e}${t.scopePath}`}))}scopeCode(e=this._values,t,r){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,r)}_reduceValues(e,r,s={},o){let a=i.nil;for(const c in e){const u=e[c];if(!u)continue;const l=s[c]=s[c]||new Map;u.forEach((e=>{if(l.has(e))return;l.set(e,n.Started);let s=r(e);if(s){const r=this.opts.es5?t.varKinds.var:t.varKinds.const;a=i._`${a}${r} ${e} = ${s};${this.opts._n}`}else{if(!(s=null==o?void 0:o(e)))throw new ValueError(e);a=i._`${a}${s}${this.opts._n}`}l.set(e,n.Completed)}))}return a}}},9409:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const i=r(7898),n=r(458),s=r(3036);function addError(e,t){const r=e.const("err",t);e.if(i._`${s.default.vErrors} === null`,(()=>e.assign(s.default.vErrors,i._`[${r}]`)),i._`${s.default.vErrors}.push(${r})`),e.code(i._`${s.default.errors}++`)}function returnErrors(e,t){const{gen:r,validateName:n,schemaEnv:s}=e;s.$async?r.throw(i._`new ${e.ValidationError}(${t})`):(r.assign(i._`${n}.errors`,t),r.return(!1))}t.keywordError={message:({keyword:e})=>i.str`must pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?i.str`"${e}" keyword must be ${t} ($data)`:i.str`"${e}" keyword is invalid ($data)`},t.reportError=function reportError(e,r=t.keywordError,n,s){const{it:o}=e,{gen:a,compositeRule:c,allErrors:u}=o,l=errorObjectCode(e,r,n);(null!=s?s:c||u)?addError(a,l):returnErrors(o,i._`[${l}]`)},t.reportExtraError=function reportExtraError(e,r=t.keywordError,i){const{it:n}=e,{gen:o,compositeRule:a,allErrors:c}=n;addError(o,errorObjectCode(e,r,i)),a||c||returnErrors(n,s.default.vErrors)},t.resetErrorsCount=function resetErrorsCount(e,t){e.assign(s.default.errors,t),e.if(i._`${s.default.vErrors} !== null`,(()=>e.if(t,(()=>e.assign(i._`${s.default.vErrors}.length`,t)),(()=>e.assign(s.default.vErrors,null)))))},t.extendErrors=function extendErrors({gen:e,keyword:t,schemaValue:r,data:n,errsCount:o,it:a}){if(void 0===o)throw new Error("ajv implementation error");const c=e.name("err");e.forRange("i",o,s.default.errors,(o=>{e.const(c,i._`${s.default.vErrors}[${o}]`),e.if(i._`${c}.instancePath === undefined`,(()=>e.assign(i._`${c}.instancePath`,(0,i.strConcat)(s.default.instancePath,a.errorPath)))),e.assign(i._`${c}.schemaPath`,i.str`${a.errSchemaPath}/${t}`),a.opts.verbose&&(e.assign(i._`${c}.schema`,r),e.assign(i._`${c}.data`,n))}))};const o={keyword:new i.Name("keyword"),schemaPath:new i.Name("schemaPath"),params:new i.Name("params"),propertyName:new i.Name("propertyName"),message:new i.Name("message"),schema:new i.Name("schema"),parentSchema:new i.Name("parentSchema")};function errorObjectCode(e,t,r){const{createErrors:n}=e.it;return!1===n?i._`{}`:function errorObject(e,t,r={}){const{gen:n,it:a}=e,c=[errorInstancePath(a,r),errorSchemaPath(e,r)];return function extraErrorProps(e,{params:t,message:r},n){const{keyword:a,data:c,schemaValue:u,it:l}=e,{opts:p,propertyName:d,topSchemaRef:f,schemaPath:y}=l;n.push([o.keyword,a],[o.params,"function"==typeof t?t(e):t||i._`{}`]),p.messages&&n.push([o.message,"function"==typeof r?r(e):r]);p.verbose&&n.push([o.schema,u],[o.parentSchema,i._`${f}${y}`],[s.default.data,c]);d&&n.push([o.propertyName,d])}(e,t,c),n.object(...c)}(e,t,r)}function errorInstancePath({errorPath:e},{instancePath:t}){const r=t?i.str`${e}${(0,n.getErrorPath)(t,n.Type.Str)}`:e;return[s.default.instancePath,(0,i.strConcat)(s.default.instancePath,r)]}function errorSchemaPath({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:s}){let a=s?t:i.str`${t}/${e}`;return r&&(a=i.str`${a}${(0,n.getErrorPath)(r,n.Type.Str)}`),[o.schemaPath,a]}},9392:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const i=r(7898),n=r(5031),s=r(3036),o=r(4856),a=r(458),c=r(6223);class SchemaEnv{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,o.normalizeId)(null==r?void 0:r[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==r?void 0:r.$async,this.refs={}}}function compileSchema(e){const t=getCompilingSchema.call(this,e);if(t)return t;const r=(0,o.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:a,lines:u}=this.opts.code,{ownProperties:l}=this.opts,p=new i.CodeGen(this.scope,{es5:a,lines:u,ownProperties:l});let d;e.$async&&(d=p.scopeValue("Error",{ref:n.default,code:i._`require("ajv/dist/runtime/validation_error").default`}));const f=p.scopeName("validate");e.validateName=f;const y={gen:p,allErrors:this.opts.allErrors,data:s.default.data,parentData:s.default.parentData,parentDataProperty:s.default.parentDataProperty,dataNames:[s.default.data],dataPathArr:[i.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:p.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,i.stringify)(e.schema)}:{ref:e.schema}),validateName:f,ValidationError:d,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:i.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:i._`""`,opts:this.opts,self:this};let h;try{this._compilations.add(e),(0,c.validateFunctionCode)(y),p.optimize(this.opts.code.optimize);const t=p.toString();h=`${p.scopeRefs(s.default.scope)}return ${t}`,this.opts.code.process&&(h=this.opts.code.process(h,e));const r=new Function(`${s.default.self}`,`${s.default.scope}`,h)(this,this.scope.get());if(this.scope.value(f,{ref:r}),r.errors=null,r.schema=e.schema,r.schemaEnv=e,e.$async&&(r.$async=!0),!0===this.opts.code.source&&(r.source={validateName:f,validateCode:t,scopeValues:p._values}),this.opts.unevaluated){const{props:e,items:t}=y;r.evaluated={props:e instanceof i.Name?void 0:e,items:t instanceof i.Name?void 0:t,dynamicProps:e instanceof i.Name,dynamicItems:t instanceof i.Name},r.source&&(r.source.evaluated=(0,i.stringify)(r.evaluated))}return e.validate=r,e}catch(t){throw delete e.validate,delete e.validateName,h&&this.logger.error("Error compiling schema, function code:",h),t}finally{this._compilations.delete(e)}}function inlineOrCompile(e){return(0,o.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:compileSchema.call(this,e)}function getCompilingSchema(e){for(const i of this._compilations)if(r=e,(t=i).schema===r.schema&&t.root===r.root&&t.baseId===r.baseId)return i;var t,r}function resolve(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||resolveSchema.call(this,e,t)}function resolveSchema(e,t){const r=this.opts.uriResolver.parse(t),i=(0,o._getFullPath)(this.opts.uriResolver,r);let n=(0,o.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&i===n)return getJsonPointer.call(this,r,e);const s=(0,o.normalizeId)(i),a=this.refs[s]||this.schemas[s];if("string"==typeof a){const t=resolveSchema.call(this,e,a);if("object"!=typeof(null==t?void 0:t.schema))return;return getJsonPointer.call(this,r,t)}if("object"==typeof(null==a?void 0:a.schema)){if(a.validate||compileSchema.call(this,a),s===(0,o.normalizeId)(t)){const{schema:t}=a,{schemaId:r}=this.opts,i=t[r];return i&&(n=(0,o.resolveUrl)(this.opts.uriResolver,n,i)),new SchemaEnv({schema:t,schemaId:r,root:e,baseId:n})}return getJsonPointer.call(this,r,a)}}t.SchemaEnv=SchemaEnv,t.compileSchema=compileSchema,t.resolveRef=function resolveRef(e,t,r){var i;r=(0,o.resolveUrl)(this.opts.uriResolver,t,r);const n=e.refs[r];if(n)return n;let s=resolve.call(this,e,r);if(void 0===s){const n=null===(i=e.localRefs)||void 0===i?void 0:i[r],{schemaId:o}=this.opts;n&&(s=new SchemaEnv({schema:n,schemaId:o,root:e,baseId:t}))}return void 0!==s?e.refs[r]=inlineOrCompile.call(this,s):void 0},t.getCompilingSchema=getCompilingSchema,t.resolveSchema=resolveSchema;const u=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function getJsonPointer(e,{baseId:t,schema:r,root:i}){var n;if("/"!==(null===(n=e.fragment)||void 0===n?void 0:n[0]))return;for(const i of e.fragment.slice(1).split("/")){if("boolean"==typeof r)return;const e=r[(0,a.unescapeFragment)(i)];if(void 0===e)return;const n="object"==typeof(r=e)&&r[this.opts.schemaId];!u.has(i)&&n&&(t=(0,o.resolveUrl)(this.opts.uriResolver,t,n))}let s;if("boolean"!=typeof r&&r.$ref&&!(0,a.schemaHasRulesButRef)(r,this.RULES)){const e=(0,o.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=resolveSchema.call(this,i,e)}const{schemaId:c}=this.opts;return s=s||new SchemaEnv({schema:r,schemaId:c,root:i,baseId:t}),s.schema!==s.root.schema?s:void 0}},3036:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(7898),n={data:new i.Name("data"),valCxt:new i.Name("valCxt"),instancePath:new i.Name("instancePath"),parentData:new i.Name("parentData"),parentDataProperty:new i.Name("parentDataProperty"),rootData:new i.Name("rootData"),dynamicAnchors:new i.Name("dynamicAnchors"),vErrors:new i.Name("vErrors"),errors:new i.Name("errors"),this:new i.Name("this"),self:new i.Name("self"),scope:new i.Name("scope"),json:new i.Name("json"),jsonPos:new i.Name("jsonPos"),jsonLen:new i.Name("jsonLen"),jsonPart:new i.Name("jsonPart")};t.default=n},5748:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(4856);class MissingRefError extends Error{constructor(e,t,r,n){super(n||`can't resolve reference ${r} from id ${t}`),this.missingRef=(0,i.resolveUrl)(e,t,r),this.missingSchema=(0,i.normalizeId)((0,i.getFullPath)(e,this.missingRef))}}t.default=MissingRefError},4856:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const i=r(458),n=r(8792),s=r(1645),o=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function inlineRef(e,t=!0){return"boolean"==typeof e||(!0===t?!hasRef(e):!!t&&countKeys(e)<=t)};const a=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function hasRef(e){for(const t in e){if(a.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(hasRef))return!0;if("object"==typeof r&&hasRef(r))return!0}return!1}function countKeys(e){let t=0;for(const r in e){if("$ref"===r)return 1/0;if(t++,!o.has(r)&&("object"==typeof e[r]&&(0,i.eachItem)(e[r],(e=>t+=countKeys(e))),t===1/0))return 1/0}return t}function getFullPath(e,t="",r){!1!==r&&(t=normalizeId(t));const i=e.parse(t);return _getFullPath(e,i)}function _getFullPath(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=getFullPath,t._getFullPath=_getFullPath;const c=/#\/?$/;function normalizeId(e){return e?e.replace(c,""):""}t.normalizeId=normalizeId,t.resolveUrl=function resolveUrl(e,t,r){return r=normalizeId(r),e.resolve(t,r)};const u=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function getSchemaRefs(e,t){if("boolean"==typeof e)return{};const{schemaId:r,uriResolver:i}=this.opts,o=normalizeId(e[r]||t),a={"":o},c=getFullPath(i,o,!1),l={},p=new Set;return s(e,{allKeys:!0},((e,t,i,n)=>{if(void 0===n)return;const s=c+t;let o=a[n];function addRef(t){const r=this.opts.uriResolver.resolve;if(t=normalizeId(o?r(o,t):t),p.has(t))throw ambiguos(t);p.add(t);let i=this.refs[t];return"string"==typeof i&&(i=this.refs[i]),"object"==typeof i?checkAmbiguosRef(e,i.schema,t):t!==normalizeId(s)&&("#"===t[0]?(checkAmbiguosRef(e,l[t],t),l[t]=e):this.refs[t]=s),t}function addAnchor(e){if("string"==typeof e){if(!u.test(e))throw new Error(`invalid anchor "${e}"`);addRef.call(this,`#${e}`)}}"string"==typeof e[r]&&(o=addRef.call(this,e[r])),addAnchor.call(this,e.$anchor),addAnchor.call(this,e.$dynamicAnchor),a[t]=o})),l;function checkAmbiguosRef(e,t,r){if(void 0!==t&&!n(e,t))throw ambiguos(r)}function ambiguos(e){return new Error(`reference "${e}" resolves to more than one schema`)}}},383:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;const r=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function isJSONType(e){return"string"==typeof e&&r.has(e)},t.getRules=function getRules(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},458:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const i=r(7898),n=r(3277);function checkUnknownRules(e,t=e.schema){const{opts:r,self:i}=e;if(!r.strictSchema)return;if("boolean"==typeof t)return;const n=i.RULES.keywords;for(const r in t)n[r]||checkStrictMode(e,`unknown keyword: "${r}"`)}function schemaHasRules(e,t){if("boolean"==typeof e)return!e;for(const r in e)if(t[r])return!0;return!1}function escapeJsonPointer(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function unescapeJsonPointer(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function makeMergeEvaluated({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(s,o,a,c)=>{const u=void 0===a?o:a instanceof i.Name?(o instanceof i.Name?e(s,o,a):t(s,o,a),a):o instanceof i.Name?(t(s,a,o),o):r(o,a);return c!==i.Name||u instanceof i.Name?u:n(s,u)}}function evaluatedPropsToName(e,t){if(!0===t)return e.var("props",!0);const r=e.var("props",i._`{}`);return void 0!==t&&setEvaluated(e,r,t),r}function setEvaluated(e,t,r){Object.keys(r).forEach((r=>e.assign(i._`${t}${(0,i.getProperty)(r)}`,!0)))}t.toHash=function toHash(e){const t={};for(const r of e)t[r]=!0;return t},t.alwaysValidSchema=function alwaysValidSchema(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(checkUnknownRules(e,t),!schemaHasRules(t,e.self.RULES.all))},t.checkUnknownRules=checkUnknownRules,t.schemaHasRules=schemaHasRules,t.schemaHasRulesButRef=function schemaHasRulesButRef(e,t){if("boolean"==typeof e)return!e;for(const r in e)if("$ref"!==r&&t.all[r])return!0;return!1},t.schemaRefOrVal=function schemaRefOrVal({topSchemaRef:e,schemaPath:t},r,n,s){if(!s){if("number"==typeof r||"boolean"==typeof r)return r;if("string"==typeof r)return i._`${r}`}return i._`${e}${t}${(0,i.getProperty)(n)}`},t.unescapeFragment=function unescapeFragment(e){return unescapeJsonPointer(decodeURIComponent(e))},t.escapeFragment=function escapeFragment(e){return encodeURIComponent(escapeJsonPointer(e))},t.escapeJsonPointer=escapeJsonPointer,t.unescapeJsonPointer=unescapeJsonPointer,t.eachItem=function eachItem(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)},t.mergeEvaluated={props:makeMergeEvaluated({mergeNames:(e,t,r)=>e.if(i._`${r} !== true && ${t} !== undefined`,(()=>{e.if(i._`${t} === true`,(()=>e.assign(r,!0)),(()=>e.assign(r,i._`${r} || {}`).code(i._`Object.assign(${r}, ${t})`)))})),mergeToName:(e,t,r)=>e.if(i._`${r} !== true`,(()=>{!0===t?e.assign(r,!0):(e.assign(r,i._`${r} || {}`),setEvaluated(e,r,t))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:evaluatedPropsToName}),items:makeMergeEvaluated({mergeNames:(e,t,r)=>e.if(i._`${r} !== true && ${t} !== undefined`,(()=>e.assign(r,i._`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`))),mergeToName:(e,t,r)=>e.if(i._`${r} !== true`,(()=>e.assign(r,!0===t||i._`${r} > ${t} ? ${r} : ${t}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=evaluatedPropsToName,t.setEvaluated=setEvaluated;const s={};var o;function checkStrictMode(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,!0===r)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function useFunc(e,t){return e.scopeValue("func",{ref:t,code:s[t.code]||(s[t.code]=new n._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(o=t.Type||(t.Type={})),t.getErrorPath=function getErrorPath(e,t,r){if(e instanceof i.Name){const n=t===o.Num;return r?n?i._`"[" + ${e} + "]"`:i._`"['" + ${e} + "']"`:n?i._`"/" + ${e}`:i._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,i.getProperty)(e).toString():"/"+escapeJsonPointer(e)},t.checkStrictMode=checkStrictMode},4758:(e,t)=>{"use strict";function shouldUseGroup(e,t){return t.rules.some((t=>shouldUseRule(e,t)))}function shouldUseRule(e,t){var r;return void 0!==e[t.keyword]||(null===(r=t.definition.implements)||void 0===r?void 0:r.some((t=>void 0!==e[t])))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function schemaHasRulesForType({schema:e,self:t},r){const i=t.RULES.types[r];return i&&!0!==i&&shouldUseGroup(e,i)},t.shouldUseGroup=shouldUseGroup,t.shouldUseRule=shouldUseRule},5948:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const i=r(9409),n=r(7898),s=r(3036),o={message:"boolean schema is false"};function falseSchemaError(e,t){const{gen:r,data:n}=e,s={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,i.reportError)(s,o,void 0,t)}t.topBoolOrEmptySchema=function topBoolOrEmptySchema(e){const{gen:t,schema:r,validateName:i}=e;!1===r?falseSchemaError(e,!1):"object"==typeof r&&!0===r.$async?t.return(s.default.data):(t.assign(n._`${i}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function boolOrEmptySchema(e,t){const{gen:r,schema:i}=e;!1===i?(r.var(t,!1),falseSchemaError(e)):r.var(t,!0)}},9003:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const i=r(383),n=r(4758),s=r(9409),o=r(7898),a=r(458);var c;function getJSONTypes(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(i.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(c=t.DataType||(t.DataType={})),t.getSchemaTypes=function getSchemaTypes(e){const t=getJSONTypes(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=getJSONTypes,t.coerceAndCheckDataType=function coerceAndCheckDataType(e,t){const{gen:r,data:i,opts:s}=e,a=function coerceToTypes(e,t){return t?e.filter((e=>u.has(e)||"array"===t&&"array"===e)):[]}(t,s.coerceTypes),l=t.length>0&&!(0===a.length&&1===t.length&&(0,n.schemaHasRulesForType)(e,t[0]));if(l){const n=checkDataTypes(t,i,s.strictNumbers,c.Wrong);r.if(n,(()=>{a.length?function coerceData(e,t,r){const{gen:i,data:n,opts:s}=e,a=i.let("dataType",o._`typeof ${n}`),c=i.let("coerced",o._`undefined`);"array"===s.coerceTypes&&i.if(o._`${a} == 'object' && Array.isArray(${n}) && ${n}.length == 1`,(()=>i.assign(n,o._`${n}[0]`).assign(a,o._`typeof ${n}`).if(checkDataTypes(t,n,s.strictNumbers),(()=>i.assign(c,n)))));i.if(o._`${c} !== undefined`);for(const e of r)(u.has(e)||"array"===e&&"array"===s.coerceTypes)&&coerceSpecificType(e);function coerceSpecificType(e){switch(e){case"string":return void i.elseIf(o._`${a} == "number" || ${a} == "boolean"`).assign(c,o._`"" + ${n}`).elseIf(o._`${n} === null`).assign(c,o._`""`);case"number":return void i.elseIf(o._`${a} == "boolean" || ${n} === null
|
|
3
|
-
|| (${a} == "string" && ${n} && ${n} == +${n})`).assign(c,o._`+${n}`);case"integer":return void i.elseIf(o._`${a} === "boolean" || ${n} === null
|
|
4
|
-
|| (${a} === "string" && ${n} && ${n} == +${n} && !(${n} % 1))`).assign(c,o._`+${n}`);case"boolean":return void i.elseIf(o._`${n} === "false" || ${n} === 0 || ${n} === null`).assign(c,!1).elseIf(o._`${n} === "true" || ${n} === 1`).assign(c,!0);case"null":return i.elseIf(o._`${n} === "" || ${n} === 0 || ${n} === false`),void i.assign(c,null);case"array":i.elseIf(o._`${a} === "string" || ${a} === "number"
|
|
5
|
-
|| ${a} === "boolean" || ${n} === null`).assign(c,o._`[${n}]`)}}i.else(),reportTypeError(e),i.endIf(),i.if(o._`${c} !== undefined`,(()=>{i.assign(n,c),function assignParentData({gen:e,parentData:t,parentDataProperty:r},i){e.if(o._`${t} !== undefined`,(()=>e.assign(o._`${t}[${r}]`,i)))}(e,c)}))}(e,t,a):reportTypeError(e)}))}return l};const u=new Set(["string","number","integer","boolean","null"]);function checkDataType(e,t,r,i=c.Correct){const n=i===c.Correct?o.operators.EQ:o.operators.NEQ;let s;switch(e){case"null":return o._`${t} ${n} null`;case"array":s=o._`Array.isArray(${t})`;break;case"object":s=o._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=numCond(o._`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=numCond();break;default:return o._`typeof ${t} ${n} ${e}`}return i===c.Correct?s:(0,o.not)(s);function numCond(e=o.nil){return(0,o.and)(o._`typeof ${t} == "number"`,e,r?o._`isFinite(${t})`:o.nil)}}function checkDataTypes(e,t,r,i){if(1===e.length)return checkDataType(e[0],t,r,i);let n;const s=(0,a.toHash)(e);if(s.array&&s.object){const e=o._`typeof ${t} != "object"`;n=s.null?e:o._`!${t} || ${e}`,delete s.null,delete s.array,delete s.object}else n=o.nil;s.number&&delete s.integer;for(const e in s)n=(0,o.and)(n,checkDataType(e,t,r,i));return n}t.checkDataType=checkDataType,t.checkDataTypes=checkDataTypes;const l={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?o._`{type: ${e}}`:o._`{type: ${t}}`};function reportTypeError(e){const t=function getTypeErrorContext(e){const{gen:t,data:r,schema:i}=e,n=(0,a.schemaRefOrVal)(e,i,"type");return{gen:t,keyword:"type",data:r,schema:i.type,schemaCode:n,schemaValue:n,parentSchema:i,params:{},it:e}}(e);(0,s.reportError)(t,l)}t.reportTypeError=reportTypeError},6841:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const i=r(7898),n=r(458);function assignDefault(e,t,r){const{gen:s,compositeRule:o,data:a,opts:c}=e;if(void 0===r)return;const u=i._`${a}${(0,i.getProperty)(t)}`;if(o)return void(0,n.checkStrictMode)(e,`default is ignored for: ${u}`);let l=i._`${u} === undefined`;"empty"===c.useDefaults&&(l=i._`${l} || ${u} === null || ${u} === ""`),s.if(l,i._`${u} = ${(0,i.stringify)(r)}`)}t.assignDefaults=function assignDefaults(e,t){const{properties:r,items:i}=e.schema;if("object"===t&&r)for(const t in r)assignDefault(e,t,r[t].default);else"array"===t&&Array.isArray(i)&&i.forEach(((t,r)=>assignDefault(e,r,t.default)))}},6223:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const i=r(5948),n=r(9003),s=r(4758),o=r(9003),a=r(6841),c=r(9348),u=r(3322),l=r(7898),p=r(3036),d=r(4856),f=r(458),y=r(9409);function validateFunction({gen:e,validateName:t,schema:r,schemaEnv:i,opts:n},s){n.code.es5?e.func(t,l._`${p.default.data}, ${p.default.valCxt}`,i.$async,(()=>{e.code(l._`"use strict"; ${funcSourceUrl(r,n)}`),function destructureValCxtES5(e,t){e.if(p.default.valCxt,(()=>{e.var(p.default.instancePath,l._`${p.default.valCxt}.${p.default.instancePath}`),e.var(p.default.parentData,l._`${p.default.valCxt}.${p.default.parentData}`),e.var(p.default.parentDataProperty,l._`${p.default.valCxt}.${p.default.parentDataProperty}`),e.var(p.default.rootData,l._`${p.default.valCxt}.${p.default.rootData}`),t.dynamicRef&&e.var(p.default.dynamicAnchors,l._`${p.default.valCxt}.${p.default.dynamicAnchors}`)}),(()=>{e.var(p.default.instancePath,l._`""`),e.var(p.default.parentData,l._`undefined`),e.var(p.default.parentDataProperty,l._`undefined`),e.var(p.default.rootData,p.default.data),t.dynamicRef&&e.var(p.default.dynamicAnchors,l._`{}`)}))}(e,n),e.code(s)})):e.func(t,l._`${p.default.data}, ${function destructureValCxt(e){return l._`{${p.default.instancePath}="", ${p.default.parentData}, ${p.default.parentDataProperty}, ${p.default.rootData}=${p.default.data}${e.dynamicRef?l._`, ${p.default.dynamicAnchors}={}`:l.nil}}={}`}(n)}`,i.$async,(()=>e.code(funcSourceUrl(r,n)).code(s)))}function funcSourceUrl(e,t){const r="object"==typeof e&&e[t.schemaId];return r&&(t.code.source||t.code.process)?l._`/*# sourceURL=${r} */`:l.nil}function subschemaCode(e,t){isSchemaObj(e)&&(checkKeywords(e),schemaCxtHasRules(e))?function subSchemaObjCode(e,t){const{schema:r,gen:i,opts:n}=e;n.$comment&&r.$comment&&commentKeyword(e);(function updateContext(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,d.resolveUrl)(e.opts.uriResolver,e.baseId,t))})(e),function checkAsyncSchema(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const s=i.const("_errs",p.default.errors);typeAndKeywords(e,s),i.var(t,l._`${s} === ${p.default.errors}`)}(e,t):(0,i.boolOrEmptySchema)(e,t)}function schemaCxtHasRules({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function isSchemaObj(e){return"boolean"!=typeof e.schema}function checkKeywords(e){(0,f.checkUnknownRules)(e),function checkRefsAndKeywords(e){const{schema:t,errSchemaPath:r,opts:i,self:n}=e;t.$ref&&i.ignoreKeywordsWithRef&&(0,f.schemaHasRulesButRef)(t,n.RULES)&&n.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function typeAndKeywords(e,t){if(e.opts.jtd)return schemaKeywords(e,[],!1,t);const r=(0,n.getSchemaTypes)(e.schema);schemaKeywords(e,r,!(0,n.coerceAndCheckDataType)(e,r),t)}function commentKeyword({gen:e,schemaEnv:t,schema:r,errSchemaPath:i,opts:n}){const s=r.$comment;if(!0===n.$comment)e.code(l._`${p.default.self}.logger.log(${s})`);else if("function"==typeof n.$comment){const r=l.str`${i}/$comment`,n=e.scopeValue("root",{ref:t.root});e.code(l._`${p.default.self}.opts.$comment(${s}, ${r}, ${n}.schema)`)}}function schemaKeywords(e,t,r,i){const{gen:n,schema:a,data:c,allErrors:u,opts:d,self:y}=e,{RULES:h}=y;function groupKeywords(f){(0,s.shouldUseGroup)(a,f)&&(f.type?(n.if((0,o.checkDataType)(f.type,c,d.strictNumbers)),iterateKeywords(e,f),1===t.length&&t[0]===f.type&&r&&(n.else(),(0,o.reportTypeError)(e)),n.endIf()):iterateKeywords(e,f),u||n.if(l._`${p.default.errors} === ${i||0}`))}!a.$ref||!d.ignoreKeywordsWithRef&&(0,f.schemaHasRulesButRef)(a,h)?(d.jtd||function checkStrictTypes(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function checkContextTypes(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach((t=>{includesType(e.dataTypes,t)||strictTypesError(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function narrowSchemaTypes(e,t){const r=[];for(const i of e.dataTypes)includesType(t,i)?r.push(i):t.includes("integer")&&"number"===i&&r.push("integer");e.dataTypes=r}(e,t)})(e,t),e.opts.allowUnionTypes||function checkMultipleTypes(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&strictTypesError(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function checkKeywordTypes(e,t){const r=e.self.RULES.all;for(const i in r){const n=r[i];if("object"==typeof n&&(0,s.shouldUseRule)(e.schema,n)){const{type:r}=n.definition;r.length&&!r.some((e=>hasApplicableType(t,e)))&&strictTypesError(e,`missing type "${r.join(",")}" for keyword "${i}"`)}}}(e,e.dataTypes)}(e,t),n.block((()=>{for(const e of h.rules)groupKeywords(e);groupKeywords(h.post)}))):n.block((()=>keywordCode(e,"$ref",h.all.$ref.definition)))}function iterateKeywords(e,t){const{gen:r,schema:i,opts:{useDefaults:n}}=e;n&&(0,a.assignDefaults)(e,t.type),r.block((()=>{for(const r of t.rules)(0,s.shouldUseRule)(i,r)&&keywordCode(e,r.keyword,r.definition,t.type)}))}function hasApplicableType(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function includesType(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function strictTypesError(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,f.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function validateFunctionCode(e){isSchemaObj(e)&&(checkKeywords(e),schemaCxtHasRules(e))?function topSchemaObjCode(e){const{schema:t,opts:r,gen:i}=e;return void validateFunction(e,(()=>{r.$comment&&t.$comment&&commentKeyword(e),function checkNoDefault(e){const{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,f.checkStrictMode)(e,"default is ignored in the schema root")}(e),i.let(p.default.vErrors,null),i.let(p.default.errors,0),r.unevaluated&&function resetEvaluated(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",l._`${r}.evaluated`),t.if(l._`${e.evaluated}.dynamicProps`,(()=>t.assign(l._`${e.evaluated}.props`,l._`undefined`))),t.if(l._`${e.evaluated}.dynamicItems`,(()=>t.assign(l._`${e.evaluated}.items`,l._`undefined`)))}(e),typeAndKeywords(e),function returnResults(e){const{gen:t,schemaEnv:r,validateName:i,ValidationError:n,opts:s}=e;r.$async?t.if(l._`${p.default.errors} === 0`,(()=>t.return(p.default.data)),(()=>t.throw(l._`new ${n}(${p.default.vErrors})`))):(t.assign(l._`${i}.errors`,p.default.vErrors),s.unevaluated&&function assignEvaluated({gen:e,evaluated:t,props:r,items:i}){r instanceof l.Name&&e.assign(l._`${t}.props`,r);i instanceof l.Name&&e.assign(l._`${t}.items`,i)}(e),t.return(l._`${p.default.errors} === 0`))}(e)}))}(e):validateFunction(e,(()=>(0,i.topBoolOrEmptySchema)(e)))};class KeywordCxt{constructor(e,t,r){if((0,c.validateKeywordUsage)(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,f.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",getData(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,c.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",p.default.errors))}result(e,t,r){this.failResult((0,l.not)(e),t,r)}failResult(e,t,r){this.gen.if(e),r?r():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,l.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(l._`${t} !== undefined && (${(0,l.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t)return this.setParams(t),this._error(e,r),void this.setParams({});this._error(e,r)}_error(e,t){(e?y.reportExtraError:y.reportError)(this,this.def.error,t)}$dataError(){(0,y.reportError)(this,this.def.$dataError||y.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,y.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,r=l.nil){this.gen.block((()=>{this.check$data(e,r),t()}))}check$data(e=l.nil,t=l.nil){if(!this.$data)return;const{gen:r,schemaCode:i,schemaType:n,def:s}=this;r.if((0,l.or)(l._`${i} === undefined`,t)),e!==l.nil&&r.assign(e,!0),(n.length||s.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==l.nil&&r.assign(e,!1)),r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:i,it:n}=this;return(0,l.or)(function wrong$DataType(){if(r.length){if(!(t instanceof l.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return l._`${(0,o.checkDataTypes)(e,t,n.opts.strictNumbers,o.DataType.Wrong)}`}return l.nil}(),function invalid$DataSchema(){if(i.validateSchema){const r=e.scopeValue("validate$data",{ref:i.validateSchema});return l._`!${r}(${t})`}return l.nil}())}subschema(e,t){const r=(0,u.getSubschema)(this.it,e);(0,u.extendSubschemaData)(r,this.it,e),(0,u.extendSubschemaMode)(r,e);const i={...this.it,...r,items:void 0,props:void 0};return subschemaCode(i,t),i}mergeEvaluated(e,t){const{it:r,gen:i}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=f.mergeEvaluated.props(i,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=f.mergeEvaluated.items(i,e.items,r.items,t)))}mergeValidEvaluated(e,t){const{it:r,gen:i}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return i.if(t,(()=>this.mergeEvaluated(e,l.Name))),!0}}function keywordCode(e,t,r,i){const n=new KeywordCxt(e,r,t);"code"in r?r.code(n,i):n.$data&&r.validate?(0,c.funcKeywordCode)(n,r):"macro"in r?(0,c.macroKeywordCode)(n,r):(r.compile||r.validate)&&(0,c.funcKeywordCode)(n,r)}t.KeywordCxt=KeywordCxt;const h=/^\/(?:[^~]|~0|~1)*$/,g=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function getData(e,{dataLevel:t,dataNames:r,dataPathArr:i}){let n,s;if(""===e)return p.default.rootData;if("/"===e[0]){if(!h.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);n=e,s=p.default.rootData}else{const o=g.exec(e);if(!o)throw new Error(`Invalid JSON-pointer: ${e}`);const a=+o[1];if(n=o[2],"#"===n){if(a>=t)throw new Error(errorMsg("property/index",a));return i[t-a]}if(a>t)throw new Error(errorMsg("data",a));if(s=r[t-a],!n)return s}let o=s;const a=n.split("/");for(const e of a)e&&(s=l._`${s}${(0,l.getProperty)((0,f.unescapeJsonPointer)(e))}`,o=l._`${o} && ${s}`);return o;function errorMsg(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}t.getData=getData},9348:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const i=r(7898),n=r(3036),s=r(4450),o=r(9409);function modifyData(e){const{gen:t,data:r,it:n}=e;t.if(n.parentData,(()=>t.assign(r,i._`${n.parentData}[${n.parentDataProperty}]`)))}function useKeyword(e,t,r){if(void 0===r)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof r?{ref:r}:{ref:r,code:(0,i.stringify)(r)})}t.macroKeywordCode=function macroKeywordCode(e,t){const{gen:r,keyword:n,schema:s,parentSchema:o,it:a}=e,c=t.macro.call(a.self,s,o,a),u=useKeyword(r,n,c);!1!==a.opts.validateSchema&&a.self.validateSchema(c,!0);const l=r.name("valid");e.subschema({schema:c,schemaPath:i.nil,errSchemaPath:`${a.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},l),e.pass(l,(()=>e.error(!0)))},t.funcKeywordCode=function funcKeywordCode(e,t){var r;const{gen:a,keyword:c,schema:u,parentSchema:l,$data:p,it:d}=e;!function checkAsyncKeyword({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(d,t);const f=!p&&t.compile?t.compile.call(d.self,u,l,d):t.validate,y=useKeyword(a,c,f),h=a.let("valid");function assignValid(r=(t.async?i._`await `:i.nil)){const o=d.opts.passContext?n.default.this:n.default.self,c=!("compile"in t&&!p||!1===t.schema);a.assign(h,i._`${r}${(0,s.callValidateCode)(e,y,o,c)}`,t.modifying)}function reportErrs(e){var r;a.if((0,i.not)(null!==(r=t.valid)&&void 0!==r?r:h),e)}e.block$data(h,(function validateKeyword(){if(!1===t.errors)assignValid(),t.modifying&&modifyData(e),reportErrs((()=>e.error()));else{const r=t.async?function validateAsync(){const e=a.let("ruleErrs",null);return a.try((()=>assignValid(i._`await `)),(t=>a.assign(h,!1).if(i._`${t} instanceof ${d.ValidationError}`,(()=>a.assign(e,i._`${t}.errors`)),(()=>a.throw(t))))),e}():function validateSync(){const e=i._`${y}.errors`;return a.assign(e,null),assignValid(i.nil),e}();t.modifying&&modifyData(e),reportErrs((()=>function addErrs(e,t){const{gen:r}=e;r.if(i._`Array.isArray(${t})`,(()=>{r.assign(n.default.vErrors,i._`${n.default.vErrors} === null ? ${t} : ${n.default.vErrors}.concat(${t})`).assign(n.default.errors,i._`${n.default.vErrors}.length`),(0,o.extendErrors)(e)}),(()=>e.error()))}(e,r)))}})),e.ok(null!==(r=t.valid)&&void 0!==r?r:h)},t.validSchemaType=function validSchemaType(e,t,r=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&void 0===e))},t.validateKeywordUsage=function validateKeywordUsage({schema:e,opts:t,self:r,errSchemaPath:i},n,s){if(Array.isArray(n.keyword)?!n.keyword.includes(s):n.keyword!==s)throw new Error("ajv implementation error");const o=n.dependencies;if(null==o?void 0:o.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${s}: ${o.join(",")}`);if(n.validateSchema){if(!n.validateSchema(e[s])){const e=`keyword "${s}" value is invalid at path "${i}": `+r.errorsText(n.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);r.logger.error(e)}}}},3322:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const i=r(7898),n=r(458);t.getSubschema=function getSubschema(e,{keyword:t,schemaProp:r,schema:s,schemaPath:o,errSchemaPath:a,topSchemaRef:c}){if(void 0!==t&&void 0!==s)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const s=e.schema[t];return void 0===r?{schema:s,schemaPath:i._`${e.schemaPath}${(0,i.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:s[r],schemaPath:i._`${e.schemaPath}${(0,i.getProperty)(t)}${(0,i.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,n.escapeFragment)(r)}`}}if(void 0!==s){if(void 0===o||void 0===a||void 0===c)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:s,schemaPath:o,topSchemaRef:c,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function extendSubschemaData(e,t,{dataProp:r,dataPropType:s,data:o,dataTypes:a,propertyName:c}){if(void 0!==o&&void 0!==r)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:u}=t;if(void 0!==r){const{errorPath:o,dataPathArr:a,opts:c}=t;dataContextProps(u.let("data",i._`${t.data}${(0,i.getProperty)(r)}`,!0)),e.errorPath=i.str`${o}${(0,n.getErrorPath)(r,s,c.jsPropertySyntax)}`,e.parentDataProperty=i._`${r}`,e.dataPathArr=[...a,e.parentDataProperty]}if(void 0!==o){dataContextProps(o instanceof i.Name?o:u.let("data",o,!0)),void 0!==c&&(e.propertyName=c)}function dataContextProps(r){e.data=r,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,r]}a&&(e.dataTypes=a)},t.extendSubschemaMode=function extendSubschemaMode(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:i,createErrors:n,allErrors:s}){void 0!==i&&(e.compositeRule=i),void 0!==n&&(e.createErrors=n),void 0!==s&&(e.allErrors=s),e.jtdDiscriminator=t,e.jtdMetadata=r}},5319:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var i=r(6223);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return i.KeywordCxt}});var n=r(7898);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return n.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return n.CodeGen}});const s=r(5031),o=r(5748),a=r(383),c=r(9392),u=r(7898),l=r(4856),p=r(9003),d=r(458),f=r(3770),y=r(7903),defaultRegExp=(e,t)=>new RegExp(e,t);defaultRegExp.code="new RegExp";const h=["removeAdditional","useDefaults","coerceTypes"],g=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),m={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},v={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function requiredOptions(e){var t,r,i,n,s,o,a,c,u,l,p,d,f,h,g,m,v,b,R,O,S,I,w,P,j;const A=e.strict,$=null===(t=e.code)||void 0===t?void 0:t.optimize,N=!0===$||void 0===$?1:$||0,T=null!==(i=null===(r=e.code)||void 0===r?void 0:r.regExp)&&void 0!==i?i:defaultRegExp,q=null!==(n=e.uriResolver)&&void 0!==n?n:y.default;return{strictSchema:null===(o=null!==(s=e.strictSchema)&&void 0!==s?s:A)||void 0===o||o,strictNumbers:null===(c=null!==(a=e.strictNumbers)&&void 0!==a?a:A)||void 0===c||c,strictTypes:null!==(l=null!==(u=e.strictTypes)&&void 0!==u?u:A)&&void 0!==l?l:"log",strictTuples:null!==(d=null!==(p=e.strictTuples)&&void 0!==p?p:A)&&void 0!==d?d:"log",strictRequired:null!==(h=null!==(f=e.strictRequired)&&void 0!==f?f:A)&&void 0!==h&&h,code:e.code?{...e.code,optimize:N,regExp:T}:{optimize:N,regExp:T},loopRequired:null!==(g=e.loopRequired)&&void 0!==g?g:200,loopEnum:null!==(m=e.loopEnum)&&void 0!==m?m:200,meta:null===(v=e.meta)||void 0===v||v,messages:null===(b=e.messages)||void 0===b||b,inlineRefs:null===(R=e.inlineRefs)||void 0===R||R,schemaId:null!==(O=e.schemaId)&&void 0!==O?O:"$id",addUsedSchema:null===(S=e.addUsedSchema)||void 0===S||S,validateSchema:null===(I=e.validateSchema)||void 0===I||I,validateFormats:null===(w=e.validateFormats)||void 0===w||w,unicodeRegExp:null===(P=e.unicodeRegExp)||void 0===P||P,int32range:null===(j=e.int32range)||void 0===j||j,uriResolver:q}}class Ajv{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...requiredOptions(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new u.ValueScope({scope:{},prefixes:g,es5:t,lines:r}),this.logger=function getLogger(e){if(!1===e)return b;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const i=e.validateFormats;e.validateFormats=!1,this.RULES=(0,a.getRules)(),checkOptions.call(this,m,e,"NOT SUPPORTED"),checkOptions.call(this,v,e,"DEPRECATED","warn"),this._metaOpts=getMetaSchemaOptions.call(this),e.formats&&addInitialFormats.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&addInitialKeywords.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),addInitialSchemas.call(this),e.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let i=f;"id"===r&&(i={...f},i.id=i.$id,delete i.$id),t&&e&&this.addMetaSchema(i,i[r],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let r;if("string"==typeof e){if(r=this.getSchema(e),!r)throw new Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);const i=r(t);return"$async"in r||(this.errors=r.errors),i}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:r}=this.opts;return runCompileAsync.call(this,e,t);async function runCompileAsync(e,t){await loadMetaSchema.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||_compileAsync.call(this,r)}async function loadMetaSchema(e){e&&!this.getSchema(e)&&await runCompileAsync.call(this,{$ref:e},!0)}async function _compileAsync(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof o.default))throw t;return checkLoaded.call(this,t),await loadMissingSchema.call(this,t.missingSchema),_compileAsync.call(this,e)}}function checkLoaded({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function loadMissingSchema(e){const r=await _loadSchema.call(this,e);this.refs[e]||await loadMetaSchema.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function _loadSchema(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,i=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,r,i);return this}let n;if("object"==typeof e){const{schemaId:t}=this.opts;if(n=e[t],void 0!==n&&"string"!=typeof n)throw new Error(`schema ${t} must be string`)}return t=(0,l.normalizeId)(t||n),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,i,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let r;if(r=e.$schema,void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const i=this.validate(r,e);if(!i&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return i}getSchema(e){let t;for(;"string"==typeof(t=getSchEnv.call(this,e));)e=t;if(void 0===t){const{schemaId:r}=this.opts,i=new c.SchemaEnv({schema:{},schemaId:r});if(t=c.resolveSchema.call(this,i,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=getSchEnv.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let r=e[this.opts.schemaId];return r&&(r=(0,l.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(r=(t=e).keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(checkKeyword.call(this,r,t),!t)return(0,d.eachItem)(r,(e=>addRule.call(this,e))),this;keywordMetaschema.call(this,t);const i={...t,type:(0,p.getJSONTypes)(t.type),schemaType:(0,p.getJSONTypes)(t.schemaType)};return(0,d.eachItem)(r,0===i.type.length?e=>addRule.call(this,e,i):e=>i.type.forEach((t=>addRule.call(this,e,i,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex((t=>t.keyword===e));t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){return e&&0!==e.length?e.map((e=>`${r}${e.instancePath} ${e.message}`)).reduce(((e,r)=>e+t+r)):"No errors"}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const i of t){const t=i.split("/").slice(1);let n=e;for(const e of t)n=n[e];for(const e in r){const t=r[e];if("object"!=typeof t)continue;const{$data:i}=t.definition,s=n[e];i&&s&&(n[e]=schemaOrData(s))}}return e}_removeAllSchemas(e,t){for(const r in e){const i=e[r];t&&!t.test(r)||("string"==typeof i?delete e[r]:i&&!i.meta&&(this._cache.delete(i.schema),delete e[r]))}}_addSchema(e,t,r,i=this.opts.validateSchema,n=this.opts.addUsedSchema){let s;const{schemaId:o}=this.opts;if("object"==typeof e)s=e[o];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let a=this._cache.get(e);if(void 0!==a)return a;r=(0,l.normalizeId)(s||r);const u=l.getSchemaRefs.call(this,e,r);return a=new c.SchemaEnv({schema:e,schemaId:o,meta:t,baseId:r,localRefs:u}),this._cache.set(a.schema,a),n&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=a),i&&this.validateSchema(e,!0),a}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):c.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{c.compileSchema.call(this,e)}finally{this.opts=t}}}function checkOptions(e,t,r,i="error"){for(const n in e){const s=n;s in t&&this.logger[i](`${r}: option ${n}. ${e[s]}`)}}function getSchEnv(e){return e=(0,l.normalizeId)(e),this.schemas[e]||this.refs[e]}function addInitialSchemas(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function addInitialFormats(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function addInitialKeywords(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}}function getMetaSchemaOptions(){const e={...this.opts};for(const t of h)delete e[t];return e}t.default=Ajv,Ajv.ValidationError=s.default,Ajv.MissingRefError=o.default;const b={log(){},warn(){},error(){}};const R=/^[a-z_$][a-z0-9_$:-]*$/i;function checkKeyword(e,t){const{RULES:r}=this;if((0,d.eachItem)(e,(e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!R.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function addRule(e,t,r){var i;const n=null==t?void 0:t.post;if(r&&n)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:s}=this;let o=n?s.post:s.rules.find((({type:e})=>e===r));if(o||(o={type:r,rules:[]},s.rules.push(o)),s.keywords[e]=!0,!t)return;const a={keyword:e,definition:{...t,type:(0,p.getJSONTypes)(t.type),schemaType:(0,p.getJSONTypes)(t.schemaType)}};t.before?addBeforeRule.call(this,o,a,t.before):o.rules.push(a),s.all[e]=a,null===(i=t.implements)||void 0===i||i.forEach((e=>this.addKeyword(e)))}function addBeforeRule(e,t,r){const i=e.rules.findIndex((e=>e.keyword===r));i>=0?e.rules.splice(i,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function keywordMetaschema(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=schemaOrData(t)),e.validateSchema=this.compile(t,!0))}const O={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function schemaOrData(e){return{anyOf:[e,O]}}},2725:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(8792);i.code='require("ajv/dist/runtime/equal").default',t.default=i},6308:(e,t)=>{"use strict";function ucs2length(e){const t=e.length;let r,i=0,n=0;for(;n<t;)i++,r=e.charCodeAt(n++),r>=55296&&r<=56319&&n<t&&(r=e.charCodeAt(n),56320==(64512&r)&&n++);return i}Object.defineProperty(t,"__esModule",{value:!0}),t.default=ucs2length,ucs2length.code='require("ajv/dist/runtime/ucs2length").default'},7903:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(2862);i.code='require("ajv/dist/runtime/uri").default',t.default=i},5031:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class ValidationError extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=ValidationError},3426:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;const i=r(7898),n=r(458),s={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>i.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>i._`{limit: ${e}}`},code(e){const{parentSchema:t,it:r}=e,{items:i}=t;Array.isArray(i)?validateAdditionalItems(e,i):(0,n.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas')}};function validateAdditionalItems(e,t){const{gen:r,schema:s,data:o,keyword:a,it:c}=e;c.items=!0;const u=r.const("len",i._`${o}.length`);if(!1===s)e.setParams({len:t.length}),e.pass(i._`${u} <= ${t.length}`);else if("object"==typeof s&&!(0,n.alwaysValidSchema)(c,s)){const s=r.var("valid",i._`${u} <= ${t.length}`);r.if((0,i.not)(s),(()=>function validateItems(s){r.forRange("i",t.length,u,(t=>{e.subschema({keyword:a,dataProp:t,dataPropType:n.Type.Num},s),c.allErrors||r.if((0,i.not)(s),(()=>r.break()))}))}(s))),e.ok(s)}}t.validateAdditionalItems=validateAdditionalItems,t.default=s},2697:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(4450),n=r(7898),s=r(3036),o=r(458),a={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>n._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:r,parentSchema:a,data:c,errsCount:u,it:l}=e;if(!u)throw new Error("ajv implementation error");const{allErrors:p,opts:d}=l;if(l.props=!0,"all"!==d.removeAdditional&&(0,o.alwaysValidSchema)(l,r))return;const f=(0,i.allSchemaProperties)(a.properties),y=(0,i.allSchemaProperties)(a.patternProperties);function deleteAdditional(e){t.code(n._`delete ${c}[${e}]`)}function additionalPropertyCode(i){if("all"===d.removeAdditional||d.removeAdditional&&!1===r)deleteAdditional(i);else{if(!1===r)return e.setParams({additionalProperty:i}),e.error(),void(p||t.break());if("object"==typeof r&&!(0,o.alwaysValidSchema)(l,r)){const r=t.name("valid");"failing"===d.removeAdditional?(applyAdditionalSchema(i,r,!1),t.if((0,n.not)(r),(()=>{e.reset(),deleteAdditional(i)}))):(applyAdditionalSchema(i,r),p||t.if((0,n.not)(r),(()=>t.break())))}}}function applyAdditionalSchema(t,r,i){const n={keyword:"additionalProperties",dataProp:t,dataPropType:o.Type.Str};!1===i&&Object.assign(n,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(n,r)}!function checkAdditionalProperties(){t.forIn("key",c,(r=>{f.length||y.length?t.if(function isAdditional(r){let s;if(f.length>8){const e=(0,o.schemaRefOrVal)(l,a.properties,"properties");s=(0,i.isOwnProperty)(t,e,r)}else s=f.length?(0,n.or)(...f.map((e=>n._`${r} === ${e}`))):n.nil;y.length&&(s=(0,n.or)(s,...y.map((t=>n._`${(0,i.usePattern)(e,t)}.test(${r})`))));return(0,n.not)(s)}(r),(()=>additionalPropertyCode(r))):additionalPropertyCode(r)}))}(),e.ok(n._`${u} === ${s.default.errors}`)}};t.default=a},9355:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(458),n={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const s=t.name("valid");r.forEach(((t,r)=>{if((0,i.alwaysValidSchema)(n,t))return;const o=e.subschema({keyword:"allOf",schemaProp:r},s);e.ok(s),e.mergeEvaluated(o)}))}};t.default=n},9430:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:r(4450).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=i},5724:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(7898),n=r(458),s={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?i.str`must contain at least ${e} valid item(s)`:i.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?i._`{minContains: ${e}}`:i._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:r,parentSchema:s,data:o,it:a}=e;let c,u;const{minContains:l,maxContains:p}=s;a.opts.next?(c=void 0===l?1:l,u=p):c=1;const d=t.const("len",i._`${o}.length`);if(e.setParams({min:c,max:u}),void 0===u&&0===c)return void(0,n.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==u&&c>u)return(0,n.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,n.alwaysValidSchema)(a,r)){let t=i._`${d} >= ${c}`;return void 0!==u&&(t=i._`${t} && ${d} <= ${u}`),void e.pass(t)}a.items=!0;const f=t.name("valid");function validateItemsWithCount(){const e=t.name("_valid"),r=t.let("count",0);validateItems(e,(()=>t.if(e,(()=>function checkLimits(e){t.code(i._`${e}++`),void 0===u?t.if(i._`${e} >= ${c}`,(()=>t.assign(f,!0).break())):(t.if(i._`${e} > ${u}`,(()=>t.assign(f,!1).break())),1===c?t.assign(f,!0):t.if(i._`${e} >= ${c}`,(()=>t.assign(f,!0))))}(r)))))}function validateItems(r,i){t.forRange("i",0,d,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:n.Type.Num,compositeRule:!0},r),i()}))}void 0===u&&1===c?validateItems(f,(()=>t.if(f,(()=>t.break())))):0===c?(t.let(f,!0),void 0!==u&&t.if(i._`${o}.length > 0`,validateItemsWithCount)):(t.let(f,!1),validateItemsWithCount()),e.result(f,(()=>e.reset()))}};t.default=s},9868:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const i=r(7898),n=r(458),s=r(4450);t.error={message:({params:{property:e,depsCount:t,deps:r}})=>{const n=1===t?"property":"properties";return i.str`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>i._`{property: ${e},
|
|
6
|
-
missingProperty: ${n},
|
|
7
|
-
depsCount: ${t},
|
|
8
|
-
deps: ${r}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,r]=function splitDependencies({schema:e}){const t={},r={};for(const i in e){if("__proto__"===i)continue;(Array.isArray(e[i])?t:r)[i]=e[i]}return[t,r]}(e);validatePropertyDeps(e,t),validateSchemaDeps(e,r)}};function validatePropertyDeps(e,t=e.schema){const{gen:r,data:n,it:o}=e;if(0===Object.keys(t).length)return;const a=r.let("missing");for(const c in t){const u=t[c];if(0===u.length)continue;const l=(0,s.propertyInData)(r,n,c,o.opts.ownProperties);e.setParams({property:c,depsCount:u.length,deps:u.join(", ")}),o.allErrors?r.if(l,(()=>{for(const t of u)(0,s.checkReportMissingProp)(e,t)})):(r.if(i._`${l} && (${(0,s.checkMissingProp)(e,u,a)})`),(0,s.reportMissingProp)(e,a),r.else())}}function validateSchemaDeps(e,t=e.schema){const{gen:r,data:i,keyword:o,it:a}=e,c=r.name("valid");for(const u in t)(0,n.alwaysValidSchema)(a,t[u])||(r.if((0,s.propertyInData)(r,i,u,a.opts.ownProperties),(()=>{const t=e.subschema({keyword:o,schemaProp:u},c);e.mergeValidEvaluated(t,c)}),(()=>r.var(c,!0))),e.ok(c))}t.validatePropertyDeps=validatePropertyDeps,t.validateSchemaDeps=validateSchemaDeps,t.default=o},510:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(7898),n=r(458),s={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>i.str`must match "${e.ifClause}" schema`,params:({params:e})=>i._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:r,it:s}=e;void 0===r.then&&void 0===r.else&&(0,n.checkStrictMode)(s,'"if" without "then" and "else" is ignored');const o=hasSchema(s,"then"),a=hasSchema(s,"else");if(!o&&!a)return;const c=t.let("valid",!0),u=t.name("_valid");if(function validateIf(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},u);e.mergeEvaluated(t)}(),e.reset(),o&&a){const r=t.let("ifClause");e.setParams({ifClause:r}),t.if(u,validateClause("then",r),validateClause("else",r))}else o?t.if(u,validateClause("then")):t.if((0,i.not)(u),validateClause("else"));function validateClause(r,n){return()=>{const s=e.subschema({keyword:r},u);t.assign(c,u),e.mergeValidEvaluated(s,c),n?t.assign(n,i._`${r}`):e.setParams({ifClause:r})}}e.pass(c,(()=>e.error(!0)))}};function hasSchema(e,t){const r=e.schema[t];return void 0!==r&&!(0,n.alwaysValidSchema)(e,r)}t.default=s},8225:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(3426),n=r(1349),s=r(4153),o=r(9753),a=r(5724),c=r(9868),u=r(7486),l=r(2697),p=r(9660),d=r(8422),f=r(5532),y=r(9430),h=r(8768),g=r(9355),m=r(510),v=r(5255);t.default=function getApplicator(e=!1){const t=[f.default,y.default,h.default,g.default,m.default,v.default,u.default,l.default,c.default,p.default,d.default];return e?t.push(n.default,o.default):t.push(i.default,s.default),t.push(a.default),t}},4153:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const i=r(7898),n=r(458),s=r(4450),o={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return validateTuple(e,"additionalItems",t);r.items=!0,(0,n.alwaysValidSchema)(r,t)||e.ok((0,s.validateArray)(e))}};function validateTuple(e,t,r=e.schema){const{gen:s,parentSchema:o,data:a,keyword:c,it:u}=e;!function checkStrictTuple(e){const{opts:i,errSchemaPath:s}=u,o=r.length,a=o===e.minItems&&(o===e.maxItems||!1===e[t]);if(i.strictTuples&&!a){const e=`"${c}" is ${o}-tuple, but minItems or maxItems/${t} are not specified or different at path "${s}"`;(0,n.checkStrictMode)(u,e,i.strictTuples)}}(o),u.opts.unevaluated&&r.length&&!0!==u.items&&(u.items=n.mergeEvaluated.items(s,r.length,u.items));const l=s.name("valid"),p=s.const("len",i._`${a}.length`);r.forEach(((t,r)=>{(0,n.alwaysValidSchema)(u,t)||(s.if(i._`${p} > ${r}`,(()=>e.subschema({keyword:c,schemaProp:r,dataProp:r},l))),e.ok(l))}))}t.validateTuple=validateTuple,t.default=o},9753:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(7898),n=r(458),s=r(4450),o=r(3426),a={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>i.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>i._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:r,it:i}=e,{prefixItems:a}=r;i.items=!0,(0,n.alwaysValidSchema)(i,t)||(a?(0,o.validateAdditionalItems)(e,a):e.ok((0,s.validateArray)(e)))}};t.default=a},5532:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(458),n={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,i.alwaysValidSchema)(n,r))return void e.fail();const s=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),e.failResult(s,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};t.default=n},8768:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(7898),n=r(458),s={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>i._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:r,parentSchema:s,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&s.discriminator)return;const a=r,c=t.let("valid",!1),u=t.let("passing",null),l=t.name("_valid");e.setParams({passing:u}),t.block((function validateOneOf(){a.forEach(((r,s)=>{let a;(0,n.alwaysValidSchema)(o,r)?t.var(l,!0):a=e.subschema({keyword:"oneOf",schemaProp:s,compositeRule:!0},l),s>0&&t.if(i._`${l} && ${c}`).assign(c,!1).assign(u,i._`[${u}, ${s}]`).else(),t.if(l,(()=>{t.assign(c,!0),t.assign(u,s),a&&e.mergeEvaluated(a,i.Name)}))}))})),e.result(c,(()=>e.reset()),(()=>e.error(!0)))}};t.default=s},8422:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(4450),n=r(7898),s=r(458),o=r(458),a={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:a,parentSchema:c,it:u}=e,{opts:l}=u,p=(0,i.allSchemaProperties)(r),d=p.filter((e=>(0,s.alwaysValidSchema)(u,r[e])));if(0===p.length||d.length===p.length&&(!u.opts.unevaluated||!0===u.props))return;const f=l.strictSchema&&!l.allowMatchingProperties&&c.properties,y=t.name("valid");!0===u.props||u.props instanceof n.Name||(u.props=(0,o.evaluatedPropsToName)(t,u.props));const{props:h}=u;function checkMatchingProperties(e){for(const t in f)new RegExp(e).test(t)&&(0,s.checkStrictMode)(u,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function validateProperties(r){t.forIn("key",a,(s=>{t.if(n._`${(0,i.usePattern)(e,r)}.test(${s})`,(()=>{const i=d.includes(r);i||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:s,dataPropType:o.Type.Str},y),u.opts.unevaluated&&!0!==h?t.assign(n._`${h}[${s}]`,!0):i||u.allErrors||t.if((0,n.not)(y),(()=>t.break()))}))}))}!function validatePatternProperties(){for(const e of p)f&&checkMatchingProperties(e),u.allErrors?validateProperties(e):(t.var(y,!0),validateProperties(e),t.if(y))}()}};t.default=a},1349:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(4153),n={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,i.validateTuple)(e,"items")};t.default=n},9660:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(6223),n=r(4450),s=r(458),o=r(2697),a={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:a,data:c,it:u}=e;"all"===u.opts.removeAdditional&&void 0===a.additionalProperties&&o.default.code(new i.KeywordCxt(u,o.default,"additionalProperties"));const l=(0,n.allSchemaProperties)(r);for(const e of l)u.definedProperties.add(e);u.opts.unevaluated&&l.length&&!0!==u.props&&(u.props=s.mergeEvaluated.props(t,(0,s.toHash)(l),u.props));const p=l.filter((e=>!(0,s.alwaysValidSchema)(u,r[e])));if(0===p.length)return;const d=t.name("valid");for(const r of p)hasDefault(r)?applyPropertySchema(r):(t.if((0,n.propertyInData)(t,c,r,u.opts.ownProperties)),applyPropertySchema(r),u.allErrors||t.else().var(d,!0),t.endIf()),e.it.definedProperties.add(r),e.ok(d);function hasDefault(e){return u.opts.useDefaults&&!u.compositeRule&&void 0!==r[e].default}function applyPropertySchema(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},d)}}};t.default=a},7486:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(7898),n=r(458),s={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>i._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:r,data:s,it:o}=e;if((0,n.alwaysValidSchema)(o,r))return;const a=t.name("valid");t.forIn("key",s,(r=>{e.setParams({propertyName:r}),e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},a),t.if((0,i.not)(a),(()=>{e.error(!0),o.allErrors||t.break()}))})),e.ok(a)}};t.default=s},5255:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(458),n={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&(0,i.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};t.default=n},4450:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const i=r(7898),n=r(458),s=r(3036),o=r(458);function hasPropFunc(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:i._`Object.prototype.hasOwnProperty`})}function isOwnProperty(e,t,r){return i._`${hasPropFunc(e)}.call(${t}, ${r})`}function noPropertyInData(e,t,r,n){const s=i._`${t}${(0,i.getProperty)(r)} === undefined`;return n?(0,i.or)(s,(0,i.not)(isOwnProperty(e,t,r))):s}function allSchemaProperties(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}t.checkReportMissingProp=function checkReportMissingProp(e,t){const{gen:r,data:n,it:s}=e;r.if(noPropertyInData(r,n,t,s.opts.ownProperties),(()=>{e.setParams({missingProperty:i._`${t}`},!0),e.error()}))},t.checkMissingProp=function checkMissingProp({gen:e,data:t,it:{opts:r}},n,s){return(0,i.or)(...n.map((n=>(0,i.and)(noPropertyInData(e,t,n,r.ownProperties),i._`${s} = ${n}`))))},t.reportMissingProp=function reportMissingProp(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=hasPropFunc,t.isOwnProperty=isOwnProperty,t.propertyInData=function propertyInData(e,t,r,n){const s=i._`${t}${(0,i.getProperty)(r)} !== undefined`;return n?i._`${s} && ${isOwnProperty(e,t,r)}`:s},t.noPropertyInData=noPropertyInData,t.allSchemaProperties=allSchemaProperties,t.schemaProperties=function schemaProperties(e,t){return allSchemaProperties(t).filter((r=>!(0,n.alwaysValidSchema)(e,t[r])))},t.callValidateCode=function callValidateCode({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:a},it:c},u,l,p){const d=p?i._`${e}, ${t}, ${n}${o}`:t,f=[[s.default.instancePath,(0,i.strConcat)(s.default.instancePath,a)],[s.default.parentData,c.parentData],[s.default.parentDataProperty,c.parentDataProperty],[s.default.rootData,s.default.rootData]];c.opts.dynamicRef&&f.push([s.default.dynamicAnchors,s.default.dynamicAnchors]);const y=i._`${d}, ${r.object(...f)}`;return l!==i.nil?i._`${u}.call(${l}, ${y})`:i._`${u}(${y})`};const a=i._`new RegExp`;t.usePattern=function usePattern({gen:e,it:{opts:t}},r){const n=t.unicodeRegExp?"u":"",{regExp:s}=t.code,c=s(r,n);return e.scopeValue("pattern",{key:c.toString(),ref:c,code:i._`${"new RegExp"===s.code?a:(0,o.useFunc)(e,s)}(${r}, ${n})`})},t.validateArray=function validateArray(e){const{gen:t,data:r,keyword:s,it:o}=e,a=t.name("valid");if(o.allErrors){const e=t.let("valid",!0);return validateItems((()=>t.assign(e,!1))),e}return t.var(a,!0),validateItems((()=>t.break())),a;function validateItems(o){const c=t.const("len",i._`${r}.length`);t.forRange("i",0,c,(r=>{e.subschema({keyword:s,dataProp:r,dataPropType:n.Type.Num},a),t.if((0,i.not)(a),o)}))}},t.validateUnion=function validateUnion(e){const{gen:t,schema:r,keyword:s,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some((e=>(0,n.alwaysValidSchema)(o,e)))&&!o.opts.unevaluated)return;const a=t.let("valid",!1),c=t.name("_valid");t.block((()=>r.forEach(((r,n)=>{const o=e.subschema({keyword:s,schemaProp:n,compositeRule:!0},c);t.assign(a,i._`${a} || ${c}`);e.mergeValidEvaluated(o,c)||t.if((0,i.not)(a))})))),e.result(a,(()=>e.reset()),(()=>e.error(!0)))}},3946:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=r},3839:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(3946),n=r(6138),s=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",i.default,n.default];t.default=s},6138:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const i=r(5748),n=r(4450),s=r(7898),o=r(3036),a=r(9392),c=r(458),u={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:o,schemaEnv:c,validateName:u,opts:l,self:p}=n,{root:d}=c;if(("#"===r||"#/"===r)&&o===d.baseId)return function callRootRef(){if(c===d)return callRef(e,u,c,c.$async);const r=t.scopeValue("root",{ref:d});return callRef(e,s._`${r}.validate`,d,d.$async)}();const f=a.resolveRef.call(p,d,o,r);if(void 0===f)throw new i.default(n.opts.uriResolver,o,r);return f instanceof a.SchemaEnv?function callValidate(t){const r=getValidate(e,t);callRef(e,r,t,t.$async)}(f):function inlineRefSchema(i){const n=t.scopeValue("schema",!0===l.code.source?{ref:i,code:(0,s.stringify)(i)}:{ref:i}),o=t.name("valid"),a=e.subschema({schema:i,dataTypes:[],schemaPath:s.nil,topSchemaRef:n,errSchemaPath:r},o);e.mergeEvaluated(a),e.ok(o)}(f)}};function getValidate(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):s._`${r.scopeValue("wrapper",{ref:t})}.validate`}function callRef(e,t,r,i){const{gen:a,it:u}=e,{allErrors:l,schemaEnv:p,opts:d}=u,f=d.passContext?o.default.this:s.nil;function addErrorsFrom(e){const t=s._`${e}.errors`;a.assign(o.default.vErrors,s._`${o.default.vErrors} === null ? ${t} : ${o.default.vErrors}.concat(${t})`),a.assign(o.default.errors,s._`${o.default.vErrors}.length`)}function addEvaluatedFrom(e){var t;if(!u.opts.unevaluated)return;const i=null===(t=null==r?void 0:r.validate)||void 0===t?void 0:t.evaluated;if(!0!==u.props)if(i&&!i.dynamicProps)void 0!==i.props&&(u.props=c.mergeEvaluated.props(a,i.props,u.props));else{const t=a.var("props",s._`${e}.evaluated.props`);u.props=c.mergeEvaluated.props(a,t,u.props,s.Name)}if(!0!==u.items)if(i&&!i.dynamicItems)void 0!==i.items&&(u.items=c.mergeEvaluated.items(a,i.items,u.items));else{const t=a.var("items",s._`${e}.evaluated.items`);u.items=c.mergeEvaluated.items(a,t,u.items,s.Name)}}i?function callAsyncRef(){if(!p.$async)throw new Error("async schema referenced by sync schema");const r=a.let("valid");a.try((()=>{a.code(s._`await ${(0,n.callValidateCode)(e,t,f)}`),addEvaluatedFrom(t),l||a.assign(r,!0)}),(e=>{a.if(s._`!(${e} instanceof ${u.ValidationError})`,(()=>a.throw(e))),addErrorsFrom(e),l||a.assign(r,!1)})),e.ok(r)}():function callSyncRef(){e.result((0,n.callValidateCode)(e,t,f),(()=>addEvaluatedFrom(t)),(()=>addErrorsFrom(t)))}()}t.getValidate=getValidate,t.callRef=callRef,t.default=u},1672:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(7898),n=r(8925),s=r(9392),o=r(458),a={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===n.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>i._`{error: ${e}, tag: ${r}, tagValue: ${t}}`},code(e){const{gen:t,data:r,schema:a,parentSchema:c,it:u}=e,{oneOf:l}=c;if(!u.opts.discriminator)throw new Error("discriminator: requires discriminator option");const p=a.propertyName;if("string"!=typeof p)throw new Error("discriminator: requires propertyName");if(a.mapping)throw new Error("discriminator: mapping is not supported");if(!l)throw new Error("discriminator: requires oneOf keyword");const d=t.let("valid",!1),f=t.const("tag",i._`${r}${(0,i.getProperty)(p)}`);function applyTagSchema(r){const n=t.name("valid"),s=e.subschema({keyword:"oneOf",schemaProp:r},n);return e.mergeEvaluated(s,i.Name),n}t.if(i._`typeof ${f} == "string"`,(()=>function validateMapping(){const r=function getMapping(){var e;const t={},r=hasRequired(c);let i=!0;for(let t=0;t<l.length;t++){let n=l[t];(null==n?void 0:n.$ref)&&!(0,o.schemaHasRulesButRef)(n,u.self.RULES)&&(n=s.resolveRef.call(u.self,u.schemaEnv.root,u.baseId,null==n?void 0:n.$ref),n instanceof s.SchemaEnv&&(n=n.schema));const a=null===(e=null==n?void 0:n.properties)||void 0===e?void 0:e[p];if("object"!=typeof a)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${p}"`);i=i&&(r||hasRequired(n)),addMappings(a,t)}if(!i)throw new Error(`discriminator: "${p}" must be required`);return t;function hasRequired({required:e}){return Array.isArray(e)&&e.includes(p)}function addMappings(e,t){if(e.const)addMapping(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${p}" must have "const" or "enum"`);for(const r of e.enum)addMapping(r,t)}}function addMapping(e,r){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${p}" values must be unique strings`);t[e]=r}}();t.if(!1);for(const e in r)t.elseIf(i._`${f} === ${e}`),t.assign(d,applyTagSchema(r[e]));t.else(),e.error(!1,{discrError:n.DiscrError.Mapping,tag:f,tagName:p}),t.endIf()}()),(()=>e.error(!1,{discrError:n.DiscrError.Tag,tag:f,tagName:p}))),e.ok(d)}};t.default=a},8925:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,function(e){e.Tag="tag",e.Mapping="mapping"}(t.DiscrError||(t.DiscrError={}))},2431:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(3839),n=r(7851),s=r(8225),o=r(6699),a=r(4882),c=[i.default,n.default,(0,s.default)(),o.default,a.metadataVocabulary,a.contentVocabulary];t.default=c},7072:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(7898),n={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>i.str`must match format "${e}"`,params:({schemaCode:e})=>i._`{format: ${e}}`},code(e,t){const{gen:r,data:n,$data:s,schema:o,schemaCode:a,it:c}=e,{opts:u,errSchemaPath:l,schemaEnv:p,self:d}=c;u.validateFormats&&(s?function validate$DataFormat(){const s=r.scopeValue("formats",{ref:d.formats,code:u.code.formats}),o=r.const("fDef",i._`${s}[${a}]`),c=r.let("fType"),l=r.let("format");r.if(i._`typeof ${o} == "object" && !(${o} instanceof RegExp)`,(()=>r.assign(c,i._`${o}.type || "string"`).assign(l,i._`${o}.validate`)),(()=>r.assign(c,i._`"string"`).assign(l,o))),e.fail$data((0,i.or)(function unknownFmt(){return!1===u.strictSchema?i.nil:i._`${a} && !${l}`}(),function invalidFmt(){const e=p.$async?i._`(${o}.async ? await ${l}(${n}) : ${l}(${n}))`:i._`${l}(${n})`,r=i._`(typeof ${l} == "function" ? ${e} : ${l}.test(${n}))`;return i._`${l} && ${l} !== true && ${c} === ${t} && !${r}`}()))}():function validateFormat(){const s=d.formats[o];if(!s)return void function unknownFormat(){if(!1===u.strictSchema)return void d.logger.warn(unknownMsg());throw new Error(unknownMsg());function unknownMsg(){return`unknown format "${o}" ignored in schema at path "${l}"`}}();if(!0===s)return;const[a,c,f]=function getFormat(e){const t=e instanceof RegExp?(0,i.regexpCode)(e):u.code.formats?i._`${u.code.formats}${(0,i.getProperty)(o)}`:void 0,n=r.scopeValue("formats",{key:o,ref:e,code:t});if("object"==typeof e&&!(e instanceof RegExp))return[e.type||"string",e.validate,i._`${n}.validate`];return["string",e,n]}(s);a===t&&e.pass(function validCondition(){if("object"==typeof s&&!(s instanceof RegExp)&&s.async){if(!p.$async)throw new Error("async format in sync schema");return i._`await ${f}(${n})`}return"function"==typeof c?i._`${f}(${n})`:i._`${f}.test(${n})`}())}())}};t.default=n},6699:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=[r(7072).default];t.default=i},4882:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},9520:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(7898),n=r(458),s=r(2725),o={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>i._`{allowedValue: ${e}}`},code(e){const{gen:t,data:r,$data:o,schemaCode:a,schema:c}=e;o||c&&"object"==typeof c?e.fail$data(i._`!${(0,n.useFunc)(t,s.default)}(${r}, ${a})`):e.fail(i._`${c} !== ${r}`)}};t.default=o},6742:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(7898),n=r(458),s=r(2725),o={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>i._`{allowedValues: ${e}}`},code(e){const{gen:t,data:r,$data:o,schema:a,schemaCode:c,it:u}=e;if(!o&&0===a.length)throw new Error("enum must have non-empty array");const l=a.length>=u.opts.loopEnum;let p;const getEql=()=>null!=p?p:p=(0,n.useFunc)(t,s.default);let d;if(l||o)d=t.let("valid"),e.block$data(d,(function loopEnum(){t.assign(d,!1),t.forOf("v",c,(e=>t.if(i._`${getEql()}(${r}, ${e})`,(()=>t.assign(d,!0).break()))))}));else{if(!Array.isArray(a))throw new Error("ajv implementation error");const e=t.const("vSchema",c);d=(0,i.or)(...a.map(((t,n)=>function equalCode(e,t){const n=a[t];return"object"==typeof n&&null!==n?i._`${getEql()}(${r}, ${e}[${t}])`:i._`${r} === ${n}`}(e,n))))}e.pass(d)}};t.default=o},7851:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(2333),n=r(1230),s=r(3936),o=r(1005),a=r(1589),c=r(9594),u=r(8558),l=r(4058),p=r(9520),d=r(6742),f=[i.default,n.default,s.default,o.default,a.default,c.default,u.default,l.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},p.default,d.default];t.default=f},8558:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(7898),n={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxItems"===e?"more":"fewer";return i.str`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>i._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:n}=e,s="maxItems"===t?i.operators.GT:i.operators.LT;e.fail$data(i._`${r}.length ${s} ${n}`)}};t.default=n},3936:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(7898),n=r(458),s=r(6308),o={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxLength"===e?"more":"fewer";return i.str`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>i._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:o,it:a}=e,c="maxLength"===t?i.operators.GT:i.operators.LT,u=!1===a.opts.unicode?i._`${r}.length`:i._`${(0,n.useFunc)(e.gen,s.default)}(${r})`;e.fail$data(i._`${u} ${c} ${o}`)}};t.default=o},2333:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(7898),n=i.operators,s={maximum:{okStr:"<=",ok:n.LTE,fail:n.GT},minimum:{okStr:">=",ok:n.GTE,fail:n.LT},exclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},exclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},o={message:({keyword:e,schemaCode:t})=>i.str`must be ${s[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>i._`{comparison: ${s[e].okStr}, limit: ${t}}`},a={keyword:Object.keys(s),type:"number",schemaType:"number",$data:!0,error:o,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data(i._`${r} ${s[t].fail} ${n} || isNaN(${r})`)}};t.default=a},1589:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(7898),n={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r="maxProperties"===e?"more":"fewer";return i.str`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>i._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:n}=e,s="maxProperties"===t?i.operators.GT:i.operators.LT;e.fail$data(i._`Object.keys(${r}).length ${s} ${n}`)}};t.default=n},1230:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(7898),n={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>i.str`must be multiple of ${e}`,params:({schemaCode:e})=>i._`{multipleOf: ${e}}`},code(e){const{gen:t,data:r,schemaCode:n,it:s}=e,o=s.opts.multipleOfPrecision,a=t.let("res"),c=o?i._`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:i._`${a} !== parseInt(${a})`;e.fail$data(i._`(${n} === 0 || (${a} = ${r}/${n}, ${c}))`)}};t.default=n},1005:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(4450),n=r(7898),s={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>n.str`must match pattern "${e}"`,params:({schemaCode:e})=>n._`{pattern: ${e}}`},code(e){const{data:t,$data:r,schema:s,schemaCode:o,it:a}=e,c=a.opts.unicodeRegExp?"u":"",u=r?n._`(new RegExp(${o}, ${c}))`:(0,i.usePattern)(e,s);e.fail$data(n._`!${u}.test(${t})`)}};t.default=s},9594:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(4450),n=r(7898),s=r(458),o={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>n.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>n._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:r,schemaCode:o,data:a,$data:c,it:u}=e,{opts:l}=u;if(!c&&0===r.length)return;const p=r.length>=l.loopRequired;if(u.allErrors?function allErrorsMode(){if(p||c)e.block$data(n.nil,loopAllRequired);else for(const t of r)(0,i.checkReportMissingProp)(e,t)}():function exitOnErrorMode(){const s=t.let("missing");if(p||c){const r=t.let("valid",!0);e.block$data(r,(()=>function loopUntilMissing(r,s){e.setParams({missingProperty:r}),t.forOf(r,o,(()=>{t.assign(s,(0,i.propertyInData)(t,a,r,l.ownProperties)),t.if((0,n.not)(s),(()=>{e.error(),t.break()}))}),n.nil)}(s,r))),e.ok(r)}else t.if((0,i.checkMissingProp)(e,r,s)),(0,i.reportMissingProp)(e,s),t.else()}(),l.strictRequired){const t=e.parentSchema.properties,{definedProperties:i}=e.it;for(const e of r)if(void 0===(null==t?void 0:t[e])&&!i.has(e)){const t=`required property "${e}" is not defined at "${u.schemaEnv.baseId+u.errSchemaPath}" (strictRequired)`;(0,s.checkStrictMode)(u,t,u.opts.strictRequired)}}function loopAllRequired(){t.forOf("prop",o,(r=>{e.setParams({missingProperty:r}),t.if((0,i.noPropertyInData)(t,a,r,l.ownProperties),(()=>e.error()))}))}}};t.default=o},4058:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(9003),n=r(7898),s=r(458),o=r(2725),a={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>n.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>n._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:r,$data:a,schema:c,parentSchema:u,schemaCode:l,it:p}=e;if(!a&&!c)return;const d=t.let("valid"),f=u.items?(0,i.getSchemaTypes)(u.items):[];function loopN(s,o){const a=t.name("item"),c=(0,i.checkDataTypes)(f,a,p.opts.strictNumbers,i.DataType.Wrong),u=t.const("indices",n._`{}`);t.for(n._`;${s}--;`,(()=>{t.let(a,n._`${r}[${s}]`),t.if(c,n._`continue`),f.length>1&&t.if(n._`typeof ${a} == "string"`,n._`${a} += "_"`),t.if(n._`typeof ${u}[${a}] == "number"`,(()=>{t.assign(o,n._`${u}[${a}]`),e.error(),t.assign(d,!1).break()})).code(n._`${u}[${a}] = ${s}`)}))}function loopN2(i,a){const c=(0,s.useFunc)(t,o.default),u=t.name("outer");t.label(u).for(n._`;${i}--;`,(()=>t.for(n._`${a} = ${i}; ${a}--;`,(()=>t.if(n._`${c}(${r}[${i}], ${r}[${a}])`,(()=>{e.error(),t.assign(d,!1).break(u)}))))))}e.block$data(d,(function validateUniqueItems(){const i=t.let("i",n._`${r}.length`),s=t.let("j");e.setParams({i,j:s}),t.assign(d,!0),t.if(n._`${i} > 1`,(()=>(function canOptimize(){return f.length>0&&!f.some((e=>"object"===e||"array"===e))}()?loopN:loopN2)(i,s)))}),n._`${l} === false`),e.ok(d)}};t.default=a},3005:e=>{"use strict";var t={single_source_shortest_paths:function(e,r,i){var n={},s={};s[r]=0;var o,a,c,u,l,p,d,f=t.PriorityQueue.make();for(f.push(r,0);!f.empty();)for(c in a=(o=f.pop()).value,u=o.cost,l=e[a]||{})l.hasOwnProperty(c)&&(p=u+l[c],d=s[c],(void 0===s[c]||d>p)&&(s[c]=p,f.push(c,p),n[c]=a));if(void 0!==i&&void 0===s[i]){var y=["Could not find a path from ",r," to ",i,"."].join("");throw new Error(y)}return n},extract_shortest_path_from_predecessor_list:function(e,t){for(var r=[],i=t;i;)r.push(i),e[i],i=e[i];return r.reverse(),r},find_path:function(e,r,i){var n=t.single_source_shortest_paths(e,r,i);return t.extract_shortest_path_from_predecessor_list(n,i)},PriorityQueue:{make:function(e){var r,i=t.PriorityQueue,n={};for(r in e=e||{},i)i.hasOwnProperty(r)&&(n[r]=i[r]);return n.queue=[],n.sorter=e.sorter||i.default_sorter,n},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var r={value:e,cost:t};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},5012:e=>{"use strict";e.exports=function encodeUtf8(e){for(var t=[],r=e.length,i=0;i<r;i++){var n=e.charCodeAt(i);if(n>=55296&&n<=56319&&r>i+1){var s=e.charCodeAt(i+1);s>=56320&&s<=57343&&(n=1024*(n-55296)+s-56320+65536,i+=1)}n<128?t.push(n):n<2048?(t.push(n>>6|192),t.push(63&n|128)):n<55296||n>=57344&&n<65536?(t.push(n>>12|224),t.push(n>>6&63|128),t.push(63&n|128)):n>=65536&&n<=1114111?(t.push(n>>18|240),t.push(n>>12&63|128),t.push(n>>6&63|128),t.push(63&n|128)):t.push(239,191,189)}return new Uint8Array(t).buffer}},9902:(e,t,r)=>{var i;!function(n){var s=Object.hasOwnProperty,o=Array.isArray?Array.isArray:function _isArray(e){return"[object Array]"===Object.prototype.toString.call(e)},a="object"==typeof process&&"function"==typeof process.nextTick,c="function"==typeof Symbol,u="object"==typeof Reflect,l="function"==typeof setImmediate?setImmediate:setTimeout,p=c?u&&"function"==typeof Reflect.ownKeys?Reflect.ownKeys:function(e){var t=Object.getOwnPropertyNames(e);return t.push.apply(t,Object.getOwnPropertySymbols(e)),t}:Object.keys;function init(){this._events={},this._conf&&configure.call(this,this._conf)}function configure(e){e&&(this._conf=e,e.delimiter&&(this.delimiter=e.delimiter),e.maxListeners!==n&&(this._maxListeners=e.maxListeners),e.wildcard&&(this.wildcard=e.wildcard),e.newListener&&(this._newListener=e.newListener),e.removeListener&&(this._removeListener=e.removeListener),e.verboseMemoryLeak&&(this.verboseMemoryLeak=e.verboseMemoryLeak),e.ignoreErrors&&(this.ignoreErrors=e.ignoreErrors),this.wildcard&&(this.listenerTree={}))}function logPossibleMemoryLeak(e,t){var r="(node) warning: possible EventEmitter memory leak detected. "+e+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(r+=" Event name: "+t+"."),"undefined"!=typeof process&&process.emitWarning){var i=new Error(r);i.name="MaxListenersExceededWarning",i.emitter=this,i.count=e,process.emitWarning(i)}else console.error(r),console.trace&&console.trace()}var toArray=function(e,t,r){var i=arguments.length;switch(i){case 0:return[];case 1:return[e];case 2:return[e,t];case 3:return[e,t,r];default:for(var n=new Array(i);i--;)n[i]=arguments[i];return n}};function toObject(e,t){for(var r={},i=e.length,s=t?t.length:0,o=0;o<i;o++)r[e[o]]=o<s?t[o]:n;return r}function TargetObserver(e,t,r){var i,n;if(this._emitter=e,this._target=t,this._listeners={},this._listenersCount=0,(r.on||r.off)&&(i=r.on,n=r.off),t.addEventListener?(i=t.addEventListener,n=t.removeEventListener):t.addListener?(i=t.addListener,n=t.removeListener):t.on&&(i=t.on,n=t.off),!i&&!n)throw Error("target does not implement any known event API");if("function"!=typeof i)throw TypeError("on method must be a function");if("function"!=typeof n)throw TypeError("off method must be a function");this._on=i,this._off=n;var s=e._observers;s?s.push(this):e._observers=[this]}function resolveOptions(e,t,r,i){var o=Object.assign({},t);if(!e)return o;if("object"!=typeof e)throw TypeError("options must be an object");var a,c,u,l=Object.keys(e),p=l.length;function reject(e){throw Error('Invalid "'+a+'" option value'+(e?". Reason: "+e:""))}for(var d=0;d<p;d++){if(a=l[d],!i&&!s.call(t,a))throw Error('Unknown "'+a+'" option');(c=e[a])!==n&&(u=r[a],o[a]=u?u(c,reject):c)}return o}function constructorReducer(e,t){return"function"==typeof e&&e.hasOwnProperty("prototype")||t("value must be a constructor"),e}function makeTypeReducer(e){var t="value must be type of "+e.join("|"),r=e.length,i=e[0],n=e[1];return 1===r?function(e,r){if(typeof e===i)return e;r(t)}:2===r?function(e,r){var s=typeof e;if(s===i||s===n)return e;r(t)}:function(i,n){for(var s=typeof i,o=r;o-- >0;)if(s===e[o])return i;n(t)}}Object.assign(TargetObserver.prototype,{subscribe:function(e,t,r){var i=this,n=this._target,s=this._emitter,o=this._listeners,handler=function(){var i=toArray.apply(null,arguments),o={data:i,name:t,original:e};r?!1!==r.call(n,o)&&s.emit.apply(s,[o.name].concat(i)):s.emit.apply(s,[t].concat(i))};if(o[e])throw Error("Event '"+e+"' is already listening");this._listenersCount++,s._newListener&&s._removeListener&&!i._onNewListener?(this._onNewListener=function(r){r===t&&null===o[e]&&(o[e]=handler,i._on.call(n,e,handler))},s.on("newListener",this._onNewListener),this._onRemoveListener=function(r){r===t&&!s.hasListeners(r)&&o[e]&&(o[e]=null,i._off.call(n,e,handler))},o[e]=null,s.on("removeListener",this._onRemoveListener)):(o[e]=handler,i._on.call(n,e,handler))},unsubscribe:function(e){var t,r,i,n=this,s=this._listeners,o=this._emitter,a=this._off,c=this._target;if(e&&"string"!=typeof e)throw TypeError("event must be a string");function clearRefs(){n._onNewListener&&(o.off("newListener",n._onNewListener),o.off("removeListener",n._onRemoveListener),n._onNewListener=null,n._onRemoveListener=null);var e=findTargetIndex.call(o,n);o._observers.splice(e,1)}if(e){if(!(t=s[e]))return;a.call(c,e,t),delete s[e],--this._listenersCount||clearRefs()}else{for(i=(r=p(s)).length;i-- >0;)e=r[i],a.call(c,e,s[e]);this._listeners={},this._listenersCount=0,clearRefs()}}});var d=makeTypeReducer(["function"]),f=makeTypeReducer(["object","function"]);function makeCancelablePromise(e,t,r){var i,n,s,o=0,a=new e((function(c,u,l){function cleanup(){n&&(n=null),o&&(clearTimeout(o),o=0)}r=resolveOptions(r,{timeout:0,overload:!1},{timeout:function(e,t){return("number"!=typeof(e*=1)||e<0||!Number.isFinite(e))&&t("timeout must be a positive number"),e}}),i=!r.overload&&"function"==typeof e.prototype.cancel&&"function"==typeof l;var _resolve=function(e){cleanup(),c(e)},_reject=function(e){cleanup(),u(e)};i?t(_resolve,_reject,l):(n=[function(e){_reject(e||Error("canceled"))}],t(_resolve,_reject,(function(e){if(s)throw Error("Unable to subscribe on cancel event asynchronously");if("function"!=typeof e)throw TypeError("onCancel callback must be a function");n.push(e)})),s=!0),r.timeout>0&&(o=setTimeout((function(){var e=Error("timeout");e.code="ETIMEDOUT",o=0,a.cancel(e),u(e)}),r.timeout))}));return i||(a.cancel=function(e){if(n){for(var t=n.length,r=1;r<t;r++)n[r](e);n[0](e),n=null}}),a}function findTargetIndex(e){var t=this._observers;if(!t)return-1;for(var r=t.length,i=0;i<r;i++)if(t[i]._target===e)return i;return-1}function searchListenerTree(e,t,r,i,n){if(!r)return null;if(0===i){var s=typeof t;if("string"===s){var o,a,c=0,u=0,l=this.delimiter,d=l.length;if(-1!==(a=t.indexOf(l))){o=new Array(5);do{o[c++]=t.slice(u,a),u=a+d}while(-1!==(a=t.indexOf(l,u)));o[c++]=t.slice(u),t=o,n=c}else t=[t],n=1}else"object"===s?n=t.length:(t=[t],n=1)}var f,y,h,g,m,v,b,R=null,O=t[i],S=t[i+1];if(i===n)r._listeners&&("function"==typeof r._listeners?(e&&e.push(r._listeners),R=[r]):(e&&e.push.apply(e,r._listeners),R=[r]));else{if("*"===O){for(a=(v=p(r)).length;a-- >0;)"_listeners"!==(f=v[a])&&(b=searchListenerTree(e,t,r[f],i+1,n))&&(R?R.push.apply(R,b):R=b);return R}if("**"===O){for((m=i+1===n||i+2===n&&"*"===S)&&r._listeners&&(R=searchListenerTree(e,t,r,n,n)),a=(v=p(r)).length;a-- >0;)"_listeners"!==(f=v[a])&&("*"===f||"**"===f?(r[f]._listeners&&!m&&(b=searchListenerTree(e,t,r[f],n,n))&&(R?R.push.apply(R,b):R=b),b=searchListenerTree(e,t,r[f],i,n)):b=searchListenerTree(e,t,r[f],f===S?i+2:i,n),b&&(R?R.push.apply(R,b):R=b));return R}r[O]&&(R=searchListenerTree(e,t,r[O],i+1,n))}if((y=r["*"])&&searchListenerTree(e,t,y,i+1,n),h=r["**"])if(i<n)for(h._listeners&&searchListenerTree(e,t,h,n,n),a=(v=p(h)).length;a-- >0;)"_listeners"!==(f=v[a])&&(f===S?searchListenerTree(e,t,h[f],i+2,n):f===O?searchListenerTree(e,t,h[f],i+1,n):((g={})[f]=h[f],searchListenerTree(e,t,{"**":g},i+1,n)));else h._listeners?searchListenerTree(e,t,h,n,n):h["*"]&&h["*"]._listeners&&searchListenerTree(e,t,h["*"],n,n);return R}function growListenerTree(e,t,r){var i,n,s=0,o=0,a=this.delimiter,c=a.length;if("string"==typeof e)if(-1!==(i=e.indexOf(a))){n=new Array(5);do{n[s++]=e.slice(o,i),o=i+c}while(-1!==(i=e.indexOf(a,o)));n[s++]=e.slice(o)}else n=[e],s=1;else n=e,s=e.length;if(s>1)for(i=0;i+1<s;i++)if("**"===n[i]&&"**"===n[i+1])return;var u,l=this.listenerTree;for(i=0;i<s;i++)if(l=l[u=n[i]]||(l[u]={}),i===s-1)return l._listeners?("function"==typeof l._listeners&&(l._listeners=[l._listeners]),r?l._listeners.unshift(t):l._listeners.push(t),!l._listeners.warned&&this._maxListeners>0&&l._listeners.length>this._maxListeners&&(l._listeners.warned=!0,logPossibleMemoryLeak.call(this,l._listeners.length,u))):l._listeners=t,!0;return!0}function collectTreeEvents(e,t,r,i){for(var n,s,o,a,c=p(e),u=c.length,l=e._listeners;u-- >0;)n=e[s=c[u]],o="_listeners"===s?r:r?r.concat(s):[s],a=i||"symbol"==typeof s,l&&t.push(a?o:o.join(this.delimiter)),"object"==typeof n&&collectTreeEvents.call(this,n,t,o,a);return t}function recursivelyGarbageCollect(e){for(var t,r,i,n=p(e),s=n.length;s-- >0;)(t=e[r=n[s]])&&(i=!0,"_listeners"===r||recursivelyGarbageCollect(t)||delete e[r]);return i}function Listener(e,t,r){this.emitter=e,this.event=t,this.listener=r}function setupListener(e,t,r){if(!0===r)s=!0;else if(!1===r)i=!0;else{if(!r||"object"!=typeof r)throw TypeError("options should be an object or true");var i=r.async,s=r.promisify,o=r.nextTick,c=r.objectify}if(i||o||s){var u=t,p=t._origin||t;if(o&&!a)throw Error("process.nextTick is not supported");s===n&&(s="AsyncFunction"===t.constructor.name),t=function(){var e=arguments,t=this,r=this.event;return s?o?Promise.resolve():new Promise((function(e){l(e)})).then((function(){return t.event=r,u.apply(t,e)})):(o?process.nextTick:l)((function(){t.event=r,u.apply(t,e)}))},t._async=!0,t._origin=p}return[t,c?new Listener(this,e,t):this]}function EventEmitter(e){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,configure.call(this,e)}Listener.prototype.off=function(){return this.emitter.off(this.event,this.listener),this},EventEmitter.EventEmitter2=EventEmitter,EventEmitter.prototype.listenTo=function(e,t,r){if("object"!=typeof e)throw TypeError("target musts be an object");var i=this;function listen(t){if("object"!=typeof t)throw TypeError("events must be an object");var n,s=r.reducers,o=findTargetIndex.call(i,e);n=-1===o?new TargetObserver(i,e,r):i._observers[o];for(var a,c=p(t),u=c.length,l="function"==typeof s,d=0;d<u;d++)a=c[d],n.subscribe(a,t[a]||a,l?s:s&&s[a])}return r=resolveOptions(r,{on:n,off:n,reducers:n},{on:d,off:d,reducers:f}),o(t)?listen(toObject(t)):listen("string"==typeof t?toObject(t.split(/\s+/)):t),this},EventEmitter.prototype.stopListeningTo=function(e,t){var r=this._observers;if(!r)return!1;var i,n=r.length,s=!1;if(e&&"object"!=typeof e)throw TypeError("target should be an object");for(;n-- >0;)i=r[n],e&&i._target!==e||(i.unsubscribe(t),s=!0);return s},EventEmitter.prototype.delimiter=".",EventEmitter.prototype.setMaxListeners=function(e){e!==n&&(this._maxListeners=e,this._conf||(this._conf={}),this._conf.maxListeners=e)},EventEmitter.prototype.getMaxListeners=function(){return this._maxListeners},EventEmitter.prototype.event="",EventEmitter.prototype.once=function(e,t,r){return this._once(e,t,!1,r)},EventEmitter.prototype.prependOnceListener=function(e,t,r){return this._once(e,t,!0,r)},EventEmitter.prototype._once=function(e,t,r,i){return this._many(e,1,t,r,i)},EventEmitter.prototype.many=function(e,t,r,i){return this._many(e,t,r,!1,i)},EventEmitter.prototype.prependMany=function(e,t,r,i){return this._many(e,t,r,!0,i)},EventEmitter.prototype._many=function(e,t,r,i,n){var s=this;if("function"!=typeof r)throw new Error("many only accepts instances of Function");function listener(){return 0==--t&&s.off(e,listener),r.apply(this,arguments)}return listener._origin=r,this._on(e,listener,i,n)},EventEmitter.prototype.emit=function(){if(!this._events&&!this._all)return!1;this._events||init.call(this);var e,t,r,i,n,s,o=arguments[0],a=this.wildcard;if("newListener"===o&&!this._newListener&&!this._events.newListener)return!1;if(a&&(e=o,"newListener"!==o&&"removeListener"!==o&&"object"==typeof o)){if(r=o.length,c)for(i=0;i<r;i++)if("symbol"==typeof o[i]){s=!0;break}s||(o=o.join(this.delimiter))}var u,l=arguments.length;if(this._all&&this._all.length)for(i=0,r=(u=this._all.slice()).length;i<r;i++)switch(this.event=o,l){case 1:u[i].call(this,o);break;case 2:u[i].call(this,o,arguments[1]);break;case 3:u[i].call(this,o,arguments[1],arguments[2]);break;default:u[i].apply(this,arguments)}if(a)u=[],searchListenerTree.call(this,u,e,this.listenerTree,0,r);else{if("function"==typeof(u=this._events[o])){switch(this.event=o,l){case 1:u.call(this);break;case 2:u.call(this,arguments[1]);break;case 3:u.call(this,arguments[1],arguments[2]);break;default:for(t=new Array(l-1),n=1;n<l;n++)t[n-1]=arguments[n];u.apply(this,t)}return!0}u&&(u=u.slice())}if(u&&u.length){if(l>3)for(t=new Array(l-1),n=1;n<l;n++)t[n-1]=arguments[n];for(i=0,r=u.length;i<r;i++)switch(this.event=o,l){case 1:u[i].call(this);break;case 2:u[i].call(this,arguments[1]);break;case 3:u[i].call(this,arguments[1],arguments[2]);break;default:u[i].apply(this,t)}return!0}if(!this.ignoreErrors&&!this._all&&"error"===o)throw arguments[1]instanceof Error?arguments[1]:new Error("Uncaught, unspecified 'error' event.");return!!this._all},EventEmitter.prototype.emitAsync=function(){if(!this._events&&!this._all)return!1;this._events||init.call(this);var e,t,r,i,n,s,o=arguments[0],a=this.wildcard;if("newListener"===o&&!this._newListener&&!this._events.newListener)return Promise.resolve([!1]);if(a&&(e=o,"newListener"!==o&&"removeListener"!==o&&"object"==typeof o)){if(i=o.length,c)for(n=0;n<i;n++)if("symbol"==typeof o[n]){t=!0;break}t||(o=o.join(this.delimiter))}var u,l=[],p=arguments.length;if(this._all)for(n=0,i=this._all.length;n<i;n++)switch(this.event=o,p){case 1:l.push(this._all[n].call(this,o));break;case 2:l.push(this._all[n].call(this,o,arguments[1]));break;case 3:l.push(this._all[n].call(this,o,arguments[1],arguments[2]));break;default:l.push(this._all[n].apply(this,arguments))}if(a?(u=[],searchListenerTree.call(this,u,e,this.listenerTree,0)):u=this._events[o],"function"==typeof u)switch(this.event=o,p){case 1:l.push(u.call(this));break;case 2:l.push(u.call(this,arguments[1]));break;case 3:l.push(u.call(this,arguments[1],arguments[2]));break;default:for(r=new Array(p-1),s=1;s<p;s++)r[s-1]=arguments[s];l.push(u.apply(this,r))}else if(u&&u.length){if(u=u.slice(),p>3)for(r=new Array(p-1),s=1;s<p;s++)r[s-1]=arguments[s];for(n=0,i=u.length;n<i;n++)switch(this.event=o,p){case 1:l.push(u[n].call(this));break;case 2:l.push(u[n].call(this,arguments[1]));break;case 3:l.push(u[n].call(this,arguments[1],arguments[2]));break;default:l.push(u[n].apply(this,r))}}else if(!this.ignoreErrors&&!this._all&&"error"===o)return arguments[1]instanceof Error?Promise.reject(arguments[1]):Promise.reject("Uncaught, unspecified 'error' event.");return Promise.all(l)},EventEmitter.prototype.on=function(e,t,r){return this._on(e,t,!1,r)},EventEmitter.prototype.prependListener=function(e,t,r){return this._on(e,t,!0,r)},EventEmitter.prototype.onAny=function(e){return this._onAny(e,!1)},EventEmitter.prototype.prependAny=function(e){return this._onAny(e,!0)},EventEmitter.prototype.addListener=EventEmitter.prototype.on,EventEmitter.prototype._onAny=function(e,t){if("function"!=typeof e)throw new Error("onAny only accepts instances of Function");return this._all||(this._all=[]),t?this._all.unshift(e):this._all.push(e),this},EventEmitter.prototype._on=function(e,t,r,i){if("function"==typeof e)return this._onAny(e,t),this;if("function"!=typeof t)throw new Error("on only accepts instances of Function");this._events||init.call(this);var s,o=this;return i!==n&&(t=(s=setupListener.call(this,e,t,i))[0],o=s[1]),this._newListener&&this.emit("newListener",e,t),this.wildcard?(growListenerTree.call(this,e,t,r),o):(this._events[e]?("function"==typeof this._events[e]&&(this._events[e]=[this._events[e]]),r?this._events[e].unshift(t):this._events[e].push(t),!this._events[e].warned&&this._maxListeners>0&&this._events[e].length>this._maxListeners&&(this._events[e].warned=!0,logPossibleMemoryLeak.call(this,this._events[e].length,e))):this._events[e]=t,o)},EventEmitter.prototype.off=function(e,t){if("function"!=typeof t)throw new Error("removeListener only takes instances of Function");var r,i=[];if(this.wildcard){var n="string"==typeof e?e.split(this.delimiter):e.slice();if(!(i=searchListenerTree.call(this,null,n,this.listenerTree,0)))return this}else{if(!this._events[e])return this;r=this._events[e],i.push({_listeners:r})}for(var s=0;s<i.length;s++){var a=i[s];if(r=a._listeners,o(r)){for(var c=-1,u=0,l=r.length;u<l;u++)if(r[u]===t||r[u].listener&&r[u].listener===t||r[u]._origin&&r[u]._origin===t){c=u;break}if(c<0)continue;return this.wildcard?a._listeners.splice(c,1):this._events[e].splice(c,1),0===r.length&&(this.wildcard?delete a._listeners:delete this._events[e]),this._removeListener&&this.emit("removeListener",e,t),this}(r===t||r.listener&&r.listener===t||r._origin&&r._origin===t)&&(this.wildcard?delete a._listeners:delete this._events[e],this._removeListener&&this.emit("removeListener",e,t))}return this.listenerTree&&recursivelyGarbageCollect(this.listenerTree),this},EventEmitter.prototype.offAny=function(e){var t,r=0,i=0;if(e&&this._all&&this._all.length>0){for(r=0,i=(t=this._all).length;r<i;r++)if(e===t[r])return t.splice(r,1),this._removeListener&&this.emit("removeListenerAny",e),this}else{if(t=this._all,this._removeListener)for(r=0,i=t.length;r<i;r++)this.emit("removeListenerAny",t[r]);this._all=[]}return this},EventEmitter.prototype.removeListener=EventEmitter.prototype.off,EventEmitter.prototype.removeAllListeners=function(e){if(e===n)return!this._events||init.call(this),this;if(this.wildcard){var t,r=searchListenerTree.call(this,null,e,this.listenerTree,0);if(!r)return this;for(t=0;t<r.length;t++)r[t]._listeners=null;this.listenerTree&&recursivelyGarbageCollect(this.listenerTree)}else this._events&&(this._events[e]=null);return this},EventEmitter.prototype.listeners=function(e){var t,r,i,s,o,a=this._events;if(e===n){if(this.wildcard)throw Error("event name required for wildcard emitter");if(!a)return[];for(s=(t=p(a)).length,i=[];s-- >0;)"function"==typeof(r=a[t[s]])?i.push(r):i.push.apply(i,r);return i}if(this.wildcard){if(!(o=this.listenerTree))return[];var c=[],u="string"==typeof e?e.split(this.delimiter):e.slice();return searchListenerTree.call(this,c,u,o,0),c}return a&&(r=a[e])?"function"==typeof r?[r]:r:[]},EventEmitter.prototype.eventNames=function(e){var t=this._events;return this.wildcard?collectTreeEvents.call(this,this.listenerTree,[],null,e):t?p(t):[]},EventEmitter.prototype.listenerCount=function(e){return this.listeners(e).length},EventEmitter.prototype.hasListeners=function(e){if(this.wildcard){var t=[],r="string"==typeof e?e.split(this.delimiter):e.slice();return searchListenerTree.call(this,t,r,this.listenerTree,0),t.length>0}var i=this._events,s=this._all;return!!(s&&s.length||i&&(e===n?p(i).length:i[e]))},EventEmitter.prototype.listenersAny=function(){return this._all?this._all:[]},EventEmitter.prototype.waitFor=function(e,t){var r=this,i=typeof t;return"number"===i?t={timeout:t}:"function"===i&&(t={filter:t}),makeCancelablePromise((t=resolveOptions(t,{timeout:0,filter:n,handleError:!1,Promise,overload:!1},{filter:d,Promise:constructorReducer})).Promise,(function(i,n,s){function listener(){var s=t.filter;if(!s||s.apply(r,arguments))if(r.off(e,listener),t.handleError){var o=arguments[0];o?n(o):i(toArray.apply(null,arguments).slice(1))}else i(toArray.apply(null,arguments))}s((function(){r.off(e,listener)})),r._on(e,listener,!1)}),{timeout:t.timeout,overload:t.overload})};var y=EventEmitter.prototype;Object.defineProperties(EventEmitter,{defaultMaxListeners:{get:function(){return y._maxListeners},set:function(e){if("number"!=typeof e||e<0||Number.isNaN(e))throw TypeError("n must be a non-negative number");y._maxListeners=e},enumerable:!0},once:{value:function once(e,t,r){return makeCancelablePromise((r=resolveOptions(r,{Promise,timeout:0,overload:!1},{Promise:constructorReducer})).Promise,(function(r,i,n){var s;if("function"==typeof e.addEventListener)return s=function(){r(toArray.apply(null,arguments))},n((function(){e.removeEventListener(t,s)})),void e.addEventListener(t,s,{once:!0});var o,eventListener=function(){o&&e.removeListener("error",o),r(toArray.apply(null,arguments))};"error"!==t&&(o=function(r){e.removeListener(t,eventListener),i(r)},e.once("error",o)),n((function(){o&&e.removeListener("error",o),e.removeListener(t,eventListener)})),e.once(t,eventListener)}),{timeout:r.timeout,overload:r.overload})},writable:!0,configurable:!0}}),Object.defineProperties(y,{_maxListeners:{value:10,writable:!0,configurable:!0},_observers:{value:null,writable:!0,configurable:!0}}),(i=function(){return EventEmitter}.call(t,r,t,e))===n||(e.exports=i)}()},8792:e=>{"use strict";e.exports=function equal(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var r,i,n;if(Array.isArray(e)){if((r=e.length)!=t.length)return!1;for(i=r;0!=i--;)if(!equal(e[i],t[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((r=(n=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(i=r;0!=i--;){var s=n[i];if(!equal(e[s],t[s]))return!1}return!0}return e!=e&&t!=t}},1645:e=>{"use strict";var t=e.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),_traverse(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function _traverse(e,r,i,n,s,o,a,c,u,l){if(n&&"object"==typeof n&&!Array.isArray(n)){for(var p in r(n,s,o,a,c,u,l),n){var d=n[p];if(Array.isArray(d)){if(p in t.arrayKeywords)for(var f=0;f<d.length;f++)_traverse(e,r,i,d[f],s+"/"+p+"/"+f,o,s,p,n,f)}else if(p in t.propsKeywords){if(d&&"object"==typeof d)for(var y in d)_traverse(e,r,i,d[y],s+"/"+p+"/"+y.replace(/~/g,"~0").replace(/\//g,"~1"),o,s,p,n,y)}else(p in t.keywords||e.allKeys&&!(p in t.skipKeywords))&&_traverse(e,r,i,d,s+"/"+p,o,s,p,n)}i(n,s,o,a,c,u,l)}}t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},4191:(e,t)=>{function serializer(e,t){var r=[],i=[];return null==t&&(t=function(e,t){return r[0]===t?"[Circular ~]":"[Circular ~."+i.slice(0,r.indexOf(t)).join(".")+"]"}),function(n,s){if(r.length>0){var o=r.indexOf(this);~o?r.splice(o+1):r.push(this),~o?i.splice(o,1/0,n):i.push(n),~r.indexOf(s)&&(s=t.call(this,n,s))}else r.push(s);return null==e?s:e.call(this,n,s)}}(e.exports=function stringify(e,t,r,i){return JSON.stringify(e,serializer(t,i),r)}).getSerialize=serializer},5157:e=>{var t="__lodash_hash_undefined__",r=1/0,i="[object Function]",n="[object GeneratorFunction]",s="[object Symbol]",o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/,c=/^\./,u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l=/\\(\\)?/g,p=/^\[object .+?Constructor\]$/,d="object"==typeof global&&global&&global.Object===Object&&global,f="object"==typeof self&&self&&self.Object===Object&&self,y=d||f||Function("return this")();var h,g=Array.prototype,m=Function.prototype,v=Object.prototype,b=y["__core-js_shared__"],R=(h=/[^.]+$/.exec(b&&b.keys&&b.keys.IE_PROTO||""))?"Symbol(src)_1."+h:"",O=m.toString,S=v.hasOwnProperty,I=v.toString,w=RegExp("^"+O.call(S).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),P=y.Symbol,j=g.splice,A=getNative(y,"Map"),$=getNative(Object,"create"),N=P?P.prototype:void 0,T=N?N.toString:void 0;function Hash(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function ListCache(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function MapCache(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function assocIndexOf(e,t){for(var r,i,n=e.length;n--;)if((r=e[n][0])===(i=t)||r!=r&&i!=i)return n;return-1}function baseGet(e,t){t=function isKey(e,t){if(x(e))return!1;var r=typeof e;if("number"==r||"symbol"==r||"boolean"==r||null==e||isSymbol(e))return!0;return a.test(e)||!o.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:function castPath(e){return x(e)?e:q(e)}(t);for(var r=0,i=t.length;null!=e&&r<i;)e=e[toKey(t[r++])];return r&&r==i?e:void 0}function baseIsNative(e){if(!isObject(e)||function isMasked(e){return!!R&&R in e}(e))return!1;var t=function isFunction(e){var t=isObject(e)?I.call(e):"";return t==i||t==n}(e)||function isHostObject(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?w:p;return t.test(function toSource(e){if(null!=e){try{return O.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function getMapData(e,t){var r=e.__data__;return function isKeyable(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?r["string"==typeof t?"string":"hash"]:r.map}function getNative(e,t){var r=function getValue(e,t){return null==e?void 0:e[t]}(e,t);return baseIsNative(r)?r:void 0}Hash.prototype.clear=function hashClear(){this.__data__=$?$(null):{}},Hash.prototype.delete=function hashDelete(e){return this.has(e)&&delete this.__data__[e]},Hash.prototype.get=function hashGet(e){var r=this.__data__;if($){var i=r[e];return i===t?void 0:i}return S.call(r,e)?r[e]:void 0},Hash.prototype.has=function hashHas(e){var t=this.__data__;return $?void 0!==t[e]:S.call(t,e)},Hash.prototype.set=function hashSet(e,r){return this.__data__[e]=$&&void 0===r?t:r,this},ListCache.prototype.clear=function listCacheClear(){this.__data__=[]},ListCache.prototype.delete=function listCacheDelete(e){var t=this.__data__,r=assocIndexOf(t,e);return!(r<0)&&(r==t.length-1?t.pop():j.call(t,r,1),!0)},ListCache.prototype.get=function listCacheGet(e){var t=this.__data__,r=assocIndexOf(t,e);return r<0?void 0:t[r][1]},ListCache.prototype.has=function listCacheHas(e){return assocIndexOf(this.__data__,e)>-1},ListCache.prototype.set=function listCacheSet(e,t){var r=this.__data__,i=assocIndexOf(r,e);return i<0?r.push([e,t]):r[i][1]=t,this},MapCache.prototype.clear=function mapCacheClear(){this.__data__={hash:new Hash,map:new(A||ListCache),string:new Hash}},MapCache.prototype.delete=function mapCacheDelete(e){return getMapData(this,e).delete(e)},MapCache.prototype.get=function mapCacheGet(e){return getMapData(this,e).get(e)},MapCache.prototype.has=function mapCacheHas(e){return getMapData(this,e).has(e)},MapCache.prototype.set=function mapCacheSet(e,t){return getMapData(this,e).set(e,t),this};var q=memoize((function(e){e=function toString(e){return null==e?"":function baseToString(e){if("string"==typeof e)return e;if(isSymbol(e))return T?T.call(e):"";var t=e+"";return"0"==t&&1/e==-r?"-0":t}(e)}(e);var t=[];return c.test(e)&&t.push(""),e.replace(u,(function(e,r,i,n){t.push(i?n.replace(l,"$1"):r||e)})),t}));function toKey(e){if("string"==typeof e||isSymbol(e))return e;var t=e+"";return"0"==t&&1/e==-r?"-0":t}function memoize(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var memoized=function(){var r=arguments,i=t?t.apply(this,r):r[0],n=memoized.cache;if(n.has(i))return n.get(i);var s=e.apply(this,r);return memoized.cache=n.set(i,s),s};return memoized.cache=new(memoize.Cache||MapCache),memoized}memoize.Cache=MapCache;var x=Array.isArray;function isObject(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function isSymbol(e){return"symbol"==typeof e||function isObjectLike(e){return!!e&&"object"==typeof e}(e)&&I.call(e)==s}e.exports=function get(e,t,r){var i=null==e?void 0:baseGet(e,t);return void 0===i?r:i}},6281:e=>{var t="__lodash_hash_undefined__",r=1/0,i=9007199254740991,n="[object Function]",s="[object GeneratorFunction]",o="[object Symbol]",a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,u=/^\./,l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,p=/\\(\\)?/g,d=/^\[object .+?Constructor\]$/,f=/^(?:0|[1-9]\d*)$/,y="object"==typeof global&&global&&global.Object===Object&&global,h="object"==typeof self&&self&&self.Object===Object&&self,g=y||h||Function("return this")();var m,v=Array.prototype,b=Function.prototype,R=Object.prototype,O=g["__core-js_shared__"],S=(m=/[^.]+$/.exec(O&&O.keys&&O.keys.IE_PROTO||""))?"Symbol(src)_1."+m:"",I=b.toString,w=R.hasOwnProperty,P=R.toString,j=RegExp("^"+I.call(w).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),A=g.Symbol,$=v.splice,N=getNative(g,"Map"),T=getNative(Object,"create"),q=A?A.prototype:void 0,x=q?q.toString:void 0;function Hash(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function ListCache(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function MapCache(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function assignValue(e,t,r){var i=e[t];w.call(e,t)&&eq(i,r)&&(void 0!==r||t in e)||(e[t]=r)}function assocIndexOf(e,t){for(var r=e.length;r--;)if(eq(e[r][0],t))return r;return-1}function baseIsNative(e){if(!isObject(e)||function isMasked(e){return!!S&&S in e}(e))return!1;var t=function isFunction(e){var t=isObject(e)?P.call(e):"";return t==n||t==s}(e)||function isHostObject(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?j:d;return t.test(function toSource(e){if(null!=e){try{return I.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function baseSet(e,t,r,i){if(!isObject(e))return e;t=function isKey(e,t){if(E(e))return!1;var r=typeof e;if("number"==r||"symbol"==r||"boolean"==r||null==e||isSymbol(e))return!0;return c.test(e)||!a.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:function castPath(e){return E(e)?e:D(e)}(t);for(var n=-1,s=t.length,o=s-1,u=e;null!=u&&++n<s;){var l=toKey(t[n]),p=r;if(n!=o){var d=u[l];void 0===(p=i?i(d,l,u):void 0)&&(p=isObject(d)?d:isIndex(t[n+1])?[]:{})}assignValue(u,l,p),u=u[l]}return e}function getMapData(e,t){var r=e.__data__;return function isKeyable(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?r["string"==typeof t?"string":"hash"]:r.map}function getNative(e,t){var r=function getValue(e,t){return null==e?void 0:e[t]}(e,t);return baseIsNative(r)?r:void 0}function isIndex(e,t){return!!(t=null==t?i:t)&&("number"==typeof e||f.test(e))&&e>-1&&e%1==0&&e<t}Hash.prototype.clear=function hashClear(){this.__data__=T?T(null):{}},Hash.prototype.delete=function hashDelete(e){return this.has(e)&&delete this.__data__[e]},Hash.prototype.get=function hashGet(e){var r=this.__data__;if(T){var i=r[e];return i===t?void 0:i}return w.call(r,e)?r[e]:void 0},Hash.prototype.has=function hashHas(e){var t=this.__data__;return T?void 0!==t[e]:w.call(t,e)},Hash.prototype.set=function hashSet(e,r){return this.__data__[e]=T&&void 0===r?t:r,this},ListCache.prototype.clear=function listCacheClear(){this.__data__=[]},ListCache.prototype.delete=function listCacheDelete(e){var t=this.__data__,r=assocIndexOf(t,e);return!(r<0)&&(r==t.length-1?t.pop():$.call(t,r,1),!0)},ListCache.prototype.get=function listCacheGet(e){var t=this.__data__,r=assocIndexOf(t,e);return r<0?void 0:t[r][1]},ListCache.prototype.has=function listCacheHas(e){return assocIndexOf(this.__data__,e)>-1},ListCache.prototype.set=function listCacheSet(e,t){var r=this.__data__,i=assocIndexOf(r,e);return i<0?r.push([e,t]):r[i][1]=t,this},MapCache.prototype.clear=function mapCacheClear(){this.__data__={hash:new Hash,map:new(N||ListCache),string:new Hash}},MapCache.prototype.delete=function mapCacheDelete(e){return getMapData(this,e).delete(e)},MapCache.prototype.get=function mapCacheGet(e){return getMapData(this,e).get(e)},MapCache.prototype.has=function mapCacheHas(e){return getMapData(this,e).has(e)},MapCache.prototype.set=function mapCacheSet(e,t){return getMapData(this,e).set(e,t),this};var D=memoize((function(e){e=function toString(e){return null==e?"":function baseToString(e){if("string"==typeof e)return e;if(isSymbol(e))return x?x.call(e):"";var t=e+"";return"0"==t&&1/e==-r?"-0":t}(e)}(e);var t=[];return u.test(e)&&t.push(""),e.replace(l,(function(e,r,i,n){t.push(i?n.replace(p,"$1"):r||e)})),t}));function toKey(e){if("string"==typeof e||isSymbol(e))return e;var t=e+"";return"0"==t&&1/e==-r?"-0":t}function memoize(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var memoized=function(){var r=arguments,i=t?t.apply(this,r):r[0],n=memoized.cache;if(n.has(i))return n.get(i);var s=e.apply(this,r);return memoized.cache=n.set(i,s),s};return memoized.cache=new(memoize.Cache||MapCache),memoized}function eq(e,t){return e===t||e!=e&&t!=t}memoize.Cache=MapCache;var E=Array.isArray;function isObject(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function isSymbol(e){return"symbol"==typeof e||function isObjectLike(e){return!!e&&"object"==typeof e}(e)&&P.call(e)==o}e.exports=function set(e,t,r){return null==e?e:baseSet(e,t,r)}},5250:function(e,t,r){var i;e=r.nmd(e),function(){var n,s="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",c=16,u=32,l=64,p=128,d=256,f=1/0,y=9007199254740991,h=NaN,g=4294967295,m=[["ary",p],["bind",1],["bindKey",2],["curry",8],["curryRight",c],["flip",512],["partial",u],["partialRight",l],["rearg",d]],v="[object Arguments]",b="[object Array]",R="[object Boolean]",O="[object Date]",S="[object Error]",I="[object Function]",w="[object GeneratorFunction]",P="[object Map]",j="[object Number]",A="[object Object]",$="[object Promise]",N="[object RegExp]",T="[object Set]",q="[object String]",x="[object Symbol]",D="[object WeakMap]",E="[object ArrayBuffer]",M="[object DataView]",k="[object Float32Array]",U="[object Float64Array]",F="[object Int8Array]",J="[object Int16Array]",L="[object Int32Array]",V="[object Uint8Array]",B="[object Uint8ClampedArray]",z="[object Uint16Array]",G="[object Uint32Array]",H=/\b__p \+= '';/g,Q=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,Z=/[&<>"']/g,Y=RegExp(K.source),X=RegExp(Z.source),ee=/<%-([\s\S]+?)%>/g,te=/<%([\s\S]+?)%>/g,re=/<%=([\s\S]+?)%>/g,ie=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,se=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,ae=RegExp(oe.source),ce=/^\s+/,ue=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,pe=/\{\n\/\* \[wrapped with (.+)\] \*/,de=/,? & /,fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ye=/[()=,{}\[\]\/\s]/,he=/\\(\\)?/g,ge=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,ve=/^[-+]0x[0-9a-f]+$/i,be=/^0b[01]+$/i,Re=/^\[object .+?Constructor\]$/,Oe=/^0o[0-7]+$/i,Se=/^(?:0|[1-9]\d*)$/,Ce=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ie=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,we="\\ud800-\\udfff",Pe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",je="\\u2700-\\u27bf",Ae="a-z\\xdf-\\xf6\\xf8-\\xff",$e="A-Z\\xc0-\\xd6\\xd8-\\xde",Ne="\\ufe0e\\ufe0f",Te="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",qe="['’]",xe="["+we+"]",De="["+Te+"]",Ee="["+Pe+"]",Me="\\d+",ke="["+je+"]",Ue="["+Ae+"]",Fe="[^"+we+Te+Me+je+Ae+$e+"]",Je="\\ud83c[\\udffb-\\udfff]",Le="[^"+we+"]",Ve="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",ze="["+$e+"]",Ge="\\u200d",He="(?:"+Ue+"|"+Fe+")",Qe="(?:"+ze+"|"+Fe+")",We="(?:['’](?:d|ll|m|re|s|t|ve))?",Ke="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ze="(?:"+Ee+"|"+Je+")"+"?",Ye="["+Ne+"]?",Xe=Ye+Ze+("(?:"+Ge+"(?:"+[Le,Ve,Be].join("|")+")"+Ye+Ze+")*"),et="(?:"+[ke,Ve,Be].join("|")+")"+Xe,tt="(?:"+[Le+Ee+"?",Ee,Ve,Be,xe].join("|")+")",rt=RegExp(qe,"g"),it=RegExp(Ee,"g"),nt=RegExp(Je+"(?="+Je+")|"+tt+Xe,"g"),st=RegExp([ze+"?"+Ue+"+"+We+"(?="+[De,ze,"$"].join("|")+")",Qe+"+"+Ke+"(?="+[De,ze+He,"$"].join("|")+")",ze+"?"+He+"+"+We,ze+"+"+Ke,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Me,et].join("|"),"g"),ot=RegExp("["+Ge+we+Pe+Ne+"]"),at=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ct=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ut=-1,lt={};lt[k]=lt[U]=lt[F]=lt[J]=lt[L]=lt[V]=lt[B]=lt[z]=lt[G]=!0,lt[v]=lt[b]=lt[E]=lt[R]=lt[M]=lt[O]=lt[S]=lt[I]=lt[P]=lt[j]=lt[A]=lt[N]=lt[T]=lt[q]=lt[D]=!1;var pt={};pt[v]=pt[b]=pt[E]=pt[M]=pt[R]=pt[O]=pt[k]=pt[U]=pt[F]=pt[J]=pt[L]=pt[P]=pt[j]=pt[A]=pt[N]=pt[T]=pt[q]=pt[x]=pt[V]=pt[B]=pt[z]=pt[G]=!0,pt[S]=pt[I]=pt[D]=!1;var dt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ft=parseFloat,yt=parseInt,ht="object"==typeof global&&global&&global.Object===Object&&global,gt="object"==typeof self&&self&&self.Object===Object&&self,mt=ht||gt||Function("return this")(),vt=t&&!t.nodeType&&t,bt=vt&&e&&!e.nodeType&&e,Rt=bt&&bt.exports===vt,Ot=Rt&&ht.process,St=function(){try{var e=bt&&bt.require&&bt.require("util").types;return e||Ot&&Ot.binding&&Ot.binding("util")}catch(e){}}(),Ct=St&&St.isArrayBuffer,It=St&&St.isDate,_t=St&&St.isMap,wt=St&&St.isRegExp,Pt=St&&St.isSet,jt=St&&St.isTypedArray;function apply(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function arrayAggregator(e,t,r,i){for(var n=-1,s=null==e?0:e.length;++n<s;){var o=e[n];t(i,o,r(o),e)}return i}function arrayEach(e,t){for(var r=-1,i=null==e?0:e.length;++r<i&&!1!==t(e[r],r,e););return e}function arrayEachRight(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function arrayEvery(e,t){for(var r=-1,i=null==e?0:e.length;++r<i;)if(!t(e[r],r,e))return!1;return!0}function arrayFilter(e,t){for(var r=-1,i=null==e?0:e.length,n=0,s=[];++r<i;){var o=e[r];t(o,r,e)&&(s[n++]=o)}return s}function arrayIncludes(e,t){return!!(null==e?0:e.length)&&baseIndexOf(e,t,0)>-1}function arrayIncludesWith(e,t,r){for(var i=-1,n=null==e?0:e.length;++i<n;)if(r(t,e[i]))return!0;return!1}function arrayMap(e,t){for(var r=-1,i=null==e?0:e.length,n=Array(i);++r<i;)n[r]=t(e[r],r,e);return n}function arrayPush(e,t){for(var r=-1,i=t.length,n=e.length;++r<i;)e[n+r]=t[r];return e}function arrayReduce(e,t,r,i){var n=-1,s=null==e?0:e.length;for(i&&s&&(r=e[++n]);++n<s;)r=t(r,e[n],n,e);return r}function arrayReduceRight(e,t,r,i){var n=null==e?0:e.length;for(i&&n&&(r=e[--n]);n--;)r=t(r,e[n],n,e);return r}function arraySome(e,t){for(var r=-1,i=null==e?0:e.length;++r<i;)if(t(e[r],r,e))return!0;return!1}var At=baseProperty("length");function baseFindKey(e,t,r){var i;return r(e,(function(e,r,n){if(t(e,r,n))return i=r,!1})),i}function baseFindIndex(e,t,r,i){for(var n=e.length,s=r+(i?1:-1);i?s--:++s<n;)if(t(e[s],s,e))return s;return-1}function baseIndexOf(e,t,r){return t==t?function strictIndexOf(e,t,r){var i=r-1,n=e.length;for(;++i<n;)if(e[i]===t)return i;return-1}(e,t,r):baseFindIndex(e,baseIsNaN,r)}function baseIndexOfWith(e,t,r,i){for(var n=r-1,s=e.length;++n<s;)if(i(e[n],t))return n;return-1}function baseIsNaN(e){return e!=e}function baseMean(e,t){var r=null==e?0:e.length;return r?baseSum(e,t)/r:h}function baseProperty(e){return function(t){return null==t?n:t[e]}}function basePropertyOf(e){return function(t){return null==e?n:e[t]}}function baseReduce(e,t,r,i,n){return n(e,(function(e,n,s){r=i?(i=!1,e):t(r,e,n,s)})),r}function baseSum(e,t){for(var r,i=-1,s=e.length;++i<s;){var o=t(e[i]);o!==n&&(r=r===n?o:r+o)}return r}function baseTimes(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}function baseTrim(e){return e?e.slice(0,trimmedEndIndex(e)+1).replace(ce,""):e}function baseUnary(e){return function(t){return e(t)}}function baseValues(e,t){return arrayMap(t,(function(t){return e[t]}))}function cacheHas(e,t){return e.has(t)}function charsStartIndex(e,t){for(var r=-1,i=e.length;++r<i&&baseIndexOf(t,e[r],0)>-1;);return r}function charsEndIndex(e,t){for(var r=e.length;r--&&baseIndexOf(t,e[r],0)>-1;);return r}var $t=basePropertyOf({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Nt=basePropertyOf({"&":"&","<":"<",">":">",'"':""","'":"'"});function escapeStringChar(e){return"\\"+dt[e]}function hasUnicode(e){return ot.test(e)}function mapToArray(e){var t=-1,r=Array(e.size);return e.forEach((function(e,i){r[++t]=[i,e]})),r}function overArg(e,t){return function(r){return e(t(r))}}function replaceHolders(e,t){for(var r=-1,i=e.length,n=0,s=[];++r<i;){var o=e[r];o!==t&&o!==a||(e[r]=a,s[n++]=r)}return s}function setToArray(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}function setToPairs(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=[e,e]})),r}function stringSize(e){return hasUnicode(e)?function unicodeSize(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):At(e)}function stringToArray(e){return hasUnicode(e)?function unicodeToArray(e){return e.match(nt)||[]}(e):function asciiToArray(e){return e.split("")}(e)}function trimmedEndIndex(e){for(var t=e.length;t--&&ue.test(e.charAt(t)););return t}var Tt=basePropertyOf({"&":"&","<":"<",">":">",""":'"',"'":"'"});var qt=function runInContext(e){var t,r=(e=null==e?mt:qt.defaults(mt.Object(),e,qt.pick(mt,ct))).Array,i=e.Date,ue=e.Error,we=e.Function,Pe=e.Math,je=e.Object,Ae=e.RegExp,$e=e.String,Ne=e.TypeError,Te=r.prototype,qe=we.prototype,xe=je.prototype,De=e["__core-js_shared__"],Ee=qe.toString,Me=xe.hasOwnProperty,ke=0,Ue=(t=/[^.]+$/.exec(De&&De.keys&&De.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"",Fe=xe.toString,Je=Ee.call(je),Le=mt._,Ve=Ae("^"+Ee.call(Me).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=Rt?e.Buffer:n,ze=e.Symbol,Ge=e.Uint8Array,He=Be?Be.allocUnsafe:n,Qe=overArg(je.getPrototypeOf,je),We=je.create,Ke=xe.propertyIsEnumerable,Ze=Te.splice,Ye=ze?ze.isConcatSpreadable:n,Xe=ze?ze.iterator:n,et=ze?ze.toStringTag:n,tt=function(){try{var e=getNative(je,"defineProperty");return e({},"",{}),e}catch(e){}}(),nt=e.clearTimeout!==mt.clearTimeout&&e.clearTimeout,ot=i&&i.now!==mt.Date.now&&i.now,dt=e.setTimeout!==mt.setTimeout&&e.setTimeout,ht=Pe.ceil,gt=Pe.floor,vt=je.getOwnPropertySymbols,bt=Be?Be.isBuffer:n,Ot=e.isFinite,St=Te.join,At=overArg(je.keys,je),xt=Pe.max,Dt=Pe.min,Et=i.now,Mt=e.parseInt,kt=Pe.random,Ut=Te.reverse,Ft=getNative(e,"DataView"),Jt=getNative(e,"Map"),Lt=getNative(e,"Promise"),Vt=getNative(e,"Set"),Bt=getNative(e,"WeakMap"),zt=getNative(je,"create"),Gt=Bt&&new Bt,Ht={},Qt=toSource(Ft),Wt=toSource(Jt),Kt=toSource(Lt),Zt=toSource(Vt),Yt=toSource(Bt),Xt=ze?ze.prototype:n,er=Xt?Xt.valueOf:n,tr=Xt?Xt.toString:n;function lodash(e){if(isObjectLike(e)&&!oi(e)&&!(e instanceof LazyWrapper)){if(e instanceof LodashWrapper)return e;if(Me.call(e,"__wrapped__"))return wrapperClone(e)}return new LodashWrapper(e)}var rr=function(){function object(){}return function(e){if(!isObject(e))return{};if(We)return We(e);object.prototype=e;var t=new object;return object.prototype=n,t}}();function baseLodash(){}function LodashWrapper(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function LazyWrapper(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Hash(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function ListCache(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function MapCache(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}function SetCache(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new MapCache;++t<r;)this.add(e[t])}function Stack(e){var t=this.__data__=new ListCache(e);this.size=t.size}function arrayLikeKeys(e,t){var r=oi(e),i=!r&&si(e),n=!r&&!i&&ci(e),s=!r&&!i&&!n&&fi(e),o=r||i||n||s,a=o?baseTimes(e.length,$e):[],c=a.length;for(var u in e)!t&&!Me.call(e,u)||o&&("length"==u||n&&("offset"==u||"parent"==u)||s&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||isIndex(u,c))||a.push(u);return a}function arraySample(e){var t=e.length;return t?e[baseRandom(0,t-1)]:n}function arraySampleSize(e,t){return shuffleSelf(copyArray(e),baseClamp(t,0,e.length))}function arrayShuffle(e){return shuffleSelf(copyArray(e))}function assignMergeValue(e,t,r){(r!==n&&!eq(e[t],r)||r===n&&!(t in e))&&baseAssignValue(e,t,r)}function assignValue(e,t,r){var i=e[t];Me.call(e,t)&&eq(i,r)&&(r!==n||t in e)||baseAssignValue(e,t,r)}function assocIndexOf(e,t){for(var r=e.length;r--;)if(eq(e[r][0],t))return r;return-1}function baseAggregator(e,t,r,i){return ir(e,(function(e,n,s){t(i,e,r(e),s)})),i}function baseAssign(e,t){return e&©Object(t,keys(t),e)}function baseAssignValue(e,t,r){"__proto__"==t&&tt?tt(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function baseAt(e,t){for(var i=-1,s=t.length,o=r(s),a=null==e;++i<s;)o[i]=a?n:get(e,t[i]);return o}function baseClamp(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function baseClone(e,t,r,i,s,o){var a,c=1&t,u=2&t,l=4&t;if(r&&(a=s?r(e,i,s,o):r(e)),a!==n)return a;if(!isObject(e))return e;var p=oi(e);if(p){if(a=function initCloneArray(e){var t=e.length,r=new e.constructor(t);t&&"string"==typeof e[0]&&Me.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!c)return copyArray(e,a)}else{var d=gr(e),f=d==I||d==w;if(ci(e))return cloneBuffer(e,c);if(d==A||d==v||f&&!s){if(a=u||f?{}:initCloneObject(e),!c)return u?function copySymbolsIn(e,t){return copyObject(e,hr(e),t)}(e,function baseAssignIn(e,t){return e&©Object(t,keysIn(t),e)}(a,e)):function copySymbols(e,t){return copyObject(e,yr(e),t)}(e,baseAssign(a,e))}else{if(!pt[d])return s?e:{};a=function initCloneByTag(e,t,r){var i=e.constructor;switch(t){case E:return cloneArrayBuffer(e);case R:case O:return new i(+e);case M:return function cloneDataView(e,t){var r=t?cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case k:case U:case F:case J:case L:case V:case B:case z:case G:return cloneTypedArray(e,r);case P:return new i;case j:case q:return new i(e);case N:return function cloneRegExp(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case T:return new i;case x:return function cloneSymbol(e){return er?je(er.call(e)):{}}(e)}}(e,d,c)}}o||(o=new Stack);var y=o.get(e);if(y)return y;o.set(e,a),di(e)?e.forEach((function(i){a.add(baseClone(i,t,r,i,e,o))})):li(e)&&e.forEach((function(i,n){a.set(n,baseClone(i,t,r,n,e,o))}));var h=p?n:(l?u?getAllKeysIn:getAllKeys:u?keysIn:keys)(e);return arrayEach(h||e,(function(i,n){h&&(i=e[n=i]),assignValue(a,n,baseClone(i,t,r,n,e,o))})),a}function baseConformsTo(e,t,r){var i=r.length;if(null==e)return!i;for(e=je(e);i--;){var s=r[i],o=t[s],a=e[s];if(a===n&&!(s in e)||!o(a))return!1}return!0}function baseDelay(e,t,r){if("function"!=typeof e)throw new Ne(s);return br((function(){e.apply(n,r)}),t)}function baseDifference(e,t,r,i){var n=-1,s=arrayIncludes,o=!0,a=e.length,c=[],u=t.length;if(!a)return c;r&&(t=arrayMap(t,baseUnary(r))),i?(s=arrayIncludesWith,o=!1):t.length>=200&&(s=cacheHas,o=!1,t=new SetCache(t));e:for(;++n<a;){var l=e[n],p=null==r?l:r(l);if(l=i||0!==l?l:0,o&&p==p){for(var d=u;d--;)if(t[d]===p)continue e;c.push(l)}else s(t,p,i)||c.push(l)}return c}lodash.templateSettings={escape:ee,evaluate:te,interpolate:re,variable:"",imports:{_:lodash}},lodash.prototype=baseLodash.prototype,lodash.prototype.constructor=lodash,LodashWrapper.prototype=rr(baseLodash.prototype),LodashWrapper.prototype.constructor=LodashWrapper,LazyWrapper.prototype=rr(baseLodash.prototype),LazyWrapper.prototype.constructor=LazyWrapper,Hash.prototype.clear=function hashClear(){this.__data__=zt?zt(null):{},this.size=0},Hash.prototype.delete=function hashDelete(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Hash.prototype.get=function hashGet(e){var t=this.__data__;if(zt){var r=t[e];return r===o?n:r}return Me.call(t,e)?t[e]:n},Hash.prototype.has=function hashHas(e){var t=this.__data__;return zt?t[e]!==n:Me.call(t,e)},Hash.prototype.set=function hashSet(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=zt&&t===n?o:t,this},ListCache.prototype.clear=function listCacheClear(){this.__data__=[],this.size=0},ListCache.prototype.delete=function listCacheDelete(e){var t=this.__data__,r=assocIndexOf(t,e);return!(r<0)&&(r==t.length-1?t.pop():Ze.call(t,r,1),--this.size,!0)},ListCache.prototype.get=function listCacheGet(e){var t=this.__data__,r=assocIndexOf(t,e);return r<0?n:t[r][1]},ListCache.prototype.has=function listCacheHas(e){return assocIndexOf(this.__data__,e)>-1},ListCache.prototype.set=function listCacheSet(e,t){var r=this.__data__,i=assocIndexOf(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this},MapCache.prototype.clear=function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Jt||ListCache),string:new Hash}},MapCache.prototype.delete=function mapCacheDelete(e){var t=getMapData(this,e).delete(e);return this.size-=t?1:0,t},MapCache.prototype.get=function mapCacheGet(e){return getMapData(this,e).get(e)},MapCache.prototype.has=function mapCacheHas(e){return getMapData(this,e).has(e)},MapCache.prototype.set=function mapCacheSet(e,t){var r=getMapData(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this},SetCache.prototype.add=SetCache.prototype.push=function setCacheAdd(e){return this.__data__.set(e,o),this},SetCache.prototype.has=function setCacheHas(e){return this.__data__.has(e)},Stack.prototype.clear=function stackClear(){this.__data__=new ListCache,this.size=0},Stack.prototype.delete=function stackDelete(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Stack.prototype.get=function stackGet(e){return this.__data__.get(e)},Stack.prototype.has=function stackHas(e){return this.__data__.has(e)},Stack.prototype.set=function stackSet(e,t){var r=this.__data__;if(r instanceof ListCache){var i=r.__data__;if(!Jt||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new MapCache(i)}return r.set(e,t),this.size=r.size,this};var ir=createBaseEach(baseForOwn),nr=createBaseEach(baseForOwnRight,!0);function baseEvery(e,t){var r=!0;return ir(e,(function(e,i,n){return r=!!t(e,i,n)})),r}function baseExtremum(e,t,r){for(var i=-1,s=e.length;++i<s;){var o=e[i],a=t(o);if(null!=a&&(c===n?a==a&&!isSymbol(a):r(a,c)))var c=a,u=o}return u}function baseFilter(e,t){var r=[];return ir(e,(function(e,i,n){t(e,i,n)&&r.push(e)})),r}function baseFlatten(e,t,r,i,n){var s=-1,o=e.length;for(r||(r=isFlattenable),n||(n=[]);++s<o;){var a=e[s];t>0&&r(a)?t>1?baseFlatten(a,t-1,r,i,n):arrayPush(n,a):i||(n[n.length]=a)}return n}var sr=createBaseFor(),ar=createBaseFor(!0);function baseForOwn(e,t){return e&&sr(e,t,keys)}function baseForOwnRight(e,t){return e&&ar(e,t,keys)}function baseFunctions(e,t){return arrayFilter(t,(function(t){return isFunction(e[t])}))}function baseGet(e,t){for(var r=0,i=(t=castPath(t,e)).length;null!=e&&r<i;)e=e[toKey(t[r++])];return r&&r==i?e:n}function baseGetAllKeys(e,t,r){var i=t(e);return oi(e)?i:arrayPush(i,r(e))}function baseGetTag(e){return null==e?e===n?"[object Undefined]":"[object Null]":et&&et in je(e)?function getRawTag(e){var t=Me.call(e,et),r=e[et];try{e[et]=n;var i=!0}catch(e){}var s=Fe.call(e);i&&(t?e[et]=r:delete e[et]);return s}(e):function objectToString(e){return Fe.call(e)}(e)}function baseGt(e,t){return e>t}function baseHas(e,t){return null!=e&&Me.call(e,t)}function baseHasIn(e,t){return null!=e&&t in je(e)}function baseIntersection(e,t,i){for(var s=i?arrayIncludesWith:arrayIncludes,o=e[0].length,a=e.length,c=a,u=r(a),l=1/0,p=[];c--;){var d=e[c];c&&t&&(d=arrayMap(d,baseUnary(t))),l=Dt(d.length,l),u[c]=!i&&(t||o>=120&&d.length>=120)?new SetCache(c&&d):n}d=e[0];var f=-1,y=u[0];e:for(;++f<o&&p.length<l;){var h=d[f],g=t?t(h):h;if(h=i||0!==h?h:0,!(y?cacheHas(y,g):s(p,g,i))){for(c=a;--c;){var m=u[c];if(!(m?cacheHas(m,g):s(e[c],g,i)))continue e}y&&y.push(g),p.push(h)}}return p}function baseInvoke(e,t,r){var i=null==(e=parent(e,t=castPath(t,e)))?e:e[toKey(last(t))];return null==i?n:apply(i,e,r)}function baseIsArguments(e){return isObjectLike(e)&&baseGetTag(e)==v}function baseIsEqual(e,t,r,i,s){return e===t||(null==e||null==t||!isObjectLike(e)&&!isObjectLike(t)?e!=e&&t!=t:function baseIsEqualDeep(e,t,r,i,s,o){var a=oi(e),c=oi(t),u=a?b:gr(e),l=c?b:gr(t),p=(u=u==v?A:u)==A,d=(l=l==v?A:l)==A,f=u==l;if(f&&ci(e)){if(!ci(t))return!1;a=!0,p=!1}if(f&&!p)return o||(o=new Stack),a||fi(e)?equalArrays(e,t,r,i,s,o):function equalByTag(e,t,r,i,n,s,o){switch(r){case M:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case E:return!(e.byteLength!=t.byteLength||!s(new Ge(e),new Ge(t)));case R:case O:case j:return eq(+e,+t);case S:return e.name==t.name&&e.message==t.message;case N:case q:return e==t+"";case P:var a=mapToArray;case T:var c=1&i;if(a||(a=setToArray),e.size!=t.size&&!c)return!1;var u=o.get(e);if(u)return u==t;i|=2,o.set(e,t);var l=equalArrays(a(e),a(t),i,n,s,o);return o.delete(e),l;case x:if(er)return er.call(e)==er.call(t)}return!1}(e,t,u,r,i,s,o);if(!(1&r)){var y=p&&Me.call(e,"__wrapped__"),h=d&&Me.call(t,"__wrapped__");if(y||h){var g=y?e.value():e,m=h?t.value():t;return o||(o=new Stack),s(g,m,r,i,o)}}if(!f)return!1;return o||(o=new Stack),function equalObjects(e,t,r,i,s,o){var a=1&r,c=getAllKeys(e),u=c.length,l=getAllKeys(t),p=l.length;if(u!=p&&!a)return!1;var d=u;for(;d--;){var f=c[d];if(!(a?f in t:Me.call(t,f)))return!1}var y=o.get(e),h=o.get(t);if(y&&h)return y==t&&h==e;var g=!0;o.set(e,t),o.set(t,e);var m=a;for(;++d<u;){var v=e[f=c[d]],b=t[f];if(i)var R=a?i(b,v,f,t,e,o):i(v,b,f,e,t,o);if(!(R===n?v===b||s(v,b,r,i,o):R)){g=!1;break}m||(m="constructor"==f)}if(g&&!m){var O=e.constructor,S=t.constructor;O==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof O&&O instanceof O&&"function"==typeof S&&S instanceof S||(g=!1)}return o.delete(e),o.delete(t),g}(e,t,r,i,s,o)}(e,t,r,i,baseIsEqual,s))}function baseIsMatch(e,t,r,i){var s=r.length,o=s,a=!i;if(null==e)return!o;for(e=je(e);s--;){var c=r[s];if(a&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++s<o;){var u=(c=r[s])[0],l=e[u],p=c[1];if(a&&c[2]){if(l===n&&!(u in e))return!1}else{var d=new Stack;if(i)var f=i(l,p,u,e,t,d);if(!(f===n?baseIsEqual(p,l,3,i,d):f))return!1}}return!0}function baseIsNative(e){return!(!isObject(e)||function isMasked(e){return!!Ue&&Ue in e}(e))&&(isFunction(e)?Ve:Re).test(toSource(e))}function baseIteratee(e){return"function"==typeof e?e:null==e?identity:"object"==typeof e?oi(e)?baseMatchesProperty(e[0],e[1]):baseMatches(e):property(e)}function baseKeys(e){if(!isPrototype(e))return At(e);var t=[];for(var r in je(e))Me.call(e,r)&&"constructor"!=r&&t.push(r);return t}function baseKeysIn(e){if(!isObject(e))return function nativeKeysIn(e){var t=[];if(null!=e)for(var r in je(e))t.push(r);return t}(e);var t=isPrototype(e),r=[];for(var i in e)("constructor"!=i||!t&&Me.call(e,i))&&r.push(i);return r}function baseLt(e,t){return e<t}function baseMap(e,t){var i=-1,n=isArrayLike(e)?r(e.length):[];return ir(e,(function(e,r,s){n[++i]=t(e,r,s)})),n}function baseMatches(e){var t=getMatchData(e);return 1==t.length&&t[0][2]?matchesStrictComparable(t[0][0],t[0][1]):function(r){return r===e||baseIsMatch(r,e,t)}}function baseMatchesProperty(e,t){return isKey(e)&&isStrictComparable(t)?matchesStrictComparable(toKey(e),t):function(r){var i=get(r,e);return i===n&&i===t?hasIn(r,e):baseIsEqual(t,i,3)}}function baseMerge(e,t,r,i,s){e!==t&&sr(t,(function(o,a){if(s||(s=new Stack),isObject(o))!function baseMergeDeep(e,t,r,i,s,o,a){var c=safeGet(e,r),u=safeGet(t,r),l=a.get(u);if(l)return void assignMergeValue(e,r,l);var p=o?o(c,u,r+"",e,t,a):n,d=p===n;if(d){var f=oi(u),y=!f&&ci(u),h=!f&&!y&&fi(u);p=u,f||y||h?oi(c)?p=c:isArrayLikeObject(c)?p=copyArray(c):y?(d=!1,p=cloneBuffer(u,!0)):h?(d=!1,p=cloneTypedArray(u,!0)):p=[]:isPlainObject(u)||si(u)?(p=c,si(c)?p=toPlainObject(c):isObject(c)&&!isFunction(c)||(p=initCloneObject(u))):d=!1}d&&(a.set(u,p),s(p,u,i,o,a),a.delete(u));assignMergeValue(e,r,p)}(e,t,a,r,baseMerge,i,s);else{var c=i?i(safeGet(e,a),o,a+"",e,t,s):n;c===n&&(c=o),assignMergeValue(e,a,c)}}),keysIn)}function baseNth(e,t){var r=e.length;if(r)return isIndex(t+=t<0?r:0,r)?e[t]:n}function baseOrderBy(e,t,r){t=t.length?arrayMap(t,(function(e){return oi(e)?function(t){return baseGet(t,1===e.length?e[0]:e)}:e})):[identity];var i=-1;t=arrayMap(t,baseUnary(getIteratee()));var n=baseMap(e,(function(e,r,n){var s=arrayMap(t,(function(t){return t(e)}));return{criteria:s,index:++i,value:e}}));return function baseSortBy(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(n,(function(e,t){return function compareMultiple(e,t,r){var i=-1,n=e.criteria,s=t.criteria,o=n.length,a=r.length;for(;++i<o;){var c=compareAscending(n[i],s[i]);if(c)return i>=a?c:c*("desc"==r[i]?-1:1)}return e.index-t.index}(e,t,r)}))}function basePickBy(e,t,r){for(var i=-1,n=t.length,s={};++i<n;){var o=t[i],a=baseGet(e,o);r(a,o)&&baseSet(s,castPath(o,e),a)}return s}function basePullAll(e,t,r,i){var n=i?baseIndexOfWith:baseIndexOf,s=-1,o=t.length,a=e;for(e===t&&(t=copyArray(t)),r&&(a=arrayMap(e,baseUnary(r)));++s<o;)for(var c=0,u=t[s],l=r?r(u):u;(c=n(a,l,c,i))>-1;)a!==e&&Ze.call(a,c,1),Ze.call(e,c,1);return e}function basePullAt(e,t){for(var r=e?t.length:0,i=r-1;r--;){var n=t[r];if(r==i||n!==s){var s=n;isIndex(n)?Ze.call(e,n,1):baseUnset(e,n)}}return e}function baseRandom(e,t){return e+gt(kt()*(t-e+1))}function baseRepeat(e,t){var r="";if(!e||t<1||t>y)return r;do{t%2&&(r+=e),(t=gt(t/2))&&(e+=e)}while(t);return r}function baseRest(e,t){return Rr(overRest(e,t,identity),e+"")}function baseSample(e){return arraySample(values(e))}function baseSampleSize(e,t){var r=values(e);return shuffleSelf(r,baseClamp(t,0,r.length))}function baseSet(e,t,r,i){if(!isObject(e))return e;for(var s=-1,o=(t=castPath(t,e)).length,a=o-1,c=e;null!=c&&++s<o;){var u=toKey(t[s]),l=r;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(s!=a){var p=c[u];(l=i?i(p,u,c):n)===n&&(l=isObject(p)?p:isIndex(t[s+1])?[]:{})}assignValue(c,u,l),c=c[u]}return e}var cr=Gt?function(e,t){return Gt.set(e,t),e}:identity,ur=tt?function(e,t){return tt(e,"toString",{configurable:!0,enumerable:!1,value:constant(t),writable:!0})}:identity;function baseShuffle(e){return shuffleSelf(values(e))}function baseSlice(e,t,i){var n=-1,s=e.length;t<0&&(t=-t>s?0:s+t),(i=i>s?s:i)<0&&(i+=s),s=t>i?0:i-t>>>0,t>>>=0;for(var o=r(s);++n<s;)o[n]=e[n+t];return o}function baseSome(e,t){var r;return ir(e,(function(e,i,n){return!(r=t(e,i,n))})),!!r}function baseSortedIndex(e,t,r){var i=0,n=null==e?i:e.length;if("number"==typeof t&&t==t&&n<=2147483647){for(;i<n;){var s=i+n>>>1,o=e[s];null!==o&&!isSymbol(o)&&(r?o<=t:o<t)?i=s+1:n=s}return n}return baseSortedIndexBy(e,t,identity,r)}function baseSortedIndexBy(e,t,r,i){var s=0,o=null==e?0:e.length;if(0===o)return 0;for(var a=(t=r(t))!=t,c=null===t,u=isSymbol(t),l=t===n;s<o;){var p=gt((s+o)/2),d=r(e[p]),f=d!==n,y=null===d,h=d==d,g=isSymbol(d);if(a)var m=i||h;else m=l?h&&(i||f):c?h&&f&&(i||!y):u?h&&f&&!y&&(i||!g):!y&&!g&&(i?d<=t:d<t);m?s=p+1:o=p}return Dt(o,4294967294)}function baseSortedUniq(e,t){for(var r=-1,i=e.length,n=0,s=[];++r<i;){var o=e[r],a=t?t(o):o;if(!r||!eq(a,c)){var c=a;s[n++]=0===o?0:o}}return s}function baseToNumber(e){return"number"==typeof e?e:isSymbol(e)?h:+e}function baseToString(e){if("string"==typeof e)return e;if(oi(e))return arrayMap(e,baseToString)+"";if(isSymbol(e))return tr?tr.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function baseUniq(e,t,r){var i=-1,n=arrayIncludes,s=e.length,o=!0,a=[],c=a;if(r)o=!1,n=arrayIncludesWith;else if(s>=200){var u=t?null:dr(e);if(u)return setToArray(u);o=!1,n=cacheHas,c=new SetCache}else c=t?[]:a;e:for(;++i<s;){var l=e[i],p=t?t(l):l;if(l=r||0!==l?l:0,o&&p==p){for(var d=c.length;d--;)if(c[d]===p)continue e;t&&c.push(p),a.push(l)}else n(c,p,r)||(c!==a&&c.push(p),a.push(l))}return a}function baseUnset(e,t){return null==(e=parent(e,t=castPath(t,e)))||delete e[toKey(last(t))]}function baseUpdate(e,t,r,i){return baseSet(e,t,r(baseGet(e,t)),i)}function baseWhile(e,t,r,i){for(var n=e.length,s=i?n:-1;(i?s--:++s<n)&&t(e[s],s,e););return r?baseSlice(e,i?0:s,i?s+1:n):baseSlice(e,i?s+1:0,i?n:s)}function baseWrapperValue(e,t){var r=e;return r instanceof LazyWrapper&&(r=r.value()),arrayReduce(t,(function(e,t){return t.func.apply(t.thisArg,arrayPush([e],t.args))}),r)}function baseXor(e,t,i){var n=e.length;if(n<2)return n?baseUniq(e[0]):[];for(var s=-1,o=r(n);++s<n;)for(var a=e[s],c=-1;++c<n;)c!=s&&(o[s]=baseDifference(o[s]||a,e[c],t,i));return baseUniq(baseFlatten(o,1),t,i)}function baseZipObject(e,t,r){for(var i=-1,s=e.length,o=t.length,a={};++i<s;){var c=i<o?t[i]:n;r(a,e[i],c)}return a}function castArrayLikeObject(e){return isArrayLikeObject(e)?e:[]}function castFunction(e){return"function"==typeof e?e:identity}function castPath(e,t){return oi(e)?e:isKey(e,t)?[e]:Or(toString(e))}var lr=baseRest;function castSlice(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:baseSlice(e,t,r)}var pr=nt||function(e){return mt.clearTimeout(e)};function cloneBuffer(e,t){if(t)return e.slice();var r=e.length,i=He?He(r):new e.constructor(r);return e.copy(i),i}function cloneArrayBuffer(e){var t=new e.constructor(e.byteLength);return new Ge(t).set(new Ge(e)),t}function cloneTypedArray(e,t){var r=t?cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function compareAscending(e,t){if(e!==t){var r=e!==n,i=null===e,s=e==e,o=isSymbol(e),a=t!==n,c=null===t,u=t==t,l=isSymbol(t);if(!c&&!l&&!o&&e>t||o&&a&&u&&!c&&!l||i&&a&&u||!r&&u||!s)return 1;if(!i&&!o&&!l&&e<t||l&&r&&s&&!i&&!o||c&&r&&s||!a&&s||!u)return-1}return 0}function composeArgs(e,t,i,n){for(var s=-1,o=e.length,a=i.length,c=-1,u=t.length,l=xt(o-a,0),p=r(u+l),d=!n;++c<u;)p[c]=t[c];for(;++s<a;)(d||s<o)&&(p[i[s]]=e[s]);for(;l--;)p[c++]=e[s++];return p}function composeArgsRight(e,t,i,n){for(var s=-1,o=e.length,a=-1,c=i.length,u=-1,l=t.length,p=xt(o-c,0),d=r(p+l),f=!n;++s<p;)d[s]=e[s];for(var y=s;++u<l;)d[y+u]=t[u];for(;++a<c;)(f||s<o)&&(d[y+i[a]]=e[s++]);return d}function copyArray(e,t){var i=-1,n=e.length;for(t||(t=r(n));++i<n;)t[i]=e[i];return t}function copyObject(e,t,r,i){var s=!r;r||(r={});for(var o=-1,a=t.length;++o<a;){var c=t[o],u=i?i(r[c],e[c],c,r,e):n;u===n&&(u=e[c]),s?baseAssignValue(r,c,u):assignValue(r,c,u)}return r}function createAggregator(e,t){return function(r,i){var n=oi(r)?arrayAggregator:baseAggregator,s=t?t():{};return n(r,e,getIteratee(i,2),s)}}function createAssigner(e){return baseRest((function(t,r){var i=-1,s=r.length,o=s>1?r[s-1]:n,a=s>2?r[2]:n;for(o=e.length>3&&"function"==typeof o?(s--,o):n,a&&isIterateeCall(r[0],r[1],a)&&(o=s<3?n:o,s=1),t=je(t);++i<s;){var c=r[i];c&&e(t,c,i,o)}return t}))}function createBaseEach(e,t){return function(r,i){if(null==r)return r;if(!isArrayLike(r))return e(r,i);for(var n=r.length,s=t?n:-1,o=je(r);(t?s--:++s<n)&&!1!==i(o[s],s,o););return r}}function createBaseFor(e){return function(t,r,i){for(var n=-1,s=je(t),o=i(t),a=o.length;a--;){var c=o[e?a:++n];if(!1===r(s[c],c,s))break}return t}}function createCaseFirst(e){return function(t){var r=hasUnicode(t=toString(t))?stringToArray(t):n,i=r?r[0]:t.charAt(0),s=r?castSlice(r,1).join(""):t.slice(1);return i[e]()+s}}function createCompounder(e){return function(t){return arrayReduce(words(deburr(t).replace(rt,"")),e,"")}}function createCtor(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=rr(e.prototype),i=e.apply(r,t);return isObject(i)?i:r}}function createFind(e){return function(t,r,i){var s=je(t);if(!isArrayLike(t)){var o=getIteratee(r,3);t=keys(t),r=function(e){return o(s[e],e,s)}}var a=e(t,r,i);return a>-1?s[o?t[a]:a]:n}}function createFlow(e){return flatRest((function(t){var r=t.length,i=r,o=LodashWrapper.prototype.thru;for(e&&t.reverse();i--;){var a=t[i];if("function"!=typeof a)throw new Ne(s);if(o&&!c&&"wrapper"==getFuncName(a))var c=new LodashWrapper([],!0)}for(i=c?i:r;++i<r;){var u=getFuncName(a=t[i]),l="wrapper"==u?fr(a):n;c=l&&isLaziable(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?c[getFuncName(l[0])].apply(c,l[3]):1==a.length&&isLaziable(a)?c[u]():c.thru(a)}return function(){var e=arguments,i=e[0];if(c&&1==e.length&&oi(i))return c.plant(i).value();for(var n=0,s=r?t[n].apply(this,e):i;++n<r;)s=t[n].call(this,s);return s}}))}function createHybrid(e,t,i,s,o,a,c,u,l,d){var f=t&p,y=1&t,h=2&t,g=24&t,m=512&t,v=h?n:createCtor(e);return function wrapper(){for(var p=arguments.length,b=r(p),R=p;R--;)b[R]=arguments[R];if(g)var O=getHolder(wrapper),S=function countHolders(e,t){for(var r=e.length,i=0;r--;)e[r]===t&&++i;return i}(b,O);if(s&&(b=composeArgs(b,s,o,g)),a&&(b=composeArgsRight(b,a,c,g)),p-=S,g&&p<d){var I=replaceHolders(b,O);return createRecurry(e,t,createHybrid,wrapper.placeholder,i,b,I,u,l,d-p)}var w=y?i:this,P=h?w[e]:e;return p=b.length,u?b=function reorder(e,t){var r=e.length,i=Dt(t.length,r),s=copyArray(e);for(;i--;){var o=t[i];e[i]=isIndex(o,r)?s[o]:n}return e}(b,u):m&&p>1&&b.reverse(),f&&l<p&&(b.length=l),this&&this!==mt&&this instanceof wrapper&&(P=v||createCtor(P)),P.apply(w,b)}}function createInverter(e,t){return function(r,i){return function baseInverter(e,t,r,i){return baseForOwn(e,(function(e,n,s){t(i,r(e),n,s)})),i}(r,e,t(i),{})}}function createMathOperation(e,t){return function(r,i){var s;if(r===n&&i===n)return t;if(r!==n&&(s=r),i!==n){if(s===n)return i;"string"==typeof r||"string"==typeof i?(r=baseToString(r),i=baseToString(i)):(r=baseToNumber(r),i=baseToNumber(i)),s=e(r,i)}return s}}function createOver(e){return flatRest((function(t){return t=arrayMap(t,baseUnary(getIteratee())),baseRest((function(r){var i=this;return e(t,(function(e){return apply(e,i,r)}))}))}))}function createPadding(e,t){var r=(t=t===n?" ":baseToString(t)).length;if(r<2)return r?baseRepeat(t,e):t;var i=baseRepeat(t,ht(e/stringSize(t)));return hasUnicode(t)?castSlice(stringToArray(i),0,e).join(""):i.slice(0,e)}function createRange(e){return function(t,i,s){return s&&"number"!=typeof s&&isIterateeCall(t,i,s)&&(i=s=n),t=toFinite(t),i===n?(i=t,t=0):i=toFinite(i),function baseRange(e,t,i,n){for(var s=-1,o=xt(ht((t-e)/(i||1)),0),a=r(o);o--;)a[n?o:++s]=e,e+=i;return a}(t,i,s=s===n?t<i?1:-1:toFinite(s),e)}}function createRelationalOperation(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=toNumber(t),r=toNumber(r)),e(t,r)}}function createRecurry(e,t,r,i,s,o,a,c,p,d){var f=8&t;t|=f?u:l,4&(t&=~(f?l:u))||(t&=-4);var y=[e,t,s,f?o:n,f?a:n,f?n:o,f?n:a,c,p,d],h=r.apply(n,y);return isLaziable(e)&&vr(h,y),h.placeholder=i,setWrapToString(h,e,t)}function createRound(e){var t=Pe[e];return function(e,r){if(e=toNumber(e),(r=null==r?0:Dt(toInteger(r),292))&&Ot(e)){var i=(toString(e)+"e").split("e");return+((i=(toString(t(i[0]+"e"+(+i[1]+r)))+"e").split("e"))[0]+"e"+(+i[1]-r))}return t(e)}}var dr=Vt&&1/setToArray(new Vt([,-0]))[1]==f?function(e){return new Vt(e)}:noop;function createToPairs(e){return function(t){var r=gr(t);return r==P?mapToArray(t):r==T?setToPairs(t):function baseToPairs(e,t){return arrayMap(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function createWrap(e,t,i,o,f,y,h,g){var m=2&t;if(!m&&"function"!=typeof e)throw new Ne(s);var v=o?o.length:0;if(v||(t&=-97,o=f=n),h=h===n?h:xt(toInteger(h),0),g=g===n?g:toInteger(g),v-=f?f.length:0,t&l){var b=o,R=f;o=f=n}var O=m?n:fr(e),S=[e,t,i,o,f,b,R,y,h,g];if(O&&function mergeData(e,t){var r=e[1],i=t[1],n=r|i,s=n<131,o=i==p&&8==r||i==p&&r==d&&e[7].length<=t[8]||384==i&&t[7].length<=t[8]&&8==r;if(!s&&!o)return e;1&i&&(e[2]=t[2],n|=1&r?0:4);var c=t[3];if(c){var u=e[3];e[3]=u?composeArgs(u,c,t[4]):c,e[4]=u?replaceHolders(e[3],a):t[4]}(c=t[5])&&(u=e[5],e[5]=u?composeArgsRight(u,c,t[6]):c,e[6]=u?replaceHolders(e[5],a):t[6]);(c=t[7])&&(e[7]=c);i&p&&(e[8]=null==e[8]?t[8]:Dt(e[8],t[8]));null==e[9]&&(e[9]=t[9]);return e[0]=t[0],e[1]=n,e}(S,O),e=S[0],t=S[1],i=S[2],o=S[3],f=S[4],!(g=S[9]=S[9]===n?m?0:e.length:xt(S[9]-v,0))&&24&t&&(t&=-25),t&&1!=t)I=8==t||t==c?function createCurry(e,t,i){var s=createCtor(e);return function wrapper(){for(var o=arguments.length,a=r(o),c=o,u=getHolder(wrapper);c--;)a[c]=arguments[c];var l=o<3&&a[0]!==u&&a[o-1]!==u?[]:replaceHolders(a,u);return(o-=l.length)<i?createRecurry(e,t,createHybrid,wrapper.placeholder,n,a,l,n,n,i-o):apply(this&&this!==mt&&this instanceof wrapper?s:e,this,a)}}(e,t,g):t!=u&&33!=t||f.length?createHybrid.apply(n,S):function createPartial(e,t,i,n){var s=1&t,o=createCtor(e);return function wrapper(){for(var t=-1,a=arguments.length,c=-1,u=n.length,l=r(u+a),p=this&&this!==mt&&this instanceof wrapper?o:e;++c<u;)l[c]=n[c];for(;a--;)l[c++]=arguments[++t];return apply(p,s?i:this,l)}}(e,t,i,o);else var I=function createBind(e,t,r){var i=1&t,n=createCtor(e);return function wrapper(){return(this&&this!==mt&&this instanceof wrapper?n:e).apply(i?r:this,arguments)}}(e,t,i);return setWrapToString((O?cr:vr)(I,S),e,t)}function customDefaultsAssignIn(e,t,r,i){return e===n||eq(e,xe[r])&&!Me.call(i,r)?t:e}function customDefaultsMerge(e,t,r,i,s,o){return isObject(e)&&isObject(t)&&(o.set(t,e),baseMerge(e,t,n,customDefaultsMerge,o),o.delete(t)),e}function customOmitClone(e){return isPlainObject(e)?n:e}function equalArrays(e,t,r,i,s,o){var a=1&r,c=e.length,u=t.length;if(c!=u&&!(a&&u>c))return!1;var l=o.get(e),p=o.get(t);if(l&&p)return l==t&&p==e;var d=-1,f=!0,y=2&r?new SetCache:n;for(o.set(e,t),o.set(t,e);++d<c;){var h=e[d],g=t[d];if(i)var m=a?i(g,h,d,t,e,o):i(h,g,d,e,t,o);if(m!==n){if(m)continue;f=!1;break}if(y){if(!arraySome(t,(function(e,t){if(!cacheHas(y,t)&&(h===e||s(h,e,r,i,o)))return y.push(t)}))){f=!1;break}}else if(h!==g&&!s(h,g,r,i,o)){f=!1;break}}return o.delete(e),o.delete(t),f}function flatRest(e){return Rr(overRest(e,n,flatten),e+"")}function getAllKeys(e){return baseGetAllKeys(e,keys,yr)}function getAllKeysIn(e){return baseGetAllKeys(e,keysIn,hr)}var fr=Gt?function(e){return Gt.get(e)}:noop;function getFuncName(e){for(var t=e.name+"",r=Ht[t],i=Me.call(Ht,t)?r.length:0;i--;){var n=r[i],s=n.func;if(null==s||s==e)return n.name}return t}function getHolder(e){return(Me.call(lodash,"placeholder")?lodash:e).placeholder}function getIteratee(){var e=lodash.iteratee||iteratee;return e=e===iteratee?baseIteratee:e,arguments.length?e(arguments[0],arguments[1]):e}function getMapData(e,t){var r=e.__data__;return function isKeyable(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?r["string"==typeof t?"string":"hash"]:r.map}function getMatchData(e){for(var t=keys(e),r=t.length;r--;){var i=t[r],n=e[i];t[r]=[i,n,isStrictComparable(n)]}return t}function getNative(e,t){var r=function getValue(e,t){return null==e?n:e[t]}(e,t);return baseIsNative(r)?r:n}var yr=vt?function(e){return null==e?[]:(e=je(e),arrayFilter(vt(e),(function(t){return Ke.call(e,t)})))}:stubArray,hr=vt?function(e){for(var t=[];e;)arrayPush(t,yr(e)),e=Qe(e);return t}:stubArray,gr=baseGetTag;function hasPath(e,t,r){for(var i=-1,n=(t=castPath(t,e)).length,s=!1;++i<n;){var o=toKey(t[i]);if(!(s=null!=e&&r(e,o)))break;e=e[o]}return s||++i!=n?s:!!(n=null==e?0:e.length)&&isLength(n)&&isIndex(o,n)&&(oi(e)||si(e))}function initCloneObject(e){return"function"!=typeof e.constructor||isPrototype(e)?{}:rr(Qe(e))}function isFlattenable(e){return oi(e)||si(e)||!!(Ye&&e&&e[Ye])}function isIndex(e,t){var r=typeof e;return!!(t=null==t?y:t)&&("number"==r||"symbol"!=r&&Se.test(e))&&e>-1&&e%1==0&&e<t}function isIterateeCall(e,t,r){if(!isObject(r))return!1;var i=typeof t;return!!("number"==i?isArrayLike(r)&&isIndex(t,r.length):"string"==i&&t in r)&&eq(r[t],e)}function isKey(e,t){if(oi(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!isSymbol(e))||(ne.test(e)||!ie.test(e)||null!=t&&e in je(t))}function isLaziable(e){var t=getFuncName(e),r=lodash[t];if("function"!=typeof r||!(t in LazyWrapper.prototype))return!1;if(e===r)return!0;var i=fr(r);return!!i&&e===i[0]}(Ft&&gr(new Ft(new ArrayBuffer(1)))!=M||Jt&&gr(new Jt)!=P||Lt&&gr(Lt.resolve())!=$||Vt&&gr(new Vt)!=T||Bt&&gr(new Bt)!=D)&&(gr=function(e){var t=baseGetTag(e),r=t==A?e.constructor:n,i=r?toSource(r):"";if(i)switch(i){case Qt:return M;case Wt:return P;case Kt:return $;case Zt:return T;case Yt:return D}return t});var mr=De?isFunction:stubFalse;function isPrototype(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||xe)}function isStrictComparable(e){return e==e&&!isObject(e)}function matchesStrictComparable(e,t){return function(r){return null!=r&&(r[e]===t&&(t!==n||e in je(r)))}}function overRest(e,t,i){return t=xt(t===n?e.length-1:t,0),function(){for(var n=arguments,s=-1,o=xt(n.length-t,0),a=r(o);++s<o;)a[s]=n[t+s];s=-1;for(var c=r(t+1);++s<t;)c[s]=n[s];return c[t]=i(a),apply(e,this,c)}}function parent(e,t){return t.length<2?e:baseGet(e,baseSlice(t,0,-1))}function safeGet(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var vr=shortOut(cr),br=dt||function(e,t){return mt.setTimeout(e,t)},Rr=shortOut(ur);function setWrapToString(e,t,r){var i=t+"";return Rr(e,function insertWrapDetails(e,t){var r=t.length;if(!r)return e;var i=r-1;return t[i]=(r>1?"& ":"")+t[i],t=t.join(r>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(i,function updateWrapDetails(e,t){return arrayEach(m,(function(r){var i="_."+r[0];t&r[1]&&!arrayIncludes(e,i)&&e.push(i)})),e.sort()}(function getWrapDetails(e){var t=e.match(pe);return t?t[1].split(de):[]}(i),r)))}function shortOut(e){var t=0,r=0;return function(){var i=Et(),s=16-(i-r);if(r=i,s>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function shuffleSelf(e,t){var r=-1,i=e.length,s=i-1;for(t=t===n?i:t;++r<t;){var o=baseRandom(r,s),a=e[o];e[o]=e[r],e[r]=a}return e.length=t,e}var Or=function memoizeCapped(e){var t=memoize(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(se,(function(e,r,i,n){t.push(i?n.replace(he,"$1"):r||e)})),t}));function toKey(e){if("string"==typeof e||isSymbol(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function toSource(e){if(null!=e){try{return Ee.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function wrapperClone(e){if(e instanceof LazyWrapper)return e.clone();var t=new LodashWrapper(e.__wrapped__,e.__chain__);return t.__actions__=copyArray(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Sr=baseRest((function(e,t){return isArrayLikeObject(e)?baseDifference(e,baseFlatten(t,1,isArrayLikeObject,!0)):[]})),Cr=baseRest((function(e,t){var r=last(t);return isArrayLikeObject(r)&&(r=n),isArrayLikeObject(e)?baseDifference(e,baseFlatten(t,1,isArrayLikeObject,!0),getIteratee(r,2)):[]})),Ir=baseRest((function(e,t){var r=last(t);return isArrayLikeObject(r)&&(r=n),isArrayLikeObject(e)?baseDifference(e,baseFlatten(t,1,isArrayLikeObject,!0),n,r):[]}));function findIndex(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var n=null==r?0:toInteger(r);return n<0&&(n=xt(i+n,0)),baseFindIndex(e,getIteratee(t,3),n)}function findLastIndex(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var s=i-1;return r!==n&&(s=toInteger(r),s=r<0?xt(i+s,0):Dt(s,i-1)),baseFindIndex(e,getIteratee(t,3),s,!0)}function flatten(e){return(null==e?0:e.length)?baseFlatten(e,1):[]}function head(e){return e&&e.length?e[0]:n}var _r=baseRest((function(e){var t=arrayMap(e,castArrayLikeObject);return t.length&&t[0]===e[0]?baseIntersection(t):[]})),wr=baseRest((function(e){var t=last(e),r=arrayMap(e,castArrayLikeObject);return t===last(r)?t=n:r.pop(),r.length&&r[0]===e[0]?baseIntersection(r,getIteratee(t,2)):[]})),Pr=baseRest((function(e){var t=last(e),r=arrayMap(e,castArrayLikeObject);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?baseIntersection(r,n,t):[]}));function last(e){var t=null==e?0:e.length;return t?e[t-1]:n}var jr=baseRest(pullAll);function pullAll(e,t){return e&&e.length&&t&&t.length?basePullAll(e,t):e}var Ar=flatRest((function(e,t){var r=null==e?0:e.length,i=baseAt(e,t);return basePullAt(e,arrayMap(t,(function(e){return isIndex(e,r)?+e:e})).sort(compareAscending)),i}));function reverse(e){return null==e?e:Ut.call(e)}var $r=baseRest((function(e){return baseUniq(baseFlatten(e,1,isArrayLikeObject,!0))})),Nr=baseRest((function(e){var t=last(e);return isArrayLikeObject(t)&&(t=n),baseUniq(baseFlatten(e,1,isArrayLikeObject,!0),getIteratee(t,2))})),Tr=baseRest((function(e){var t=last(e);return t="function"==typeof t?t:n,baseUniq(baseFlatten(e,1,isArrayLikeObject,!0),n,t)}));function unzip(e){if(!e||!e.length)return[];var t=0;return e=arrayFilter(e,(function(e){if(isArrayLikeObject(e))return t=xt(e.length,t),!0})),baseTimes(t,(function(t){return arrayMap(e,baseProperty(t))}))}function unzipWith(e,t){if(!e||!e.length)return[];var r=unzip(e);return null==t?r:arrayMap(r,(function(e){return apply(t,n,e)}))}var qr=baseRest((function(e,t){return isArrayLikeObject(e)?baseDifference(e,t):[]})),xr=baseRest((function(e){return baseXor(arrayFilter(e,isArrayLikeObject))})),Dr=baseRest((function(e){var t=last(e);return isArrayLikeObject(t)&&(t=n),baseXor(arrayFilter(e,isArrayLikeObject),getIteratee(t,2))})),Er=baseRest((function(e){var t=last(e);return t="function"==typeof t?t:n,baseXor(arrayFilter(e,isArrayLikeObject),n,t)})),Mr=baseRest(unzip);var kr=baseRest((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,unzipWith(e,r)}));function chain(e){var t=lodash(e);return t.__chain__=!0,t}function thru(e,t){return t(e)}var Ur=flatRest((function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,interceptor=function(t){return baseAt(t,e)};return!(t>1||this.__actions__.length)&&i instanceof LazyWrapper&&isIndex(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:thru,args:[interceptor],thisArg:n}),new LodashWrapper(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(interceptor)}));var Fr=createAggregator((function(e,t,r){Me.call(e,r)?++e[r]:baseAssignValue(e,r,1)}));var Jr=createFind(findIndex),Lr=createFind(findLastIndex);function forEach(e,t){return(oi(e)?arrayEach:ir)(e,getIteratee(t,3))}function forEachRight(e,t){return(oi(e)?arrayEachRight:nr)(e,getIteratee(t,3))}var Vr=createAggregator((function(e,t,r){Me.call(e,r)?e[r].push(t):baseAssignValue(e,r,[t])}));var Br=baseRest((function(e,t,i){var n=-1,s="function"==typeof t,o=isArrayLike(e)?r(e.length):[];return ir(e,(function(e){o[++n]=s?apply(t,e,i):baseInvoke(e,t,i)})),o})),zr=createAggregator((function(e,t,r){baseAssignValue(e,r,t)}));function map(e,t){return(oi(e)?arrayMap:baseMap)(e,getIteratee(t,3))}var Gr=createAggregator((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));var Hr=baseRest((function(e,t){if(null==e)return[];var r=t.length;return r>1&&isIterateeCall(e,t[0],t[1])?t=[]:r>2&&isIterateeCall(t[0],t[1],t[2])&&(t=[t[0]]),baseOrderBy(e,baseFlatten(t,1),[])})),Qr=ot||function(){return mt.Date.now()};function ary(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,createWrap(e,p,n,n,n,n,t)}function before(e,t){var r;if("function"!=typeof t)throw new Ne(s);return e=toInteger(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var Wr=baseRest((function(e,t,r){var i=1;if(r.length){var n=replaceHolders(r,getHolder(Wr));i|=u}return createWrap(e,i,t,r,n)})),Kr=baseRest((function(e,t,r){var i=3;if(r.length){var n=replaceHolders(r,getHolder(Kr));i|=u}return createWrap(t,i,e,r,n)}));function debounce(e,t,r){var i,o,a,c,u,l,p=0,d=!1,f=!1,y=!0;if("function"!=typeof e)throw new Ne(s);function invokeFunc(t){var r=i,s=o;return i=o=n,p=t,c=e.apply(s,r)}function shouldInvoke(e){var r=e-l;return l===n||r>=t||r<0||f&&e-p>=a}function timerExpired(){var e=Qr();if(shouldInvoke(e))return trailingEdge(e);u=br(timerExpired,function remainingWait(e){var r=t-(e-l);return f?Dt(r,a-(e-p)):r}(e))}function trailingEdge(e){return u=n,y&&i?invokeFunc(e):(i=o=n,c)}function debounced(){var e=Qr(),r=shouldInvoke(e);if(i=arguments,o=this,l=e,r){if(u===n)return function leadingEdge(e){return p=e,u=br(timerExpired,t),d?invokeFunc(e):c}(l);if(f)return pr(u),u=br(timerExpired,t),invokeFunc(l)}return u===n&&(u=br(timerExpired,t)),c}return t=toNumber(t)||0,isObject(r)&&(d=!!r.leading,a=(f="maxWait"in r)?xt(toNumber(r.maxWait)||0,t):a,y="trailing"in r?!!r.trailing:y),debounced.cancel=function cancel(){u!==n&&pr(u),p=0,i=l=o=u=n},debounced.flush=function flush(){return u===n?c:trailingEdge(Qr())},debounced}var Zr=baseRest((function(e,t){return baseDelay(e,1,t)})),Yr=baseRest((function(e,t,r){return baseDelay(e,toNumber(t)||0,r)}));function memoize(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ne(s);var memoized=function(){var r=arguments,i=t?t.apply(this,r):r[0],n=memoized.cache;if(n.has(i))return n.get(i);var s=e.apply(this,r);return memoized.cache=n.set(i,s)||n,s};return memoized.cache=new(memoize.Cache||MapCache),memoized}function negate(e){if("function"!=typeof e)throw new Ne(s);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}memoize.Cache=MapCache;var Xr=lr((function(e,t){var r=(t=1==t.length&&oi(t[0])?arrayMap(t[0],baseUnary(getIteratee())):arrayMap(baseFlatten(t,1),baseUnary(getIteratee()))).length;return baseRest((function(i){for(var n=-1,s=Dt(i.length,r);++n<s;)i[n]=t[n].call(this,i[n]);return apply(e,this,i)}))})),ei=baseRest((function(e,t){var r=replaceHolders(t,getHolder(ei));return createWrap(e,u,n,t,r)})),ti=baseRest((function(e,t){var r=replaceHolders(t,getHolder(ti));return createWrap(e,l,n,t,r)})),ri=flatRest((function(e,t){return createWrap(e,d,n,n,n,t)}));function eq(e,t){return e===t||e!=e&&t!=t}var ii=createRelationalOperation(baseGt),ni=createRelationalOperation((function(e,t){return e>=t})),si=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike(e)&&Me.call(e,"callee")&&!Ke.call(e,"callee")},oi=r.isArray,ai=Ct?baseUnary(Ct):function baseIsArrayBuffer(e){return isObjectLike(e)&&baseGetTag(e)==E};function isArrayLike(e){return null!=e&&isLength(e.length)&&!isFunction(e)}function isArrayLikeObject(e){return isObjectLike(e)&&isArrayLike(e)}var ci=bt||stubFalse,ui=It?baseUnary(It):function baseIsDate(e){return isObjectLike(e)&&baseGetTag(e)==O};function isError(e){if(!isObjectLike(e))return!1;var t=baseGetTag(e);return t==S||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!isPlainObject(e)}function isFunction(e){if(!isObject(e))return!1;var t=baseGetTag(e);return t==I||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function isInteger(e){return"number"==typeof e&&e==toInteger(e)}function isLength(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=y}function isObject(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function isObjectLike(e){return null!=e&&"object"==typeof e}var li=_t?baseUnary(_t):function baseIsMap(e){return isObjectLike(e)&&gr(e)==P};function isNumber(e){return"number"==typeof e||isObjectLike(e)&&baseGetTag(e)==j}function isPlainObject(e){if(!isObjectLike(e)||baseGetTag(e)!=A)return!1;var t=Qe(e);if(null===t)return!0;var r=Me.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Ee.call(r)==Je}var pi=wt?baseUnary(wt):function baseIsRegExp(e){return isObjectLike(e)&&baseGetTag(e)==N};var di=Pt?baseUnary(Pt):function baseIsSet(e){return isObjectLike(e)&&gr(e)==T};function isString(e){return"string"==typeof e||!oi(e)&&isObjectLike(e)&&baseGetTag(e)==q}function isSymbol(e){return"symbol"==typeof e||isObjectLike(e)&&baseGetTag(e)==x}var fi=jt?baseUnary(jt):function baseIsTypedArray(e){return isObjectLike(e)&&isLength(e.length)&&!!lt[baseGetTag(e)]};var yi=createRelationalOperation(baseLt),hi=createRelationalOperation((function(e,t){return e<=t}));function toArray(e){if(!e)return[];if(isArrayLike(e))return isString(e)?stringToArray(e):copyArray(e);if(Xe&&e[Xe])return function iteratorToArray(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Xe]());var t=gr(e);return(t==P?mapToArray:t==T?setToArray:values)(e)}function toFinite(e){return e?(e=toNumber(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function toInteger(e){var t=toFinite(e),r=t%1;return t==t?r?t-r:t:0}function toLength(e){return e?baseClamp(toInteger(e),0,g):0}function toNumber(e){if("number"==typeof e)return e;if(isSymbol(e))return h;if(isObject(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=isObject(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=baseTrim(e);var r=be.test(e);return r||Oe.test(e)?yt(e.slice(2),r?2:8):ve.test(e)?h:+e}function toPlainObject(e){return copyObject(e,keysIn(e))}function toString(e){return null==e?"":baseToString(e)}var gi=createAssigner((function(e,t){if(isPrototype(t)||isArrayLike(t))copyObject(t,keys(t),e);else for(var r in t)Me.call(t,r)&&assignValue(e,r,t[r])})),mi=createAssigner((function(e,t){copyObject(t,keysIn(t),e)})),vi=createAssigner((function(e,t,r,i){copyObject(t,keysIn(t),e,i)})),bi=createAssigner((function(e,t,r,i){copyObject(t,keys(t),e,i)})),Ri=flatRest(baseAt);var Oi=baseRest((function(e,t){e=je(e);var r=-1,i=t.length,s=i>2?t[2]:n;for(s&&isIterateeCall(t[0],t[1],s)&&(i=1);++r<i;)for(var o=t[r],a=keysIn(o),c=-1,u=a.length;++c<u;){var l=a[c],p=e[l];(p===n||eq(p,xe[l])&&!Me.call(e,l))&&(e[l]=o[l])}return e})),Si=baseRest((function(e){return e.push(n,customDefaultsMerge),apply(Pi,n,e)}));function get(e,t,r){var i=null==e?n:baseGet(e,t);return i===n?r:i}function hasIn(e,t){return null!=e&&hasPath(e,t,baseHasIn)}var Ci=createInverter((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),e[t]=r}),constant(identity)),Ii=createInverter((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),Me.call(e,t)?e[t].push(r):e[t]=[r]}),getIteratee),_i=baseRest(baseInvoke);function keys(e){return isArrayLike(e)?arrayLikeKeys(e):baseKeys(e)}function keysIn(e){return isArrayLike(e)?arrayLikeKeys(e,!0):baseKeysIn(e)}var wi=createAssigner((function(e,t,r){baseMerge(e,t,r)})),Pi=createAssigner((function(e,t,r,i){baseMerge(e,t,r,i)})),ji=flatRest((function(e,t){var r={};if(null==e)return r;var i=!1;t=arrayMap(t,(function(t){return t=castPath(t,e),i||(i=t.length>1),t})),copyObject(e,getAllKeysIn(e),r),i&&(r=baseClone(r,7,customOmitClone));for(var n=t.length;n--;)baseUnset(r,t[n]);return r}));var Ai=flatRest((function(e,t){return null==e?{}:function basePick(e,t){return basePickBy(e,t,(function(t,r){return hasIn(e,r)}))}(e,t)}));function pickBy(e,t){if(null==e)return{};var r=arrayMap(getAllKeysIn(e),(function(e){return[e]}));return t=getIteratee(t),basePickBy(e,r,(function(e,r){return t(e,r[0])}))}var $i=createToPairs(keys),Ni=createToPairs(keysIn);function values(e){return null==e?[]:baseValues(e,keys(e))}var Ti=createCompounder((function(e,t,r){return t=t.toLowerCase(),e+(r?capitalize(t):t)}));function capitalize(e){return Ui(toString(e).toLowerCase())}function deburr(e){return(e=toString(e))&&e.replace(Ce,$t).replace(it,"")}var qi=createCompounder((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),xi=createCompounder((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Di=createCaseFirst("toLowerCase");var Ei=createCompounder((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));var Mi=createCompounder((function(e,t,r){return e+(r?" ":"")+Ui(t)}));var ki=createCompounder((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Ui=createCaseFirst("toUpperCase");function words(e,t,r){return e=toString(e),(t=r?n:t)===n?function hasUnicodeWord(e){return at.test(e)}(e)?function unicodeWords(e){return e.match(st)||[]}(e):function asciiWords(e){return e.match(fe)||[]}(e):e.match(t)||[]}var Fi=baseRest((function(e,t){try{return apply(e,n,t)}catch(e){return isError(e)?e:new ue(e)}})),Ji=flatRest((function(e,t){return arrayEach(t,(function(t){t=toKey(t),baseAssignValue(e,t,Wr(e[t],e))})),e}));function constant(e){return function(){return e}}var Li=createFlow(),Vi=createFlow(!0);function identity(e){return e}function iteratee(e){return baseIteratee("function"==typeof e?e:baseClone(e,1))}var Bi=baseRest((function(e,t){return function(r){return baseInvoke(r,e,t)}})),zi=baseRest((function(e,t){return function(r){return baseInvoke(e,r,t)}}));function mixin(e,t,r){var i=keys(t),n=baseFunctions(t,i);null!=r||isObject(t)&&(n.length||!i.length)||(r=t,t=e,e=this,n=baseFunctions(t,keys(t)));var s=!(isObject(r)&&"chain"in r&&!r.chain),o=isFunction(e);return arrayEach(n,(function(r){var i=t[r];e[r]=i,o&&(e.prototype[r]=function(){var t=this.__chain__;if(s||t){var r=e(this.__wrapped__);return(r.__actions__=copyArray(this.__actions__)).push({func:i,args:arguments,thisArg:e}),r.__chain__=t,r}return i.apply(e,arrayPush([this.value()],arguments))})})),e}function noop(){}var Gi=createOver(arrayMap),Hi=createOver(arrayEvery),Qi=createOver(arraySome);function property(e){return isKey(e)?baseProperty(toKey(e)):function basePropertyDeep(e){return function(t){return baseGet(t,e)}}(e)}var Wi=createRange(),Ki=createRange(!0);function stubArray(){return[]}function stubFalse(){return!1}var Zi=createMathOperation((function(e,t){return e+t}),0),Yi=createRound("ceil"),Xi=createMathOperation((function(e,t){return e/t}),1),en=createRound("floor");var tn,rn=createMathOperation((function(e,t){return e*t}),1),nn=createRound("round"),sn=createMathOperation((function(e,t){return e-t}),0);return lodash.after=function after(e,t){if("function"!=typeof t)throw new Ne(s);return e=toInteger(e),function(){if(--e<1)return t.apply(this,arguments)}},lodash.ary=ary,lodash.assign=gi,lodash.assignIn=mi,lodash.assignInWith=vi,lodash.assignWith=bi,lodash.at=Ri,lodash.before=before,lodash.bind=Wr,lodash.bindAll=Ji,lodash.bindKey=Kr,lodash.castArray=function castArray(){if(!arguments.length)return[];var e=arguments[0];return oi(e)?e:[e]},lodash.chain=chain,lodash.chunk=function chunk(e,t,i){t=(i?isIterateeCall(e,t,i):t===n)?1:xt(toInteger(t),0);var s=null==e?0:e.length;if(!s||t<1)return[];for(var o=0,a=0,c=r(ht(s/t));o<s;)c[a++]=baseSlice(e,o,o+=t);return c},lodash.compact=function compact(e){for(var t=-1,r=null==e?0:e.length,i=0,n=[];++t<r;){var s=e[t];s&&(n[i++]=s)}return n},lodash.concat=function concat(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),i=arguments[0],n=e;n--;)t[n-1]=arguments[n];return arrayPush(oi(i)?copyArray(i):[i],baseFlatten(t,1))},lodash.cond=function cond(e){var t=null==e?0:e.length,r=getIteratee();return e=t?arrayMap(e,(function(e){if("function"!=typeof e[1])throw new Ne(s);return[r(e[0]),e[1]]})):[],baseRest((function(r){for(var i=-1;++i<t;){var n=e[i];if(apply(n[0],this,r))return apply(n[1],this,r)}}))},lodash.conforms=function conforms(e){return function baseConforms(e){var t=keys(e);return function(r){return baseConformsTo(r,e,t)}}(baseClone(e,1))},lodash.constant=constant,lodash.countBy=Fr,lodash.create=function create(e,t){var r=rr(e);return null==t?r:baseAssign(r,t)},lodash.curry=function curry(e,t,r){var i=createWrap(e,8,n,n,n,n,n,t=r?n:t);return i.placeholder=curry.placeholder,i},lodash.curryRight=function curryRight(e,t,r){var i=createWrap(e,c,n,n,n,n,n,t=r?n:t);return i.placeholder=curryRight.placeholder,i},lodash.debounce=debounce,lodash.defaults=Oi,lodash.defaultsDeep=Si,lodash.defer=Zr,lodash.delay=Yr,lodash.difference=Sr,lodash.differenceBy=Cr,lodash.differenceWith=Ir,lodash.drop=function drop(e,t,r){var i=null==e?0:e.length;return i?baseSlice(e,(t=r||t===n?1:toInteger(t))<0?0:t,i):[]},lodash.dropRight=function dropRight(e,t,r){var i=null==e?0:e.length;return i?baseSlice(e,0,(t=i-(t=r||t===n?1:toInteger(t)))<0?0:t):[]},lodash.dropRightWhile=function dropRightWhile(e,t){return e&&e.length?baseWhile(e,getIteratee(t,3),!0,!0):[]},lodash.dropWhile=function dropWhile(e,t){return e&&e.length?baseWhile(e,getIteratee(t,3),!0):[]},lodash.fill=function fill(e,t,r,i){var s=null==e?0:e.length;return s?(r&&"number"!=typeof r&&isIterateeCall(e,t,r)&&(r=0,i=s),function baseFill(e,t,r,i){var s=e.length;for((r=toInteger(r))<0&&(r=-r>s?0:s+r),(i=i===n||i>s?s:toInteger(i))<0&&(i+=s),i=r>i?0:toLength(i);r<i;)e[r++]=t;return e}(e,t,r,i)):[]},lodash.filter=function filter(e,t){return(oi(e)?arrayFilter:baseFilter)(e,getIteratee(t,3))},lodash.flatMap=function flatMap(e,t){return baseFlatten(map(e,t),1)},lodash.flatMapDeep=function flatMapDeep(e,t){return baseFlatten(map(e,t),f)},lodash.flatMapDepth=function flatMapDepth(e,t,r){return r=r===n?1:toInteger(r),baseFlatten(map(e,t),r)},lodash.flatten=flatten,lodash.flattenDeep=function flattenDeep(e){return(null==e?0:e.length)?baseFlatten(e,f):[]},lodash.flattenDepth=function flattenDepth(e,t){return(null==e?0:e.length)?baseFlatten(e,t=t===n?1:toInteger(t)):[]},lodash.flip=function flip(e){return createWrap(e,512)},lodash.flow=Li,lodash.flowRight=Vi,lodash.fromPairs=function fromPairs(e){for(var t=-1,r=null==e?0:e.length,i={};++t<r;){var n=e[t];i[n[0]]=n[1]}return i},lodash.functions=function functions(e){return null==e?[]:baseFunctions(e,keys(e))},lodash.functionsIn=function functionsIn(e){return null==e?[]:baseFunctions(e,keysIn(e))},lodash.groupBy=Vr,lodash.initial=function initial(e){return(null==e?0:e.length)?baseSlice(e,0,-1):[]},lodash.intersection=_r,lodash.intersectionBy=wr,lodash.intersectionWith=Pr,lodash.invert=Ci,lodash.invertBy=Ii,lodash.invokeMap=Br,lodash.iteratee=iteratee,lodash.keyBy=zr,lodash.keys=keys,lodash.keysIn=keysIn,lodash.map=map,lodash.mapKeys=function mapKeys(e,t){var r={};return t=getIteratee(t,3),baseForOwn(e,(function(e,i,n){baseAssignValue(r,t(e,i,n),e)})),r},lodash.mapValues=function mapValues(e,t){var r={};return t=getIteratee(t,3),baseForOwn(e,(function(e,i,n){baseAssignValue(r,i,t(e,i,n))})),r},lodash.matches=function matches(e){return baseMatches(baseClone(e,1))},lodash.matchesProperty=function matchesProperty(e,t){return baseMatchesProperty(e,baseClone(t,1))},lodash.memoize=memoize,lodash.merge=wi,lodash.mergeWith=Pi,lodash.method=Bi,lodash.methodOf=zi,lodash.mixin=mixin,lodash.negate=negate,lodash.nthArg=function nthArg(e){return e=toInteger(e),baseRest((function(t){return baseNth(t,e)}))},lodash.omit=ji,lodash.omitBy=function omitBy(e,t){return pickBy(e,negate(getIteratee(t)))},lodash.once=function once(e){return before(2,e)},lodash.orderBy=function orderBy(e,t,r,i){return null==e?[]:(oi(t)||(t=null==t?[]:[t]),oi(r=i?n:r)||(r=null==r?[]:[r]),baseOrderBy(e,t,r))},lodash.over=Gi,lodash.overArgs=Xr,lodash.overEvery=Hi,lodash.overSome=Qi,lodash.partial=ei,lodash.partialRight=ti,lodash.partition=Gr,lodash.pick=Ai,lodash.pickBy=pickBy,lodash.property=property,lodash.propertyOf=function propertyOf(e){return function(t){return null==e?n:baseGet(e,t)}},lodash.pull=jr,lodash.pullAll=pullAll,lodash.pullAllBy=function pullAllBy(e,t,r){return e&&e.length&&t&&t.length?basePullAll(e,t,getIteratee(r,2)):e},lodash.pullAllWith=function pullAllWith(e,t,r){return e&&e.length&&t&&t.length?basePullAll(e,t,n,r):e},lodash.pullAt=Ar,lodash.range=Wi,lodash.rangeRight=Ki,lodash.rearg=ri,lodash.reject=function reject(e,t){return(oi(e)?arrayFilter:baseFilter)(e,negate(getIteratee(t,3)))},lodash.remove=function remove(e,t){var r=[];if(!e||!e.length)return r;var i=-1,n=[],s=e.length;for(t=getIteratee(t,3);++i<s;){var o=e[i];t(o,i,e)&&(r.push(o),n.push(i))}return basePullAt(e,n),r},lodash.rest=function rest(e,t){if("function"!=typeof e)throw new Ne(s);return baseRest(e,t=t===n?t:toInteger(t))},lodash.reverse=reverse,lodash.sampleSize=function sampleSize(e,t,r){return t=(r?isIterateeCall(e,t,r):t===n)?1:toInteger(t),(oi(e)?arraySampleSize:baseSampleSize)(e,t)},lodash.set=function set(e,t,r){return null==e?e:baseSet(e,t,r)},lodash.setWith=function setWith(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:baseSet(e,t,r,i)},lodash.shuffle=function shuffle(e){return(oi(e)?arrayShuffle:baseShuffle)(e)},lodash.slice=function slice(e,t,r){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&isIterateeCall(e,t,r)?(t=0,r=i):(t=null==t?0:toInteger(t),r=r===n?i:toInteger(r)),baseSlice(e,t,r)):[]},lodash.sortBy=Hr,lodash.sortedUniq=function sortedUniq(e){return e&&e.length?baseSortedUniq(e):[]},lodash.sortedUniqBy=function sortedUniqBy(e,t){return e&&e.length?baseSortedUniq(e,getIteratee(t,2)):[]},lodash.split=function split(e,t,r){return r&&"number"!=typeof r&&isIterateeCall(e,t,r)&&(t=r=n),(r=r===n?g:r>>>0)?(e=toString(e))&&("string"==typeof t||null!=t&&!pi(t))&&!(t=baseToString(t))&&hasUnicode(e)?castSlice(stringToArray(e),0,r):e.split(t,r):[]},lodash.spread=function spread(e,t){if("function"!=typeof e)throw new Ne(s);return t=null==t?0:xt(toInteger(t),0),baseRest((function(r){var i=r[t],n=castSlice(r,0,t);return i&&arrayPush(n,i),apply(e,this,n)}))},lodash.tail=function tail(e){var t=null==e?0:e.length;return t?baseSlice(e,1,t):[]},lodash.take=function take(e,t,r){return e&&e.length?baseSlice(e,0,(t=r||t===n?1:toInteger(t))<0?0:t):[]},lodash.takeRight=function takeRight(e,t,r){var i=null==e?0:e.length;return i?baseSlice(e,(t=i-(t=r||t===n?1:toInteger(t)))<0?0:t,i):[]},lodash.takeRightWhile=function takeRightWhile(e,t){return e&&e.length?baseWhile(e,getIteratee(t,3),!1,!0):[]},lodash.takeWhile=function takeWhile(e,t){return e&&e.length?baseWhile(e,getIteratee(t,3)):[]},lodash.tap=function tap(e,t){return t(e),e},lodash.throttle=function throttle(e,t,r){var i=!0,n=!0;if("function"!=typeof e)throw new Ne(s);return isObject(r)&&(i="leading"in r?!!r.leading:i,n="trailing"in r?!!r.trailing:n),debounce(e,t,{leading:i,maxWait:t,trailing:n})},lodash.thru=thru,lodash.toArray=toArray,lodash.toPairs=$i,lodash.toPairsIn=Ni,lodash.toPath=function toPath(e){return oi(e)?arrayMap(e,toKey):isSymbol(e)?[e]:copyArray(Or(toString(e)))},lodash.toPlainObject=toPlainObject,lodash.transform=function transform(e,t,r){var i=oi(e),n=i||ci(e)||fi(e);if(t=getIteratee(t,4),null==r){var s=e&&e.constructor;r=n?i?new s:[]:isObject(e)&&isFunction(s)?rr(Qe(e)):{}}return(n?arrayEach:baseForOwn)(e,(function(e,i,n){return t(r,e,i,n)})),r},lodash.unary=function unary(e){return ary(e,1)},lodash.union=$r,lodash.unionBy=Nr,lodash.unionWith=Tr,lodash.uniq=function uniq(e){return e&&e.length?baseUniq(e):[]},lodash.uniqBy=function uniqBy(e,t){return e&&e.length?baseUniq(e,getIteratee(t,2)):[]},lodash.uniqWith=function uniqWith(e,t){return t="function"==typeof t?t:n,e&&e.length?baseUniq(e,n,t):[]},lodash.unset=function unset(e,t){return null==e||baseUnset(e,t)},lodash.unzip=unzip,lodash.unzipWith=unzipWith,lodash.update=function update(e,t,r){return null==e?e:baseUpdate(e,t,castFunction(r))},lodash.updateWith=function updateWith(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:baseUpdate(e,t,castFunction(r),i)},lodash.values=values,lodash.valuesIn=function valuesIn(e){return null==e?[]:baseValues(e,keysIn(e))},lodash.without=qr,lodash.words=words,lodash.wrap=function wrap(e,t){return ei(castFunction(t),e)},lodash.xor=xr,lodash.xorBy=Dr,lodash.xorWith=Er,lodash.zip=Mr,lodash.zipObject=function zipObject(e,t){return baseZipObject(e||[],t||[],assignValue)},lodash.zipObjectDeep=function zipObjectDeep(e,t){return baseZipObject(e||[],t||[],baseSet)},lodash.zipWith=kr,lodash.entries=$i,lodash.entriesIn=Ni,lodash.extend=mi,lodash.extendWith=vi,mixin(lodash,lodash),lodash.add=Zi,lodash.attempt=Fi,lodash.camelCase=Ti,lodash.capitalize=capitalize,lodash.ceil=Yi,lodash.clamp=function clamp(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=toNumber(r))==r?r:0),t!==n&&(t=(t=toNumber(t))==t?t:0),baseClamp(toNumber(e),t,r)},lodash.clone=function clone(e){return baseClone(e,4)},lodash.cloneDeep=function cloneDeep(e){return baseClone(e,5)},lodash.cloneDeepWith=function cloneDeepWith(e,t){return baseClone(e,5,t="function"==typeof t?t:n)},lodash.cloneWith=function cloneWith(e,t){return baseClone(e,4,t="function"==typeof t?t:n)},lodash.conformsTo=function conformsTo(e,t){return null==t||baseConformsTo(e,t,keys(t))},lodash.deburr=deburr,lodash.defaultTo=function defaultTo(e,t){return null==e||e!=e?t:e},lodash.divide=Xi,lodash.endsWith=function endsWith(e,t,r){e=toString(e),t=baseToString(t);var i=e.length,s=r=r===n?i:baseClamp(toInteger(r),0,i);return(r-=t.length)>=0&&e.slice(r,s)==t},lodash.eq=eq,lodash.escape=function escape(e){return(e=toString(e))&&X.test(e)?e.replace(Z,Nt):e},lodash.escapeRegExp=function escapeRegExp(e){return(e=toString(e))&&ae.test(e)?e.replace(oe,"\\$&"):e},lodash.every=function every(e,t,r){var i=oi(e)?arrayEvery:baseEvery;return r&&isIterateeCall(e,t,r)&&(t=n),i(e,getIteratee(t,3))},lodash.find=Jr,lodash.findIndex=findIndex,lodash.findKey=function findKey(e,t){return baseFindKey(e,getIteratee(t,3),baseForOwn)},lodash.findLast=Lr,lodash.findLastIndex=findLastIndex,lodash.findLastKey=function findLastKey(e,t){return baseFindKey(e,getIteratee(t,3),baseForOwnRight)},lodash.floor=en,lodash.forEach=forEach,lodash.forEachRight=forEachRight,lodash.forIn=function forIn(e,t){return null==e?e:sr(e,getIteratee(t,3),keysIn)},lodash.forInRight=function forInRight(e,t){return null==e?e:ar(e,getIteratee(t,3),keysIn)},lodash.forOwn=function forOwn(e,t){return e&&baseForOwn(e,getIteratee(t,3))},lodash.forOwnRight=function forOwnRight(e,t){return e&&baseForOwnRight(e,getIteratee(t,3))},lodash.get=get,lodash.gt=ii,lodash.gte=ni,lodash.has=function has(e,t){return null!=e&&hasPath(e,t,baseHas)},lodash.hasIn=hasIn,lodash.head=head,lodash.identity=identity,lodash.includes=function includes(e,t,r,i){e=isArrayLike(e)?e:values(e),r=r&&!i?toInteger(r):0;var n=e.length;return r<0&&(r=xt(n+r,0)),isString(e)?r<=n&&e.indexOf(t,r)>-1:!!n&&baseIndexOf(e,t,r)>-1},lodash.indexOf=function indexOf(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var n=null==r?0:toInteger(r);return n<0&&(n=xt(i+n,0)),baseIndexOf(e,t,n)},lodash.inRange=function inRange(e,t,r){return t=toFinite(t),r===n?(r=t,t=0):r=toFinite(r),function baseInRange(e,t,r){return e>=Dt(t,r)&&e<xt(t,r)}(e=toNumber(e),t,r)},lodash.invoke=_i,lodash.isArguments=si,lodash.isArray=oi,lodash.isArrayBuffer=ai,lodash.isArrayLike=isArrayLike,lodash.isArrayLikeObject=isArrayLikeObject,lodash.isBoolean=function isBoolean(e){return!0===e||!1===e||isObjectLike(e)&&baseGetTag(e)==R},lodash.isBuffer=ci,lodash.isDate=ui,lodash.isElement=function isElement(e){return isObjectLike(e)&&1===e.nodeType&&!isPlainObject(e)},lodash.isEmpty=function isEmpty(e){if(null==e)return!0;if(isArrayLike(e)&&(oi(e)||"string"==typeof e||"function"==typeof e.splice||ci(e)||fi(e)||si(e)))return!e.length;var t=gr(e);if(t==P||t==T)return!e.size;if(isPrototype(e))return!baseKeys(e).length;for(var r in e)if(Me.call(e,r))return!1;return!0},lodash.isEqual=function isEqual(e,t){return baseIsEqual(e,t)},lodash.isEqualWith=function isEqualWith(e,t,r){var i=(r="function"==typeof r?r:n)?r(e,t):n;return i===n?baseIsEqual(e,t,n,r):!!i},lodash.isError=isError,lodash.isFinite=function isFinite(e){return"number"==typeof e&&Ot(e)},lodash.isFunction=isFunction,lodash.isInteger=isInteger,lodash.isLength=isLength,lodash.isMap=li,lodash.isMatch=function isMatch(e,t){return e===t||baseIsMatch(e,t,getMatchData(t))},lodash.isMatchWith=function isMatchWith(e,t,r){return r="function"==typeof r?r:n,baseIsMatch(e,t,getMatchData(t),r)},lodash.isNaN=function isNaN(e){return isNumber(e)&&e!=+e},lodash.isNative=function isNative(e){if(mr(e))throw new ue("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return baseIsNative(e)},lodash.isNil=function isNil(e){return null==e},lodash.isNull=function isNull(e){return null===e},lodash.isNumber=isNumber,lodash.isObject=isObject,lodash.isObjectLike=isObjectLike,lodash.isPlainObject=isPlainObject,lodash.isRegExp=pi,lodash.isSafeInteger=function isSafeInteger(e){return isInteger(e)&&e>=-9007199254740991&&e<=y},lodash.isSet=di,lodash.isString=isString,lodash.isSymbol=isSymbol,lodash.isTypedArray=fi,lodash.isUndefined=function isUndefined(e){return e===n},lodash.isWeakMap=function isWeakMap(e){return isObjectLike(e)&&gr(e)==D},lodash.isWeakSet=function isWeakSet(e){return isObjectLike(e)&&"[object WeakSet]"==baseGetTag(e)},lodash.join=function join(e,t){return null==e?"":St.call(e,t)},lodash.kebabCase=qi,lodash.last=last,lodash.lastIndexOf=function lastIndexOf(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var s=i;return r!==n&&(s=(s=toInteger(r))<0?xt(i+s,0):Dt(s,i-1)),t==t?function strictLastIndexOf(e,t,r){for(var i=r+1;i--;)if(e[i]===t)return i;return i}(e,t,s):baseFindIndex(e,baseIsNaN,s,!0)},lodash.lowerCase=xi,lodash.lowerFirst=Di,lodash.lt=yi,lodash.lte=hi,lodash.max=function max(e){return e&&e.length?baseExtremum(e,identity,baseGt):n},lodash.maxBy=function maxBy(e,t){return e&&e.length?baseExtremum(e,getIteratee(t,2),baseGt):n},lodash.mean=function mean(e){return baseMean(e,identity)},lodash.meanBy=function meanBy(e,t){return baseMean(e,getIteratee(t,2))},lodash.min=function min(e){return e&&e.length?baseExtremum(e,identity,baseLt):n},lodash.minBy=function minBy(e,t){return e&&e.length?baseExtremum(e,getIteratee(t,2),baseLt):n},lodash.stubArray=stubArray,lodash.stubFalse=stubFalse,lodash.stubObject=function stubObject(){return{}},lodash.stubString=function stubString(){return""},lodash.stubTrue=function stubTrue(){return!0},lodash.multiply=rn,lodash.nth=function nth(e,t){return e&&e.length?baseNth(e,toInteger(t)):n},lodash.noConflict=function noConflict(){return mt._===this&&(mt._=Le),this},lodash.noop=noop,lodash.now=Qr,lodash.pad=function pad(e,t,r){e=toString(e);var i=(t=toInteger(t))?stringSize(e):0;if(!t||i>=t)return e;var n=(t-i)/2;return createPadding(gt(n),r)+e+createPadding(ht(n),r)},lodash.padEnd=function padEnd(e,t,r){e=toString(e);var i=(t=toInteger(t))?stringSize(e):0;return t&&i<t?e+createPadding(t-i,r):e},lodash.padStart=function padStart(e,t,r){e=toString(e);var i=(t=toInteger(t))?stringSize(e):0;return t&&i<t?createPadding(t-i,r)+e:e},lodash.parseInt=function parseInt(e,t,r){return r||null==t?t=0:t&&(t=+t),Mt(toString(e).replace(ce,""),t||0)},lodash.random=function random(e,t,r){if(r&&"boolean"!=typeof r&&isIterateeCall(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=toFinite(e),t===n?(t=e,e=0):t=toFinite(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var s=kt();return Dt(e+s*(t-e+ft("1e-"+((s+"").length-1))),t)}return baseRandom(e,t)},lodash.reduce=function reduce(e,t,r){var i=oi(e)?arrayReduce:baseReduce,n=arguments.length<3;return i(e,getIteratee(t,4),r,n,ir)},lodash.reduceRight=function reduceRight(e,t,r){var i=oi(e)?arrayReduceRight:baseReduce,n=arguments.length<3;return i(e,getIteratee(t,4),r,n,nr)},lodash.repeat=function repeat(e,t,r){return t=(r?isIterateeCall(e,t,r):t===n)?1:toInteger(t),baseRepeat(toString(e),t)},lodash.replace=function replace(){var e=arguments,t=toString(e[0]);return e.length<3?t:t.replace(e[1],e[2])},lodash.result=function result(e,t,r){var i=-1,s=(t=castPath(t,e)).length;for(s||(s=1,e=n);++i<s;){var o=null==e?n:e[toKey(t[i])];o===n&&(i=s,o=r),e=isFunction(o)?o.call(e):o}return e},lodash.round=nn,lodash.runInContext=runInContext,lodash.sample=function sample(e){return(oi(e)?arraySample:baseSample)(e)},lodash.size=function size(e){if(null==e)return 0;if(isArrayLike(e))return isString(e)?stringSize(e):e.length;var t=gr(e);return t==P||t==T?e.size:baseKeys(e).length},lodash.snakeCase=Ei,lodash.some=function some(e,t,r){var i=oi(e)?arraySome:baseSome;return r&&isIterateeCall(e,t,r)&&(t=n),i(e,getIteratee(t,3))},lodash.sortedIndex=function sortedIndex(e,t){return baseSortedIndex(e,t)},lodash.sortedIndexBy=function sortedIndexBy(e,t,r){return baseSortedIndexBy(e,t,getIteratee(r,2))},lodash.sortedIndexOf=function sortedIndexOf(e,t){var r=null==e?0:e.length;if(r){var i=baseSortedIndex(e,t);if(i<r&&eq(e[i],t))return i}return-1},lodash.sortedLastIndex=function sortedLastIndex(e,t){return baseSortedIndex(e,t,!0)},lodash.sortedLastIndexBy=function sortedLastIndexBy(e,t,r){return baseSortedIndexBy(e,t,getIteratee(r,2),!0)},lodash.sortedLastIndexOf=function sortedLastIndexOf(e,t){if(null==e?0:e.length){var r=baseSortedIndex(e,t,!0)-1;if(eq(e[r],t))return r}return-1},lodash.startCase=Mi,lodash.startsWith=function startsWith(e,t,r){return e=toString(e),r=null==r?0:baseClamp(toInteger(r),0,e.length),t=baseToString(t),e.slice(r,r+t.length)==t},lodash.subtract=sn,lodash.sum=function sum(e){return e&&e.length?baseSum(e,identity):0},lodash.sumBy=function sumBy(e,t){return e&&e.length?baseSum(e,getIteratee(t,2)):0},lodash.template=function template(e,t,r){var i=lodash.templateSettings;r&&isIterateeCall(e,t,r)&&(t=n),e=toString(e),t=vi({},t,i,customDefaultsAssignIn);var s,o,a=vi({},t.imports,i.imports,customDefaultsAssignIn),c=keys(a),u=baseValues(a,c),l=0,p=t.interpolate||Ie,d="__p += '",f=Ae((t.escape||Ie).source+"|"+p.source+"|"+(p===re?ge:Ie).source+"|"+(t.evaluate||Ie).source+"|$","g"),y="//# sourceURL="+(Me.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ut+"]")+"\n";e.replace(f,(function(t,r,i,n,a,c){return i||(i=n),d+=e.slice(l,c).replace(_e,escapeStringChar),r&&(s=!0,d+="' +\n__e("+r+") +\n'"),a&&(o=!0,d+="';\n"+a+";\n__p += '"),i&&(d+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),l=c+t.length,t})),d+="';\n";var h=Me.call(t,"variable")&&t.variable;if(h){if(ye.test(h))throw new ue("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(o?d.replace(H,""):d).replace(Q,"$1").replace(W,"$1;"),d="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(s?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=Fi((function(){return we(c,y+"return "+d).apply(n,u)}));if(g.source=d,isError(g))throw g;return g},lodash.times=function times(e,t){if((e=toInteger(e))<1||e>y)return[];var r=g,i=Dt(e,g);t=getIteratee(t),e-=g;for(var n=baseTimes(i,t);++r<e;)t(r);return n},lodash.toFinite=toFinite,lodash.toInteger=toInteger,lodash.toLength=toLength,lodash.toLower=function toLower(e){return toString(e).toLowerCase()},lodash.toNumber=toNumber,lodash.toSafeInteger=function toSafeInteger(e){return e?baseClamp(toInteger(e),-9007199254740991,y):0===e?e:0},lodash.toString=toString,lodash.toUpper=function toUpper(e){return toString(e).toUpperCase()},lodash.trim=function trim(e,t,r){if((e=toString(e))&&(r||t===n))return baseTrim(e);if(!e||!(t=baseToString(t)))return e;var i=stringToArray(e),s=stringToArray(t);return castSlice(i,charsStartIndex(i,s),charsEndIndex(i,s)+1).join("")},lodash.trimEnd=function trimEnd(e,t,r){if((e=toString(e))&&(r||t===n))return e.slice(0,trimmedEndIndex(e)+1);if(!e||!(t=baseToString(t)))return e;var i=stringToArray(e);return castSlice(i,0,charsEndIndex(i,stringToArray(t))+1).join("")},lodash.trimStart=function trimStart(e,t,r){if((e=toString(e))&&(r||t===n))return e.replace(ce,"");if(!e||!(t=baseToString(t)))return e;var i=stringToArray(e);return castSlice(i,charsStartIndex(i,stringToArray(t))).join("")},lodash.truncate=function truncate(e,t){var r=30,i="...";if(isObject(t)){var s="separator"in t?t.separator:s;r="length"in t?toInteger(t.length):r,i="omission"in t?baseToString(t.omission):i}var o=(e=toString(e)).length;if(hasUnicode(e)){var a=stringToArray(e);o=a.length}if(r>=o)return e;var c=r-stringSize(i);if(c<1)return i;var u=a?castSlice(a,0,c).join(""):e.slice(0,c);if(s===n)return u+i;if(a&&(c+=u.length-c),pi(s)){if(e.slice(c).search(s)){var l,p=u;for(s.global||(s=Ae(s.source,toString(me.exec(s))+"g")),s.lastIndex=0;l=s.exec(p);)var d=l.index;u=u.slice(0,d===n?c:d)}}else if(e.indexOf(baseToString(s),c)!=c){var f=u.lastIndexOf(s);f>-1&&(u=u.slice(0,f))}return u+i},lodash.unescape=function unescape(e){return(e=toString(e))&&Y.test(e)?e.replace(K,Tt):e},lodash.uniqueId=function uniqueId(e){var t=++ke;return toString(e)+t},lodash.upperCase=ki,lodash.upperFirst=Ui,lodash.each=forEach,lodash.eachRight=forEachRight,lodash.first=head,mixin(lodash,(tn={},baseForOwn(lodash,(function(e,t){Me.call(lodash.prototype,t)||(tn[t]=e)})),tn),{chain:!1}),lodash.VERSION="4.17.21",arrayEach(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){lodash[e].placeholder=lodash})),arrayEach(["drop","take"],(function(e,t){LazyWrapper.prototype[e]=function(r){r=r===n?1:xt(toInteger(r),0);var i=this.__filtered__&&!t?new LazyWrapper(this):this.clone();return i.__filtered__?i.__takeCount__=Dt(r,i.__takeCount__):i.__views__.push({size:Dt(r,g),type:e+(i.__dir__<0?"Right":"")}),i},LazyWrapper.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),arrayEach(["filter","map","takeWhile"],(function(e,t){var r=t+1,i=1==r||3==r;LazyWrapper.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:getIteratee(e,3),type:r}),t.__filtered__=t.__filtered__||i,t}})),arrayEach(["head","last"],(function(e,t){var r="take"+(t?"Right":"");LazyWrapper.prototype[e]=function(){return this[r](1).value()[0]}})),arrayEach(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");LazyWrapper.prototype[e]=function(){return this.__filtered__?new LazyWrapper(this):this[r](1)}})),LazyWrapper.prototype.compact=function(){return this.filter(identity)},LazyWrapper.prototype.find=function(e){return this.filter(e).head()},LazyWrapper.prototype.findLast=function(e){return this.reverse().find(e)},LazyWrapper.prototype.invokeMap=baseRest((function(e,t){return"function"==typeof e?new LazyWrapper(this):this.map((function(r){return baseInvoke(r,e,t)}))})),LazyWrapper.prototype.reject=function(e){return this.filter(negate(getIteratee(e)))},LazyWrapper.prototype.slice=function(e,t){e=toInteger(e);var r=this;return r.__filtered__&&(e>0||t<0)?new LazyWrapper(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=toInteger(t))<0?r.dropRight(-t):r.take(t-e)),r)},LazyWrapper.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},LazyWrapper.prototype.toArray=function(){return this.take(g)},baseForOwn(LazyWrapper.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),s=lodash[i?"take"+("last"==t?"Right":""):t],o=i||/^find/.test(t);s&&(lodash.prototype[t]=function(){var t=this.__wrapped__,a=i?[1]:arguments,c=t instanceof LazyWrapper,u=a[0],l=c||oi(t),interceptor=function(e){var t=s.apply(lodash,arrayPush([e],a));return i&&p?t[0]:t};l&&r&&"function"==typeof u&&1!=u.length&&(c=l=!1);var p=this.__chain__,d=!!this.__actions__.length,f=o&&!p,y=c&&!d;if(!o&&l){t=y?t:new LazyWrapper(this);var h=e.apply(t,a);return h.__actions__.push({func:thru,args:[interceptor],thisArg:n}),new LodashWrapper(h,p)}return f&&y?e.apply(this,a):(h=this.thru(interceptor),f?i?h.value()[0]:h.value():h)})})),arrayEach(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Te[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);lodash.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var n=this.value();return t.apply(oi(n)?n:[],e)}return this[r]((function(r){return t.apply(oi(r)?r:[],e)}))}})),baseForOwn(LazyWrapper.prototype,(function(e,t){var r=lodash[t];if(r){var i=r.name+"";Me.call(Ht,i)||(Ht[i]=[]),Ht[i].push({name:t,func:r})}})),Ht[createHybrid(n,2).name]=[{name:"wrapper",func:n}],LazyWrapper.prototype.clone=function lazyClone(){var e=new LazyWrapper(this.__wrapped__);return e.__actions__=copyArray(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=copyArray(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=copyArray(this.__views__),e},LazyWrapper.prototype.reverse=function lazyReverse(){if(this.__filtered__){var e=new LazyWrapper(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},LazyWrapper.prototype.value=function lazyValue(){var e=this.__wrapped__.value(),t=this.__dir__,r=oi(e),i=t<0,n=r?e.length:0,s=function getView(e,t,r){var i=-1,n=r.length;for(;++i<n;){var s=r[i],o=s.size;switch(s.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=Dt(t,e+o);break;case"takeRight":e=xt(e,t-o)}}return{start:e,end:t}}(0,n,this.__views__),o=s.start,a=s.end,c=a-o,u=i?a:o-1,l=this.__iteratees__,p=l.length,d=0,f=Dt(c,this.__takeCount__);if(!r||!i&&n==c&&f==c)return baseWrapperValue(e,this.__actions__);var y=[];e:for(;c--&&d<f;){for(var h=-1,g=e[u+=t];++h<p;){var m=l[h],v=m.iteratee,b=m.type,R=v(g);if(2==b)g=R;else if(!R){if(1==b)continue e;break e}}y[d++]=g}return y},lodash.prototype.at=Ur,lodash.prototype.chain=function wrapperChain(){return chain(this)},lodash.prototype.commit=function wrapperCommit(){return new LodashWrapper(this.value(),this.__chain__)},lodash.prototype.next=function wrapperNext(){this.__values__===n&&(this.__values__=toArray(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},lodash.prototype.plant=function wrapperPlant(e){for(var t,r=this;r instanceof baseLodash;){var i=wrapperClone(r);i.__index__=0,i.__values__=n,t?s.__wrapped__=i:t=i;var s=i;r=r.__wrapped__}return s.__wrapped__=e,t},lodash.prototype.reverse=function wrapperReverse(){var e=this.__wrapped__;if(e instanceof LazyWrapper){var t=e;return this.__actions__.length&&(t=new LazyWrapper(this)),(t=t.reverse()).__actions__.push({func:thru,args:[reverse],thisArg:n}),new LodashWrapper(t,this.__chain__)}return this.thru(reverse)},lodash.prototype.toJSON=lodash.prototype.valueOf=lodash.prototype.value=function wrapperValue(){return baseWrapperValue(this.__wrapped__,this.__actions__)},lodash.prototype.first=lodash.prototype.head,Xe&&(lodash.prototype[Xe]=function wrapperToIterator(){return this}),lodash}();mt._=qt,(i=function(){return qt}.call(t,r,t,e))===n||(e.exports=i)}.call(this)},3290:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class LuxonError extends Error{}class InvalidDateTimeError extends LuxonError{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class InvalidIntervalError extends LuxonError{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class InvalidDurationError extends LuxonError{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ConflictingSpecificationError extends LuxonError{}class InvalidUnitError extends LuxonError{constructor(e){super(`Invalid unit ${e}`)}}class InvalidArgumentError extends LuxonError{}class ZoneIsAbstractError extends LuxonError{constructor(){super("Zone is an abstract class")}}const r="numeric",i="short",n="long",s={year:r,month:r,day:r},o={year:r,month:i,day:r},a={year:r,month:i,day:r,weekday:i},c={year:r,month:n,day:r},u={year:r,month:n,day:r,weekday:n},l={hour:r,minute:r},p={hour:r,minute:r,second:r},d={hour:r,minute:r,second:r,timeZoneName:i},f={hour:r,minute:r,second:r,timeZoneName:n},y={hour:r,minute:r,hourCycle:"h23"},h={hour:r,minute:r,second:r,hourCycle:"h23"},g={hour:r,minute:r,second:r,hourCycle:"h23",timeZoneName:i},m={hour:r,minute:r,second:r,hourCycle:"h23",timeZoneName:n},v={year:r,month:r,day:r,hour:r,minute:r},b={year:r,month:r,day:r,hour:r,minute:r,second:r},R={year:r,month:i,day:r,hour:r,minute:r},O={year:r,month:i,day:r,hour:r,minute:r,second:r},S={year:r,month:i,day:r,weekday:i,hour:r,minute:r},I={year:r,month:n,day:r,hour:r,minute:r,timeZoneName:i},w={year:r,month:n,day:r,hour:r,minute:r,second:r,timeZoneName:i},P={year:r,month:n,day:r,weekday:n,hour:r,minute:r,timeZoneName:n},j={year:r,month:n,day:r,weekday:n,hour:r,minute:r,second:r,timeZoneName:n};class Zone{get type(){throw new ZoneIsAbstractError}get name(){throw new ZoneIsAbstractError}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError}offsetName(e,t){throw new ZoneIsAbstractError}formatOffset(e,t){throw new ZoneIsAbstractError}offset(e){throw new ZoneIsAbstractError}equals(e){throw new ZoneIsAbstractError}get isValid(){throw new ZoneIsAbstractError}}let A=null;class SystemZone extends Zone{static get instance(){return null===A&&(A=new SystemZone),A}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:r}){return parseZoneInfo(e,t,r)}formatOffset(e,t){return formatOffset(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}let $={};const N={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let T={};class IANAZone extends Zone{static create(e){return T[e]||(T[e]=new IANAZone(e)),T[e]}static resetCache(){T={},$={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=IANAZone.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:r}){return parseZoneInfo(e,t,r,this.name)}formatOffset(e,t){return formatOffset(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const r=function makeDTF(e){return $[e]||($[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),$[e]}(this.name);let[i,n,s,o,a,c,u]=r.formatToParts?function partsOffset(e,t){const r=e.formatToParts(t),i=[];for(let e=0;e<r.length;e++){const{type:t,value:n}=r[e],s=N[t];"era"===t?i[s]=n:isUndefined(s)||(i[s]=parseInt(n,10))}return i}(r,t):function hackyOffset(e,t){const r=e.format(t).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,n,s,o,a,c,u,l]=i;return[o,n,s,a,c,u,l]}(r,t);"BC"===o&&(i=1-Math.abs(i));let l=+t;const p=l%1e3;return l-=p>=0?p:1e3+p,(objToLocalTS({year:i,month:n,day:s,hour:24===a?0:a,minute:c,second:u,millisecond:0})-l)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let q={};let x={};function getCachedDTF(e,t={}){const r=JSON.stringify([e,t]);let i=x[r];return i||(i=new Intl.DateTimeFormat(e,t),x[r]=i),i}let D={};let E={};let M=null;let k={};function listStuff(e,t,r,i){const n=e.listingMode();return"error"===n?null:"en"===n?r(t):i(t)}class PolyNumberFormatter{constructor(e,t,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:i,floor:n,...s}=r;if(!t||Object.keys(s).length>0){const t={useGrouping:!1,...r};r.padTo>0&&(t.minimumIntegerDigits=r.padTo),this.inf=function getCachedINF(e,t={}){const r=JSON.stringify([e,t]);let i=D[r];return i||(i=new Intl.NumberFormat(e,t),D[r]=i),i}(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}return padStart(this.floor?Math.floor(e):roundTo(e,3),this.padTo)}}class PolyDateFormatter{constructor(e,t,r){let i;if(this.opts=r,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){const t=e.offset/60*-1,r=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&IANAZone.create(r).valid?(i=r,this.dt=e):(i="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,i=e.zone.name):(i="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const n={...this.opts};n.timeZone=n.timeZone||i,this.dtf=getCachedDTF(t,n)}format(){return this.originalZone?this.formatToParts().map((({value:e})=>e)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map((e=>{if("timeZoneName"===e.type){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}return e})):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class PolyRelFormatter{constructor(e,t,r){this.opts={style:"long",...r},!t&&hasRelative()&&(this.rtf=function getCachedRTF(e,t={}){const{base:r,...i}=t,n=JSON.stringify([e,i]);let s=E[n];return s||(s=new Intl.RelativeTimeFormat(e,t),E[n]=s),s}(e,r))}format(e,t){return this.rtf?this.rtf.format(e,t):function formatRelativeTime(e,t,r="always",i=!1){const n={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},s=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===r&&s){const r="days"===e;switch(t){case 1:return r?"tomorrow":`next ${n[e][0]}`;case-1:return r?"yesterday":`last ${n[e][0]}`;case 0:return r?"today":`this ${n[e][0]}`}}const o=Object.is(t,-0)||t<0,a=Math.abs(t),c=1===a,u=n[e],l=i?c?u[1]:u[2]||u[1]:c?n[e][0]:e;return o?`${a} ${l} ago`:`in ${a} ${l}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}const U={firstDay:1,minimalDays:4,weekend:[6,7]};class Locale{static fromOpts(e){return Locale.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,r,i,n=!1){const s=e||Settings.defaultLocale,o=s||(n?"en-US":function systemLocale(){return M||(M=(new Intl.DateTimeFormat).resolvedOptions().locale,M)}()),a=t||Settings.defaultNumberingSystem,c=r||Settings.defaultOutputCalendar,u=validateWeekSettings(i)||Settings.defaultWeekSettings;return new Locale(o,a,c,u,s)}static resetCache(){M=null,x={},D={},E={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:r,weekSettings:i}={}){return Locale.create(e,t,r,i)}constructor(e,t,r,i,n){const[s,o,a]=function parseLocaleString(e){const t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));const r=e.indexOf("-u-");if(-1===r)return[e];{let t,i;try{t=getCachedDTF(e).resolvedOptions(),i=e}catch(n){const s=e.substring(0,r);t=getCachedDTF(s).resolvedOptions(),i=s}const{numberingSystem:n,calendar:s}=t;return[i,n,s]}}(e);this.locale=s,this.numberingSystem=t||o||null,this.outputCalendar=r||a||null,this.weekSettings=i,this.intl=function intlConfigString(e,t,r){return r||t?(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=n,this.fastNumbersCached=null}get fastNumbers(){return null==this.fastNumbersCached&&(this.fastNumbersCached=function supportsFastNumbers(e){return(!e.numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)}(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?Locale.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,validateWeekSettings(e.weekSettings)||this.weekSettings,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return listStuff(this,e,months,(()=>{const r=t?{month:e,day:"numeric"}:{month:e},i=t?"format":"standalone";return this.monthsCache[i][e]||(this.monthsCache[i][e]=function mapMonths(e){const t=[];for(let r=1;r<=12;r++){const i=DateTime.utc(2009,r,1);t.push(e(i))}return t}((e=>this.extract(e,r,"month")))),this.monthsCache[i][e]}))}weekdays(e,t=!1){return listStuff(this,e,weekdays,(()=>{const r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=t?"format":"standalone";return this.weekdaysCache[i][e]||(this.weekdaysCache[i][e]=function mapWeekdays(e){const t=[];for(let r=1;r<=7;r++){const i=DateTime.utc(2016,11,13+r);t.push(e(i))}return t}((e=>this.extract(e,r,"weekday")))),this.weekdaysCache[i][e]}))}meridiems(){return listStuff(this,void 0,(()=>re),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e){return listStuff(this,e,eras,(()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))),this.eraCache[e]}))}extract(e,t,r){const i=this.dtFormatter(e,t).formatToParts().find((e=>e.type.toLowerCase()===r));return i?i.value:null}numberFormatter(e={}){return new PolyNumberFormatter(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new PolyDateFormatter(e,this.intl,t)}relFormatter(e={}){return new PolyRelFormatter(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function getCachedLF(e,t={}){const r=JSON.stringify([e,t]);let i=q[r];return i||(i=new Intl.ListFormat(e,t),q[r]=i),i}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:hasLocaleWeekInfo()?function getCachedWeekInfo(e){let t=k[e];if(!t){const r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,k[e]=t}return t}(this.locale):U}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let F=null;class FixedOffsetZone extends Zone{static get utcInstance(){return null===F&&(F=new FixedOffsetZone(0)),F}static instance(e){return 0===e?FixedOffsetZone.utcInstance:new FixedOffsetZone(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new FixedOffsetZone(signedOffset(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${formatOffset(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${formatOffset(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return formatOffset(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class InvalidZone extends Zone{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function normalizeZone(e,t){if(isUndefined(e)||null===e)return t;if(e instanceof Zone)return e;if(function isString(e){return"string"==typeof e}(e)){const r=e.toLowerCase();return"default"===r?t:"local"===r||"system"===r?SystemZone.instance:"utc"===r||"gmt"===r?FixedOffsetZone.utcInstance:FixedOffsetZone.parseSpecifier(r)||IANAZone.create(e)}return isNumber(e)?FixedOffsetZone.instance(e):"object"==typeof e&&"offset"in e&&"function"==typeof e.offset?e:new InvalidZone(e)}let J,now=()=>Date.now(),L="system",V=null,B=null,z=null,G=60,H=null;class Settings{static get now(){return now}static set now(e){now=e}static set defaultZone(e){L=e}static get defaultZone(){return normalizeZone(L,SystemZone.instance)}static get defaultLocale(){return V}static set defaultLocale(e){V=e}static get defaultNumberingSystem(){return B}static set defaultNumberingSystem(e){B=e}static get defaultOutputCalendar(){return z}static set defaultOutputCalendar(e){z=e}static get defaultWeekSettings(){return H}static set defaultWeekSettings(e){H=validateWeekSettings(e)}static get twoDigitCutoffYear(){return G}static set twoDigitCutoffYear(e){G=e%100}static get throwOnInvalid(){return J}static set throwOnInvalid(e){J=e}static resetCaches(){Locale.resetCache(),IANAZone.resetCache()}}class Invalid{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Q=[0,31,59,90,120,151,181,212,243,273,304,334],W=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(e,t){return new Invalid("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function dayOfWeek(e,t,r){const i=new Date(Date.UTC(e,t-1,r));e<100&&e>=0&&i.setUTCFullYear(i.getUTCFullYear()-1900);const n=i.getUTCDay();return 0===n?7:n}function computeOrdinal(e,t,r){return r+(isLeapYear(e)?W:Q)[t-1]}function uncomputeOrdinal(e,t){const r=isLeapYear(e)?W:Q,i=r.findIndex((e=>e<t));return{month:i+1,day:t-r[i]}}function isoWeekdayToLocal(e,t){return(e-t+7)%7+1}function gregorianToWeek(e,t=4,r=1){const{year:i,month:n,day:s}=e,o=computeOrdinal(i,n,s),a=isoWeekdayToLocal(dayOfWeek(i,n,s),r);let c,u=Math.floor((o-a+14-t)/7);return u<1?(c=i-1,u=weeksInWeekYear(c,t,r)):u>weeksInWeekYear(i,t,r)?(c=i+1,u=1):c=i,{weekYear:c,weekNumber:u,weekday:a,...timeObject(e)}}function weekToGregorian(e,t=4,r=1){const{weekYear:i,weekNumber:n,weekday:s}=e,o=isoWeekdayToLocal(dayOfWeek(i,1,t),r),a=daysInYear(i);let c,u=7*n+s-o-7+t;u<1?(c=i-1,u+=daysInYear(c)):u>a?(c=i+1,u-=daysInYear(i)):c=i;const{month:l,day:p}=uncomputeOrdinal(c,u);return{year:c,month:l,day:p,...timeObject(e)}}function gregorianToOrdinal(e){const{year:t,month:r,day:i}=e;return{year:t,ordinal:computeOrdinal(t,r,i),...timeObject(e)}}function ordinalToGregorian(e){const{year:t,ordinal:r}=e,{month:i,day:n}=uncomputeOrdinal(t,r);return{year:t,month:i,day:n,...timeObject(e)}}function usesLocalWeekValues(e,t){if(!isUndefined(e.localWeekday)||!isUndefined(e.localWeekNumber)||!isUndefined(e.localWeekYear)){if(!isUndefined(e.weekday)||!isUndefined(e.weekNumber)||!isUndefined(e.weekYear))throw new ConflictingSpecificationError("Cannot mix locale-based week fields with ISO-based week fields");return isUndefined(e.localWeekday)||(e.weekday=e.localWeekday),isUndefined(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),isUndefined(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function hasInvalidGregorianData(e){const t=isInteger(e.year),r=integerBetween(e.month,1,12),i=integerBetween(e.day,1,daysInMonth(e.year,e.month));return t?r?!i&&unitOutOfRange("day",e.day):unitOutOfRange("month",e.month):unitOutOfRange("year",e.year)}function hasInvalidTimeData(e){const{hour:t,minute:r,second:i,millisecond:n}=e,s=integerBetween(t,0,23)||24===t&&0===r&&0===i&&0===n,o=integerBetween(r,0,59),a=integerBetween(i,0,59),c=integerBetween(n,0,999);return s?o?a?!c&&unitOutOfRange("millisecond",n):unitOutOfRange("second",i):unitOutOfRange("minute",r):unitOutOfRange("hour",t)}function isUndefined(e){return void 0===e}function isNumber(e){return"number"==typeof e}function isInteger(e){return"number"==typeof e&&e%1==0}function hasRelative(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function hasLocaleWeekInfo(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return!1}}function bestBy(e,t,r){if(0!==e.length)return e.reduce(((e,i)=>{const n=[t(i),i];return e&&r(e[0],n[0])===e[0]?e:n}),null)[1]}function hasOwnProperty(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function validateWeekSettings(e){if(null==e)return null;if("object"!=typeof e)throw new InvalidArgumentError("Week settings must be an object");if(!integerBetween(e.firstDay,1,7)||!integerBetween(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some((e=>!integerBetween(e,1,7))))throw new InvalidArgumentError("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function integerBetween(e,t,r){return isInteger(e)&&e>=t&&e<=r}function padStart(e,t=2){let r;return r=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),r}function parseInteger(e){return isUndefined(e)||null===e||""===e?void 0:parseInt(e,10)}function parseFloating(e){return isUndefined(e)||null===e||""===e?void 0:parseFloat(e)}function parseMillis(e){if(!isUndefined(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function roundTo(e,t,r=!1){const i=10**t;return(r?Math.trunc:Math.round)(e*i)/i}function isLeapYear(e){return e%4==0&&(e%100!=0||e%400==0)}function daysInYear(e){return isLeapYear(e)?366:365}function daysInMonth(e,t){const r=function floorMod(e,t){return e-t*Math.floor(e/t)}(t-1,12)+1;return 2===r?isLeapYear(e+(t-r)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function objToLocalTS(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function firstWeekOffset(e,t,r){return-isoWeekdayToLocal(dayOfWeek(e,1,t),r)+t-1}function weeksInWeekYear(e,t=4,r=1){const i=firstWeekOffset(e,t,r),n=firstWeekOffset(e+1,t,r);return(daysInYear(e)-i+n)/7}function untruncateYear(e){return e>99?e:e>Settings.twoDigitCutoffYear?1900+e:2e3+e}function parseZoneInfo(e,t,r,i=null){const n=new Date(e),s={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(s.timeZone=i);const o={timeZoneName:t,...s},a=new Intl.DateTimeFormat(r,o).formatToParts(n).find((e=>"timezonename"===e.type.toLowerCase()));return a?a.value:null}function signedOffset(e,t){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);const i=parseInt(t,10)||0;return 60*r+(r<0||Object.is(r,-0)?-i:i)}function asNumber(e){const t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new InvalidArgumentError(`Invalid unit value ${e}`);return t}function normalizeObject(e,t){const r={};for(const i in e)if(hasOwnProperty(e,i)){const n=e[i];if(null==n)continue;r[t(i)]=asNumber(n)}return r}function formatOffset(e,t){const r=Math.trunc(Math.abs(e/60)),i=Math.trunc(Math.abs(e%60)),n=e>=0?"+":"-";switch(t){case"short":return`${n}${padStart(r,2)}:${padStart(i,2)}`;case"narrow":return`${n}${r}${i>0?`:${i}`:""}`;case"techie":return`${n}${padStart(r,2)}${padStart(i,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function timeObject(e){return function pick(e,t){return t.reduce(((t,r)=>(t[r]=e[r],t)),{})}(e,["hour","minute","second","millisecond"])}const K=["January","February","March","April","May","June","July","August","September","October","November","December"],Z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Y=["J","F","M","A","M","J","J","A","S","O","N","D"];function months(e){switch(e){case"narrow":return[...Y];case"short":return[...Z];case"long":return[...K];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const X=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ee=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],te=["M","T","W","T","F","S","S"];function weekdays(e){switch(e){case"narrow":return[...te];case"short":return[...ee];case"long":return[...X];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const re=["AM","PM"],ie=["Before Christ","Anno Domini"],ne=["BC","AD"],se=["B","A"];function eras(e){switch(e){case"narrow":return[...se];case"short":return[...ne];case"long":return[...ie];default:return null}}function stringifyTokens(e,t){let r="";for(const i of e)i.literal?r+=i.val:r+=t(i.val);return r}const oe={D:s,DD:o,DDD:c,DDDD:u,t:l,tt:p,ttt:d,tttt:f,T:y,TT:h,TTT:g,TTTT:m,f:v,ff:R,fff:I,ffff:P,F:b,FF:O,FFF:w,FFFF:j};class Formatter{static create(e,t={}){return new Formatter(e,t)}static parseFormat(e){let t=null,r="",i=!1;const n=[];for(let s=0;s<e.length;s++){const o=e.charAt(s);"'"===o?(r.length>0&&n.push({literal:i||/^\s+$/.test(r),val:r}),t=null,r="",i=!i):i||o===t?r+=o:(r.length>0&&n.push({literal:/^\s+$/.test(r),val:r}),r=o,t=o)}return r.length>0&&n.push({literal:i||/^\s+$/.test(r),val:r}),n}static macroTokenToFormatOpts(e){return oe[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem());return this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return padStart(e,t);const r={...this.opts};return t>0&&(r.padTo=t),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){const r="en"===this.loc.listingMode(),i=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,string=(t,r)=>this.loc.extract(e,t,r),formatOffset=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",meridiem=()=>r?function meridiemForDateTime(e){return re[e.hour<12?0:1]}(e):string({hour:"numeric",hourCycle:"h12"},"dayperiod"),month=(t,i)=>r?function monthForDateTime(e,t){return months(t)[e.month-1]}(e,t):string(i?{month:t}:{month:t,day:"numeric"},"month"),weekday=(t,i)=>r?function weekdayForDateTime(e,t){return weekdays(t)[e.weekday-1]}(e,t):string(i?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),maybeMacro=t=>{const r=Formatter.macroTokenToFormatOpts(t);return r?this.formatWithSystemDefault(e,r):t},era=t=>r?function eraForDateTime(e,t){return eras(t)[e.year<0?0:1]}(e,t):string({era:t},"era");return stringifyTokens(Formatter.parseFormat(t),(t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return formatOffset({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return formatOffset({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return formatOffset({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return meridiem();case"d":return i?string({day:"numeric"},"day"):this.num(e.day);case"dd":return i?string({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return weekday("short",!0);case"cccc":return weekday("long",!0);case"ccccc":return weekday("narrow",!0);case"EEE":return weekday("short",!1);case"EEEE":return weekday("long",!1);case"EEEEE":return weekday("narrow",!1);case"L":return i?string({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return i?string({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return month("short",!0);case"LLLL":return month("long",!0);case"LLLLL":return month("narrow",!0);case"M":return i?string({month:"numeric"},"month"):this.num(e.month);case"MM":return i?string({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return month("short",!1);case"MMMM":return month("long",!1);case"MMMMM":return month("narrow",!1);case"y":return i?string({year:"numeric"},"year"):this.num(e.year);case"yy":return i?string({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return i?string({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return i?string({year:"numeric"},"year"):this.num(e.year,6);case"G":return era("short");case"GG":return era("long");case"GGGGG":return era("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return maybeMacro(t)}}))}formatDurationFromString(e,t){const tokenToField=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},r=Formatter.parseFormat(t),i=r.reduce(((e,{literal:t,val:r})=>t?e:e.concat(r)),[]);return stringifyTokens(r,(e=>t=>{const r=tokenToField(t);return r?this.num(e.get(r),t.length):t})(e.shiftTo(...i.map(tokenToField).filter((e=>e)))))}}const ae=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function combineExtractors(...e){return t=>e.reduce((([e,r,i],n)=>{const[s,o,a]=n(t,i);return[{...e,...s},o||r,a]}),[{},null,1]).slice(0,2)}function parse(e,...t){if(null==e)return[null,null];for(const[r,i]of t){const t=r.exec(e);if(t)return i(t)}return[null,null]}function simpleParse(...e){return(t,r)=>{const i={};let n;for(n=0;n<e.length;n++)i[e[n]]=parseInteger(t[r+n]);return[i,null,r+n]}}const ce=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,ue=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,le=RegExp(`${ue.source}${`(?:${ce.source}?(?:\\[(${ae.source})\\])?)?`}`),pe=RegExp(`(?:T${le.source})?`),de=simpleParse("weekYear","weekNumber","weekDay"),fe=simpleParse("year","ordinal"),ye=RegExp(`${ue.source} ?(?:${ce.source}|(${ae.source}))?`),he=RegExp(`(?: ${ye.source})?`);function int(e,t,r){const i=e[t];return isUndefined(i)?r:parseInteger(i)}function extractISOTime(e,t){return[{hours:int(e,t,0),minutes:int(e,t+1,0),seconds:int(e,t+2,0),milliseconds:parseMillis(e[t+3])},null,t+4]}function extractISOOffset(e,t){const r=!e[t]&&!e[t+1],i=signedOffset(e[t+1],e[t+2]);return[{},r?null:FixedOffsetZone.instance(i),t+3]}function extractIANAZone(e,t){return[{},e[t]?IANAZone.create(e[t]):null,t+1]}const ge=RegExp(`^T?${ue.source}$`),me=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function extractISODuration(e){const[t,r,i,n,s,o,a,c,u]=e,l="-"===t[0],p=c&&"-"===c[0],maybeNegate=(e,t=!1)=>void 0!==e&&(t||e&&l)?-e:e;return[{years:maybeNegate(parseFloating(r)),months:maybeNegate(parseFloating(i)),weeks:maybeNegate(parseFloating(n)),days:maybeNegate(parseFloating(s)),hours:maybeNegate(parseFloating(o)),minutes:maybeNegate(parseFloating(a)),seconds:maybeNegate(parseFloating(c),"-0"===c),milliseconds:maybeNegate(parseMillis(u),p)}]}const ve={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function fromStrings(e,t,r,i,n,s,o){const a={year:2===t.length?untruncateYear(parseInteger(t)):parseInteger(t),month:Z.indexOf(r)+1,day:parseInteger(i),hour:parseInteger(n),minute:parseInteger(s)};return o&&(a.second=parseInteger(o)),e&&(a.weekday=e.length>3?X.indexOf(e)+1:ee.indexOf(e)+1),a}const be=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822(e){const[,t,r,i,n,s,o,a,c,u,l,p]=e,d=fromStrings(t,n,i,r,s,o,a);let f;return f=c?ve[c]:u?0:signedOffset(l,p),[d,new FixedOffsetZone(f)]}const Re=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Oe=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Se=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850(e){const[,t,r,i,n,s,o,a]=e;return[fromStrings(t,n,i,r,s,o,a),FixedOffsetZone.utcInstance]}function extractASCII(e){const[,t,r,i,n,s,o,a]=e;return[fromStrings(t,a,r,i,n,s,o),FixedOffsetZone.utcInstance]}const Ce=combineRegexes(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,pe),Ie=combineRegexes(/(\d{4})-?W(\d\d)(?:-?(\d))?/,pe),_e=combineRegexes(/(\d{4})-?(\d{3})/,pe),we=combineRegexes(le),Pe=combineExtractors((function extractISOYmd(e,t){return[{year:int(e,t),month:int(e,t+1,1),day:int(e,t+2,1)},null,t+3]}),extractISOTime,extractISOOffset,extractIANAZone),je=combineExtractors(de,extractISOTime,extractISOOffset,extractIANAZone),Ae=combineExtractors(fe,extractISOTime,extractISOOffset,extractIANAZone),$e=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);const Ne=combineExtractors(extractISOTime);const Te=combineRegexes(/(\d{4})-(\d\d)-(\d\d)/,he),qe=combineRegexes(ye),xe=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);const De="Invalid Duration",Ee={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Me={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...Ee},ke=365.2425,Ue=30.436875,Fe={years:{quarters:4,months:12,weeks:52.1775,days:ke,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:Ue,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...Ee},Je=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Le=Je.slice(0).reverse();function clone$1(e,t,r=!1){const i={values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Duration(i)}function durationToMillis(e,t){var r;let i=null!=(r=t.milliseconds)?r:0;for(const r of Le.slice(1))t[r]&&(i+=t[r]*e[r].milliseconds);return i}function normalizeValues(e,t){const r=durationToMillis(e,t)<0?-1:1;Je.reduceRight(((i,n)=>{if(isUndefined(t[n]))return i;if(i){const s=t[i]*r,o=e[n][i],a=Math.floor(s/o);t[n]+=a*r,t[i]-=a*o*r}return n}),null),Je.reduce(((r,i)=>{if(isUndefined(t[i]))return r;if(r){const n=t[r]%1;t[r]-=n,t[i]+=n*e[r][i]}return i}),null)}class Duration{constructor(e){const t="longterm"===e.conversionAccuracy||!1;let r=t?Fe:Me;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||Locale.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,t){return Duration.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new InvalidArgumentError("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new Duration({values:normalizeObject(e,Duration.normalizeUnit),loc:Locale.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(isNumber(e))return Duration.fromMillis(e);if(Duration.isDuration(e))return e;if("object"==typeof e)return Duration.fromObject(e);throw new InvalidArgumentError(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[r]=function parseISODuration(e){return parse(e,[me,extractISODuration])}(e);return r?Duration.fromObject(r,t):Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[r]=function parseISOTimeOnly(e){return parse(e,[ge,Ne])}(e);return r?Duration.fromObject(r,t):Duration.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new InvalidArgumentError("need to specify a reason the Duration is invalid");const r=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid)throw new InvalidDurationError(r);return new Duration({invalid:r})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new InvalidUnitError(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const r={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?Formatter.create(this.loc,r).formatDurationFromString(this,e):De}toHuman(e={}){if(!this.isValid)return De;const t=Je.map((t=>{const r=this.values[t];return isUndefined(r)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(r)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=roundTo(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1};return DateTime.fromMillis(t,{zone:"UTC"}).toISOTime(e)}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?durationToMillis(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e),r={};for(const e of Je)(hasOwnProperty(t.values,e)||hasOwnProperty(this.values,e))&&(r[e]=t.get(e)+this.get(e));return clone$1(this,{values:r},!0)}minus(e){if(!this.isValid)return this;const t=Duration.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const r of Object.keys(this.values))t[r]=asNumber(e(this.values[r],r));return clone$1(this,{values:t},!0)}get(e){return this[Duration.normalizeUnit(e)]}set(e){if(!this.isValid)return this;return clone$1(this,{values:{...this.values,...normalizeObject(e,Duration.normalizeUnit)}})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:r,matrix:i}={}){return clone$1(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:i,conversionAccuracy:r})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return normalizeValues(this.matrix,e),clone$1(this,{values:e},!0)}rescale(){if(!this.isValid)return this;return clone$1(this,{values:function removeZeroes(e){const t={};for(const[r,i]of Object.entries(e))0!==i&&(t[r]=i);return t}(this.normalize().shiftToAll().toObject())},!0)}shiftTo(...e){if(!this.isValid)return this;if(0===e.length)return this;e=e.map((e=>Duration.normalizeUnit(e)));const t={},r={},i=this.toObject();let n;for(const s of Je)if(e.indexOf(s)>=0){n=s;let e=0;for(const t in r)e+=this.matrix[t][s]*r[t],r[t]=0;isNumber(i[s])&&(e+=i[s]);const o=Math.trunc(e);t[s]=o,r[s]=(1e3*e-1e3*o)/1e3}else isNumber(i[s])&&(r[s]=i[s]);for(const e in r)0!==r[e]&&(t[n]+=e===n?r[e]:r[e]/this.matrix[n][e]);return normalizeValues(this.matrix,t),clone$1(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return clone$1(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(const i of Je)if(t=this.values[i],r=e.values[i],!(void 0===t||0===t?void 0===r||0===r:t===r))return!1;var t,r;return!0}}const Ve="Invalid Interval";class Interval{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new InvalidArgumentError("need to specify a reason the Interval is invalid");const r=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid)throw new InvalidIntervalError(r);return new Interval({invalid:r})}static fromDateTimes(e,t){const r=friendlyDateTime(e),i=friendlyDateTime(t),n=function validateStartEnd(e,t){return e&&e.isValid?t&&t.isValid?t<e?Interval.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null:Interval.invalid("missing or invalid end"):Interval.invalid("missing or invalid start")}(r,i);return null==n?new Interval({start:r,end:i}):n}static after(e,t){const r=Duration.fromDurationLike(t),i=friendlyDateTime(e);return Interval.fromDateTimes(i,i.plus(r))}static before(e,t){const r=Duration.fromDurationLike(t),i=friendlyDateTime(e);return Interval.fromDateTimes(i.minus(r),i)}static fromISO(e,t){const[r,i]=(e||"").split("/",2);if(r&&i){let e,n,s,o;try{e=DateTime.fromISO(r,t),n=e.isValid}catch(i){n=!1}try{s=DateTime.fromISO(i,t),o=s.isValid}catch(i){o=!1}if(n&&o)return Interval.fromDateTimes(e,s);if(n){const r=Duration.fromISO(i,t);if(r.isValid)return Interval.after(e,r)}else if(o){const e=Duration.fromISO(r,t);if(e.isValid)return Interval.before(s,e)}}return Interval.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){if(!this.isValid)return NaN;const r=this.start.startOf(e,t);let i;return i=null!=t&&t.useLocaleWeeks?this.end.reconfigure({locale:r.locale}):this.end,i=i.startOf(e,t),Math.floor(i.diff(r,e).get(e))+(i.valueOf()!==this.end.valueOf())}hasSame(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return!!this.isValid&&this.s>e}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&(this.s<=e&&this.e>e)}set({start:e,end:t}={}){return this.isValid?Interval.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(friendlyDateTime).filter((e=>this.contains(e))).sort(((e,t)=>e.toMillis()-t.toMillis())),r=[];let{s:i}=this,n=0;for(;i<this.e;){const e=t[n]||this.e,s=+e>+this.e?this.e:e;r.push(Interval.fromDateTimes(i,s)),i=s,n+=1}return r}splitBy(e){const t=Duration.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let r,{s:i}=this,n=1;const s=[];for(;i<this.e;){const e=this.start.plus(t.mapUnits((e=>e*n)));r=+e>+this.e?this.e:e,s.push(Interval.fromDateTimes(i,r)),i=r,n+=1}return s}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return!!this.isValid&&+this.e==+e.s}abutsEnd(e){return!!this.isValid&&+e.e==+this.s}engulfs(e){return!!this.isValid&&(this.s<=e.s&&this.e>=e.e)}equals(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return t>=r?null:Interval.fromDateTimes(t,r)}union(e){if(!this.isValid)return this;const t=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return Interval.fromDateTimes(t,r)}static merge(e){const[t,r]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],r)=>t?t.overlaps(r)||t.abutsStart(r)?[e,t.union(r)]:[e.concat([t]),r]:[e,r]),[[],null]);return r&&t.push(r),t}static xor(e){let t=null,r=0;const i=[],n=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),s=Array.prototype.concat(...n).sort(((e,t)=>e.time-t.time));for(const e of s)r+="s"===e.type?1:-1,1===r?t=e.time:(t&&+t!=+e.time&&i.push(Interval.fromDateTimes(t,e.time)),t=null);return Interval.merge(i)}difference(...e){return Interval.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Ve}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=s,t={}){return this.isValid?Formatter.create(this.s.loc.clone(t),e).formatInterval(this):Ve}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Ve}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Ve}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Ve}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:Ve}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):Duration.invalid(this.invalidReason)}mapEndpoints(e){return Interval.fromDateTimes(e(this.s),e(this.e))}}class Info{static hasDST(e=Settings.defaultZone){const t=DateTime.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return IANAZone.isValidZone(e)}static normalizeZone(e){return normalizeZone(e,Settings.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||Locale.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:r=null,locObj:i=null,outputCalendar:n="gregory"}={}){return(i||Locale.create(t,r,n)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:i=null,outputCalendar:n="gregory"}={}){return(i||Locale.create(t,r,n)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:r=null,locObj:i=null}={}){return(i||Locale.create(t,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:i=null}={}){return(i||Locale.create(t,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Locale.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Locale.create(t,null,"gregory").eras(e)}static features(){return{relative:hasRelative(),localeWeek:hasLocaleWeekInfo()}}}function dayDiff(e,t){const utcDayStart=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=utcDayStart(t)-utcDayStart(e);return Math.floor(Duration.fromMillis(r).as("days"))}function diff(e,t,r,i){let[n,s,o,a]=function highOrderDiffs(e,t,r){const i=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+4*(t.year-e.year)],["months",(e,t)=>t.month-e.month+12*(t.year-e.year)],["weeks",(e,t)=>{const r=dayDiff(e,t);return(r-r%7)/7}],["days",dayDiff]],n={},s=e;let o,a;for(const[c,u]of i)r.indexOf(c)>=0&&(o=c,n[c]=u(e,t),a=s.plus(n),a>t?(n[c]--,(e=s.plus(n))>t&&(a=e,n[c]--,e=s.plus(n))):e=a);return[e,n,a,o]}(e,t,r);const c=t-n,u=r.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));0===u.length&&(o<t&&(o=n.plus({[a]:1})),o!==n&&(s[a]=(s[a]||0)+c/(o-n)));const l=Duration.fromObject(s,i);return u.length>0?Duration.fromMillis(c,i).shiftTo(...u).plus(l):l}const Be={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},ze={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Ge=Be.hanidec.replace(/[\[|\]]/g,"").split("");function digitRegex({numberingSystem:e},t=""){return new RegExp(`${Be[e||"latn"]}${t}`)}const He="missing Intl.DateTimeFormat.formatToParts support";function intUnit(e,t=(e=>e)){return{regex:e,deser:([e])=>t(function parseDigits(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r<e.length;r++){const i=e.charCodeAt(r);if(-1!==e[r].search(Be.hanidec))t+=Ge.indexOf(e[r]);else for(const e in ze){const[r,n]=ze[e];i>=r&&i<=n&&(t+=i-r)}}return parseInt(t,10)}return t}(e))}}const Qe=`[ ${String.fromCharCode(160)}]`,We=new RegExp(Qe,"g");function fixListRegex(e){return e.replace(/\./g,"\\.?").replace(We,Qe)}function stripInsensitivities(e){return e.replace(/\./g,"").replace(We," ").toLowerCase()}function oneOf(e,t){return null===e?null:{regex:RegExp(e.map(fixListRegex).join("|")),deser:([r])=>e.findIndex((e=>stripInsensitivities(r)===stripInsensitivities(e)))+t}}function offset(e,t){return{regex:e,deser:([,e,t])=>signedOffset(e,t),groups:t}}function simple(e){return{regex:e,deser:([e])=>e}}const Ke={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let Ze=null;function expandMacroTokens(e,t){return Array.prototype.concat(...e.map((e=>function maybeExpandMacroToken(e,t){if(e.literal)return e;const r=formatOptsToTokens(Formatter.macroTokenToFormatOpts(e.val),t);return null==r||r.includes(void 0)?e:r}(e,t))))}function explainFromTokens(e,t,r){const i=expandMacroTokens(Formatter.parseFormat(r),e),n=i.map((t=>function unitForToken(e,t){const r=digitRegex(t),i=digitRegex(t,"{2}"),n=digitRegex(t,"{3}"),s=digitRegex(t,"{4}"),o=digitRegex(t,"{6}"),a=digitRegex(t,"{1,2}"),c=digitRegex(t,"{1,3}"),u=digitRegex(t,"{1,6}"),l=digitRegex(t,"{1,9}"),p=digitRegex(t,"{2,4}"),d=digitRegex(t,"{4,6}"),literal=e=>{return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([e])=>e,literal:!0};var t},f=(f=>{if(e.literal)return literal(f);switch(f.val){case"G":return oneOf(t.eras("short"),0);case"GG":return oneOf(t.eras("long"),0);case"y":return intUnit(u);case"yy":case"kk":return intUnit(p,untruncateYear);case"yyyy":case"kkkk":return intUnit(s);case"yyyyy":return intUnit(d);case"yyyyyy":return intUnit(o);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return intUnit(a);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return intUnit(i);case"MMM":return oneOf(t.months("short",!0),1);case"MMMM":return oneOf(t.months("long",!0),1);case"LLL":return oneOf(t.months("short",!1),1);case"LLLL":return oneOf(t.months("long",!1),1);case"o":case"S":return intUnit(c);case"ooo":case"SSS":return intUnit(n);case"u":return simple(l);case"uu":return simple(a);case"uuu":case"E":case"c":return intUnit(r);case"a":return oneOf(t.meridiems(),0);case"EEE":return oneOf(t.weekdays("short",!1),1);case"EEEE":return oneOf(t.weekdays("long",!1),1);case"ccc":return oneOf(t.weekdays("short",!0),1);case"cccc":return oneOf(t.weekdays("long",!0),1);case"Z":case"ZZ":return offset(new RegExp(`([+-]${a.source})(?::(${i.source}))?`),2);case"ZZZ":return offset(new RegExp(`([+-]${a.source})(${i.source})?`),2);case"z":return simple(/[a-z_+-/]{1,256}?/i);case" ":return simple(/[^\S\n\r]/);default:return literal(f)}})(e)||{invalidReason:He};return f.token=e,f}(t,e))),s=n.find((e=>e.invalidReason));if(s)return{input:t,tokens:i,invalidReason:s.invalidReason};{const[e,r]=function buildRegex(e){return[`^${e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"")}$`,e]}(n),s=RegExp(e,"i"),[o,a]=function match(e,t,r){const i=e.match(t);if(i){const e={};let t=1;for(const n in r)if(hasOwnProperty(r,n)){const s=r[n],o=s.groups?s.groups+1:1;!s.literal&&s.token&&(e[s.token.val[0]]=s.deser(i.slice(t,t+o))),t+=o}return[i,e]}return[i,{}]}(t,s,r),[c,u,l]=a?function dateTimeFromMatches(e){let t,r=null;return isUndefined(e.z)||(r=IANAZone.create(e.z)),isUndefined(e.Z)||(r||(r=new FixedOffsetZone(e.Z)),t=e.Z),isUndefined(e.q)||(e.M=3*(e.q-1)+1),isUndefined(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),isUndefined(e.u)||(e.S=parseMillis(e.u)),[Object.keys(e).reduce(((t,r)=>{const i=(e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(r);return i&&(t[i]=e[r]),t}),{}),r,t]}(a):[null,null,void 0];if(hasOwnProperty(a,"a")&&hasOwnProperty(a,"H"))throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:i,regex:s,rawMatches:o,matches:a,result:c,zone:u,specificOffset:l}}}function formatOptsToTokens(e,t){if(!e)return null;const r=Formatter.create(t,e).dtFormatter(function getDummyDateTime(){return Ze||(Ze=DateTime.fromMillis(1555555555555)),Ze}()),i=r.formatToParts(),n=r.resolvedOptions();return i.map((t=>function tokenForPart(e,t,r){const{type:i,value:n}=e;if("literal"===i){const e=/^\s+$/.test(n);return{literal:!e,val:e?" ":n}}const s=t[i];let o=i;"hour"===i&&(o=null!=t.hour12?t.hour12?"hour12":"hour24":null!=t.hourCycle?"h11"===t.hourCycle||"h12"===t.hourCycle?"hour12":"hour24":r.hour12?"hour12":"hour24");let a=Ke[o];if("object"==typeof a&&(a=a[s]),a)return{literal:!1,val:a}}(t,e,n)))}const Ye="Invalid DateTime",Xe=864e13;function unsupportedZone(e){return new Invalid("unsupported zone",`the zone "${e.name}" is not supported`)}function possiblyCachedWeekData(e){return null===e.weekData&&(e.weekData=gregorianToWeek(e.c)),e.weekData}function possiblyCachedLocalWeekData(e){return null===e.localWeekData&&(e.localWeekData=gregorianToWeek(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function clone(e,t){const r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new DateTime({...r,...t,old:r})}function fixOffset(e,t,r){let i=e-60*t*1e3;const n=r.offset(i);if(t===n)return[i,t];i-=60*(n-t)*1e3;const s=r.offset(i);return n===s?[i,n]:[e-60*Math.min(n,s)*1e3,Math.max(n,s)]}function tsToObj(e,t){const r=new Date(e+=60*t*1e3);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function objToTS(e,t,r){return fixOffset(objToLocalTS(e),t,r)}function adjustTime(e,t){const r=e.o,i=e.c.year+Math.trunc(t.years),n=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),s={...e.c,year:i,month:n,day:Math.min(e.c.day,daysInMonth(i,n))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},o=Duration.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=objToLocalTS(s);let[c,u]=fixOffset(a,r,e.zone);return 0!==o&&(c+=o,u=e.zone.offset(c)),{ts:c,o:u}}function parseDataToDateTime(e,t,r,i,n,s){const{setZone:o,zone:a}=r;if(e&&0!==Object.keys(e).length||t){const i=t||a,n=DateTime.fromObject(e,{...r,zone:i,specificOffset:s});return o?n:n.setZone(a)}return DateTime.invalid(new Invalid("unparsable",`the input "${n}" can't be parsed as ${i}`))}function toTechFormat(e,t,r=!0){return e.isValid?Formatter.create(Locale.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function toISODate(e,t){const r=e.c.year>9999||e.c.year<0;let i="";return r&&e.c.year>=0&&(i+="+"),i+=padStart(e.c.year,r?6:4),t?(i+="-",i+=padStart(e.c.month),i+="-",i+=padStart(e.c.day)):(i+=padStart(e.c.month),i+=padStart(e.c.day)),i}function toISOTime(e,t,r,i,n,s){let o=padStart(e.c.hour);return t?(o+=":",o+=padStart(e.c.minute),0===e.c.millisecond&&0===e.c.second&&r||(o+=":")):o+=padStart(e.c.minute),0===e.c.millisecond&&0===e.c.second&&r||(o+=padStart(e.c.second),0===e.c.millisecond&&i||(o+=".",o+=padStart(e.c.millisecond,3))),n&&(e.isOffsetFixed&&0===e.offset&&!s?o+="Z":e.o<0?(o+="-",o+=padStart(Math.trunc(-e.o/60)),o+=":",o+=padStart(Math.trunc(-e.o%60))):(o+="+",o+=padStart(Math.trunc(e.o/60)),o+=":",o+=padStart(Math.trunc(e.o%60)))),s&&(o+="["+e.zone.ianaName+"]"),o}const et={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},tt={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},rt={ordinal:1,hour:0,minute:0,second:0,millisecond:0},it=["year","month","day","hour","minute","second","millisecond"],nt=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],st=["year","ordinal","hour","minute","second","millisecond"];function normalizeUnitWithLocalWeeks(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function normalizeUnit(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new InvalidUnitError(e);return t}(e)}}function quickDT(e,t){const r=normalizeZone(t.zone,Settings.defaultZone),i=Locale.fromObject(t),n=Settings.now();let s,o;if(isUndefined(e.year))s=n;else{for(const t of it)isUndefined(e[t])&&(e[t]=et[t]);const t=hasInvalidGregorianData(e)||hasInvalidTimeData(e);if(t)return DateTime.invalid(t);const i=r.offset(n);[s,o]=objToTS(e,i,r)}return new DateTime({ts:s,zone:r,loc:i,o})}function diffRelative(e,t,r){const i=!!isUndefined(r.round)||r.round,format=(e,n)=>{e=roundTo(e,i||r.calendary?0:2,!0);return t.loc.clone(r).relFormatter(r).format(e,n)},differ=i=>r.calendary?t.hasSame(e,i)?0:t.startOf(i).diff(e.startOf(i),i).get(i):t.diff(e,i).get(i);if(r.unit)return format(differ(r.unit),r.unit);for(const e of r.units){const t=differ(e);if(Math.abs(t)>=1)return format(t,e)}return format(e>t?-0:0,r.units[r.units.length-1])}function lastOpts(e){let t,r={};return e.length>0&&"object"==typeof e[e.length-1]?(r=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[r,t]}class DateTime{constructor(e){const t=e.zone||Settings.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new Invalid("invalid input"):null)||(t.isValid?null:unsupportedZone(t));this.ts=isUndefined(e.ts)?Settings.now():e.ts;let i=null,n=null;if(!r){if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[i,n]=[e.old.c,e.old.o];else{const e=t.offset(this.ts);i=tsToObj(this.ts,e),r=Number.isNaN(i.year)?new Invalid("invalid input"):null,i=r?null:i,n=r?null:e}}this._zone=t,this.loc=e.loc||Locale.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=i,this.o=n,this.isLuxonDateTime=!0}static now(){return new DateTime({})}static local(){const[e,t]=lastOpts(arguments),[r,i,n,s,o,a,c]=t;return quickDT({year:r,month:i,day:n,hour:s,minute:o,second:a,millisecond:c},e)}static utc(){const[e,t]=lastOpts(arguments),[r,i,n,s,o,a,c]=t;return e.zone=FixedOffsetZone.utcInstance,quickDT({year:r,month:i,day:n,hour:s,minute:o,second:a,millisecond:c},e)}static fromJSDate(e,t={}){const r=function isDate(e){return"[object Date]"===Object.prototype.toString.call(e)}(e)?e.valueOf():NaN;if(Number.isNaN(r))return DateTime.invalid("invalid input");const i=normalizeZone(t.zone,Settings.defaultZone);return i.isValid?new DateTime({ts:r,zone:i,loc:Locale.fromObject(t)}):DateTime.invalid(unsupportedZone(i))}static fromMillis(e,t={}){if(isNumber(e))return e<-Xe||e>Xe?DateTime.invalid("Timestamp out of range"):new DateTime({ts:e,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)});throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(isNumber(e))return new DateTime({ts:1e3*e,zone:normalizeZone(t.zone,Settings.defaultZone),loc:Locale.fromObject(t)});throw new InvalidArgumentError("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const r=normalizeZone(t.zone,Settings.defaultZone);if(!r.isValid)return DateTime.invalid(unsupportedZone(r));const i=Locale.fromObject(t),n=normalizeObject(e,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek:s,startOfWeek:o}=usesLocalWeekValues(n,i),a=Settings.now(),c=isUndefined(t.specificOffset)?r.offset(a):t.specificOffset,u=!isUndefined(n.ordinal),l=!isUndefined(n.year),p=!isUndefined(n.month)||!isUndefined(n.day),d=l||p,f=n.weekYear||n.weekNumber;if((d||u)&&f)throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(p&&u)throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");const y=f||n.weekday&&!d;let h,g,m=tsToObj(a,c);y?(h=nt,g=tt,m=gregorianToWeek(m,s,o)):u?(h=st,g=rt,m=gregorianToOrdinal(m)):(h=it,g=et);let v=!1;for(const e of h){isUndefined(n[e])?n[e]=v?g[e]:m[e]:v=!0}const b=y?function hasInvalidWeekData(e,t=4,r=1){const i=isInteger(e.weekYear),n=integerBetween(e.weekNumber,1,weeksInWeekYear(e.weekYear,t,r)),s=integerBetween(e.weekday,1,7);return i?n?!s&&unitOutOfRange("weekday",e.weekday):unitOutOfRange("week",e.weekNumber):unitOutOfRange("weekYear",e.weekYear)}(n,s,o):u?function hasInvalidOrdinalData(e){const t=isInteger(e.year),r=integerBetween(e.ordinal,1,daysInYear(e.year));return t?!r&&unitOutOfRange("ordinal",e.ordinal):unitOutOfRange("year",e.year)}(n):hasInvalidGregorianData(n),R=b||hasInvalidTimeData(n);if(R)return DateTime.invalid(R);const O=y?weekToGregorian(n,s,o):u?ordinalToGregorian(n):n,[S,I]=objToTS(O,c,r),w=new DateTime({ts:S,zone:r,o:I,loc:i});return n.weekday&&d&&e.weekday!==w.weekday?DateTime.invalid("mismatched weekday",`you can't specify both a weekday of ${n.weekday} and a date of ${w.toISO()}`):w}static fromISO(e,t={}){const[r,i]=function parseISODate(e){return parse(e,[Ce,Pe],[Ie,je],[_e,Ae],[we,$e])}(e);return parseDataToDateTime(r,i,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[r,i]=function parseRFC2822Date(e){return parse(function preprocessRFC2822(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[be,extractRFC2822])}(e);return parseDataToDateTime(r,i,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[r,i]=function parseHTTPDate(e){return parse(e,[Re,extractRFC1123Or850],[Oe,extractRFC1123Or850],[Se,extractASCII])}(e);return parseDataToDateTime(r,i,t,"HTTP",t)}static fromFormat(e,t,r={}){if(isUndefined(e)||isUndefined(t))throw new InvalidArgumentError("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:n=null}=r,s=Locale.fromOpts({locale:i,numberingSystem:n,defaultToEN:!0}),[o,a,c,u]=function parseFromTokens(e,t,r){const{result:i,zone:n,specificOffset:s,invalidReason:o}=explainFromTokens(e,t,r);return[i,n,s,o]}(s,e,t);return u?DateTime.invalid(u):parseDataToDateTime(o,a,r,`format ${t}`,e,c)}static fromString(e,t,r={}){return DateTime.fromFormat(e,t,r)}static fromSQL(e,t={}){const[r,i]=function parseSQL(e){return parse(e,[Te,Pe],[qe,xe])}(e);return parseDataToDateTime(r,i,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new InvalidArgumentError("need to specify a reason the DateTime is invalid");const r=e instanceof Invalid?e:new Invalid(e,t);if(Settings.throwOnInvalid)throw new InvalidDateTimeError(r);return new DateTime({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const r=formatOptsToTokens(e,Locale.fromObject(t));return r?r.map((e=>e?e.val:null)).join(""):null}static expandFormat(e,t={}){return expandMacroTokens(Formatter.parseFormat(e),Locale.fromObject(t)).map((e=>e.val)).join("")}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?possiblyCachedWeekData(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?possiblyCachedLocalWeekData(this).weekday:NaN}get localWeekNumber(){return this.isValid?possiblyCachedLocalWeekData(this).weekNumber:NaN}get localWeekYear(){return this.isValid?possiblyCachedLocalWeekData(this).weekYear:NaN}get ordinal(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,t=6e4,r=objToLocalTS(this.c),i=this.zone.offset(r-e),n=this.zone.offset(r+e),s=this.zone.offset(r-i*t),o=this.zone.offset(r-n*t);if(s===o)return[this];const a=r-s*t,c=r-o*t,u=tsToObj(a,s),l=tsToObj(c,o);return u.hour===l.hour&&u.minute===l.minute&&u.second===l.second&&u.millisecond===l.millisecond?[clone(this,{ts:a}),clone(this,{ts:c})]:[this]}get isInLeapYear(){return isLeapYear(this.year)}get daysInMonth(){return daysInMonth(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?weeksInWeekYear(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:r,calendar:i}=Formatter.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:r,outputCalendar:i}}toUTC(e=0,t={}){return this.setZone(FixedOffsetZone.instance(e),t)}toLocal(){return this.setZone(Settings.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:r=!1}={}){if((e=normalizeZone(e,Settings.defaultZone)).equals(this.zone))return this;if(e.isValid){let i=this.ts;if(t||r){const t=e.offset(this.ts),r=this.toObject();[i]=objToTS(r,t,e)}return clone(this,{ts:i,zone:e})}return DateTime.invalid(unsupportedZone(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:r}={}){return clone(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:r})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=normalizeObject(e,normalizeUnitWithLocalWeeks),{minDaysInFirstWeek:r,startOfWeek:i}=usesLocalWeekValues(t,this.loc),n=!isUndefined(t.weekYear)||!isUndefined(t.weekNumber)||!isUndefined(t.weekday),s=!isUndefined(t.ordinal),o=!isUndefined(t.year),a=!isUndefined(t.month)||!isUndefined(t.day),c=o||a,u=t.weekYear||t.weekNumber;if((c||s)&&u)throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&s)throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");let l;n?l=weekToGregorian({...gregorianToWeek(this.c,r,i),...t},r,i):isUndefined(t.ordinal)?(l={...this.toObject(),...t},isUndefined(t.day)&&(l.day=Math.min(daysInMonth(l.year,l.month),l.day))):l=ordinalToGregorian({...gregorianToOrdinal(this.c),...t});const[p,d]=objToTS(l,this.o,this.zone);return clone(this,{ts:p,o:d})}plus(e){if(!this.isValid)return this;return clone(this,adjustTime(this,Duration.fromDurationLike(e)))}minus(e){if(!this.isValid)return this;return clone(this,adjustTime(this,Duration.fromDurationLike(e).negate()))}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;const r={},i=Duration.normalizeUnit(e);switch(i){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0}if("weeks"===i)if(t){const e=this.loc.getStartOfWeek(),{weekday:t}=this;t<e&&(r.weekNumber=this.weekNumber-1),r.weekday=e}else r.weekday=1;if("quarters"===i){const e=Math.ceil(this.month/3);r.month=3*(e-1)+1}return this.set(r)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?Formatter.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Ye}toLocaleString(e=s,t={}){return this.isValid?Formatter.create(this.loc.clone(t),e).formatDateTime(this):Ye}toLocaleParts(e={}){return this.isValid?Formatter.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:r=!1,includeOffset:i=!0,extendedZone:n=!1}={}){if(!this.isValid)return null;const s="extended"===e;let o=toISODate(this,s);return o+="T",o+=toISOTime(this,s,t,r,i,n),o}toISODate({format:e="extended"}={}){return this.isValid?toISODate(this,"extended"===e):null}toISOWeekDate(){return toTechFormat(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:r=!0,includePrefix:i=!1,extendedZone:n=!1,format:s="extended"}={}){if(!this.isValid)return null;return(i?"T":"")+toISOTime(this,"extended"===s,t,e,r,n)}toRFC2822(){return toTechFormat(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return toTechFormat(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?toISODate(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:r=!0}={}){let i="HH:mm:ss.SSS";return(t||e)&&(r&&(i+=" "),t?i+="z":e&&(i+="ZZ")),toTechFormat(this,i,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Ye}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",r={}){if(!this.isValid||!e.isValid)return Duration.invalid("created by diffing an invalid DateTime");const i={locale:this.locale,numberingSystem:this.numberingSystem,...r},n=function maybeArray(e){return Array.isArray(e)?e:[e]}(t).map(Duration.normalizeUnit),s=e.valueOf()>this.valueOf(),o=diff(s?this:e,s?e:this,n,i);return s?o.negate():o}diffNow(e="milliseconds",t={}){return this.diff(DateTime.now(),e,t)}until(e){return this.isValid?Interval.fromDateTimes(this,e):this}hasSame(e,t,r){if(!this.isValid)return!1;const i=e.valueOf(),n=this.setZone(e.zone,{keepLocalTime:!0});return n.startOf(t,r)<=i&&i<=n.endOf(t,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||DateTime.fromObject({},{zone:this.zone}),r=e.padding?this<t?-e.padding:e.padding:0;let i=["years","months","days","hours","minutes","seconds"],n=e.unit;return Array.isArray(e.unit)&&(i=e.unit,n=void 0),diffRelative(t,this.plus(r),{...e,numeric:"always",units:i,unit:n})}toRelativeCalendar(e={}){return this.isValid?diffRelative(e.base||DateTime.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(DateTime.isDateTime))throw new InvalidArgumentError("min requires all arguments be DateTimes");return bestBy(e,(e=>e.valueOf()),Math.min)}static max(...e){if(!e.every(DateTime.isDateTime))throw new InvalidArgumentError("max requires all arguments be DateTimes");return bestBy(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,r={}){const{locale:i=null,numberingSystem:n=null}=r;return explainFromTokens(Locale.fromOpts({locale:i,numberingSystem:n,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,r={}){return DateTime.fromFormatExplain(e,t,r)}static get DATE_SHORT(){return s}static get DATE_MED(){return o}static get DATE_MED_WITH_WEEKDAY(){return a}static get DATE_FULL(){return c}static get DATE_HUGE(){return u}static get TIME_SIMPLE(){return l}static get TIME_WITH_SECONDS(){return p}static get TIME_WITH_SHORT_OFFSET(){return d}static get TIME_WITH_LONG_OFFSET(){return f}static get TIME_24_SIMPLE(){return y}static get TIME_24_WITH_SECONDS(){return h}static get TIME_24_WITH_SHORT_OFFSET(){return g}static get TIME_24_WITH_LONG_OFFSET(){return m}static get DATETIME_SHORT(){return v}static get DATETIME_SHORT_WITH_SECONDS(){return b}static get DATETIME_MED(){return R}static get DATETIME_MED_WITH_SECONDS(){return O}static get DATETIME_MED_WITH_WEEKDAY(){return S}static get DATETIME_FULL(){return I}static get DATETIME_FULL_WITH_SECONDS(){return w}static get DATETIME_HUGE(){return P}static get DATETIME_HUGE_WITH_SECONDS(){return j}}function friendlyDateTime(e){if(DateTime.isDateTime(e))return e;if(e&&e.valueOf&&isNumber(e.valueOf()))return DateTime.fromJSDate(e);if(e&&"object"==typeof e)return DateTime.fromObject(e);throw new InvalidArgumentError(`Unknown datetime argument: ${e}, of type ${typeof e}`)}t.DateTime=DateTime,t.Duration=Duration,t.FixedOffsetZone=FixedOffsetZone,t.IANAZone=IANAZone,t.Info=Info,t.Interval=Interval,t.InvalidZone=InvalidZone,t.Settings=Settings,t.SystemZone=SystemZone,t.VERSION="3.4.4",t.Zone=Zone},6484:(e,t,r)=>{const i=r(3250),n=r(5282),s=r(6940),o=r(1169);function renderCanvas(e,t,r,s,o){const a=[].slice.call(arguments,1),c=a.length,u="function"==typeof a[c-1];if(!u&&!i())throw new Error("Callback required as last argument");if(!u){if(c<1)throw new Error("Too few arguments provided");return 1===c?(r=t,t=s=void 0):2!==c||t.getContext||(s=r,r=t,t=void 0),new Promise((function(i,o){try{const o=n.create(r,s);i(e(o,t,s))}catch(e){o(e)}}))}if(c<2)throw new Error("Too few arguments provided");2===c?(o=r,r=t,t=s=void 0):3===c&&(t.getContext&&void 0===o?(o=s,s=void 0):(o=s,s=r,r=t,t=void 0));try{const i=n.create(r,s);o(null,e(i,t,s))}catch(e){o(e)}}t.create=n.create,t.toCanvas=renderCanvas.bind(null,s.render),t.toDataURL=renderCanvas.bind(null,s.renderToDataURL),t.toString=renderCanvas.bind(null,(function(e,t,r){return o.render(e,r)}))},3250:e=>{e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},4240:(e,t,r)=>{const i=r(6667).getSymbolSize;t.getRowColCoords=function getRowColCoords(e){if(1===e)return[];const t=Math.floor(e/7)+2,r=i(e),n=145===r?26:2*Math.ceil((r-13)/(2*t-2)),s=[r-7];for(let e=1;e<t-1;e++)s[e]=s[e-1]-n;return s.push(6),s.reverse()},t.getPositions=function getPositions(e){const r=[],i=t.getRowColCoords(e),n=i.length;for(let e=0;e<n;e++)for(let t=0;t<n;t++)0===e&&0===t||0===e&&t===n-1||e===n-1&&0===t||r.push([i[e],i[t]]);return r}},532:(e,t,r)=>{const i=r(8491),n=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function AlphanumericData(e){this.mode=i.ALPHANUMERIC,this.data=e}AlphanumericData.getBitsLength=function getBitsLength(e){return 11*Math.floor(e/2)+e%2*6},AlphanumericData.prototype.getLength=function getLength(){return this.data.length},AlphanumericData.prototype.getBitsLength=function getBitsLength(){return AlphanumericData.getBitsLength(this.data.length)},AlphanumericData.prototype.write=function write(e){let t;for(t=0;t+2<=this.data.length;t+=2){let r=45*n.indexOf(this.data[t]);r+=n.indexOf(this.data[t+1]),e.put(r,11)}this.data.length%2&&e.put(n.indexOf(this.data[t]),6)},e.exports=AlphanumericData},2100:e=>{function BitBuffer(){this.buffer=[],this.length=0}BitBuffer.prototype={get:function(e){const t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let r=0;r<t;r++)this.putBit(1==(e>>>t-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=BitBuffer},2839:e=>{function BitMatrix(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}BitMatrix.prototype.set=function(e,t,r,i){const n=e*this.size+t;this.data[n]=r,i&&(this.reservedBit[n]=!0)},BitMatrix.prototype.get=function(e,t){return this.data[e*this.size+t]},BitMatrix.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r},BitMatrix.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=BitMatrix},7787:(e,t,r)=>{const i=r(5012),n=r(8491);function ByteData(e){this.mode=n.BYTE,"string"==typeof e&&(e=i(e)),this.data=new Uint8Array(e)}ByteData.getBitsLength=function getBitsLength(e){return 8*e},ByteData.prototype.getLength=function getLength(){return this.data.length},ByteData.prototype.getBitsLength=function getBitsLength(){return ByteData.getBitsLength(this.data.length)},ByteData.prototype.write=function(e){for(let t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)},e.exports=ByteData},583:(e,t,r)=>{const i=r(9082),n=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],s=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function getBlocksCount(e,t){switch(t){case i.L:return n[4*(e-1)+0];case i.M:return n[4*(e-1)+1];case i.Q:return n[4*(e-1)+2];case i.H:return n[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function getTotalCodewordsCount(e,t){switch(t){case i.L:return s[4*(e-1)+0];case i.M:return s[4*(e-1)+1];case i.Q:return s[4*(e-1)+2];case i.H:return s[4*(e-1)+3];default:return}}},9082:(e,t)=>{t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function isValid(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function from(e,r){if(t.isValid(e))return e;try{return function fromString(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(e){return r}}},3827:(e,t,r)=>{const i=r(6667).getSymbolSize;t.getPositions=function getPositions(e){const t=i(e);return[[0,0],[t-7,0],[0,t-7]]}},6068:(e,t,r)=>{const i=r(6667),n=i.getBCHDigit(1335);t.getEncodedBits=function getEncodedBits(e,t){const r=e.bit<<3|t;let s=r<<10;for(;i.getBCHDigit(s)-n>=0;)s^=1335<<i.getBCHDigit(s)-n;return 21522^(r<<10|s)}},5072:(e,t)=>{const r=new Uint8Array(512),i=new Uint8Array(256);!function initTables(){let e=1;for(let t=0;t<255;t++)r[t]=e,i[e]=t,e<<=1,256&e&&(e^=285);for(let e=255;e<512;e++)r[e]=r[e-255]}(),t.log=function log(e){if(e<1)throw new Error("log("+e+")");return i[e]},t.exp=function exp(e){return r[e]},t.mul=function mul(e,t){return 0===e||0===t?0:r[i[e]+i[t]]}},4822:(e,t,r)=>{const i=r(8491),n=r(6667);function KanjiData(e){this.mode=i.KANJI,this.data=e}KanjiData.getBitsLength=function getBitsLength(e){return 13*e},KanjiData.prototype.getLength=function getLength(){return this.data.length},KanjiData.prototype.getBitsLength=function getBitsLength(){return KanjiData.getBitsLength(this.data.length)},KanjiData.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let r=n.toSJIS(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");r-=49472}r=192*(r>>>8&255)+(255&r),e.put(r,13)}},e.exports=KanjiData},8587:(e,t)=>{t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const r=3,i=3,n=40,s=10;function getMaskAt(e,r,i){switch(e){case t.Patterns.PATTERN000:return(r+i)%2==0;case t.Patterns.PATTERN001:return r%2==0;case t.Patterns.PATTERN010:return i%3==0;case t.Patterns.PATTERN011:return(r+i)%3==0;case t.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(i/3))%2==0;case t.Patterns.PATTERN101:return r*i%2+r*i%3==0;case t.Patterns.PATTERN110:return(r*i%2+r*i%3)%2==0;case t.Patterns.PATTERN111:return(r*i%3+(r+i)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function isValid(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function from(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function getPenaltyN1(e){const t=e.size;let i=0,n=0,s=0,o=null,a=null;for(let c=0;c<t;c++){n=s=0,o=a=null;for(let u=0;u<t;u++){let t=e.get(c,u);t===o?n++:(n>=5&&(i+=r+(n-5)),o=t,n=1),t=e.get(u,c),t===a?s++:(s>=5&&(i+=r+(s-5)),a=t,s=1)}n>=5&&(i+=r+(n-5)),s>=5&&(i+=r+(s-5))}return i},t.getPenaltyN2=function getPenaltyN2(e){const t=e.size;let r=0;for(let i=0;i<t-1;i++)for(let n=0;n<t-1;n++){const t=e.get(i,n)+e.get(i,n+1)+e.get(i+1,n)+e.get(i+1,n+1);4!==t&&0!==t||r++}return r*i},t.getPenaltyN3=function getPenaltyN3(e){const t=e.size;let r=0,i=0,s=0;for(let n=0;n<t;n++){i=s=0;for(let o=0;o<t;o++)i=i<<1&2047|e.get(n,o),o>=10&&(1488===i||93===i)&&r++,s=s<<1&2047|e.get(o,n),o>=10&&(1488===s||93===s)&&r++}return r*n},t.getPenaltyN4=function getPenaltyN4(e){let t=0;const r=e.data.length;for(let i=0;i<r;i++)t+=e.data[i];return Math.abs(Math.ceil(100*t/r/5)-10)*s},t.applyMask=function applyMask(e,t){const r=t.size;for(let i=0;i<r;i++)for(let n=0;n<r;n++)t.isReserved(n,i)||t.xor(n,i,getMaskAt(e,n,i))},t.getBestMask=function getBestMask(e,r){const i=Object.keys(t.Patterns).length;let n=0,s=1/0;for(let o=0;o<i;o++){r(o),t.applyMask(o,e);const i=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(o,e),i<s&&(s=i,n=o)}return n}},8491:(e,t,r)=>{const i=r(119),n=r(7165);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function getCharCountIndicator(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!i.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function getBestModeForData(e){return n.testNumeric(e)?t.NUMERIC:n.testAlphanumeric(e)?t.ALPHANUMERIC:n.testKanji(e)?t.KANJI:t.BYTE},t.toString=function toString(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function isValid(e){return e&&e.bit&&e.ccBits},t.from=function from(e,r){if(t.isValid(e))return e;try{return function fromString(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(e){return r}}},3410:(e,t,r)=>{const i=r(8491);function NumericData(e){this.mode=i.NUMERIC,this.data=e.toString()}NumericData.getBitsLength=function getBitsLength(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},NumericData.prototype.getLength=function getLength(){return this.data.length},NumericData.prototype.getBitsLength=function getBitsLength(){return NumericData.getBitsLength(this.data.length)},NumericData.prototype.write=function write(e){let t,r,i;for(t=0;t+3<=this.data.length;t+=3)r=this.data.substr(t,3),i=parseInt(r,10),e.put(i,10);const n=this.data.length-t;n>0&&(r=this.data.substr(t),i=parseInt(r,10),e.put(i,3*n+1))},e.exports=NumericData},4470:(e,t,r)=>{const i=r(5072);t.mul=function mul(e,t){const r=new Uint8Array(e.length+t.length-1);for(let n=0;n<e.length;n++)for(let s=0;s<t.length;s++)r[n+s]^=i.mul(e[n],t[s]);return r},t.mod=function mod(e,t){let r=new Uint8Array(e);for(;r.length-t.length>=0;){const e=r[0];for(let n=0;n<t.length;n++)r[n]^=i.mul(t[n],e);let n=0;for(;n<r.length&&0===r[n];)n++;r=r.slice(n)}return r},t.generateECPolynomial=function generateECPolynomial(e){let r=new Uint8Array([1]);for(let n=0;n<e;n++)r=t.mul(r,new Uint8Array([1,i.exp(n)]));return r}},5282:(e,t,r)=>{const i=r(6667),n=r(9082),s=r(2100),o=r(2839),a=r(4240),c=r(3827),u=r(8587),l=r(583),p=r(4339),d=r(4542),f=r(6068),y=r(8491),h=r(7958);function setupFormatInfo(e,t,r){const i=e.size,n=f.getEncodedBits(t,r);let s,o;for(s=0;s<15;s++)o=1==(n>>s&1),s<6?e.set(s,8,o,!0):s<8?e.set(s+1,8,o,!0):e.set(i-15+s,8,o,!0),s<8?e.set(8,i-s-1,o,!0):s<9?e.set(8,15-s-1+1,o,!0):e.set(8,15-s-1,o,!0);e.set(i-8,8,1,!0)}function createData(e,t,r){const n=new s;r.forEach((function(t){n.put(t.mode.bit,4),n.put(t.getLength(),y.getCharCountIndicator(t.mode,e)),t.write(n)}));const o=8*(i.getSymbolTotalCodewords(e)-l.getTotalCodewordsCount(e,t));for(n.getLengthInBits()+4<=o&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(0);const a=(o-n.getLengthInBits())/8;for(let e=0;e<a;e++)n.put(e%2?17:236,8);return function createCodewords(e,t,r){const n=i.getSymbolTotalCodewords(t),s=l.getTotalCodewordsCount(t,r),o=n-s,a=l.getBlocksCount(t,r),c=n%a,u=a-c,d=Math.floor(n/a),f=Math.floor(o/a),y=f+1,h=d-f,g=new p(h);let m=0;const v=new Array(a),b=new Array(a);let R=0;const O=new Uint8Array(e.buffer);for(let e=0;e<a;e++){const t=e<u?f:y;v[e]=O.slice(m,m+t),b[e]=g.encode(v[e]),m+=t,R=Math.max(R,t)}const S=new Uint8Array(n);let I,w,P=0;for(I=0;I<R;I++)for(w=0;w<a;w++)I<v[w].length&&(S[P++]=v[w][I]);for(I=0;I<h;I++)for(w=0;w<a;w++)S[P++]=b[w][I];return S}(n,e,t)}function createSymbol(e,t,r,n){let s;if(Array.isArray(e))s=h.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");{let i=t;if(!i){const t=h.rawSplit(e);i=d.getBestVersionForData(t,r)}s=h.fromString(e,i||40)}}const l=d.getBestVersionForData(s,r);if(!l)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<l)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+l+".\n")}else t=l;const p=createData(t,r,s),f=i.getSymbolSize(t),y=new o(f);return function setupFinderPattern(e,t){const r=e.size,i=c.getPositions(t);for(let t=0;t<i.length;t++){const n=i[t][0],s=i[t][1];for(let t=-1;t<=7;t++)if(!(n+t<=-1||r<=n+t))for(let i=-1;i<=7;i++)s+i<=-1||r<=s+i||(t>=0&&t<=6&&(0===i||6===i)||i>=0&&i<=6&&(0===t||6===t)||t>=2&&t<=4&&i>=2&&i<=4?e.set(n+t,s+i,!0,!0):e.set(n+t,s+i,!1,!0))}}(y,t),function setupTimingPattern(e){const t=e.size;for(let r=8;r<t-8;r++){const t=r%2==0;e.set(r,6,t,!0),e.set(6,r,t,!0)}}(y),function setupAlignmentPattern(e,t){const r=a.getPositions(t);for(let t=0;t<r.length;t++){const i=r[t][0],n=r[t][1];for(let t=-2;t<=2;t++)for(let r=-2;r<=2;r++)-2===t||2===t||-2===r||2===r||0===t&&0===r?e.set(i+t,n+r,!0,!0):e.set(i+t,n+r,!1,!0)}}(y,t),setupFormatInfo(y,r,0),t>=7&&function setupVersionInfo(e,t){const r=e.size,i=d.getEncodedBits(t);let n,s,o;for(let t=0;t<18;t++)n=Math.floor(t/3),s=t%3+r-8-3,o=1==(i>>t&1),e.set(n,s,o,!0),e.set(s,n,o,!0)}(y,t),function setupData(e,t){const r=e.size;let i=-1,n=r-1,s=7,o=0;for(let a=r-1;a>0;a-=2)for(6===a&&a--;;){for(let r=0;r<2;r++)if(!e.isReserved(n,a-r)){let i=!1;o<t.length&&(i=1==(t[o]>>>s&1)),e.set(n,a-r,i),s--,-1===s&&(o++,s=7)}if(n+=i,n<0||r<=n){n-=i,i=-i;break}}}(y,p),isNaN(n)&&(n=u.getBestMask(y,setupFormatInfo.bind(null,y,r))),u.applyMask(n,y),setupFormatInfo(y,r,n),{modules:y,version:t,errorCorrectionLevel:r,maskPattern:n,segments:s}}t.create=function create(e,t){if(void 0===e||""===e)throw new Error("No input text");let r,s,o=n.M;return void 0!==t&&(o=n.from(t.errorCorrectionLevel,n.M),r=d.from(t.version),s=u.from(t.maskPattern),t.toSJISFunc&&i.setToSJISFunction(t.toSJISFunc)),createSymbol(e,r,o,s)}},4339:(e,t,r)=>{const i=r(4470);function ReedSolomonEncoder(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}ReedSolomonEncoder.prototype.initialize=function initialize(e){this.degree=e,this.genPoly=i.generateECPolynomial(this.degree)},ReedSolomonEncoder.prototype.encode=function encode(e){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(e.length+this.degree);t.set(e);const r=i.mod(t,this.genPoly),n=this.degree-r.length;if(n>0){const e=new Uint8Array(this.degree);return e.set(r,n),e}return r},e.exports=ReedSolomonEncoder},7165:(e,t)=>{const r="[0-9]+";let i="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";i=i.replace(/u/g,"\\u");const n="(?:(?![A-Z0-9 $%*+\\-./:]|"+i+")(?:.|[\r\n]))+";t.KANJI=new RegExp(i,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(n,"g"),t.NUMERIC=new RegExp(r,"g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const s=new RegExp("^"+i+"$"),o=new RegExp("^"+r+"$"),a=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function testKanji(e){return s.test(e)},t.testNumeric=function testNumeric(e){return o.test(e)},t.testAlphanumeric=function testAlphanumeric(e){return a.test(e)}},7958:(e,t,r)=>{const i=r(8491),n=r(3410),s=r(532),o=r(7787),a=r(4822),c=r(7165),u=r(6667),l=r(3005);function getStringByteLength(e){return unescape(encodeURIComponent(e)).length}function getSegments(e,t,r){const i=[];let n;for(;null!==(n=e.exec(r));)i.push({data:n[0],index:n.index,mode:t,length:n[0].length});return i}function getSegmentsFromString(e){const t=getSegments(c.NUMERIC,i.NUMERIC,e),r=getSegments(c.ALPHANUMERIC,i.ALPHANUMERIC,e);let n,s;u.isKanjiModeEnabled()?(n=getSegments(c.BYTE,i.BYTE,e),s=getSegments(c.KANJI,i.KANJI,e)):(n=getSegments(c.BYTE_KANJI,i.BYTE,e),s=[]);return t.concat(r,n,s).sort((function(e,t){return e.index-t.index})).map((function(e){return{data:e.data,mode:e.mode,length:e.length}}))}function getSegmentBitsLength(e,t){switch(t){case i.NUMERIC:return n.getBitsLength(e);case i.ALPHANUMERIC:return s.getBitsLength(e);case i.KANJI:return a.getBitsLength(e);case i.BYTE:return o.getBitsLength(e)}}function buildSingleSegment(e,t){let r;const c=i.getBestModeForData(e);if(r=i.from(t,c),r!==i.BYTE&&r.bit<c.bit)throw new Error('"'+e+'" cannot be encoded with mode '+i.toString(r)+".\n Suggested mode is: "+i.toString(c));switch(r!==i.KANJI||u.isKanjiModeEnabled()||(r=i.BYTE),r){case i.NUMERIC:return new n(e);case i.ALPHANUMERIC:return new s(e);case i.KANJI:return new a(e);case i.BYTE:return new o(e)}}t.fromArray=function fromArray(e){return e.reduce((function(e,t){return"string"==typeof t?e.push(buildSingleSegment(t,null)):t.data&&e.push(buildSingleSegment(t.data,t.mode)),e}),[])},t.fromString=function fromString(e,r){const n=function buildNodes(e){const t=[];for(let r=0;r<e.length;r++){const n=e[r];switch(n.mode){case i.NUMERIC:t.push([n,{data:n.data,mode:i.ALPHANUMERIC,length:n.length},{data:n.data,mode:i.BYTE,length:n.length}]);break;case i.ALPHANUMERIC:t.push([n,{data:n.data,mode:i.BYTE,length:n.length}]);break;case i.KANJI:t.push([n,{data:n.data,mode:i.BYTE,length:getStringByteLength(n.data)}]);break;case i.BYTE:t.push([{data:n.data,mode:i.BYTE,length:getStringByteLength(n.data)}])}}return t}(getSegmentsFromString(e,u.isKanjiModeEnabled())),s=function buildGraph(e,t){const r={},n={start:{}};let s=["start"];for(let o=0;o<e.length;o++){const a=e[o],c=[];for(let e=0;e<a.length;e++){const u=a[e],l=""+o+e;c.push(l),r[l]={node:u,lastCount:0},n[l]={};for(let e=0;e<s.length;e++){const o=s[e];r[o]&&r[o].node.mode===u.mode?(n[o][l]=getSegmentBitsLength(r[o].lastCount+u.length,u.mode)-getSegmentBitsLength(r[o].lastCount,u.mode),r[o].lastCount+=u.length):(r[o]&&(r[o].lastCount=u.length),n[o][l]=getSegmentBitsLength(u.length,u.mode)+4+i.getCharCountIndicator(u.mode,t))}}s=c}for(let e=0;e<s.length;e++)n[s[e]].end=0;return{map:n,table:r}}(n,r),o=l.find_path(s.map,"start","end"),a=[];for(let e=1;e<o.length-1;e++)a.push(s.table[o[e]].node);return t.fromArray(function mergeSegments(e){return e.reduce((function(e,t){const r=e.length-1>=0?e[e.length-1]:null;return r&&r.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[])}(a))},t.rawSplit=function rawSplit(e){return t.fromArray(getSegmentsFromString(e,u.isKanjiModeEnabled()))}},6667:(e,t)=>{let r;const i=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function getSymbolSize(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function getSymbolTotalCodewords(e){return i[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function setToSJISFunction(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');r=e},t.isKanjiModeEnabled=function(){return void 0!==r},t.toSJIS=function toSJIS(e){return r(e)}},119:(e,t)=>{t.isValid=function isValid(e){return!isNaN(e)&&e>=1&&e<=40}},4542:(e,t,r)=>{const i=r(6667),n=r(583),s=r(9082),o=r(8491),a=r(119),c=i.getBCHDigit(7973);function getReservedBitsCount(e,t){return o.getCharCountIndicator(e,t)+4}function getTotalBitsFromDataArray(e,t){let r=0;return e.forEach((function(e){const i=getReservedBitsCount(e.mode,t);r+=i+e.getBitsLength()})),r}t.from=function from(e,t){return a.isValid(e)?parseInt(e,10):t},t.getCapacity=function getCapacity(e,t,r){if(!a.isValid(e))throw new Error("Invalid QR Code version");void 0===r&&(r=o.BYTE);const s=8*(i.getSymbolTotalCodewords(e)-n.getTotalCodewordsCount(e,t));if(r===o.MIXED)return s;const c=s-getReservedBitsCount(r,e);switch(r){case o.NUMERIC:return Math.floor(c/10*3);case o.ALPHANUMERIC:return Math.floor(c/11*2);case o.KANJI:return Math.floor(c/13);case o.BYTE:default:return Math.floor(c/8)}},t.getBestVersionForData=function getBestVersionForData(e,r){let i;const n=s.from(r,s.M);if(Array.isArray(e)){if(e.length>1)return function getBestVersionForMixedData(e,r){for(let i=1;i<=40;i++)if(getTotalBitsFromDataArray(e,i)<=t.getCapacity(i,r,o.MIXED))return i}(e,n);if(0===e.length)return 1;i=e[0]}else i=e;return function getBestVersionForDataLength(e,r,i){for(let n=1;n<=40;n++)if(r<=t.getCapacity(n,i,e))return n}(i.mode,i.getLength(),n)},t.getEncodedBits=function getEncodedBits(e){if(!a.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;i.getBCHDigit(t)-c>=0;)t^=7973<<i.getBCHDigit(t)-c;return e<<12|t}},6940:(e,t,r)=>{const i=r(4675);t.render=function render(e,t,r){let n=r,s=t;void 0!==n||t&&t.getContext||(n=t,t=void 0),t||(s=function getCanvasElement(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),n=i.getOptions(n);const o=i.getImageWidth(e.modules.size,n),a=s.getContext("2d"),c=a.createImageData(o,o);return i.qrToImageData(c.data,e,n),function clearCanvas(e,t,r){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=r,t.width=r,t.style.height=r+"px",t.style.width=r+"px"}(a,s,o),a.putImageData(c,0,0),s},t.renderToDataURL=function renderToDataURL(e,r,i){let n=i;void 0!==n||r&&r.getContext||(n=r,r=void 0),n||(n={});const s=t.render(e,r,n),o=n.type||"image/png",a=n.rendererOpts||{};return s.toDataURL(o,a.quality)}},1169:(e,t,r)=>{const i=r(4675);function getColorAttrib(e,t){const r=e.a/255,i=t+'="'+e.hex+'"';return r<1?i+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':i}function svgCmd(e,t,r){let i=e+t;return void 0!==r&&(i+=" "+r),i}t.render=function render(e,t,r){const n=i.getOptions(t),s=e.modules.size,o=e.modules.data,a=s+2*n.margin,c=n.color.light.a?"<path "+getColorAttrib(n.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",u="<path "+getColorAttrib(n.color.dark,"stroke")+' d="'+function qrToPath(e,t,r){let i="",n=0,s=!1,o=0;for(let a=0;a<e.length;a++){const c=Math.floor(a%t),u=Math.floor(a/t);c||s||(s=!0),e[a]?(o++,a>0&&c>0&&e[a-1]||(i+=s?svgCmd("M",c+r,.5+u+r):svgCmd("m",n,0),n=0,s=!1),c+1<t&&e[a+1]||(i+=svgCmd("h",o),o=0)):n++}return i}(o,s,n.margin)+'"/>',l='viewBox="0 0 '+a+" "+a+'"',p='<svg xmlns="http://www.w3.org/2000/svg" '+(n.width?'width="'+n.width+'" height="'+n.width+'" ':"")+l+' shape-rendering="crispEdges">'+c+u+"</svg>\n";return"function"==typeof r&&r(null,p),p}},4675:(e,t)=>{function hex2rgba(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F");const r=parseInt(t.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function getOptions(e){e||(e={}),e.color||(e.color={});const t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:r,scale:r?4:i,margin:t,color:{dark:hex2rgba(e.color.dark||"#000000ff"),light:hex2rgba(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function getScale(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function getImageWidth(e,r){const i=t.getScale(e,r);return Math.floor((e+2*r.margin)*i)},t.qrToImageData=function qrToImageData(e,r,i){const n=r.modules.size,s=r.modules.data,o=t.getScale(n,i),a=Math.floor((n+2*i.margin)*o),c=i.margin*o,u=[i.color.light,i.color.dark];for(let t=0;t<a;t++)for(let r=0;r<a;r++){let l=4*(t*a+r),p=i.color.light;if(t>=c&&r>=c&&t<a-c&&r<a-c){p=u[s[Math.floor((t-c)/o)*n+Math.floor((r-c)/o)]?1:0]}e[l++]=p.r,e[l++]=p.g,e[l++]=p.b,e[l]=p.a}}},889:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nameof=void 0;var i=r(3524);Object.defineProperty(t,"nameof",{enumerable:!0,get:function(){return i.nameof}})},3524:(e,t)=>{"use strict";function cleanseAssertionOperators(e){return e.replace(/[?!]/g,"")}Object.defineProperty(t,"__esModule",{value:!0}),t.nameof=void 0,t.nameof=function nameof(e,t){var r=e.toString();if(r.startsWith("class ")&&!r.startsWith("class =>"))return cleanseAssertionOperators(r.substring(6,r.indexOf(" {")));if(r.includes("=>"))return cleanseAssertionOperators(r.substring(r.indexOf(".")+1));var i=r.match(/function\s*\(\w+\)\s*\{[\r\n\s]*return\s+\w+\.((\w+\.)*(\w+))/i);if(i)return t&&t.lastProp?i[3]:i[1];if(r.startsWith("function "))return cleanseAssertionOperators(r.substring(9,r.indexOf("(")));throw new Error("ts-simple-nameof: Invalid function.")}},7556:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(9206),n=r(4595),s=r(5157),o=r(6281);class IoCBindConfig{constructor(e,t,r){this.source=e,this.instanceFactory=t,this.valueFactory=r}to(e){i.InjectorHandler.checkType(e);const t=i.InjectorHandler.getConstructorFromType(e);return this.targetSource=t,this.source===t?this.factory((t=>{const r=this.getParameters(t),i=this.decoratedConstructor||e;return r?new i(...r):new i})):this.factory((t=>this.instanceFactory(e,t))),this}factory(e){return this.iocFactory=t=>{const r=i.InjectorHandler.unblockInstantiation(),n=this.decoratedConstructor||this.targetSource||this.source;i.InjectorHandler.injectContext(n,t);const s=e(t);return i.InjectorHandler.removeContext(n),i.InjectorHandler.injectContext(s,t),i.InjectorHandler.blockInstantiation(r),s},this.iocScope&&this.iocScope.reset(this.source),this}scope(e){return this.iocScope&&this.iocScope!==e&&this.iocScope.finish(this.source),this.iocScope=e,this.iocScope&&this.iocScope.init(this.source),this}withParams(...e){return this.paramTypes=e,this}instrumentConstructor(){const e=i.InjectorHandler.instrumentConstructor(this.source);return this.decoratedConstructor=e,this.source.constructor=e,this}getInstance(e){return this.iocScope||this.scope(n.Scope.Local),this.iocScope.resolve(this.iocFactory,this.source,e)}clone(){const e=new IoCBindConfig(this.source,this.instanceFactory,this.valueFactory);return e.iocFactory=this.iocFactory,e.iocScope=this.iocScope,e.targetSource=this.targetSource,e.paramTypes=this.paramTypes,e.decoratedConstructor=this.decoratedConstructor,e}getParameters(e){return this.paramTypes?this.paramTypes.map((t=>"string"==typeof t||t instanceof String?this.valueFactory(t):this.instanceFactory(t,e))):null}}t.IoCBindConfig=IoCBindConfig;class IoCBindValueConfig{constructor(e){this.name=e}to(e){return this.path?(this.value=this.value||{},o(this.value,this.path,e)):this.value=e,this}getValue(){return this.path?s(this.value,this.path):this.value}clone(){const e=new IoCBindValueConfig(this.name);return e.path=this.path,e.value=this.value,e}}t.IoCBindValueConfig=IoCBindValueConfig;class PropertyPath{constructor(e,t){this.name=e,this.path=t}static parse(e){const t=e.indexOf(".");if(t<0)return new PropertyPath(e);if(0===t)throw new TypeError(`Invalid value [${e}] passed to Container.bindName`);return t+1<e.length?new PropertyPath(e.substring(0,t),e.substring(t+1)):new PropertyPath(e.substring(0,t))}}t.PropertyPath=PropertyPath},8050:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ContainerNamespaces=class ContainerNamespaces{constructor(){this.defaultNamespace=new NamespaceBindings(null),this.namespaces=new Map}get(e){let t;return this.currentNamespace&&(t=this.currentNamespace.get(e),t)?t:this.defaultNamespace.get(e)}set(e,t){(this.currentNamespace||this.defaultNamespace).set(e,t)}getValue(e){let t;return this.currentNamespace&&(t=this.currentNamespace.getValue(e),t)?t:this.defaultNamespace.getValue(e)}setValue(e,t){(this.currentNamespace||this.defaultNamespace).setValue(e,t)}selectNamespace(e){if(e){let t=this.namespaces.get(e);t||(t=new NamespaceBindings(e),this.namespaces.set(e,t)),this.currentNamespace=t}else this.currentNamespace=null}removeNamespace(e){const t=this.namespaces.get(e);t&&(this.currentNamespace&&t.name===this.currentNamespace.name&&(this.currentNamespace=null),t.clear(),this.namespaces.delete(e))}selectedNamespace(){return this.currentNamespace?this.currentNamespace.name:null}};class NamespaceBindings{constructor(e){this.bindings=new Map,this.values=new Map,this.name=e}get(e){return this.bindings.get(e)}set(e,t){t.namespace=this.name,this.bindings.set(e,t)}getValue(e){return this.values.get(e)}setValue(e,t){t.namespace=this.name,this.values.set(e,t)}clear(){this.bindings.clear(),this.values.clear()}}},2909:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(9206),n=r(7556),s=r(8050);class IoCContainer{static bind(e,t=!1){i.InjectorHandler.checkType(e);const r=i.InjectorHandler.getConstructorFromType(e);let s=IoCContainer.namespaces.get(r);return s?t||s.namespace===IoCContainer.namespaces.selectedNamespace()||(s=s.clone(),IoCContainer.namespaces.set(r,s)):(s=new n.IoCBindConfig(r,IoCContainer.get,IoCContainer.getValue),s.to(e),IoCContainer.namespaces.set(r,s)),s}static bindName(e,t=!1){i.InjectorHandler.checkName(e);const r=n.PropertyPath.parse(e);let s=IoCContainer.namespaces.getValue(r.name);return s?t||s.namespace===IoCContainer.namespaces.selectedNamespace()||(s=s.clone(),IoCContainer.namespaces.setValue(r.name,s)):(s=new n.IoCBindValueConfig(r.name),IoCContainer.namespaces.setValue(r.name,s)),s.path=r.path,s}static get(e,t){const r=IoCContainer.bind(e,!0);return r.iocFactory||r.to(r.source),r.getInstance(t)}static getValue(e){return IoCContainer.bindName(e,!0).getValue()}static getType(e){i.InjectorHandler.checkType(e);const t=i.InjectorHandler.getConstructorFromType(e),r=IoCContainer.namespaces.get(t);if(!r)throw new TypeError(`The type ${e.name} hasn't been registered with the IOC Container`);return r.targetSource||r.source}static namespace(e){return IoCContainer.namespaces.selectNamespace(e),{remove:()=>{e&&IoCContainer.namespaces.removeNamespace(e)}}}static selectedNamespace(){return IoCContainer.namespaces.selectedNamespace()}static injectProperty(e,t,r){i.InjectorHandler.injectProperty(e,t,r,IoCContainer.get)}static injectValueProperty(e,t,r){i.InjectorHandler.injectValueProperty(e,t,r,IoCContainer.getValue)}static snapshot(){const e="_snapshot-"+IoCContainer.snapshotsCount++,t=IoCContainer.namespace(e);return{restore:()=>t.remove(),select:()=>IoCContainer.namespace(e)}}}t.IoCContainer=IoCContainer,IoCContainer.namespaces=new s.ContainerNamespaces,IoCContainer.snapshotsCount=0},9206:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r="__BuildContext";class InjectorHandler{static instrumentConstructor(e){let t;return t=class ioc_wrapper extends e{constructor(...e){super(...e),InjectorHandler.assertInstantiable()}},t.__parent=e,t}static blockInstantiation(e){InjectorHandler.instantiationsBlocked=e}static unblockInstantiation(){const e=InjectorHandler.instantiationsBlocked;return InjectorHandler.instantiationsBlocked=!1,e}static getConstructorFromType(e){let t=e;if(this.hasNamedConstructor(t))return t;for(t=t.__parent;t;){if(this.hasNamedConstructor(t))return t;t=t.__parent}throw TypeError("Can not identify the base Type for requested target "+e.toString())}static checkType(e){if(!e)throw new TypeError("Invalid type requested to IoC container. Type is not defined.")}static checkName(e){if(!e)throw new TypeError("Invalid name requested to IoC container. Name is not defined.")}static injectContext(e,t){e[r]=t}static removeContext(e){delete e[r]}static injectProperty(e,t,i,n){const s=`__${t}`;Object.defineProperty(e.prototype,t,{enumerable:!0,get:function(){const t=this[r]||e[r];return this[s]?this[s]:this[s]=n(i,t)},set:function(e){this[s]=e}})}static injectValueProperty(e,t,r,i){const n=`__${t}`;Object.defineProperty(e.prototype,t,{enumerable:!0,get:function(){return this[n]?this[n]:this[n]=i(r)},set:function(e){this[n]=e}})}static hasNamedConstructor(e){if(e.name)return"ioc_wrapper"!==e.name;try{const t=e.prototype.constructor.toString().match(this.constructorNameRegEx)[1];return t&&"ioc_wrapper"!==t}catch(e){}return!1}static assertInstantiable(){if(InjectorHandler.instantiationsBlocked)throw new TypeError("Can not instantiate it. The instantiation is blocked for this class. Ask Container for it, using Container.get")}}t.InjectorHandler=InjectorHandler,InjectorHandler.constructorNameRegEx=/function (\w*)/,InjectorHandler.instantiationsBlocked=!0},6906:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8205);const i=r(2909),n=r(4595);function InjectPropertyDecorator(e,t){let r=Reflect.getMetadata("design:type",e,t);r||(r=Reflect.getMetadata("design:type",e.constructor,t)),i.IoCContainer.injectProperty(e.constructor,t,r)}function InjectParamDecorator(e,t,r){if(!t){const t=i.IoCContainer.bind(e);t.paramTypes=t.paramTypes||[];const n=Reflect.getMetadata("design:paramtypes",e);t.paramTypes.unshift(n[r])}}function InjectValuePropertyDecorator(e,t,r){i.IoCContainer.injectValueProperty(e.constructor,t,r)}function InjectValueParamDecorator(e,t,r,n){if(!t){const t=i.IoCContainer.bind(e);t.paramTypes=t.paramTypes||[],t.paramTypes.unshift(n)}}t.InRequestScope=function InRequestScope(e){i.IoCContainer.bind(e).scope(n.Scope.Request)},t.Singleton=function Singleton(e){i.IoCContainer.bind(e).scope(n.Scope.Singleton)},t.OnlyInstantiableByContainer=function OnlyInstantiableByContainer(e){return i.IoCContainer.bind(e).instrumentConstructor().decoratedConstructor},t.Scoped=function Scoped(e){return t=>{i.IoCContainer.bind(t).scope(e)}},t.Factory=function Factory(e){return t=>{i.IoCContainer.bind(t).factory(e)}},t.Inject=function Inject(...e){if(2===e.length||3===e.length&&void 0===e[2])return InjectPropertyDecorator.apply(this,e);if(3===e.length&&"number"==typeof e[2])return InjectParamDecorator.apply(this,e);throw new TypeError("Invalid @Inject Decorator declaration.")},t.InjectValue=function InjectValue(e){return(...t)=>{if(2===t.length||3===t.length&&void 0===t[2]){const r=[...t,e].filter((e=>!!e));return InjectValuePropertyDecorator.apply(this,r)}if(3===t.length&&"number"==typeof t[2])return InjectValueParamDecorator.apply(this,[...t,e]);throw new TypeError("Invalid @InjectValue Decorator declaration.")}}},4595:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Scope=class Scope{reset(e){}init(e){}finish(e){}};t.BuildContext=class BuildContext{}},8781:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=r(9206),n=r(4595);class LocalScope extends n.Scope{resolve(e,t,r){return e(r)}}t.LocalScope=LocalScope;class SingletonScope extends n.Scope{resolve(e,t,r){let i=SingletonScope.instances.get(t);return i||(i=e(r),SingletonScope.instances.set(t,i)),i}reset(e){SingletonScope.instances.delete(i.InjectorHandler.getConstructorFromType(e))}init(e){this.reset(e)}finish(e){this.reset(e)}}t.SingletonScope=SingletonScope,SingletonScope.instances=new Map;class RequestScope extends n.Scope{resolve(e,t,r){return this.ensureContext(r),r.build(t,e)}ensureContext(e){if(!e)throw new TypeError("IoC Container can not handle this request. When using @InRequestScope in any dependent type, you should be askking to Container to create the instances through Container.get and not calling the type constructor directly.")}}t.RequestScope=RequestScope},1699:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(8205);const i=r(4595);t.Scope=i.Scope,t.BuildContext=i.BuildContext;const n=r(2909),s=r(8781);var o=r(6906);t.Inject=o.Inject,t.Factory=o.Factory,t.Singleton=o.Singleton,t.Scoped=o.Scoped,t.OnlyInstantiableByContainer=o.OnlyInstantiableByContainer,t.InRequestScope=o.InRequestScope,t.InjectValue=o.InjectValue,i.Scope.Local=new s.LocalScope,i.Scope.Singleton=new s.SingletonScope,i.Scope.Request=new s.RequestScope;class Container{static bind(e){return n.IoCContainer.bind(e)}static get(e){return n.IoCContainer.get(e,new ContainerBuildContext)}static getType(e){return n.IoCContainer.getType(e)}static bindName(e){return n.IoCContainer.bindName(e)}static getValue(e){return n.IoCContainer.getValue(e)}static namespace(e){return n.IoCContainer.namespace(e)}static environment(e){return Container.namespace(e)}static snapshot(e){return n.IoCContainer.snapshot()}static configure(...e){e.forEach((e=>{e.bind?Container.configureType(e):e.bindName?Container.configureConstant(e):(e.env||e.namespace)&&Container.configureNamespace(e)}))}static configureNamespace(e){const t=n.IoCContainer.selectedNamespace(),r=e.env||e.namespace;Object.keys(r).forEach((e=>{Container.namespace(e);const t=r[e];Container.configure(...t)})),Container.namespace(t)}static configureConstant(e){const t=n.IoCContainer.bindName(e.bindName);t&&e.to&&t.to(e.to)}static configureType(e){const t=n.IoCContainer.bind(e.bind);t&&(e.to?t.to(e.to):e.factory&&t.factory(e.factory),e.scope&&t.scope(e.scope),e.withParams&&t.withParams(e.withParams))}}t.Container=Container;class ContainerBuildContext extends i.BuildContext{constructor(){super(...arguments),this.context=new Map}build(e,t){let r=this.context.get(e);return r||(r=t(this),this.context.set(e,r)),r}resolve(e){return n.IoCContainer.get(e,this)}}},8205:()=>{var e;!function(e){!function(t){var r="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),i=makeExporter(e);function makeExporter(e,t){return function(r,i){"function"!=typeof e[r]&&Object.defineProperty(e,r,{configurable:!0,writable:!0,value:i}),t&&t(r,i)}}void 0===r.Reflect?r.Reflect=e:i=makeExporter(r.Reflect,i),function(e){var t=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,i=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",n=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",s="function"==typeof Object.create,o={__proto__:[]}instanceof Array,a=!s&&!o,c={create:s?function(){return MakeDictionary(Object.create(null))}:o?function(){return MakeDictionary({__proto__:null})}:function(){return MakeDictionary({})},has:a?function(e,r){return t.call(e,r)}:function(e,t){return t in e},get:a?function(e,r){return t.call(e,r)?e[r]:void 0}:function(e,t){return e[t]}},u=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,p=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?CreateMapPolyfill():Map,d=l||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?CreateSetPolyfill():Set,f=new(l||"function"!=typeof WeakMap?CreateWeakMapPolyfill():WeakMap);function decorate(e,t,r,i){if(IsUndefined(r)){if(!IsArray(e))throw new TypeError;if(!IsConstructor(t))throw new TypeError;return DecorateConstructor(e,t)}if(!IsArray(e))throw new TypeError;if(!IsObject(t))throw new TypeError;if(!IsObject(i)&&!IsUndefined(i)&&!IsNull(i))throw new TypeError;return IsNull(i)&&(i=void 0),DecorateProperty(e,t,r=ToPropertyKey(r),i)}function metadata(e,t){function decorator(r,i){if(!IsObject(r))throw new TypeError;if(!IsUndefined(i)&&!IsPropertyKey(i))throw new TypeError;OrdinaryDefineOwnMetadata(e,t,r,i)}return decorator}function defineMetadata(e,t,r,i){if(!IsObject(r))throw new TypeError;return IsUndefined(i)||(i=ToPropertyKey(i)),OrdinaryDefineOwnMetadata(e,t,r,i)}function hasMetadata(e,t,r){if(!IsObject(t))throw new TypeError;return IsUndefined(r)||(r=ToPropertyKey(r)),OrdinaryHasMetadata(e,t,r)}function hasOwnMetadata(e,t,r){if(!IsObject(t))throw new TypeError;return IsUndefined(r)||(r=ToPropertyKey(r)),OrdinaryHasOwnMetadata(e,t,r)}function getMetadata(e,t,r){if(!IsObject(t))throw new TypeError;return IsUndefined(r)||(r=ToPropertyKey(r)),OrdinaryGetMetadata(e,t,r)}function getOwnMetadata(e,t,r){if(!IsObject(t))throw new TypeError;return IsUndefined(r)||(r=ToPropertyKey(r)),OrdinaryGetOwnMetadata(e,t,r)}function getMetadataKeys(e,t){if(!IsObject(e))throw new TypeError;return IsUndefined(t)||(t=ToPropertyKey(t)),OrdinaryMetadataKeys(e,t)}function getOwnMetadataKeys(e,t){if(!IsObject(e))throw new TypeError;return IsUndefined(t)||(t=ToPropertyKey(t)),OrdinaryOwnMetadataKeys(e,t)}function deleteMetadata(e,t,r){if(!IsObject(t))throw new TypeError;IsUndefined(r)||(r=ToPropertyKey(r));var i=GetOrCreateMetadataMap(t,r,!1);if(IsUndefined(i))return!1;if(!i.delete(e))return!1;if(i.size>0)return!0;var n=f.get(t);return n.delete(r),n.size>0||f.delete(t),!0}function DecorateConstructor(e,t){for(var r=e.length-1;r>=0;--r){var i=(0,e[r])(t);if(!IsUndefined(i)&&!IsNull(i)){if(!IsConstructor(i))throw new TypeError;t=i}}return t}function DecorateProperty(e,t,r,i){for(var n=e.length-1;n>=0;--n){var s=(0,e[n])(t,r,i);if(!IsUndefined(s)&&!IsNull(s)){if(!IsObject(s))throw new TypeError;i=s}}return i}function GetOrCreateMetadataMap(e,t,r){var i=f.get(e);if(IsUndefined(i)){if(!r)return;i=new p,f.set(e,i)}var n=i.get(t);if(IsUndefined(n)){if(!r)return;n=new p,i.set(t,n)}return n}function OrdinaryHasMetadata(e,t,r){if(OrdinaryHasOwnMetadata(e,t,r))return!0;var i=OrdinaryGetPrototypeOf(t);return!IsNull(i)&&OrdinaryHasMetadata(e,i,r)}function OrdinaryHasOwnMetadata(e,t,r){var i=GetOrCreateMetadataMap(t,r,!1);return!IsUndefined(i)&&ToBoolean(i.has(e))}function OrdinaryGetMetadata(e,t,r){if(OrdinaryHasOwnMetadata(e,t,r))return OrdinaryGetOwnMetadata(e,t,r);var i=OrdinaryGetPrototypeOf(t);return IsNull(i)?void 0:OrdinaryGetMetadata(e,i,r)}function OrdinaryGetOwnMetadata(e,t,r){var i=GetOrCreateMetadataMap(t,r,!1);if(!IsUndefined(i))return i.get(e)}function OrdinaryDefineOwnMetadata(e,t,r,i){GetOrCreateMetadataMap(r,i,!0).set(e,t)}function OrdinaryMetadataKeys(e,t){var r=OrdinaryOwnMetadataKeys(e,t),i=OrdinaryGetPrototypeOf(e);if(null===i)return r;var n=OrdinaryMetadataKeys(i,t);if(n.length<=0)return r;if(r.length<=0)return n;for(var s=new d,o=[],a=0,c=r;a<c.length;a++){var u=c[a];s.has(u)||(s.add(u),o.push(u))}for(var l=0,p=n;l<p.length;l++){u=p[l];s.has(u)||(s.add(u),o.push(u))}return o}function OrdinaryOwnMetadataKeys(e,t){var r=[],i=GetOrCreateMetadataMap(e,t,!1);if(IsUndefined(i))return r;for(var n=GetIterator(i.keys()),s=0;;){var o=IteratorStep(n);if(!o)return r.length=s,r;var a=IteratorValue(o);try{r[s]=a}catch(e){try{IteratorClose(n)}finally{throw e}}s++}}function Type(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function IsUndefined(e){return void 0===e}function IsNull(e){return null===e}function IsSymbol(e){return"symbol"==typeof e}function IsObject(e){return"object"==typeof e?null!==e:"function"==typeof e}function ToPrimitive(e,t){switch(Type(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var r=3===t?"string":5===t?"number":"default",n=GetMethod(e,i);if(void 0!==n){var s=n.call(e,r);if(IsObject(s))throw new TypeError;return s}return OrdinaryToPrimitive(e,"default"===r?"number":r)}function OrdinaryToPrimitive(e,t){if("string"===t){var r=e.toString;if(IsCallable(r))if(!IsObject(n=r.call(e)))return n;if(IsCallable(i=e.valueOf))if(!IsObject(n=i.call(e)))return n}else{var i;if(IsCallable(i=e.valueOf))if(!IsObject(n=i.call(e)))return n;var n,s=e.toString;if(IsCallable(s))if(!IsObject(n=s.call(e)))return n}throw new TypeError}function ToBoolean(e){return!!e}function ToString(e){return""+e}function ToPropertyKey(e){var t=ToPrimitive(e,3);return IsSymbol(t)?t:ToString(t)}function IsArray(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function IsCallable(e){return"function"==typeof e}function IsConstructor(e){return"function"==typeof e}function IsPropertyKey(e){switch(Type(e)){case 3:case 4:return!0;default:return!1}}function GetMethod(e,t){var r=e[t];if(null!=r){if(!IsCallable(r))throw new TypeError;return r}}function GetIterator(e){var t=GetMethod(e,n);if(!IsCallable(t))throw new TypeError;var r=t.call(e);if(!IsObject(r))throw new TypeError;return r}function IteratorValue(e){return e.value}function IteratorStep(e){var t=e.next();return!t.done&&t}function IteratorClose(e){var t=e.return;t&&t.call(e)}function OrdinaryGetPrototypeOf(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===u)return t;if(t!==u)return t;var r=e.prototype,i=r&&Object.getPrototypeOf(r);if(null==i||i===Object.prototype)return t;var n=i.constructor;return"function"!=typeof n||n===e?t:n}function CreateMapPolyfill(){var e={},t=[],r=function(){function MapIterator(e,t,r){this._index=0,this._keys=e,this._values=t,this._selector=r}return MapIterator.prototype["@@iterator"]=function(){return this},MapIterator.prototype[n]=function(){return this},MapIterator.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var r=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},MapIterator.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},MapIterator.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},MapIterator}();return function(){function Map(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(Map.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),Map.prototype.has=function(e){return this._find(e,!1)>=0},Map.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},Map.prototype.set=function(e,t){var r=this._find(e,!0);return this._values[r]=t,this},Map.prototype.delete=function(t){var r=this._find(t,!1);if(r>=0){for(var i=this._keys.length,n=r+1;n<i;n++)this._keys[n-1]=this._keys[n],this._values[n-1]=this._values[n];return this._keys.length--,this._values.length--,t===this._cacheKey&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},Map.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},Map.prototype.keys=function(){return new r(this._keys,this._values,getKey)},Map.prototype.values=function(){return new r(this._keys,this._values,getValue)},Map.prototype.entries=function(){return new r(this._keys,this._values,getEntry)},Map.prototype["@@iterator"]=function(){return this.entries()},Map.prototype[n]=function(){return this.entries()},Map.prototype._find=function(e,t){return this._cacheKey!==e&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=e)),this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},Map}();function getKey(e,t){return e}function getValue(e,t){return t}function getEntry(e,t){return[e,t]}}function CreateSetPolyfill(){return function(){function Set(){this._map=new p}return Object.defineProperty(Set.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),Set.prototype.has=function(e){return this._map.has(e)},Set.prototype.add=function(e){return this._map.set(e,e),this},Set.prototype.delete=function(e){return this._map.delete(e)},Set.prototype.clear=function(){this._map.clear()},Set.prototype.keys=function(){return this._map.keys()},Set.prototype.values=function(){return this._map.values()},Set.prototype.entries=function(){return this._map.entries()},Set.prototype["@@iterator"]=function(){return this.keys()},Set.prototype[n]=function(){return this.keys()},Set}()}function CreateWeakMapPolyfill(){var e=16,r=c.create(),i=CreateUniqueKey();return function(){function WeakMap(){this._key=CreateUniqueKey()}return WeakMap.prototype.has=function(e){var t=GetOrCreateWeakMapTable(e,!1);return void 0!==t&&c.has(t,this._key)},WeakMap.prototype.get=function(e){var t=GetOrCreateWeakMapTable(e,!1);return void 0!==t?c.get(t,this._key):void 0},WeakMap.prototype.set=function(e,t){return GetOrCreateWeakMapTable(e,!0)[this._key]=t,this},WeakMap.prototype.delete=function(e){var t=GetOrCreateWeakMapTable(e,!1);return void 0!==t&&delete t[this._key]},WeakMap.prototype.clear=function(){this._key=CreateUniqueKey()},WeakMap}();function CreateUniqueKey(){var e;do{e="@@WeakMap@@"+CreateUUID()}while(c.has(r,e));return r[e]=!0,e}function GetOrCreateWeakMapTable(e,r){if(!t.call(e,i)){if(!r)return;Object.defineProperty(e,i,{value:c.create()})}return e[i]}function FillRandomBytes(e,t){for(var r=0;r<t;++r)e[r]=255*Math.random()|0;return e}function GenRandomBytes(e){return"function"==typeof Uint8Array?"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(e)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(e)):FillRandomBytes(new Uint8Array(e),e):FillRandomBytes(new Array(e),e)}function CreateUUID(){var t=GenRandomBytes(e);t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var r="",i=0;i<e;++i){var n=t[i];4!==i&&6!==i&&8!==i||(r+="-"),n<16&&(r+="0"),r+=n.toString(16).toLowerCase()}return r}}function MakeDictionary(e){return e.__=void 0,delete e.__,e}e("decorate",decorate),e("metadata",metadata),e("defineMetadata",defineMetadata),e("hasMetadata",hasMetadata),e("hasOwnMetadata",hasOwnMetadata),e("getMetadata",getMetadata),e("getOwnMetadata",getOwnMetadata),e("getMetadataKeys",getMetadataKeys),e("getOwnMetadataKeys",getOwnMetadataKeys),e("deleteMetadata",deleteMetadata)}(i)}()}(e||(e={}))},2862:function(e,t){!function(e){"use strict";function merge(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length>1){t[0]=t[0].slice(0,-1);for(var i=t.length-1,n=1;n<i;++n)t[n]=t[n].slice(1,-1);return t[i]=t[i].slice(1),t.join("")}return t[0]}function subexp(e){return"(?:"+e+")"}function typeOf(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function toUpperCase(e){return e.toUpperCase()}function toArray(e){return null!=e?e instanceof Array?e:"number"!=typeof e.length||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function assign(e,t){var r=e;if(t)for(var i in t)r[i]=t[i];return r}function buildExps(e){var t="[A-Za-z]",r="[0-9]",i=merge(r,"[A-Fa-f]"),n=subexp(subexp("%[EFef]"+i+"%"+i+i+"%"+i+i)+"|"+subexp("%[89A-Fa-f]"+i+"%"+i+i)+"|"+subexp("%"+i+i)),s="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",o=merge("[\\:\\/\\?\\#\\[\\]\\@]",s),a=e?"[\\uE000-\\uF8FF]":"[]",c=merge(t,r,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),u=subexp(t+merge(t,r,"[\\+\\-\\.]")+"*"),l=subexp(subexp(n+"|"+merge(c,s,"[\\:]"))+"*"),p=(subexp(subexp("25[0-5]")+"|"+subexp("2[0-4]"+r)+"|"+subexp("1"+r+r)+"|"+subexp("[1-9]"+r)+"|"+r),subexp(subexp("25[0-5]")+"|"+subexp("2[0-4]"+r)+"|"+subexp("1"+r+r)+"|"+subexp("0?[1-9]"+r)+"|0?0?"+r)),d=subexp(p+"\\."+p+"\\."+p+"\\."+p),f=subexp(i+"{1,4}"),y=subexp(subexp(f+"\\:"+f)+"|"+d),h=subexp(subexp(f+"\\:")+"{6}"+y),g=subexp("\\:\\:"+subexp(f+"\\:")+"{5}"+y),m=subexp(subexp(f)+"?\\:\\:"+subexp(f+"\\:")+"{4}"+y),v=subexp(subexp(subexp(f+"\\:")+"{0,1}"+f)+"?\\:\\:"+subexp(f+"\\:")+"{3}"+y),b=subexp(subexp(subexp(f+"\\:")+"{0,2}"+f)+"?\\:\\:"+subexp(f+"\\:")+"{2}"+y),R=subexp(subexp(subexp(f+"\\:")+"{0,3}"+f)+"?\\:\\:"+f+"\\:"+y),O=subexp(subexp(subexp(f+"\\:")+"{0,4}"+f)+"?\\:\\:"+y),S=subexp(subexp(subexp(f+"\\:")+"{0,5}"+f)+"?\\:\\:"+f),I=subexp(subexp(subexp(f+"\\:")+"{0,6}"+f)+"?\\:\\:"),w=subexp([h,g,m,v,b,R,O,S,I].join("|")),P=subexp(subexp(c+"|"+n)+"+"),j=(subexp(w+"\\%25"+P),subexp(w+subexp("\\%25|\\%(?!"+i+"{2})")+P)),A=subexp("[vV]"+i+"+\\."+merge(c,s,"[\\:]")+"+"),$=subexp("\\["+subexp(j+"|"+w+"|"+A)+"\\]"),N=subexp(subexp(n+"|"+merge(c,s))+"*"),T=subexp($+"|"+d+"(?!"+N+")|"+N),q=subexp(r+"*"),x=subexp(subexp(l+"@")+"?"+T+subexp("\\:"+q)+"?"),D=subexp(n+"|"+merge(c,s,"[\\:\\@]")),E=subexp(D+"*"),M=subexp(D+"+"),k=subexp(subexp(n+"|"+merge(c,s,"[\\@]"))+"+"),U=subexp(subexp("\\/"+E)+"*"),F=subexp("\\/"+subexp(M+U)+"?"),J=subexp(k+U),L=subexp(M+U),V="(?!"+D+")",B=(subexp(U+"|"+F+"|"+J+"|"+L+"|"+V),subexp(subexp(D+"|"+merge("[\\/\\?]",a))+"*")),z=subexp(subexp(D+"|[\\/\\?]")+"*"),G=subexp(subexp("\\/\\/"+x+U)+"|"+F+"|"+L+"|"+V),H=subexp(u+"\\:"+G+subexp("\\?"+B)+"?"+subexp("\\#"+z)+"?"),Q=subexp(subexp("\\/\\/"+x+U)+"|"+F+"|"+J+"|"+V),W=subexp(Q+subexp("\\?"+B)+"?"+subexp("\\#"+z)+"?");return subexp(H+"|"+W),subexp(u+"\\:"+G+subexp("\\?"+B)+"?"),subexp(subexp("\\/\\/("+subexp("("+l+")@")+"?("+T+")"+subexp("\\:("+q+")")+"?)")+"?("+U+"|"+F+"|"+L+"|"+V+")"),subexp("\\?("+B+")"),subexp("\\#("+z+")"),subexp(subexp("\\/\\/("+subexp("("+l+")@")+"?("+T+")"+subexp("\\:("+q+")")+"?)")+"?("+U+"|"+F+"|"+J+"|"+V+")"),subexp("\\?("+B+")"),subexp("\\#("+z+")"),subexp(subexp("\\/\\/("+subexp("("+l+")@")+"?("+T+")"+subexp("\\:("+q+")")+"?)")+"?("+U+"|"+F+"|"+L+"|"+V+")"),subexp("\\?("+B+")"),subexp("\\#("+z+")"),subexp("("+l+")@"),subexp("\\:("+q+")"),{NOT_SCHEME:new RegExp(merge("[^]",t,r,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(merge("[^\\%\\:]",c,s),"g"),NOT_HOST:new RegExp(merge("[^\\%\\[\\]\\:]",c,s),"g"),NOT_PATH:new RegExp(merge("[^\\%\\/\\:\\@]",c,s),"g"),NOT_PATH_NOSCHEME:new RegExp(merge("[^\\%\\/\\@]",c,s),"g"),NOT_QUERY:new RegExp(merge("[^\\%]",c,s,"[\\:\\@\\/\\?]",a),"g"),NOT_FRAGMENT:new RegExp(merge("[^\\%]",c,s,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(merge("[^]",c,s),"g"),UNRESERVED:new RegExp(c,"g"),OTHER_CHARS:new RegExp(merge("[^\\%]",c,o),"g"),PCT_ENCODED:new RegExp(n,"g"),IPV4ADDRESS:new RegExp("^("+d+")$"),IPV6ADDRESS:new RegExp("^\\[?("+w+")"+subexp(subexp("\\%25|\\%(?!"+i+"{2})")+"("+P+")")+"?\\]?$")}}var t=buildExps(!1),r=buildExps(!0),i=function(){function sliceIterator(e,t){var r=[],i=!0,n=!1,s=void 0;try{for(var o,a=e[Symbol.iterator]();!(i=(o=a.next()).done)&&(r.push(o.value),!t||r.length!==t);i=!0);}catch(e){n=!0,s=e}finally{try{!i&&a.return&&a.return()}finally{if(n)throw s}}return r}return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return sliceIterator(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),toConsumableArray=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)},n=2147483647,s=36,o=1,a=26,c=38,u=700,l=72,p=128,d="-",f=/^xn--/,y=/[^\0-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,g={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},m=s-o,v=Math.floor,b=String.fromCharCode;function error$1(e){throw new RangeError(g[e])}function map(e,t){for(var r=[],i=e.length;i--;)r[i]=t(e[i]);return r}function mapDomain(e,t){var r=e.split("@"),i="";return r.length>1&&(i=r[0]+"@",e=r[1]),i+map((e=e.replace(h,".")).split("."),t).join(".")}function ucs2decode(e){for(var t=[],r=0,i=e.length;r<i;){var n=e.charCodeAt(r++);if(n>=55296&&n<=56319&&r<i){var s=e.charCodeAt(r++);56320==(64512&s)?t.push(((1023&n)<<10)+(1023&s)+65536):(t.push(n),r--)}else t.push(n)}return t}var R=function basicToDigit(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:s},O=function digitToBasic(e,t){return e+22+75*(e<26)-((0!=t)<<5)},S=function adapt(e,t,r){var i=0;for(e=r?v(e/u):e>>1,e+=v(e/t);e>m*a>>1;i+=s)e=v(e/m);return v(i+(m+1)*e/(e+c))},I=function decode(e){var t=[],r=e.length,i=0,c=p,u=l,f=e.lastIndexOf(d);f<0&&(f=0);for(var y=0;y<f;++y)e.charCodeAt(y)>=128&&error$1("not-basic"),t.push(e.charCodeAt(y));for(var h=f>0?f+1:0;h<r;){for(var g=i,m=1,b=s;;b+=s){h>=r&&error$1("invalid-input");var O=R(e.charCodeAt(h++));(O>=s||O>v((n-i)/m))&&error$1("overflow"),i+=O*m;var I=b<=u?o:b>=u+a?a:b-u;if(O<I)break;var w=s-I;m>v(n/w)&&error$1("overflow"),m*=w}var P=t.length+1;u=S(i-g,P,0==g),v(i/P)>n-c&&error$1("overflow"),c+=v(i/P),i%=P,t.splice(i++,0,c)}return String.fromCodePoint.apply(String,t)},w=function encode(e){var t=[],r=(e=ucs2decode(e)).length,i=p,c=0,u=l,f=!0,y=!1,h=void 0;try{for(var g,m=e[Symbol.iterator]();!(f=(g=m.next()).done);f=!0){var R=g.value;R<128&&t.push(b(R))}}catch(e){y=!0,h=e}finally{try{!f&&m.return&&m.return()}finally{if(y)throw h}}var I=t.length,w=I;for(I&&t.push(d);w<r;){var P=n,j=!0,A=!1,$=void 0;try{for(var N,T=e[Symbol.iterator]();!(j=(N=T.next()).done);j=!0){var q=N.value;q>=i&&q<P&&(P=q)}}catch(e){A=!0,$=e}finally{try{!j&&T.return&&T.return()}finally{if(A)throw $}}var x=w+1;P-i>v((n-c)/x)&&error$1("overflow"),c+=(P-i)*x,i=P;var D=!0,E=!1,M=void 0;try{for(var k,U=e[Symbol.iterator]();!(D=(k=U.next()).done);D=!0){var F=k.value;if(F<i&&++c>n&&error$1("overflow"),F==i){for(var J=c,L=s;;L+=s){var V=L<=u?o:L>=u+a?a:L-u;if(J<V)break;var B=J-V,z=s-V;t.push(b(O(V+B%z,0))),J=v(B/z)}t.push(b(O(J,0))),u=S(c,x,w==I),c=0,++w}}}catch(e){E=!0,M=e}finally{try{!D&&U.return&&U.return()}finally{if(E)throw M}}++c,++i}return t.join("")},P=function toUnicode(e){return mapDomain(e,(function(e){return f.test(e)?I(e.slice(4).toLowerCase()):e}))},j=function toASCII(e){return mapDomain(e,(function(e){return y.test(e)?"xn--"+w(e):e}))},A={version:"2.1.0",ucs2:{decode:ucs2decode,encode:function ucs2encode(e){return String.fromCodePoint.apply(String,toConsumableArray(e))}},decode:I,encode:w,toASCII:j,toUnicode:P},$={};function pctEncChar(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function pctDecChars(e){for(var t="",r=0,i=e.length;r<i;){var n=parseInt(e.substr(r+1,2),16);if(n<128)t+=String.fromCharCode(n),r+=3;else if(n>=194&&n<224){if(i-r>=6){var s=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((31&n)<<6|63&s)}else t+=e.substr(r,6);r+=6}else if(n>=224){if(i-r>=9){var o=parseInt(e.substr(r+4,2),16),a=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&n)<<12|(63&o)<<6|63&a)}else t+=e.substr(r,9);r+=9}else t+=e.substr(r,3),r+=3}return t}function _normalizeComponentEncoding(e,t){function decodeUnreserved(e){var r=pctDecChars(e);return r.match(t.UNRESERVED)?r:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,decodeUnreserved).replace(t.NOT_USERINFO,pctEncChar).replace(t.PCT_ENCODED,toUpperCase)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(t.NOT_HOST,pctEncChar).replace(t.PCT_ENCODED,toUpperCase)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,decodeUnreserved).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,pctEncChar).replace(t.PCT_ENCODED,toUpperCase)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,decodeUnreserved).replace(t.NOT_QUERY,pctEncChar).replace(t.PCT_ENCODED,toUpperCase)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,decodeUnreserved).replace(t.NOT_FRAGMENT,pctEncChar).replace(t.PCT_ENCODED,toUpperCase)),e}function _stripLeadingZeros(e){return e.replace(/^0*(.*)/,"$1")||"0"}function _normalizeIPv4(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=i(r,2)[1];return n?n.split(".").map(_stripLeadingZeros).join("."):e}function _normalizeIPv6(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=i(r,3),s=n[1],o=n[2];if(s){for(var a=s.toLowerCase().split("::").reverse(),c=i(a,2),u=c[0],l=c[1],p=l?l.split(":").map(_stripLeadingZeros):[],d=u.split(":").map(_stripLeadingZeros),f=t.IPV4ADDRESS.test(d[d.length-1]),y=f?7:8,h=d.length-y,g=Array(y),m=0;m<y;++m)g[m]=p[m]||d[h+m]||"";f&&(g[y-1]=_normalizeIPv4(g[y-1],t));var v=g.reduce((function(e,t,r){if(!t||"0"===t){var i=e[e.length-1];i&&i.index+i.length===r?i.length++:e.push({index:r,length:1})}return e}),[]).sort((function(e,t){return t.length-e.length}))[0],b=void 0;if(v&&v.length>1){var R=g.slice(0,v.index),O=g.slice(v.index+v.length);b=R.join(":")+"::"+O.join(":")}else b=g.join(":");return o&&(b+="%"+o),b}return e}var N=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,T=void 0==="".match(/(){0}/)[1];function parse(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},s=!1!==i.iri?r:t;"suffix"===i.reference&&(e=(i.scheme?i.scheme+":":"")+"//"+e);var o=e.match(N);if(o){T?(n.scheme=o[1],n.userinfo=o[3],n.host=o[4],n.port=parseInt(o[5],10),n.path=o[6]||"",n.query=o[7],n.fragment=o[8],isNaN(n.port)&&(n.port=o[5])):(n.scheme=o[1]||void 0,n.userinfo=-1!==e.indexOf("@")?o[3]:void 0,n.host=-1!==e.indexOf("//")?o[4]:void 0,n.port=parseInt(o[5],10),n.path=o[6]||"",n.query=-1!==e.indexOf("?")?o[7]:void 0,n.fragment=-1!==e.indexOf("#")?o[8]:void 0,isNaN(n.port)&&(n.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:void 0)),n.host&&(n.host=_normalizeIPv6(_normalizeIPv4(n.host,s),s)),void 0!==n.scheme||void 0!==n.userinfo||void 0!==n.host||void 0!==n.port||n.path||void 0!==n.query?void 0===n.scheme?n.reference="relative":void 0===n.fragment?n.reference="absolute":n.reference="uri":n.reference="same-document",i.reference&&"suffix"!==i.reference&&i.reference!==n.reference&&(n.error=n.error||"URI is not a "+i.reference+" reference.");var a=$[(i.scheme||n.scheme||"").toLowerCase()];if(i.unicodeSupport||a&&a.unicodeSupport)_normalizeComponentEncoding(n,s);else{if(n.host&&(i.domainHost||a&&a.domainHost))try{n.host=A.toASCII(n.host.replace(s.PCT_ENCODED,pctDecChars).toLowerCase())}catch(e){n.error=n.error||"Host's domain name can not be converted to ASCII via punycode: "+e}_normalizeComponentEncoding(n,t)}a&&a.parse&&a.parse(n,i)}else n.error=n.error||"URI can not be parsed.";return n}function _recomposeAuthority(e,i){var n=!1!==i.iri?r:t,s=[];return void 0!==e.userinfo&&(s.push(e.userinfo),s.push("@")),void 0!==e.host&&s.push(_normalizeIPv6(_normalizeIPv4(String(e.host),n),n).replace(n.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(s.push(":"),s.push(String(e.port))),s.length?s.join(""):void 0}var q=/^\.\.?\//,x=/^\/\.(\/|$)/,D=/^\/\.\.(\/|$)/,E=/^\/?(?:.|\n)*?(?=\/|$)/;function removeDotSegments(e){for(var t=[];e.length;)if(e.match(q))e=e.replace(q,"");else if(e.match(x))e=e.replace(x,"/");else if(e.match(D))e=e.replace(D,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(E);if(!r)throw new Error("Unexpected dot segment condition");var i=r[0];e=e.slice(i.length),t.push(i)}return t.join("")}function serialize(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i.iri?r:t,s=[],o=$[(i.scheme||e.scheme||"").toLowerCase()];if(o&&o.serialize&&o.serialize(e,i),e.host)if(n.IPV6ADDRESS.test(e.host));else if(i.domainHost||o&&o.domainHost)try{e.host=i.iri?A.toUnicode(e.host):A.toASCII(e.host.replace(n.PCT_ENCODED,pctDecChars).toLowerCase())}catch(t){e.error=e.error||"Host's domain name can not be converted to "+(i.iri?"Unicode":"ASCII")+" via punycode: "+t}_normalizeComponentEncoding(e,n),"suffix"!==i.reference&&e.scheme&&(s.push(e.scheme),s.push(":"));var a=_recomposeAuthority(e,i);if(void 0!==a&&("suffix"!==i.reference&&s.push("//"),s.push(a),e.path&&"/"!==e.path.charAt(0)&&s.push("/")),void 0!==e.path){var c=e.path;i.absolutePath||o&&o.absolutePath||(c=removeDotSegments(c)),void 0===a&&(c=c.replace(/^\/\//,"/%2F")),s.push(c)}return void 0!==e.query&&(s.push("?"),s.push(e.query)),void 0!==e.fragment&&(s.push("#"),s.push(e.fragment)),s.join("")}function resolveComponents(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={};return arguments[3]||(e=parse(serialize(e,r),r),t=parse(serialize(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=removeDotSegments(t.path||""),i.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=removeDotSegments(t.path||""),i.query=t.query):(t.path?("/"===t.path.charAt(0)?i.path=removeDotSegments(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:i.path=t.path:i.path="/"+t.path,i.path=removeDotSegments(i.path)),i.query=t.query):(i.path=e.path,void 0!==t.query?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}function resolve(e,t,r){var i=assign({scheme:"null"},r);return serialize(resolveComponents(parse(e,i),parse(t,i),i,!0),i)}function normalize(e,t){return"string"==typeof e?e=serialize(parse(e,t),t):"object"===typeOf(e)&&(e=parse(serialize(e,t),t)),e}function equal(e,t,r){return"string"==typeof e?e=serialize(parse(e,r),r):"object"===typeOf(e)&&(e=serialize(e,r)),"string"==typeof t?t=serialize(parse(t,r),r):"object"===typeOf(t)&&(t=serialize(t,r)),e===t}function escapeComponent(e,i){return e&&e.toString().replace(i&&i.iri?r.ESCAPE:t.ESCAPE,pctEncChar)}function unescapeComponent(e,i){return e&&e.toString().replace(i&&i.iri?r.PCT_ENCODED:t.PCT_ENCODED,pctDecChars)}var M={scheme:"http",domainHost:!0,parse:function parse(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function serialize(e,t){var r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},k={scheme:"https",domainHost:M.domainHost,parse:M.parse,serialize:M.serialize};function isSecure(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var U={scheme:"ws",domainHost:!0,parse:function parse(e,t){var r=e;return r.secure=isSecure(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r},serialize:function serialize(e,t){if(e.port!==(isSecure(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var r=e.resourceName.split("?"),n=i(r,2),s=n[0],o=n[1];e.path=s&&"/"!==s?s:void 0,e.query=o,e.resourceName=void 0}return e.fragment=void 0,e}},F={scheme:"wss",domainHost:U.domainHost,parse:U.parse,serialize:U.serialize},J={},L="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",V="[0-9A-Fa-f]",B=subexp(subexp("%[EFef]"+V+"%"+V+V+"%"+V+V)+"|"+subexp("%[89A-Fa-f]"+V+"%"+V+V)+"|"+subexp("%"+V+V)),z="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",G=merge("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),H="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Q=new RegExp(L,"g"),W=new RegExp(B,"g"),K=new RegExp(merge("[^]",z,"[\\.]",'[\\"]',G),"g"),Z=new RegExp(merge("[^]",L,H),"g"),Y=Z;function decodeUnreserved(e){var t=pctDecChars(e);return t.match(Q)?t:e}var X={scheme:"mailto",parse:function parse$$1(e,t){var r=e,i=r.to=r.path?r.path.split(","):[];if(r.path=void 0,r.query){for(var n=!1,s={},o=r.query.split("&"),a=0,c=o.length;a<c;++a){var u=o[a].split("=");switch(u[0]){case"to":for(var l=u[1].split(","),p=0,d=l.length;p<d;++p)i.push(l[p]);break;case"subject":r.subject=unescapeComponent(u[1],t);break;case"body":r.body=unescapeComponent(u[1],t);break;default:n=!0,s[unescapeComponent(u[0],t)]=unescapeComponent(u[1],t)}}n&&(r.headers=s)}r.query=void 0;for(var f=0,y=i.length;f<y;++f){var h=i[f].split("@");if(h[0]=unescapeComponent(h[0]),t.unicodeSupport)h[1]=unescapeComponent(h[1],t).toLowerCase();else try{h[1]=A.toASCII(unescapeComponent(h[1],t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}i[f]=h.join("@")}return r},serialize:function serialize$$1(e,t){var r=e,i=toArray(e.to);if(i){for(var n=0,s=i.length;n<s;++n){var o=String(i[n]),a=o.lastIndexOf("@"),c=o.slice(0,a).replace(W,decodeUnreserved).replace(W,toUpperCase).replace(K,pctEncChar),u=o.slice(a+1);try{u=t.iri?A.toUnicode(u):A.toASCII(unescapeComponent(u,t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}i[n]=c+"@"+u}r.path=i.join(",")}var l=e.headers=e.headers||{};e.subject&&(l.subject=e.subject),e.body&&(l.body=e.body);var p=[];for(var d in l)l[d]!==J[d]&&p.push(d.replace(W,decodeUnreserved).replace(W,toUpperCase).replace(Z,pctEncChar)+"="+l[d].replace(W,decodeUnreserved).replace(W,toUpperCase).replace(Y,pctEncChar));return p.length&&(r.query=p.join("&")),r}},ee=/^([^\:]+)\:(.*)/,te={scheme:"urn",parse:function parse$$1(e,t){var r=e.path&&e.path.match(ee),i=e;if(r){var n=t.scheme||i.scheme||"urn",s=r[1].toLowerCase(),o=r[2],a=n+":"+(t.nid||s),c=$[a];i.nid=s,i.nss=o,i.path=void 0,c&&(i=c.parse(i,t))}else i.error=i.error||"URN can not be parsed.";return i},serialize:function serialize$$1(e,t){var r=t.scheme||e.scheme||"urn",i=e.nid,n=r+":"+(t.nid||i),s=$[n];s&&(e=s.serialize(e,t));var o=e,a=e.nss;return o.path=(i||t.nid)+":"+a,o}},re=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,ie={scheme:"urn:uuid",parse:function parse(e,t){var r=e;return r.uuid=r.nss,r.nss=void 0,t.tolerant||r.uuid&&r.uuid.match(re)||(r.error=r.error||"UUID is not valid."),r},serialize:function serialize(e,t){var r=e;return r.nss=(e.uuid||"").toLowerCase(),r}};$[M.scheme]=M,$[k.scheme]=k,$[U.scheme]=U,$[F.scheme]=F,$[X.scheme]=X,$[te.scheme]=te,$[ie.scheme]=ie,e.SCHEMES=$,e.pctEncChar=pctEncChar,e.pctDecChars=pctDecChars,e.parse=parse,e.removeDotSegments=removeDotSegments,e.serialize=serialize,e.resolveComponents=resolveComponents,e.resolve=resolve,e.normalize=normalize,e.equal=equal,e.escapeComponent=escapeComponent,e.unescapeComponent=unescapeComponent,Object.defineProperty(e,"__esModule",{value:!0})}(t)},7181:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validate=t.execute=void 0;const i=r(3887);t.execute=function execute(e,t){return(0,i.parse)(e,{attributes:t})},t.validate=function validate(e){try{return(0,i.parse)(e,{attributes:[]}),{isValid:!0}}catch(e){if(e instanceof i.SyntaxError){const t=e;return{isValid:!1,error:{message:t.message,location:{start:t.location.start,end:t.location.end}}}}return{isValid:!1,error:{message:JSON.stringify(e),location:{start:{column:0,line:0,offset:0},end:{column:0,line:0,offset:0}}}}}}},3887:e=>{"use strict";function resolvePath(e,t,r=null){let i=e;for(const e of t){if(!Object.keys(i).includes(e))return r;i=i[e]}return i}function match(e,t,r,i=void 0){const n=[];for(let s=0;s<e.length;s++){const o=resolvePath(e[s],t,null);void 0!==i&&e[s].value["@type"]!==i||null!==o&&r(o)&&n.push(s)}return n}function peg$SyntaxError(e,t,r,i){var n=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(n,peg$SyntaxError.prototype),n.expected=t,n.found=r,n.location=i,n.name="SyntaxError",n}function peg$padEnd(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,e+(r+=r.repeat(t)).slice(0,t))}!function peg$subclass(e,t){function C(){this.constructor=e}C.prototype=t.prototype,e.prototype=new C}(peg$SyntaxError,Error),peg$SyntaxError.prototype.format=function(e){var t="Error: "+this.message;if(this.location){var r,i=null;for(r=0;r<e.length;r++)if(e[r].source===this.location.source){i=e[r].text.split(/\r\n|\n|\r/g);break}var n=this.location.start,s=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(n):n,o=this.location.source+":"+s.line+":"+s.column;if(i){var a=this.location.end,c=peg$padEnd("",s.line.toString().length," "),u=i[n.line-1],l=(n.line===a.line?a.column:u.length+1)-n.column||1;t+="\n --\x3e "+o+"\n"+c+" |\n"+s.line+" | "+u+"\n"+c+" | "+peg$padEnd("",n.column-1," ")+peg$padEnd("",l,"^")}else t+="\n at "+o}return t},peg$SyntaxError.buildMessage=function(e,t){var r={literal:function(e){return'"'+literalEscape(e.text)+'"'},class:function(e){var t=e.parts.map((function(e){return Array.isArray(e)?classEscape(e[0])+"-"+classEscape(e[1]):classEscape(e)}));return"["+(e.inverted?"^":"")+t.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(e){return e.description}};function hex(e){return e.charCodeAt(0).toString(16).toUpperCase()}function literalEscape(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+hex(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+hex(e)}))}function classEscape(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+hex(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+hex(e)}))}function describeExpectation(e){return r[e.type](e)}return"Expected "+function describeExpected(e){var t,r,i=e.map(describeExpectation);if(i.sort(),i.length>0){for(t=1,r=1;t<i.length;t++)i[t-1]!==i[t]&&(i[r]=i[t],r++);i.length=r}switch(i.length){case 1:return i[0];case 2:return i[0]+" or "+i[1];default:return i.slice(0,-1).join(", ")+", or "+i[i.length-1]}}(e)+" but "+function describeFound(e){return e?'"'+literalEscape(e)+'"':"end of input"}(t)+" found."},e.exports={StartRules:["Expr"],SyntaxError:peg$SyntaxError,parse:function peg$parse(e,t){var r,i={},n=(t=void 0!==t?t:{}).grammarSource,s={Expr:peg$parseExpr},o=peg$parseExpr,a="||",c="&&",u="!",l="(",p=")",d=".",f="#",y="'",h="\\\\",g="\\'",m=/^[=><~]/,v=/^[?]/,b=/^[^'\\]/,R=/^[^'\\ ]/,O=/^[a-z]/,S=/^[A-Za-z0-9]/,I=/^[A-Z]/,w=/^[ \t\n\r]/,P=peg$literalExpectation("||",!1),j=peg$literalExpectation("&&",!1),A=peg$literalExpectation("!",!1),$=peg$literalExpectation("(",!1),N=peg$literalExpectation(")",!1),T=peg$otherExpectation("metadata field term"),q=peg$literalExpectation(".",!1),x=peg$otherExpectation("tag term"),D=peg$literalExpectation("#",!1),E=peg$otherExpectation("primary field term"),M=peg$classExpectation(["=",">","<","~"],!1,!1),k=peg$classExpectation(["?"],!1,!1),U=peg$literalExpectation("'",!1),F=peg$literalExpectation("\\\\",!1),J=peg$literalExpectation("\\'",!1),L=peg$classExpectation(["'","\\"],!0,!1),V=peg$classExpectation(["'","\\"," "],!0,!1),B=peg$classExpectation([["a","z"]],!1,!1),z=peg$classExpectation([["A","Z"],["a","z"],["0","9"]],!1,!1),G=peg$otherExpectation("attribute type"),H=peg$classExpectation([["A","Z"]],!1,!1),Q=peg$otherExpectation("whitespace"),W=peg$classExpectation([" ","\t","\n","\r"],!1,!1),peg$f0=function(e,t){return t.reduce(((e,t)=>function union(e,t){const r=Array.from(new Set([...e,...t]));return r.sort(((e,t)=>e-t)),r}(e,t)),e)},peg$f1=function(e,t){return t.reduce(((e,t)=>function intersect(e,...t){const r=[e,...t].reduce(((e,t)=>e.filter((e=>t.includes(e)))));return r.sort(((e,t)=>e-t)),r}(e,t)),e)},peg$f2=function(e){return function diffAsym(e,t){const r=e.filter((e=>!t.includes(e)));return r.sort(((e,t)=>e-t)),r}([...Array(t.attributes.length).keys()],e)},peg$f3=function(e,r,i){return match(t.attributes,[e,...r],i)},peg$f4=function(e){return match(t.attributes,["tags"],(t=>Array.isArray(t)&&t.includes(e)))},peg$f5=function(e,r,i){return match(t.attributes,["value",...r],i,e)},peg$f6=function(e,r){return match(t.attributes,["value","value"],r,e)},peg$f7=function(e){return match(t.attributes,["value","@type"],(t=>t===e))},peg$f8=function(e,t){switch(e){case"=":return e=>String(e)===t;case">":return e=>new Date(e)>=new Date(t);case"<":return e=>new Date(e)<=new Date(t);case"~":return e=>Array.isArray(e)&&e.includes(t)}},peg$f9=function(e){if("?"===e)return e=>Array.isArray(e)?e.length>0:"Object"===e.constructor.name?Object.keys(e).length>0:null!=e},peg$f10=function(e){return e.join("").replaceAll("\\\\","\\").replaceAll("\\'","'")},peg$f11=function(e){return e.join("").replaceAll("\\\\","\\").replaceAll("\\'","'")},K=0|t.peg$currPos,Z=[{line:1,column:1}],Y=K,X=t.peg$maxFailExpected||[],ee=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in s))throw new Error("Can't start parsing from rule \""+t.startRule+'".');o=s[t.startRule]}function peg$literalExpectation(e,t){return{type:"literal",text:e,ignoreCase:t}}function peg$classExpectation(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function peg$otherExpectation(e){return{type:"other",description:e}}function peg$computePosDetails(t){var r,i=Z[t];if(i)return i;if(t>=Z.length)r=Z.length-1;else for(r=t;!Z[--r];);for(i={line:(i=Z[r]).line,column:i.column};r<t;)10===e.charCodeAt(r)?(i.line++,i.column=1):i.column++,r++;return Z[t]=i,i}function peg$computeLocation(e,t,r){var i=peg$computePosDetails(e),s=peg$computePosDetails(t),o={source:n,start:{offset:e,line:i.line,column:i.column},end:{offset:t,line:s.line,column:s.column}};return r&&n&&"function"==typeof n.offset&&(o.start=n.offset(o.start),o.end=n.offset(o.end)),o}function peg$fail(e){K<Y||(K>Y&&(Y=K,X=[]),X.push(e))}function peg$buildStructuredError(e,t,r){return new peg$SyntaxError(peg$SyntaxError.buildMessage(e,t),e,t,r)}function peg$parseExpr(){var t,r,n,s,o,c,u,l;if(t=K,(r=peg$parseExpr0())!==i){if(n=[],s=K,o=[],(c=peg$parse_())!==i)for(;c!==i;)o.push(c),c=peg$parse_();else o=i;if(o!==i)if(e.substr(K,2)===a?(c=a,K+=2):(c=i,0===ee&&peg$fail(P)),c!==i){if(u=[],(l=peg$parse_())!==i)for(;l!==i;)u.push(l),l=peg$parse_();else u=i;u!==i&&(l=peg$parseExpr0())!==i?s=l:(K=s,s=i)}else K=s,s=i;else K=s,s=i;for(;s!==i;){if(n.push(s),s=K,o=[],(c=peg$parse_())!==i)for(;c!==i;)o.push(c),c=peg$parse_();else o=i;if(o!==i)if(e.substr(K,2)===a?(c=a,K+=2):(c=i,0===ee&&peg$fail(P)),c!==i){if(u=[],(l=peg$parse_())!==i)for(;l!==i;)u.push(l),l=peg$parse_();else u=i;u!==i&&(l=peg$parseExpr0())!==i?s=l:(K=s,s=i)}else K=s,s=i;else K=s,s=i}t,t=peg$f0(r,n)}else K=t,t=i;return t}function peg$parseExpr0(){var t,r,n,s,o,a,u,l;if(t=K,(r=peg$parseExpr1())!==i){if(n=[],s=K,o=[],(a=peg$parse_())!==i)for(;a!==i;)o.push(a),a=peg$parse_();else o=i;if(o!==i)if(e.substr(K,2)===c?(a=c,K+=2):(a=i,0===ee&&peg$fail(j)),a!==i){if(u=[],(l=peg$parse_())!==i)for(;l!==i;)u.push(l),l=peg$parse_();else u=i;u!==i&&(l=peg$parseExpr1())!==i?s=l:(K=s,s=i)}else K=s,s=i;else K=s,s=i;for(;s!==i;){if(n.push(s),s=K,o=[],(a=peg$parse_())!==i)for(;a!==i;)o.push(a),a=peg$parse_();else o=i;if(o!==i)if(e.substr(K,2)===c?(a=c,K+=2):(a=i,0===ee&&peg$fail(j)),a!==i){if(u=[],(l=peg$parse_())!==i)for(;l!==i;)u.push(l),l=peg$parse_();else u=i;u!==i&&(l=peg$parseExpr1())!==i?s=l:(K=s,s=i)}else K=s,s=i;else K=s,s=i}t,t=peg$f1(r,n)}else K=t,t=i;return t}function peg$parseExpr1(){var t,r,n;return t=K,33===e.charCodeAt(K)?(r=u,K++):(r=i,0===ee&&peg$fail(A)),r!==i&&(n=peg$parseExpr1())!==i?(t,t=peg$f2(n)):(K=t,t=i),t===i&&(t=function peg$parseExpr2(){var t,r,n,s,o,a;t=K,40===e.charCodeAt(K)?(r=l,K++):(r=i,0===ee&&peg$fail($));if(r!==i){if(n=[],(s=peg$parse_())!==i)for(;s!==i;)n.push(s),s=peg$parse_();else n=i;if(n!==i)if((s=peg$parseExpr())!==i){if(o=[],(a=peg$parse_())!==i)for(;a!==i;)o.push(a),a=peg$parse_();else o=i;o!==i?(41===e.charCodeAt(K)?(a=p,K++):(a=i,0===ee&&peg$fail(N)),a!==i?t=s:(K=t,t=i)):(K=t,t=i)}else K=t,t=i;else K=t,t=i}else K=t,t=i;t===i&&(t=function peg$parseTerm(){var t;t=function peg$parsePrimaryFieldTerm(){var t,r,n,s,o,a;if(ee++,t=K,r=peg$parseAttributeType(),r!==i){if(n=[],s=K,46===e.charCodeAt(K)?(o=d,K++):(o=i,0===ee&&peg$fail(q)),o!==i&&(a=peg$parsePathSegment())!==i?s=a:(K=s,s=i),s!==i)for(;s!==i;)n.push(s),s=K,46===e.charCodeAt(K)?(o=d,K++):(o=i,0===ee&&peg$fail(q)),o!==i&&(a=peg$parsePathSegment())!==i?s=a:(K=s,s=i);else n=i;n!==i&&(s=peg$parsePredicate())!==i?(t,t=peg$f5(r,n,s)):(K=t,t=i)}else K=t,t=i;t===i&&(t=K,(r=peg$parseAttributeType())!==i&&(n=peg$parsePredicate())!==i?(t,t=peg$f6(r,n)):(K=t,t=i),t===i&&(t=K,(r=peg$parseAttributeType())!==i&&(t,r=peg$f7(r)),t=r));ee--,t===i&&(r=i,0===ee&&peg$fail(E));return t}(),t===i&&(t=function peg$parseMetadataFieldTerm(){var t,r,n,s,o,a;if(ee++,t=K,r=peg$parsePathSegment(),r!==i){for(n=[],s=K,46===e.charCodeAt(K)?(o=d,K++):(o=i,0===ee&&peg$fail(q)),o!==i&&(a=peg$parsePathSegment())!==i?s=a:(K=s,s=i);s!==i;)n.push(s),s=K,46===e.charCodeAt(K)?(o=d,K++):(o=i,0===ee&&peg$fail(q)),o!==i&&(a=peg$parsePathSegment())!==i?s=a:(K=s,s=i);(s=peg$parsePredicate())!==i?(t,t=peg$f3(r,n,s)):(K=t,t=i)}else K=t,t=i;ee--,t===i&&(r=i,0===ee&&peg$fail(T));return t}(),t===i&&(t=function peg$parseTagTerm(){var t,r,n;ee++,t=K,35===e.charCodeAt(K)?(r=f,K++):(r=i,0===ee&&peg$fail(D));r!==i&&(n=peg$parsePredicateRHS())!==i?(t,t=peg$f4(n)):(K=t,t=i);ee--,t===i&&(r=i,0===ee&&peg$fail(x));return t}()));return t}());return t}()),t}function peg$parsePredicate(){var t,r,n;return t=K,r=e.charAt(K),m.test(r)?K++:(r=i,0===ee&&peg$fail(M)),r!==i&&(n=peg$parsePredicateRHS())!==i?(t,t=peg$f8(r,n)):(K=t,t=i),t===i&&(t=K,r=e.charAt(K),v.test(r)?K++:(r=i,0===ee&&peg$fail(k)),r!==i&&(t,r=peg$f9(r)),t=r),t}function peg$parsePredicateRHS(){var t,r,n,s;if(t=K,39===e.charCodeAt(K)?(r=y,K++):(r=i,0===ee&&peg$fail(U)),r!==i){for(n=[],e.substr(K,2)===h?(s=h,K+=2):(s=i,0===ee&&peg$fail(F)),s===i&&(e.substr(K,2)===g?(s=g,K+=2):(s=i,0===ee&&peg$fail(J)),s===i&&(s=e.charAt(K),b.test(s)?K++:(s=i,0===ee&&peg$fail(L))));s!==i;)n.push(s),e.substr(K,2)===h?(s=h,K+=2):(s=i,0===ee&&peg$fail(F)),s===i&&(e.substr(K,2)===g?(s=g,K+=2):(s=i,0===ee&&peg$fail(J)),s===i&&(s=e.charAt(K),b.test(s)?K++:(s=i,0===ee&&peg$fail(L))));39===e.charCodeAt(K)?(s=y,K++):(s=i,0===ee&&peg$fail(U)),s!==i?(t,t=peg$f10(n)):(K=t,t=i)}else K=t,t=i;if(t===i){for(t=K,r=[],e.substr(K,2)===h?(n=h,K+=2):(n=i,0===ee&&peg$fail(F)),n===i&&(e.substr(K,2)===g?(n=g,K+=2):(n=i,0===ee&&peg$fail(J)),n===i&&(n=e.charAt(K),R.test(n)?K++:(n=i,0===ee&&peg$fail(V))));n!==i;)r.push(n),e.substr(K,2)===h?(n=h,K+=2):(n=i,0===ee&&peg$fail(F)),n===i&&(e.substr(K,2)===g?(n=g,K+=2):(n=i,0===ee&&peg$fail(J)),n===i&&(n=e.charAt(K),R.test(n)?K++:(n=i,0===ee&&peg$fail(V))));t,t=r=peg$f11(r)}return t}function peg$parsePathSegment(){var t,r,n,s,o;if(t=K,r=K,n=e.charAt(K),O.test(n)?K++:(n=i,0===ee&&peg$fail(B)),n!==i){if(s=[],o=e.charAt(K),S.test(o)?K++:(o=i,0===ee&&peg$fail(z)),o!==i)for(;o!==i;)s.push(o),o=e.charAt(K),S.test(o)?K++:(o=i,0===ee&&peg$fail(z));else s=i;s!==i?r=n=[n,s]:(K=r,r=i)}else K=r,r=i;return t=r!==i?e.substring(t,K):r}function peg$parseAttributeType(){var t,r,n,s,o;if(ee++,t=K,r=K,n=e.charAt(K),I.test(n)?K++:(n=i,0===ee&&peg$fail(H)),n!==i){for(s=[],o=e.charAt(K),S.test(o)?K++:(o=i,0===ee&&peg$fail(z));o!==i;)s.push(o),o=e.charAt(K),S.test(o)?K++:(o=i,0===ee&&peg$fail(z));r=n=[n,s]}else K=r,r=i;return t=r!==i?e.substring(t,K):r,ee--,t===i&&(r=i,0===ee&&peg$fail(G)),t}function peg$parse_(){var t;return ee++,t=e.charAt(K),w.test(t)?K++:(t=i,0===ee&&peg$fail(W)),ee--,t===i&&(i,0===ee&&peg$fail(Q)),t}if(r=o(),t.peg$library)return{peg$result:r,peg$currPos:K,peg$FAILED:i,peg$maxFailExpected:X,peg$maxFailPos:Y};if(r!==i&&K===e.length)return r;throw r!==i&&K<e.length&&peg$fail({type:"end"}),peg$buildStructuredError(X,Y<e.length?e.charAt(Y):null,Y<e.length?peg$computeLocation(Y,Y+1):peg$computeLocation(Y,Y))}}},9196:function(e,t,r){"use strict";var i,n=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.UPGRADE_LOGIC=t.DatabaseSchemaUpgrader=void 0;const a=r(1391),c=r(8334),u=r(2984),l=o(r(5250));let p=class RuntimeDatabaseSchemaMetadata extends a.Serializable{static{i=this}static{this.DATABASE_SCHEMA_ID="databaseSchema"}static preFrom(e){return e.id||(e.id=i.DATABASE_SCHEMA_ID),e}static from(e){return this.fromAny(e)}};n([(0,a.serialize)(),(0,a.validate)({customValidator:e=>e===p.DATABASE_SCHEMA_ID?void 0:"Invalid database schema id"}),s("design:type",String)],p.prototype,"id",void 0),n([(0,a.serialize)(),(0,a.validate)({min:0}),s("design:type",Number)],p.prototype,"version",void 0),p=i=n([(0,a.type)("RuntimeDatabaseSchemaMetadata")],p);function extractPayloadFromObject(e,t){const r=e.toJSON();return l.default.pickBy(r,((e,r)=>void 0!==e&&t.includes(r)))}t.DatabaseSchemaUpgrader=class DatabaseSchemaUpgrader{constructor(e,t,r){this.accountController=e,this.consumptionController=t,this.loggerFactory=r,this.CURRENT_DATABASE_SCHEMA_VERSION=2,this.DATABASE_SCHEMA_QUERY={id:p.DATABASE_SCHEMA_ID}}async upgradeSchemaVersion(){let e=await this.getVersionFromDB();for(;e<this.CURRENT_DATABASE_SCHEMA_VERSION;){e++;const r=t.UPGRADE_LOGIC[e];if(!r)throw new Error(`No upgrade logic found for version '${e}'`);await r(this.accountController,this.consumptionController,this.loggerFactory.getLogger(`DatabaseSchemaUpgrader.v${e}`)),await this.writeVersionToDB(e)}}async getVersionFromDB(){const e=await this.accountController.db.getCollection("meta"),t=await e.findOne(this.DATABASE_SCHEMA_QUERY);if(!t)return 0;return p.from(t).version}async writeVersionToDB(e){const t=await this.accountController.db.getCollection("meta"),r=p.from({version:e}),i=await t.findOne(this.DATABASE_SCHEMA_QUERY);i?await t.update(i,r):await t.create(r)}},t.UPGRADE_LOGIC=Object.freeze({1:(e,t,r)=>{r.info(`Upgrading database schema to version 1 for account '${e.identity.address.toString()}'`)},2:async(e,t,r)=>{if(r.info(`Upgrading database schema to version 2 for account '${e.identity.address.toString()}'`),!e.config.datawalletEnabled)return;const i=e.unpushedDatawalletModifications,n=e.config.supportedDatawalletVersion,s=await e.getSynchronizedCollection("Requests"),o=await s.find({});for(const e of o){let t;r.info(`Processing Request '${e.id}'`);try{t=c.LocalRequest.from(e)}catch(t){r.error(`Failed to parse Request '${e.id}'`,t);continue}const s=t.id;await i.create(u.DatawalletModification.from({localId:await u.TransportIds.datawalletModification.generate(),type:u.DatawalletModificationType.Create,collection:"Requests",objectIdentifier:s,payloadCategory:u.DatawalletModificationCategory.TechnicalData,payload:extractPayloadFromObject(t,t.technicalProperties),datawalletVersion:n})),await i.create(u.DatawalletModification.from({localId:await u.TransportIds.datawalletModification.generate(),type:u.DatawalletModificationType.Create,collection:"Requests",objectIdentifier:s,payloadCategory:u.DatawalletModificationCategory.Userdata,payload:extractPayloadFromObject(t,t.userdataProperties),datawalletVersion:n})),r.info(`Successfully created datawallet modifications for Request '${e.id}'.`)}const a=await e.getSynchronizedCollection("Attributes"),l=await a.find({});for(const e of l){let t;r.info(`Processing Attribute '${e.id}'`);try{t=c.LocalAttribute.from(e)}catch(t){r.error(`Failed to parse Attribute '${e.id}'`,t);continue}const s=extractPayloadFromObject(t,t.technicalProperties);"succeededBy"in s||"shareInfo"in s||"parentId"in s?(await i.create(u.DatawalletModification.from({localId:await u.TransportIds.datawalletModification.generate(),type:u.DatawalletModificationType.Update,collection:"Attributes",objectIdentifier:t.id,payloadCategory:u.DatawalletModificationCategory.TechnicalData,payload:s,datawalletVersion:n})),r.info(`Successfully created a datawallet modification for Attribute '${e.id}'.`)):r.info(`Attribute '${e.id}' does not contain any new technical properties. Skipping.`)}await e.syncDatawallet()}})},6754:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Runtime=void 0;const i=r(1917),n=r(8334),s=r(2984),o=r(1699),a=r(3870),c=r(9196),u=r(1911),l=r(3494),p=r(3432),d=r(4044),f=r(5168),y=r(842),h=r(8087),g=r(1442);t.Runtime=class Runtime{get logger(){return this._logger}get anonymousServices(){return this._anonymousServices}isLoggedIn(){return!!this._accountController}getAccountController(){if(!this._accountController)throw h.RuntimeErrors.startup.noActiveAccount();return this._accountController}getConsumptionController(){if(!this._consumptionController)throw h.RuntimeErrors.startup.noActiveConsumptionController();return this._consumptionController}async login(e,t){this._accountController=e,this._consumptionController=t;const r=o.Container.get(d.TransportServices),i=o.Container.get(d.ConsumptionServices),n=o.Container.get(u.DataViewExpander);return await new c.DatabaseSchemaUpgrader(e,t,this.loggerFactory).upgradeSchemaVersion(),{transportServices:r,consumptionServices:i,dataViewExpander:n}}get modules(){return this._modules}get eventBus(){return this._eventBus}constructor(e,t,r){this.runtimeConfig=e,this.loggerFactory=t,this._isInitialized=!1,this._isStarted=!1,this._logger=this.loggerFactory.getLogger(this.constructor.name),this._eventBus=r??new i.EventEmitter2EventBus(((e,t)=>{this.logger.error(`An error was thrown in an event handler of the runtime event bus (namespace: '${t}'). Root error: ${e}`)}))}get isInitialized(){return this._isInitialized}async init(){if(this._isInitialized)throw h.RuntimeErrors.general.alreadyInitialized();this.eventBus.publish(new l.RuntimeInitializingEvent),await this.initDIContainer(),await this.initTransportLibrary(),await this.initAccount(),this._modules=new d.RuntimeModuleRegistry,await this.loadModules(),await this.initInfrastructure(),await this.initModules(),this._eventProxy=new p.EventProxy(this._eventBus,this.transport.eventBus).start(),this._isInitialized=!0,this.eventBus.publish(new l.RuntimeInitializedEvent)}initInfrastructure(){}async getSupportInformation(){return{health:await this.getHealth(),configuration:JSON.parse(JSON.stringify(this.runtimeConfig))}}async initTransportLibrary(){this.logger.debug("Initializing Database connection... ");const e=await this.createDatabaseConnection(),t=this.createTransportConfigWithAdditionalHeaders({...this.runtimeConfig.transportLibrary,supportedIdentityVersion:1}),r=new i.EventEmitter2EventBus(((e,t)=>{this.logger.error(`An error was thrown in an event handler of the transport event bus (namespace: '${t}'). Root error: ${e}`)}));this.transport=new s.Transport(e,t,r,this.loggerFactory),this.logger.debug("Initializing Transport Library..."),await this.transport.init(),this.logger.debug("Finished initialization of Transport Library."),this._anonymousServices=o.Container.get(d.AnonymousServices)}createTransportConfigWithAdditionalHeaders(e){const t=e.platformAdditionalHeaders??{};return t["X-RUNTIME-VERSION"]=a.buildInformation.version,{...e,platformAdditionalHeaders:t}}async initDIContainer(){o.Container.bind(i.EventBus).factory((()=>this.eventBus)).scope(o.Scope.Singleton),o.Container.bind(y.RuntimeLoggerFactory).factory((()=>this.loggerFactory)).scope(o.Scope.Singleton),o.Container.bind(s.AccountController).factory((()=>this.getAccountController())).scope(o.Scope.Request),o.Container.bind(s.DevicesController).factory((()=>this.getAccountController().devices)).scope(o.Scope.Request),o.Container.bind(s.DeviceController).factory((()=>this.getAccountController().activeDevice)).scope(o.Scope.Request),o.Container.bind(s.FileController).factory((()=>this.getAccountController().files)).scope(o.Scope.Request),o.Container.bind(s.IdentityController).factory((()=>this.getAccountController().identity)).scope(o.Scope.Request),o.Container.bind(s.MessageController).factory((()=>this.getAccountController().messages)).scope(o.Scope.Request),o.Container.bind(s.RelationshipTemplateController).factory((()=>this.getAccountController().relationshipTemplates)).scope(o.Scope.Request),o.Container.bind(s.RelationshipsController).factory((()=>this.getAccountController().relationships)).scope(o.Scope.Request),o.Container.bind(s.TokenController).factory((()=>this.getAccountController().tokens)).scope(o.Scope.Request),o.Container.bind(s.ChallengeController).factory((()=>this.getAccountController().challenges)).scope(o.Scope.Request),o.Container.bind(n.ConsumptionController).factory((()=>this.getConsumptionController())).scope(o.Scope.Request),o.Container.bind(n.AttributesController).factory((()=>this.getConsumptionController().attributes)).scope(o.Scope.Request),o.Container.bind(n.AttributeListenersController).factory((()=>this.getConsumptionController().attributeListeners)).scope(o.Scope.Request),o.Container.bind(n.DraftsController).factory((()=>this.getConsumptionController().drafts)).scope(o.Scope.Request),o.Container.bind(n.IncomingRequestsController).factory((()=>this.getConsumptionController().incomingRequests)).scope(o.Scope.Request),o.Container.bind(n.OutgoingRequestsController).factory((()=>this.getConsumptionController().outgoingRequests)).scope(o.Scope.Request),o.Container.bind(n.SettingsController).factory((()=>this.getConsumptionController().settings)).scope(o.Scope.Request),o.Container.bind(n.NotificationsController).factory((()=>this.getConsumptionController().notifications)).scope(o.Scope.Request),o.Container.bind(s.AnonymousTokenController).factory((()=>new s.AnonymousTokenController(this.transport.config))).scope(o.Scope.Singleton);const e=new g.SchemaRepository;await e.loadSchemas(),o.Container.bind(g.SchemaRepository).factory((()=>e)).scope(o.Scope.Singleton)}async loadModules(){this.logger.info("Loading modules...");for(const e in this.runtimeConfig.modules){const t=this.runtimeConfig.modules[e];t.enabled?t.location?t.location.startsWith("@nmshd/runtime:")?this.loadBuiltinModule(t):await this.loadModule(t):this.logger.error(`Skip loading module '${this.getModuleName(t)}' because has no location.`):this.logger.debug(`Skip loading module '${this.getModuleName(t)}' because it is not enabled.`)}this.eventBus.publish(new l.ModulesLoadedEvent)}loadBuiltinModule(e){switch(e.location.split(":")[1]){case"DeciderModule":const t=new f.DeciderModule(this,e,this.loggerFactory.getLogger(f.DeciderModule));this.modules.add(t);break;case"RequestModule":const r=new f.RequestModule(this,e,this.loggerFactory.getLogger(f.RequestModule));this.modules.add(r);break;case"MessageModule":const i=new f.MessageModule(this,e,this.loggerFactory.getLogger(f.MessageModule));this.modules.add(i);break;case"AttributeListenerModule":const n=new f.AttributeListenerModule(this,e,this.loggerFactory.getLogger(f.AttributeListenerModule));this.modules.add(n);break;case"NotificationModule":const s=new f.NotificationModule(this,e,this.loggerFactory.getLogger(f.NotificationModule));this.modules.add(s);break;default:throw new Error(`Module ${e.name} is not a builtin module.`)}}async initModules(){this.logger.info("Initializing modules...");for(const e of this.modules.toArray())try{await e.init(),this.logger.info(`Module '${this.getModuleName(e)}' was initialized successfully.`)}catch(t){throw this.logger.error(`Module '${this.getModuleName(e)}' could not be initialized.`,t),t}this.eventBus.publish(new l.ModulesInitializedEvent)}get isStarted(){return this._isStarted}async start(){if(!this._isInitialized)throw h.RuntimeErrors.general.notInitialized();if(this._isStarted)throw h.RuntimeErrors.general.alreadyStarted();await this.startInfrastructure(),await this.startModules(),this._isStarted=!0}startInfrastructure(){}async stop(){if(!this._isInitialized)throw h.RuntimeErrors.general.notInitialized();if(!this._isStarted)throw h.RuntimeErrors.general.notStarted();await this.stopModules(),await this.stopInfrastructure(),await this.transport.eventBus.close(),this._eventProxy.stop(),await this._eventBus.close(),this.logger.info("Closing AccountController..."),await(this._accountController?.close()),this._accountController=void 0,this.logger.info("AccountController was closed successfully."),this._isInitialized=!1,this._isStarted=!1}stopInfrastructure(){}async stopModules(){this.logger.info("Stopping modules...");for(const e of this.modules.toArray())try{await e.stop(),this.logger.info(`Module '${this.getModuleName(e)}' was stopped successfully.`)}catch(t){this.logger.error(`An Error occured while stopping module '${this.getModuleName(e)}': `,t)}this.logger.info("Stopped all modules.")}async startModules(){this.logger.info("Starting modules...");for(const e of this.modules.toArray())try{await e.start(),this.logger.info(`Module '${this.getModuleName(e)}' was started successfully.`)}catch(t){throw this.logger.error(`Module '${this.getModuleName(e)}' could not be started.`,t),t}this.eventBus.publish(new l.ModulesStartedEvent),this.logger.info("Started all modules.")}getModuleName(e){return e.displayName||e.name||JSON.stringify(e)}}},9440:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},842:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RuntimeLoggerFactory=void 0;t.RuntimeLoggerFactory=class RuntimeLoggerFactory{}},3870:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildInformation=void 0;const i=r(1391),n=r(8334),s=r(2344),o=r(922),a=r(2984);t.buildInformation={version:"4.6.0",build:"73",date:"2024-04-22T15:09:51+00:00",commit:"af98434e2550967725b8ccbe38a854e88140cb7f",dependencies:{"@js-soft/docdb-querytranslator":"^1.1.4","@js-soft/logging-abstractions":"^1.0.1","@js-soft/ts-serval":"2.0.10","@js-soft/ts-utils":"^2.3.3","@nmshd/consumption":"3.10.0","@nmshd/content":"2.9.0","@nmshd/crypto":"2.0.6","@nmshd/transport":"2.5.0",ajv:"^8.12.0","ajv-errors":"^3.0.0","ajv-formats":"^3.0.1","json-stringify-safe":"^5.0.1",lodash:"^4.17.21",luxon:"^3.4.4",qrcode:"1.5.3","reflect-metadata":"^0.2.2","ts-simple-nameof":"^1.3.1","typescript-ioc":"3.2.2"},libraries:{serval:i.buildInformation,consumption:n.buildInformation,content:s.buildInformation,crypto:o.buildInformation,transport:a.buildInformation}}},9021:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DataViewExpander=void 0;const o=r(1391),a=r(8334),c=r(2344),u=r(2984),l=r(1699),p=r(4044),d=r(2847),f=r(8087),y=r(3910),h=r(171),g=r(8032);let m=class DataViewExpander{constructor(e,t,r,i){this.transport=e,this.consumption=t,this.consumptionController=r,this.identityController=i}async expand(e,t){let r=t;if(e["@type"]&&(r=e["@type"]),Array.isArray(e)){if(!(e.length>0))return[];r=e[0]["@type"]}if(!r)throw f.RuntimeErrors.general.invalidPayload("No type found.");switch(r){case"Message":return Array.isArray(e)?await this.expandMessageDTOs(e):await this.expandMessageDTO(e);case"Attribute":return Array.isArray(e)?await this.expandAttributes(e):await this.expandAttribute(e);case"Address":return Array.isArray(e)?await this.expandAddresses(e):await this.expandAddress(e);case"FileId":return Array.isArray(e)?await this.expandFileIds(e):await this.expandFileId(e);case"File":return Array.isArray(e)?await this.expandFileDTOs(e):await this.expandFileDTO(e);case"Recipient":return Array.isArray(e)?await this.expandRecipientDTOs(e):await this.expandAddress(e);case"Relationship":return Array.isArray(e)?await this.expandRelationshipDTOs(e):await this.expandRelationshipDTO(e);case"LocalAttribute":return Array.isArray(e)?await this.expandLocalAttributeDTOs(e):await this.expandLocalAttributeDTO(e);default:throw f.RuntimeErrors.general.notSupported(`No expander is defined for the @type '${r}'.`)}}async expandMessageDTO(e){const t=await this.expandRecipientDTOs(e.recipients),r={};t.forEach((e=>r[e.id]=e));const i=await this.expandAddress(e.createdBy),n=[],s=[];for(const t of e.attachments)"string"==typeof t?(s.push(this.expandFileId(t)),n.push(t)):(s.push(this.expandFileDTO(t)),n.push(t.id));const o=await Promise.all(s),a=e.isOwn;let c,u=h.MessageStatus.Received;if(a){u=e.recipients.every((e=>!!e.receivedAt))?h.MessageStatus.Delivered:h.MessageStatus.Delivering,c={...t[0],type:"IdentityDVO"}}else c=i;const l=y.DataViewTranslateable.transport.messageName,p={id:e.id,name:l,date:e.createdAt,type:"MessageDVO",createdByDevice:e.createdByDevice,createdAt:e.createdAt,createdBy:i,recipients:t,attachments:o,isOwn:a,recipientCount:e.recipients.length,attachmentCount:e.attachments.length,status:u,statusText:`i18n://dvo.message.${u}`,image:"",peer:c,content:e.content,wasReadAt:e.wasReadAt};if("Mail"===e.content["@type"]||"RequestMail"===e.content["@type"]){const t=e.content,i=t.to.map((e=>r[e]));let n=[];t.cc&&(n=t.cc.map((e=>r[e])));return{...p,type:"MailDVO",name:t.subject?t.subject:y.DataViewTranslateable.consumption.mails.mailSubjectFallback,subject:t.subject,body:t.body,to:i,toCount:t.to.length,cc:n,ccCount:n.length}}if("Request"===e.content["@type"]){let t;if(a){const r=await this.consumption.outgoingRequests.getRequests({query:{"source.reference":e.id}});if(0===r.value.length)throw new Error("No LocalRequest has been found for this message id.");if(r.value.length>1)throw new Error("More than one LocalRequest has been found for this message id.");t=r.value[0]}else{const r=await this.consumption.incomingRequests.getRequests({query:{"source.reference":e.id}});if(0===r.value.length)throw new Error("No LocalRequest has been found for this message id.");if(r.value.length>1)throw new Error("More than one LocalRequest has been found for this message id.");t=r.value[0]}return{...p,type:"RequestMessageDVO",request:await this.expandLocalRequestDTO(t)}}if("Response"===e.content["@type"]){let t;if(a){const r=await this.consumption.incomingRequests.getRequests({query:{id:e.content.requestId}});if(0===r.value.length)throw new Error("No LocalRequest has been found for this message id.");if(r.value.length>1)throw new Error("More than one LocalRequest has been found for this message id.");t=r.value[0]}else{const r=await this.consumption.outgoingRequests.getRequests({query:{id:e.content.requestId}});if(0===r.value.length)throw new Error("No LocalRequest has been found for this message id.");if(r.value.length>1)throw new Error("More than one LocalRequest has been found for this message id.");t=r.value[0]}return{...p,type:"RequestMessageDVO",request:await this.expandLocalRequestDTO(t)}}return p}async expandMessageDTOs(e){const t=e.map((e=>this.expandMessageDTO(e)));return await Promise.all(t)}async expandRelationshipTemplateDTO(e){let t,r;const i=await this.expandAddress(e.createdBy),n=e.isOwn?"RelationshipTemplateDVO":"PeerRelationshipTemplateDVO";let s=e.isOwn?"i18n://dvo.template.outgoing.name":"i18n://dvo.template.incoming.name";const o=e.isOwn?"i18n://dvo.template.outgoing.description":"i18n://dvo.template.incoming.description";let u;if("RelationshipTemplateContent"===e.content["@type"]){const i=c.RelationshipTemplateContent.from(e.content).toJSON();let n;if(i.title&&(s=i.title),!e.isOwn){const t=await this.consumption.incomingRequests.getRequests({query:{"source.reference":e.id,status:a.LocalRequestStatus.ManualDecisionRequired}});if(t.value.length>0)n=t.value[0],u=await this.expandLocalRequestDTO(n);else{const t=await this.consumption.incomingRequests.getRequests({query:{"source.reference":e.id,status:[a.LocalRequestStatus.Decided,a.LocalRequestStatus.Completed]}});t.value.length>0&&(n=t.value[0],u=await this.expandLocalRequestDTO(n))}}t=await this.expandRequest(i.onNewRelationship),i.onExistingRelationship&&(r=await this.expandRequest(i.onExistingRelationship))}return{name:s,description:o,type:n,date:e.createdAt,...e,createdBy:i,request:u,onNewRelationship:t,onExistingRelationship:r}}async expandRelationshipTemplateDTOs(e){const t=e.map((e=>this.expandRelationshipTemplateDTO(e)));return await Promise.all(t)}async expandRequest(e,t,r){const i=e.id?e.id:"",n=[];for(let i=0;i<e.items.length;i++){const s=e.items[i],o=r?.content.items[i];n.push(await this.expandRequestGroupOrItem(s,t,o))}return{id:i,name:`${e["@type"]} ${i}`,type:"RequestDVO",date:e.expiresAt,...e,items:n,response:r?.content}}async expandRequests(e){const t=e.map((e=>this.expandRequest(e)));return await Promise.all(t)}async expandRequestItem(e,t,r){let i,n=!1;switch(!t||t.isOwn||"DecisionRequired"!==t.status&&"ManualDecisionRequired"!==t.status||(n=!0),e["@type"]){case"ReadAttributeRequestItem":const s=e;if(n){const t=await this.processAttributeQuery(s.query);return"ProcessedThirdPartyRelationshipAttributeQueryDVO"===t.type&&0===t.results.length&&(n=!1,i={code:"dvo.requestItem.error.noResultsForThirdPartyRelationshipAttributeQuery",message:"There are no matching Attributes for this ThirdPartyRelationshipAttributeQuery."}),"ProcessedIQLQueryDVO"!==t.type||0!==t.results.length||s.query.attributeCreationHints||(n=!1,i={code:"dvo.requestItem.error.noResultsForIQLQueryDVO",message:"There are no matching Attributes for this IQLQuery and no attributeCreationHint is set."}),{...s,type:"DecidableReadAttributeRequestItemDVO",id:"",name:e.title?e.title:"i18n://dvo.requestItem.DecidableReadAttributeRequestItem.name",query:t,isDecidable:n,error:i,response:r}}return{...s,type:"ReadAttributeRequestItemDVO",id:"",name:e.title?e.title:"i18n://dvo.requestItem.ReadAttributeRequestItem.name",query:await this.expandAttributeQuery(s.query),isDecidable:n,response:r};case"CreateAttributeRequestItem":const o=e,a=await this.expandAttribute(o.attribute);let u=!1;"DraftIdentityAttributeDVO"===a.type&&(u=!0);const l=e.title,p=e.description;let d;return n?(d="i18n://dvo.requestItem.DecidableCreateRelationshipAttributeRequestItem.name",u&&(d="i18n://dvo.requestItem.DecidableCreateIdentityAttributeRequestItem.name"),{...o,type:"DecidableCreateAttributeRequestItemDVO",id:"",name:l??d,description:p??d,attribute:a,isDecidable:n,response:r}):(d="i18n://dvo.requestItem.CreateRelationshipAttributeRequestItem.name",u&&(d="i18n://dvo.requestItem.CreateIdentityAttributeRequestItem.name"),{...o,type:"CreateAttributeRequestItemDVO",id:"",name:l??d,description:p??d,attribute:a,isDecidable:n,response:r});case"DeleteAttributeRequestItem":const f=e,y=await this.consumption.attributes.getAttribute({id:f.attributeId}),h=await this.expandLocalAttributeDTO(y.value);return n?{...f,type:"DecidableDeleteAttributeRequestItemDVO",id:"",name:e.title?e.title:"i18n://dvo.requestItem.DecidableDeleteAttributeRequestItem.name",isDecidable:n,response:r,attribute:h}:{...f,type:"DeleteAttributeRequestItemDVO",id:"",name:e.title?e.title:"i18n://dvo.requestItem.DeleteAttributeRequestItem.name",isDecidable:n,response:r,attribute:h};case"ProposeAttributeRequestItem":const g=e;t&&(g.attribute.owner=t.isOwn?t.peer:this.identityController.address.toString());let m=!1;if(r&&r.result===c.ResponseItemResult.Accepted){const e=r;JSON.stringify(e.attribute.content.value)!==JSON.stringify(g.attribute.value)&&(m=!0)}return n?{...g,type:"DecidableProposeAttributeRequestItemDVO",id:"",name:e.title?e.title:"i18n://dvo.requestItem.DecidableProposeAttributeRequestItem.name",attribute:await this.expandAttribute(g.attribute),query:await this.processAttributeQuery(g.query),isDecidable:n,response:r}:{...g,type:"ProposeAttributeRequestItemDVO",id:"",name:e.title?e.title:"i18n://dvo.requestItem.ProposeAttributeRequestItem.name",attribute:await this.expandAttribute(g.attribute),query:await this.expandAttributeQuery(g.query),isDecidable:n,response:r,proposedValueOverruled:m};case"ShareAttributeRequestItem":const v=e,b=await this.expandAttribute(v.attribute);if(n)return{...v,type:"DecidableShareAttributeRequestItemDVO",id:"",name:e.title?e.title:"i18n://dvo.requestItem.DecidableProposeAttributeRequestItem.name",attribute:b,isDecidable:n,response:r};const R=r;return R&&(b.id=R.attributeId),{...v,type:"ShareAttributeRequestItemDVO",id:"",name:e.title?e.title:"i18n://dvo.requestItem.ProposeAttributeRequestItem.name",attribute:b,isDecidable:n,response:r};case"AuthenticationRequestItem":const O=e;return n?{...O,type:"DecidableAuthenticationRequestItemDVO",id:"",name:e.title?e.title:"i18n://dvo.requestItem.DecidableAuthenticationRequestItem.name",isDecidable:n,response:r}:{...O,type:"AuthenticationRequestItemDVO",id:"",name:e.title?e.title:"i18n://dvo.requestItem.AuthenticationRequestItem.name",isDecidable:n,response:r};case"ConsentRequestItem":const S=e;return n?{...S,type:"DecidableConsentRequestItemDVO",id:"",name:e.title?e.title:"i18n://dvo.requestItem.DecidableConsentRequestItem.name",isDecidable:n,response:r}:{...S,type:"ConsentRequestItemDVO",id:"",name:e.title?e.title:"i18n://dvo.requestItem.ConsentRequestItem.name",isDecidable:n,response:r};case"FreeTextRequestItem":const I=e;return n?{...I,type:"DecidableFreeTextRequestItemDVO",id:"",name:e.title?e.title:"i18n://dvo.requestItem.DecidableFreeTextRequestItem.name",isDecidable:n,response:r}:{...I,type:"FreeTextRequestItemDVO",id:"",name:e.title?e.title:"i18n://dvo.requestItem.FreeTextRequestItem.name",isDecidable:n,response:r};case"RegisterAttributeListenerRequestItem":const w=e,P=await this.expandAttributeQuery(w.query);return n?{...w,type:"DecidableRegisterAttributeListenerRequestItemDVO",id:"",query:P,name:e.title?e.title:"i18n://dvo.requestItem.DecidableRegisterAttributeListenerRequestItem.name",isDecidable:n,response:r}:{...w,type:"RegisterAttributeListenerRequestItemDVO",id:"",query:P,name:e.title?e.title:"i18n://dvo.requestItem.RegisterAttributeListenerRequestItem.name",isDecidable:n,response:r};default:return{...e,type:"RequestItemDVO",id:"",name:e.title?e.title:"i18n://dvo.requestItem.name",isDecidable:n,response:r}}}async expandRequestGroupOrItem(e,t,r){if("RequestItemGroup"===e["@type"]){let i=!1;!t||t.isOwn||"DecisionRequired"!==t.status&&"ManualDecisionRequired"!==t.status||(i=!0);const n=e,s=r,o=[];for(let e=0;e<n.items.length;e++){const r=n.items[e],i=s?.items[e];o.push(await this.expandRequestItem(r,t,i))}return{type:"RequestItemGroupDVO",items:o,isDecidable:i,title:e.title,description:e.description,mustBeAccepted:e.mustBeAccepted,response:s}}return await this.expandRequestItem(e,t,r)}async expandResponseItem(e){if("Accepted"!==e.result){if("Rejected"===e.result){return{...e,type:"RejectResponseItemDVO",id:"",name:"i18n://dvo.responseItem.rejected"}}return{...e,type:"ErrorResponseItemDVO",id:"",name:"i18n://dvo.responseItem.error"}}{const t=`i18n://dvo.responseItem.${e["@type"]}.acceptedName`;switch(e["@type"]){case"ReadAttributeAcceptResponseItem":const r=e,i=await this.consumption.attributes.getAttribute({id:r.attributeId}),n=await this.expandLocalAttributeDTO(i.value);return{...r,type:"ReadAttributeAcceptResponseItemDVO",id:r.attributeId,name:t,attribute:n};case"CreateAttributeAcceptResponseItem":const s=e,o=await this.consumption.attributes.getAttribute({id:s.attributeId}),a=await this.expandLocalAttributeDTO(o.value);return{...s,type:"CreateAttributeAcceptResponseItemDVO",id:s.attributeId,name:t,attribute:a};case"DeleteAttributeAcceptResponseItem":return{...e,type:"DeleteAttributeAcceptResponseItemDVO",id:"",name:t};case"ProposeAttributeAcceptResponseItem":const c=e,u=await this.consumption.attributes.getAttribute({id:c.attributeId}),l=await this.expandLocalAttributeDTO(u.value);return{...c,type:"ProposeAttributeAcceptResponseItemDVO",id:c.attributeId,name:t,attribute:l};case"ShareAttributeAcceptResponseItem":const p=e,d=await this.consumption.attributes.getAttribute({id:p.attributeId}),f=await this.expandLocalAttributeDTO(d.value);return{...p,type:"ShareAttributeAcceptResponseItemDVO",id:p.attributeId,name:t,attribute:f};case"RegisterAttributeListenerAcceptResponseItem":const y=e,h=await this.consumption.attributeListeners.getAttributeListener({id:y.listenerId}),g=await this.expandLocalAttributeListenerDTO(h.value);return{...y,type:"RegisterAttributeListenerAcceptResponseItemDVO",id:y.listenerId,name:t,listener:g};default:return{...e,type:"AcceptResponseItemDVO",id:"",name:t}}}}async expandLocalAttributeListenerDTO(e){const t=await this.expandAttributeQuery(e.query),r=await this.expandIdentityForAddress(e.peer);return{type:"LocalAttributeListenerDVO",name:"dvo.localAttributeListener.name",description:"dvo.localAttributeListener.description",...e,query:t,peer:r}}async expandResponseGroupOrItem(e){if("ResponseItemGroup"===e["@type"]){const t=e,r=[];for(const e of t.items)r.push(await this.expandResponseItem(e));return{type:"ResponseItemGroupDVO",items:r}}return await this.expandResponseItem(e)}async expandLocalRequestDTO(e){const t=e.response?await this.expandLocalResponseDTO(e.response,e):void 0,r=await this.expandRequest(e.content,e,t),i=await this.expandAddress(e.peer);let n=!1;e.isOwn||"DecisionRequired"!==e.status&&"ManualDecisionRequired"!==e.status||(n=!0);const s=e.isOwn?"outgoing":"incoming",o=`i18n://dvo.localRequest.status.${e.status}`,a=e.source?.type??"unknown",c=e.response?e.response.content.requestId:"";return{...e,id:e.id?e.id:c,content:r,items:r.items,name:`i18n://dvo.localRequest.${a}.${s}.${e.status}.name`,directionText:`i18n://dvo.localRequest.direction.${s}`,description:`i18n://dvo.localRequest.${a}.${s}.${e.status}.description`,sourceTypeText:`i18n://dvo.localRequest.sourceType.${a}`,type:"LocalRequestDVO",date:e.createdAt,createdBy:e.isOwn?this.expandSelf():i,decider:e.isOwn?i:this.expandSelf(),peer:i,response:t,statusText:o,isDecidable:n}}async expandLocalRequestDTOs(e){const t=e.map((e=>this.expandLocalRequestDTO(e)));return await Promise.all(t)}async expandResponse(e,t){const r=[];for(const t of e.items)r.push(await this.expandResponseGroupOrItem(t));return{id:t.id,name:"i18n://dvo.response.name",type:"ResponseDVO",...e,items:r}}async expandLocalResponseDTO(e,t){const r=await this.expandResponse(e.content,t);return{...e,id:t.id,name:"i18n://dvo.localResponse.name",type:"LocalResponseDVO",date:e.createdAt,content:r,items:e.content.items}}async expandLocalAttributeDTO(e){const t=e.content.value["@type"],r=await this.consumptionController.attributes.getLocalAttribute(u.CoreId.from(e.id));if(!r)throw new Error("Attribute not found");const i=e.content.owner;let n=`i18n://dvo.attribute.name.${t}`,s=`i18n://dvo.attribute.description.${t}`;const o=r.content.value.renderHints.toJSON(),a=r.content.value.valueHints.toJSON();if(r.shareInfo){const u=r.shareInfo.peer.toString();if(r.content instanceof c.RelationshipAttribute){const c=r.content,l=c.value;return"title"in l&&(n=l.title),"description"in l&&l.description&&(s=l.description),c.owner===r.shareInfo.peer?{type:"PeerRelationshipAttributeDVO",id:e.id,name:n,key:c.key,confidentiality:c.confidentiality,description:s,content:e.content,value:e.content.value,date:e.createdAt,owner:i,renderHints:o,valueHints:a,isValid:!0,createdAt:e.createdAt,isOwn:!1,peer:u,isDraft:!1,requestReference:r.shareInfo.requestReference?.toString(),notificationReference:r.shareInfo.notificationReference?.toString(),valueType:t,isTechnical:c.isTechnical,deletionStatus:r.deletionInfo?.deletionStatus,deletionDate:r.deletionInfo?.deletionDate.toString()}:{type:"OwnRelationshipAttributeDVO",id:e.id,name:n,key:c.key,confidentiality:c.confidentiality,description:s,content:e.content,value:e.content.value,date:e.createdAt,owner:i,renderHints:o,valueHints:a,isValid:!0,createdAt:e.createdAt,isOwn:!0,peer:u,isDraft:!1,requestReference:r.shareInfo.requestReference?.toString(),notificationReference:r.shareInfo.notificationReference?.toString(),valueType:t,isTechnical:c.isTechnical,deletionStatus:r.deletionInfo?.deletionStatus,deletionDate:r.deletionInfo?.deletionDate.toString()}}const l=r.content;return r.shareInfo.sourceAttribute?{type:"SharedToPeerAttributeDVO",id:e.id,name:n,description:s,content:e.content,value:e.content.value,date:e.createdAt,owner:i,renderHints:o,valueHints:a,isValid:!0,createdAt:e.createdAt,isOwn:!0,peer:u,isDraft:!1,requestReference:r.shareInfo.requestReference?.toString(),notificationReference:r.shareInfo.notificationReference?.toString(),sourceAttribute:r.shareInfo.sourceAttribute.toString(),tags:l.tags?l.tags:[],valueType:t,deletionStatus:r.deletionInfo?.deletionStatus,deletionDate:r.deletionInfo?.deletionDate.toString()}:{type:"PeerAttributeDVO",id:e.id,name:n,description:s,content:e.content,value:e.content.value,date:e.createdAt,owner:i,renderHints:o,valueHints:a,isValid:!0,createdAt:e.createdAt,isOwn:!1,peer:u,isDraft:!1,requestReference:r.shareInfo.requestReference?.toString(),notificationReference:r.shareInfo.notificationReference?.toString(),tags:l.tags?l.tags:[],valueType:t,deletionStatus:r.deletionInfo?.deletionStatus,deletionDate:r.deletionInfo?.deletionDate.toString()}}const l=r.content,p=await this.consumption.attributes.getAttributes({query:{"shareInfo.sourceAttribute":e.id}}),d=await this.expandLocalAttributeDTOs(p.value);return{type:"RepositoryAttributeDVO",id:e.id,name:n,description:s,content:e.content,value:e.content.value,date:e.createdAt,owner:i,renderHints:o,valueHints:a,isValid:!0,createdAt:e.createdAt,isOwn:!0,isDraft:!1,sharedWith:d,tags:l.tags?l.tags:[],valueType:t}}async expandLocalAttributeDTOs(e){const t=e.map((e=>this.expandLocalAttributeDTO(e)));return await Promise.all(t)}async expandAttributeQuery(e){switch(e["@type"]){case"IdentityAttributeQuery":return this.expandIdentityAttributeQuery(e);case"RelationshipAttributeQuery":return await this.expandRelationshipAttributeQuery(e);case"ThirdPartyRelationshipAttributeQuery":return await this.expandThirdPartyRelationshipAttributeQuery(e);case"IQLQuery":return this.expandIQLQuery(e);default:throw new Error("Wrong attribute query")}}expandIdentityAttributeQuery(e){const t=e.valueType,r=`i18n://dvo.attribute.name.${t}`,i=`i18n://dvo.attribute.description.${t}`,n=this.getHintsForValueType(t);return{type:"IdentityAttributeQueryDVO",id:"",name:r,description:i,valueType:t,validFrom:e.validFrom,validTo:e.validTo,renderHints:n.renderHints,valueHints:n.valueHints,isProcessed:!1}}async expandRelationshipAttributeQuery(e){const t=e.attributeCreationHints.valueType;let r="i18n://dvo.attributeQuery.name.RelationshipAttributeQuery",i="i18n://dvo.attributeQuery.description.RelationshipAttributeQuery";e.attributeCreationHints.title&&(r=e.attributeCreationHints.title),e.attributeCreationHints.description&&(i=e.attributeCreationHints.description);const n=this.getHintsForValueType(t);return e.attributeCreationHints.valueHints&&(n.valueHints=e.attributeCreationHints.valueHints),{type:"RelationshipAttributeQueryDVO",id:"",name:r,description:i,validFrom:e.validFrom,validTo:e.validTo,owner:await this.expandAddress(e.owner),key:e.key,attributeCreationHints:e.attributeCreationHints,renderHints:n.renderHints,valueHints:n.valueHints,isProcessed:!1,valueType:t}}async expandThirdPartyRelationshipAttributeQuery(e){const t=await Promise.all(e.thirdParty.map((e=>this.expandAddress(e))));return{type:"ThirdPartyRelationshipAttributeQueryDVO",id:"",name:"i18n://dvo.attributeQuery.name.ThirdPartyRelationshipAttributeQuery",description:"i18n://dvo.attributeQuery.description.ThirdPartyRelationshipAttributeQuery",validFrom:e.validFrom,validTo:e.validTo,owner:await this.expandAddress(e.owner),thirdParty:t,key:e.key,isProcessed:!1}}expandIQLQuery(e){let t,r,i,n;if(e.attributeCreationHints?.valueType&&(i=e.attributeCreationHints.valueType),i){const e=this.getHintsForValueType(i);t=e.renderHints,r=e.valueHints}return e.attributeCreationHints?.tags&&(n=e.attributeCreationHints.tags),{type:"IQLQueryDVO",id:"",name:"i18n://dvo.attributeQuery.name.IQLQuery",description:"i18n://dvo.attributeQuery.description.IQLQuery",queryString:e.queryString,isProcessed:!1,attributeCreationHints:e.attributeCreationHints,valueType:i,renderHints:t,valueHints:r,tags:n}}getHintsForValueType(e){const t=o.SerializableBase.getModule(e,1);if(!t)throw new Error(`No class implementation found for ${e}`);let r={"@type":"RenderHints",editType:c.RenderHintsEditType.InputLike,technicalType:c.RenderHintsTechnicalType.String},i={"@type":"ValueHints",max:200};return t.renderHints&&t.renderHints instanceof c.RenderHints&&(r=t.renderHints.toJSON()),t.valueHints&&t.valueHints instanceof c.ValueHints&&(i=t.valueHints.toJSON()),{renderHints:r,valueHints:i}}async processAttributeQuery(e){switch(e["@type"]){case"IdentityAttributeQuery":return await this.processIdentityAttributeQuery(e);case"RelationshipAttributeQuery":return await this.processRelationshipAttributeQuery(e);case"ThirdPartyRelationshipAttributeQuery":return await this.processThirdPartyRelationshipAttributeQuery(e);case"IQLQuery":return await this.processIQLQuery(e);default:throw new Error("Wrong attribute query")}}async processIdentityAttributeQuery(e){const t=await this.consumption.attributes.executeIdentityAttributeQuery({query:e}),r=await this.expandLocalAttributeDTOs(t.value);return{...this.expandIdentityAttributeQuery(e),type:"ProcessedIdentityAttributeQueryDVO",results:r,isProcessed:!0}}async processRelationshipAttributeQuery(e){const t=await this.consumption.attributes.executeRelationshipAttributeQuery({query:e});if(t.isError){if("error.runtime.recordNotFound"!==t.error.code)throw t.error;return{...await this.expandRelationshipAttributeQuery(e),type:"ProcessedRelationshipAttributeQueryDVO",results:[],isProcessed:!0}}const r=await this.expandLocalAttributeDTO(t.value);return{...await this.expandRelationshipAttributeQuery(e),type:"ProcessedRelationshipAttributeQueryDVO",results:[r],isProcessed:!0}}async processThirdPartyRelationshipAttributeQuery(e){const t=await this.consumption.attributes.executeThirdPartyRelationshipAttributeQuery({query:e}),r=await this.expandLocalAttributeDTOs(t.value);return{...await this.expandThirdPartyRelationshipAttributeQuery(e),type:"ProcessedThirdPartyRelationshipAttributeQueryDVO",results:r,isProcessed:!0}}async processIQLQuery(e){const t=await this.consumption.attributes.executeIQLQuery({query:e}),r=await this.expandLocalAttributeDTOs(t.value);let i,n,s;if(r.length>0&&r.every((e=>e.valueType===r[0].valueType)))i=r[0].valueType,n=r[0].renderHints,s=r[0].valueHints;else if(e.attributeCreationHints?.valueType&&(i=e.attributeCreationHints.valueType),i){const e=this.getHintsForValueType(i);n=e.renderHints,s=e.valueHints}return{...this.expandIQLQuery(e),type:"ProcessedIQLQueryDVO",results:r,isProcessed:!0,valueType:i,renderHints:n,valueHints:s}}async expandIdentityAttribute(e,t){const r=e.value["@type"],i=`i18n://dvo.attribute.name.${r}`,n=`i18n://dvo.attribute.description.${r}`,s=t.value.renderHints.toJSON(),o=t.value.valueHints.toJSON(),a=await this.expandAddress(e.owner);return{type:"DraftIdentityAttributeDVO",content:e,name:i,description:n,id:"",owner:a,renderHints:s,valueHints:o,value:e.value,isDraft:!0,isOwn:a.isSelf,valueType:r,tags:t.tags?t.tags:[]}}async expandRelationshipAttribute(e,t){const r=e.value["@type"];let i=`i18n://dvo.attribute.name.${r}`,n=`i18n://dvo.attribute.description.${r}`;const s=t.value.renderHints.toJSON(),o=t.value.valueHints.toJSON(),a=t.value;"title"in a&&(i=a.title),"description"in a&&a.description&&(n=a.description);const c=await this.expandAddress(e.owner);return{type:"DraftRelationshipAttributeDVO",content:e,name:i,description:n,key:e.key,confidentiality:e.confidentiality,isTechnical:!!e.isTechnical,id:"",owner:c,renderHints:s,valueHints:o,value:e.value,isDraft:!0,isOwn:c.isSelf,valueType:r}}async expandAttribute(e){const t=o.Serializable.fromUnknown(e);if(t instanceof c.IdentityAttribute)return await this.expandIdentityAttribute(e,t);if(t instanceof c.RelationshipAttribute)return await this.expandRelationshipAttribute(e,t);throw new Error("Wrong attribute instance")}async expandAttributes(e){const t=e.map((e=>this.expandAttribute(e)));return await Promise.all(t)}expandSelf(){return{id:this.identityController.address.toString(),type:"IdentityDVO",name:"i18n://dvo.identity.self.name",initials:"i18n://dvo.identity.self.initials",realm:u.Realm.Prod,description:"i18n://dvo.identity.self.description",isSelf:!0,hasRelationship:!1}}expandUnknown(e){const t=e.substring(3,9),r=(t.match(/\b\w/g)??[]).join("");return{id:e,type:"IdentityDVO",name:t,initials:r,realm:u.Realm.Prod,description:"i18n://dvo.identity.unknown.description",isSelf:!1,hasRelationship:!1}}async expandAddress(e){if(this.identityController.isMe(u.CoreAddress.from(e)))return this.expandSelf();const t=await this.transport.relationships.getRelationshipByAddress({address:e});return t.isError?this.expandUnknown(e):await this.expandRelationshipDTO(t.value)}async expandAddresses(e){const t=e.map((e=>this.expandAddress(e)));return await Promise.all(t)}async expandRecipientDTO(e){return{...await this.expandAddress(e.address),type:"RecipientDVO",receivedAt:e.receivedAt,receivedByDevice:e.receivedByDevice}}async expandRecipientDTOs(e){const t=e.map((e=>this.expandRecipientDTO(e)));return await Promise.all(t)}expandRelationshipChangeDTO(e,t){const r=t.response?t.response.createdAt:t.request.createdAt;let i,n=!1;return this.identityController.isMe(u.CoreAddress.from(t.request.createdBy))&&(n=!0),t.response&&(i={...t.response,id:`${t.id}_response`,name:"i18n://dvo.relationshipChange.response.name",type:"RelationshipChangeResponseDVO"}),Promise.resolve({type:"RelationshipChangeDVO",id:t.id,name:"",date:r,status:t.status,statusText:`i18n://dvo.relationshipChange.${t.status}`,changeType:t.type,changeTypeText:`i18n://dvo.relationshipChange.${t.type}`,isOwn:n,request:{...t.request,id:`${t.id}_request`,name:"i18n://dvo.relationshipChange.request.name",type:"RelationshipChangeRequestDVO"},response:i})}async expandRelationshipChangeDTOs(e){const t=e.changes.map((t=>this.expandRelationshipChangeDTO(e,t)));return await Promise.all(t)}async createRelationshipDVO(e){let t;const r=await this.consumption.settings.getSettings({query:{reference:e.id}});t=r.value.length>0?r.value[0].value:{isPinned:!1};const i={},n=await this.consumption.attributes.getPeerSharedAttributes({onlyValid:!0,peer:e.peer}),s=await this.expandLocalAttributeDTOs(n.value),o={};for(const e of s){const t=e.content.value["@type"],r=o[t];r?r.push(e):o[t]=[e];if(["DisplayName","GivenName","MiddleName","Surname","Sex"].includes(t)){const r=e.content.value;i[t]&&"GivenName"===t?i[t]+=` ${r.value}`:i[t]=r.value}}let a=g.RelationshipDirection.Incoming;this.identityController.isMe(u.CoreAddress.from(e.changes[0].request.createdBy))&&(a=g.RelationshipDirection.Outgoing);let c="";e.status===u.RelationshipStatus.Pending&&a===g.RelationshipDirection.Outgoing?c=y.DataViewTranslateable.transport.relationshipOutgoing:e.status===u.RelationshipStatus.Pending?c=y.DataViewTranslateable.transport.relationshipIncoming:e.status===u.RelationshipStatus.Rejected?c=y.DataViewTranslateable.transport.relationshipRejected:e.status===u.RelationshipStatus.Revoked?c=y.DataViewTranslateable.transport.relationshipRevoked:e.status===u.RelationshipStatus.Active&&(c=y.DataViewTranslateable.transport.relationshipActive);const l=await this.expandRelationshipChangeDTOs(e);let p;return p=i.DisplayName?i.DisplayName:i.MiddleName&&i.GivenName&&i.Surname?`${i.GivenName} ${i.MiddleName} ${i.Surname}`:i.GivenName&&i.Surname?`${i.GivenName} ${i.Surname}`:i.Sex&&i.Surname?`i18n://dvo.identity.Salutation.${i.Sex} ${i.Surname}`:i.Surname?`${i.Surname}`:e.peer.substring(3,9),{id:e.id,name:t.userTitle??p,description:t.userDescription??c,date:e.changes[0].request.createdAt,image:"",type:"RelationshipDVO",status:e.status,statusText:c,direction:a,isPinned:t.isPinned,attributeMap:o,items:s,nameMap:i,changes:l,changeCount:l.length,templateId:e.template.id}}async expandRelationshipDTO(e){const t=await this.createRelationshipDVO(e),r=(t.name.match(/\b\w/g)??[]).join("");return{type:"IdentityDVO",id:e.peer,name:t.name,date:t.date,description:t.description,publicKey:e.peerIdentity.publicKey,realm:e.peerIdentity.realm,initials:r,isSelf:!1,hasRelationship:!0,relationship:t,items:t.items}}async expandIdentityForAddress(e){if(e===this.identityController.address.toString())return this.expandSelf();const t=await this.transport.relationships.getRelationshipByAddress({address:e});if(t.isSuccess)return await this.expandRelationshipDTO(t.value);if(t.error.code!==f.RuntimeErrors.general.recordNotFound(u.Relationship).code)throw t.error;const r=e.substring(3,9),i=(r.match(/\b\w/g)??[]).join("");return{id:e,type:"IdentityDVO",name:r,initials:i,publicKey:"i18n://dvo.identity.publicKey.unknown",realm:this.identityController.realm.toString(),description:"i18n://dvo.identity.unknown",isSelf:!1,hasRelationship:!1}}async expandIdentityDTO(e){return await this.expandIdentityForAddress(e.address)}async expandRelationshipDTOs(e){const t=e.map((e=>this.expandRelationshipDTO(e)));return await Promise.all(t)}async expandFileId(e){const t=await this.transport.files.getFile({id:e});if(t.isError)throw t.error;return await this.expandFileDTO(t.value)}async expandFileIds(e){const t=e.map((e=>this.expandFileId(e)));return await Promise.all(t)}async expandFileDTO(e){return{...e,type:"FileDVO",id:e.id,name:e.title?e.title:e.filename,date:e.createdAt,image:"",filename:e.filename,filesize:e.filesize,createdBy:await this.expandAddress(e.createdBy),truncatedReference:e.truncatedReference}}async expandFileDTOs(e){const t=e.map((e=>this.expandFileDTO(e)));return await Promise.all(t)}};t.DataViewExpander=m,t.DataViewExpander=m=i([s(0,l.Inject),s(1,l.Inject),s(2,l.Inject),s(3,l.Inject),n("design:paramtypes",[p.TransportServices,d.ConsumptionServices,a.ConsumptionController,u.IdentityController])],m)},6677:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3910:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataViewTranslateable=void 0;class DataViewTranslateable{static{this.prefix="i18n://dvo."}static{this.transport={messageName:`${DataViewTranslateable.prefix}message.name`,relationshipOutgoing:`${DataViewTranslateable.prefix}relationship.Outgoing`,relationshipIncoming:`${DataViewTranslateable.prefix}relationship.Incoming`,relationshipRejected:`${DataViewTranslateable.prefix}relationship.Rejected`,relationshipRevoked:`${DataViewTranslateable.prefix}relationship.Revoked`,relationshipActive:`${DataViewTranslateable.prefix}relationship.Active`,fileName:`${DataViewTranslateable.prefix}file.name`}}static{this.consumption={mails:{mailSubjectFallback:`${DataViewTranslateable.prefix}mails.mailSubjectFallback`,requestMailSubjectFallback:`${DataViewTranslateable.prefix}mails.requestMailSubjectFallback`},attributes:{unknownAttributeName:`${DataViewTranslateable.prefix}attributes.UnknownAttributeName`},requests:{attributesShareRequestName:`${DataViewTranslateable.prefix}requests.AttributesShareRequest.name`,attributesShareRequestNamePlural:`${DataViewTranslateable.prefix}requests.AttributesShareRequest.namePlural`,attributesShareRequestNoRelationship:`${DataViewTranslateable.prefix}requests.AttributesShareRequest.noRelationship`,attributesShareRequestOnlyRelationships:`${DataViewTranslateable.prefix}requests.AttributesShareRequest.onlyRelationships`,attributesChangeRequestName:`${DataViewTranslateable.prefix}requests.AttributesChangeRequest.name`,attributesChangeRequestNamePlural:`${DataViewTranslateable.prefix}requests.AttributesChangeRequest.namePlural`},identities:{self:`${DataViewTranslateable.prefix}identities.self.name`}}}}t.DataViewTranslateable=DataViewTranslateable},2610:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},660:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2213:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(2610),t),n(r(660),t)},786:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7535:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1579:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7840:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6616:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9750:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7599:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(786),t),n(r(7535),t),n(r(1579),t),n(r(7840),t),n(r(6616),t),n(r(9750),t)},7573:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7950:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3545:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4023:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6071:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1861:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1945:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(7573),t),n(r(7950),t),n(r(3545),t),n(r(4023),t),n(r(6071),t),n(r(1861),t)},1911:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(2213),t),n(r(7599),t),n(r(1945),t),n(r(9021),t),n(r(6677),t),n(r(3910),t),n(r(6713),t)},3927:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9376:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},171:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.MessageStatus=void 0,function(e){e.Received="Received",e.Delivering="Delivering",e.Delivered="Delivered"}(r||(t.MessageStatus=r={}))},8032:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.RelationshipDirection=void 0,function(e){e.Outgoing="Outgoing",e.Incoming="Incoming"}(r||(t.RelationshipDirection=r={}))},306:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6713:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(3927),t),n(r(9376),t),n(r(171),t),n(r(8032),t),n(r(306),t)},534:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataEvent=void 0;const i=r(1917);class DataEvent extends i.DataEvent{constructor(e,t,r){super(e,r),this.eventTargetAddress=t}}t.DataEvent=DataEvent},3432:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.EventProxy=void 0;const o=s(r(8334)),a=s(r(2984)),c=r(8087),u=r(2166),l=r(6900);t.EventProxy=class EventProxy{constructor(e,t){this.targetEventBus=e,this.sourceEventBus=t,this.subscriptionIds=[]}start(){if(this.subscriptionIds.length>0)throw new Error("EventProxy is already started");return this.proxyConsumptionEvents(),this.proxyTransportEvents(),this}proxyTransportEvents(){this.subscribeToSourceEvent(a.MessageDeliveredEvent,(e=>{this.targetEventBus.publish(new l.MessageDeliveredEvent(e.eventTargetAddress,c.MessageMapper.toMessageDTO(e.data)))})),this.subscribeToSourceEvent(a.MessageReceivedEvent,(e=>{this.targetEventBus.publish(new l.MessageReceivedEvent(e.eventTargetAddress,c.MessageMapper.toMessageDTO(e.data)))})),this.subscribeToSourceEvent(a.MessageSentEvent,(e=>{this.targetEventBus.publish(new l.MessageSentEvent(e.eventTargetAddress,c.MessageMapper.toMessageDTO(e.data)))})),this.subscribeToSourceEvent(a.MessageWasReadAtChangedEvent,(e=>{this.targetEventBus.publish(new l.MessageWasReadAtChangedEvent(e.eventTargetAddress,c.MessageMapper.toMessageDTO(e.data)))})),this.subscribeToSourceEvent(a.PeerRelationshipTemplateLoadedEvent,(e=>{this.targetEventBus.publish(new l.PeerRelationshipTemplateLoadedEvent(e.eventTargetAddress,c.RelationshipTemplateMapper.toRelationshipTemplateDTO(e.data)))})),this.subscribeToSourceEvent(a.RelationshipChangedEvent,(e=>{this.targetEventBus.publish(new l.RelationshipChangedEvent(e.eventTargetAddress,c.RelationshipMapper.toRelationshipDTO(e.data)))}))}proxyConsumptionEvents(){this.subscribeToSourceEvent(o.AttributeCreatedEvent,(e=>{this.targetEventBus.publish(new u.AttributeCreatedEvent(e.eventTargetAddress,c.AttributeMapper.toAttributeDTO(e.data)))})),this.subscribeToSourceEvent(o.AttributeDeletedEvent,(e=>{this.targetEventBus.publish(new u.AttributeDeletedEvent(e.eventTargetAddress,c.AttributeMapper.toAttributeDTO(e.data)))})),this.subscribeToSourceEvent(o.OwnSharedAttributeDeletedByOwnerEvent,(e=>{this.targetEventBus.publish(new u.OwnSharedAttributeDeletedByOwnerEvent(e.eventTargetAddress,c.AttributeMapper.toAttributeDTO(e.data)))})),this.subscribeToSourceEvent(o.PeerSharedAttributeDeletedByPeerEvent,(e=>{this.targetEventBus.publish(new u.PeerSharedAttributeDeletedByPeerEvent(e.eventTargetAddress,c.AttributeMapper.toAttributeDTO(e.data)))})),this.subscribeToSourceEvent(o.ThirdPartyOwnedRelationshipAttributeDeletedByPeerEvent,(e=>{this.targetEventBus.publish(new u.ThirdPartyOwnedRelationshipAttributeDeletedByPeerEvent(e.eventTargetAddress,c.AttributeMapper.toAttributeDTO(e.data)))})),this.subscribeToSourceEvent(o.OwnSharedAttributeSucceededEvent,(e=>{this.targetEventBus.publish(new u.OwnSharedAttributeSucceededEvent(e.eventTargetAddress,{predecessor:c.AttributeMapper.toAttributeDTO(e.data.predecessor),successor:c.AttributeMapper.toAttributeDTO(e.data.successor)}))})),this.subscribeToSourceEvent(o.PeerSharedAttributeSucceededEvent,(e=>{this.targetEventBus.publish(new u.PeerSharedAttributeSucceededEvent(e.eventTargetAddress,{predecessor:c.AttributeMapper.toAttributeDTO(e.data.predecessor),successor:c.AttributeMapper.toAttributeDTO(e.data.successor)}))})),this.subscribeToSourceEvent(o.RepositoryAttributeSucceededEvent,(e=>{this.targetEventBus.publish(new u.RepositoryAttributeSucceededEvent(e.eventTargetAddress,{predecessor:c.AttributeMapper.toAttributeDTO(e.data.predecessor),successor:c.AttributeMapper.toAttributeDTO(e.data.successor)}))})),this.subscribeToSourceEvent(o.IncomingRequestReceivedEvent,(e=>{this.targetEventBus.publish(new u.IncomingRequestReceivedEvent(e.eventTargetAddress,c.RequestMapper.toLocalRequestDTO(e.data)))})),this.subscribeToSourceEvent(o.IncomingRequestStatusChangedEvent,(e=>{this.targetEventBus.publish(new u.IncomingRequestStatusChangedEvent(e.eventTargetAddress,{request:c.RequestMapper.toLocalRequestDTO(e.data.request),oldStatus:e.data.oldStatus,newStatus:e.data.newStatus}))})),this.subscribeToSourceEvent(o.OutgoingRequestCreatedEvent,(e=>{this.targetEventBus.publish(new u.OutgoingRequestCreatedEvent(e.eventTargetAddress,c.RequestMapper.toLocalRequestDTO(e.data)))})),this.subscribeToSourceEvent(o.OutgoingRequestCreatedAndCompletedEvent,(e=>{const t=c.RequestMapper.toLocalRequestDTO(e.data);this.targetEventBus.publish(new u.OutgoingRequestCreatedAndCompletedEvent(e.eventTargetAddress,t)),"RelationshipChange"===e.data.response?.source?.type&&this.targetEventBus.publish(new u.OutgoingRequestFromRelationshipCreationChangeCreatedAndCompletedEvent(e.eventTargetAddress,t))})),this.subscribeToSourceEvent(o.OutgoingRequestStatusChangedEvent,(e=>{this.targetEventBus.publish(new u.OutgoingRequestStatusChangedEvent(e.eventTargetAddress,{request:c.RequestMapper.toLocalRequestDTO(e.data.request),oldStatus:e.data.oldStatus,newStatus:e.data.newStatus}))})),this.subscribeToSourceEvent(o.AttributeListenerCreatedEvent,(e=>{this.targetEventBus.publish(new u.AttributeListenerCreatedEvent(e.eventTargetAddress,c.AttributeListenerMapper.toAttributeListenerDTO(e.data)))}))}subscribeToSourceEvent(e,t){const r=this.sourceEventBus.subscribe(e,t);this.subscriptionIds.push(r)}stop(){this.subscriptionIds.forEach((e=>this.sourceEventBus.unsubscribe(e)))}}},5578:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeCreatedEvent=void 0;const i=r(534);class AttributeCreatedEvent extends i.DataEvent{static{this.namespace="consumption.attributeCreated"}constructor(e,t){super(AttributeCreatedEvent.namespace,e,t)}}t.AttributeCreatedEvent=AttributeCreatedEvent},8545:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeDeletedEvent=void 0;const i=r(534);class AttributeDeletedEvent extends i.DataEvent{static{this.namespace="consumption.attributeDeleted"}constructor(e,t){super(AttributeDeletedEvent.namespace,e,t)}}t.AttributeDeletedEvent=AttributeDeletedEvent},1326:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeListenerCreatedEvent=void 0;const i=r(534);class AttributeListenerCreatedEvent extends i.DataEvent{static{this.namespace="consumption.attributeListenerCreated"}constructor(e,t){super(AttributeListenerCreatedEvent.namespace,e,t)}}t.AttributeListenerCreatedEvent=AttributeListenerCreatedEvent},1413:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeListenerTriggeredEvent=void 0;const i=r(534);class AttributeListenerTriggeredEvent extends i.DataEvent{static{this.namespace="consumption.attributeListenerTriggered"}constructor(e,t){super(AttributeListenerTriggeredEvent.namespace,e,t)}}t.AttributeListenerTriggeredEvent=AttributeListenerTriggeredEvent},3554:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IncomingRequestReceivedEvent=void 0;const i=r(534);class IncomingRequestReceivedEvent extends i.DataEvent{static{this.namespace="consumption.incomingRequestReceived"}constructor(e,t){if(super(IncomingRequestReceivedEvent.namespace,e,t),t.isOwn)throw new Error("Cannot create this event for an outgoing Request")}}t.IncomingRequestReceivedEvent=IncomingRequestReceivedEvent},653:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IncomingRequestStatusChangedEvent=void 0;const i=r(534);class IncomingRequestStatusChangedEvent extends i.DataEvent{static{this.namespace="consumption.incomingRequestStatusChanged"}constructor(e,t){if(super(IncomingRequestStatusChangedEvent.namespace,e,t),t.request.isOwn)throw new Error("Cannot create this event for an outgoing Request")}}t.IncomingRequestStatusChangedEvent=IncomingRequestStatusChangedEvent},5346:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MailReceivedEvent=void 0;const i=r(534);class MailReceivedEvent extends i.DataEvent{static{this.namespace="consumption.mailReceived"}constructor(e,t,r){super(MailReceivedEvent.namespace,e,r),this.mail=t}}t.MailReceivedEvent=MailReceivedEvent},5625:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageProcessedResult=t.MessageProcessedEvent=void 0;const i=r(534);class MessageProcessedEvent extends i.DataEvent{static{this.namespace="consumption.messageProcessed"}constructor(e,t,r){super(MessageProcessedEvent.namespace,e,{message:t,result:r})}}var n;t.MessageProcessedEvent=MessageProcessedEvent,function(e){e.ManualRequestDecisionRequired="ManualRequestDecisionRequired",e.NoRequest="NoRequest",e.Error="Error"}(n||(t.MessageProcessedResult=n={}))},6571:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OutgoingRequestCreatedAndCompletedEvent=void 0;const i=r(534);class OutgoingRequestCreatedAndCompletedEvent extends i.DataEvent{static{this.namespace="consumption.outgoingRequestCreatedAndCompleted"}constructor(e,t){if(super(OutgoingRequestCreatedAndCompletedEvent.namespace,e,t),!t.isOwn)throw new Error("Cannot create this event for an incoming Request")}}t.OutgoingRequestCreatedAndCompletedEvent=OutgoingRequestCreatedAndCompletedEvent},7761:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OutgoingRequestCreatedEvent=void 0;const i=r(534);class OutgoingRequestCreatedEvent extends i.DataEvent{static{this.namespace="consumption.outgoingRequestCreated"}constructor(e,t){if(super(OutgoingRequestCreatedEvent.namespace,e,t),!t.isOwn)throw new Error("Cannot create this event for an incoming Request")}}t.OutgoingRequestCreatedEvent=OutgoingRequestCreatedEvent},7288:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OutgoingRequestFromRelationshipCreationChangeCreatedAndCompletedEvent=void 0;const i=r(534);class OutgoingRequestFromRelationshipCreationChangeCreatedAndCompletedEvent extends i.DataEvent{static{this.namespace="consumption.outgoingRequestFromRelationshipCreationChangeCreatedAndCompleted"}constructor(e,t){if(super(OutgoingRequestFromRelationshipCreationChangeCreatedAndCompletedEvent.namespace,e,t),!t.isOwn)throw new Error("Cannot create this event for an incoming Request")}}t.OutgoingRequestFromRelationshipCreationChangeCreatedAndCompletedEvent=OutgoingRequestFromRelationshipCreationChangeCreatedAndCompletedEvent},3739:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OutgoingRequestStatusChangedEvent=void 0;const i=r(534);class OutgoingRequestStatusChangedEvent extends i.DataEvent{static{this.namespace="consumption.outgoingRequestStatusChanged"}constructor(e,t){if(super(OutgoingRequestStatusChangedEvent.namespace,e,t),!t.request.isOwn)throw new Error("Cannot create this event for an incoming Request")}}t.OutgoingRequestStatusChangedEvent=OutgoingRequestStatusChangedEvent},4650:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OwnSharedAttributeDeletedByOwnerEvent=void 0;const i=r(534);class OwnSharedAttributeDeletedByOwnerEvent extends i.DataEvent{static{this.namespace="consumption.ownSharedAttributeDeletedByOwner"}constructor(e,t){super(OwnSharedAttributeDeletedByOwnerEvent.namespace,e,t)}}t.OwnSharedAttributeDeletedByOwnerEvent=OwnSharedAttributeDeletedByOwnerEvent},2956:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OwnSharedAttributeSucceededEvent=void 0;const i=r(534);class OwnSharedAttributeSucceededEvent extends i.DataEvent{static{this.namespace="consumption.ownSharedAttributeSucceeded"}constructor(e,t){super(OwnSharedAttributeSucceededEvent.namespace,e,t)}}t.OwnSharedAttributeSucceededEvent=OwnSharedAttributeSucceededEvent},965:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PeerSharedAttributeDeletedByPeerEvent=void 0;const i=r(534);class PeerSharedAttributeDeletedByPeerEvent extends i.DataEvent{static{this.namespace="consumption.peerSharedAttributeDeletedByPeer"}constructor(e,t){super(PeerSharedAttributeDeletedByPeerEvent.namespace,e,t)}}t.PeerSharedAttributeDeletedByPeerEvent=PeerSharedAttributeDeletedByPeerEvent},7702:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PeerSharedAttributeSucceededEvent=void 0;const i=r(534);class PeerSharedAttributeSucceededEvent extends i.DataEvent{static{this.namespace="consumption.peerSharedAttributeSucceeded"}constructor(e,t){super(PeerSharedAttributeSucceededEvent.namespace,e,t)}}t.PeerSharedAttributeSucceededEvent=PeerSharedAttributeSucceededEvent},5380:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RelationshipEvent=void 0;const i=r(534);class RelationshipEvent extends i.DataEvent{static{this.namespace="consumption.relationshipEvent."}constructor(e,t,r){super(RelationshipEvent.namespace+r.id,e,r),this.event=t}}t.RelationshipEvent=RelationshipEvent},1952:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RelationshipTemplateProcessedResult=t.RelationshipTemplateProcessedEvent=void 0;const i=r(534);class RelationshipTemplateProcessedEvent extends i.DataEvent{static{this.namespace="consumption.relationshipTemplateProcessed"}constructor(e,t){if(super(RelationshipTemplateProcessedEvent.namespace,e,t),t.template.isOwn)throw new Error("Cannot create this event for an own Relationship Template.")}}var n;t.RelationshipTemplateProcessedEvent=RelationshipTemplateProcessedEvent,function(e){e.ManualRequestDecisionRequired="ManualRequestDecisionRequired",e.NonCompletedRequestExists="NonCompletedRequestExists",e.RelationshipExists="RelationshipExists",e.NoRequest="NoRequest",e.Error="Error"}(n||(t.RelationshipTemplateProcessedResult=n={}))},7925:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RepositoryAttributeSucceededEvent=void 0;const i=r(534);class RepositoryAttributeSucceededEvent extends i.DataEvent{static{this.namespace="consumption.repositoryAttributeSucceeded"}constructor(e,t){super(RepositoryAttributeSucceededEvent.namespace,e,t)}}t.RepositoryAttributeSucceededEvent=RepositoryAttributeSucceededEvent},1795:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8310:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThirdPartyOwnedRelationshipAttributeDeletedByPeerEvent=void 0;const i=r(534);class ThirdPartyOwnedRelationshipAttributeDeletedByPeerEvent extends i.DataEvent{static{this.namespace="consumption.thirdPartyOwnedRelationshipAttributeDeletedByPeer"}constructor(e,t){super(ThirdPartyOwnedRelationshipAttributeDeletedByPeerEvent.namespace,e,t)}}t.ThirdPartyOwnedRelationshipAttributeDeletedByPeerEvent=ThirdPartyOwnedRelationshipAttributeDeletedByPeerEvent},2166:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(5578),t),n(r(8545),t),n(r(1326),t),n(r(1413),t),n(r(3554),t),n(r(653),t),n(r(5346),t),n(r(5625),t),n(r(6571),t),n(r(7761),t),n(r(7288),t),n(r(3739),t),n(r(4650),t),n(r(2956),t),n(r(965),t),n(r(7702),t),n(r(5380),t),n(r(1952),t),n(r(7925),t),n(r(1795),t),n(r(8310),t)},3494:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(2166),t),n(r(534),t),n(r(4505),t),n(r(6900),t)},626:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ModulesInitializedEvent=void 0;const i=r(1917);class ModulesInitializedEvent extends i.Event{static{this.namespace="runtime.modulesInitialized"}constructor(){super(ModulesInitializedEvent.namespace)}}t.ModulesInitializedEvent=ModulesInitializedEvent},117:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ModulesLoadedEvent=void 0;const i=r(1917);class ModulesLoadedEvent extends i.Event{static{this.namespace="runtime.modulesLoaded"}constructor(){super(ModulesLoadedEvent.namespace)}}t.ModulesLoadedEvent=ModulesLoadedEvent},971:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ModulesStartedEvent=void 0;const i=r(1917);class ModulesStartedEvent extends i.Event{static{this.namespace="runtime.modulesStarted"}constructor(){super(ModulesStartedEvent.namespace)}}t.ModulesStartedEvent=ModulesStartedEvent},4147:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RuntimeInitializedEvent=void 0;const i=r(1917);class RuntimeInitializedEvent extends i.Event{static{this.namespace="runtime.initialized"}constructor(){super(RuntimeInitializedEvent.namespace)}}t.RuntimeInitializedEvent=RuntimeInitializedEvent},3586:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RuntimeInitializingEvent=void 0;const i=r(1917);class RuntimeInitializingEvent extends i.Event{static{this.namespace="runtime.initializing"}constructor(){super(RuntimeInitializingEvent.namespace)}}t.RuntimeInitializingEvent=RuntimeInitializingEvent},4505:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(626),t),n(r(117),t),n(r(971),t),n(r(4147),t),n(r(3586),t)},799:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageDeliveredEvent=void 0;const i=r(534);class MessageDeliveredEvent extends i.DataEvent{static{this.namespace="transport.messageDelivered"}constructor(e,t){super(MessageDeliveredEvent.namespace,e,t)}}t.MessageDeliveredEvent=MessageDeliveredEvent},4394:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageReceivedEvent=void 0;const i=r(534);class MessageReceivedEvent extends i.DataEvent{static{this.namespace="transport.messageReceived"}constructor(e,t){super(MessageReceivedEvent.namespace,e,t)}}t.MessageReceivedEvent=MessageReceivedEvent},9045:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageSentEvent=void 0;const i=r(534);class MessageSentEvent extends i.DataEvent{static{this.namespace="transport.messageSent"}constructor(e,t){super(MessageSentEvent.namespace,e,t)}}t.MessageSentEvent=MessageSentEvent},3603:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageWasReadAtChangedEvent=void 0;const i=r(534);class MessageWasReadAtChangedEvent extends i.DataEvent{static{this.namespace="transport.messageWasReadAtChanged"}constructor(e,t){super(MessageWasReadAtChangedEvent.namespace,e,t)}}t.MessageWasReadAtChangedEvent=MessageWasReadAtChangedEvent},6907:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PeerRelationshipTemplateLoadedEvent=void 0;const i=r(534);class PeerRelationshipTemplateLoadedEvent extends i.DataEvent{static{this.namespace="transport.peerRelationshipTemplateLoaded"}constructor(e,t){super(PeerRelationshipTemplateLoadedEvent.namespace,e,t)}}t.PeerRelationshipTemplateLoadedEvent=PeerRelationshipTemplateLoadedEvent},2804:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RelationshipChangedEvent=void 0;const i=r(534);class RelationshipChangedEvent extends i.DataEvent{static{this.namespace="transport.relationshipChanged"}constructor(e,t){super(RelationshipChangedEvent.namespace,e,t)}}t.RelationshipChangedEvent=RelationshipChangedEvent},6900:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(799),t),n(r(4394),t),n(r(9045),t),n(r(3603),t),n(r(6907),t),n(r(2804),t)},4929:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AnonymousServices=void 0;const o=r(1699),a=r(8318);let c=class AnonymousServices{constructor(e){this.tokens=e}};t.AnonymousServices=c,t.AnonymousServices=c=i([s(0,o.Inject),n("design:paramtypes",[a.AnonymousTokensFacade])],c)},2847:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ConsumptionServices=void 0;const o=r(1699),a=r(1584);let c=class ConsumptionServices{constructor(e,t,r,i,n,s,o){this.attributes=e,this.drafts=t,this.settings=r,this.incomingRequests=i,this.outgoingRequests=n,this.attributeListeners=s,this.notifications=o}};t.ConsumptionServices=c,t.ConsumptionServices=c=i([s(0,o.Inject),s(1,o.Inject),s(2,o.Inject),s(3,o.Inject),s(4,o.Inject),s(5,o.Inject),s(6,o.Inject),n("design:paramtypes",[a.AttributesFacade,a.DraftsFacade,a.SettingsFacade,a.IncomingRequestsFacade,a.OutgoingRequestsFacade,a.AttributeListenersFacade,a.NotificationsFacade])],c)},8709:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.TransportServices=void 0;const o=r(1699),a=r(6810);let c=class TransportServices{constructor(e,t,r,i,n,s,o,a){this.files=e,this.messages=t,this.relationships=r,this.relationshipTemplates=i,this.tokens=n,this.account=s,this.devices=o,this.challenges=a}};t.TransportServices=c,t.TransportServices=c=i([s(0,o.Inject),s(1,o.Inject),s(2,o.Inject),s(3,o.Inject),s(4,o.Inject),s(5,o.Inject),s(6,o.Inject),s(7,o.Inject),n("design:paramtypes",[a.FilesFacade,a.MessagesFacade,a.RelationshipsFacade,a.RelationshipTemplatesFacade,a.TokensFacade,a.AccountFacade,a.DevicesFacade,a.ChallengesFacade])],c)},8891:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AnonymousTokensFacade=void 0;const o=r(1699),a=r(8087);let c=class AnonymousTokensFacade{constructor(e,t){this.loadPeerTokenByTruncatedReferenceUseCase=e,this.loadPeerTokenByIdAndKeyUseCase=t}async loadPeerTokenByTruncatedReference(e){return await this.loadPeerTokenByTruncatedReferenceUseCase.execute(e)}async loadPeerTokenByIdAndKey(e){return await this.loadPeerTokenByIdAndKeyUseCase.execute(e)}};t.AnonymousTokensFacade=c,t.AnonymousTokensFacade=c=i([s(0,o.Inject),s(1,o.Inject),n("design:paramtypes",[a.LoadPeerTokenAnonymousByTruncatedReferenceUseCase,a.LoadPeerTokenAnonymousByIdAndKeyUseCase])],c)},8318:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(8891),t)},2121:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeListenersFacade=void 0;const o=r(1699),a=r(8087);let c=class AttributeListenersFacade{constructor(e,t){this.getAttributeListenerUseCase=e,this.getAttributeListenersUseCase=t}async getAttributeListener(e){return await this.getAttributeListenerUseCase.execute(e)}async getAttributeListeners(){return await this.getAttributeListenersUseCase.execute()}};t.AttributeListenersFacade=c,t.AttributeListenersFacade=c=i([s(0,o.Inject),s(1,o.Inject),n("design:paramtypes",[a.GetAttributeListenerUseCase,a.GetAttributeListenersUseCase])],c)},7809:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AttributesFacade=void 0;const o=r(1699),a=r(8087);let c=class AttributesFacade{constructor(e,t,r,i,n,s,o,a,c,u,l,p,d,f,y,h,g,m,v,b,R,O){this.createRepositoryAttributeUseCase=e,this.shareRepositoryAttributeUseCase=t,this.getPeerSharedAttributesUseCase=r,this.getOwnSharedAttributesUseCase=i,this.getRepositoryAttributesUseCase=n,this.getAttributeUseCase=s,this.getAttributesUseCase=o,this.getVersionsOfAttributeUseCase=a,this.getSharedVersionsOfRepositoryAttributeUseCase=c,this.succeedRepositoryAttributeUseCase=u,this.executeIdentityAttributeQueryUseCase=l,this.executeRelationshipAttributeQueryUseCase=p,this.succeedRelationshipAttributeAndNotifyPeerUseCase=d,this.executeThirdPartyRelationshipAttributeQueryUseCase=f,this.executeIQLQueryUseCase=y,this.validateIQLQueryUseCase=h,this.createAndShareRelationshipAttributeUseCase=g,this.notifyPeerAboutRepositoryAttributeSuccessionUseCase=m,this.deleteOwnSharedAttributeAndNotifyPeerUseCase=v,this.deletePeerSharedAttributeAndNotifyOwnerUseCase=b,this.deleteThirdPartyOwnedRelationshipAttributeAndNotifyPeerUseCase=R,this.deleteRepositoryAttributeUseCase=O}async createRepositoryAttribute(e){return await this.createRepositoryAttributeUseCase.execute(e)}async getPeerSharedAttributes(e){return await this.getPeerSharedAttributesUseCase.execute(e)}async getOwnSharedAttributes(e){return await this.getOwnSharedAttributesUseCase.execute(e)}async getRepositoryAttributes(e){return await this.getRepositoryAttributesUseCase.execute(e)}async getAttribute(e){return await this.getAttributeUseCase.execute(e)}async getAttributes(e){return await this.getAttributesUseCase.execute(e)}async getVersionsOfAttribute(e){return await this.getVersionsOfAttributeUseCase.execute(e)}async getSharedVersionsOfRepositoryAttribute(e){return await this.getSharedVersionsOfRepositoryAttributeUseCase.execute(e)}async executeIdentityAttributeQuery(e){return await this.executeIdentityAttributeQueryUseCase.execute(e)}async executeRelationshipAttributeQuery(e){return await this.executeRelationshipAttributeQueryUseCase.execute(e)}async succeedRelationshipAttributeAndNotifyPeer(e){return await this.succeedRelationshipAttributeAndNotifyPeerUseCase.execute(e)}async executeThirdPartyRelationshipAttributeQuery(e){return await this.executeThirdPartyRelationshipAttributeQueryUseCase.execute(e)}async executeIQLQuery(e){return await this.executeIQLQueryUseCase.execute(e)}async validateIQLQuery(e){return await this.validateIQLQueryUseCase.execute(e)}async succeedRepositoryAttribute(e){return await this.succeedRepositoryAttributeUseCase.execute(e)}async shareRepositoryAttribute(e){return await this.shareRepositoryAttributeUseCase.execute(e)}async createAndShareRelationshipAttribute(e){return await this.createAndShareRelationshipAttributeUseCase.execute(e)}async notifyPeerAboutRepositoryAttributeSuccession(e){return await this.notifyPeerAboutRepositoryAttributeSuccessionUseCase.execute(e)}async deleteOwnSharedAttributeAndNotifyPeer(e){return await this.deleteOwnSharedAttributeAndNotifyPeerUseCase.execute(e)}async deletePeerSharedAttributeAndNotifyOwner(e){return await this.deletePeerSharedAttributeAndNotifyOwnerUseCase.execute(e)}async deleteThirdPartyOwnedRelationshipAttributeAndNotifyPeer(e){return await this.deleteThirdPartyOwnedRelationshipAttributeAndNotifyPeerUseCase.execute(e)}async deleteRepositoryAttribute(e){return await this.deleteRepositoryAttributeUseCase.execute(e)}};t.AttributesFacade=c,t.AttributesFacade=c=i([s(0,o.Inject),s(1,o.Inject),s(2,o.Inject),s(3,o.Inject),s(4,o.Inject),s(5,o.Inject),s(6,o.Inject),s(7,o.Inject),s(8,o.Inject),s(9,o.Inject),s(10,o.Inject),s(11,o.Inject),s(12,o.Inject),s(13,o.Inject),s(14,o.Inject),s(15,o.Inject),s(16,o.Inject),s(17,o.Inject),s(18,o.Inject),s(19,o.Inject),s(20,o.Inject),s(21,o.Inject),n("design:paramtypes",[a.CreateRepositoryAttributeUseCase,a.ShareRepositoryAttributeUseCase,a.GetPeerSharedAttributesUseCase,a.GetOwnSharedAttributesUseCase,a.GetRepositoryAttributesUseCase,a.GetAttributeUseCase,a.GetAttributesUseCase,a.GetVersionsOfAttributeUseCase,a.GetSharedVersionsOfRepositoryAttributeUseCase,a.SucceedRepositoryAttributeUseCase,a.ExecuteIdentityAttributeQueryUseCase,a.ExecuteRelationshipAttributeQueryUseCase,a.SucceedRelationshipAttributeAndNotifyPeerUseCase,a.ExecuteThirdPartyRelationshipAttributeQueryUseCase,a.ExecuteIQLQueryUseCase,a.ValidateIQLQueryUseCase,a.CreateAndShareRelationshipAttributeUseCase,a.NotifyPeerAboutRepositoryAttributeSuccessionUseCase,a.DeleteOwnSharedAttributeAndNotifyPeerUseCase,a.DeletePeerSharedAttributeAndNotifyOwnerUseCase,a.DeleteThirdPartyOwnedRelationshipAttributeAndNotifyPeerUseCase,a.DeleteRepositoryAttributeUseCase])],c)},744:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DraftsFacade=void 0;const o=r(1699),a=r(8087);let c=class DraftsFacade{constructor(e,t,r,i,n){this.createDraftUseCase=e,this.deleteDraftUseCase=t,this.getDraftUseCase=r,this.getDraftsUseCase=i,this.updateDraftUseCase=n}async createDraft(e){return await this.createDraftUseCase.execute(e)}async deleteDraft(e){return await this.deleteDraftUseCase.execute(e)}async getDraft(e){return await this.getDraftUseCase.execute(e)}async getDrafts(e){return await this.getDraftsUseCase.execute(e)}async updateDraft(e){return await this.updateDraftUseCase.execute(e)}};t.DraftsFacade=c,t.DraftsFacade=c=i([s(0,o.Inject),s(1,o.Inject),s(2,o.Inject),s(3,o.Inject),s(4,o.Inject),n("design:paramtypes",[a.CreateDraftUseCase,a.DeleteDraftUseCase,a.GetDraftUseCase,a.GetDraftsUseCase,a.UpdateDraftUseCase])],c)},9630:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.IncomingRequestsFacade=void 0;const o=r(1699),a=r(8087);let c=class IncomingRequestsFacade{constructor(e,t,r,i,n,s,o,a,c,u){this.receivedUseCase=e,this.checkPrerequisitesUseCase=t,this.requireManualDecisionUseCase=r,this.canAcceptUseCase=i,this.acceptUseCase=n,this.canRejectUseCase=s,this.rejectUseCase=o,this.completeUseCase=a,this.getRequestUseCase=c,this.getRequestsUseCase=u}async received(e){return await this.receivedUseCase.execute(e)}async checkPrerequisites(e){return await this.checkPrerequisitesUseCase.execute(e)}async requireManualDecision(e){return await this.requireManualDecisionUseCase.execute(e)}async canAccept(e){return await this.canAcceptUseCase.execute(e)}async accept(e){return await this.acceptUseCase.execute(e)}async canReject(e){return await this.canRejectUseCase.execute(e)}async reject(e){return await this.rejectUseCase.execute(e)}async complete(e){return await this.completeUseCase.execute(e)}async getRequest(e){return await this.getRequestUseCase.execute(e)}async getRequests(e){return await this.getRequestsUseCase.execute(e)}};t.IncomingRequestsFacade=c,t.IncomingRequestsFacade=c=i([s(0,o.Inject),s(1,o.Inject),s(2,o.Inject),s(3,o.Inject),s(4,o.Inject),s(5,o.Inject),s(6,o.Inject),s(7,o.Inject),s(8,o.Inject),s(9,o.Inject),n("design:paramtypes",[a.ReceivedIncomingRequestUseCase,a.CheckPrerequisitesOfIncomingRequestUseCase,a.RequireManualDecisionOfIncomingRequestUseCase,a.CanAcceptIncomingRequestUseCase,a.AcceptIncomingRequestUseCase,a.CanRejectIncomingRequestUseCase,a.RejectIncomingRequestUseCase,a.CompleteIncomingRequestUseCase,a.GetIncomingRequestUseCase,a.GetIncomingRequestsUseCase])],c)},7102:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationsFacade=void 0;const o=r(1699),a=r(8087);let c=class NotificationsFacade{constructor(e,t,r,i,n,s){this.getUseCase=e,this.queryUseCase=t,this.sentNotificationUseCase=r,this.receivedNotificationUseCase=i,this.processOpenNotifactionsReceivedByCurrentDeviceUseCase=n,this.processNotificationByIdUseCase=s}async getNotification(e){return await this.getUseCase.execute(e)}async getNotifications(e){return await this.queryUseCase.execute(e)}async sentNotification(e){return await this.sentNotificationUseCase.execute(e)}async receivedNotification(e){return await this.receivedNotificationUseCase.execute(e)}async processOpenNotifactionsReceivedByCurrentDevice(){return await this.processOpenNotifactionsReceivedByCurrentDeviceUseCase.execute()}async processNotificationById(e){return await this.processNotificationByIdUseCase.execute(e)}};t.NotificationsFacade=c,t.NotificationsFacade=c=i([s(0,o.Inject),s(1,o.Inject),s(2,o.Inject),s(3,o.Inject),s(4,o.Inject),s(5,o.Inject),n("design:paramtypes",[a.GetNotificationUseCase,a.GetNotificationsUseCase,a.SentNotificationUseCase,a.ReceivedNotificationUseCase,a.ProcessOpenNotifactionsReceivedByCurrentDeviceUseCase,a.ProcessNotificationByIdUseCase])],c)},5680:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.OutgoingRequestsFacade=void 0;const o=r(1699),a=r(8087);let c=class OutgoingRequestsFacade{constructor(e,t,r,i,n,s,o,a){this.canCreateUseCase=e,this.createUseCase=t,this.sentUseCase=r,this.createAndCompleteFromRelationshipTemplateResponseUseCase=i,this.completeUseCase=n,this.getRequestUseCase=s,this.getRequestsUseCase=o,this.discardRequestUseCase=a}async canCreate(e){return await this.canCreateUseCase.execute(e)}async create(e){return await this.createUseCase.execute(e)}async createAndCompleteFromRelationshipTemplateResponse(e){return await this.createAndCompleteFromRelationshipTemplateResponseUseCase.execute(e)}async sent(e){return await this.sentUseCase.execute(e)}async complete(e){return await this.completeUseCase.execute(e)}async getRequest(e){return await this.getRequestUseCase.execute(e)}async getRequests(e){return await this.getRequestsUseCase.execute(e)}async discard(e){return await this.discardRequestUseCase.execute(e)}};t.OutgoingRequestsFacade=c,t.OutgoingRequestsFacade=c=i([s(0,o.Inject),s(1,o.Inject),s(2,o.Inject),s(3,o.Inject),s(4,o.Inject),s(5,o.Inject),s(6,o.Inject),s(7,o.Inject),n("design:paramtypes",[a.CanCreateOutgoingRequestUseCase,a.CreateOutgoingRequestUseCase,a.SentOutgoingRequestUseCase,a.CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponseUseCase,a.CompleteOutgoingRequestUseCase,a.GetOutgoingRequestUseCase,a.GetOutgoingRequestsUseCase,a.DiscardOutgoingRequestUseCase])],c)},8261:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsFacade=void 0;const o=r(1699),a=r(8087);let c=class SettingsFacade{constructor(e,t,r,i,n,s){this.createSettingUseCase=e,this.updateSettingUseCase=t,this.deleteSettingUseCase=r,this.getSettingsUseCase=i,this.getSettingUseCase=n,this.getSettingByKeyUseCase=s}async createSetting(e){return await this.createSettingUseCase.execute(e)}async getSetting(e){return await this.getSettingUseCase.execute(e)}async getSettingByKey(e){return await this.getSettingByKeyUseCase.execute(e)}async getSettings(e){return await this.getSettingsUseCase.execute(e)}async deleteSetting(e){return await this.deleteSettingUseCase.execute(e)}async updateSetting(e){return await this.updateSettingUseCase.execute(e)}};t.SettingsFacade=c,t.SettingsFacade=c=i([s(0,o.Inject),s(1,o.Inject),s(2,o.Inject),s(3,o.Inject),s(4,o.Inject),s(5,o.Inject),n("design:paramtypes",[a.CreateSettingUseCase,a.UpdateSettingUseCase,a.DeleteSettingUseCase,a.GetSettingsUseCase,a.GetSettingUseCase,a.GetSettingByKeyUseCase])],c)},1584:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(2121),t),n(r(7809),t),n(r(744),t),n(r(9630),t),n(r(7102),t),n(r(5680),t),n(r(8261),t)},4135:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AccountFacade=void 0;const o=r(1699),a=r(8087);let c=class AccountFacade{constructor(e,t,r,i,n,s,o,a,c,u){this.getIdentityInfoUseCase=e,this.getDeviceInfoUseCase=t,this.registerPushNotificationTokenUseCase=r,this.unregisterPushNotificationTokenUseCase=i,this.syncDatawalletUseCase=n,this.syncEverythingUseCase=s,this.getSyncInfoUseCase=o,this.disableAutoSyncUseCase=a,this.enableAutoSyncUseCase=c,this.loadItemFromTruncatedReferenceUseCase=u}async getIdentityInfo(){return await this.getIdentityInfoUseCase.execute()}async getDeviceInfo(){return await this.getDeviceInfoUseCase.execute()}async registerPushNotificationToken(e){return await this.registerPushNotificationTokenUseCase.execute(e)}async unregisterPushNotificationToken(){return await this.unregisterPushNotificationTokenUseCase.execute()}async syncDatawallet(e={}){return await this.syncDatawalletUseCase.execute(e)}async syncEverything(e={}){return await this.syncEverythingUseCase.execute(e)}async getSyncInfo(){return await this.getSyncInfoUseCase.execute()}async enableAutoSync(){return await this.enableAutoSyncUseCase.execute()}async disableAutoSync(){return await this.disableAutoSyncUseCase.execute()}async loadItemFromTruncatedReference(e){return await this.loadItemFromTruncatedReferenceUseCase.execute(e)}};t.AccountFacade=c,t.AccountFacade=c=i([s(0,o.Inject),s(1,o.Inject),s(2,o.Inject),s(3,o.Inject),s(4,o.Inject),s(5,o.Inject),s(6,o.Inject),s(7,o.Inject),s(8,o.Inject),s(9,o.Inject),n("design:paramtypes",[a.GetIdentityInfoUseCase,a.GetDeviceInfoUseCase,a.RegisterPushNotificationTokenUseCase,a.UnregisterPushNotificationTokenUseCase,a.SyncDatawalletUseCase,a.SyncEverythingUseCase,a.GetSyncInfoUseCase,a.DisableAutoSyncUseCase,a.EnableAutoSyncUseCase,a.LoadItemFromTruncatedReferenceUseCase])],c)},168:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ChallengesFacade=void 0;const o=r(1699),a=r(8087);let c=class ChallengesFacade{constructor(e,t){this.createChallengeUseCase=e,this.validateChallengeUseCase=t}async createChallenge(e){return await this.createChallengeUseCase.execute(e)}async validateChallenge(e){return await this.validateChallengeUseCase.execute(e)}};t.ChallengesFacade=c,t.ChallengesFacade=c=i([s(0,o.Inject),s(1,o.Inject),n("design:paramtypes",[a.CreateChallengeUseCase,a.ValidateChallengeUseCase])],c)},1871:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DevicesFacade=void 0;const o=r(1699),a=r(8087);let c=class DevicesFacade{constructor(e,t,r,i,n,s,o){this.getDeviceUseCase=e,this.getDevicesUseCase=t,this.createDeviceUseCase=r,this.updateDeviceUseCase=i,this.deleteDeviceUseCase=n,this.getDeviceOnboardingInfoUseCase=s,this.getDeviceOnboardingTokenUseCase=o}async getDevice(e){return await this.getDeviceUseCase.execute(e)}async getDevices(){return await this.getDevicesUseCase.execute()}async createDevice(e){return await this.createDeviceUseCase.execute(e)}async getDeviceOnboardingInfo(e){return await this.getDeviceOnboardingInfoUseCase.execute(e)}async getDeviceOnboardingToken(e){return await this.getDeviceOnboardingTokenUseCase.execute(e)}async updateDevice(e){return await this.updateDeviceUseCase.execute(e)}async deleteDevice(e){return await this.deleteDeviceUseCase.execute(e)}};t.DevicesFacade=c,t.DevicesFacade=c=i([s(0,o.Inject),s(1,o.Inject),s(2,o.Inject),s(3,o.Inject),s(4,o.Inject),s(5,o.Inject),s(6,o.Inject),n("design:paramtypes",[a.GetDeviceUseCase,a.GetDevicesUseCase,a.CreateDeviceUseCase,a.UpdateDeviceUseCase,a.DeleteDeviceUseCase,a.GetDeviceOnboardingInfoUseCase,a.CreateDeviceOnboardingTokenUseCase])],c)},3763:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.FilesFacade=void 0;const o=r(1699),a=r(8087);let c=class FilesFacade{constructor(e,t,r,i,n,s,o,a){this.uploadOwnFileUseCase=e,this.getOrLoadFileUseCase=t,this.getFilesUseCase=r,this.downloadFileUseCase=i,this.getFileUseCase=n,this.createQRCodeForFileUseCase=s,this.createTokenForFileUseCase=o,this.createTokenQRCodeForFileUseCase=a}async getFiles(e){return await this.getFilesUseCase.execute(e)}async getOrLoadFile(e){return await this.getOrLoadFileUseCase.execute(e)}async downloadFile(e){return await this.downloadFileUseCase.execute(e)}async getFile(e){return await this.getFileUseCase.execute(e)}async uploadOwnFile(e){return await this.uploadOwnFileUseCase.execute(e)}async createQRCodeForFile(e){return await this.createQRCodeForFileUseCase.execute(e)}async createTokenForFile(e){return await this.createTokenForFileUseCase.execute(e)}async createTokenQRCodeForFile(e){return await this.createTokenQRCodeForFileUseCase.execute(e)}};t.FilesFacade=c,t.FilesFacade=c=i([s(0,o.Inject),s(1,o.Inject),s(2,o.Inject),s(3,o.Inject),s(4,o.Inject),s(5,o.Inject),s(6,o.Inject),s(7,o.Inject),n("design:paramtypes",[a.UploadOwnFileUseCase,a.GetOrLoadFileUseCase,a.GetFilesUseCase,a.DownloadFileUseCase,a.GetFileUseCase,a.CreateQRCodeForFileUseCase,a.CreateTokenForFileUseCase,a.CreateTokenQRCodeForFileUseCase])],c)},6291:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.IdentityFacade=void 0;const o=r(1699),a=r(8087);let c=class IdentityFacade{constructor(e){this.checkIdentityUseCase=e}async checkIdentity(e){return await this.checkIdentityUseCase.execute(e)}};t.IdentityFacade=c,t.IdentityFacade=c=i([s(0,o.Inject),n("design:paramtypes",[a.CheckIdentityUseCase])],c)},4578:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MessagesFacade=void 0;const o=r(1699),a=r(8087);let c=class MessagesFacade{constructor(e,t,r,i,n,s,o){this.downloadAttachmentUseCase=e,this.getAttachmentMetadataUseCase=t,this.getMessageUseCase=r,this.getMessagesUseCase=i,this.markMessageAsReadUseCase=n,this.markMessageAsUnreadUseCase=s,this.sendMessageUseCase=o}async sendMessage(e){return await this.sendMessageUseCase.execute(e)}async getMessages(e){return await this.getMessagesUseCase.execute(e)}async getMessage(e){return await this.getMessageUseCase.execute(e)}async downloadAttachment(e){return await this.downloadAttachmentUseCase.execute(e)}async getAttachmentMetadata(e){return await this.getAttachmentMetadataUseCase.execute(e)}async markMessageAsRead(e){return await this.markMessageAsReadUseCase.execute(e)}async markMessageAsUnread(e){return await this.markMessageAsUnreadUseCase.execute(e)}};t.MessagesFacade=c,t.MessagesFacade=c=i([s(0,o.Inject),s(1,o.Inject),s(2,o.Inject),s(3,o.Inject),s(4,o.Inject),s(5,o.Inject),s(6,o.Inject),n("design:paramtypes",[a.DownloadAttachmentUseCase,a.GetAttachmentMetadataUseCase,a.GetMessageUseCase,a.GetMessagesUseCase,a.MarkMessageAsReadUseCase,a.MarkMessageAsUnreadUseCase,a.SendMessageUseCase])],c)},2153:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.RelationshipTemplatesFacade=void 0;const o=r(1699),a=r(8087);let c=class RelationshipTemplatesFacade{constructor(e,t,r,i,n,s,o){this.createOwnRelationshipTemplateUseCase=e,this.loadPeerRelationshipTemplateUseCase=t,this.getRelationshipTemplatesUseCase=r,this.getRelationshipTemplateUseCase=i,this.createQRCodeForOwnTemplateUseCase=n,this.createTokenQRCodeForOwnTemplateUseCase=s,this.createTokenForOwnTemplateUseCase=o}async createOwnRelationshipTemplate(e){return await this.createOwnRelationshipTemplateUseCase.execute(e)}async loadPeerRelationshipTemplate(e){return await this.loadPeerRelationshipTemplateUseCase.execute(e)}async getRelationshipTemplates(e){return await this.getRelationshipTemplatesUseCase.execute(e)}async getRelationshipTemplate(e){return await this.getRelationshipTemplateUseCase.execute(e)}async createQRCodeForOwnTemplate(e){return await this.createQRCodeForOwnTemplateUseCase.execute(e)}async createTokenQRCodeForOwnTemplate(e){return await this.createTokenQRCodeForOwnTemplateUseCase.execute(e)}async createTokenForOwnTemplate(e){return await this.createTokenForOwnTemplateUseCase.execute(e)}};t.RelationshipTemplatesFacade=c,t.RelationshipTemplatesFacade=c=i([s(0,o.Inject),s(1,o.Inject),s(2,o.Inject),s(3,o.Inject),s(4,o.Inject),s(5,o.Inject),s(6,o.Inject),n("design:paramtypes",[a.CreateOwnRelationshipTemplateUseCase,a.LoadPeerRelationshipTemplateUseCase,a.GetRelationshipTemplatesUseCase,a.GetRelationshipTemplateUseCase,a.CreateQRCodeForOwnTemplateUseCase,a.CreateTokenQRCodeForOwnTemplateUseCase,a.CreateTokenForOwnTemplateUseCase])],c)},5375:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.RelationshipsFacade=void 0;const o=r(1699),a=r(8087);let c=class RelationshipsFacade{constructor(e,t,r,i,n,s,o,a){this.getRelationshipsUseCase=e,this.getRelationshipUseCase=t,this.getRelationshipByAddressUseCase=r,this.createRelationshipUseCase=i,this.acceptRelationshipChangeUseCase=n,this.rejectRelationshipChangeUseCase=s,this.revokeRelationshipChangeUseCase=o,this.getAttributesForRelationshipUseCase=a}async getRelationships(e){return await this.getRelationshipsUseCase.execute(e)}async getRelationship(e){return await this.getRelationshipUseCase.execute(e)}async getRelationshipByAddress(e){return await this.getRelationshipByAddressUseCase.execute(e)}async createRelationship(e){return await this.createRelationshipUseCase.execute(e)}async acceptRelationshipChange(e){return await this.acceptRelationshipChangeUseCase.execute(e)}async rejectRelationshipChange(e){return await this.rejectRelationshipChangeUseCase.execute(e)}async revokeRelationshipChange(e){return await this.revokeRelationshipChangeUseCase.execute(e)}async getAttributesForRelationship(e){return await this.getAttributesForRelationshipUseCase.execute(e)}};t.RelationshipsFacade=c,t.RelationshipsFacade=c=i([s(0,o.Inject),s(1,o.Inject),s(2,o.Inject),s(3,o.Inject),s(4,o.Inject),s(5,o.Inject),s(6,o.Inject),s(7,o.Inject),n("design:paramtypes",[a.GetRelationshipsUseCase,a.GetRelationshipUseCase,a.GetRelationshipByAddressUseCase,a.CreateRelationshipUseCase,a.AcceptRelationshipChangeUseCase,a.RejectRelationshipChangeUseCase,a.RevokeRelationshipChangeUseCase,a.GetAttributesForRelationshipUseCase])],c)},9684:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.TokensFacade=void 0;const o=r(1699),a=r(8087);let c=class TokensFacade{constructor(e,t,r,i,n){this.createOwnTokenUseCase=e,this.loadPeerTokenUseCase=t,this.getTokensUseCase=r,this.getTokenUseCase=i,this.getQRCodeForTokenUseCase=n}async createOwnToken(e){return await this.createOwnTokenUseCase.execute(e)}async loadPeerToken(e){return await this.loadPeerTokenUseCase.execute(e)}async getTokens(e){return await this.getTokensUseCase.execute(e)}async getToken(e){return await this.getTokenUseCase.execute(e)}async getQRCodeForToken(e){return await this.getQRCodeForTokenUseCase.execute(e)}};t.TokensFacade=c,t.TokensFacade=c=i([s(0,o.Inject),s(1,o.Inject),s(2,o.Inject),s(3,o.Inject),s(4,o.Inject),n("design:paramtypes",[a.CreateOwnTokenUseCase,a.LoadPeerTokenUseCase,a.GetTokensUseCase,a.GetTokenUseCase,a.GetQRCodeForTokenUseCase])],c)},6810:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(4135),t),n(r(168),t),n(r(1871),t),n(r(3763),t),n(r(6291),t),n(r(4578),t),n(r(5375),t),n(r(2153),t),n(r(9684),t)},4044:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(4929),t),n(r(2847),t),n(r(3838),t),n(r(1689),t),n(r(8709),t)},3838:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RuntimeModule=void 0;t.RuntimeModule=class RuntimeModule{constructor(e,t,r){this.runtime=e,this.configuration=t,this.logger=r,this.subscriptionIds=[]}get name(){return this.configuration.name}get displayName(){return this.configuration.displayName}subscribeToEvent(e,t){const r=this.runtime.eventBus.subscribe(e,t);this.subscriptionIds.push(r)}unsubscribeFromAllEvents(){this.subscriptionIds.forEach((e=>this.runtime.eventBus.unsubscribe(e))),this.subscriptionIds.splice(0)}}},1689:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ModulesIterator=t.RuntimeModuleRegistry=void 0;class RuntimeModuleRegistry{constructor(){this.modules=[]}getByName(e){return this.modules.find((t=>t.name.toLowerCase()===e.toLowerCase()))}add(e){this.modules.push(e)}toArray(){return this.modules.slice()}[Symbol.iterator](){return new ModulesIterator(this.modules)}}t.RuntimeModuleRegistry=RuntimeModuleRegistry;class ModulesIterator{constructor(e){this.items=e,this.currentIndex=0}next(e){return{value:this.items[this.currentIndex++],done:this.currentIndex>this.items.length}}}t.ModulesIterator=ModulesIterator},7806:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(3870),t),n(r(1911),t),n(r(3494),t),n(r(4044),t),n(r(5168),t),n(r(6754),t),n(r(9440),t),n(r(842),t),n(r(5468),t),n(r(8087),t)},6520:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeListenerModule=void 0;const i=r(2344),n=r(3494),s=r(4044);class AttributeListenerModule extends s.RuntimeModule{init(){}start(){this.subscribeToEvent(n.AttributeCreatedEvent,this.handleAttributeCreated.bind(this))}async handleAttributeCreated(e){const t=await this.runtime.getServices(e.eventTargetAddress),r=e.data;if("IdentityAttribute"===r.content["@type"]&&r.shareInfo)return;if("RelationshipAttribute"===r.content["@type"]&&r.content.confidentiality===i.RelationshipAttributeConfidentiality.Private)return;const n=await t.consumptionServices.attributeListeners.getAttributeListeners();if(n.isError)return void this.logger.error("Could not get attribute listeners",n.error);const s=n.value.map((r=>this.createRequestIfAttributeMatchesQuery(t,r,e.data,e.eventTargetAddress)));await Promise.all(s)}async createRequestIfAttributeMatchesQuery(e,t,r,i){if(!await this.doesAttributeMatchQuery(e,t,r))return;const s={"@type":"ShareAttributeRequestItem",attribute:r.content,sourceAttributeId:r.id,mustBeAccepted:!0,metadata:{attributeListenerId:t.id}},o=await e.consumptionServices.outgoingRequests.canCreate({content:{items:[s]},peer:t.peer});if(!o.value.isSuccess)return void this.logger.error("Could not validate outgoing request",o.value);const a=await e.consumptionServices.outgoingRequests.create({content:{items:[s]},peer:t.peer});a.isError?this.logger.error("Could not create request",a.error):this.runtime.eventBus.publish(new n.AttributeListenerTriggeredEvent(i,{attributeListener:t,attribute:r,request:a.value}))}async doesAttributeMatchQuery(e,t,r){const i=t.query;switch(i["@type"]){case"IdentityAttributeQuery":{if("IdentityAttribute"!==r.content["@type"])return!1;const t=await e.consumptionServices.attributes.executeIdentityAttributeQuery({query:i});return t.isError?(this.logger.error("Could not execute IdentityAttributeQuery",t.error),!1):!!t.value.find((e=>e.id===r.id))}case"ThirdPartyRelationshipAttributeQuery":{if("RelationshipAttribute"!==r.content["@type"])return!1;const t=await e.consumptionServices.attributes.executeThirdPartyRelationshipAttributeQuery({query:i});return t.isError?(this.logger.error("Could not execute ThirdPartyRelationshipAttributeQuery",t.error),!1):t.value.some((e=>e.id===r.id))}}}stop(){this.unsubscribeFromAllEvents()}}t.AttributeListenerModule=AttributeListenerModule},4482:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeciderModule=void 0;const i=r(8334),n=r(3494),s=r(4044);class DeciderModule extends s.RuntimeModule{init(){}start(){this.subscribeToEvent(n.IncomingRequestStatusChangedEvent,this.handleIncomingRequestStatusChanged.bind(this))}async handleIncomingRequestStatusChanged(e){if(e.data.newStatus===i.LocalRequestStatus.DecisionRequired)return e.data.request.content.items.some(flaggedAsManualDecisionRequired),await this.requireManualDecision(e)}async requireManualDecision(e){const t=e.data.request,r=await this.runtime.getServices(e.eventTargetAddress),i=await r.consumptionServices.incomingRequests.requireManualDecision({requestId:t.id});if(i.isError)return this.logger.error(`Could not require manual decision for request ${t.id}`,i.error),void await this.publishEvent(e,r,"Error");await this.publishEvent(e,r,"ManualRequestDecisionRequired",t.id)}async publishEvent(e,t,r,i){const s=e.data.request;switch(s.source.type){case"RelationshipTemplate":const o=(await t.transportServices.relationshipTemplates.getRelationshipTemplate({id:s.source.reference})).value;if("NoRequest"!==r&&"Error"!==r||this.runtime.eventBus.publish(new n.RelationshipTemplateProcessedEvent(e.eventTargetAddress,{template:o,result:r})),"ManualRequestDecisionRequired"===r){if(!i)throw new Error("Request ID is required for manual decision required result.");this.runtime.eventBus.publish(new n.RelationshipTemplateProcessedEvent(e.eventTargetAddress,{template:o,result:r,requestId:i}))}break;case"Message":const a=await t.transportServices.messages.getMessage({id:s.source.reference}),c={...a.value,attachments:a.value.attachments.map((e=>e.id))};this.runtime.eventBus.publish(new n.MessageProcessedEvent(e.eventTargetAddress,c,r))}}stop(){this.unsubscribeFromAllEvents()}}function flaggedAsManualDecisionRequired(e){return e.requireManualDecision??e.items?.some((e=>e.requireManualDecision))}t.DeciderModule=DeciderModule},795:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageModule=void 0;const i=r(2344),n=r(3494),s=r(3838);class MessageModule extends s.RuntimeModule{init(){}start(){this.subscribeToEvent(n.MessageReceivedEvent,this.handleMessageReceived.bind(this))}async handleMessageReceived(e){const t=e.data;this.logger.trace(`Incoming MessageReceivedEvent for ${t.id}`);let r;if("Mail"!==t.content["@type"])return;{const s=i.Mail.from(t.content);r=new n.MailReceivedEvent(e.eventTargetAddress,s,t),this.runtime.eventBus.publish(r),this.logger.trace(`Published MailReceivedEvent for ${t.id}`)}const s=await this.runtime.getServices(e.eventTargetAddress),o=await s.transportServices.relationships.getRelationshipByAddress({address:t.createdBy});if(!o.isSuccess)return void this.logger.error(`Could not find relationship for address '${t.createdBy}'.`,o.error);const a=o.value;this.runtime.eventBus.publish(new n.RelationshipEvent(e.eventTargetAddress,r,a)),this.logger.trace(`Published RelationshipEvent for ${t.id} to ${a.id}`)}stop(){this.unsubscribeFromAllEvents()}}t.MessageModule=MessageModule},5981:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationModule=void 0;const i=r(3494),n=r(3838);class NotificationModule extends n.RuntimeModule{init(){}start(){this.subscribeToEvent(i.MessageReceivedEvent,this.handleMessageReceivedEvent.bind(this)),this.subscribeToEvent(i.MessageSentEvent,this.handleMessageSentEvent.bind(this))}async handleMessageReceivedEvent(e){const t=e.data;if("Notification"!==t.content["@type"])return;const r=await this.runtime.getServices(e.eventTargetAddress),i=await r.consumptionServices.notifications.receivedNotification({messageId:t.id});if(i.isError)return void this.logger.error(`Could not mark Notification as received for message '${t.id}'.`,i.error);const n=i.value,s=await r.consumptionServices.notifications.processNotificationById({notificationId:n.id});s.isError&&this.logger.error(`Could not process Notification '${n.id}'.`,s.error)}async handleMessageSentEvent(e){const t=e.data;if("Notification"!==t.content["@type"])return;const r=await this.runtime.getServices(e.eventTargetAddress),i=await r.consumptionServices.notifications.sentNotification({messageId:t.id});i.isError&&this.logger.error(`Could not mark Notification as sent by Message '${t.id}'.`,i.error)}stop(){this.unsubscribeFromAllEvents()}}t.NotificationModule=NotificationModule},1889:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RequestModule=void 0;const i=r(8334),n=r(2344),s=r(3494),o=r(1952),a=r(3838),c=r(5468);class RequestModule extends a.RuntimeModule{init(){}start(){this.subscribeToEvent(s.PeerRelationshipTemplateLoadedEvent,this.handlePeerRelationshipTemplateLoaded.bind(this)),this.subscribeToEvent(s.MessageReceivedEvent,this.handleMessageReceivedEvent.bind(this)),this.subscribeToEvent(s.MessageSentEvent,this.handleMessageSentEvent.bind(this)),this.subscribeToEvent(s.IncomingRequestStatusChangedEvent,this.handleIncomingRequestStatusChanged.bind(this)),this.subscribeToEvent(s.RelationshipChangedEvent,this.handleRelationshipChangedEvent.bind(this))}async handlePeerRelationshipTemplateLoaded(e){const t=e.data;if(t.isOwn)return;if("RelationshipTemplateContent"!==t.content["@type"])return void this.runtime.eventBus.publish(new o.RelationshipTemplateProcessedEvent(e.eventTargetAddress,{template:t,result:o.RelationshipTemplateProcessedResult.NoRequest}));const r=t.content,n=await this.runtime.getServices(e.eventTargetAddress),s=(await n.consumptionServices.incomingRequests.getRequests({query:{"source.reference":t.id}})).value.filter((e=>e.status!==i.LocalRequestStatus.Completed));if(0!==s.length)return this.logger.info(`There is already an open Request for the RelationshipTemplate '${t.id}'.`),void this.runtime.eventBus.publish(new o.RelationshipTemplateProcessedEvent(e.eventTargetAddress,{template:t,result:o.RelationshipTemplateProcessedResult.NonCompletedRequestExists,requestId:s[0].id}));const a=(await n.transportServices.relationships.getRelationships({query:{peer:t.createdBy}})).value,u=a.filter((e=>e.status===c.RelationshipStatus.Pending));if(0!==u.length)return this.logger.info(`There is already a pending Relationship for the RelationshipTemplate '${t.id}'. Skipping creation of a new request.`),void this.runtime.eventBus.publish(new o.RelationshipTemplateProcessedEvent(e.eventTargetAddress,{template:t,result:o.RelationshipTemplateProcessedResult.RelationshipExists,relationshipId:u[0].id}));const l=a.filter((e=>e.status===c.RelationshipStatus.Active));if(0!==l.length){if(r.onExistingRelationship){return void(await this.createIncomingRequest(n,r.onExistingRelationship,t.id)||this.runtime.eventBus.publish(new o.RelationshipTemplateProcessedEvent(e.eventTargetAddress,{template:t,result:o.RelationshipTemplateProcessedResult.Error})))}return this.logger.info(`There is already an open Relationship for the RelationshipTemplate '${t.id}' and onExistingRelationship is not defined. Skipping creation of a new request.`),void this.runtime.eventBus.publish(new o.RelationshipTemplateProcessedEvent(e.eventTargetAddress,{template:t,result:o.RelationshipTemplateProcessedResult.RelationshipExists,relationshipId:l[0].id}))}await this.createIncomingRequest(n,r.onNewRelationship,t.id)||this.runtime.eventBus.publish(new o.RelationshipTemplateProcessedEvent(e.eventTargetAddress,{template:t,result:o.RelationshipTemplateProcessedResult.Error}))}async handleMessageReceivedEvent(e){const t=await this.runtime.getServices(e.eventTargetAddress),r=e.data,i=r.content["@type"];switch(i){case"Request":await this.createIncomingRequest(t,r.content,r.id);break;case"Response":await this.completeExistingRequestWithResponseReceivedByMessage(t,r.id,r.content);break;case"ResponseWrapper":const e=r.content;if("Message"===e.requestSourceType){await this.completeExistingRequestWithResponseReceivedByMessage(t,r.id,e.response);break}await t.consumptionServices.outgoingRequests.createAndCompleteFromRelationshipTemplateResponse({responseSourceId:r.id,templateId:e.requestSourceReference,response:e.response})}"Request"!==i&&this.runtime.eventBus.publish(new s.MessageProcessedEvent(e.eventTargetAddress,r,s.MessageProcessedResult.NoRequest))}async completeExistingRequestWithResponseReceivedByMessage(e,t,r){const i=await e.consumptionServices.outgoingRequests.complete({receivedResponse:r,messageId:t});i.isError&&this.logger.error(`Could not complete outgoing request for message id ${t} due to ${i.error}. Root error:`,i.error)}async handleMessageSentEvent(e){const t=e.data;if("Request"!==t.content["@type"])return;const r=await this.runtime.getServices(e.eventTargetAddress),i=t.content,n=await r.consumptionServices.outgoingRequests.sent({requestId:i.id,messageId:t.id});n.isError&&this.logger.error(`Could not mark request '${i.id}' as sent using message '${t.id}'. Root error:`,n.error)}async createIncomingRequest(e,t,r){const i=await e.consumptionServices.incomingRequests.received({receivedRequest:t,requestSourceId:r});if(i.isError)return this.logger.error(`Could not receive request ${t.id}. Root error:`,i.error),!1;const n=await e.consumptionServices.incomingRequests.checkPrerequisites({requestId:i.value.id});return!n.isError||(this.logger.error(`Could not check prerequisites for request ${t.id}. Root error:`,n.error),!1)}async handleIncomingRequestStatusChanged(e){if(e.data.newStatus!==i.LocalRequestStatus.Decided)return;const t=e.data.request;switch(t.source.type){case"RelationshipTemplate":await this.handleIncomingRequestDecidedForRelationshipTemplate(e);break;case"Message":await this.handleIncomingRequestDecidedForMessage(e);break;default:throw new Error(`Cannot handle source.type '${t.source.type}'.`)}}async handleIncomingRequestDecidedForRelationshipTemplate(e){const t=e.data.request,r=await this.runtime.getServices(e.eventTargetAddress);0===(await r.transportServices.relationships.getRelationships({query:{peer:e.data.request.peer,status:c.RelationshipStatus.Active}})).value.length?await this.respondToRequestViaRelationship(t,e.eventTargetAddress):await this.respondToRequestViaMessage(t,e.eventTargetAddress)}async respondToRequestViaRelationship(e,t){const r=await this.runtime.getServices(t),i=e.source.reference;if(e.response.content.result===n.ResponseResult.Rejected)return void await r.consumptionServices.incomingRequests.complete({requestId:e.id});const s=n.RelationshipCreationChangeRequestContent.from({response:e.response.content}),o=await r.transportServices.relationships.createRelationship({templateId:i,content:s});if(o.isError)return void this.logger.error(`Could not create relationship for templateId '${i}'. Root error:`,o.error);const a=e.id,c=await r.consumptionServices.incomingRequests.complete({requestId:a,responseSourceId:o.value.changes[0].id});c.isError&&this.logger.error(`Could not complete the request '${a}'. Root error:`,c.error)}async respondToRequestViaMessage(e,t){const r=e.id,i=await this.runtime.getServices(t),s=n.ResponseWrapper.from({"@type":"ResponseWrapper",response:e.response.content,requestId:r,requestSourceReference:e.source.reference,requestSourceType:e.source.type}).toJSON(),o=await i.transportServices.messages.sendMessage({recipients:[e.peer],content:s});if(o.isError)return void this.logger.error(`Could not send message to answer the request '${r}'.`,o.error);const a=await i.consumptionServices.incomingRequests.complete({requestId:r,responseSourceId:o.value.id});a.isError&&this.logger.error(`Could not complete the request '${r}'. Root error:`,a.error)}async handleIncomingRequestDecidedForMessage(e){await this.respondToRequestViaMessage(e.data.request,e.eventTargetAddress)}async handleRelationshipChangedEvent(e){const t=e.data;if(t.status!==c.RelationshipStatus.Pending||!t.template.isOwn)return;const r=await this.runtime.getServices(e.eventTargetAddress),i=t.template,n=i.id;if("RelationshipTemplateContent"!==i.content["@type"])return;const s=t.changes[0],o=s.id;if("RelationshipCreationChangeRequestContent"!==s.request.content["@type"])return;const a=s.request.content,u=await r.consumptionServices.outgoingRequests.createAndCompleteFromRelationshipTemplateResponse({templateId:n,responseSourceId:o,response:a.response});u.isError&&this.logger.error(`Could not create and complete request for templateId '${n}' and changeId '${o}'. Root error:`,u.error)}stop(){this.unsubscribeFromAllEvents()}}t.RequestModule=RequestModule},5168:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(6520),t),n(r(4482),t),n(r(795),t),n(r(5981),t),n(r(1889),t)},7386:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3210:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5918:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1390:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2799:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9661:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5790:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7251:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1792:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(3210),t),n(r(5918),t),n(r(1390),t),n(r(2799),t),n(r(9661),t),n(r(5790),t),n(r(7251),t)},5468:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(1792),t),n(r(7386),t),n(r(8778),t)},5690:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2941:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3222:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2289:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2545:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4332:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3969:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7352:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9173:(e,t)=>{"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.RelationshipChangeType=t.RelationshipChangeStatus=void 0,function(e){e.Pending="Pending",e.Rejected="Rejected",e.Revoked="Revoked",e.Accepted="Accepted"}(r||(t.RelationshipChangeStatus=r={})),function(e){e.Creation="Creation",e.Termination="Termination",e.TerminationCancellation="TerminationCancellation"}(i||(t.RelationshipChangeType=i={}))},5853:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.RelationshipStatus=void 0,function(e){e.Pending="Pending",e.Active="Active",e.Rejected="Rejected",e.Revoked="Revoked",e.Terminating="Terminating",e.Terminated="Terminated"}(r||(t.RelationshipStatus=r={}))},8599:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1782:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8778:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(5690),t),n(r(2941),t),n(r(3222),t),n(r(2289),t),n(r(2545),t),n(r(4332),t),n(r(3969),t),n(r(7352),t),n(r(9173),t),n(r(5853),t),n(r(8599),t),n(r(1782),t)},8913:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(1324),t)},5712:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoadPeerTokenAnonymousByIdAndKeyUseCase=void 0;const o=r(1917),a=r(922),c=r(2984),u=r(1699),l=r(2197),p=r(2860);let d=class Validator extends l.SchemaValidator{constructor(e){super(e.getSchema("LoadPeerTokenAnonymousByIdAndKeyRequest"))}};d=i([s(0,u.Inject),n("design:paramtypes",[l.SchemaRepository])],d);let f=class LoadPeerTokenAnonymousByIdAndKeyUseCase extends l.UseCase{constructor(e,t){super(t),this.anonymousTokenController=e}async executeInternal(e){const t=a.CryptoSecretKey.fromBase64(e.secretKey),r=await this.anonymousTokenController.loadPeerToken(c.CoreId.from(e.id),t);return o.Result.ok(p.TokenMapper.toTokenDTO(r,!0))}};t.LoadPeerTokenAnonymousByIdAndKeyUseCase=f,t.LoadPeerTokenAnonymousByIdAndKeyUseCase=f=i([s(0,u.Inject),s(1,u.Inject),n("design:paramtypes",[c.AnonymousTokenController,d])],f)},310:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoadPeerTokenAnonymousByTruncatedReferenceUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197),l=r(2860);let p=class Validator extends u.SchemaValidator{constructor(e){super(e.getSchema("LoadPeerTokenAnonymousByTruncatedReferenceRequest"))}};p=i([s(0,c.Inject),n("design:paramtypes",[u.SchemaRepository])],p);let d=class LoadPeerTokenAnonymousByTruncatedReferenceUseCase extends u.UseCase{constructor(e,t){super(t),this.anonymousTokenController=e}async executeInternal(e){const t=await this.anonymousTokenController.loadPeerTokenByTruncated(e.reference);return o.Result.ok(l.TokenMapper.toTokenDTO(t,!0))}};t.LoadPeerTokenAnonymousByTruncatedReferenceUseCase=d,t.LoadPeerTokenAnonymousByTruncatedReferenceUseCase=d=i([s(0,c.Inject),s(1,c.Inject),n("design:paramtypes",[a.AnonymousTokenController,p])],d)},1324:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(5712),t),n(r(310),t)},1174:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Base64ForIdPrefix=void 0,function(e){e.RelationshipTemplate="UkxU",e.Token="VE9L",e.File="RklM"}(r||(t.Base64ForIdPrefix=r={}))},1866:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.OwnerRestriction=void 0,function(e){e.Own="o",e.Peer="p"}(r||(t.OwnerRestriction=r={}))},3282:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PlatformErrorCodes=void 0;class PlatformErrorCodes{static{this.NOT_FOUND="error.platform.recordNotFound"}static{this.UNAUTHORIZED="error.platform.unauthorized"}static{this.FORBIDDEN="error.platform.forbidden"}static{this.INVALID_PROPERTY_VALUE="error.platform.invalidPropertyValue"}static{this.UNEXPECTED="error.platform.unexpected"}static isNotFoundError(e){return e.code===PlatformErrorCodes.NOT_FOUND}static isValidationError(e){return e.code.startsWith("error.platform.validation")}static isUnexpectedError(e){return e.code.startsWith("error.platform.validation")}}t.PlatformErrorCodes=PlatformErrorCodes},7803:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.QRCode=void 0;const o=s(r(6484));class QRCode{constructor(e){this.base64=e}asBase64(){return this.base64}static async from(e,t){const r=(await o.toDataURL(`nmshd://${t}#${e}`)).split(",")[1];return new QRCode(r)}static async forTruncateable(e){return await this.from(e.truncate(),"tr")}}t.QRCode=QRCode},738:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RuntimeErrors=void 0;const i=r(1917),n=r(1174);class General{unknown(e,t){return new i.ApplicationError("error.runtime.unknown",e,t)}alreadyInitialized(){return new i.ApplicationError("error.runtime.alreadyInitialized","The runtime is already initialized. The init method can only be executed once.")}notInitialized(){return new i.ApplicationError("error.runtime.notInitialized","The runtime is not initialized. You must run init before you can start or stop the runtime.")}alreadyStarted(){return new i.ApplicationError("error.runtime.alreadyStarted","The runtime is already started. You should stop it first for a restart.")}notStarted(){return new i.ApplicationError("error.runtime.notStarted","The runtime is not started. You can only stop the runtime if you executed start before.")}recordNotFound(e){return this.recordNotFoundWithMessage(`${e instanceof Function?e.name:e} not found. Make sure the ID exists and the record is not expired.`)}recordNotFoundWithMessage(e){return new i.ApplicationError("error.runtime.recordNotFound",e)}invalidPropertyValue(e){return new i.ApplicationError("error.runtime.validation.invalidPropertyValue",e)}invalidPayload(e){return new i.ApplicationError("error.runtime.validation.invalidPayload",e??"The given combination of properties in the payload is not supported.")}notSupported(e){return new i.ApplicationError("error.runtime.notSupported",e)}invalidTokenContent(){return new i.ApplicationError("error.runtime.invalidTokenContent","The given token has an invalid content for this route.")}cacheEmpty(e,t){return new i.ApplicationError("error.runtime.cacheEmpty",`The cache of ${e instanceof Function?e.name:e} with id '${t}' is empty.`)}}class Serval{unknownType(e){return new i.ApplicationError("error.runtime.unknownType",e)}general(e){return new i.ApplicationError("error.runtime.servalError",e)}requestDeserialization(e){return new i.ApplicationError("error.runtime.requestDeserialization",e)}}class Files{invalidReference(e){return new i.ApplicationError("error.runtime.files.invalidReference",`The given reference '${e}' is not valid. The reference for a file must start with '${n.Base64ForIdPrefix.Token}' or '${n.Base64ForIdPrefix.File}'.`)}}class RelationshipTemplates{cannotCreateTokenForPeerTemplate(){return new i.ApplicationError("error.runtime.relationshipTemplates.cannotCreateTokenForPeerTemplate","You cannot create a token for a peer template.")}cannotCreateQRCodeForPeerTemplate(){return new i.ApplicationError("error.runtime.relationshipTemplates.cannotCreateQRCodeForPeerTemplate","You cannot create a QRCode for a peer template.")}invalidReference(e){return new i.ApplicationError("error.runtime.relationshipTemplates.invalidReference",`The given reference '${e}' is not valid. The reference for a relationship template must start with '${n.Base64ForIdPrefix.Token}' or '${n.Base64ForIdPrefix.RelationshipTemplate}'.`)}}class Messages{fileNotFoundInMessage(e){return new i.ApplicationError("error.runtime.messages.fileNotFoundInMessage",`The requested file '${e}' was not found in the given message.`)}}class Startup{noActiveAccount(){return new i.ApplicationError("error.runtime.startup.noActiveAccount","No AccountController could be found. You might have to login first.")}noActiveConsumptionController(){return new i.ApplicationError("error.runtime.startup.noActiveConsumptionController","No ConsumptionController could be found. You might have to login first.")}noActiveExpander(){return new i.ApplicationError("error.runtime.startup.noActiveExpander","No DataViewExpander could be found. You might have to login first.")}}class Challenges{invalidSignature(){return new i.ApplicationError("error.runtime.challenges.invalidSignature","The signature is invalid.")}invalidChallengeString(){return new i.ApplicationError("error.runtime.challenges.invalidChallenge","The challengeString is invalid.")}}class Notifications{cannotReceiveNotificationFromOwnMessage(){return new i.ApplicationError("error.runtime.notifications.cannotReceiveNotificationFromOwnMessage","Cannot receive Notification from own message.")}cannotSaveSentNotificationFromPeerMessage(){return new i.ApplicationError("error.runtime.notifications.cannotSaveSendNotificationFromPeerMessage","Cannot send Notification from peer message.")}messageDoesNotContainNotification(e){return new i.ApplicationError("error.runtime.notifications.messageDoesNotContainNotification",`The Message with the ID '${e.toString()}' does not contain a Notification.`)}}class Attributes{isNotRepositoryAttribute(e){return new i.ApplicationError("error.runtime.attributes.isNotRepositoryAttribute",`Attribute '${e.toString()}' is not a repository attribute.`)}repositoryAttributeHasAlreadyBeenSharedWithPeer(e,t,r){return new i.ApplicationError("error.runtime.attributes.repositoryAttributeHasAlreadyBeenSharedWithPeer",`Repository attribute '${e.toString()}' has already been shared with peer '${t.toString()}'. ID of own shared identity attribute: ${r.toString()}.`)}anotherVersionOfRepositoryAttributeHasAlreadyBeenSharedWithPeer(e,t,r){return new i.ApplicationError("error.runtime.attributes.anotherVersionOfRepositoryAttributeHasAlreadyBeenSharedWithPeer",`Another version of repository attribute '${e.toString()}' has already been shared with peer '${t.toString()}'. ID of previous own shared identity attribute: ${r.toString()}.`)}noPreviousVersionOfRepositoryAttributeHasBeenSharedWithPeerBefore(e,t){return new i.ApplicationError("error.runtime.attributes.noPreviousVersionOfRepositoryAttributeHasBeenSharedWithPeerBefore",`No previous version of repository attribute '${e.toString()}' has been shared with peer '${t.toString()}' before. If you wish to execute an initial sharing of this attribute, use 'ShareRepositoryAttribute'.`)}isNotOwnSharedAttribute(e){return new i.ApplicationError("error.runtime.attributes.isNotOwnSharedAttribute",`Attribute '${e.toString()}' is not an own shared attribute.`)}isNotPeerSharedAttribute(e){return new i.ApplicationError("error.runtime.attributes.isNotPeerSharedAttribute",`Attribute '${e.toString()}' is not a peer shared attribute.`)}isNotThirdPartyOwnedRelationshipAttribute(e){return new i.ApplicationError("error.runtime.attributes.isNotThirdPartyOwnedRelationshipAttribute",`Attribute '${e.toString()}' is not a third party owned relationship attribute.`)}}class RuntimeErrors{static{this.general=new General}static{this.serval=new Serval}static{this.startup=new Startup}static{this.files=new Files}static{this.relationshipTemplates=new RelationshipTemplates}static{this.messages=new Messages}static{this.challenges=new Challenges}static{this.notifications=new Notifications}static{this.attributes=new Attributes}}t.RuntimeErrors=RuntimeErrors},1442:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return n(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.JsonSchema=t.SchemaRepository=void 0;const a=o(r(1601)),c=o(r(7156)),u=o(r(4421));t.SchemaRepository=class SchemaRepository{constructor(){this.jsonSchemas=new Map,this.compiler=new a.default({allErrors:!0,allowUnionTypes:!0}),(0,u.default)(this.compiler),(0,c.default)(this.compiler)}async loadSchemas(){this.schemaDefinitions=await Promise.resolve().then((()=>s(r(6897))))}getSchema(e){return this.jsonSchemas.has(e)||this.jsonSchemas.set(e,new JsonSchema(this.getValidationFunction(e))),this.jsonSchemas.get(e)}getValidationFunction(e){return this.compiler.compile(this.getSchemaDefinition(e))}getSchemaDefinition(e){const t=this.schemaDefinitions[e];if(!t)throw new Error(`Schema ${e} not found`);return t}};class JsonSchema{constructor(e){this.validateSchema=e}validate(e){return{isValid:this.validateSchema(e),errors:this.validateSchema.errors?[...this.validateSchema.errors]:void 0}}}t.JsonSchema=JsonSchema},6897:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReceivedNotificationRequest=t.ProcessNotificationByIdRequest=t.GetNotificationsRequest=t.GetNotificationRequest=t.UpdateDraftRequest=t.GetDraftsRequest=t.GetDraftRequest=t.DeleteDraftRequest=t.CreateDraftRequest=t.ValidateIQLQueryRequest=t.SucceedRepositoryAttributeRequest=t.SucceedRelationshipAttributeAndNotifyPeerRequest=t.ShareRepositoryAttributeRequest=t.NotifyPeerAboutRepositoryAttributeSuccessionRequest=t.GetVersionsOfAttributeRequest=t.GetSharedVersionsOfRepositoryAttributeRequest=t.GetRepositoryAttributesRequest=t.GetPeerSharedAttributesRequest=t.GetOwnSharedAttributesRequest=t.GetAttributesRequest=t.GetAttributeRequest=t.ExecuteThirdPartyRelationshipAttributeQueryRequest=t.ExecuteRelationshipAttributeQueryRequest=t.ExecuteIQLQueryRequest=t.ExecuteIdentityAttributeQueryRequest=t.DeleteThirdPartyOwnedRelationshipAttributeAndNotifyPeerRequest=t.DeleteRepositoryAttributeRequest=t.DeletePeerSharedAttributeAndNotifyOwnerRequest=t.DeleteOwnSharedAttributeAndNotifyPeerRequest=t.CreateRepositoryAttributeRequest=t.CreateAndShareRelationshipAttributeRequest=t.SentOutgoingRequestRequest=t.RequireManualDecisionOfIncomingRequestRequest=t.ReceivedIncomingRequestRequest=t.GetOutgoingRequestsRequest=t.GetOutgoingRequestRequest=t.GetIncomingRequestsRequest=t.GetIncomingRequestRequest=t.DiscardOutgoingRequestRequest=t.CreateOutgoingRequestRequest=t.CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponseRequest=t.CompleteOutgoingRequestRequest=t.CompleteIncomingRequestRequest=t.CheckPrerequisitesOfIncomingRequestRequest=t.RejectIncomingRequestRequest=t.CanCreateOutgoingRequestRequest=t.AcceptIncomingRequestRequest=t.GetAttributeListenerRequest=t.LoadPeerTokenAnonymousByTruncatedReferenceRequest=t.LoadPeerTokenAnonymousByIdAndKeyRequest=void 0,t.GetRelationshipsRequest=t.GetRelationshipByAddressRequest=t.GetRelationshipRequest=t.GetAttributesForRelationshipRequest=t.CreateRelationshipRequest=t.AcceptRelationshipChangeRequest=t.SendMessageRequest=t.MarkMessageAsUnreadRequest=t.MarkMessageAsReadRequest=t.GetMessagesRequest=t.GetMessageRequest=t.GetAttachmentMetadataRequest=t.CheckIdentityRequest=t.UploadOwnFileValidatableRequest=t.UploadOwnFileRequest=t.GetOrLoadFileRequest=t.GetOrLoadFileViaReferenceRequest=t.GetOrLoadFileViaSecretRequest=t.GetFilesRequest=t.GetFileRequest=t.CreateTokenQRCodeForFileRequest=t.CreateTokenForFileRequest=t.CreateQRCodeForFileRequest=t.UpdateDeviceRequest=t.GetDeviceOnboardingInfoRequest=t.GetDeviceRequest=t.DeleteDeviceRequest=t.CreateDeviceOnboardingTokenRequest=t.CreateDeviceRequest=t.ValidateChallengeRequest=t.CreateChallengeRequest=t.isCreateDeviceChallengeRequest=t.CreateDeviceChallengeRequest=t.isCreateIdentityChallengeRequest=t.CreateIdentityChallengeRequest=t.isCreateRelationshipChallengeRequest=t.CreateRelationshipChallengeRequest=t.SyncEverythingRequest=t.DownloadAttachmentRequest=t.SyncDatawalletRequest=t.RegisterPushNotificationTokenRequest=t.LoadItemFromTruncatedReferenceRequest=t.DownloadFileRequest=t.UpdateSettingRequest=t.GetSettingsRequest=t.GetSettingByKeyRequest=t.GetSettingRequest=t.DeleteSettingRequest=t.CreateSettingRequest=t.SentNotificationRequest=void 0,t.LoadPeerTokenRequest=t.LoadPeerTokenViaSecretRequest=t.LoadPeerTokenViaReferenceRequest=t.GetTokensRequest=t.GetTokenRequest=t.GetQRCodeForTokenRequest=t.CreateOwnTokenRequest=t.LoadPeerRelationshipTemplateRequest=t.LoadPeerRelationshipTemplateViaReferenceRequest=t.LoadPeerRelationshipTemplateViaSecretRequest=t.GetRelationshipTemplatesRequest=t.GetRelationshipTemplateRequest=t.CreateTokenQRCodeForOwnTemplateRequest=t.CreateTokenForOwnTemplateRequest=t.CreateQRCodeForOwnTemplateRequest=t.CreateOwnRelationshipTemplateRequest=t.RevokeRelationshipChangeRequest=t.RejectRelationshipChangeRequest=void 0,t.LoadPeerTokenAnonymousByIdAndKeyRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/LoadPeerTokenAnonymousByIdAndKeyRequest",definitions:{LoadPeerTokenAnonymousByIdAndKeyRequest:{type:"object",properties:{id:{$ref:"#/definitions/TokenIdString"},secretKey:{type:"string"}},required:["id","secretKey"],additionalProperties:!1},TokenIdString:{type:"string",pattern:"TOK[A-Za-z0-9]{17}"}}},t.LoadPeerTokenAnonymousByTruncatedReferenceRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/LoadPeerTokenAnonymousByTruncatedReferenceRequest",definitions:{LoadPeerTokenAnonymousByTruncatedReferenceRequest:{type:"object",properties:{reference:{$ref:"#/definitions/TokenReferenceString"}},required:["reference"],additionalProperties:!1},TokenReferenceString:{type:"string",pattern:"VE9L.{84}"}}},t.GetAttributeListenerRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetAttributeListenerRequest",definitions:{GetAttributeListenerRequest:{type:"object",properties:{id:{$ref:"#/definitions/AttributeListenerIdString"}},required:["id"],additionalProperties:!1},AttributeListenerIdString:{type:"string",pattern:"ATL[A-Za-z0-9]{17}"}}},t.AcceptIncomingRequestRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/AcceptIncomingRequestRequest",definitions:{AcceptIncomingRequestRequest:{type:"object",additionalProperties:!1,properties:{requestId:{type:"string"},items:{type:"array",items:{anyOf:[{$ref:"#/definitions/DecideRequestItemParametersJSON"},{$ref:"#/definitions/DecideRequestItemGroupParametersJSON"}]}}},required:["items","requestId"]},DecideRequestItemParametersJSON:{anyOf:[{$ref:"#/definitions/AcceptRequestItemParametersJSON"},{$ref:"#/definitions/RejectRequestItemParametersJSON"}]},AcceptRequestItemParametersJSON:{type:"object",properties:{accept:{type:"boolean",const:!0}},required:["accept"],additionalProperties:!1},RejectRequestItemParametersJSON:{type:"object",properties:{accept:{type:"boolean",const:!1},code:{type:"string"},message:{type:"string"}},required:["accept"],additionalProperties:!1},DecideRequestItemGroupParametersJSON:{type:"object",properties:{items:{type:"array",items:{$ref:"#/definitions/DecideRequestItemParametersJSON"}}},required:["items"],additionalProperties:!1}}},t.CanCreateOutgoingRequestRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/CanCreateOutgoingRequestRequest",definitions:{CanCreateOutgoingRequestRequest:{type:"object",properties:{content:{type:"object",properties:{expiresAt:{type:"string",description:"The point in time the request is considered obsolete either technically (e.g. the request is no longer valid or its response is no longer accepted) or from a business perspective (e.g. the request is no longer of interest).",default:"undefined - the request won't expire"},items:{type:"array",items:{anyOf:[{$ref:"#/definitions/RequestItemGroupJSON"},{$ref:"#/definitions/RequestItemJSONDerivations"}]},description:"The items of the Request. Can be either a single {@link RequestItemJSONDerivations RequestItem } or a {@link RequestItemGroupJSON RequestItemGroup } , which itself can contain further {@link RequestItemJSONDerivations RequestItems } ."},title:{type:"string",description:"The human-readable title of this Request."},description:{type:"string",description:"The human-readable description of this Request."},metadata:{type:"object",description:"This property can be used to add some arbitrary metadata to this request. The content of this property will be copied into the response on the side of the recipient."},"@context":{type:"string"}},required:["items"],additionalProperties:!1},peer:{$ref:"#/definitions/AddressString"}},required:["content"],additionalProperties:!1},RequestItemGroupJSON:{type:"object",properties:{"@type":{type:"string",const:"RequestItemGroup"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string",description:"The human-readable title of this group."},description:{type:"string",description:"The human-readable description of this group."},mustBeAccepted:{type:"boolean",description:"If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not."},metadata:{type:"object",description:"This property can be used to add some arbitrary metadata to this group. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."},items:{type:"array",items:{$ref:"#/definitions/RequestItemJSONDerivations"},description:"The items of this group."}},required:["@type","items","mustBeAccepted"],additionalProperties:!1,description:"A RequestItemGroup can be used to group one or more RequestItems. This is useful if you want to\n* make sure that the items in the group can only be accepted together\n\n Example: when sending a `CreateRelationshipAttributeRequestItem` **and** a `ShareAttributeRequestItem` in a single Request where the latter one targets an attribute created by the first one, it it should be impossible to reject the first item, while accepting the second one.\n* visually group items on the UI and give the a common title/description"},RequestItemJSONDerivations:{anyOf:[{$ref:"#/definitions/RequestItemJSON"},{$ref:"#/definitions/CreateAttributeRequestItemJSON"},{$ref:"#/definitions/ShareAttributeRequestItemJSON"},{$ref:"#/definitions/ProposeAttributeRequestItemJSON"},{$ref:"#/definitions/ReadAttributeRequestItemJSON"},{$ref:"#/definitions/ConsentRequestItemJSON"},{$ref:"#/definitions/AuthenticationRequestItemJSON"},{$ref:"#/definitions/FreeTextRequestItemJSON"},{$ref:"#/definitions/RegisterAttributeListenerRequestItemJSON"}]},RequestItemJSON:{type:"object",properties:{"@type":{type:"string"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string",description:"The human-readable title of this item."},description:{type:"string",description:"The human-readable description of this item."},metadata:{type:"object",description:"This property can be used to add some arbitrary metadata to this item. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."},mustBeAccepted:{type:"boolean",description:"If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not.\n\nCaution: this setting does not take effect in case it is inside of a {@link RequestItemGroupJSON RequestItemGroup } , which is not accepted by the recipient, since a {@link RequestItemJSON RequestItem } can only be accepted if the parent group is accepted as well."},requireManualDecision:{type:"boolean",description:"If set to `true`, it advices the recipient of this RequestItem to carefully consider their decision and especially do not decide based on some automation rules."}},required:["@type","mustBeAccepted"],additionalProperties:!1},CreateAttributeRequestItemJSON:{type:"object",properties:{"@type":{type:"string",const:"CreateAttributeRequestItem"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string",description:"The human-readable title of this item."},description:{type:"string",description:"The human-readable description of this item."},metadata:{type:"object",description:"This property can be used to add some arbitrary metadata to this item. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."},mustBeAccepted:{type:"boolean",description:"If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not.\n\nCaution: this setting does not take effect in case it is inside of a {@link RequestItemGroupJSON RequestItemGroup } , which is not accepted by the recipient, since a {@link RequestItemJSON RequestItem } can only be accepted if the parent group is accepted as well."},requireManualDecision:{type:"boolean",description:"If set to `true`, it advices the recipient of this RequestItem to carefully consider their decision and especially do not decide based on some automation rules."},attribute:{anyOf:[{$ref:"#/definitions/RelationshipAttributeJSON"},{$ref:"#/definitions/IdentityAttributeJSON"}]}},required:["@type","attribute","mustBeAccepted"],additionalProperties:!1},RelationshipAttributeJSON:{type:"object",properties:{"@type":{type:"string",const:"RelationshipAttribute"},"@context":{type:"string"},"@version":{type:"string"},owner:{type:"string"},validFrom:{type:"string"},validTo:{type:"string"},value:{$ref:"#/definitions/AttributeValues.Relationship.Json"},key:{type:"string"},isTechnical:{type:"boolean"},confidentiality:{$ref:"#/definitions/RelationshipAttributeConfidentiality"}},required:["@type","confidentiality","key","owner","value"],additionalProperties:!1},"AttributeValues.Relationship.Json":{anyOf:[{$ref:"#/definitions/ProprietaryBooleanJSON"},{$ref:"#/definitions/ProprietaryCountryJSON"},{$ref:"#/definitions/ProprietaryEMailAddressJSON"},{$ref:"#/definitions/ProprietaryFileReferenceJSON"},{$ref:"#/definitions/ProprietaryFloatJSON"},{$ref:"#/definitions/ProprietaryHEXColorJSON"},{$ref:"#/definitions/ProprietaryIntegerJSON"},{$ref:"#/definitions/ProprietaryLanguageJSON"},{$ref:"#/definitions/ProprietaryPhoneNumberJSON"},{$ref:"#/definitions/ProprietaryStringJSON"},{$ref:"#/definitions/ProprietaryURLJSON"},{$ref:"#/definitions/ProprietaryJSONJSON"},{$ref:"#/definitions/ProprietaryXMLJSON"},{$ref:"#/definitions/ConsentJSON"}]},ProprietaryBooleanJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryBoolean"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"boolean"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ValueHintsOverrideJSON:{type:"object",additionalProperties:!1,properties:{"@type":{type:"string",const:"ValueHints"},editHelp:{type:"string"},min:{type:"number"},max:{type:"number"},pattern:{type:"string"},values:{type:"array",items:{$ref:"#/definitions/ValueHintsValueJSON"}},defaultValue:{type:["string","number","boolean"]},propertyHints:{type:"object",additionalProperties:{$ref:"#/definitions/ValueHintsJSON"}},"@context":{type:"string"},"@version":{type:"string"}}},ValueHintsValueJSON:{type:"object",properties:{key:{type:["string","number","boolean"]},displayName:{type:"string"}},required:["key","displayName"],additionalProperties:!1},ValueHintsJSON:{type:"object",properties:{"@type":{type:"string",const:"ValueHints"},"@context":{type:"string"},"@version":{type:"string"},editHelp:{type:"string"},min:{type:"number"},max:{type:"number"},pattern:{type:"string"},values:{type:"array",items:{$ref:"#/definitions/ValueHintsValueJSON"}},defaultValue:{type:["string","number","boolean"]},propertyHints:{type:"object",additionalProperties:{$ref:"#/definitions/ValueHintsJSON"}}},required:["@type"],additionalProperties:!1},ProprietaryCountryJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryCountry"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryEMailAddressJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryEMailAddress"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryFileReferenceJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryFileReference"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryFloatJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryFloat"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"number"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryHEXColorJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryHEXColor"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryIntegerJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryInteger"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"number"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryLanguageJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryLanguage"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryPhoneNumberJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryPhoneNumber"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryStringJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryString"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryURLJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryURL"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryJSONJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryJSON"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string"},description:{type:"string"},value:{}},required:["@type","title","value"],additionalProperties:!1},ProprietaryXMLJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryXML"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"},schemaURL:{type:"string"}},required:["@type","title","value"],additionalProperties:!1},ConsentJSON:{type:"object",properties:{"@type":{type:"string"},"@context":{type:"string"},"@version":{type:"string"},consent:{type:"string"},link:{type:"string"}},required:["@type","consent"],additionalProperties:!1},RelationshipAttributeConfidentiality:{type:"string",enum:["public","private","protected"]},IdentityAttributeJSON:{type:"object",properties:{"@type":{type:"string",const:"IdentityAttribute"},"@context":{type:"string"},"@version":{type:"string"},owner:{type:"string"},validFrom:{type:"string"},validTo:{type:"string"},value:{$ref:"#/definitions/AttributeValues.Identity.Json"},tags:{type:"array",items:{type:"string"}}},required:["@type","owner","value"],additionalProperties:!1},"AttributeValues.Identity.Json":{anyOf:[{$ref:"#/definitions/AttributeValues.Identity.Editable.Json"},{$ref:"#/definitions/AttributeValues.Identity.Uneditable.Json"}]},"AttributeValues.Identity.Editable.Json":{anyOf:[{$ref:"#/definitions/AffiliationJSON"},{$ref:"#/definitions/BirthDateJSON"},{$ref:"#/definitions/BirthNameJSON"},{$ref:"#/definitions/BirthPlaceJSON"},{$ref:"#/definitions/CitizenshipJSON"},{$ref:"#/definitions/CommunicationLanguageJSON"},{$ref:"#/definitions/DeliveryBoxAddressJSON"},{$ref:"#/definitions/DisplayNameJSON"},{$ref:"#/definitions/EMailAddressJSON"},{$ref:"#/definitions/FaxNumberJSON"},{$ref:"#/definitions/IdentityFileReferenceJSON"},{$ref:"#/definitions/JobTitleJSON"},{$ref:"#/definitions/NationalityJSON"},{$ref:"#/definitions/PersonNameJSON"},{$ref:"#/definitions/PhoneNumberJSON"},{$ref:"#/definitions/PostOfficeBoxAddressJSON"},{$ref:"#/definitions/PseudonymJSON"},{$ref:"#/definitions/SexJSON"},{$ref:"#/definitions/StreetAddressJSON"},{$ref:"#/definitions/WebsiteJSON"}]},AffiliationJSON:{type:"object",properties:{"@type":{type:"string",const:"Affiliation"},"@context":{type:"string"},"@version":{type:"string"},organization:{type:"string"},role:{type:"string"},unit:{type:"string"}},required:["@type","organization"],additionalProperties:!1},BirthDateJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthDate"},"@context":{type:"string"},"@version":{type:"string"},day:{type:"number"},month:{type:"number"},year:{type:"number"}},required:["@type","day","month","year"],additionalProperties:!1},BirthNameJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthName"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},BirthPlaceJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthPlace"},"@context":{type:"string"},"@version":{type:"string"},city:{type:"string"},country:{type:"string"},state:{type:"string"}},required:["@type","city","country"],additionalProperties:!1},CitizenshipJSON:{type:"object",properties:{"@type":{type:"string",const:"Citizenship"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},CommunicationLanguageJSON:{type:"object",properties:{"@type":{type:"string",const:"CommunicationLanguage"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},DeliveryBoxAddressJSON:{type:"object",properties:{"@type":{type:"string",const:"DeliveryBoxAddress"},"@context":{type:"string"},"@version":{type:"string"},recipient:{type:"string"},userId:{type:"string"},deliveryBoxId:{type:"string"},zipCode:{type:"string"},city:{type:"string"},country:{type:"string"},phoneNumber:{type:"string"},state:{type:"string"}},required:["@type","city","country","deliveryBoxId","recipient","userId","zipCode"],additionalProperties:!1},DisplayNameJSON:{type:"object",properties:{"@type":{type:"string",const:"DisplayName"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},EMailAddressJSON:{type:"object",properties:{"@type":{type:"string",const:"EMailAddress"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},FaxNumberJSON:{type:"object",properties:{"@type":{type:"string",const:"FaxNumber"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},IdentityFileReferenceJSON:{type:"object",properties:{"@type":{type:"string",const:"IdentityFileReference"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},JobTitleJSON:{type:"object",properties:{"@type":{type:"string",const:"JobTitle"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},NationalityJSON:{type:"object",properties:{"@type":{type:"string",const:"Nationality"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},PersonNameJSON:{type:"object",properties:{"@type":{type:"string",const:"PersonName"},"@context":{type:"string"},"@version":{type:"string"},givenName:{type:"string"},middleName:{type:"string"},surname:{type:"string"},honorificSuffix:{type:"string"},honorificPrefix:{type:"string"}},required:["@type","givenName","surname"],additionalProperties:!1},PhoneNumberJSON:{type:"object",properties:{"@type":{type:"string",const:"PhoneNumber"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},PostOfficeBoxAddressJSON:{type:"object",properties:{"@type":{type:"string",const:"PostOfficeBoxAddress"},"@context":{type:"string"},"@version":{type:"string"},recipient:{type:"string"},boxId:{type:"string"},zipCode:{type:"string"},city:{type:"string"},country:{type:"string"},state:{type:"string"}},required:["@type","boxId","city","country","recipient","zipCode"],additionalProperties:!1},PseudonymJSON:{type:"object",properties:{"@type":{type:"string",const:"Pseudonym"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},SexJSON:{type:"object",properties:{"@type":{type:"string",const:"Sex"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},StreetAddressJSON:{type:"object",properties:{"@type":{type:"string",const:"StreetAddress"},"@context":{type:"string"},"@version":{type:"string"},recipient:{type:"string"},street:{type:"string"},houseNo:{type:"string"},zipCode:{type:"string"},city:{type:"string"},country:{type:"string"},state:{type:"string"}},required:["@type","city","country","houseNo","recipient","street","zipCode"],additionalProperties:!1},WebsiteJSON:{type:"object",properties:{"@type":{type:"string",const:"Website"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},"AttributeValues.Identity.Uneditable.Json":{anyOf:[{$ref:"#/definitions/AffiliationOrganizationJSON"},{$ref:"#/definitions/AffiliationRoleJSON"},{$ref:"#/definitions/AffiliationUnitJSON"},{$ref:"#/definitions/BirthCityJSON"},{$ref:"#/definitions/BirthCountryJSON"},{$ref:"#/definitions/BirthDayJSON"},{$ref:"#/definitions/BirthMonthJSON"},{$ref:"#/definitions/BirthStateJSON"},{$ref:"#/definitions/BirthYearJSON"},{$ref:"#/definitions/CityJSON"},{$ref:"#/definitions/CountryJSON"},{$ref:"#/definitions/GivenNameJSON"},{$ref:"#/definitions/HonorificPrefixJSON"},{$ref:"#/definitions/HonorificSuffixJSON"},{$ref:"#/definitions/HouseNumberJSON"},{$ref:"#/definitions/MiddleNameJSON"},{$ref:"#/definitions/SchematizedXMLJSON"},{$ref:"#/definitions/StateJSON"},{$ref:"#/definitions/StreetJSON"},{$ref:"#/definitions/SurnameJSON"},{$ref:"#/definitions/ZipCodeJSON"}]},AffiliationOrganizationJSON:{type:"object",properties:{"@type":{type:"string",const:"AffiliationOrganization"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},AffiliationRoleJSON:{type:"object",properties:{"@type":{type:"string",const:"AffiliationRole"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},AffiliationUnitJSON:{type:"object",properties:{"@type":{type:"string",const:"AffiliationUnit"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},BirthCityJSON:{type:"object",properties:{value:{type:"string"},"@context":{type:"string"},"@version":{type:"string"},"@type":{type:"string",const:"BirthCity"}},required:["@type","value"],additionalProperties:!1},BirthCountryJSON:{type:"object",properties:{value:{type:"string"},"@context":{type:"string"},"@version":{type:"string"},"@type":{type:"string",const:"BirthCountry"}},required:["@type","value"],additionalProperties:!1},BirthDayJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthDay"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"number"}},required:["@type","value"],additionalProperties:!1},BirthMonthJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthMonth"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"number",enum:[1,2,3,4,5,6,7,8,9,10,11,12],description:"Month values: 1 (january) - 12 (december)"}},required:["@type","value"],additionalProperties:!1},BirthStateJSON:{type:"object",properties:{value:{type:"string"},"@context":{type:"string"},"@version":{type:"string"},"@type":{type:"string",const:"BirthState"}},required:["@type","value"],additionalProperties:!1},BirthYearJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthYear"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"number"}},required:["@type","value"],additionalProperties:!1},CityJSON:{type:"object",properties:{"@type":{type:"string",const:"City"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},CountryJSON:{type:"object",properties:{"@type":{type:"string",const:"Country"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},GivenNameJSON:{type:"object",properties:{"@type":{type:"string",const:"GivenName"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},HonorificPrefixJSON:{type:"object",properties:{"@type":{type:"string",const:"HonorificPrefix"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},HonorificSuffixJSON:{type:"object",properties:{"@type":{type:"string",const:"HonorificSuffix"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},HouseNumberJSON:{type:"object",properties:{"@type":{type:"string",const:"HouseNumber"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},MiddleNameJSON:{type:"object",properties:{"@type":{type:"string",const:"MiddleName"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},SchematizedXMLJSON:{type:"object",properties:{"@type":{type:"string",const:"SchematizedXML"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},schemaURL:{type:"string"}},required:["@type","value"],additionalProperties:!1},StateJSON:{type:"object",properties:{"@type":{type:"string",const:"State"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},StreetJSON:{type:"object",properties:{"@type":{type:"string",const:"Street"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},SurnameJSON:{type:"object",properties:{"@type":{type:"string",const:"Surname"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},ZipCodeJSON:{type:"object",properties:{"@type":{type:"string",const:"ZipCode"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},ShareAttributeRequestItemJSON:{type:"object",properties:{"@type":{type:"string",const:"ShareAttributeRequestItem"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string",description:"The human-readable title of this item."},description:{type:"string",description:"The human-readable description of this item."},metadata:{type:"object",description:"This property can be used to add some arbitrary metadata to this item. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."},mustBeAccepted:{type:"boolean",description:"If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not.\n\nCaution: this setting does not take effect in case it is inside of a {@link RequestItemGroupJSON RequestItemGroup } , which is not accepted by the recipient, since a {@link RequestItemJSON RequestItem } can only be accepted if the parent group is accepted as well."},requireManualDecision:{type:"boolean",description:"If set to `true`, it advices the recipient of this RequestItem to carefully consider their decision and especially do not decide based on some automation rules."},attribute:{anyOf:[{$ref:"#/definitions/IdentityAttributeJSON"},{$ref:"#/definitions/RelationshipAttributeJSON"}]},sourceAttributeId:{type:"string"}},required:["@type","attribute","mustBeAccepted","sourceAttributeId"],additionalProperties:!1},ProposeAttributeRequestItemJSON:{type:"object",properties:{"@type":{type:"string",const:"ProposeAttributeRequestItem"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string",description:"The human-readable title of this item."},description:{type:"string",description:"The human-readable description of this item."},metadata:{type:"object",description:"This property can be used to add some arbitrary metadata to this item. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."},mustBeAccepted:{type:"boolean",description:"If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not.\n\nCaution: this setting does not take effect in case it is inside of a {@link RequestItemGroupJSON RequestItemGroup } , which is not accepted by the recipient, since a {@link RequestItemJSON RequestItem } can only be accepted if the parent group is accepted as well."},requireManualDecision:{type:"boolean",description:"If set to `true`, it advices the recipient of this RequestItem to carefully consider their decision and especially do not decide based on some automation rules."},query:{anyOf:[{$ref:"#/definitions/IdentityAttributeQueryJSON"},{$ref:"#/definitions/RelationshipAttributeQueryJSON"},{$ref:"#/definitions/IQLQueryJSON"}]},attribute:{anyOf:[{$ref:"#/definitions/IdentityAttributeJSON"},{$ref:"#/definitions/RelationshipAttributeJSON"}]}},required:["@type","attribute","mustBeAccepted","query"],additionalProperties:!1},IdentityAttributeQueryJSON:{type:"object",properties:{"@type":{type:"string",const:"IdentityAttributeQuery"},"@context":{type:"string"},"@version":{type:"string"},valueType:{$ref:"#/definitions/AttributeValues.Identity.TypeName"},tags:{type:"array",items:{type:"string"}},validFrom:{type:"string"},validTo:{type:"string"}},required:["@type","valueType"],additionalProperties:!1},"AttributeValues.Identity.TypeName":{anyOf:[{$ref:"#/definitions/AttributeValues.Identity.Editable.TypeName"},{$ref:"#/definitions/AttributeValues.Identity.Uneditable.TypeName"}]},"AttributeValues.Identity.Editable.TypeName":{type:"string",enum:["Affiliation","BirthDate","BirthName","BirthPlace","Citizenship","CommunicationLanguage","DeliveryBoxAddress","DisplayName","EMailAddress","FaxNumber","IdentityFileReference","SchematizedXML","JobTitle","Nationality","PersonName","PhoneNumber","PostOfficeBoxAddress","Pseudonym","Sex","StreetAddress","Website"]},"AttributeValues.Identity.Uneditable.TypeName":{type:"string",enum:["AffiliationOrganization","AffiliationRole","AffiliationUnit","BirthCity","BirthCountry","BirthDay","BirthMonth","BirthState","BirthYear","City","Country","GivenName","HonorificPrefix","HonorificSuffix","HouseNumber","MiddleName","SchematizedXML","State","Street","Surname","ZipCode"]},RelationshipAttributeQueryJSON:{type:"object",properties:{"@type":{type:"string",const:"RelationshipAttributeQuery"},"@context":{type:"string"},"@version":{type:"string"},key:{type:"string"},owner:{type:"string"},attributeCreationHints:{$ref:"#/definitions/RelationshipAttributeCreationHintsJSON"},validFrom:{type:"string"},validTo:{type:"string"}},required:["@type","attributeCreationHints","key","owner"],additionalProperties:!1},RelationshipAttributeCreationHintsJSON:{type:"object",properties:{title:{type:"string"},valueType:{$ref:"#/definitions/AttributeValues.Relationship.TypeName"},description:{type:"string"},valueHints:{$ref:"#/definitions/ValueHintsJSON"},confidentiality:{$ref:"#/definitions/RelationshipAttributeConfidentiality"}},required:["title","valueType","confidentiality"],additionalProperties:!1},"AttributeValues.Relationship.TypeName":{type:"string",enum:["ProprietaryBoolean","ProprietaryCountry","ProprietaryEMailAddress","ProprietaryFileReference","ProprietaryFloat","ProprietaryHEXColor","ProprietaryInteger","ProprietaryLanguage","ProprietaryPhoneNumber","ProprietaryString","ProprietaryURL","ProprietaryJSON","ProprietaryXML","Consent"]},IQLQueryJSON:{type:"object",properties:{"@type":{type:"string",const:"IQLQuery"},"@context":{type:"string"},"@version":{type:"string"},queryString:{type:"string"},attributeCreationHints:{$ref:"#/definitions/IQLQueryCreationHintsJSON"}},required:["@type","queryString"],additionalProperties:!1},IQLQueryCreationHintsJSON:{type:"object",properties:{valueType:{$ref:"#/definitions/AttributeValues.Identity.TypeName"},tags:{type:"array",items:{type:"string"}}},required:["valueType"],additionalProperties:!1},ReadAttributeRequestItemJSON:{type:"object",properties:{"@type":{type:"string",const:"ReadAttributeRequestItem"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string",description:"The human-readable title of this item."},description:{type:"string",description:"The human-readable description of this item."},metadata:{type:"object",description:"This property can be used to add some arbitrary metadata to this item. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."},mustBeAccepted:{type:"boolean",description:"If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not.\n\nCaution: this setting does not take effect in case it is inside of a {@link RequestItemGroupJSON RequestItemGroup } , which is not accepted by the recipient, since a {@link RequestItemJSON RequestItem } can only be accepted if the parent group is accepted as well."},requireManualDecision:{type:"boolean",description:"If set to `true`, it advices the recipient of this RequestItem to carefully consider their decision and especially do not decide based on some automation rules."},query:{anyOf:[{$ref:"#/definitions/IdentityAttributeQueryJSON"},{$ref:"#/definitions/RelationshipAttributeQueryJSON"},{$ref:"#/definitions/ThirdPartyRelationshipAttributeQueryJSON"},{$ref:"#/definitions/IQLQueryJSON"}]}},required:["@type","mustBeAccepted","query"],additionalProperties:!1},ThirdPartyRelationshipAttributeQueryJSON:{type:"object",properties:{"@type":{type:"string",const:"ThirdPartyRelationshipAttributeQuery"},"@context":{type:"string"},"@version":{type:"string"},key:{type:"string"},owner:{type:"string"},thirdParty:{type:"array",items:{type:"string"}},validFrom:{type:"string"},validTo:{type:"string"}},required:["@type","key","owner","thirdParty"],additionalProperties:!1},ConsentRequestItemJSON:{type:"object",properties:{"@type":{type:"string",const:"ConsentRequestItem"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string",description:"The human-readable title of this item."},description:{type:"string",description:"The human-readable description of this item."},metadata:{type:"object",description:"This property can be used to add some arbitrary metadata to this item. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."},mustBeAccepted:{type:"boolean",description:"If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not.\n\nCaution: this setting does not take effect in case it is inside of a {@link RequestItemGroupJSON RequestItemGroup } , which is not accepted by the recipient, since a {@link RequestItemJSON RequestItem } can only be accepted if the parent group is accepted as well."},requireManualDecision:{type:"boolean",description:"If set to `true`, it advices the recipient of this RequestItem to carefully consider their decision and especially do not decide based on some automation rules."},consent:{type:"string"},link:{type:"string"}},required:["@type","consent","mustBeAccepted"],additionalProperties:!1},AuthenticationRequestItemJSON:{type:"object",properties:{"@type":{type:"string",const:"AuthenticationRequestItem"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string",description:"The human-readable title of this item."},description:{type:"string",description:"The human-readable description of this item."},metadata:{type:"object",description:"This property can be used to add some arbitrary metadata to this item. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."},mustBeAccepted:{type:"boolean",description:"If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not.\n\nCaution: this setting does not take effect in case it is inside of a {@link RequestItemGroupJSON RequestItemGroup } , which is not accepted by the recipient, since a {@link RequestItemJSON RequestItem } can only be accepted if the parent group is accepted as well."},requireManualDecision:{type:"boolean",description:"If set to `true`, it advices the recipient of this RequestItem to carefully consider their decision and especially do not decide based on some automation rules."}},required:["@type","mustBeAccepted"],additionalProperties:!1},FreeTextRequestItemJSON:{type:"object",properties:{"@type":{type:"string",const:"FreeTextRequestItem"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string",description:"The human-readable title of this item."},description:{type:"string",description:"The human-readable description of this item."},metadata:{type:"object",description:"This property can be used to add some arbitrary metadata to this item. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."},mustBeAccepted:{type:"boolean",description:"If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not.\n\nCaution: this setting does not take effect in case it is inside of a {@link RequestItemGroupJSON RequestItemGroup } , which is not accepted by the recipient, since a {@link RequestItemJSON RequestItem } can only be accepted if the parent group is accepted as well."},requireManualDecision:{type:"boolean",description:"If set to `true`, it advices the recipient of this RequestItem to carefully consider their decision and especially do not decide based on some automation rules."},freeText:{type:"string"}},required:["@type","freeText","mustBeAccepted"],additionalProperties:!1},RegisterAttributeListenerRequestItemJSON:{type:"object",properties:{"@type":{type:"string",const:"RegisterAttributeListenerRequestItem"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string",description:"The human-readable title of this item."},description:{type:"string",description:"The human-readable description of this item."},metadata:{type:"object",description:"This property can be used to add some arbitrary metadata to this item. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."},mustBeAccepted:{type:"boolean",description:"If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not.\n\nCaution: this setting does not take effect in case it is inside of a {@link RequestItemGroupJSON RequestItemGroup } , which is not accepted by the recipient, since a {@link RequestItemJSON RequestItem } can only be accepted if the parent group is accepted as well."},requireManualDecision:{type:"boolean",description:"If set to `true`, it advices the recipient of this RequestItem to carefully consider their decision and especially do not decide based on some automation rules."},query:{anyOf:[{$ref:"#/definitions/IdentityAttributeQueryJSON"},{$ref:"#/definitions/ThirdPartyRelationshipAttributeQueryJSON"}]}},required:["@type","mustBeAccepted","query"],additionalProperties:!1},AddressString:{type:"string",pattern:"id1[A-Za-z0-9]{32,33}"}}},t.RejectIncomingRequestRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/RejectIncomingRequestRequest",definitions:{RejectIncomingRequestRequest:{type:"object",additionalProperties:!1,properties:{requestId:{type:"string"},items:{type:"array",items:{anyOf:[{$ref:"#/definitions/DecideRequestItemParametersJSON"},{$ref:"#/definitions/DecideRequestItemGroupParametersJSON"}]}}},required:["items","requestId"]},DecideRequestItemParametersJSON:{anyOf:[{$ref:"#/definitions/AcceptRequestItemParametersJSON"},{$ref:"#/definitions/RejectRequestItemParametersJSON"}]},AcceptRequestItemParametersJSON:{type:"object",properties:{accept:{type:"boolean",const:!0}},required:["accept"],additionalProperties:!1},RejectRequestItemParametersJSON:{type:"object",properties:{accept:{type:"boolean",const:!1},code:{type:"string"},message:{type:"string"}},required:["accept"],additionalProperties:!1},DecideRequestItemGroupParametersJSON:{type:"object",properties:{items:{type:"array",items:{$ref:"#/definitions/DecideRequestItemParametersJSON"}}},required:["items"],additionalProperties:!1}}},t.CheckPrerequisitesOfIncomingRequestRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/CheckPrerequisitesOfIncomingRequestRequest",definitions:{CheckPrerequisitesOfIncomingRequestRequest:{type:"object",properties:{requestId:{$ref:"#/definitions/RequestIdString"}},required:["requestId"],additionalProperties:!1},RequestIdString:{type:"string",pattern:"REQ[A-Za-z0-9]{17}"}}},t.CompleteIncomingRequestRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/CompleteIncomingRequestRequest",definitions:{CompleteIncomingRequestRequest:{type:"object",properties:{requestId:{$ref:"#/definitions/RequestIdString"},responseSourceId:{anyOf:[{$ref:"#/definitions/MessageIdString"},{$ref:"#/definitions/RelationshipChangeIdString"}]}},required:["requestId"],additionalProperties:!1},RequestIdString:{type:"string",pattern:"REQ[A-Za-z0-9]{17}"},MessageIdString:{type:"string",pattern:"MSG[A-Za-z0-9]{17}"},RelationshipChangeIdString:{type:"string",pattern:"RCH[A-Za-z0-9]{17}"}}},t.CompleteOutgoingRequestRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/CompleteOutgoingRequestRequest",definitions:{CompleteOutgoingRequestRequest:{type:"object",properties:{receivedResponse:{$ref:"#/definitions/ResponseJSON"},messageId:{$ref:"#/definitions/MessageIdString"}},required:["receivedResponse","messageId"],additionalProperties:!1},ResponseJSON:{type:"object",properties:{"@type":{type:"string",const:"Response"},"@context":{type:"string"},"@version":{type:"string"},result:{$ref:"#/definitions/ResponseResult"},requestId:{type:"string"},items:{type:"array",items:{anyOf:[{$ref:"#/definitions/ResponseItemGroupJSON"},{$ref:"#/definitions/ResponseItemJSONDerivations"}]}}},required:["@type","items","requestId","result"],additionalProperties:!1},ResponseResult:{type:"string",enum:["Accepted","Rejected"]},ResponseItemGroupJSON:{type:"object",properties:{"@type":{type:"string",const:"ResponseItemGroup"},"@context":{type:"string"},"@version":{type:"string"},items:{type:"array",items:{$ref:"#/definitions/ResponseItemJSONDerivations"}}},required:["@type","items"],additionalProperties:!1},ResponseItemJSONDerivations:{anyOf:[{$ref:"#/definitions/AcceptResponseItemJSONDerivations"},{$ref:"#/definitions/RejectResponseItemJSONDerivations"},{$ref:"#/definitions/ErrorResponseItemJSONDerivations"}]},AcceptResponseItemJSONDerivations:{anyOf:[{$ref:"#/definitions/AcceptResponseItemJSON"},{$ref:"#/definitions/CreateAttributeAcceptResponseItemJSON"},{$ref:"#/definitions/ShareAttributeAcceptResponseItemJSON"},{$ref:"#/definitions/ProposeAttributeAcceptResponseItemJSON"},{$ref:"#/definitions/ReadAttributeAcceptResponseItemJSON"},{$ref:"#/definitions/RegisterAttributeListenerAcceptResponseItemJSON"},{$ref:"#/definitions/FreeTextAcceptResponseItemJSON"}]},AcceptResponseItemJSON:{type:"object",properties:{"@type":{type:"string"},"@context":{type:"string"},"@version":{type:"string"},result:{type:"string",const:"Accepted"}},required:["@type","result"],additionalProperties:!1},CreateAttributeAcceptResponseItemJSON:{type:"object",properties:{"@type":{type:"string",const:"CreateAttributeAcceptResponseItem"},"@context":{type:"string"},"@version":{type:"string"},result:{type:"string",const:"Accepted"},attributeId:{type:"string"}},required:["@type","attributeId","result"],additionalProperties:!1},ShareAttributeAcceptResponseItemJSON:{type:"object",properties:{"@type":{type:"string",const:"ShareAttributeAcceptResponseItem"},"@context":{type:"string"},"@version":{type:"string"},result:{type:"string",const:"Accepted"},attributeId:{type:"string"}},required:["@type","attributeId","result"],additionalProperties:!1},ProposeAttributeAcceptResponseItemJSON:{type:"object",properties:{"@type":{type:"string",const:"ProposeAttributeAcceptResponseItem"},"@context":{type:"string"},"@version":{type:"string"},result:{type:"string",const:"Accepted"},attributeId:{type:"string"},attribute:{anyOf:[{$ref:"#/definitions/IdentityAttributeJSON"},{$ref:"#/definitions/RelationshipAttributeJSON"}]}},required:["@type","attribute","attributeId","result"],additionalProperties:!1},IdentityAttributeJSON:{type:"object",properties:{"@type":{type:"string",const:"IdentityAttribute"},"@context":{type:"string"},"@version":{type:"string"},owner:{type:"string"},validFrom:{type:"string"},validTo:{type:"string"},value:{$ref:"#/definitions/AttributeValues.Identity.Json"},tags:{type:"array",items:{type:"string"}}},required:["@type","owner","value"],additionalProperties:!1},"AttributeValues.Identity.Json":{anyOf:[{$ref:"#/definitions/AttributeValues.Identity.Editable.Json"},{$ref:"#/definitions/AttributeValues.Identity.Uneditable.Json"}]},"AttributeValues.Identity.Editable.Json":{anyOf:[{$ref:"#/definitions/AffiliationJSON"},{$ref:"#/definitions/BirthDateJSON"},{$ref:"#/definitions/BirthNameJSON"},{$ref:"#/definitions/BirthPlaceJSON"},{$ref:"#/definitions/CitizenshipJSON"},{$ref:"#/definitions/CommunicationLanguageJSON"},{$ref:"#/definitions/DeliveryBoxAddressJSON"},{$ref:"#/definitions/DisplayNameJSON"},{$ref:"#/definitions/EMailAddressJSON"},{$ref:"#/definitions/FaxNumberJSON"},{$ref:"#/definitions/IdentityFileReferenceJSON"},{$ref:"#/definitions/JobTitleJSON"},{$ref:"#/definitions/NationalityJSON"},{$ref:"#/definitions/PersonNameJSON"},{$ref:"#/definitions/PhoneNumberJSON"},{$ref:"#/definitions/PostOfficeBoxAddressJSON"},{$ref:"#/definitions/PseudonymJSON"},{$ref:"#/definitions/SexJSON"},{$ref:"#/definitions/StreetAddressJSON"},{$ref:"#/definitions/WebsiteJSON"}]},AffiliationJSON:{type:"object",properties:{"@type":{type:"string",const:"Affiliation"},"@context":{type:"string"},"@version":{type:"string"},organization:{type:"string"},role:{type:"string"},unit:{type:"string"}},required:["@type","organization"],additionalProperties:!1},BirthDateJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthDate"},"@context":{type:"string"},"@version":{type:"string"},day:{type:"number"},month:{type:"number"},year:{type:"number"}},required:["@type","day","month","year"],additionalProperties:!1},BirthNameJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthName"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},BirthPlaceJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthPlace"},"@context":{type:"string"},"@version":{type:"string"},city:{type:"string"},country:{type:"string"},state:{type:"string"}},required:["@type","city","country"],additionalProperties:!1},CitizenshipJSON:{type:"object",properties:{"@type":{type:"string",const:"Citizenship"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},CommunicationLanguageJSON:{type:"object",properties:{"@type":{type:"string",const:"CommunicationLanguage"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},DeliveryBoxAddressJSON:{type:"object",properties:{"@type":{type:"string",const:"DeliveryBoxAddress"},"@context":{type:"string"},"@version":{type:"string"},recipient:{type:"string"},userId:{type:"string"},deliveryBoxId:{type:"string"},zipCode:{type:"string"},city:{type:"string"},country:{type:"string"},phoneNumber:{type:"string"},state:{type:"string"}},required:["@type","city","country","deliveryBoxId","recipient","userId","zipCode"],additionalProperties:!1},DisplayNameJSON:{type:"object",properties:{"@type":{type:"string",const:"DisplayName"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},EMailAddressJSON:{type:"object",properties:{"@type":{type:"string",const:"EMailAddress"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},FaxNumberJSON:{type:"object",properties:{"@type":{type:"string",const:"FaxNumber"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},IdentityFileReferenceJSON:{type:"object",properties:{"@type":{type:"string",const:"IdentityFileReference"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},JobTitleJSON:{type:"object",properties:{"@type":{type:"string",const:"JobTitle"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},NationalityJSON:{type:"object",properties:{"@type":{type:"string",const:"Nationality"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},PersonNameJSON:{type:"object",properties:{"@type":{type:"string",const:"PersonName"},"@context":{type:"string"},"@version":{type:"string"},givenName:{type:"string"},middleName:{type:"string"},surname:{type:"string"},honorificSuffix:{type:"string"},honorificPrefix:{type:"string"}},required:["@type","givenName","surname"],additionalProperties:!1},PhoneNumberJSON:{type:"object",properties:{"@type":{type:"string",const:"PhoneNumber"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},PostOfficeBoxAddressJSON:{type:"object",properties:{"@type":{type:"string",const:"PostOfficeBoxAddress"},"@context":{type:"string"},"@version":{type:"string"},recipient:{type:"string"},boxId:{type:"string"},zipCode:{type:"string"},city:{type:"string"},country:{type:"string"},state:{type:"string"}},required:["@type","boxId","city","country","recipient","zipCode"],additionalProperties:!1},PseudonymJSON:{type:"object",properties:{"@type":{type:"string",const:"Pseudonym"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},SexJSON:{type:"object",properties:{"@type":{type:"string",const:"Sex"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},StreetAddressJSON:{type:"object",properties:{"@type":{type:"string",const:"StreetAddress"},"@context":{type:"string"},"@version":{type:"string"},recipient:{type:"string"},street:{type:"string"},houseNo:{type:"string"},zipCode:{type:"string"},city:{type:"string"},country:{type:"string"},state:{type:"string"}},required:["@type","city","country","houseNo","recipient","street","zipCode"],additionalProperties:!1},WebsiteJSON:{type:"object",properties:{"@type":{type:"string",const:"Website"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},"AttributeValues.Identity.Uneditable.Json":{anyOf:[{$ref:"#/definitions/AffiliationOrganizationJSON"},{$ref:"#/definitions/AffiliationRoleJSON"},{$ref:"#/definitions/AffiliationUnitJSON"},{$ref:"#/definitions/BirthCityJSON"},{$ref:"#/definitions/BirthCountryJSON"},{$ref:"#/definitions/BirthDayJSON"},{$ref:"#/definitions/BirthMonthJSON"},{$ref:"#/definitions/BirthStateJSON"},{$ref:"#/definitions/BirthYearJSON"},{$ref:"#/definitions/CityJSON"},{$ref:"#/definitions/CountryJSON"},{$ref:"#/definitions/GivenNameJSON"},{$ref:"#/definitions/HonorificPrefixJSON"},{$ref:"#/definitions/HonorificSuffixJSON"},{$ref:"#/definitions/HouseNumberJSON"},{$ref:"#/definitions/MiddleNameJSON"},{$ref:"#/definitions/SchematizedXMLJSON"},{$ref:"#/definitions/StateJSON"},{$ref:"#/definitions/StreetJSON"},{$ref:"#/definitions/SurnameJSON"},{$ref:"#/definitions/ZipCodeJSON"}]},AffiliationOrganizationJSON:{type:"object",properties:{"@type":{type:"string",const:"AffiliationOrganization"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},AffiliationRoleJSON:{type:"object",properties:{"@type":{type:"string",const:"AffiliationRole"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},AffiliationUnitJSON:{type:"object",properties:{"@type":{type:"string",const:"AffiliationUnit"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},BirthCityJSON:{type:"object",properties:{value:{type:"string"},"@context":{type:"string"},"@version":{type:"string"},"@type":{type:"string",const:"BirthCity"}},required:["@type","value"],additionalProperties:!1},BirthCountryJSON:{type:"object",properties:{value:{type:"string"},"@context":{type:"string"},"@version":{type:"string"},"@type":{type:"string",const:"BirthCountry"}},required:["@type","value"],additionalProperties:!1},BirthDayJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthDay"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"number"}},required:["@type","value"],additionalProperties:!1},BirthMonthJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthMonth"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"number",enum:[1,2,3,4,5,6,7,8,9,10,11,12],description:"Month values: 1 (january) - 12 (december)"}},required:["@type","value"],additionalProperties:!1},BirthStateJSON:{type:"object",properties:{value:{type:"string"},"@context":{type:"string"},"@version":{type:"string"},"@type":{type:"string",const:"BirthState"}},required:["@type","value"],additionalProperties:!1},BirthYearJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthYear"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"number"}},required:["@type","value"],additionalProperties:!1},CityJSON:{type:"object",properties:{"@type":{type:"string",const:"City"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},CountryJSON:{type:"object",properties:{"@type":{type:"string",const:"Country"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},GivenNameJSON:{type:"object",properties:{"@type":{type:"string",const:"GivenName"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},HonorificPrefixJSON:{type:"object",properties:{"@type":{type:"string",const:"HonorificPrefix"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},HonorificSuffixJSON:{type:"object",properties:{"@type":{type:"string",const:"HonorificSuffix"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},HouseNumberJSON:{type:"object",properties:{"@type":{type:"string",const:"HouseNumber"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},MiddleNameJSON:{type:"object",properties:{"@type":{type:"string",const:"MiddleName"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},SchematizedXMLJSON:{type:"object",properties:{"@type":{type:"string",const:"SchematizedXML"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},schemaURL:{type:"string"}},required:["@type","value"],additionalProperties:!1},StateJSON:{type:"object",properties:{"@type":{type:"string",const:"State"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},StreetJSON:{type:"object",properties:{"@type":{type:"string",const:"Street"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},SurnameJSON:{type:"object",properties:{"@type":{type:"string",const:"Surname"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},ZipCodeJSON:{type:"object",properties:{"@type":{type:"string",const:"ZipCode"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},RelationshipAttributeJSON:{type:"object",properties:{"@type":{type:"string",const:"RelationshipAttribute"},"@context":{type:"string"},"@version":{type:"string"},owner:{type:"string"},validFrom:{type:"string"},validTo:{type:"string"},value:{$ref:"#/definitions/AttributeValues.Relationship.Json"},key:{type:"string"},isTechnical:{type:"boolean"},confidentiality:{$ref:"#/definitions/RelationshipAttributeConfidentiality"}},required:["@type","confidentiality","key","owner","value"],additionalProperties:!1},"AttributeValues.Relationship.Json":{anyOf:[{$ref:"#/definitions/ProprietaryBooleanJSON"},{$ref:"#/definitions/ProprietaryCountryJSON"},{$ref:"#/definitions/ProprietaryEMailAddressJSON"},{$ref:"#/definitions/ProprietaryFileReferenceJSON"},{$ref:"#/definitions/ProprietaryFloatJSON"},{$ref:"#/definitions/ProprietaryHEXColorJSON"},{$ref:"#/definitions/ProprietaryIntegerJSON"},{$ref:"#/definitions/ProprietaryLanguageJSON"},{$ref:"#/definitions/ProprietaryPhoneNumberJSON"},{$ref:"#/definitions/ProprietaryStringJSON"},{$ref:"#/definitions/ProprietaryURLJSON"},{$ref:"#/definitions/ProprietaryJSONJSON"},{$ref:"#/definitions/ProprietaryXMLJSON"},{$ref:"#/definitions/ConsentJSON"}]},ProprietaryBooleanJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryBoolean"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"boolean"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ValueHintsOverrideJSON:{type:"object",additionalProperties:!1,properties:{"@type":{type:"string",const:"ValueHints"},editHelp:{type:"string"},min:{type:"number"},max:{type:"number"},pattern:{type:"string"},values:{type:"array",items:{$ref:"#/definitions/ValueHintsValueJSON"}},defaultValue:{type:["string","number","boolean"]},propertyHints:{type:"object",additionalProperties:{$ref:"#/definitions/ValueHintsJSON"}},"@context":{type:"string"},"@version":{type:"string"}}},ValueHintsValueJSON:{type:"object",properties:{key:{type:["string","number","boolean"]},displayName:{type:"string"}},required:["key","displayName"],additionalProperties:!1},ValueHintsJSON:{type:"object",properties:{"@type":{type:"string",const:"ValueHints"},"@context":{type:"string"},"@version":{type:"string"},editHelp:{type:"string"},min:{type:"number"},max:{type:"number"},pattern:{type:"string"},values:{type:"array",items:{$ref:"#/definitions/ValueHintsValueJSON"}},defaultValue:{type:["string","number","boolean"]},propertyHints:{type:"object",additionalProperties:{$ref:"#/definitions/ValueHintsJSON"}}},required:["@type"],additionalProperties:!1},ProprietaryCountryJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryCountry"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryEMailAddressJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryEMailAddress"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryFileReferenceJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryFileReference"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryFloatJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryFloat"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"number"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryHEXColorJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryHEXColor"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryIntegerJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryInteger"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"number"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryLanguageJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryLanguage"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryPhoneNumberJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryPhoneNumber"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryStringJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryString"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryURLJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryURL"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryJSONJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryJSON"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string"},description:{type:"string"},value:{}},required:["@type","title","value"],additionalProperties:!1},ProprietaryXMLJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryXML"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"},schemaURL:{type:"string"}},required:["@type","title","value"],additionalProperties:!1},ConsentJSON:{type:"object",properties:{"@type":{type:"string"},"@context":{type:"string"},"@version":{type:"string"},consent:{type:"string"},link:{type:"string"}},required:["@type","consent"],additionalProperties:!1},RelationshipAttributeConfidentiality:{type:"string",enum:["public","private","protected"]},ReadAttributeAcceptResponseItemJSON:{type:"object",properties:{"@type":{type:"string",const:"ReadAttributeAcceptResponseItem"},"@context":{type:"string"},"@version":{type:"string"},result:{type:"string",const:"Accepted"},attributeId:{type:"string"},attribute:{anyOf:[{$ref:"#/definitions/IdentityAttributeJSON"},{$ref:"#/definitions/RelationshipAttributeJSON"}]}},required:["@type","attribute","attributeId","result"],additionalProperties:!1},RegisterAttributeListenerAcceptResponseItemJSON:{type:"object",properties:{"@type":{type:"string",const:"RegisterAttributeListenerAcceptResponseItem"},"@context":{type:"string"},"@version":{type:"string"},result:{type:"string",const:"Accepted"},listenerId:{type:"string"}},required:["@type","listenerId","result"],additionalProperties:!1},FreeTextAcceptResponseItemJSON:{type:"object",properties:{"@type":{type:"string",const:"FreeTextAcceptResponseItem"},"@context":{type:"string"},"@version":{type:"string"},result:{type:"string",const:"Accepted"},freeText:{type:"string"}},required:["@type","freeText","result"],additionalProperties:!1},RejectResponseItemJSONDerivations:{$ref:"#/definitions/RejectResponseItemJSON"},RejectResponseItemJSON:{type:"object",properties:{"@type":{type:"string",const:"RejectResponseItem"},"@context":{type:"string"},"@version":{type:"string"},result:{type:"string",const:"Rejected"},code:{type:"string"},message:{type:"string"}},required:["@type","result"],additionalProperties:!1},ErrorResponseItemJSONDerivations:{$ref:"#/definitions/ErrorResponseItemJSON"},ErrorResponseItemJSON:{type:"object",properties:{"@type":{type:"string",const:"ErrorResponseItem"},"@context":{type:"string"},"@version":{type:"string"},result:{type:"string",const:"Error"},code:{type:"string"},message:{type:"string"}},required:["@type","code","message","result"],additionalProperties:!1},MessageIdString:{type:"string",pattern:"MSG[A-Za-z0-9]{17}"}}},t.CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponseRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponseRequest",definitions:{CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponseRequest:{type:"object",properties:{templateId:{$ref:"#/definitions/RelationshipTemplateIdString"},responseSourceId:{anyOf:[{$ref:"#/definitions/RelationshipChangeIdString"},{$ref:"#/definitions/MessageIdString"}]},response:{$ref:"#/definitions/ResponseJSON"}},required:["templateId","responseSourceId","response"],additionalProperties:!1},RelationshipTemplateIdString:{type:"string",pattern:"RLT[A-Za-z0-9]{17}"},RelationshipChangeIdString:{type:"string",pattern:"RCH[A-Za-z0-9]{17}"},MessageIdString:{type:"string",pattern:"MSG[A-Za-z0-9]{17}"},ResponseJSON:{type:"object",properties:{"@type":{type:"string",const:"Response"},"@context":{type:"string"},"@version":{type:"string"},result:{$ref:"#/definitions/ResponseResult"},requestId:{type:"string"},items:{type:"array",items:{anyOf:[{$ref:"#/definitions/ResponseItemGroupJSON"},{$ref:"#/definitions/ResponseItemJSONDerivations"}]}}},required:["@type","items","requestId","result"],additionalProperties:!1},ResponseResult:{type:"string",enum:["Accepted","Rejected"]},ResponseItemGroupJSON:{type:"object",properties:{"@type":{type:"string",const:"ResponseItemGroup"},"@context":{type:"string"},"@version":{type:"string"},items:{type:"array",items:{$ref:"#/definitions/ResponseItemJSONDerivations"}}},required:["@type","items"],additionalProperties:!1},ResponseItemJSONDerivations:{anyOf:[{$ref:"#/definitions/AcceptResponseItemJSONDerivations"},{$ref:"#/definitions/RejectResponseItemJSONDerivations"},{$ref:"#/definitions/ErrorResponseItemJSONDerivations"}]},AcceptResponseItemJSONDerivations:{anyOf:[{$ref:"#/definitions/AcceptResponseItemJSON"},{$ref:"#/definitions/CreateAttributeAcceptResponseItemJSON"},{$ref:"#/definitions/ShareAttributeAcceptResponseItemJSON"},{$ref:"#/definitions/ProposeAttributeAcceptResponseItemJSON"},{$ref:"#/definitions/ReadAttributeAcceptResponseItemJSON"},{$ref:"#/definitions/RegisterAttributeListenerAcceptResponseItemJSON"},{$ref:"#/definitions/FreeTextAcceptResponseItemJSON"}]},AcceptResponseItemJSON:{type:"object",properties:{"@type":{type:"string"},"@context":{type:"string"},"@version":{type:"string"},result:{type:"string",const:"Accepted"}},required:["@type","result"],additionalProperties:!1},CreateAttributeAcceptResponseItemJSON:{type:"object",properties:{"@type":{type:"string",const:"CreateAttributeAcceptResponseItem"},"@context":{type:"string"},"@version":{type:"string"},result:{type:"string",const:"Accepted"},attributeId:{type:"string"}},required:["@type","attributeId","result"],additionalProperties:!1},ShareAttributeAcceptResponseItemJSON:{type:"object",properties:{"@type":{type:"string",const:"ShareAttributeAcceptResponseItem"},"@context":{type:"string"},"@version":{type:"string"},result:{type:"string",const:"Accepted"},attributeId:{type:"string"}},required:["@type","attributeId","result"],additionalProperties:!1},ProposeAttributeAcceptResponseItemJSON:{type:"object",properties:{"@type":{type:"string",const:"ProposeAttributeAcceptResponseItem"},"@context":{type:"string"},"@version":{type:"string"},result:{type:"string",const:"Accepted"},attributeId:{type:"string"},attribute:{anyOf:[{$ref:"#/definitions/IdentityAttributeJSON"},{$ref:"#/definitions/RelationshipAttributeJSON"}]}},required:["@type","attribute","attributeId","result"],additionalProperties:!1},IdentityAttributeJSON:{type:"object",properties:{"@type":{type:"string",const:"IdentityAttribute"},"@context":{type:"string"},"@version":{type:"string"},owner:{type:"string"},validFrom:{type:"string"},validTo:{type:"string"},value:{$ref:"#/definitions/AttributeValues.Identity.Json"},tags:{type:"array",items:{type:"string"}}},required:["@type","owner","value"],additionalProperties:!1},"AttributeValues.Identity.Json":{anyOf:[{$ref:"#/definitions/AttributeValues.Identity.Editable.Json"},{$ref:"#/definitions/AttributeValues.Identity.Uneditable.Json"}]},"AttributeValues.Identity.Editable.Json":{anyOf:[{$ref:"#/definitions/AffiliationJSON"},{$ref:"#/definitions/BirthDateJSON"},{$ref:"#/definitions/BirthNameJSON"},{$ref:"#/definitions/BirthPlaceJSON"},{$ref:"#/definitions/CitizenshipJSON"},{$ref:"#/definitions/CommunicationLanguageJSON"},{$ref:"#/definitions/DeliveryBoxAddressJSON"},{$ref:"#/definitions/DisplayNameJSON"},{$ref:"#/definitions/EMailAddressJSON"},{$ref:"#/definitions/FaxNumberJSON"},{$ref:"#/definitions/IdentityFileReferenceJSON"},{$ref:"#/definitions/JobTitleJSON"},{$ref:"#/definitions/NationalityJSON"},{$ref:"#/definitions/PersonNameJSON"},{$ref:"#/definitions/PhoneNumberJSON"},{$ref:"#/definitions/PostOfficeBoxAddressJSON"},{$ref:"#/definitions/PseudonymJSON"},{$ref:"#/definitions/SexJSON"},{$ref:"#/definitions/StreetAddressJSON"},{$ref:"#/definitions/WebsiteJSON"}]},AffiliationJSON:{type:"object",properties:{"@type":{type:"string",const:"Affiliation"},"@context":{type:"string"},"@version":{type:"string"},organization:{type:"string"},role:{type:"string"},unit:{type:"string"}},required:["@type","organization"],additionalProperties:!1},BirthDateJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthDate"},"@context":{type:"string"},"@version":{type:"string"},day:{type:"number"},month:{type:"number"},year:{type:"number"}},required:["@type","day","month","year"],additionalProperties:!1},BirthNameJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthName"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},BirthPlaceJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthPlace"},"@context":{type:"string"},"@version":{type:"string"},city:{type:"string"},country:{type:"string"},state:{type:"string"}},required:["@type","city","country"],additionalProperties:!1},CitizenshipJSON:{type:"object",properties:{"@type":{type:"string",const:"Citizenship"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},CommunicationLanguageJSON:{type:"object",properties:{"@type":{type:"string",const:"CommunicationLanguage"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},DeliveryBoxAddressJSON:{type:"object",properties:{"@type":{type:"string",const:"DeliveryBoxAddress"},"@context":{type:"string"},"@version":{type:"string"},recipient:{type:"string"},userId:{type:"string"},deliveryBoxId:{type:"string"},zipCode:{type:"string"},city:{type:"string"},country:{type:"string"},phoneNumber:{type:"string"},state:{type:"string"}},required:["@type","city","country","deliveryBoxId","recipient","userId","zipCode"],additionalProperties:!1},DisplayNameJSON:{type:"object",properties:{"@type":{type:"string",const:"DisplayName"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},EMailAddressJSON:{type:"object",properties:{"@type":{type:"string",const:"EMailAddress"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},FaxNumberJSON:{type:"object",properties:{"@type":{type:"string",const:"FaxNumber"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},IdentityFileReferenceJSON:{type:"object",properties:{"@type":{type:"string",const:"IdentityFileReference"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},JobTitleJSON:{type:"object",properties:{"@type":{type:"string",const:"JobTitle"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},NationalityJSON:{type:"object",properties:{"@type":{type:"string",const:"Nationality"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},PersonNameJSON:{type:"object",properties:{"@type":{type:"string",const:"PersonName"},"@context":{type:"string"},"@version":{type:"string"},givenName:{type:"string"},middleName:{type:"string"},surname:{type:"string"},honorificSuffix:{type:"string"},honorificPrefix:{type:"string"}},required:["@type","givenName","surname"],additionalProperties:!1},PhoneNumberJSON:{type:"object",properties:{"@type":{type:"string",const:"PhoneNumber"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},PostOfficeBoxAddressJSON:{type:"object",properties:{"@type":{type:"string",const:"PostOfficeBoxAddress"},"@context":{type:"string"},"@version":{type:"string"},recipient:{type:"string"},boxId:{type:"string"},zipCode:{type:"string"},city:{type:"string"},country:{type:"string"},state:{type:"string"}},required:["@type","boxId","city","country","recipient","zipCode"],additionalProperties:!1},PseudonymJSON:{type:"object",properties:{"@type":{type:"string",const:"Pseudonym"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},SexJSON:{type:"object",properties:{"@type":{type:"string",const:"Sex"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},StreetAddressJSON:{type:"object",properties:{"@type":{type:"string",const:"StreetAddress"},"@context":{type:"string"},"@version":{type:"string"},recipient:{type:"string"},street:{type:"string"},houseNo:{type:"string"},zipCode:{type:"string"},city:{type:"string"},country:{type:"string"},state:{type:"string"}},required:["@type","city","country","houseNo","recipient","street","zipCode"],additionalProperties:!1},WebsiteJSON:{type:"object",properties:{"@type":{type:"string",const:"Website"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},"AttributeValues.Identity.Uneditable.Json":{anyOf:[{$ref:"#/definitions/AffiliationOrganizationJSON"},{$ref:"#/definitions/AffiliationRoleJSON"},{$ref:"#/definitions/AffiliationUnitJSON"},{$ref:"#/definitions/BirthCityJSON"},{$ref:"#/definitions/BirthCountryJSON"},{$ref:"#/definitions/BirthDayJSON"},{$ref:"#/definitions/BirthMonthJSON"},{$ref:"#/definitions/BirthStateJSON"},{$ref:"#/definitions/BirthYearJSON"},{$ref:"#/definitions/CityJSON"},{$ref:"#/definitions/CountryJSON"},{$ref:"#/definitions/GivenNameJSON"},{$ref:"#/definitions/HonorificPrefixJSON"},{$ref:"#/definitions/HonorificSuffixJSON"},{$ref:"#/definitions/HouseNumberJSON"},{$ref:"#/definitions/MiddleNameJSON"},{$ref:"#/definitions/SchematizedXMLJSON"},{$ref:"#/definitions/StateJSON"},{$ref:"#/definitions/StreetJSON"},{$ref:"#/definitions/SurnameJSON"},{$ref:"#/definitions/ZipCodeJSON"}]},AffiliationOrganizationJSON:{type:"object",properties:{"@type":{type:"string",const:"AffiliationOrganization"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},AffiliationRoleJSON:{type:"object",properties:{"@type":{type:"string",const:"AffiliationRole"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},AffiliationUnitJSON:{type:"object",properties:{"@type":{type:"string",const:"AffiliationUnit"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},BirthCityJSON:{type:"object",properties:{value:{type:"string"},"@context":{type:"string"},"@version":{type:"string"},"@type":{type:"string",const:"BirthCity"}},required:["@type","value"],additionalProperties:!1},BirthCountryJSON:{type:"object",properties:{value:{type:"string"},"@context":{type:"string"},"@version":{type:"string"},"@type":{type:"string",const:"BirthCountry"}},required:["@type","value"],additionalProperties:!1},BirthDayJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthDay"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"number"}},required:["@type","value"],additionalProperties:!1},BirthMonthJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthMonth"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"number",enum:[1,2,3,4,5,6,7,8,9,10,11,12],description:"Month values: 1 (january) - 12 (december)"}},required:["@type","value"],additionalProperties:!1},BirthStateJSON:{type:"object",properties:{value:{type:"string"},"@context":{type:"string"},"@version":{type:"string"},"@type":{type:"string",const:"BirthState"}},required:["@type","value"],additionalProperties:!1},BirthYearJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthYear"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"number"}},required:["@type","value"],additionalProperties:!1},CityJSON:{type:"object",properties:{"@type":{type:"string",const:"City"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},CountryJSON:{type:"object",properties:{"@type":{type:"string",const:"Country"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},GivenNameJSON:{type:"object",properties:{"@type":{type:"string",const:"GivenName"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},HonorificPrefixJSON:{type:"object",properties:{"@type":{type:"string",const:"HonorificPrefix"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},HonorificSuffixJSON:{type:"object",properties:{"@type":{type:"string",const:"HonorificSuffix"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},HouseNumberJSON:{type:"object",properties:{"@type":{type:"string",const:"HouseNumber"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},MiddleNameJSON:{type:"object",properties:{"@type":{type:"string",const:"MiddleName"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},SchematizedXMLJSON:{type:"object",properties:{"@type":{type:"string",const:"SchematizedXML"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},schemaURL:{type:"string"}},required:["@type","value"],additionalProperties:!1},StateJSON:{type:"object",properties:{"@type":{type:"string",const:"State"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},StreetJSON:{type:"object",properties:{"@type":{type:"string",const:"Street"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},SurnameJSON:{type:"object",properties:{"@type":{type:"string",const:"Surname"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},ZipCodeJSON:{type:"object",properties:{"@type":{type:"string",const:"ZipCode"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},RelationshipAttributeJSON:{type:"object",properties:{"@type":{type:"string",const:"RelationshipAttribute"},"@context":{type:"string"},"@version":{type:"string"},owner:{type:"string"},validFrom:{type:"string"},validTo:{type:"string"},value:{$ref:"#/definitions/AttributeValues.Relationship.Json"},key:{type:"string"},isTechnical:{type:"boolean"},confidentiality:{$ref:"#/definitions/RelationshipAttributeConfidentiality"}},required:["@type","confidentiality","key","owner","value"],additionalProperties:!1},"AttributeValues.Relationship.Json":{anyOf:[{$ref:"#/definitions/ProprietaryBooleanJSON"},{$ref:"#/definitions/ProprietaryCountryJSON"},{$ref:"#/definitions/ProprietaryEMailAddressJSON"},{$ref:"#/definitions/ProprietaryFileReferenceJSON"},{$ref:"#/definitions/ProprietaryFloatJSON"},{$ref:"#/definitions/ProprietaryHEXColorJSON"},{$ref:"#/definitions/ProprietaryIntegerJSON"},{$ref:"#/definitions/ProprietaryLanguageJSON"},{$ref:"#/definitions/ProprietaryPhoneNumberJSON"},{$ref:"#/definitions/ProprietaryStringJSON"},{$ref:"#/definitions/ProprietaryURLJSON"},{$ref:"#/definitions/ProprietaryJSONJSON"},{$ref:"#/definitions/ProprietaryXMLJSON"},{$ref:"#/definitions/ConsentJSON"}]},ProprietaryBooleanJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryBoolean"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"boolean"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ValueHintsOverrideJSON:{type:"object",additionalProperties:!1,properties:{"@type":{type:"string",const:"ValueHints"},editHelp:{type:"string"},min:{type:"number"},max:{type:"number"},pattern:{type:"string"},values:{type:"array",items:{$ref:"#/definitions/ValueHintsValueJSON"}},defaultValue:{type:["string","number","boolean"]},propertyHints:{type:"object",additionalProperties:{$ref:"#/definitions/ValueHintsJSON"}},"@context":{type:"string"},"@version":{type:"string"}}},ValueHintsValueJSON:{type:"object",properties:{key:{type:["string","number","boolean"]},displayName:{type:"string"}},required:["key","displayName"],additionalProperties:!1},ValueHintsJSON:{type:"object",properties:{"@type":{type:"string",const:"ValueHints"},"@context":{type:"string"},"@version":{type:"string"},editHelp:{type:"string"},min:{type:"number"},max:{type:"number"},pattern:{type:"string"},values:{type:"array",items:{$ref:"#/definitions/ValueHintsValueJSON"}},defaultValue:{type:["string","number","boolean"]},propertyHints:{type:"object",additionalProperties:{$ref:"#/definitions/ValueHintsJSON"}}},required:["@type"],additionalProperties:!1},ProprietaryCountryJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryCountry"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryEMailAddressJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryEMailAddress"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryFileReferenceJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryFileReference"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryFloatJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryFloat"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"number"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryHEXColorJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryHEXColor"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryIntegerJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryInteger"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"number"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryLanguageJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryLanguage"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryPhoneNumberJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryPhoneNumber"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryStringJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryString"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryURLJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryURL"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryJSONJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryJSON"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string"},description:{type:"string"},value:{}},required:["@type","title","value"],additionalProperties:!1},ProprietaryXMLJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryXML"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"},schemaURL:{type:"string"}},required:["@type","title","value"],additionalProperties:!1},ConsentJSON:{type:"object",properties:{"@type":{type:"string"},"@context":{type:"string"},"@version":{type:"string"},consent:{type:"string"},link:{type:"string"}},required:["@type","consent"],additionalProperties:!1},RelationshipAttributeConfidentiality:{type:"string",enum:["public","private","protected"]},ReadAttributeAcceptResponseItemJSON:{type:"object",properties:{"@type":{type:"string",const:"ReadAttributeAcceptResponseItem"},"@context":{type:"string"},"@version":{type:"string"},result:{type:"string",const:"Accepted"},attributeId:{type:"string"},attribute:{anyOf:[{$ref:"#/definitions/IdentityAttributeJSON"},{$ref:"#/definitions/RelationshipAttributeJSON"}]}},required:["@type","attribute","attributeId","result"],additionalProperties:!1},RegisterAttributeListenerAcceptResponseItemJSON:{type:"object",properties:{"@type":{type:"string",const:"RegisterAttributeListenerAcceptResponseItem"},"@context":{type:"string"},"@version":{type:"string"},result:{type:"string",const:"Accepted"},listenerId:{type:"string"}},required:["@type","listenerId","result"],additionalProperties:!1},FreeTextAcceptResponseItemJSON:{type:"object",properties:{"@type":{type:"string",const:"FreeTextAcceptResponseItem"},"@context":{type:"string"},"@version":{type:"string"},result:{type:"string",const:"Accepted"},freeText:{type:"string"}},required:["@type","freeText","result"],additionalProperties:!1},RejectResponseItemJSONDerivations:{$ref:"#/definitions/RejectResponseItemJSON"},RejectResponseItemJSON:{type:"object",properties:{"@type":{type:"string",const:"RejectResponseItem"},"@context":{type:"string"},"@version":{type:"string"},result:{type:"string",const:"Rejected"},code:{type:"string"},message:{type:"string"}},required:["@type","result"],additionalProperties:!1},ErrorResponseItemJSONDerivations:{$ref:"#/definitions/ErrorResponseItemJSON"},ErrorResponseItemJSON:{type:"object",properties:{"@type":{type:"string",const:"ErrorResponseItem"},"@context":{type:"string"},"@version":{type:"string"},result:{type:"string",const:"Error"},code:{type:"string"},message:{type:"string"}},required:["@type","code","message","result"],additionalProperties:!1}}},t.CreateOutgoingRequestRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/CreateOutgoingRequestRequest",definitions:{CreateOutgoingRequestRequest:{type:"object",properties:{content:{type:"object",properties:{expiresAt:{type:"string",description:"The point in time the request is considered obsolete either technically (e.g. the request is no longer valid or its response is no longer accepted) or from a business perspective (e.g. the request is no longer of interest).",default:"undefined - the request won't expire"},items:{type:"array",items:{anyOf:[{$ref:"#/definitions/RequestItemGroupJSON"},{$ref:"#/definitions/RequestItemJSONDerivations"}]},description:"The items of the Request. Can be either a single {@link RequestItemJSONDerivations RequestItem } or a {@link RequestItemGroupJSON RequestItemGroup } , which itself can contain further {@link RequestItemJSONDerivations RequestItems } ."},title:{type:"string",description:"The human-readable title of this Request."},description:{type:"string",description:"The human-readable description of this Request."},metadata:{type:"object",description:"This property can be used to add some arbitrary metadata to this request. The content of this property will be copied into the response on the side of the recipient."},"@context":{type:"string"}},required:["items"],additionalProperties:!1},peer:{$ref:"#/definitions/AddressString"}},required:["content","peer"],additionalProperties:!1},RequestItemGroupJSON:{type:"object",properties:{"@type":{type:"string",const:"RequestItemGroup"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string",description:"The human-readable title of this group."},description:{type:"string",description:"The human-readable description of this group."},mustBeAccepted:{type:"boolean",description:"If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not."},metadata:{type:"object",description:"This property can be used to add some arbitrary metadata to this group. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."},items:{type:"array",items:{$ref:"#/definitions/RequestItemJSONDerivations"},description:"The items of this group."}},required:["@type","items","mustBeAccepted"],additionalProperties:!1,description:"A RequestItemGroup can be used to group one or more RequestItems. This is useful if you want to\n* make sure that the items in the group can only be accepted together\n\n Example: when sending a `CreateRelationshipAttributeRequestItem` **and** a `ShareAttributeRequestItem` in a single Request where the latter one targets an attribute created by the first one, it it should be impossible to reject the first item, while accepting the second one.\n* visually group items on the UI and give the a common title/description"},RequestItemJSONDerivations:{anyOf:[{$ref:"#/definitions/RequestItemJSON"},{$ref:"#/definitions/CreateAttributeRequestItemJSON"},{$ref:"#/definitions/ShareAttributeRequestItemJSON"},{$ref:"#/definitions/ProposeAttributeRequestItemJSON"},{$ref:"#/definitions/ReadAttributeRequestItemJSON"},{$ref:"#/definitions/ConsentRequestItemJSON"},{$ref:"#/definitions/AuthenticationRequestItemJSON"},{$ref:"#/definitions/FreeTextRequestItemJSON"},{$ref:"#/definitions/RegisterAttributeListenerRequestItemJSON"}]},RequestItemJSON:{type:"object",properties:{"@type":{type:"string"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string",description:"The human-readable title of this item."},description:{type:"string",description:"The human-readable description of this item."},metadata:{type:"object",description:"This property can be used to add some arbitrary metadata to this item. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."},mustBeAccepted:{type:"boolean",description:"If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not.\n\nCaution: this setting does not take effect in case it is inside of a {@link RequestItemGroupJSON RequestItemGroup } , which is not accepted by the recipient, since a {@link RequestItemJSON RequestItem } can only be accepted if the parent group is accepted as well."},requireManualDecision:{type:"boolean",description:"If set to `true`, it advices the recipient of this RequestItem to carefully consider their decision and especially do not decide based on some automation rules."}},required:["@type","mustBeAccepted"],additionalProperties:!1},CreateAttributeRequestItemJSON:{type:"object",properties:{"@type":{type:"string",const:"CreateAttributeRequestItem"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string",description:"The human-readable title of this item."},description:{type:"string",description:"The human-readable description of this item."},metadata:{type:"object",description:"This property can be used to add some arbitrary metadata to this item. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."},mustBeAccepted:{type:"boolean",description:"If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not.\n\nCaution: this setting does not take effect in case it is inside of a {@link RequestItemGroupJSON RequestItemGroup } , which is not accepted by the recipient, since a {@link RequestItemJSON RequestItem } can only be accepted if the parent group is accepted as well."},requireManualDecision:{type:"boolean",description:"If set to `true`, it advices the recipient of this RequestItem to carefully consider their decision and especially do not decide based on some automation rules."},attribute:{anyOf:[{$ref:"#/definitions/RelationshipAttributeJSON"},{$ref:"#/definitions/IdentityAttributeJSON"}]}},required:["@type","attribute","mustBeAccepted"],additionalProperties:!1},RelationshipAttributeJSON:{type:"object",properties:{"@type":{type:"string",const:"RelationshipAttribute"},"@context":{type:"string"},"@version":{type:"string"},owner:{type:"string"},validFrom:{type:"string"},validTo:{type:"string"},value:{$ref:"#/definitions/AttributeValues.Relationship.Json"},key:{type:"string"},isTechnical:{type:"boolean"},confidentiality:{$ref:"#/definitions/RelationshipAttributeConfidentiality"}},required:["@type","confidentiality","key","owner","value"],additionalProperties:!1},"AttributeValues.Relationship.Json":{anyOf:[{$ref:"#/definitions/ProprietaryBooleanJSON"},{$ref:"#/definitions/ProprietaryCountryJSON"},{$ref:"#/definitions/ProprietaryEMailAddressJSON"},{$ref:"#/definitions/ProprietaryFileReferenceJSON"},{$ref:"#/definitions/ProprietaryFloatJSON"},{$ref:"#/definitions/ProprietaryHEXColorJSON"},{$ref:"#/definitions/ProprietaryIntegerJSON"},{$ref:"#/definitions/ProprietaryLanguageJSON"},{$ref:"#/definitions/ProprietaryPhoneNumberJSON"},{$ref:"#/definitions/ProprietaryStringJSON"},{$ref:"#/definitions/ProprietaryURLJSON"},{$ref:"#/definitions/ProprietaryJSONJSON"},{$ref:"#/definitions/ProprietaryXMLJSON"},{$ref:"#/definitions/ConsentJSON"}]},ProprietaryBooleanJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryBoolean"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"boolean"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ValueHintsOverrideJSON:{type:"object",additionalProperties:!1,properties:{"@type":{type:"string",const:"ValueHints"},editHelp:{type:"string"},min:{type:"number"},max:{type:"number"},pattern:{type:"string"},values:{type:"array",items:{$ref:"#/definitions/ValueHintsValueJSON"}},defaultValue:{type:["string","number","boolean"]},propertyHints:{type:"object",additionalProperties:{$ref:"#/definitions/ValueHintsJSON"}},"@context":{type:"string"},"@version":{type:"string"}}},ValueHintsValueJSON:{type:"object",properties:{key:{type:["string","number","boolean"]},displayName:{type:"string"}},required:["key","displayName"],additionalProperties:!1},ValueHintsJSON:{type:"object",properties:{"@type":{type:"string",const:"ValueHints"},"@context":{type:"string"},"@version":{type:"string"},editHelp:{type:"string"},min:{type:"number"},max:{type:"number"},pattern:{type:"string"},values:{type:"array",items:{$ref:"#/definitions/ValueHintsValueJSON"}},defaultValue:{type:["string","number","boolean"]},propertyHints:{type:"object",additionalProperties:{$ref:"#/definitions/ValueHintsJSON"}}},required:["@type"],additionalProperties:!1},ProprietaryCountryJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryCountry"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryEMailAddressJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryEMailAddress"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryFileReferenceJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryFileReference"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryFloatJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryFloat"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"number"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryHEXColorJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryHEXColor"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryIntegerJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryInteger"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"number"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryLanguageJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryLanguage"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryPhoneNumberJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryPhoneNumber"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryStringJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryString"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryURLJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryURL"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryJSONJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryJSON"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string"},description:{type:"string"},value:{}},required:["@type","title","value"],additionalProperties:!1},ProprietaryXMLJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryXML"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"},schemaURL:{type:"string"}},required:["@type","title","value"],additionalProperties:!1},ConsentJSON:{type:"object",properties:{"@type":{type:"string"},"@context":{type:"string"},"@version":{type:"string"},consent:{type:"string"},link:{type:"string"}},required:["@type","consent"],additionalProperties:!1},RelationshipAttributeConfidentiality:{type:"string",enum:["public","private","protected"]},IdentityAttributeJSON:{type:"object",properties:{"@type":{type:"string",const:"IdentityAttribute"},"@context":{type:"string"},"@version":{type:"string"},owner:{type:"string"},validFrom:{type:"string"},validTo:{type:"string"},value:{$ref:"#/definitions/AttributeValues.Identity.Json"},tags:{type:"array",items:{type:"string"}}},required:["@type","owner","value"],additionalProperties:!1},"AttributeValues.Identity.Json":{anyOf:[{$ref:"#/definitions/AttributeValues.Identity.Editable.Json"},{$ref:"#/definitions/AttributeValues.Identity.Uneditable.Json"}]},"AttributeValues.Identity.Editable.Json":{anyOf:[{$ref:"#/definitions/AffiliationJSON"},{$ref:"#/definitions/BirthDateJSON"},{$ref:"#/definitions/BirthNameJSON"},{$ref:"#/definitions/BirthPlaceJSON"},{$ref:"#/definitions/CitizenshipJSON"},{$ref:"#/definitions/CommunicationLanguageJSON"},{$ref:"#/definitions/DeliveryBoxAddressJSON"},{$ref:"#/definitions/DisplayNameJSON"},{$ref:"#/definitions/EMailAddressJSON"},{$ref:"#/definitions/FaxNumberJSON"},{$ref:"#/definitions/IdentityFileReferenceJSON"},{$ref:"#/definitions/JobTitleJSON"},{$ref:"#/definitions/NationalityJSON"},{$ref:"#/definitions/PersonNameJSON"},{$ref:"#/definitions/PhoneNumberJSON"},{$ref:"#/definitions/PostOfficeBoxAddressJSON"},{$ref:"#/definitions/PseudonymJSON"},{$ref:"#/definitions/SexJSON"},{$ref:"#/definitions/StreetAddressJSON"},{$ref:"#/definitions/WebsiteJSON"}]},AffiliationJSON:{type:"object",properties:{"@type":{type:"string",const:"Affiliation"},"@context":{type:"string"},"@version":{type:"string"},organization:{type:"string"},role:{type:"string"},unit:{type:"string"}},required:["@type","organization"],additionalProperties:!1},BirthDateJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthDate"},"@context":{type:"string"},"@version":{type:"string"},day:{type:"number"},month:{type:"number"},year:{type:"number"}},required:["@type","day","month","year"],additionalProperties:!1},BirthNameJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthName"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},BirthPlaceJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthPlace"},"@context":{type:"string"},"@version":{type:"string"},city:{type:"string"},country:{type:"string"},state:{type:"string"}},required:["@type","city","country"],additionalProperties:!1},CitizenshipJSON:{type:"object",properties:{"@type":{type:"string",const:"Citizenship"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},CommunicationLanguageJSON:{type:"object",properties:{"@type":{type:"string",const:"CommunicationLanguage"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},DeliveryBoxAddressJSON:{type:"object",properties:{"@type":{type:"string",const:"DeliveryBoxAddress"},"@context":{type:"string"},"@version":{type:"string"},recipient:{type:"string"},userId:{type:"string"},deliveryBoxId:{type:"string"},zipCode:{type:"string"},city:{type:"string"},country:{type:"string"},phoneNumber:{type:"string"},state:{type:"string"}},required:["@type","city","country","deliveryBoxId","recipient","userId","zipCode"],additionalProperties:!1},DisplayNameJSON:{type:"object",properties:{"@type":{type:"string",const:"DisplayName"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},EMailAddressJSON:{type:"object",properties:{"@type":{type:"string",const:"EMailAddress"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},FaxNumberJSON:{type:"object",properties:{"@type":{type:"string",const:"FaxNumber"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},IdentityFileReferenceJSON:{type:"object",properties:{"@type":{type:"string",const:"IdentityFileReference"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},JobTitleJSON:{type:"object",properties:{"@type":{type:"string",const:"JobTitle"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},NationalityJSON:{type:"object",properties:{"@type":{type:"string",const:"Nationality"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},PersonNameJSON:{type:"object",properties:{"@type":{type:"string",const:"PersonName"},"@context":{type:"string"},"@version":{type:"string"},givenName:{type:"string"},middleName:{type:"string"},surname:{type:"string"},honorificSuffix:{type:"string"},honorificPrefix:{type:"string"}},required:["@type","givenName","surname"],additionalProperties:!1},PhoneNumberJSON:{type:"object",properties:{"@type":{type:"string",const:"PhoneNumber"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},PostOfficeBoxAddressJSON:{type:"object",properties:{"@type":{type:"string",const:"PostOfficeBoxAddress"},"@context":{type:"string"},"@version":{type:"string"},recipient:{type:"string"},boxId:{type:"string"},zipCode:{type:"string"},city:{type:"string"},country:{type:"string"},state:{type:"string"}},required:["@type","boxId","city","country","recipient","zipCode"],additionalProperties:!1},PseudonymJSON:{type:"object",properties:{"@type":{type:"string",const:"Pseudonym"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},SexJSON:{type:"object",properties:{"@type":{type:"string",const:"Sex"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},StreetAddressJSON:{type:"object",properties:{"@type":{type:"string",const:"StreetAddress"},"@context":{type:"string"},"@version":{type:"string"},recipient:{type:"string"},street:{type:"string"},houseNo:{type:"string"},zipCode:{type:"string"},city:{type:"string"},country:{type:"string"},state:{type:"string"}},required:["@type","city","country","houseNo","recipient","street","zipCode"],additionalProperties:!1},WebsiteJSON:{type:"object",properties:{"@type":{type:"string",const:"Website"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},"AttributeValues.Identity.Uneditable.Json":{anyOf:[{$ref:"#/definitions/AffiliationOrganizationJSON"},{$ref:"#/definitions/AffiliationRoleJSON"},{$ref:"#/definitions/AffiliationUnitJSON"},{$ref:"#/definitions/BirthCityJSON"},{$ref:"#/definitions/BirthCountryJSON"},{$ref:"#/definitions/BirthDayJSON"},{$ref:"#/definitions/BirthMonthJSON"},{$ref:"#/definitions/BirthStateJSON"},{$ref:"#/definitions/BirthYearJSON"},{$ref:"#/definitions/CityJSON"},{$ref:"#/definitions/CountryJSON"},{$ref:"#/definitions/GivenNameJSON"},{$ref:"#/definitions/HonorificPrefixJSON"},{$ref:"#/definitions/HonorificSuffixJSON"},{$ref:"#/definitions/HouseNumberJSON"},{$ref:"#/definitions/MiddleNameJSON"},{$ref:"#/definitions/SchematizedXMLJSON"},{$ref:"#/definitions/StateJSON"},{$ref:"#/definitions/StreetJSON"},{$ref:"#/definitions/SurnameJSON"},{$ref:"#/definitions/ZipCodeJSON"}]},AffiliationOrganizationJSON:{type:"object",properties:{"@type":{type:"string",const:"AffiliationOrganization"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},AffiliationRoleJSON:{type:"object",properties:{"@type":{type:"string",const:"AffiliationRole"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},AffiliationUnitJSON:{type:"object",properties:{"@type":{type:"string",const:"AffiliationUnit"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},BirthCityJSON:{type:"object",properties:{value:{type:"string"},"@context":{type:"string"},"@version":{type:"string"},"@type":{type:"string",const:"BirthCity"}},required:["@type","value"],additionalProperties:!1},BirthCountryJSON:{type:"object",properties:{value:{type:"string"},"@context":{type:"string"},"@version":{type:"string"},"@type":{type:"string",const:"BirthCountry"}},required:["@type","value"],additionalProperties:!1},BirthDayJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthDay"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"number"}},required:["@type","value"],additionalProperties:!1},BirthMonthJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthMonth"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"number",enum:[1,2,3,4,5,6,7,8,9,10,11,12],description:"Month values: 1 (january) - 12 (december)"}},required:["@type","value"],additionalProperties:!1},BirthStateJSON:{type:"object",properties:{value:{type:"string"},"@context":{type:"string"},"@version":{type:"string"},"@type":{type:"string",const:"BirthState"}},required:["@type","value"],additionalProperties:!1},BirthYearJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthYear"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"number"}},required:["@type","value"],additionalProperties:!1},CityJSON:{type:"object",properties:{"@type":{type:"string",const:"City"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},CountryJSON:{type:"object",properties:{"@type":{type:"string",const:"Country"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},GivenNameJSON:{type:"object",properties:{"@type":{type:"string",const:"GivenName"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},HonorificPrefixJSON:{type:"object",properties:{"@type":{type:"string",const:"HonorificPrefix"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},HonorificSuffixJSON:{type:"object",properties:{"@type":{type:"string",const:"HonorificSuffix"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},HouseNumberJSON:{type:"object",properties:{"@type":{type:"string",const:"HouseNumber"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},MiddleNameJSON:{type:"object",properties:{"@type":{type:"string",const:"MiddleName"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},SchematizedXMLJSON:{type:"object",properties:{"@type":{type:"string",const:"SchematizedXML"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},schemaURL:{type:"string"}},required:["@type","value"],additionalProperties:!1},StateJSON:{type:"object",properties:{"@type":{type:"string",const:"State"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},StreetJSON:{type:"object",properties:{"@type":{type:"string",const:"Street"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},SurnameJSON:{type:"object",properties:{"@type":{type:"string",const:"Surname"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},ZipCodeJSON:{type:"object",properties:{"@type":{type:"string",const:"ZipCode"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},ShareAttributeRequestItemJSON:{type:"object",properties:{"@type":{type:"string",const:"ShareAttributeRequestItem"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string",description:"The human-readable title of this item."},description:{type:"string",description:"The human-readable description of this item."},metadata:{type:"object",description:"This property can be used to add some arbitrary metadata to this item. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."},mustBeAccepted:{type:"boolean",description:"If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not.\n\nCaution: this setting does not take effect in case it is inside of a {@link RequestItemGroupJSON RequestItemGroup } , which is not accepted by the recipient, since a {@link RequestItemJSON RequestItem } can only be accepted if the parent group is accepted as well."},requireManualDecision:{type:"boolean",description:"If set to `true`, it advices the recipient of this RequestItem to carefully consider their decision and especially do not decide based on some automation rules."},attribute:{anyOf:[{$ref:"#/definitions/IdentityAttributeJSON"},{$ref:"#/definitions/RelationshipAttributeJSON"}]},sourceAttributeId:{type:"string"}},required:["@type","attribute","mustBeAccepted","sourceAttributeId"],additionalProperties:!1},ProposeAttributeRequestItemJSON:{type:"object",properties:{"@type":{type:"string",const:"ProposeAttributeRequestItem"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string",description:"The human-readable title of this item."},description:{type:"string",description:"The human-readable description of this item."},metadata:{type:"object",description:"This property can be used to add some arbitrary metadata to this item. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."},mustBeAccepted:{type:"boolean",description:"If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not.\n\nCaution: this setting does not take effect in case it is inside of a {@link RequestItemGroupJSON RequestItemGroup } , which is not accepted by the recipient, since a {@link RequestItemJSON RequestItem } can only be accepted if the parent group is accepted as well."},requireManualDecision:{type:"boolean",description:"If set to `true`, it advices the recipient of this RequestItem to carefully consider their decision and especially do not decide based on some automation rules."},query:{anyOf:[{$ref:"#/definitions/IdentityAttributeQueryJSON"},{$ref:"#/definitions/RelationshipAttributeQueryJSON"},{$ref:"#/definitions/IQLQueryJSON"}]},attribute:{anyOf:[{$ref:"#/definitions/IdentityAttributeJSON"},{$ref:"#/definitions/RelationshipAttributeJSON"}]}},required:["@type","attribute","mustBeAccepted","query"],additionalProperties:!1},IdentityAttributeQueryJSON:{type:"object",properties:{"@type":{type:"string",const:"IdentityAttributeQuery"},"@context":{type:"string"},"@version":{type:"string"},valueType:{$ref:"#/definitions/AttributeValues.Identity.TypeName"},tags:{type:"array",items:{type:"string"}},validFrom:{type:"string"},validTo:{type:"string"}},required:["@type","valueType"],additionalProperties:!1},"AttributeValues.Identity.TypeName":{anyOf:[{$ref:"#/definitions/AttributeValues.Identity.Editable.TypeName"},{$ref:"#/definitions/AttributeValues.Identity.Uneditable.TypeName"}]},"AttributeValues.Identity.Editable.TypeName":{type:"string",enum:["Affiliation","BirthDate","BirthName","BirthPlace","Citizenship","CommunicationLanguage","DeliveryBoxAddress","DisplayName","EMailAddress","FaxNumber","IdentityFileReference","SchematizedXML","JobTitle","Nationality","PersonName","PhoneNumber","PostOfficeBoxAddress","Pseudonym","Sex","StreetAddress","Website"]},"AttributeValues.Identity.Uneditable.TypeName":{type:"string",enum:["AffiliationOrganization","AffiliationRole","AffiliationUnit","BirthCity","BirthCountry","BirthDay","BirthMonth","BirthState","BirthYear","City","Country","GivenName","HonorificPrefix","HonorificSuffix","HouseNumber","MiddleName","SchematizedXML","State","Street","Surname","ZipCode"]},RelationshipAttributeQueryJSON:{type:"object",properties:{"@type":{type:"string",const:"RelationshipAttributeQuery"},"@context":{type:"string"},"@version":{type:"string"},key:{type:"string"},owner:{type:"string"},attributeCreationHints:{$ref:"#/definitions/RelationshipAttributeCreationHintsJSON"},validFrom:{type:"string"},validTo:{type:"string"}},required:["@type","attributeCreationHints","key","owner"],additionalProperties:!1},RelationshipAttributeCreationHintsJSON:{type:"object",properties:{title:{type:"string"},valueType:{$ref:"#/definitions/AttributeValues.Relationship.TypeName"},description:{type:"string"},valueHints:{$ref:"#/definitions/ValueHintsJSON"},confidentiality:{$ref:"#/definitions/RelationshipAttributeConfidentiality"}},required:["title","valueType","confidentiality"],additionalProperties:!1},"AttributeValues.Relationship.TypeName":{type:"string",enum:["ProprietaryBoolean","ProprietaryCountry","ProprietaryEMailAddress","ProprietaryFileReference","ProprietaryFloat","ProprietaryHEXColor","ProprietaryInteger","ProprietaryLanguage","ProprietaryPhoneNumber","ProprietaryString","ProprietaryURL","ProprietaryJSON","ProprietaryXML","Consent"]},IQLQueryJSON:{type:"object",properties:{"@type":{type:"string",const:"IQLQuery"},"@context":{type:"string"},"@version":{type:"string"},queryString:{type:"string"},attributeCreationHints:{$ref:"#/definitions/IQLQueryCreationHintsJSON"}},required:["@type","queryString"],additionalProperties:!1},IQLQueryCreationHintsJSON:{type:"object",properties:{valueType:{$ref:"#/definitions/AttributeValues.Identity.TypeName"},tags:{type:"array",items:{type:"string"}}},required:["valueType"],additionalProperties:!1},ReadAttributeRequestItemJSON:{type:"object",properties:{"@type":{type:"string",const:"ReadAttributeRequestItem"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string",description:"The human-readable title of this item."},description:{type:"string",description:"The human-readable description of this item."},metadata:{type:"object",description:"This property can be used to add some arbitrary metadata to this item. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."},mustBeAccepted:{type:"boolean",description:"If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not.\n\nCaution: this setting does not take effect in case it is inside of a {@link RequestItemGroupJSON RequestItemGroup } , which is not accepted by the recipient, since a {@link RequestItemJSON RequestItem } can only be accepted if the parent group is accepted as well."},requireManualDecision:{type:"boolean",description:"If set to `true`, it advices the recipient of this RequestItem to carefully consider their decision and especially do not decide based on some automation rules."},query:{anyOf:[{$ref:"#/definitions/IdentityAttributeQueryJSON"},{$ref:"#/definitions/RelationshipAttributeQueryJSON"},{$ref:"#/definitions/ThirdPartyRelationshipAttributeQueryJSON"},{$ref:"#/definitions/IQLQueryJSON"}]}},required:["@type","mustBeAccepted","query"],additionalProperties:!1},ThirdPartyRelationshipAttributeQueryJSON:{type:"object",properties:{"@type":{type:"string",const:"ThirdPartyRelationshipAttributeQuery"},"@context":{type:"string"},"@version":{type:"string"},key:{type:"string"},owner:{type:"string"},thirdParty:{type:"array",items:{type:"string"}},validFrom:{type:"string"},validTo:{type:"string"}},required:["@type","key","owner","thirdParty"],additionalProperties:!1},ConsentRequestItemJSON:{type:"object",properties:{"@type":{type:"string",const:"ConsentRequestItem"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string",description:"The human-readable title of this item."},description:{type:"string",description:"The human-readable description of this item."},metadata:{type:"object",description:"This property can be used to add some arbitrary metadata to this item. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."},mustBeAccepted:{type:"boolean",description:"If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not.\n\nCaution: this setting does not take effect in case it is inside of a {@link RequestItemGroupJSON RequestItemGroup } , which is not accepted by the recipient, since a {@link RequestItemJSON RequestItem } can only be accepted if the parent group is accepted as well."},requireManualDecision:{type:"boolean",description:"If set to `true`, it advices the recipient of this RequestItem to carefully consider their decision and especially do not decide based on some automation rules."},consent:{type:"string"},link:{type:"string"}},required:["@type","consent","mustBeAccepted"],additionalProperties:!1},AuthenticationRequestItemJSON:{type:"object",properties:{"@type":{type:"string",const:"AuthenticationRequestItem"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string",description:"The human-readable title of this item."},description:{type:"string",description:"The human-readable description of this item."},metadata:{type:"object",description:"This property can be used to add some arbitrary metadata to this item. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."},mustBeAccepted:{type:"boolean",description:"If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not.\n\nCaution: this setting does not take effect in case it is inside of a {@link RequestItemGroupJSON RequestItemGroup } , which is not accepted by the recipient, since a {@link RequestItemJSON RequestItem } can only be accepted if the parent group is accepted as well."},requireManualDecision:{type:"boolean",description:"If set to `true`, it advices the recipient of this RequestItem to carefully consider their decision and especially do not decide based on some automation rules."}},required:["@type","mustBeAccepted"],additionalProperties:!1},FreeTextRequestItemJSON:{type:"object",properties:{"@type":{type:"string",const:"FreeTextRequestItem"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string",description:"The human-readable title of this item."},description:{type:"string",description:"The human-readable description of this item."},metadata:{type:"object",description:"This property can be used to add some arbitrary metadata to this item. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."},mustBeAccepted:{type:"boolean",description:"If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not.\n\nCaution: this setting does not take effect in case it is inside of a {@link RequestItemGroupJSON RequestItemGroup } , which is not accepted by the recipient, since a {@link RequestItemJSON RequestItem } can only be accepted if the parent group is accepted as well."},requireManualDecision:{type:"boolean",description:"If set to `true`, it advices the recipient of this RequestItem to carefully consider their decision and especially do not decide based on some automation rules."},freeText:{type:"string"}},required:["@type","freeText","mustBeAccepted"],additionalProperties:!1},RegisterAttributeListenerRequestItemJSON:{type:"object",properties:{"@type":{type:"string",const:"RegisterAttributeListenerRequestItem"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string",description:"The human-readable title of this item."},description:{type:"string",description:"The human-readable description of this item."},metadata:{type:"object",description:"This property can be used to add some arbitrary metadata to this item. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."},mustBeAccepted:{type:"boolean",description:"If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not.\n\nCaution: this setting does not take effect in case it is inside of a {@link RequestItemGroupJSON RequestItemGroup } , which is not accepted by the recipient, since a {@link RequestItemJSON RequestItem } can only be accepted if the parent group is accepted as well."},requireManualDecision:{type:"boolean",description:"If set to `true`, it advices the recipient of this RequestItem to carefully consider their decision and especially do not decide based on some automation rules."},query:{anyOf:[{$ref:"#/definitions/IdentityAttributeQueryJSON"},{$ref:"#/definitions/ThirdPartyRelationshipAttributeQueryJSON"}]}},required:["@type","mustBeAccepted","query"],additionalProperties:!1},AddressString:{type:"string",pattern:"id1[A-Za-z0-9]{32,33}"}}},t.DiscardOutgoingRequestRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/DiscardOutgoingRequestRequest",definitions:{DiscardOutgoingRequestRequest:{type:"object",properties:{id:{$ref:"#/definitions/RequestIdString"}},required:["id"],additionalProperties:!1},RequestIdString:{type:"string",pattern:"REQ[A-Za-z0-9]{17}"}}},t.GetIncomingRequestRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetIncomingRequestRequest",definitions:{GetIncomingRequestRequest:{type:"object",properties:{id:{$ref:"#/definitions/RequestIdString"}},required:["id"],additionalProperties:!1},RequestIdString:{type:"string",pattern:"REQ[A-Za-z0-9]{17}"}}},t.GetIncomingRequestsRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetIncomingRequestsRequest",definitions:{GetIncomingRequestsRequest:{type:"object",properties:{query:{$ref:"#/definitions/GetIncomingRequestsRequestQuery"}},additionalProperties:!1},GetIncomingRequestsRequestQuery:{type:"object",properties:{id:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},peer:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},createdAt:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},status:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"content.expiresAt":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"content.items.@type":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"source.type":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"source.reference":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"response.createdAt":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"response.source.type":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"response.source.reference":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"response.content.result":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"response.content.items.@type":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"response.content.items.items.@type":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}},additionalProperties:!1}}},t.GetOutgoingRequestRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetOutgoingRequestRequest",definitions:{GetOutgoingRequestRequest:{type:"object",properties:{id:{$ref:"#/definitions/RequestIdString"}},required:["id"],additionalProperties:!1},RequestIdString:{type:"string",pattern:"REQ[A-Za-z0-9]{17}"}}},t.GetOutgoingRequestsRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetOutgoingRequestsRequest",definitions:{GetOutgoingRequestsRequest:{type:"object",properties:{query:{$ref:"#/definitions/GetOutgoingRequestsRequestQuery"}},additionalProperties:!1},GetOutgoingRequestsRequestQuery:{type:"object",properties:{id:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},peer:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},createdAt:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},status:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"content.expiresAt":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"content.items.@type":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"source.type":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"source.reference":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"response.createdAt":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"response.source.type":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"response.source.reference":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"response.content.result":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"response.content.items.@type":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"response.content.items.items.@type":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}},additionalProperties:!1}}},t.ReceivedIncomingRequestRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/ReceivedIncomingRequestRequest",definitions:{ReceivedIncomingRequestRequest:{type:"object",properties:{receivedRequest:{$ref:"#/definitions/RequestJSON"},requestSourceId:{anyOf:[{$ref:"#/definitions/MessageIdString"},{$ref:"#/definitions/RelationshipTemplateIdString"}]}},required:["receivedRequest","requestSourceId"],additionalProperties:!1},RequestJSON:{type:"object",properties:{"@type":{type:"string",const:"Request"},"@context":{type:"string"},"@version":{type:"string"},id:{type:"string"},expiresAt:{type:"string",description:"The point in time the request is considered obsolete either technically (e.g. the request is no longer valid or its response is no longer accepted) or from a business perspective (e.g. the request is no longer of interest).",default:"undefined - the request won't expire"},items:{type:"array",items:{anyOf:[{$ref:"#/definitions/RequestItemGroupJSON"},{$ref:"#/definitions/RequestItemJSONDerivations"}]},description:"The items of the Request. Can be either a single {@link RequestItemJSONDerivations RequestItem } or a {@link RequestItemGroupJSON RequestItemGroup } , which itself can contain further {@link RequestItemJSONDerivations RequestItems } ."},title:{type:"string",description:"The human-readable title of this Request."},description:{type:"string",description:"The human-readable description of this Request."},metadata:{type:"object",description:"This property can be used to add some arbitrary metadata to this request. The content of this property will be copied into the response on the side of the recipient."}},required:["@type","items"],additionalProperties:!1},RequestItemGroupJSON:{type:"object",properties:{"@type":{type:"string",const:"RequestItemGroup"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string",description:"The human-readable title of this group."},description:{type:"string",description:"The human-readable description of this group."},mustBeAccepted:{type:"boolean",description:"If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not."},metadata:{type:"object",description:"This property can be used to add some arbitrary metadata to this group. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."},items:{type:"array",items:{$ref:"#/definitions/RequestItemJSONDerivations"},description:"The items of this group."}},required:["@type","items","mustBeAccepted"],additionalProperties:!1,description:"A RequestItemGroup can be used to group one or more RequestItems. This is useful if you want to\n* make sure that the items in the group can only be accepted together\n\n Example: when sending a `CreateRelationshipAttributeRequestItem` **and** a `ShareAttributeRequestItem` in a single Request where the latter one targets an attribute created by the first one, it it should be impossible to reject the first item, while accepting the second one.\n* visually group items on the UI and give the a common title/description"},RequestItemJSONDerivations:{anyOf:[{$ref:"#/definitions/RequestItemJSON"},{$ref:"#/definitions/CreateAttributeRequestItemJSON"},{$ref:"#/definitions/ShareAttributeRequestItemJSON"},{$ref:"#/definitions/ProposeAttributeRequestItemJSON"},{$ref:"#/definitions/ReadAttributeRequestItemJSON"},{$ref:"#/definitions/ConsentRequestItemJSON"},{$ref:"#/definitions/AuthenticationRequestItemJSON"},{$ref:"#/definitions/FreeTextRequestItemJSON"},{$ref:"#/definitions/RegisterAttributeListenerRequestItemJSON"}]},RequestItemJSON:{type:"object",properties:{"@type":{type:"string"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string",description:"The human-readable title of this item."},description:{type:"string",description:"The human-readable description of this item."},metadata:{type:"object",description:"This property can be used to add some arbitrary metadata to this item. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."},mustBeAccepted:{type:"boolean",description:"If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not.\n\nCaution: this setting does not take effect in case it is inside of a {@link RequestItemGroupJSON RequestItemGroup } , which is not accepted by the recipient, since a {@link RequestItemJSON RequestItem } can only be accepted if the parent group is accepted as well."},requireManualDecision:{type:"boolean",description:"If set to `true`, it advices the recipient of this RequestItem to carefully consider their decision and especially do not decide based on some automation rules."}},required:["@type","mustBeAccepted"],additionalProperties:!1},CreateAttributeRequestItemJSON:{type:"object",properties:{"@type":{type:"string",const:"CreateAttributeRequestItem"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string",description:"The human-readable title of this item."},description:{type:"string",description:"The human-readable description of this item."},metadata:{type:"object",description:"This property can be used to add some arbitrary metadata to this item. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."},mustBeAccepted:{type:"boolean",description:"If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not.\n\nCaution: this setting does not take effect in case it is inside of a {@link RequestItemGroupJSON RequestItemGroup } , which is not accepted by the recipient, since a {@link RequestItemJSON RequestItem } can only be accepted if the parent group is accepted as well."},requireManualDecision:{type:"boolean",description:"If set to `true`, it advices the recipient of this RequestItem to carefully consider their decision and especially do not decide based on some automation rules."},attribute:{anyOf:[{$ref:"#/definitions/RelationshipAttributeJSON"},{$ref:"#/definitions/IdentityAttributeJSON"}]}},required:["@type","attribute","mustBeAccepted"],additionalProperties:!1},RelationshipAttributeJSON:{type:"object",properties:{"@type":{type:"string",const:"RelationshipAttribute"},"@context":{type:"string"},"@version":{type:"string"},owner:{type:"string"},validFrom:{type:"string"},validTo:{type:"string"},value:{$ref:"#/definitions/AttributeValues.Relationship.Json"},key:{type:"string"},isTechnical:{type:"boolean"},confidentiality:{$ref:"#/definitions/RelationshipAttributeConfidentiality"}},required:["@type","confidentiality","key","owner","value"],additionalProperties:!1},"AttributeValues.Relationship.Json":{anyOf:[{$ref:"#/definitions/ProprietaryBooleanJSON"},{$ref:"#/definitions/ProprietaryCountryJSON"},{$ref:"#/definitions/ProprietaryEMailAddressJSON"},{$ref:"#/definitions/ProprietaryFileReferenceJSON"},{$ref:"#/definitions/ProprietaryFloatJSON"},{$ref:"#/definitions/ProprietaryHEXColorJSON"},{$ref:"#/definitions/ProprietaryIntegerJSON"},{$ref:"#/definitions/ProprietaryLanguageJSON"},{$ref:"#/definitions/ProprietaryPhoneNumberJSON"},{$ref:"#/definitions/ProprietaryStringJSON"},{$ref:"#/definitions/ProprietaryURLJSON"},{$ref:"#/definitions/ProprietaryJSONJSON"},{$ref:"#/definitions/ProprietaryXMLJSON"},{$ref:"#/definitions/ConsentJSON"}]},ProprietaryBooleanJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryBoolean"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"boolean"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ValueHintsOverrideJSON:{type:"object",additionalProperties:!1,properties:{"@type":{type:"string",const:"ValueHints"},editHelp:{type:"string"},min:{type:"number"},max:{type:"number"},pattern:{type:"string"},values:{type:"array",items:{$ref:"#/definitions/ValueHintsValueJSON"}},defaultValue:{type:["string","number","boolean"]},propertyHints:{type:"object",additionalProperties:{$ref:"#/definitions/ValueHintsJSON"}},"@context":{type:"string"},"@version":{type:"string"}}},ValueHintsValueJSON:{type:"object",properties:{key:{type:["string","number","boolean"]},displayName:{type:"string"}},required:["key","displayName"],additionalProperties:!1},ValueHintsJSON:{type:"object",properties:{"@type":{type:"string",const:"ValueHints"},"@context":{type:"string"},"@version":{type:"string"},editHelp:{type:"string"},min:{type:"number"},max:{type:"number"},pattern:{type:"string"},values:{type:"array",items:{$ref:"#/definitions/ValueHintsValueJSON"}},defaultValue:{type:["string","number","boolean"]},propertyHints:{type:"object",additionalProperties:{$ref:"#/definitions/ValueHintsJSON"}}},required:["@type"],additionalProperties:!1},ProprietaryCountryJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryCountry"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryEMailAddressJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryEMailAddress"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryFileReferenceJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryFileReference"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryFloatJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryFloat"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"number"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryHEXColorJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryHEXColor"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryIntegerJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryInteger"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"number"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryLanguageJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryLanguage"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryPhoneNumberJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryPhoneNumber"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryStringJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryString"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryURLJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryURL"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryJSONJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryJSON"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string"},description:{type:"string"},value:{}},required:["@type","title","value"],additionalProperties:!1},ProprietaryXMLJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryXML"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"},schemaURL:{type:"string"}},required:["@type","title","value"],additionalProperties:!1},ConsentJSON:{type:"object",properties:{"@type":{type:"string"},"@context":{type:"string"},"@version":{type:"string"},consent:{type:"string"},link:{type:"string"}},required:["@type","consent"],additionalProperties:!1},RelationshipAttributeConfidentiality:{type:"string",enum:["public","private","protected"]},IdentityAttributeJSON:{type:"object",properties:{"@type":{type:"string",const:"IdentityAttribute"},"@context":{type:"string"},"@version":{type:"string"},owner:{type:"string"},validFrom:{type:"string"},validTo:{type:"string"},value:{$ref:"#/definitions/AttributeValues.Identity.Json"},tags:{type:"array",items:{type:"string"}}},required:["@type","owner","value"],additionalProperties:!1},"AttributeValues.Identity.Json":{anyOf:[{$ref:"#/definitions/AttributeValues.Identity.Editable.Json"},{$ref:"#/definitions/AttributeValues.Identity.Uneditable.Json"}]},"AttributeValues.Identity.Editable.Json":{anyOf:[{$ref:"#/definitions/AffiliationJSON"},{$ref:"#/definitions/BirthDateJSON"},{$ref:"#/definitions/BirthNameJSON"},{$ref:"#/definitions/BirthPlaceJSON"},{$ref:"#/definitions/CitizenshipJSON"},{$ref:"#/definitions/CommunicationLanguageJSON"},{$ref:"#/definitions/DeliveryBoxAddressJSON"},{$ref:"#/definitions/DisplayNameJSON"},{$ref:"#/definitions/EMailAddressJSON"},{$ref:"#/definitions/FaxNumberJSON"},{$ref:"#/definitions/IdentityFileReferenceJSON"},{$ref:"#/definitions/JobTitleJSON"},{$ref:"#/definitions/NationalityJSON"},{$ref:"#/definitions/PersonNameJSON"},{$ref:"#/definitions/PhoneNumberJSON"},{$ref:"#/definitions/PostOfficeBoxAddressJSON"},{$ref:"#/definitions/PseudonymJSON"},{$ref:"#/definitions/SexJSON"},{$ref:"#/definitions/StreetAddressJSON"},{$ref:"#/definitions/WebsiteJSON"}]},AffiliationJSON:{type:"object",properties:{"@type":{type:"string",const:"Affiliation"},"@context":{type:"string"},"@version":{type:"string"},organization:{type:"string"},role:{type:"string"},unit:{type:"string"}},required:["@type","organization"],additionalProperties:!1},BirthDateJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthDate"},"@context":{type:"string"},"@version":{type:"string"},day:{type:"number"},month:{type:"number"},year:{type:"number"}},required:["@type","day","month","year"],additionalProperties:!1},BirthNameJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthName"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},BirthPlaceJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthPlace"},"@context":{type:"string"},"@version":{type:"string"},city:{type:"string"},country:{type:"string"},state:{type:"string"}},required:["@type","city","country"],additionalProperties:!1},CitizenshipJSON:{type:"object",properties:{"@type":{type:"string",const:"Citizenship"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},CommunicationLanguageJSON:{type:"object",properties:{"@type":{type:"string",const:"CommunicationLanguage"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},DeliveryBoxAddressJSON:{type:"object",properties:{"@type":{type:"string",const:"DeliveryBoxAddress"},"@context":{type:"string"},"@version":{type:"string"},recipient:{type:"string"},userId:{type:"string"},deliveryBoxId:{type:"string"},zipCode:{type:"string"},city:{type:"string"},country:{type:"string"},phoneNumber:{type:"string"},state:{type:"string"}},required:["@type","city","country","deliveryBoxId","recipient","userId","zipCode"],additionalProperties:!1},DisplayNameJSON:{type:"object",properties:{"@type":{type:"string",const:"DisplayName"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},EMailAddressJSON:{type:"object",properties:{"@type":{type:"string",const:"EMailAddress"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},FaxNumberJSON:{type:"object",properties:{"@type":{type:"string",const:"FaxNumber"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},IdentityFileReferenceJSON:{type:"object",properties:{"@type":{type:"string",const:"IdentityFileReference"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},JobTitleJSON:{type:"object",properties:{"@type":{type:"string",const:"JobTitle"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},NationalityJSON:{type:"object",properties:{"@type":{type:"string",const:"Nationality"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},PersonNameJSON:{type:"object",properties:{"@type":{type:"string",const:"PersonName"},"@context":{type:"string"},"@version":{type:"string"},givenName:{type:"string"},middleName:{type:"string"},surname:{type:"string"},honorificSuffix:{type:"string"},honorificPrefix:{type:"string"}},required:["@type","givenName","surname"],additionalProperties:!1},PhoneNumberJSON:{type:"object",properties:{"@type":{type:"string",const:"PhoneNumber"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},PostOfficeBoxAddressJSON:{type:"object",properties:{"@type":{type:"string",const:"PostOfficeBoxAddress"},"@context":{type:"string"},"@version":{type:"string"},recipient:{type:"string"},boxId:{type:"string"},zipCode:{type:"string"},city:{type:"string"},country:{type:"string"},state:{type:"string"}},required:["@type","boxId","city","country","recipient","zipCode"],additionalProperties:!1},PseudonymJSON:{type:"object",properties:{"@type":{type:"string",const:"Pseudonym"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},SexJSON:{type:"object",properties:{"@type":{type:"string",const:"Sex"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},StreetAddressJSON:{type:"object",properties:{"@type":{type:"string",const:"StreetAddress"},"@context":{type:"string"},"@version":{type:"string"},recipient:{type:"string"},street:{type:"string"},houseNo:{type:"string"},zipCode:{type:"string"},city:{type:"string"},country:{type:"string"},state:{type:"string"}},required:["@type","city","country","houseNo","recipient","street","zipCode"],additionalProperties:!1},WebsiteJSON:{type:"object",properties:{"@type":{type:"string",const:"Website"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},"AttributeValues.Identity.Uneditable.Json":{anyOf:[{$ref:"#/definitions/AffiliationOrganizationJSON"},{$ref:"#/definitions/AffiliationRoleJSON"},{$ref:"#/definitions/AffiliationUnitJSON"},{$ref:"#/definitions/BirthCityJSON"},{$ref:"#/definitions/BirthCountryJSON"},{$ref:"#/definitions/BirthDayJSON"},{$ref:"#/definitions/BirthMonthJSON"},{$ref:"#/definitions/BirthStateJSON"},{$ref:"#/definitions/BirthYearJSON"},{$ref:"#/definitions/CityJSON"},{$ref:"#/definitions/CountryJSON"},{$ref:"#/definitions/GivenNameJSON"},{$ref:"#/definitions/HonorificPrefixJSON"},{$ref:"#/definitions/HonorificSuffixJSON"},{$ref:"#/definitions/HouseNumberJSON"},{$ref:"#/definitions/MiddleNameJSON"},{$ref:"#/definitions/SchematizedXMLJSON"},{$ref:"#/definitions/StateJSON"},{$ref:"#/definitions/StreetJSON"},{$ref:"#/definitions/SurnameJSON"},{$ref:"#/definitions/ZipCodeJSON"}]},AffiliationOrganizationJSON:{type:"object",properties:{"@type":{type:"string",const:"AffiliationOrganization"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},AffiliationRoleJSON:{type:"object",properties:{"@type":{type:"string",const:"AffiliationRole"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},AffiliationUnitJSON:{type:"object",properties:{"@type":{type:"string",const:"AffiliationUnit"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},BirthCityJSON:{type:"object",properties:{value:{type:"string"},"@context":{type:"string"},"@version":{type:"string"},"@type":{type:"string",const:"BirthCity"}},required:["@type","value"],additionalProperties:!1},BirthCountryJSON:{type:"object",properties:{value:{type:"string"},"@context":{type:"string"},"@version":{type:"string"},"@type":{type:"string",const:"BirthCountry"}},required:["@type","value"],additionalProperties:!1},BirthDayJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthDay"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"number"}},required:["@type","value"],additionalProperties:!1},BirthMonthJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthMonth"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"number",enum:[1,2,3,4,5,6,7,8,9,10,11,12],description:"Month values: 1 (january) - 12 (december)"}},required:["@type","value"],additionalProperties:!1},BirthStateJSON:{type:"object",properties:{value:{type:"string"},"@context":{type:"string"},"@version":{type:"string"},"@type":{type:"string",const:"BirthState"}},required:["@type","value"],additionalProperties:!1},BirthYearJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthYear"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"number"}},required:["@type","value"],additionalProperties:!1},CityJSON:{type:"object",properties:{"@type":{type:"string",const:"City"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},CountryJSON:{type:"object",properties:{"@type":{type:"string",const:"Country"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},GivenNameJSON:{type:"object",properties:{"@type":{type:"string",const:"GivenName"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},HonorificPrefixJSON:{type:"object",properties:{"@type":{type:"string",const:"HonorificPrefix"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},HonorificSuffixJSON:{type:"object",properties:{"@type":{type:"string",const:"HonorificSuffix"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},HouseNumberJSON:{type:"object",properties:{"@type":{type:"string",const:"HouseNumber"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},MiddleNameJSON:{type:"object",properties:{"@type":{type:"string",const:"MiddleName"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},SchematizedXMLJSON:{type:"object",properties:{"@type":{type:"string",const:"SchematizedXML"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},schemaURL:{type:"string"}},required:["@type","value"],additionalProperties:!1},StateJSON:{type:"object",properties:{"@type":{type:"string",const:"State"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},StreetJSON:{type:"object",properties:{"@type":{type:"string",const:"Street"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},SurnameJSON:{type:"object",properties:{"@type":{type:"string",const:"Surname"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},ZipCodeJSON:{type:"object",properties:{"@type":{type:"string",const:"ZipCode"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},ShareAttributeRequestItemJSON:{type:"object",properties:{"@type":{type:"string",const:"ShareAttributeRequestItem"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string",description:"The human-readable title of this item."},description:{type:"string",description:"The human-readable description of this item."},metadata:{type:"object",description:"This property can be used to add some arbitrary metadata to this item. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."},mustBeAccepted:{type:"boolean",description:"If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not.\n\nCaution: this setting does not take effect in case it is inside of a {@link RequestItemGroupJSON RequestItemGroup } , which is not accepted by the recipient, since a {@link RequestItemJSON RequestItem } can only be accepted if the parent group is accepted as well."},requireManualDecision:{type:"boolean",description:"If set to `true`, it advices the recipient of this RequestItem to carefully consider their decision and especially do not decide based on some automation rules."},attribute:{anyOf:[{$ref:"#/definitions/IdentityAttributeJSON"},{$ref:"#/definitions/RelationshipAttributeJSON"}]},sourceAttributeId:{type:"string"}},required:["@type","attribute","mustBeAccepted","sourceAttributeId"],additionalProperties:!1},ProposeAttributeRequestItemJSON:{type:"object",properties:{"@type":{type:"string",const:"ProposeAttributeRequestItem"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string",description:"The human-readable title of this item."},description:{type:"string",description:"The human-readable description of this item."},metadata:{type:"object",description:"This property can be used to add some arbitrary metadata to this item. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."},mustBeAccepted:{type:"boolean",description:"If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not.\n\nCaution: this setting does not take effect in case it is inside of a {@link RequestItemGroupJSON RequestItemGroup } , which is not accepted by the recipient, since a {@link RequestItemJSON RequestItem } can only be accepted if the parent group is accepted as well."},requireManualDecision:{type:"boolean",description:"If set to `true`, it advices the recipient of this RequestItem to carefully consider their decision and especially do not decide based on some automation rules."},query:{anyOf:[{$ref:"#/definitions/IdentityAttributeQueryJSON"},{$ref:"#/definitions/RelationshipAttributeQueryJSON"},{$ref:"#/definitions/IQLQueryJSON"}]},attribute:{anyOf:[{$ref:"#/definitions/IdentityAttributeJSON"},{$ref:"#/definitions/RelationshipAttributeJSON"}]}},required:["@type","attribute","mustBeAccepted","query"],additionalProperties:!1},IdentityAttributeQueryJSON:{type:"object",properties:{"@type":{type:"string",const:"IdentityAttributeQuery"},"@context":{type:"string"},"@version":{type:"string"},valueType:{$ref:"#/definitions/AttributeValues.Identity.TypeName"},tags:{type:"array",items:{type:"string"}},validFrom:{type:"string"},validTo:{type:"string"}},required:["@type","valueType"],additionalProperties:!1},"AttributeValues.Identity.TypeName":{anyOf:[{$ref:"#/definitions/AttributeValues.Identity.Editable.TypeName"},{$ref:"#/definitions/AttributeValues.Identity.Uneditable.TypeName"}]},"AttributeValues.Identity.Editable.TypeName":{type:"string",enum:["Affiliation","BirthDate","BirthName","BirthPlace","Citizenship","CommunicationLanguage","DeliveryBoxAddress","DisplayName","EMailAddress","FaxNumber","IdentityFileReference","SchematizedXML","JobTitle","Nationality","PersonName","PhoneNumber","PostOfficeBoxAddress","Pseudonym","Sex","StreetAddress","Website"]},"AttributeValues.Identity.Uneditable.TypeName":{type:"string",enum:["AffiliationOrganization","AffiliationRole","AffiliationUnit","BirthCity","BirthCountry","BirthDay","BirthMonth","BirthState","BirthYear","City","Country","GivenName","HonorificPrefix","HonorificSuffix","HouseNumber","MiddleName","SchematizedXML","State","Street","Surname","ZipCode"]},RelationshipAttributeQueryJSON:{type:"object",properties:{"@type":{type:"string",const:"RelationshipAttributeQuery"},"@context":{type:"string"},"@version":{type:"string"},key:{type:"string"},owner:{type:"string"},attributeCreationHints:{$ref:"#/definitions/RelationshipAttributeCreationHintsJSON"},validFrom:{type:"string"},validTo:{type:"string"}},required:["@type","attributeCreationHints","key","owner"],additionalProperties:!1},RelationshipAttributeCreationHintsJSON:{type:"object",properties:{title:{type:"string"},valueType:{$ref:"#/definitions/AttributeValues.Relationship.TypeName"},description:{type:"string"},valueHints:{$ref:"#/definitions/ValueHintsJSON"},confidentiality:{$ref:"#/definitions/RelationshipAttributeConfidentiality"}},required:["title","valueType","confidentiality"],additionalProperties:!1},"AttributeValues.Relationship.TypeName":{type:"string",enum:["ProprietaryBoolean","ProprietaryCountry","ProprietaryEMailAddress","ProprietaryFileReference","ProprietaryFloat","ProprietaryHEXColor","ProprietaryInteger","ProprietaryLanguage","ProprietaryPhoneNumber","ProprietaryString","ProprietaryURL","ProprietaryJSON","ProprietaryXML","Consent"]},IQLQueryJSON:{type:"object",properties:{"@type":{type:"string",const:"IQLQuery"},"@context":{type:"string"},"@version":{type:"string"},queryString:{type:"string"},attributeCreationHints:{$ref:"#/definitions/IQLQueryCreationHintsJSON"}},required:["@type","queryString"],additionalProperties:!1},IQLQueryCreationHintsJSON:{type:"object",properties:{valueType:{$ref:"#/definitions/AttributeValues.Identity.TypeName"},tags:{type:"array",items:{type:"string"}}},required:["valueType"],additionalProperties:!1},ReadAttributeRequestItemJSON:{type:"object",properties:{"@type":{type:"string",const:"ReadAttributeRequestItem"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string",description:"The human-readable title of this item."},description:{type:"string",description:"The human-readable description of this item."},metadata:{type:"object",description:"This property can be used to add some arbitrary metadata to this item. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."},mustBeAccepted:{type:"boolean",description:"If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not.\n\nCaution: this setting does not take effect in case it is inside of a {@link RequestItemGroupJSON RequestItemGroup } , which is not accepted by the recipient, since a {@link RequestItemJSON RequestItem } can only be accepted if the parent group is accepted as well."},requireManualDecision:{type:"boolean",description:"If set to `true`, it advices the recipient of this RequestItem to carefully consider their decision and especially do not decide based on some automation rules."},query:{anyOf:[{$ref:"#/definitions/IdentityAttributeQueryJSON"},{$ref:"#/definitions/RelationshipAttributeQueryJSON"},{$ref:"#/definitions/ThirdPartyRelationshipAttributeQueryJSON"},{$ref:"#/definitions/IQLQueryJSON"}]}},required:["@type","mustBeAccepted","query"],additionalProperties:!1},ThirdPartyRelationshipAttributeQueryJSON:{type:"object",properties:{"@type":{type:"string",const:"ThirdPartyRelationshipAttributeQuery"},"@context":{type:"string"},"@version":{type:"string"},key:{type:"string"},owner:{type:"string"},thirdParty:{type:"array",items:{type:"string"}},validFrom:{type:"string"},validTo:{type:"string"}},required:["@type","key","owner","thirdParty"],additionalProperties:!1},ConsentRequestItemJSON:{type:"object",properties:{"@type":{type:"string",const:"ConsentRequestItem"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string",description:"The human-readable title of this item."},description:{type:"string",description:"The human-readable description of this item."},metadata:{type:"object",description:"This property can be used to add some arbitrary metadata to this item. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."},mustBeAccepted:{type:"boolean",description:"If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not.\n\nCaution: this setting does not take effect in case it is inside of a {@link RequestItemGroupJSON RequestItemGroup } , which is not accepted by the recipient, since a {@link RequestItemJSON RequestItem } can only be accepted if the parent group is accepted as well."},requireManualDecision:{type:"boolean",description:"If set to `true`, it advices the recipient of this RequestItem to carefully consider their decision and especially do not decide based on some automation rules."},consent:{type:"string"},link:{type:"string"}},required:["@type","consent","mustBeAccepted"],additionalProperties:!1},AuthenticationRequestItemJSON:{type:"object",properties:{"@type":{type:"string",const:"AuthenticationRequestItem"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string",description:"The human-readable title of this item."},description:{type:"string",description:"The human-readable description of this item."},metadata:{type:"object",description:"This property can be used to add some arbitrary metadata to this item. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."},mustBeAccepted:{type:"boolean",description:"If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not.\n\nCaution: this setting does not take effect in case it is inside of a {@link RequestItemGroupJSON RequestItemGroup } , which is not accepted by the recipient, since a {@link RequestItemJSON RequestItem } can only be accepted if the parent group is accepted as well."},requireManualDecision:{type:"boolean",description:"If set to `true`, it advices the recipient of this RequestItem to carefully consider their decision and especially do not decide based on some automation rules."}},required:["@type","mustBeAccepted"],additionalProperties:!1},FreeTextRequestItemJSON:{type:"object",properties:{"@type":{type:"string",const:"FreeTextRequestItem"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string",description:"The human-readable title of this item."},description:{type:"string",description:"The human-readable description of this item."},metadata:{type:"object",description:"This property can be used to add some arbitrary metadata to this item. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."},mustBeAccepted:{type:"boolean",description:"If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not.\n\nCaution: this setting does not take effect in case it is inside of a {@link RequestItemGroupJSON RequestItemGroup } , which is not accepted by the recipient, since a {@link RequestItemJSON RequestItem } can only be accepted if the parent group is accepted as well."},requireManualDecision:{type:"boolean",description:"If set to `true`, it advices the recipient of this RequestItem to carefully consider their decision and especially do not decide based on some automation rules."},freeText:{type:"string"}},required:["@type","freeText","mustBeAccepted"],additionalProperties:!1},RegisterAttributeListenerRequestItemJSON:{type:"object",properties:{"@type":{type:"string",const:"RegisterAttributeListenerRequestItem"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string",description:"The human-readable title of this item."},description:{type:"string",description:"The human-readable description of this item."},metadata:{type:"object",description:"This property can be used to add some arbitrary metadata to this item. The content of this property will be copied into the response on the side of the recipient, so the sender can use it to identify the group content as they receive the response."},mustBeAccepted:{type:"boolean",description:"If set to `true`, the recipient has to accept this group if he wants to accept the Request. If set to `false`, the recipient can decide whether he wants to accept it or not.\n\nCaution: this setting does not take effect in case it is inside of a {@link RequestItemGroupJSON RequestItemGroup } , which is not accepted by the recipient, since a {@link RequestItemJSON RequestItem } can only be accepted if the parent group is accepted as well."},requireManualDecision:{type:"boolean",description:"If set to `true`, it advices the recipient of this RequestItem to carefully consider their decision and especially do not decide based on some automation rules."},query:{anyOf:[{$ref:"#/definitions/IdentityAttributeQueryJSON"},{$ref:"#/definitions/ThirdPartyRelationshipAttributeQueryJSON"}]}},required:["@type","mustBeAccepted","query"],additionalProperties:!1},MessageIdString:{type:"string",pattern:"MSG[A-Za-z0-9]{17}"},RelationshipTemplateIdString:{type:"string",pattern:"RLT[A-Za-z0-9]{17}"}}},t.RequireManualDecisionOfIncomingRequestRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/RequireManualDecisionOfIncomingRequestRequest",definitions:{RequireManualDecisionOfIncomingRequestRequest:{type:"object",properties:{requestId:{$ref:"#/definitions/RequestIdString"}},required:["requestId"],additionalProperties:!1},RequestIdString:{type:"string",pattern:"REQ[A-Za-z0-9]{17}"}}},t.SentOutgoingRequestRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/SentOutgoingRequestRequest",definitions:{SentOutgoingRequestRequest:{type:"object",properties:{requestId:{$ref:"#/definitions/RequestIdString"},messageId:{$ref:"#/definitions/MessageIdString"}},required:["requestId","messageId"],additionalProperties:!1},RequestIdString:{type:"string",pattern:"REQ[A-Za-z0-9]{17}"},MessageIdString:{type:"string",pattern:"MSG[A-Za-z0-9]{17}"}}},t.CreateAndShareRelationshipAttributeRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/CreateAndShareRelationshipAttributeRequest",definitions:{CreateAndShareRelationshipAttributeRequest:{type:"object",properties:{content:{type:"object",properties:{value:{$ref:"#/definitions/AttributeValues.Relationship.Json"},key:{type:"string"},confidentiality:{$ref:"#/definitions/RelationshipAttributeConfidentiality"},isTechnical:{type:"boolean"},validFrom:{$ref:"#/definitions/ISO8601DateTimeString"},validTo:{$ref:"#/definitions/ISO8601DateTimeString"}},required:["value","key","confidentiality"],additionalProperties:!1},peer:{$ref:"#/definitions/AddressString"},requestMetadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},metadata:{type:"object"},expiresAt:{$ref:"#/definitions/ISO8601DateTimeString"}},additionalProperties:!1},requestItemMetadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},metadata:{type:"object"},requireManualDecision:{type:"boolean"}},additionalProperties:!1}},required:["content","peer"],additionalProperties:!1},"AttributeValues.Relationship.Json":{anyOf:[{$ref:"#/definitions/ProprietaryBooleanJSON"},{$ref:"#/definitions/ProprietaryCountryJSON"},{$ref:"#/definitions/ProprietaryEMailAddressJSON"},{$ref:"#/definitions/ProprietaryFileReferenceJSON"},{$ref:"#/definitions/ProprietaryFloatJSON"},{$ref:"#/definitions/ProprietaryHEXColorJSON"},{$ref:"#/definitions/ProprietaryIntegerJSON"},{$ref:"#/definitions/ProprietaryLanguageJSON"},{$ref:"#/definitions/ProprietaryPhoneNumberJSON"},{$ref:"#/definitions/ProprietaryStringJSON"},{$ref:"#/definitions/ProprietaryURLJSON"},{$ref:"#/definitions/ProprietaryJSONJSON"},{$ref:"#/definitions/ProprietaryXMLJSON"},{$ref:"#/definitions/ConsentJSON"}]},ProprietaryBooleanJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryBoolean"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"boolean"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ValueHintsOverrideJSON:{type:"object",additionalProperties:!1,properties:{"@type":{type:"string",const:"ValueHints"},editHelp:{type:"string"},min:{type:"number"},max:{type:"number"},pattern:{type:"string"},values:{type:"array",items:{$ref:"#/definitions/ValueHintsValueJSON"}},defaultValue:{type:["string","number","boolean"]},propertyHints:{type:"object",additionalProperties:{$ref:"#/definitions/ValueHintsJSON"}},"@context":{type:"string"},"@version":{type:"string"}}},ValueHintsValueJSON:{type:"object",properties:{key:{type:["string","number","boolean"]},displayName:{type:"string"}},required:["key","displayName"],additionalProperties:!1},ValueHintsJSON:{type:"object",properties:{"@type":{type:"string",const:"ValueHints"},"@context":{type:"string"},"@version":{type:"string"},editHelp:{type:"string"},min:{type:"number"},max:{type:"number"},pattern:{type:"string"},values:{type:"array",items:{$ref:"#/definitions/ValueHintsValueJSON"}},defaultValue:{type:["string","number","boolean"]},propertyHints:{type:"object",additionalProperties:{$ref:"#/definitions/ValueHintsJSON"}}},required:["@type"],additionalProperties:!1},ProprietaryCountryJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryCountry"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryEMailAddressJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryEMailAddress"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryFileReferenceJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryFileReference"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryFloatJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryFloat"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"number"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryHEXColorJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryHEXColor"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryIntegerJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryInteger"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"number"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryLanguageJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryLanguage"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryPhoneNumberJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryPhoneNumber"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryStringJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryString"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryURLJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryURL"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryJSONJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryJSON"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string"},description:{type:"string"},value:{}},required:["@type","title","value"],additionalProperties:!1},ProprietaryXMLJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryXML"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"},schemaURL:{type:"string"}},required:["@type","title","value"],additionalProperties:!1},ConsentJSON:{type:"object",properties:{"@type":{type:"string"},"@context":{type:"string"},"@version":{type:"string"},consent:{type:"string"},link:{type:"string"}},required:["@type","consent"],additionalProperties:!1},RelationshipAttributeConfidentiality:{type:"string",enum:["public","private","protected"]},ISO8601DateTimeString:{type:"string",errorMessage:"must match ISO8601 datetime format",pattern:"^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"},AddressString:{type:"string",pattern:"id1[A-Za-z0-9]{32,33}"}}},t.CreateRepositoryAttributeRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/CreateRepositoryAttributeRequest",definitions:{CreateRepositoryAttributeRequest:{type:"object",properties:{content:{type:"object",properties:{value:{$ref:"#/definitions/AttributeValues.Identity.Json"},tags:{type:"array",items:{type:"string"}},validFrom:{$ref:"#/definitions/ISO8601DateTimeString"},validTo:{$ref:"#/definitions/ISO8601DateTimeString"}},required:["value"],additionalProperties:!1}},required:["content"],additionalProperties:!1},"AttributeValues.Identity.Json":{anyOf:[{$ref:"#/definitions/AttributeValues.Identity.Editable.Json"},{$ref:"#/definitions/AttributeValues.Identity.Uneditable.Json"}]},"AttributeValues.Identity.Editable.Json":{anyOf:[{$ref:"#/definitions/AffiliationJSON"},{$ref:"#/definitions/BirthDateJSON"},{$ref:"#/definitions/BirthNameJSON"},{$ref:"#/definitions/BirthPlaceJSON"},{$ref:"#/definitions/CitizenshipJSON"},{$ref:"#/definitions/CommunicationLanguageJSON"},{$ref:"#/definitions/DeliveryBoxAddressJSON"},{$ref:"#/definitions/DisplayNameJSON"},{$ref:"#/definitions/EMailAddressJSON"},{$ref:"#/definitions/FaxNumberJSON"},{$ref:"#/definitions/IdentityFileReferenceJSON"},{$ref:"#/definitions/JobTitleJSON"},{$ref:"#/definitions/NationalityJSON"},{$ref:"#/definitions/PersonNameJSON"},{$ref:"#/definitions/PhoneNumberJSON"},{$ref:"#/definitions/PostOfficeBoxAddressJSON"},{$ref:"#/definitions/PseudonymJSON"},{$ref:"#/definitions/SexJSON"},{$ref:"#/definitions/StreetAddressJSON"},{$ref:"#/definitions/WebsiteJSON"}]},AffiliationJSON:{type:"object",properties:{"@type":{type:"string",const:"Affiliation"},"@context":{type:"string"},"@version":{type:"string"},organization:{type:"string"},role:{type:"string"},unit:{type:"string"}},required:["@type","organization"],additionalProperties:!1},BirthDateJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthDate"},"@context":{type:"string"},"@version":{type:"string"},day:{type:"number"},month:{type:"number"},year:{type:"number"}},required:["@type","day","month","year"],additionalProperties:!1},BirthNameJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthName"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},BirthPlaceJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthPlace"},"@context":{type:"string"},"@version":{type:"string"},city:{type:"string"},country:{type:"string"},state:{type:"string"}},required:["@type","city","country"],additionalProperties:!1},CitizenshipJSON:{type:"object",properties:{"@type":{type:"string",const:"Citizenship"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},CommunicationLanguageJSON:{type:"object",properties:{"@type":{type:"string",const:"CommunicationLanguage"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},DeliveryBoxAddressJSON:{type:"object",properties:{"@type":{type:"string",const:"DeliveryBoxAddress"},"@context":{type:"string"},"@version":{type:"string"},recipient:{type:"string"},userId:{type:"string"},deliveryBoxId:{type:"string"},zipCode:{type:"string"},city:{type:"string"},country:{type:"string"},phoneNumber:{type:"string"},state:{type:"string"}},required:["@type","city","country","deliveryBoxId","recipient","userId","zipCode"],additionalProperties:!1},DisplayNameJSON:{type:"object",properties:{"@type":{type:"string",const:"DisplayName"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},EMailAddressJSON:{type:"object",properties:{"@type":{type:"string",const:"EMailAddress"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},FaxNumberJSON:{type:"object",properties:{"@type":{type:"string",const:"FaxNumber"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},IdentityFileReferenceJSON:{type:"object",properties:{"@type":{type:"string",const:"IdentityFileReference"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},JobTitleJSON:{type:"object",properties:{"@type":{type:"string",const:"JobTitle"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},NationalityJSON:{type:"object",properties:{"@type":{type:"string",const:"Nationality"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},PersonNameJSON:{type:"object",properties:{"@type":{type:"string",const:"PersonName"},"@context":{type:"string"},"@version":{type:"string"},givenName:{type:"string"},middleName:{type:"string"},surname:{type:"string"},honorificSuffix:{type:"string"},honorificPrefix:{type:"string"}},required:["@type","givenName","surname"],additionalProperties:!1},PhoneNumberJSON:{type:"object",properties:{"@type":{type:"string",const:"PhoneNumber"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},PostOfficeBoxAddressJSON:{type:"object",properties:{"@type":{type:"string",const:"PostOfficeBoxAddress"},"@context":{type:"string"},"@version":{type:"string"},recipient:{type:"string"},boxId:{type:"string"},zipCode:{type:"string"},city:{type:"string"},country:{type:"string"},state:{type:"string"}},required:["@type","boxId","city","country","recipient","zipCode"],additionalProperties:!1},PseudonymJSON:{type:"object",properties:{"@type":{type:"string",const:"Pseudonym"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},SexJSON:{type:"object",properties:{"@type":{type:"string",const:"Sex"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},StreetAddressJSON:{type:"object",properties:{"@type":{type:"string",const:"StreetAddress"},"@context":{type:"string"},"@version":{type:"string"},recipient:{type:"string"},street:{type:"string"},houseNo:{type:"string"},zipCode:{type:"string"},city:{type:"string"},country:{type:"string"},state:{type:"string"}},required:["@type","city","country","houseNo","recipient","street","zipCode"],additionalProperties:!1},WebsiteJSON:{type:"object",properties:{"@type":{type:"string",const:"Website"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},"AttributeValues.Identity.Uneditable.Json":{anyOf:[{$ref:"#/definitions/AffiliationOrganizationJSON"},{$ref:"#/definitions/AffiliationRoleJSON"},{$ref:"#/definitions/AffiliationUnitJSON"},{$ref:"#/definitions/BirthCityJSON"},{$ref:"#/definitions/BirthCountryJSON"},{$ref:"#/definitions/BirthDayJSON"},{$ref:"#/definitions/BirthMonthJSON"},{$ref:"#/definitions/BirthStateJSON"},{$ref:"#/definitions/BirthYearJSON"},{$ref:"#/definitions/CityJSON"},{$ref:"#/definitions/CountryJSON"},{$ref:"#/definitions/GivenNameJSON"},{$ref:"#/definitions/HonorificPrefixJSON"},{$ref:"#/definitions/HonorificSuffixJSON"},{$ref:"#/definitions/HouseNumberJSON"},{$ref:"#/definitions/MiddleNameJSON"},{$ref:"#/definitions/SchematizedXMLJSON"},{$ref:"#/definitions/StateJSON"},{$ref:"#/definitions/StreetJSON"},{$ref:"#/definitions/SurnameJSON"},{$ref:"#/definitions/ZipCodeJSON"}]},AffiliationOrganizationJSON:{type:"object",properties:{"@type":{type:"string",const:"AffiliationOrganization"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},AffiliationRoleJSON:{type:"object",properties:{"@type":{type:"string",const:"AffiliationRole"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},AffiliationUnitJSON:{type:"object",properties:{"@type":{type:"string",const:"AffiliationUnit"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},BirthCityJSON:{type:"object",properties:{value:{type:"string"},"@context":{type:"string"},"@version":{type:"string"},"@type":{type:"string",const:"BirthCity"}},required:["@type","value"],additionalProperties:!1},BirthCountryJSON:{type:"object",properties:{value:{type:"string"},"@context":{type:"string"},"@version":{type:"string"},"@type":{type:"string",const:"BirthCountry"}},required:["@type","value"],additionalProperties:!1},BirthDayJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthDay"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"number"}},required:["@type","value"],additionalProperties:!1},BirthMonthJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthMonth"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"number",enum:[1,2,3,4,5,6,7,8,9,10,11,12],description:"Month values: 1 (january) - 12 (december)"}},required:["@type","value"],additionalProperties:!1},BirthStateJSON:{type:"object",properties:{value:{type:"string"},"@context":{type:"string"},"@version":{type:"string"},"@type":{type:"string",const:"BirthState"}},required:["@type","value"],additionalProperties:!1},BirthYearJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthYear"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"number"}},required:["@type","value"],additionalProperties:!1},CityJSON:{type:"object",properties:{"@type":{type:"string",const:"City"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},CountryJSON:{type:"object",properties:{"@type":{type:"string",const:"Country"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},GivenNameJSON:{type:"object",properties:{"@type":{type:"string",const:"GivenName"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},HonorificPrefixJSON:{type:"object",properties:{"@type":{type:"string",const:"HonorificPrefix"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},HonorificSuffixJSON:{type:"object",properties:{"@type":{type:"string",const:"HonorificSuffix"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},HouseNumberJSON:{type:"object",properties:{"@type":{type:"string",const:"HouseNumber"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},MiddleNameJSON:{type:"object",properties:{"@type":{type:"string",const:"MiddleName"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},SchematizedXMLJSON:{type:"object",properties:{"@type":{type:"string",const:"SchematizedXML"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},schemaURL:{type:"string"}},required:["@type","value"],additionalProperties:!1},StateJSON:{type:"object",properties:{"@type":{type:"string",const:"State"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},StreetJSON:{type:"object",properties:{"@type":{type:"string",const:"Street"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},SurnameJSON:{type:"object",properties:{"@type":{type:"string",const:"Surname"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},ZipCodeJSON:{type:"object",properties:{"@type":{type:"string",const:"ZipCode"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},ISO8601DateTimeString:{type:"string",errorMessage:"must match ISO8601 datetime format",pattern:"^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"}}},t.DeleteOwnSharedAttributeAndNotifyPeerRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/DeleteOwnSharedAttributeAndNotifyPeerRequest",definitions:{DeleteOwnSharedAttributeAndNotifyPeerRequest:{type:"object",properties:{attributeId:{$ref:"#/definitions/AttributeIdString"}},required:["attributeId"],additionalProperties:!1},AttributeIdString:{type:"string",pattern:"ATT[A-Za-z0-9]{17}"}}},t.DeletePeerSharedAttributeAndNotifyOwnerRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/DeletePeerSharedAttributeAndNotifyOwnerRequest",definitions:{DeletePeerSharedAttributeAndNotifyOwnerRequest:{type:"object",properties:{attributeId:{$ref:"#/definitions/AttributeIdString"}},required:["attributeId"],additionalProperties:!1},AttributeIdString:{type:"string",pattern:"ATT[A-Za-z0-9]{17}"}}},t.DeleteRepositoryAttributeRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/DeleteRepositoryAttributeRequest",definitions:{DeleteRepositoryAttributeRequest:{type:"object",properties:{attributeId:{$ref:"#/definitions/AttributeIdString"}},required:["attributeId"],additionalProperties:!1},AttributeIdString:{type:"string",pattern:"ATT[A-Za-z0-9]{17}"}}},t.DeleteThirdPartyOwnedRelationshipAttributeAndNotifyPeerRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/DeleteThirdPartyOwnedRelationshipAttributeAndNotifyPeerRequest",definitions:{DeleteThirdPartyOwnedRelationshipAttributeAndNotifyPeerRequest:{type:"object",properties:{attributeId:{$ref:"#/definitions/AttributeIdString"}},required:["attributeId"],additionalProperties:!1},AttributeIdString:{type:"string",pattern:"ATT[A-Za-z0-9]{17}"}}},t.ExecuteIdentityAttributeQueryRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/ExecuteIdentityAttributeQueryRequest",definitions:{ExecuteIdentityAttributeQueryRequest:{type:"object",properties:{query:{$ref:"#/definitions/IdentityAttributeQueryJSON"}},required:["query"],additionalProperties:!1},IdentityAttributeQueryJSON:{type:"object",properties:{"@type":{type:"string",const:"IdentityAttributeQuery"},"@context":{type:"string"},"@version":{type:"string"},valueType:{$ref:"#/definitions/AttributeValues.Identity.TypeName"},tags:{type:"array",items:{type:"string"}},validFrom:{type:"string"},validTo:{type:"string"}},required:["@type","valueType"],additionalProperties:!1},"AttributeValues.Identity.TypeName":{anyOf:[{$ref:"#/definitions/AttributeValues.Identity.Editable.TypeName"},{$ref:"#/definitions/AttributeValues.Identity.Uneditable.TypeName"}]},"AttributeValues.Identity.Editable.TypeName":{type:"string",enum:["Affiliation","BirthDate","BirthName","BirthPlace","Citizenship","CommunicationLanguage","DeliveryBoxAddress","DisplayName","EMailAddress","FaxNumber","IdentityFileReference","SchematizedXML","JobTitle","Nationality","PersonName","PhoneNumber","PostOfficeBoxAddress","Pseudonym","Sex","StreetAddress","Website"]},"AttributeValues.Identity.Uneditable.TypeName":{type:"string",enum:["AffiliationOrganization","AffiliationRole","AffiliationUnit","BirthCity","BirthCountry","BirthDay","BirthMonth","BirthState","BirthYear","City","Country","GivenName","HonorificPrefix","HonorificSuffix","HouseNumber","MiddleName","SchematizedXML","State","Street","Surname","ZipCode"]}}},t.ExecuteIQLQueryRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/ExecuteIQLQueryRequest",definitions:{ExecuteIQLQueryRequest:{type:"object",properties:{query:{type:"object",additionalProperties:!1,properties:{"@type":{type:"string",const:"IQLQuery"},queryString:{type:"string"},attributeCreationHints:{$ref:"#/definitions/IQLQueryCreationHintsJSON"},"@context":{type:"string"},"@version":{type:"string"}},required:["queryString"]}},required:["query"],additionalProperties:!1},IQLQueryCreationHintsJSON:{type:"object",properties:{valueType:{$ref:"#/definitions/AttributeValues.Identity.TypeName"},tags:{type:"array",items:{type:"string"}}},required:["valueType"],additionalProperties:!1},"AttributeValues.Identity.TypeName":{anyOf:[{$ref:"#/definitions/AttributeValues.Identity.Editable.TypeName"},{$ref:"#/definitions/AttributeValues.Identity.Uneditable.TypeName"}]},"AttributeValues.Identity.Editable.TypeName":{type:"string",enum:["Affiliation","BirthDate","BirthName","BirthPlace","Citizenship","CommunicationLanguage","DeliveryBoxAddress","DisplayName","EMailAddress","FaxNumber","IdentityFileReference","SchematizedXML","JobTitle","Nationality","PersonName","PhoneNumber","PostOfficeBoxAddress","Pseudonym","Sex","StreetAddress","Website"]},"AttributeValues.Identity.Uneditable.TypeName":{type:"string",enum:["AffiliationOrganization","AffiliationRole","AffiliationUnit","BirthCity","BirthCountry","BirthDay","BirthMonth","BirthState","BirthYear","City","Country","GivenName","HonorificPrefix","HonorificSuffix","HouseNumber","MiddleName","SchematizedXML","State","Street","Surname","ZipCode"]}}},t.ExecuteRelationshipAttributeQueryRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/ExecuteRelationshipAttributeQueryRequest",definitions:{ExecuteRelationshipAttributeQueryRequest:{type:"object",properties:{query:{$ref:"#/definitions/RelationshipAttributeQueryJSON"}},required:["query"],additionalProperties:!1},RelationshipAttributeQueryJSON:{type:"object",properties:{"@type":{type:"string",const:"RelationshipAttributeQuery"},"@context":{type:"string"},"@version":{type:"string"},key:{type:"string"},owner:{type:"string"},attributeCreationHints:{$ref:"#/definitions/RelationshipAttributeCreationHintsJSON"},validFrom:{type:"string"},validTo:{type:"string"}},required:["@type","attributeCreationHints","key","owner"],additionalProperties:!1},RelationshipAttributeCreationHintsJSON:{type:"object",properties:{title:{type:"string"},valueType:{$ref:"#/definitions/AttributeValues.Relationship.TypeName"},description:{type:"string"},valueHints:{$ref:"#/definitions/ValueHintsJSON"},confidentiality:{$ref:"#/definitions/RelationshipAttributeConfidentiality"}},required:["title","valueType","confidentiality"],additionalProperties:!1},"AttributeValues.Relationship.TypeName":{type:"string",enum:["ProprietaryBoolean","ProprietaryCountry","ProprietaryEMailAddress","ProprietaryFileReference","ProprietaryFloat","ProprietaryHEXColor","ProprietaryInteger","ProprietaryLanguage","ProprietaryPhoneNumber","ProprietaryString","ProprietaryURL","ProprietaryJSON","ProprietaryXML","Consent"]},ValueHintsJSON:{type:"object",properties:{"@type":{type:"string",const:"ValueHints"},"@context":{type:"string"},"@version":{type:"string"},editHelp:{type:"string"},min:{type:"number"},max:{type:"number"},pattern:{type:"string"},values:{type:"array",items:{$ref:"#/definitions/ValueHintsValueJSON"}},defaultValue:{type:["string","number","boolean"]},propertyHints:{type:"object",additionalProperties:{$ref:"#/definitions/ValueHintsJSON"}}},required:["@type"],additionalProperties:!1},ValueHintsValueJSON:{type:"object",properties:{key:{type:["string","number","boolean"]},displayName:{type:"string"}},required:["key","displayName"],additionalProperties:!1},RelationshipAttributeConfidentiality:{type:"string",enum:["public","private","protected"]}}},t.ExecuteThirdPartyRelationshipAttributeQueryRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/ExecuteThirdPartyRelationshipAttributeQueryRequest",definitions:{ExecuteThirdPartyRelationshipAttributeQueryRequest:{type:"object",properties:{query:{$ref:"#/definitions/ThirdPartyRelationshipAttributeQueryJSON"}},required:["query"],additionalProperties:!1},ThirdPartyRelationshipAttributeQueryJSON:{type:"object",properties:{"@type":{type:"string",const:"ThirdPartyRelationshipAttributeQuery"},"@context":{type:"string"},"@version":{type:"string"},key:{type:"string"},owner:{type:"string"},thirdParty:{type:"array",items:{type:"string"}},validFrom:{type:"string"},validTo:{type:"string"}},required:["@type","key","owner","thirdParty"],additionalProperties:!1}}},t.GetAttributeRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetAttributeRequest",definitions:{GetAttributeRequest:{type:"object",properties:{id:{$ref:"#/definitions/AttributeIdString"}},required:["id"],additionalProperties:!1},AttributeIdString:{type:"string",pattern:"ATT[A-Za-z0-9]{17}"}}},t.GetAttributesRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetAttributesRequest",definitions:{GetAttributesRequest:{type:"object",properties:{query:{$ref:"#/definitions/GetAttributesRequestQuery"},onlyValid:{type:"boolean"},hideTechnical:{type:"boolean"}},additionalProperties:!1},GetAttributesRequestQuery:{type:"object",properties:{createdAt:{type:"string"},parentId:{type:"string"},"content.@type":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"content.tags":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"content.owner":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"content.validFrom":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"content.validTo":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"content.key":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"content.isTechnical":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"content.confidentiality":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"content.value.@type":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},succeeds:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},succeededBy:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},shareInfo:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"shareInfo.requestReference":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"shareInfo.notificationReference":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"shareInfo.peer":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"shareInfo.sourceAttribute":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},deletionInfo:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"deletionInfo.deletionStatus":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"deletionInfo.deletionDate":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}},additionalProperties:!1}}},t.GetOwnSharedAttributesRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetOwnSharedAttributesRequest",definitions:{GetOwnSharedAttributesRequest:{type:"object",properties:{peer:{$ref:"#/definitions/AddressString"},onlyValid:{type:"boolean"},query:{$ref:"#/definitions/GetOwnSharedAttributeRequestQuery"},hideTechnical:{type:"boolean"},onlyLatestVersions:{type:"boolean",description:"default: true"}},required:["peer"],additionalProperties:!1},AddressString:{type:"string",pattern:"id1[A-Za-z0-9]{32,33}"},GetOwnSharedAttributeRequestQuery:{type:"object",properties:{createdAt:{type:"string"},"content.@type":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"content.tags":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"content.validFrom":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"content.validTo":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"content.key":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"content.isTechnical":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"content.confidentiality":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"content.value.@type":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},shareInfo:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"shareInfo.requestReference":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"shareInfo.notificationReference":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"shareInfo.sourceAttribute":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},deletionInfo:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"deletionInfo.deletionStatus":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"deletionInfo.deletionDate":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}},additionalProperties:!1}}},t.GetPeerSharedAttributesRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetPeerSharedAttributesRequest",definitions:{GetPeerSharedAttributesRequest:{type:"object",properties:{peer:{$ref:"#/definitions/AddressString"},onlyValid:{type:"boolean"},query:{$ref:"#/definitions/GetPeerSharedAttributesRequestQuery"},hideTechnical:{type:"boolean"},onlyLatestVersions:{type:"boolean",description:"default: true"}},required:["peer"],additionalProperties:!1},AddressString:{type:"string",pattern:"id1[A-Za-z0-9]{32,33}"},GetPeerSharedAttributesRequestQuery:{type:"object",properties:{createdAt:{type:"string"},"content.@type":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"content.tags":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"content.validFrom":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"content.validTo":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"content.key":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"content.isTechnical":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"content.confidentiality":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"content.value.@type":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},shareInfo:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"shareInfo.requestReference":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"shareInfo.notificationReference":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},deletionInfo:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"deletionInfo.deletionStatus":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"deletionInfo.deletionDate":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}},additionalProperties:!1}}},t.GetRepositoryAttributesRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetRepositoryAttributesRequest",definitions:{GetRepositoryAttributesRequest:{type:"object",properties:{onlyLatestVersions:{type:"boolean",description:"default: true"},query:{$ref:"#/definitions/GetRepositoryAttributesRequestQuery"}},additionalProperties:!1},GetRepositoryAttributesRequestQuery:{type:"object",properties:{createdAt:{type:"string"},"content.tags":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"content.validFrom":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"content.validTo":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"content.value.@type":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},deletionInfo:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"deletionInfo.deletionStatus":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"deletionInfo.deletionDate":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}},additionalProperties:!1}}},t.GetSharedVersionsOfRepositoryAttributeRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetSharedVersionsOfRepositoryAttributeRequest",definitions:{GetSharedVersionsOfRepositoryAttributeRequest:{type:"object",properties:{attributeId:{$ref:"#/definitions/AttributeIdString"},peers:{type:"array",items:{$ref:"#/definitions/AddressString"}},onlyLatestVersions:{type:"boolean",description:"default: true"}},required:["attributeId"],additionalProperties:!1},AttributeIdString:{type:"string",pattern:"ATT[A-Za-z0-9]{17}"},AddressString:{type:"string",pattern:"id1[A-Za-z0-9]{32,33}"}}},t.GetVersionsOfAttributeRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetVersionsOfAttributeRequest",definitions:{GetVersionsOfAttributeRequest:{type:"object",properties:{attributeId:{$ref:"#/definitions/AttributeIdString"}},required:["attributeId"],additionalProperties:!1},AttributeIdString:{type:"string",pattern:"ATT[A-Za-z0-9]{17}"}}},t.NotifyPeerAboutRepositoryAttributeSuccessionRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/NotifyPeerAboutRepositoryAttributeSuccessionRequest",definitions:{NotifyPeerAboutRepositoryAttributeSuccessionRequest:{type:"object",properties:{attributeId:{$ref:"#/definitions/AttributeIdString"},peer:{$ref:"#/definitions/AddressString"}},required:["attributeId","peer"],additionalProperties:!1},AttributeIdString:{type:"string",pattern:"ATT[A-Za-z0-9]{17}"},AddressString:{type:"string",pattern:"id1[A-Za-z0-9]{32,33}"}}},t.ShareRepositoryAttributeRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/ShareRepositoryAttributeRequest",definitions:{ShareRepositoryAttributeRequest:{type:"object",properties:{attributeId:{$ref:"#/definitions/AttributeIdString"},peer:{$ref:"#/definitions/AddressString"},requestMetadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},metadata:{type:"object"},expiresAt:{$ref:"#/definitions/ISO8601DateTimeString"}},additionalProperties:!1},requestItemMetadata:{type:"object",properties:{title:{type:"string"},description:{type:"string"},metadata:{type:"object"},requireManualDecision:{type:"boolean"}},additionalProperties:!1}},required:["attributeId","peer"],additionalProperties:!1},AttributeIdString:{type:"string",pattern:"ATT[A-Za-z0-9]{17}"},AddressString:{type:"string",pattern:"id1[A-Za-z0-9]{32,33}"},ISO8601DateTimeString:{type:"string",errorMessage:"must match ISO8601 datetime format",pattern:"^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"}}},t.SucceedRelationshipAttributeAndNotifyPeerRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/SucceedRelationshipAttributeAndNotifyPeerRequest",definitions:{SucceedRelationshipAttributeAndNotifyPeerRequest:{type:"object",properties:{predecessorId:{$ref:"#/definitions/AttributeIdString"},successorContent:{type:"object",properties:{value:{$ref:"#/definitions/AttributeValues.Relationship.Json"},validFrom:{$ref:"#/definitions/ISO8601DateTimeString"},validTo:{$ref:"#/definitions/ISO8601DateTimeString"}},required:["value"],additionalProperties:!1}},required:["predecessorId","successorContent"],additionalProperties:!1},AttributeIdString:{type:"string",pattern:"ATT[A-Za-z0-9]{17}"},"AttributeValues.Relationship.Json":{anyOf:[{$ref:"#/definitions/ProprietaryBooleanJSON"},{$ref:"#/definitions/ProprietaryCountryJSON"},{$ref:"#/definitions/ProprietaryEMailAddressJSON"},{$ref:"#/definitions/ProprietaryFileReferenceJSON"},{$ref:"#/definitions/ProprietaryFloatJSON"},{$ref:"#/definitions/ProprietaryHEXColorJSON"},{$ref:"#/definitions/ProprietaryIntegerJSON"},{$ref:"#/definitions/ProprietaryLanguageJSON"},{$ref:"#/definitions/ProprietaryPhoneNumberJSON"},{$ref:"#/definitions/ProprietaryStringJSON"},{$ref:"#/definitions/ProprietaryURLJSON"},{$ref:"#/definitions/ProprietaryJSONJSON"},{$ref:"#/definitions/ProprietaryXMLJSON"},{$ref:"#/definitions/ConsentJSON"}]},ProprietaryBooleanJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryBoolean"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"boolean"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ValueHintsOverrideJSON:{type:"object",additionalProperties:!1,properties:{"@type":{type:"string",const:"ValueHints"},editHelp:{type:"string"},min:{type:"number"},max:{type:"number"},pattern:{type:"string"},values:{type:"array",items:{$ref:"#/definitions/ValueHintsValueJSON"}},defaultValue:{type:["string","number","boolean"]},propertyHints:{type:"object",additionalProperties:{$ref:"#/definitions/ValueHintsJSON"}},"@context":{type:"string"},"@version":{type:"string"}}},ValueHintsValueJSON:{type:"object",properties:{key:{type:["string","number","boolean"]},displayName:{type:"string"}},required:["key","displayName"],additionalProperties:!1},ValueHintsJSON:{type:"object",properties:{"@type":{type:"string",const:"ValueHints"},"@context":{type:"string"},"@version":{type:"string"},editHelp:{type:"string"},min:{type:"number"},max:{type:"number"},pattern:{type:"string"},values:{type:"array",items:{$ref:"#/definitions/ValueHintsValueJSON"}},defaultValue:{type:["string","number","boolean"]},propertyHints:{type:"object",additionalProperties:{$ref:"#/definitions/ValueHintsJSON"}}},required:["@type"],additionalProperties:!1},ProprietaryCountryJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryCountry"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryEMailAddressJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryEMailAddress"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryFileReferenceJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryFileReference"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryFloatJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryFloat"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"number"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryHEXColorJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryHEXColor"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryIntegerJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryInteger"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"number"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryLanguageJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryLanguage"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryPhoneNumberJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryPhoneNumber"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryStringJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryString"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryURLJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryURL"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"}},required:["@type","title","value"],additionalProperties:!1},ProprietaryJSONJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryJSON"},"@context":{type:"string"},"@version":{type:"string"},title:{type:"string"},description:{type:"string"},value:{}},required:["@type","title","value"],additionalProperties:!1},ProprietaryXMLJSON:{type:"object",properties:{"@type":{type:"string",const:"ProprietaryXML"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},title:{type:"string"},description:{type:"string"},valueHintsOverride:{$ref:"#/definitions/ValueHintsOverrideJSON"},schemaURL:{type:"string"}},required:["@type","title","value"],additionalProperties:!1},ConsentJSON:{type:"object",properties:{"@type":{type:"string"},"@context":{type:"string"},"@version":{type:"string"},consent:{type:"string"},link:{type:"string"}},required:["@type","consent"],additionalProperties:!1},ISO8601DateTimeString:{type:"string",errorMessage:"must match ISO8601 datetime format",pattern:"^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"}}},t.SucceedRepositoryAttributeRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/SucceedRepositoryAttributeRequest",definitions:{SucceedRepositoryAttributeRequest:{type:"object",properties:{predecessorId:{type:"string"},successorContent:{type:"object",properties:{value:{$ref:"#/definitions/AttributeValues.Identity.Json"},tags:{type:"array",items:{type:"string"}},validFrom:{$ref:"#/definitions/ISO8601DateTimeString"},validTo:{$ref:"#/definitions/ISO8601DateTimeString"}},required:["value"],additionalProperties:!1}},required:["predecessorId","successorContent"],additionalProperties:!1},"AttributeValues.Identity.Json":{anyOf:[{$ref:"#/definitions/AttributeValues.Identity.Editable.Json"},{$ref:"#/definitions/AttributeValues.Identity.Uneditable.Json"}]},"AttributeValues.Identity.Editable.Json":{anyOf:[{$ref:"#/definitions/AffiliationJSON"},{$ref:"#/definitions/BirthDateJSON"},{$ref:"#/definitions/BirthNameJSON"},{$ref:"#/definitions/BirthPlaceJSON"},{$ref:"#/definitions/CitizenshipJSON"},{$ref:"#/definitions/CommunicationLanguageJSON"},{$ref:"#/definitions/DeliveryBoxAddressJSON"},{$ref:"#/definitions/DisplayNameJSON"},{$ref:"#/definitions/EMailAddressJSON"},{$ref:"#/definitions/FaxNumberJSON"},{$ref:"#/definitions/IdentityFileReferenceJSON"},{$ref:"#/definitions/JobTitleJSON"},{$ref:"#/definitions/NationalityJSON"},{$ref:"#/definitions/PersonNameJSON"},{$ref:"#/definitions/PhoneNumberJSON"},{$ref:"#/definitions/PostOfficeBoxAddressJSON"},{$ref:"#/definitions/PseudonymJSON"},{$ref:"#/definitions/SexJSON"},{$ref:"#/definitions/StreetAddressJSON"},{$ref:"#/definitions/WebsiteJSON"}]},AffiliationJSON:{type:"object",properties:{"@type":{type:"string",const:"Affiliation"},"@context":{type:"string"},"@version":{type:"string"},organization:{type:"string"},role:{type:"string"},unit:{type:"string"}},required:["@type","organization"],additionalProperties:!1},BirthDateJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthDate"},"@context":{type:"string"},"@version":{type:"string"},day:{type:"number"},month:{type:"number"},year:{type:"number"}},required:["@type","day","month","year"],additionalProperties:!1},BirthNameJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthName"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},BirthPlaceJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthPlace"},"@context":{type:"string"},"@version":{type:"string"},city:{type:"string"},country:{type:"string"},state:{type:"string"}},required:["@type","city","country"],additionalProperties:!1},CitizenshipJSON:{type:"object",properties:{"@type":{type:"string",const:"Citizenship"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},CommunicationLanguageJSON:{type:"object",properties:{"@type":{type:"string",const:"CommunicationLanguage"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},DeliveryBoxAddressJSON:{type:"object",properties:{"@type":{type:"string",const:"DeliveryBoxAddress"},"@context":{type:"string"},"@version":{type:"string"},recipient:{type:"string"},userId:{type:"string"},deliveryBoxId:{type:"string"},zipCode:{type:"string"},city:{type:"string"},country:{type:"string"},phoneNumber:{type:"string"},state:{type:"string"}},required:["@type","city","country","deliveryBoxId","recipient","userId","zipCode"],additionalProperties:!1},DisplayNameJSON:{type:"object",properties:{"@type":{type:"string",const:"DisplayName"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},EMailAddressJSON:{type:"object",properties:{"@type":{type:"string",const:"EMailAddress"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},FaxNumberJSON:{type:"object",properties:{"@type":{type:"string",const:"FaxNumber"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},IdentityFileReferenceJSON:{type:"object",properties:{"@type":{type:"string",const:"IdentityFileReference"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},JobTitleJSON:{type:"object",properties:{"@type":{type:"string",const:"JobTitle"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},NationalityJSON:{type:"object",properties:{"@type":{type:"string",const:"Nationality"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},PersonNameJSON:{type:"object",properties:{"@type":{type:"string",const:"PersonName"},"@context":{type:"string"},"@version":{type:"string"},givenName:{type:"string"},middleName:{type:"string"},surname:{type:"string"},honorificSuffix:{type:"string"},honorificPrefix:{type:"string"}},required:["@type","givenName","surname"],additionalProperties:!1},PhoneNumberJSON:{type:"object",properties:{"@type":{type:"string",const:"PhoneNumber"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},PostOfficeBoxAddressJSON:{type:"object",properties:{"@type":{type:"string",const:"PostOfficeBoxAddress"},"@context":{type:"string"},"@version":{type:"string"},recipient:{type:"string"},boxId:{type:"string"},zipCode:{type:"string"},city:{type:"string"},country:{type:"string"},state:{type:"string"}},required:["@type","boxId","city","country","recipient","zipCode"],additionalProperties:!1},PseudonymJSON:{type:"object",properties:{"@type":{type:"string",const:"Pseudonym"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},SexJSON:{type:"object",properties:{"@type":{type:"string",const:"Sex"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},StreetAddressJSON:{type:"object",properties:{"@type":{type:"string",const:"StreetAddress"},"@context":{type:"string"},"@version":{type:"string"},recipient:{type:"string"},street:{type:"string"},houseNo:{type:"string"},zipCode:{type:"string"},city:{type:"string"},country:{type:"string"},state:{type:"string"}},required:["@type","city","country","houseNo","recipient","street","zipCode"],additionalProperties:!1},WebsiteJSON:{type:"object",properties:{"@type":{type:"string",const:"Website"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},"AttributeValues.Identity.Uneditable.Json":{anyOf:[{$ref:"#/definitions/AffiliationOrganizationJSON"},{$ref:"#/definitions/AffiliationRoleJSON"},{$ref:"#/definitions/AffiliationUnitJSON"},{$ref:"#/definitions/BirthCityJSON"},{$ref:"#/definitions/BirthCountryJSON"},{$ref:"#/definitions/BirthDayJSON"},{$ref:"#/definitions/BirthMonthJSON"},{$ref:"#/definitions/BirthStateJSON"},{$ref:"#/definitions/BirthYearJSON"},{$ref:"#/definitions/CityJSON"},{$ref:"#/definitions/CountryJSON"},{$ref:"#/definitions/GivenNameJSON"},{$ref:"#/definitions/HonorificPrefixJSON"},{$ref:"#/definitions/HonorificSuffixJSON"},{$ref:"#/definitions/HouseNumberJSON"},{$ref:"#/definitions/MiddleNameJSON"},{$ref:"#/definitions/SchematizedXMLJSON"},{$ref:"#/definitions/StateJSON"},{$ref:"#/definitions/StreetJSON"},{$ref:"#/definitions/SurnameJSON"},{$ref:"#/definitions/ZipCodeJSON"}]},AffiliationOrganizationJSON:{type:"object",properties:{"@type":{type:"string",const:"AffiliationOrganization"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},AffiliationRoleJSON:{type:"object",properties:{"@type":{type:"string",const:"AffiliationRole"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},AffiliationUnitJSON:{type:"object",properties:{"@type":{type:"string",const:"AffiliationUnit"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},BirthCityJSON:{type:"object",properties:{value:{type:"string"},"@context":{type:"string"},"@version":{type:"string"},"@type":{type:"string",const:"BirthCity"}},required:["@type","value"],additionalProperties:!1},BirthCountryJSON:{type:"object",properties:{value:{type:"string"},"@context":{type:"string"},"@version":{type:"string"},"@type":{type:"string",const:"BirthCountry"}},required:["@type","value"],additionalProperties:!1},BirthDayJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthDay"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"number"}},required:["@type","value"],additionalProperties:!1},BirthMonthJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthMonth"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"number",enum:[1,2,3,4,5,6,7,8,9,10,11,12],description:"Month values: 1 (january) - 12 (december)"}},required:["@type","value"],additionalProperties:!1},BirthStateJSON:{type:"object",properties:{value:{type:"string"},"@context":{type:"string"},"@version":{type:"string"},"@type":{type:"string",const:"BirthState"}},required:["@type","value"],additionalProperties:!1},BirthYearJSON:{type:"object",properties:{"@type":{type:"string",const:"BirthYear"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"number"}},required:["@type","value"],additionalProperties:!1},CityJSON:{type:"object",properties:{"@type":{type:"string",const:"City"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},CountryJSON:{type:"object",properties:{"@type":{type:"string",const:"Country"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},GivenNameJSON:{type:"object",properties:{"@type":{type:"string",const:"GivenName"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},HonorificPrefixJSON:{type:"object",properties:{"@type":{type:"string",const:"HonorificPrefix"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},HonorificSuffixJSON:{type:"object",properties:{"@type":{type:"string",const:"HonorificSuffix"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},HouseNumberJSON:{type:"object",properties:{"@type":{type:"string",const:"HouseNumber"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},MiddleNameJSON:{type:"object",properties:{"@type":{type:"string",const:"MiddleName"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},SchematizedXMLJSON:{type:"object",properties:{"@type":{type:"string",const:"SchematizedXML"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"},schemaURL:{type:"string"}},required:["@type","value"],additionalProperties:!1},StateJSON:{type:"object",properties:{"@type":{type:"string",const:"State"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},StreetJSON:{type:"object",properties:{"@type":{type:"string",const:"Street"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},SurnameJSON:{type:"object",properties:{"@type":{type:"string",const:"Surname"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},ZipCodeJSON:{type:"object",properties:{"@type":{type:"string",const:"ZipCode"},"@context":{type:"string"},"@version":{type:"string"},value:{type:"string"}},required:["@type","value"],additionalProperties:!1},ISO8601DateTimeString:{type:"string",errorMessage:"must match ISO8601 datetime format",pattern:"^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"}}},t.ValidateIQLQueryRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/ValidateIQLQueryRequest",definitions:{ValidateIQLQueryRequest:{type:"object",properties:{query:{$ref:"#/definitions/IQLQueryJSON"}},required:["query"],additionalProperties:!1},IQLQueryJSON:{type:"object",properties:{"@type":{type:"string",const:"IQLQuery"},"@context":{type:"string"},"@version":{type:"string"},queryString:{type:"string"},attributeCreationHints:{$ref:"#/definitions/IQLQueryCreationHintsJSON"}},required:["@type","queryString"],additionalProperties:!1},IQLQueryCreationHintsJSON:{type:"object",properties:{valueType:{$ref:"#/definitions/AttributeValues.Identity.TypeName"},tags:{type:"array",items:{type:"string"}}},required:["valueType"],additionalProperties:!1},"AttributeValues.Identity.TypeName":{anyOf:[{$ref:"#/definitions/AttributeValues.Identity.Editable.TypeName"},{$ref:"#/definitions/AttributeValues.Identity.Uneditable.TypeName"}]},"AttributeValues.Identity.Editable.TypeName":{type:"string",enum:["Affiliation","BirthDate","BirthName","BirthPlace","Citizenship","CommunicationLanguage","DeliveryBoxAddress","DisplayName","EMailAddress","FaxNumber","IdentityFileReference","SchematizedXML","JobTitle","Nationality","PersonName","PhoneNumber","PostOfficeBoxAddress","Pseudonym","Sex","StreetAddress","Website"]},"AttributeValues.Identity.Uneditable.TypeName":{type:"string",enum:["AffiliationOrganization","AffiliationRole","AffiliationUnit","BirthCity","BirthCountry","BirthDay","BirthMonth","BirthState","BirthYear","City","Country","GivenName","HonorificPrefix","HonorificSuffix","HouseNumber","MiddleName","SchematizedXML","State","Street","Surname","ZipCode"]}}},t.CreateDraftRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/CreateDraftRequest",definitions:{CreateDraftRequest:{type:"object",properties:{content:{},type:{type:"string"}},required:["content"],additionalProperties:!1}}},t.DeleteDraftRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/DeleteDraftRequest",definitions:{DeleteDraftRequest:{type:"object",properties:{id:{$ref:"#/definitions/LocalDraftIdString"}},required:["id"],additionalProperties:!1},LocalDraftIdString:{type:"string",pattern:"LCLDRF[A-Za-z0-9]{14}"}}},t.GetDraftRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetDraftRequest",definitions:{GetDraftRequest:{type:"object",properties:{id:{$ref:"#/definitions/LocalDraftIdString"}},required:["id"],additionalProperties:!1},LocalDraftIdString:{type:"string",pattern:"LCLDRF[A-Za-z0-9]{14}"}}},t.GetDraftsRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetDraftsRequest",definitions:{GetDraftsRequest:{type:"object",properties:{query:{$ref:"#/definitions/GetDraftsQuery"}},additionalProperties:!1},GetDraftsQuery:{type:"object",properties:{type:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},createdAt:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},lastModifiedAt:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}},additionalProperties:!1}}},t.UpdateDraftRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/UpdateDraftRequest",definitions:{UpdateDraftRequest:{type:"object",properties:{id:{$ref:"#/definitions/LocalDraftIdString"},content:{}},required:["id","content"],additionalProperties:!1},LocalDraftIdString:{type:"string",pattern:"LCLDRF[A-Za-z0-9]{14}"}}},t.GetNotificationRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetNotificationRequest",definitions:{GetNotificationRequest:{type:"object",properties:{id:{$ref:"#/definitions/NotificationIdString"}},required:["id"],additionalProperties:!1},NotificationIdString:{type:"string",pattern:"NOT[A-Za-z0-9]{17}"}}},t.GetNotificationsRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetNotificationsRequest",definitions:{GetNotificationsRequest:{type:"object",properties:{query:{$ref:"#/definitions/GetNotificationsRequestQuery"}},additionalProperties:!1},GetNotificationsRequestQuery:{type:"object",additionalProperties:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}}}},t.ProcessNotificationByIdRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/ProcessNotificationByIdRequest",definitions:{ProcessNotificationByIdRequest:{type:"object",properties:{notificationId:{$ref:"#/definitions/NotificationIdString"}},required:["notificationId"],additionalProperties:!1},NotificationIdString:{type:"string",pattern:"NOT[A-Za-z0-9]{17}"}}},t.ReceivedNotificationRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/ReceivedNotificationRequest",definitions:{ReceivedNotificationRequest:{type:"object",properties:{messageId:{$ref:"#/definitions/MessageIdString"}},required:["messageId"],additionalProperties:!1},MessageIdString:{type:"string",pattern:"MSG[A-Za-z0-9]{17}"}}},t.SentNotificationRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/SentNotificationRequest",definitions:{SentNotificationRequest:{type:"object",properties:{messageId:{$ref:"#/definitions/MessageIdString"}},required:["messageId"],additionalProperties:!1},MessageIdString:{type:"string",pattern:"MSG[A-Za-z0-9]{17}"}}},t.CreateSettingRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/CreateSettingRequest",definitions:{CreateSettingRequest:{type:"object",properties:{key:{type:"string"},value:{},reference:{$ref:"#/definitions/GenericIdString"},scope:{type:"string",enum:["Identity","Device","Relationship"]},succeedsAt:{$ref:"#/definitions/ISO8601DateTimeString"},succeedsItem:{$ref:"#/definitions/LocalSettingIdString"}},required:["key","value"],additionalProperties:!1},GenericIdString:{type:"string",pattern:"[A-Za-z0-9]{20}"},ISO8601DateTimeString:{type:"string",errorMessage:"must match ISO8601 datetime format",pattern:"^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"},LocalSettingIdString:{type:"string",pattern:"LCLSET[A-Za-z0-9]{14}"}}},t.DeleteSettingRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/DeleteSettingRequest",definitions:{DeleteSettingRequest:{type:"object",properties:{id:{$ref:"#/definitions/LocalSettingIdString"}},required:["id"],additionalProperties:!1},LocalSettingIdString:{type:"string",pattern:"LCLSET[A-Za-z0-9]{14}"}}},t.GetSettingRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetSettingRequest",definitions:{GetSettingRequest:{type:"object",properties:{id:{$ref:"#/definitions/LocalSettingIdString"}},required:["id"],additionalProperties:!1},LocalSettingIdString:{type:"string",pattern:"LCLSET[A-Za-z0-9]{14}"}}},t.GetSettingByKeyRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetSettingByKeyRequest",definitions:{GetSettingByKeyRequest:{type:"object",properties:{key:{type:"string"}},required:["key"],additionalProperties:!1}}},t.GetSettingsRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetSettingsRequest",definitions:{GetSettingsRequest:{type:"object",properties:{query:{$ref:"#/definitions/GetSettingsQuery"}},additionalProperties:!1},GetSettingsQuery:{type:"object",properties:{key:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},scope:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},reference:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},createdAt:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},succeedsItem:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},succeedsAt:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}},additionalProperties:!1}}},t.UpdateSettingRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/UpdateSettingRequest",definitions:{UpdateSettingRequest:{type:"object",properties:{id:{$ref:"#/definitions/LocalSettingIdString"},value:{}},required:["id","value"],additionalProperties:!1},LocalSettingIdString:{type:"string",pattern:"LCLSET[A-Za-z0-9]{14}"}}},t.DownloadFileRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/DownloadFileRequest",definitions:{DownloadFileRequest:{type:"object",properties:{id:{$ref:"#/definitions/FileIdString"}},required:["id"],additionalProperties:!1},FileIdString:{type:"string",pattern:"FIL[A-Za-z0-9]{17}"}}},t.LoadItemFromTruncatedReferenceRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/LoadItemFromTruncatedReferenceRequest",definitions:{LoadItemFromTruncatedReferenceRequest:{type:"object",properties:{reference:{anyOf:[{$ref:"#/definitions/TokenReferenceString"},{$ref:"#/definitions/FileReferenceString"},{$ref:"#/definitions/RelationshipTemplateReferenceString"}]}},required:["reference"],additionalProperties:!1},TokenReferenceString:{type:"string",pattern:"VE9L.{84}"},FileReferenceString:{type:"string",pattern:"RklM.{84}"},RelationshipTemplateReferenceString:{type:"string",pattern:"UkxU.{84}"}}},t.RegisterPushNotificationTokenRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/RegisterPushNotificationTokenRequest",definitions:{RegisterPushNotificationTokenRequest:{type:"object",properties:{handle:{type:"string"},platform:{type:"string"},appId:{type:"string"},environment:{type:"string",enum:["Development","Production"]}},required:["handle","platform","appId"],additionalProperties:!1}}},t.SyncDatawalletRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/SyncDatawalletRequest",definitions:{SyncDatawalletRequest:{type:"object",additionalProperties:!1}}},t.DownloadAttachmentRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/DownloadAttachmentRequest",definitions:{DownloadAttachmentRequest:{type:"object",properties:{id:{$ref:"#/definitions/MessageIdString"},attachmentId:{$ref:"#/definitions/FileIdString"}},required:["id","attachmentId"],additionalProperties:!1},MessageIdString:{type:"string",pattern:"MSG[A-Za-z0-9]{17}"},FileIdString:{type:"string",pattern:"FIL[A-Za-z0-9]{17}"}}},t.SyncEverythingRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/SyncEverythingRequest",definitions:{SyncEverythingRequest:{type:"object",additionalProperties:!1}}},t.CreateRelationshipChallengeRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/CreateRelationshipChallengeRequest",definitions:{CreateRelationshipChallengeRequest:{type:"object",properties:{challengeType:{type:"string",const:"Relationship"},relationship:{$ref:"#/definitions/RelationshipIdString"}},required:["challengeType","relationship"],additionalProperties:!1},RelationshipIdString:{type:"string",pattern:"REL[A-Za-z0-9]{17}"}}},t.isCreateRelationshipChallengeRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/isCreateRelationshipChallengeRequest",definitions:{isCreateRelationshipChallengeRequest:{$comment:"(value: any) => value is CreateRelationshipChallengeRequest",type:"object",properties:{namedArgs:{type:"object",properties:{value:{}},required:["value"],additionalProperties:!1}}}}},t.CreateIdentityChallengeRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/CreateIdentityChallengeRequest",definitions:{CreateIdentityChallengeRequest:{type:"object",properties:{challengeType:{type:"string",const:"Identity"}},required:["challengeType"],additionalProperties:!1}}},t.isCreateIdentityChallengeRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/isCreateIdentityChallengeRequest",definitions:{isCreateIdentityChallengeRequest:{$comment:"(value: any) => value is CreateIdentityChallengeRequest",type:"object",properties:{namedArgs:{type:"object",properties:{value:{}},required:["value"],additionalProperties:!1}}}}},t.CreateDeviceChallengeRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/CreateDeviceChallengeRequest",definitions:{CreateDeviceChallengeRequest:{type:"object",properties:{challengeType:{type:"string",const:"Device"}},required:["challengeType"],additionalProperties:!1}}},t.isCreateDeviceChallengeRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/isCreateDeviceChallengeRequest",definitions:{isCreateDeviceChallengeRequest:{$comment:"(value: any) => value is CreateDeviceChallengeRequest",type:"object",properties:{namedArgs:{type:"object",properties:{value:{}},required:["value"],additionalProperties:!1}}}}},t.CreateChallengeRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/CreateChallengeRequest",definitions:{CreateChallengeRequest:{anyOf:[{$ref:"#/definitions/CreateRelationshipChallengeRequest"},{$ref:"#/definitions/CreateIdentityChallengeRequest"},{$ref:"#/definitions/CreateDeviceChallengeRequest"}]},CreateRelationshipChallengeRequest:{type:"object",properties:{challengeType:{type:"string",const:"Relationship"},relationship:{$ref:"#/definitions/RelationshipIdString"}},required:["challengeType","relationship"],additionalProperties:!1},RelationshipIdString:{type:"string",pattern:"REL[A-Za-z0-9]{17}"},CreateIdentityChallengeRequest:{type:"object",properties:{challengeType:{type:"string",const:"Identity"}},required:["challengeType"],additionalProperties:!1},CreateDeviceChallengeRequest:{type:"object",properties:{challengeType:{type:"string",const:"Device"}},required:["challengeType"],additionalProperties:!1}}},t.ValidateChallengeRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/ValidateChallengeRequest",definitions:{ValidateChallengeRequest:{type:"object",properties:{challengeString:{type:"string"},signature:{type:"string"}},required:["challengeString","signature"],additionalProperties:!1}}},t.CreateDeviceRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/CreateDeviceRequest",definitions:{CreateDeviceRequest:{type:"object",properties:{name:{type:"string"},description:{type:"string"},isAdmin:{type:"boolean"}},additionalProperties:!1}}},t.CreateDeviceOnboardingTokenRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/CreateDeviceOnboardingTokenRequest",definitions:{CreateDeviceOnboardingTokenRequest:{type:"object",properties:{id:{$ref:"#/definitions/DeviceIdString"},expiresAt:{$ref:"#/definitions/ISO8601DateTimeString"},profileName:{type:"string"}},required:["id"],additionalProperties:!1},DeviceIdString:{type:"string",pattern:"DVC[A-Za-z0-9]{17}"},ISO8601DateTimeString:{type:"string",errorMessage:"must match ISO8601 datetime format",pattern:"^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"}}},t.DeleteDeviceRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/DeleteDeviceRequest",definitions:{DeleteDeviceRequest:{type:"object",properties:{id:{$ref:"#/definitions/DeviceIdString"}},required:["id"],additionalProperties:!1},DeviceIdString:{type:"string",pattern:"DVC[A-Za-z0-9]{17}"}}},t.GetDeviceRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetDeviceRequest",definitions:{GetDeviceRequest:{type:"object",properties:{id:{$ref:"#/definitions/DeviceIdString"}},required:["id"],additionalProperties:!1},DeviceIdString:{type:"string",pattern:"DVC[A-Za-z0-9]{17}"}}},t.GetDeviceOnboardingInfoRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetDeviceOnboardingInfoRequest",definitions:{GetDeviceOnboardingInfoRequest:{type:"object",properties:{id:{$ref:"#/definitions/GenericIdString"},profileName:{type:"string"}},required:["id"],additionalProperties:!1},GenericIdString:{type:"string",pattern:"[A-Za-z0-9]{20}"}}},t.UpdateDeviceRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/UpdateDeviceRequest",definitions:{UpdateDeviceRequest:{type:"object",properties:{id:{$ref:"#/definitions/DeviceIdString"},name:{type:"string"},description:{type:"string"}},required:["id"],additionalProperties:!1},DeviceIdString:{type:"string",pattern:"DVC[A-Za-z0-9]{17}"}}},t.CreateQRCodeForFileRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/CreateQRCodeForFileRequest",definitions:{CreateQRCodeForFileRequest:{type:"object",properties:{fileId:{$ref:"#/definitions/FileIdString"}},required:["fileId"],additionalProperties:!1},FileIdString:{type:"string",pattern:"FIL[A-Za-z0-9]{17}"}}},t.CreateTokenForFileRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/CreateTokenForFileRequest",definitions:{CreateTokenForFileRequest:{type:"object",properties:{fileId:{$ref:"#/definitions/FileIdString"},expiresAt:{$ref:"#/definitions/ISO8601DateTimeString"},ephemeral:{type:"boolean"}},required:["fileId"],additionalProperties:!1},FileIdString:{type:"string",pattern:"FIL[A-Za-z0-9]{17}"},ISO8601DateTimeString:{type:"string",errorMessage:"must match ISO8601 datetime format",pattern:"^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"}}},t.CreateTokenQRCodeForFileRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/CreateTokenQRCodeForFileRequest",definitions:{CreateTokenQRCodeForFileRequest:{type:"object",properties:{fileId:{$ref:"#/definitions/FileIdString"},expiresAt:{$ref:"#/definitions/ISO8601DateTimeString"}},required:["fileId"],additionalProperties:!1},FileIdString:{type:"string",pattern:"FIL[A-Za-z0-9]{17}"},ISO8601DateTimeString:{type:"string",errorMessage:"must match ISO8601 datetime format",pattern:"^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"}}},t.GetFileRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetFileRequest",definitions:{GetFileRequest:{type:"object",properties:{id:{$ref:"#/definitions/FileIdString"}},required:["id"],additionalProperties:!1},FileIdString:{type:"string",pattern:"FIL[A-Za-z0-9]{17}"}}},t.GetFilesRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetFilesRequest",definitions:{GetFilesRequest:{type:"object",properties:{query:{$ref:"#/definitions/GetFilesQuery"},ownerRestriction:{$ref:"#/definitions/OwnerRestriction"}},additionalProperties:!1},GetFilesQuery:{type:"object",properties:{createdAt:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},createdBy:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},createdByDevice:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},description:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},expiresAt:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},filename:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},filesize:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},mimetype:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},title:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},isOwn:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}},additionalProperties:!1},OwnerRestriction:{type:"string",enum:["o","p"]}}},t.GetOrLoadFileViaSecretRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetOrLoadFileViaSecretRequest",definitions:{GetOrLoadFileViaSecretRequest:{type:"object",properties:{id:{$ref:"#/definitions/FileIdString"},secretKey:{type:"string",minLength:10}},required:["id","secretKey"],additionalProperties:!1},FileIdString:{type:"string",pattern:"FIL[A-Za-z0-9]{17}"}}},t.GetOrLoadFileViaReferenceRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetOrLoadFileViaReferenceRequest",definitions:{GetOrLoadFileViaReferenceRequest:{type:"object",properties:{reference:{anyOf:[{$ref:"#/definitions/TokenReferenceString"},{$ref:"#/definitions/FileReferenceString"}]}},required:["reference"],additionalProperties:!1,errorMessage:"token / file reference invalid"},TokenReferenceString:{type:"string",pattern:"VE9L.{84}"},FileReferenceString:{type:"string",pattern:"RklM.{84}"}}},t.GetOrLoadFileRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetOrLoadFileRequest",definitions:{GetOrLoadFileRequest:{anyOf:[{$ref:"#/definitions/GetOrLoadFileViaSecretRequest"},{$ref:"#/definitions/GetOrLoadFileViaReferenceRequest"}]},GetOrLoadFileViaSecretRequest:{type:"object",properties:{id:{$ref:"#/definitions/FileIdString"},secretKey:{type:"string",minLength:10}},required:["id","secretKey"],additionalProperties:!1},FileIdString:{type:"string",pattern:"FIL[A-Za-z0-9]{17}"},GetOrLoadFileViaReferenceRequest:{type:"object",properties:{reference:{anyOf:[{$ref:"#/definitions/TokenReferenceString"},{$ref:"#/definitions/FileReferenceString"}]}},required:["reference"],additionalProperties:!1,errorMessage:"token / file reference invalid"},TokenReferenceString:{type:"string",pattern:"VE9L.{84}"},FileReferenceString:{type:"string",pattern:"RklM.{84}"}}},t.UploadOwnFileRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/UploadOwnFileRequest",definitions:{UploadOwnFileRequest:{type:"object",properties:{content:{type:"object",properties:{BYTES_PER_ELEMENT:{type:"number"},buffer:{type:"object",properties:{byteLength:{type:"number"}},required:["byteLength"],additionalProperties:!1},byteLength:{type:"number"},byteOffset:{type:"number"},length:{type:"number"}},required:["BYTES_PER_ELEMENT","buffer","byteLength","byteOffset","length"],additionalProperties:{type:"number"}},filename:{type:"string"},mimetype:{type:"string"},expiresAt:{$ref:"#/definitions/ISO8601DateTimeString"},title:{type:"string"},description:{type:"string"}},required:["content","filename","mimetype","expiresAt","title"],additionalProperties:!1},ISO8601DateTimeString:{type:"string",errorMessage:"must match ISO8601 datetime format",pattern:"^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"}}},t.UploadOwnFileValidatableRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/UploadOwnFileValidatableRequest",definitions:{UploadOwnFileValidatableRequest:{type:"object",properties:{filename:{type:"string"},mimetype:{type:"string"},expiresAt:{$ref:"#/definitions/ISO8601DateTimeString"},title:{type:"string"},description:{type:"string"},content:{type:"object"}},required:["content","expiresAt","filename","mimetype","title"],additionalProperties:!1},ISO8601DateTimeString:{type:"string",errorMessage:"must match ISO8601 datetime format",pattern:"^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"}}},t.CheckIdentityRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/CheckIdentityRequest",definitions:{CheckIdentityRequest:{type:"object",properties:{address:{$ref:"#/definitions/AddressString"}},required:["address"],additionalProperties:!1},AddressString:{type:"string",pattern:"id1[A-Za-z0-9]{32,33}"}}},t.GetAttachmentMetadataRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetAttachmentMetadataRequest",definitions:{GetAttachmentMetadataRequest:{type:"object",properties:{id:{$ref:"#/definitions/MessageIdString"},attachmentId:{$ref:"#/definitions/FileIdString"}},required:["id","attachmentId"],additionalProperties:!1},MessageIdString:{type:"string",pattern:"MSG[A-Za-z0-9]{17}"},FileIdString:{type:"string",pattern:"FIL[A-Za-z0-9]{17}"}}},t.GetMessageRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetMessageRequest",definitions:{GetMessageRequest:{type:"object",properties:{id:{$ref:"#/definitions/MessageIdString"}},required:["id"],additionalProperties:!1},MessageIdString:{type:"string",pattern:"MSG[A-Za-z0-9]{17}"}}},t.GetMessagesRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetMessagesRequest",definitions:{GetMessagesRequest:{type:"object",properties:{query:{$ref:"#/definitions/GetMessagesQuery"}},additionalProperties:!1},GetMessagesQuery:{type:"object",properties:{createdBy:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},createdByDevice:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},createdAt:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"content.@type":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"content.body":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"content.subject":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},attachments:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"recipients.address":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"recipients.relationshipId":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},wasReadAt:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},participant:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}},additionalProperties:!1}}},t.MarkMessageAsReadRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/MarkMessageAsReadRequest",definitions:{MarkMessageAsReadRequest:{type:"object",properties:{id:{$ref:"#/definitions/MessageIdString"}},required:["id"],additionalProperties:!1},MessageIdString:{type:"string",pattern:"MSG[A-Za-z0-9]{17}"}}},t.MarkMessageAsUnreadRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/MarkMessageAsUnreadRequest",definitions:{MarkMessageAsUnreadRequest:{type:"object",properties:{id:{$ref:"#/definitions/MessageIdString"}},required:["id"],additionalProperties:!1},MessageIdString:{type:"string",pattern:"MSG[A-Za-z0-9]{17}"}}},t.SendMessageRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/SendMessageRequest",definitions:{SendMessageRequest:{type:"object",properties:{recipients:{type:"array",items:{$ref:"#/definitions/AddressString"},minItems:1},content:{},attachments:{type:"array",items:{$ref:"#/definitions/FileIdString"}}},required:["recipients","content"],additionalProperties:!1},AddressString:{type:"string",pattern:"id1[A-Za-z0-9]{32,33}"},FileIdString:{type:"string",pattern:"FIL[A-Za-z0-9]{17}"}}},t.AcceptRelationshipChangeRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/AcceptRelationshipChangeRequest",definitions:{AcceptRelationshipChangeRequest:{type:"object",properties:{relationshipId:{$ref:"#/definitions/RelationshipIdString"},changeId:{$ref:"#/definitions/RelationshipChangeIdString"},content:{}},required:["relationshipId","changeId","content"],additionalProperties:!1},RelationshipIdString:{type:"string",pattern:"REL[A-Za-z0-9]{17}"},RelationshipChangeIdString:{type:"string",pattern:"RCH[A-Za-z0-9]{17}"}}},t.CreateRelationshipRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/CreateRelationshipRequest",definitions:{CreateRelationshipRequest:{type:"object",properties:{templateId:{$ref:"#/definitions/RelationshipTemplateIdString"},content:{}},required:["templateId","content"],additionalProperties:!1},RelationshipTemplateIdString:{type:"string",pattern:"RLT[A-Za-z0-9]{17}"}}},t.GetAttributesForRelationshipRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetAttributesForRelationshipRequest",definitions:{GetAttributesForRelationshipRequest:{type:"object",properties:{id:{$ref:"#/definitions/RelationshipIdString"},hideTechnical:{type:"boolean"},onlyLatestVersions:{type:"boolean",description:"default: true"}},required:["id"],additionalProperties:!1},RelationshipIdString:{type:"string",pattern:"REL[A-Za-z0-9]{17}"}}},t.GetRelationshipRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetRelationshipRequest",definitions:{GetRelationshipRequest:{type:"object",properties:{id:{$ref:"#/definitions/RelationshipIdString"}},required:["id"],additionalProperties:!1},RelationshipIdString:{type:"string",pattern:"REL[A-Za-z0-9]{17}"}}},t.GetRelationshipByAddressRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetRelationshipByAddressRequest",definitions:{GetRelationshipByAddressRequest:{type:"object",properties:{address:{$ref:"#/definitions/AddressString"}},required:["address"],additionalProperties:!1},AddressString:{type:"string",pattern:"id1[A-Za-z0-9]{32,33}"}}},t.GetRelationshipsRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetRelationshipsRequest",definitions:{GetRelationshipsRequest:{type:"object",properties:{query:{$ref:"#/definitions/GetRelationshipsQuery"}},additionalProperties:!1},GetRelationshipsQuery:{type:"object",properties:{peer:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},status:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},"template.id":{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}},additionalProperties:!1}}},t.RejectRelationshipChangeRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/RejectRelationshipChangeRequest",definitions:{RejectRelationshipChangeRequest:{type:"object",properties:{relationshipId:{$ref:"#/definitions/RelationshipIdString"},changeId:{$ref:"#/definitions/RelationshipChangeIdString"},content:{}},required:["relationshipId","changeId","content"],additionalProperties:!1},RelationshipIdString:{type:"string",pattern:"REL[A-Za-z0-9]{17}"},RelationshipChangeIdString:{type:"string",pattern:"RCH[A-Za-z0-9]{17}"}}},t.RevokeRelationshipChangeRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/RevokeRelationshipChangeRequest",definitions:{RevokeRelationshipChangeRequest:{type:"object",properties:{relationshipId:{$ref:"#/definitions/RelationshipIdString"},changeId:{$ref:"#/definitions/RelationshipChangeIdString"},content:{}},required:["relationshipId","changeId","content"],additionalProperties:!1},RelationshipIdString:{type:"string",pattern:"REL[A-Za-z0-9]{17}"},RelationshipChangeIdString:{type:"string",pattern:"RCH[A-Za-z0-9]{17}"}}},t.CreateOwnRelationshipTemplateRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/CreateOwnRelationshipTemplateRequest",definitions:{CreateOwnRelationshipTemplateRequest:{type:"object",properties:{expiresAt:{$ref:"#/definitions/ISO8601DateTimeString"},content:{},maxNumberOfAllocations:{type:"number",minimum:1}},required:["expiresAt","content"],additionalProperties:!1},ISO8601DateTimeString:{type:"string",errorMessage:"must match ISO8601 datetime format",pattern:"^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"}}},t.CreateQRCodeForOwnTemplateRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/CreateQRCodeForOwnTemplateRequest",definitions:{CreateQRCodeForOwnTemplateRequest:{type:"object",properties:{templateId:{$ref:"#/definitions/RelationshipTemplateIdString"}},required:["templateId"],additionalProperties:!1},RelationshipTemplateIdString:{type:"string",pattern:"RLT[A-Za-z0-9]{17}"}}},t.CreateTokenForOwnTemplateRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/CreateTokenForOwnTemplateRequest",definitions:{CreateTokenForOwnTemplateRequest:{type:"object",properties:{templateId:{$ref:"#/definitions/RelationshipTemplateIdString"},expiresAt:{$ref:"#/definitions/ISO8601DateTimeString"},ephemeral:{type:"boolean"}},required:["templateId"],additionalProperties:!1},RelationshipTemplateIdString:{type:"string",pattern:"RLT[A-Za-z0-9]{17}"},ISO8601DateTimeString:{type:"string",errorMessage:"must match ISO8601 datetime format",pattern:"^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"}}},t.CreateTokenQRCodeForOwnTemplateRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/CreateTokenQRCodeForOwnTemplateRequest",definitions:{CreateTokenQRCodeForOwnTemplateRequest:{type:"object",properties:{templateId:{$ref:"#/definitions/RelationshipTemplateIdString"},expiresAt:{$ref:"#/definitions/ISO8601DateTimeString"}},required:["templateId"],additionalProperties:!1},RelationshipTemplateIdString:{type:"string",pattern:"RLT[A-Za-z0-9]{17}"},ISO8601DateTimeString:{type:"string",errorMessage:"must match ISO8601 datetime format",pattern:"^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"}}},t.GetRelationshipTemplateRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetRelationshipTemplateRequest",definitions:{GetRelationshipTemplateRequest:{type:"object",properties:{id:{$ref:"#/definitions/RelationshipTemplateIdString"}},required:["id"],additionalProperties:!1},RelationshipTemplateIdString:{type:"string",pattern:"RLT[A-Za-z0-9]{17}"}}},t.GetRelationshipTemplatesRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetRelationshipTemplatesRequest",definitions:{GetRelationshipTemplatesRequest:{type:"object",properties:{query:{$ref:"#/definitions/GetRelationshipTemplatesQuery"},ownerRestriction:{$ref:"#/definitions/OwnerRestriction"}},additionalProperties:!1},GetRelationshipTemplatesQuery:{type:"object",properties:{isOwn:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},createdAt:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},expiresAt:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},createdBy:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},createdByDevice:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},maxNumberOfAllocations:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}},additionalProperties:!1},OwnerRestriction:{type:"string",enum:["o","p"]}}},t.LoadPeerRelationshipTemplateViaSecretRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/LoadPeerRelationshipTemplateViaSecretRequest",definitions:{LoadPeerRelationshipTemplateViaSecretRequest:{type:"object",properties:{id:{$ref:"#/definitions/RelationshipTemplateIdString"},secretKey:{type:"string",minLength:10}},required:["id","secretKey"],additionalProperties:!1},RelationshipTemplateIdString:{type:"string",pattern:"RLT[A-Za-z0-9]{17}"}}},t.LoadPeerRelationshipTemplateViaReferenceRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/LoadPeerRelationshipTemplateViaReferenceRequest",definitions:{LoadPeerRelationshipTemplateViaReferenceRequest:{type:"object",properties:{reference:{anyOf:[{$ref:"#/definitions/TokenReferenceString"},{$ref:"#/definitions/RelationshipTemplateReferenceString"}]}},required:["reference"],additionalProperties:!1,errorMessage:"token / relationship template reference invalid"},TokenReferenceString:{type:"string",pattern:"VE9L.{84}"},RelationshipTemplateReferenceString:{type:"string",pattern:"UkxU.{84}"}}},t.LoadPeerRelationshipTemplateRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/LoadPeerRelationshipTemplateRequest",definitions:{LoadPeerRelationshipTemplateRequest:{anyOf:[{$ref:"#/definitions/LoadPeerRelationshipTemplateViaSecretRequest"},{$ref:"#/definitions/LoadPeerRelationshipTemplateViaReferenceRequest"}]},LoadPeerRelationshipTemplateViaSecretRequest:{type:"object",properties:{id:{$ref:"#/definitions/RelationshipTemplateIdString"},secretKey:{type:"string",minLength:10}},required:["id","secretKey"],additionalProperties:!1},RelationshipTemplateIdString:{type:"string",pattern:"RLT[A-Za-z0-9]{17}"},LoadPeerRelationshipTemplateViaReferenceRequest:{type:"object",properties:{reference:{anyOf:[{$ref:"#/definitions/TokenReferenceString"},{$ref:"#/definitions/RelationshipTemplateReferenceString"}]}},required:["reference"],additionalProperties:!1,errorMessage:"token / relationship template reference invalid"},TokenReferenceString:{type:"string",pattern:"VE9L.{84}"},RelationshipTemplateReferenceString:{type:"string",pattern:"UkxU.{84}"}}},t.CreateOwnTokenRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/CreateOwnTokenRequest",definitions:{CreateOwnTokenRequest:{type:"object",properties:{content:{},expiresAt:{$ref:"#/definitions/ISO8601DateTimeString"},ephemeral:{type:"boolean"}},required:["content","expiresAt","ephemeral"],additionalProperties:!1},ISO8601DateTimeString:{type:"string",errorMessage:"must match ISO8601 datetime format",pattern:"^([+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24:?00)([.,]\\d+(?!:))?)?(\\17[0-5]\\d([.,]\\d+)?)?([zZ]|([+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$"}}},t.GetQRCodeForTokenRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetQRCodeForTokenRequest",definitions:{GetQRCodeForTokenRequest:{type:"object",properties:{id:{$ref:"#/definitions/TokenIdString"}},required:["id"],additionalProperties:!1},TokenIdString:{type:"string",pattern:"TOK[A-Za-z0-9]{17}"}}},t.GetTokenRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetTokenRequest",definitions:{GetTokenRequest:{type:"object",properties:{id:{$ref:"#/definitions/TokenIdString"}},required:["id"],additionalProperties:!1},TokenIdString:{type:"string",pattern:"TOK[A-Za-z0-9]{17}"}}},t.GetTokensRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/GetTokensRequest",definitions:{GetTokensRequest:{type:"object",properties:{query:{$ref:"#/definitions/GetTokensQuery"},ownerRestriction:{$ref:"#/definitions/OwnerRestriction"}},additionalProperties:!1},GetTokensQuery:{type:"object",properties:{createdAt:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},createdBy:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},createdByDevice:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]},expiresAt:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}]}},additionalProperties:!1},OwnerRestriction:{type:"string",enum:["o","p"]}}},t.LoadPeerTokenViaReferenceRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/LoadPeerTokenViaReferenceRequest",definitions:{LoadPeerTokenViaReferenceRequest:{type:"object",properties:{reference:{$ref:"#/definitions/TokenReferenceString"},ephemeral:{type:"boolean"}},required:["reference","ephemeral"],additionalProperties:!1,errorMessage:"token reference invalid"},TokenReferenceString:{type:"string",pattern:"VE9L.{84}"}}},t.LoadPeerTokenViaSecretRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/LoadPeerTokenViaSecretRequest",definitions:{LoadPeerTokenViaSecretRequest:{type:"object",properties:{id:{$ref:"#/definitions/TokenIdString"},secretKey:{type:"string",minLength:10},ephemeral:{type:"boolean"}},required:["id","secretKey","ephemeral"],additionalProperties:!1},TokenIdString:{type:"string",pattern:"TOK[A-Za-z0-9]{17}"}}},t.LoadPeerTokenRequest={$schema:"http://json-schema.org/draft-07/schema#",$ref:"#/definitions/LoadPeerTokenRequest",definitions:{LoadPeerTokenRequest:{anyOf:[{$ref:"#/definitions/LoadPeerTokenViaReferenceRequest"},{$ref:"#/definitions/LoadPeerTokenViaSecretRequest"}]},LoadPeerTokenViaReferenceRequest:{type:"object",properties:{reference:{$ref:"#/definitions/TokenReferenceString"},ephemeral:{type:"boolean"}},required:["reference","ephemeral"],additionalProperties:!1,errorMessage:"token reference invalid"},TokenReferenceString:{type:"string",pattern:"VE9L.{84}"},LoadPeerTokenViaSecretRequest:{type:"object",properties:{id:{$ref:"#/definitions/TokenIdString"},secretKey:{type:"string",minLength:10},ephemeral:{type:"boolean"}},required:["id","secretKey","ephemeral"],additionalProperties:!1},TokenIdString:{type:"string",pattern:"TOK[A-Za-z0-9]{17}"}}}},5982:function(e,t,r){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.UseCase=void 0;const n=r(1391),s=r(1917),o=r(2984),a=i(r(4191)),c=r(3282),u=r(738);t.UseCase=class UseCase{constructor(e){this.requestValidator=e}async execute(e){if(this.requestValidator){const t=await this.requestValidator.validate(e);if(t.isInvalid())return this.validationFailed(t)}try{return await this.executeInternal(e)}catch(e){return this.failingResultFromUnknownError(e)}}failingResultFromUnknownError(e){return e instanceof Error?e instanceof o.RequestError?this.handleRequestError(e):e instanceof n.ServalError?this.handleServalError(e):e instanceof s.ApplicationError?s.Result.fail(e):e instanceof o.CoreError?s.Result.fail(new s.ApplicationError(e.code,e.message)):s.Result.fail(u.RuntimeErrors.general.unknown(`An error was thrown in a UseCase: ${e.message}`,e)):s.Result.fail(u.RuntimeErrors.general.unknown(`An unknown object was thrown in a UseCase: ${(0,a.default)(e)}`,e))}handleServalError(e){let t;return t=e instanceof n.ParsingError||e instanceof n.ValidationError?u.RuntimeErrors.serval.requestDeserialization(e.message):e.message.match(/Type '.+' with version [0-9]+ was not found within reflection classes. You might have to install a module first./)?u.RuntimeErrors.serval.unknownType(e.message):u.RuntimeErrors.serval.general(e.message),t.stack=e.stack,s.Result.fail(t)}handleRequestError(e){return c.PlatformErrorCodes.isNotFoundError(e)?s.Result.fail(u.RuntimeErrors.general.recordNotFoundWithMessage(e.reason)):c.PlatformErrorCodes.isValidationError(e)||c.PlatformErrorCodes.isUnexpectedError(e)?s.Result.fail(new s.ApplicationError(e.code,e.message)):s.Result.fail(e)}validationFailed(e){const t=e.getFailures()[0];return s.Result.fail(t.error)}}},1948:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flattenObject=void 0,t.flattenObject=function flattenObject(e){const t={};for(const r in e){const i=e[r];if("object"!=typeof i||Array.isArray(i))t[r]=i;else{const e=flattenObject(i);for(const i in e)t[`${r}.${i}`]=e[i]}}return t}},2197:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(1174),t),n(r(1948),t),n(r(1866),t),n(r(7803),t),n(r(738),t),n(r(1442),t),n(r(5982),t),n(r(654),t),n(r(394),t),n(r(6738),t),n(r(8395),t)},654:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SchemaValidator=void 0;const i=r(738),n=r(6738),s=r(8395);t.SchemaValidator=class SchemaValidator{constructor(e){this.schema=e}validate(e){const t=this.schema.validate(e);return this.convertValidationResult(t)}convertValidationResult(e){const t=new s.ValidationResult;return e.isValid||t.addFailures(e.errors.map(this.schemaErrorToValidationFailure)),t}schemaErrorToValidationFailure(e){const t=`${e.instancePath} ${e.message}`.replace(/^\//,"").replace(/"/g,"").trim();return new n.ValidationFailure(i.RuntimeErrors.general.invalidPropertyValue(t),e.instancePath)}}},394:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6738:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationFailure=void 0;t.ValidationFailure=class ValidationFailure{constructor(e,t){this.error=e,this.propertyName=t}}},8395:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationResult=void 0;t.ValidationResult=class ValidationResult{constructor(){this.failures=[]}isValid(){return 0===this.failures.length}isInvalid(){return!this.isValid()}addFailure(e){this.failures.push(e)}addFailures(e){this.failures.push(...e)}getFailures(){return this.failures.slice(0)}getFailureMessages(){return this.failures.map((e=>e.error.message))}getFailureCodes(){return this.failures.map((e=>e.error.code))}}},2508:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeListenerMapper=void 0;t.AttributeListenerMapper=class AttributeListenerMapper{static toAttributeListenerDTO(e){return{id:e.id.toString(),query:e.query.toJSON(),peer:e.peer.toString()}}static toAttributeListenerDTOList(e){return e.map((e=>this.toAttributeListenerDTO(e)))}}},2325:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetAttributeListenerUseCase=void 0;const o=r(1917),a=r(8334),c=r(2984),u=r(1699),l=r(2197),p=r(2508);let d=class Validator extends l.SchemaValidator{constructor(e){super(e.getSchema("GetAttributeListenerRequest"))}};d=i([s(0,u.Inject),n("design:paramtypes",[l.SchemaRepository])],d);let f=class GetAttributeListenerUseCase extends l.UseCase{constructor(e,t){super(t),this.attributeListenersController=e}async executeInternal(e){const t=await this.attributeListenersController.getAttributeListener(c.CoreId.from(e.id));if(!t)return o.Result.fail(l.RuntimeErrors.general.recordNotFound(a.LocalAttributeListener));const r=p.AttributeListenerMapper.toAttributeListenerDTO(t);return o.Result.ok(r)}};t.GetAttributeListenerUseCase=f,t.GetAttributeListenerUseCase=f=i([s(0,u.Inject),s(1,u.Inject),n("design:paramtypes",[a.AttributeListenersController,d])],f)},768:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetAttributeListenersUseCase=void 0;const o=r(1917),a=r(8334),c=r(1699),u=r(2197),l=r(2508);let p=class GetAttributeListenersUseCase extends u.UseCase{constructor(e){super(),this.attributeListenersController=e}async executeInternal(){const e=await this.attributeListenersController.getAttributeListeners(),t=l.AttributeListenerMapper.toAttributeListenerDTOList(e);return o.Result.ok(t)}};t.GetAttributeListenersUseCase=p,t.GetAttributeListenersUseCase=p=i([s(0,c.Inject),n("design:paramtypes",[a.AttributeListenersController])],p)},4021:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(2508),t),n(r(2325),t),n(r(768),t)},7224:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeMapper=void 0;t.AttributeMapper=class AttributeMapper{static toAttributeDTO(e){return{id:e.id.toString(),parentId:e.parentId?.toString(),content:e.content.toJSON(),createdAt:e.createdAt.toString(),succeeds:e.succeeds?.toString(),succeededBy:e.succeededBy?.toString(),shareInfo:e.shareInfo?.toJSON(),deletionInfo:e.deletionInfo?.toJSON()}}static toAttributeDTOList(e){return e.map((e=>this.toAttributeDTO(e)))}}},4903:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CreateAndShareRelationshipAttributeUseCase=void 0;const o=r(1917),a=r(8334),c=r(2344),u=r(2984),l=r(1699),p=r(2197),d=r(5574);let f=class Validator extends p.SchemaValidator{constructor(e){super(e.getSchema("CreateAndShareRelationshipAttributeRequest"))}};f=i([s(0,l.Inject),n("design:paramtypes",[p.SchemaRepository])],f);let y=class CreateAndShareRelationshipAttributeUseCase extends p.UseCase{constructor(e,t,r,i){super(i),this.accountController=e,this.requestsController=t,this.messageController=r}async executeInternal(e){const t=a.CreateOutgoingRequestParameters.from({peer:e.peer,content:c.Request.from({...e.requestMetadata??{},items:[c.CreateAttributeRequestItem.from({...e.requestItemMetadata??{},attribute:c.RelationshipAttribute.from({"@type":"RelationshipAttribute",owner:this.accountController.identity.address.toString(),...e.content}),mustBeAccepted:!0}).toJSON()]})}),r=await this.requestsController.canCreate(t);if(r.isError())return o.Result.fail(r.error);const i=await this.requestsController.create(t);return await this.messageController.sendMessage({recipients:[u.CoreAddress.from(e.peer)],content:i.content}),await this.accountController.syncDatawallet(),o.Result.ok(d.RequestMapper.toLocalRequestDTO(i))}};t.CreateAndShareRelationshipAttributeUseCase=y,t.CreateAndShareRelationshipAttributeUseCase=y=i([s(0,l.Inject),s(1,l.Inject),s(2,l.Inject),s(3,l.Inject),n("design:paramtypes",[u.AccountController,a.OutgoingRequestsController,u.MessageController,f])],y)},6865:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CreateRepositoryAttributeUseCase=void 0;const o=r(1917),a=r(8334),c=r(2984),u=r(1699),l=r(2197),p=r(7224);let d=class Validator extends l.SchemaValidator{constructor(e){super(e.getSchema("CreateRepositoryAttributeRequest"))}};d=i([s(0,u.Inject),n("design:paramtypes",[l.SchemaRepository])],d);let f=class CreateRepositoryAttributeUseCase extends l.UseCase{constructor(e,t,r){super(r),this.attributeController=e,this.accountController=t}async executeInternal(e){const t=a.CreateLocalAttributeParams.from({content:{"@type":"IdentityAttribute",owner:this.accountController.identity.address.toString(),...e.content}}),r=await this.attributeController.createLocalAttribute(t);return await this.accountController.syncDatawallet(),o.Result.ok(p.AttributeMapper.toAttributeDTO(r))}};t.CreateRepositoryAttributeUseCase=f,t.CreateRepositoryAttributeUseCase=f=i([s(0,u.Inject),s(1,u.Inject),s(2,u.Inject),n("design:paramtypes",[a.AttributesController,c.AccountController,d])],f)},4765:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DeleteOwnSharedAttributeAndNotifyPeerUseCase=void 0;const o=r(1917),a=r(8334),c=r(2344),u=r(2984),l=r(1699),p=r(2197);let d=class Validator extends p.SchemaValidator{constructor(e){super(e.getSchema("DeleteOwnSharedAttributeAndNotifyPeerRequest"))}};d=i([s(0,l.Inject),n("design:paramtypes",[p.SchemaRepository])],d);let f=class DeleteOwnSharedAttributeAndNotifyPeerUseCase extends p.UseCase{constructor(e,t,r,i){super(i),this.attributesController=e,this.accountController=t,this.messageController=r}async executeInternal(e){const t=u.CoreId.from(e.attributeId),r=await this.attributesController.getLocalAttribute(t);if(void 0===r)return o.Result.fail(p.RuntimeErrors.general.recordNotFound(a.LocalAttribute));if(!r.isOwnSharedAttribute(this.accountController.identity.address))return o.Result.fail(p.RuntimeErrors.attributes.isNotOwnSharedAttribute(t));const i=await this.attributesController.validateFullAttributeDeletionProcess(r);if(i.isError())return o.Result.fail(i.error);await this.attributesController.executeFullAttributeDeletionProcess(r);const n=await a.ConsumptionIds.notification.generate(),s=c.OwnSharedAttributeDeletedByOwnerNotificationItem.from({attributeId:t}),l=c.Notification.from({id:n,items:[s]});await this.messageController.sendMessage({recipients:[r.shareInfo.peer],content:l}),await this.accountController.syncDatawallet();const d={notificationId:n.toString()};return o.Result.ok(d)}};t.DeleteOwnSharedAttributeAndNotifyPeerUseCase=f,t.DeleteOwnSharedAttributeAndNotifyPeerUseCase=f=i([s(0,l.Inject),s(1,l.Inject),s(2,l.Inject),s(3,l.Inject),n("design:paramtypes",[a.AttributesController,u.AccountController,u.MessageController,d])],f)},8672:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DeletePeerSharedAttributeAndNotifyOwnerUseCase=void 0;const o=r(1917),a=r(8334),c=r(2344),u=r(2984),l=r(1699),p=r(2197);let d=class Validator extends p.SchemaValidator{constructor(e){super(e.getSchema("DeletePeerSharedAttributeAndNotifyOwnerRequest"))}};d=i([s(0,l.Inject),n("design:paramtypes",[p.SchemaRepository])],d);let f=class DeletePeerSharedAttributeAndNotifyOwnerUseCase extends p.UseCase{constructor(e,t,r,i){super(i),this.attributesController=e,this.accountController=t,this.messageController=r}async executeInternal(e){const t=u.CoreId.from(e.attributeId),r=await this.attributesController.getLocalAttribute(t);if(void 0===r)return o.Result.fail(p.RuntimeErrors.general.recordNotFound(a.LocalAttribute));if(!r.isPeerSharedAttribute(r.shareInfo?.peer))return o.Result.fail(p.RuntimeErrors.attributes.isNotPeerSharedAttribute(t));const i=await this.attributesController.validateFullAttributeDeletionProcess(r);if(i.isError())return o.Result.fail(i.error);await this.attributesController.executeFullAttributeDeletionProcess(r);const n=await a.ConsumptionIds.notification.generate(),s=c.PeerSharedAttributeDeletedByPeerNotificationItem.from({attributeId:t}),l=c.Notification.from({id:n,items:[s]});await this.messageController.sendMessage({recipients:[r.shareInfo.peer],content:l}),await this.accountController.syncDatawallet();const d={notificationId:n.toString()};return o.Result.ok(d)}};t.DeletePeerSharedAttributeAndNotifyOwnerUseCase=f,t.DeletePeerSharedAttributeAndNotifyOwnerUseCase=f=i([s(0,l.Inject),s(1,l.Inject),s(2,l.Inject),s(3,l.Inject),n("design:paramtypes",[a.AttributesController,u.AccountController,u.MessageController,d])],f)},2720:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DeleteRepositoryAttributeUseCase=void 0;const o=r(1917),a=r(8334),c=r(2984),u=r(1699),l=r(2197);let p=class Validator extends l.SchemaValidator{constructor(e){super(e.getSchema("DeleteRepositoryAttributeRequest"))}};p=i([s(0,u.Inject),n("design:paramtypes",[l.SchemaRepository])],p);let d=class DeleteRepositoryAttributeUseCase extends l.UseCase{constructor(e,t,r){super(r),this.attributesController=e,this.accountController=t}async executeInternal(e){const t=await this.attributesController.getLocalAttribute(c.CoreId.from(e.attributeId));if(void 0===t)return o.Result.fail(l.RuntimeErrors.general.recordNotFound(a.LocalAttribute));if(!t.isRepositoryAttribute(this.accountController.identity.address))return o.Result.fail(l.RuntimeErrors.attributes.isNotRepositoryAttribute(c.CoreId.from(e.attributeId)));const r=await this.attributesController.validateFullAttributeDeletionProcess(t);return r.isError()?o.Result.fail(r.error):(await this.attributesController.executeFullAttributeDeletionProcess(t),await this.accountController.syncDatawallet(),o.Result.ok(void 0))}};t.DeleteRepositoryAttributeUseCase=d,t.DeleteRepositoryAttributeUseCase=d=i([s(0,u.Inject),s(1,u.Inject),s(2,u.Inject),n("design:paramtypes",[a.AttributesController,c.AccountController,p])],d)},3302:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DeleteThirdPartyOwnedRelationshipAttributeAndNotifyPeerUseCase=void 0;const o=r(1917),a=r(8334),c=r(2344),u=r(2984),l=r(1699),p=r(2197);let d=class Validator extends p.SchemaValidator{constructor(e){super(e.getSchema("DeleteThirdPartyOwnedRelationshipAttributeAndNotifyPeerRequest"))}};d=i([s(0,l.Inject),n("design:paramtypes",[p.SchemaRepository])],d);let f=class DeleteThirdPartyOwnedRelationshipAttributeAndNotifyPeerUseCase extends p.UseCase{constructor(e,t,r,i){super(i),this.attributesController=e,this.accountController=t,this.messageController=r}async executeInternal(e){const t=u.CoreId.from(e.attributeId),r=await this.attributesController.getLocalAttribute(t);if(void 0===r)return o.Result.fail(p.RuntimeErrors.general.recordNotFound(a.LocalAttribute));if(!r.isThirdPartyOwnedAttribute(this.accountController.identity.address))return o.Result.fail(p.RuntimeErrors.attributes.isNotThirdPartyOwnedRelationshipAttribute(t));const i=await this.attributesController.validateFullAttributeDeletionProcess(r);if(i.isError())return o.Result.fail(i.error);await this.attributesController.executeFullAttributeDeletionProcess(r);const n=await a.ConsumptionIds.notification.generate(),s=c.ThirdPartyOwnedRelationshipAttributeDeletedByPeerNotificationItem.from({attributeId:t}),l=c.Notification.from({id:n,items:[s]});await this.messageController.sendMessage({recipients:[r.shareInfo.peer],content:l}),await this.accountController.syncDatawallet();const d={notificationId:n.toString()};return o.Result.ok(d)}};t.DeleteThirdPartyOwnedRelationshipAttributeAndNotifyPeerUseCase=f,t.DeleteThirdPartyOwnedRelationshipAttributeAndNotifyPeerUseCase=f=i([s(0,l.Inject),s(1,l.Inject),s(2,l.Inject),s(3,l.Inject),n("design:paramtypes",[a.AttributesController,u.AccountController,u.MessageController,d])],f)},1780:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExecuteIQLQueryUseCase=void 0;const o=r(1917),a=r(8334),c=r(2344),u=r(1699),l=r(2197),p=r(7224);let d=class Validator extends l.SchemaValidator{constructor(e){super(e.getSchema("ExecuteIQLQueryRequest"))}};d=i([s(0,u.Inject),n("design:paramtypes",[l.SchemaRepository])],d);let f=class ExecuteIQLQueryUseCase extends l.UseCase{constructor(e,t){super(t),this.attributeController=e}async executeInternal(e){const t=c.IQLQuery.from(e.query),r=await this.attributeController.executeIQLQuery(t);return o.Result.ok(p.AttributeMapper.toAttributeDTOList(r))}};t.ExecuteIQLQueryUseCase=f,t.ExecuteIQLQueryUseCase=f=i([s(0,u.Inject),s(1,u.Inject),n("design:paramtypes",[a.AttributesController,d])],f)},5028:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExecuteIdentityAttributeQueryUseCase=void 0;const o=r(1917),a=r(8334),c=r(2344),u=r(1699),l=r(2197),p=r(7224);let d=class ExecuteIdentityAttributeQueryUseCase extends l.UseCase{constructor(e){super(),this.attributeController=e}async executeInternal(e){const t=await this.attributeController.executeIdentityAttributeQuery(c.IdentityAttributeQuery.from(e.query));return o.Result.ok(p.AttributeMapper.toAttributeDTOList(t))}};t.ExecuteIdentityAttributeQueryUseCase=d,t.ExecuteIdentityAttributeQueryUseCase=d=i([s(0,u.Inject),n("design:paramtypes",[a.AttributesController])],d)},2020:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExecuteRelationshipAttributeQueryUseCase=void 0;const o=r(1917),a=r(8334),c=r(2344),u=r(1699),l=r(2197),p=r(7224);let d=class ExecuteRelationshipAttributeQueryUseCase extends l.UseCase{constructor(e){super(),this.attributeController=e}async executeInternal(e){const t=await this.attributeController.executeRelationshipAttributeQuery(c.RelationshipAttributeQuery.from(e.query));return t?o.Result.ok(p.AttributeMapper.toAttributeDTO(t)):o.Result.fail(l.RuntimeErrors.general.recordNotFound("RelationshipAttribute"))}};t.ExecuteRelationshipAttributeQueryUseCase=d,t.ExecuteRelationshipAttributeQueryUseCase=d=i([s(0,u.Inject),n("design:paramtypes",[a.AttributesController])],d)},339:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExecuteThirdPartyRelationshipAttributeQueryUseCase=void 0;const o=r(1917),a=r(8334),c=r(2344),u=r(1699),l=r(2197),p=r(7224);let d=class ExecuteThirdPartyRelationshipAttributeQueryUseCase extends l.UseCase{constructor(e){super(),this.attributeController=e}async executeInternal(e){const t=c.ThirdPartyRelationshipAttributeQuery.from(e.query),r=await this.attributeController.executeThirdPartyRelationshipAttributeQuery(t);return o.Result.ok(p.AttributeMapper.toAttributeDTOList(r))}};t.ExecuteThirdPartyRelationshipAttributeQueryUseCase=d,t.ExecuteThirdPartyRelationshipAttributeQueryUseCase=d=i([s(0,u.Inject),n("design:paramtypes",[a.AttributesController])],d)},5433:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetAttributeUseCase=void 0;const o=r(1917),a=r(8334),c=r(2984),u=r(1699),l=r(2197),p=r(7224);let d=class Validator extends l.SchemaValidator{constructor(e){super(e.getSchema("GetAttributeRequest"))}};d=i([s(0,u.Inject),n("design:paramtypes",[l.SchemaRepository])],d);let f=class GetAttributeUseCase extends l.UseCase{constructor(e,t){super(t),this.attributeController=e}async executeInternal(e){const t=await this.attributeController.getLocalAttribute(c.CoreId.from(e.id));return t?o.Result.ok(p.AttributeMapper.toAttributeDTO(t)):o.Result.fail(l.RuntimeErrors.general.recordNotFound(a.LocalAttribute))}};t.GetAttributeUseCase=f,t.GetAttributeUseCase=f=i([s(0,u.Inject),s(1,u.Inject),n("design:paramtypes",[a.AttributesController,d])],f)},6652:function(e,t,r){"use strict";var i,n=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetAttributesUseCase=void 0;const a=r(7197),c=r(1917),u=r(8334),l=r(3290),p=r(889),d=r(1699),f=r(2197),y=r(1948),h=r(7224);let g=class GetAttributesUseCase extends f.UseCase{static{i=this}static{this.queryTranslator=new a.QueryTranslator({whitelist:{[(0,p.nameof)((e=>e.createdAt))]:!0,[(0,p.nameof)((e=>e.parentId))]:!0,[(0,p.nameof)((e=>e.succeeds))]:!0,[(0,p.nameof)((e=>e.succeededBy))]:!0,[`${(0,p.nameof)((e=>e.content))}.${(0,p.nameof)((e=>e.validFrom))}`]:!0,[`${(0,p.nameof)((e=>e.content))}.${(0,p.nameof)((e=>e.validTo))}`]:!0,[`${(0,p.nameof)((e=>e.content))}.${(0,p.nameof)((e=>e.owner))}`]:!0,[`${(0,p.nameof)((e=>e.content))}.@type`]:!0,[`${(0,p.nameof)((e=>e.content))}.${(0,p.nameof)((e=>e.tags))}`]:!0,[`${(0,p.nameof)((e=>e.content))}.${(0,p.nameof)((e=>e.value))}.@type`]:!0,[`${(0,p.nameof)((e=>e.content))}.${(0,p.nameof)((e=>e.key))}`]:!0,[`${(0,p.nameof)((e=>e.content))}.${(0,p.nameof)((e=>e.isTechnical))}`]:!0,[`${(0,p.nameof)((e=>e.content))}.${(0,p.nameof)((e=>e.confidentiality))}`]:!0,[`${(0,p.nameof)((e=>e.shareInfo))}`]:!0,[`${(0,p.nameof)((e=>e.shareInfo))}.${(0,p.nameof)((e=>e.peer))}`]:!0,[`${(0,p.nameof)((e=>e.shareInfo))}.${(0,p.nameof)((e=>e.requestReference))}`]:!0,[`${(0,p.nameof)((e=>e.shareInfo))}.${(0,p.nameof)((e=>e.notificationReference))}`]:!0,[`${(0,p.nameof)((e=>e.shareInfo))}.${(0,p.nameof)((e=>e.sourceAttribute))}`]:!0,[`${(0,p.nameof)((e=>e.deletionInfo))}`]:!0,[`${(0,p.nameof)((e=>e.deletionInfo))}.${(0,p.nameof)((e=>e.deletionStatus))}`]:!0,[`${(0,p.nameof)((e=>e.deletionInfo))}.${(0,p.nameof)((e=>e.deletionDate))}`]:!0},alias:{[(0,p.nameof)((e=>e.createdAt))]:(0,p.nameof)((e=>e.createdAt)),[(0,p.nameof)((e=>e.parentId))]:(0,p.nameof)((e=>e.parentId)),[(0,p.nameof)((e=>e.succeeds))]:(0,p.nameof)((e=>e.succeeds)),[(0,p.nameof)((e=>e.succeededBy))]:(0,p.nameof)((e=>e.succeededBy)),[`${(0,p.nameof)((e=>e.content))}.${(0,p.nameof)((e=>e.validFrom))}`]:`${(0,p.nameof)((e=>e.content))}.${(0,p.nameof)((e=>e.validFrom))}`,[`${(0,p.nameof)((e=>e.content))}.${(0,p.nameof)((e=>e.validTo))}`]:`${(0,p.nameof)((e=>e.content))}.${(0,p.nameof)((e=>e.validTo))}`,[`${(0,p.nameof)((e=>e.content))}.${(0,p.nameof)((e=>e.owner))}`]:`${(0,p.nameof)((e=>e.content))}.${(0,p.nameof)((e=>e.owner))}`,[`${(0,p.nameof)((e=>e.content))}.@type`]:`${(0,p.nameof)((e=>e.content))}.@type`,[`${(0,p.nameof)((e=>e.content))}.${(0,p.nameof)((e=>e.tags))}`]:`${(0,p.nameof)((e=>e.content))}.${(0,p.nameof)((e=>e.tags))}`,[`${(0,p.nameof)((e=>e.content))}.${(0,p.nameof)((e=>e.value))}.@type`]:`${(0,p.nameof)((e=>e.content))}.${(0,p.nameof)((e=>e.value))}.@type`,[`${(0,p.nameof)((e=>e.content))}.${(0,p.nameof)((e=>e.key))}`]:`${(0,p.nameof)((e=>e.content))}.${(0,p.nameof)((e=>e.key))}`,[`${(0,p.nameof)((e=>e.content))}.${(0,p.nameof)((e=>e.isTechnical))}`]:`${(0,p.nameof)((e=>e.content))}.${(0,p.nameof)((e=>e.isTechnical))}`,[`${(0,p.nameof)((e=>e.content))}.${(0,p.nameof)((e=>e.confidentiality))}`]:`${(0,p.nameof)((e=>e.content))}.${(0,p.nameof)((e=>e.confidentiality))}`,[`${(0,p.nameof)((e=>e.shareInfo))}`]:`${(0,p.nameof)((e=>e.shareInfo))}`,[`${(0,p.nameof)((e=>e.shareInfo))}.${(0,p.nameof)((e=>e.peer))}`]:`${(0,p.nameof)((e=>e.shareInfo))}.${(0,p.nameof)((e=>e.peer))}`,[`${(0,p.nameof)((e=>e.shareInfo))}.${(0,p.nameof)((e=>e.requestReference))}`]:`${(0,p.nameof)((e=>e.shareInfo))}.${(0,p.nameof)((e=>e.requestReference))}`,[`${(0,p.nameof)((e=>e.shareInfo))}.${(0,p.nameof)((e=>e.notificationReference))}`]:`${(0,p.nameof)((e=>e.shareInfo))}.${(0,p.nameof)((e=>e.notificationReference))}`,[`${(0,p.nameof)((e=>e.shareInfo))}.${(0,p.nameof)((e=>e.sourceAttribute))}`]:`${(0,p.nameof)((e=>e.shareInfo))}.${(0,p.nameof)((e=>e.sourceAttribute))}`,[`${(0,p.nameof)((e=>e.deletionInfo))}`]:`${(0,p.nameof)((e=>e.deletionInfo))}`,[`${(0,p.nameof)((e=>e.deletionInfo))}.${(0,p.nameof)((e=>e.deletionStatus))}`]:`${(0,p.nameof)((e=>e.deletionInfo))}.${(0,p.nameof)((e=>e.deletionStatus))}`,[`${(0,p.nameof)((e=>e.deletionInfo))}.${(0,p.nameof)((e=>e.deletionDate))}`]:`${(0,p.nameof)((e=>e.deletionInfo))}.${(0,p.nameof)((e=>e.deletionDate))}`},custom:{[`${(0,p.nameof)((e=>e.content))}.${(0,p.nameof)((e=>e.validFrom))}`]:(e,t)=>{if(!t)return;const r=l.DateTime.fromISO(t).toUTC().toString();e[`${(0,p.nameof)((e=>e.content))}.${(0,p.nameof)((e=>e.validFrom))}`]={$gte:r}},[`${(0,p.nameof)((e=>e.content))}.${(0,p.nameof)((e=>e.validTo))}`]:(e,t)=>{if(!t)return;const r=l.DateTime.fromISO(t).toUTC().toString();e[`${(0,p.nameof)((e=>e.content))}.${(0,p.nameof)((e=>e.validTo))}`]={$lte:r}},[`${(0,p.nameof)((e=>e.content))}.${(0,p.nameof)((e=>e.tags))}`]:(e,t)=>{if("string"==typeof t)return void(e[`${(0,p.nameof)((e=>e.content))}.${(0,p.nameof)((e=>e.tags))}`]={$contains:t});const r=[];for(const e of t){const t={[`${(0,p.nameof)((e=>e.content))}.${(0,p.nameof)((e=>e.tags))}`]:{$contains:e}};r.push(t)}e.$or=r}}})}constructor(e){super(),this.attributeController=e}async executeInternal(e){const t=e.query??{},r=(0,y.flattenObject)(t),n=i.queryTranslator.parse(r),s=await this.attributeController.getLocalAttributes(n,e.hideTechnical,e.onlyValid);return c.Result.ok(h.AttributeMapper.toAttributeDTOList(s))}};t.GetAttributesUseCase=g,t.GetAttributesUseCase=g=i=n([o(0,d.Inject),s("design:paramtypes",[u.AttributesController])],g)},7789:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetOwnSharedAttributesUseCase=void 0;const o=r(1917),a=r(8334),c=r(2984),u=r(1699),l=r(2197),p=r(1948),d=r(7224),f=r(6652);let y=class Validator extends l.SchemaValidator{constructor(e){super(e.getSchema("GetOwnSharedAttributesRequest"))}};y=i([s(0,u.Inject),n("design:paramtypes",[l.SchemaRepository])],y);let h=class GetOwnSharedAttributesUseCase extends l.UseCase{constructor(e,t,r){super(r),this.attributeController=e,this.identityController=t}async executeInternal(e){const t=e.query??{};t["content.owner"]=this.identityController.address.toString(),t["shareInfo.peer"]=e.peer;const r=(0,p.flattenObject)(t),i=f.GetAttributesUseCase.queryTranslator.parse(r);(e.onlyLatestVersions??1)&&(i.succeededBy={$exists:!1});const n=await this.attributeController.getLocalAttributes(i,e.hideTechnical,e.onlyValid);return o.Result.ok(d.AttributeMapper.toAttributeDTOList(n))}};t.GetOwnSharedAttributesUseCase=h,t.GetOwnSharedAttributesUseCase=h=i([s(0,u.Inject),s(1,u.Inject),s(2,u.Inject),n("design:paramtypes",[a.AttributesController,c.IdentityController,y])],h)},2165:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetPeerSharedAttributesUseCase=void 0;const o=r(1917),a=r(8334),c=r(1699),u=r(2197),l=r(1948),p=r(7224),d=r(6652);let f=class Validator extends u.SchemaValidator{constructor(e){super(e.getSchema("GetPeerSharedAttributesRequest"))}};f=i([s(0,c.Inject),n("design:paramtypes",[u.SchemaRepository])],f);let y=class GetPeerSharedAttributesUseCase extends u.UseCase{constructor(e,t){super(t),this.attributeController=e}async executeInternal(e){const t=e.query??{};t["content.owner"]=e.peer;const r=(0,l.flattenObject)(t),i=d.GetAttributesUseCase.queryTranslator.parse(r);(e.onlyLatestVersions??1)&&(i.succeededBy={$exists:!1});const n=await this.attributeController.getLocalAttributes(i,e.hideTechnical,e.onlyValid);return o.Result.ok(p.AttributeMapper.toAttributeDTOList(n))}};t.GetPeerSharedAttributesUseCase=y,t.GetPeerSharedAttributesUseCase=y=i([s(0,c.Inject),s(1,c.Inject),n("design:paramtypes",[a.AttributesController,f])],y)},3612:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetRepositoryAttributesUseCase=void 0;const o=r(1917),a=r(8334),c=r(1699),u=r(5583),l=r(2197);let p=class Validator extends l.SchemaValidator{constructor(e){super(e.getSchema("GetRepositoryAttributesRequest"))}};p=i([s(0,c.Inject),n("design:paramtypes",[l.SchemaRepository])],p);let d=class GetRepositoryAttributesUseCase extends l.UseCase{constructor(e,t){super(t),this.attributesController=e}async executeInternal(e){const t=e.query??{},r=(0,l.flattenObject)(t),i=u.GetAttributesUseCase.queryTranslator.parse(r);i.shareInfo={$exists:!1},(void 0===e.onlyLatestVersions||e.onlyLatestVersions)&&(i.succeededBy={$exists:!1});const n=await this.attributesController.getLocalAttributes(i);return o.Result.ok(u.AttributeMapper.toAttributeDTOList(n))}};t.GetRepositoryAttributesUseCase=d,t.GetRepositoryAttributesUseCase=d=i([s(0,c.Inject),s(1,c.Inject),n("design:paramtypes",[a.AttributesController,p])],d)},3874:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetSharedVersionsOfRepositoryAttributeUseCase=void 0;const o=r(1917),a=r(8334),c=r(2984),u=r(1699),l=r(2197),p=r(7224);let d=class Validator extends l.SchemaValidator{constructor(e){super(e.getSchema("GetSharedVersionsOfRepositoryAttributeRequest"))}};d=i([s(0,u.Inject),n("design:paramtypes",[l.SchemaRepository])],d);let f=class GetSharedVersionsOfRepositoryAttributeUseCase extends l.UseCase{constructor(e,t,r){super(r),this.accountController=e,this.attributeController=t}async executeInternal(e){const t=c.CoreId.from(e.attributeId),r=await this.attributeController.getLocalAttribute(t);if(void 0===r)return o.Result.fail(l.RuntimeErrors.general.recordNotFound(a.LocalAttribute));if(!r.isRepositoryAttribute(this.accountController.identity.address))return o.Result.fail(l.RuntimeErrors.attributes.isNotRepositoryAttribute(t));if(0===e.peers?.length)return o.Result.fail(l.RuntimeErrors.general.invalidPropertyValue("The `peers` property may not be an empty array."));const i=e.peers?.map((e=>c.CoreAddress.from(e))),n=await this.attributeController.getSharedVersionsOfRepositoryAttribute(t,i,e.onlyLatestVersions);return o.Result.ok(p.AttributeMapper.toAttributeDTOList(n))}};t.GetSharedVersionsOfRepositoryAttributeUseCase=f,t.GetSharedVersionsOfRepositoryAttributeUseCase=f=i([s(0,u.Inject),s(1,u.Inject),s(2,u.Inject),n("design:paramtypes",[c.AccountController,a.AttributesController,d])],f)},2385:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetVersionsOfAttributeUseCase=void 0;const o=r(1917),a=r(8334),c=r(2984),u=r(1699),l=r(2197),p=r(7224);let d=class Validator extends l.SchemaValidator{constructor(e){super(e.getSchema("GetVersionsOfAttributeRequest"))}};d=i([s(0,u.Inject),n("design:paramtypes",[l.SchemaRepository])],d);let f=class GetVersionsOfAttributeUseCase extends l.UseCase{constructor(e,t){super(t),this.attributeController=e}async executeInternal(e){if(void 0===await this.attributeController.getLocalAttribute(c.CoreId.from(e.attributeId)))throw l.RuntimeErrors.general.recordNotFound(a.LocalAttribute);const t=await this.attributeController.getVersionsOfAttribute(c.CoreId.from(e.attributeId));return o.Result.ok(p.AttributeMapper.toAttributeDTOList(t))}};t.GetVersionsOfAttributeUseCase=f,t.GetVersionsOfAttributeUseCase=f=i([s(0,u.Inject),s(1,u.Inject),n("design:paramtypes",[a.AttributesController,d])],f)},2320:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.NotifyPeerAboutRepositoryAttributeSuccessionUseCase=void 0;const o=r(1917),a=r(8334),c=r(2344),u=r(2984),l=r(1699),p=r(2197),d=r(7224);let f=class Validator extends p.SchemaValidator{constructor(e){super(e.getSchema("NotifyPeerAboutRepositoryAttributeSuccessionRequest"))}};f=i([s(0,l.Inject),n("design:paramtypes",[p.SchemaRepository])],f);let y=class NotifyPeerAboutRepositoryAttributeSuccessionUseCase extends p.UseCase{constructor(e,t,r,i){super(i),this.accountController=e,this.attributeController=t,this.messageController=r}async executeInternal(e){const t=u.CoreId.from(e.attributeId),r=await this.attributeController.getLocalAttribute(t);if(void 0===r)return o.Result.fail(p.RuntimeErrors.general.recordNotFound(a.LocalAttribute.name));if(!r.isRepositoryAttribute(this.accountController.identity.address))return o.Result.fail(p.RuntimeErrors.attributes.isNotRepositoryAttribute(t));const i=await this.attributeController.getSharedVersionsOfRepositoryAttribute(t,[u.CoreAddress.from(e.peer)]);if(0===i.length)return o.Result.fail(p.RuntimeErrors.attributes.noPreviousVersionOfRepositoryAttributeHasBeenSharedWithPeerBefore(t,e.peer));if(i[0].shareInfo?.sourceAttribute?.toString()===e.attributeId)return o.Result.fail(p.RuntimeErrors.attributes.repositoryAttributeHasAlreadyBeenSharedWithPeer(e.attributeId,e.peer,i[0].id));const n=i[0],s=await a.ConsumptionIds.notification.generate(),l={content:r.content,succeeds:n.id,shareInfo:{peer:n.shareInfo.peer,sourceAttribute:r.id,notificationReference:s},parentId:r.parentId},f=await this.attributeController.validateOwnSharedIdentityAttributeSuccession(n.id,l);if(f.isError())return o.Result.fail(f.error);const{predecessor:y,successor:h}=await this.attributeController.succeedOwnSharedIdentityAttribute(n.id,l,!1),g=c.PeerSharedAttributeSucceededNotificationItem.from({predecessorId:n.id,successorId:h.id,successorContent:h.content}),m=c.Notification.from({id:s,items:[g]});await this.messageController.sendMessage({recipients:[n.shareInfo.peer],content:m}),await this.accountController.syncDatawallet();const v={predecessor:d.AttributeMapper.toAttributeDTO(y),successor:d.AttributeMapper.toAttributeDTO(h),notificationId:s.toString()};return o.Result.ok(v)}};t.NotifyPeerAboutRepositoryAttributeSuccessionUseCase=y,t.NotifyPeerAboutRepositoryAttributeSuccessionUseCase=y=i([s(0,l.Inject),s(1,l.Inject),s(2,l.Inject),s(3,l.Inject),n("design:paramtypes",[u.AccountController,a.AttributesController,u.MessageController,f])],y)},1300:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ShareRepositoryAttributeUseCase=void 0;const o=r(1917),a=r(8334),c=r(2344),u=r(2984),l=r(1699),p=r(2197),d=r(5574);let f=class Validator extends p.SchemaValidator{constructor(e){super(e.getSchema("ShareRepositoryAttributeRequest"))}};f=i([s(0,l.Inject),n("design:paramtypes",[p.SchemaRepository])],f);let y=class ShareRepositoryAttributeUseCase extends p.UseCase{constructor(e,t,r,i,n){super(n),this.attributeController=e,this.accountController=t,this.requestsController=r,this.messageController=i}async executeInternal(e){const t=u.CoreId.from(e.attributeId),r=await this.attributeController.getLocalAttribute(t);if(void 0===r)return o.Result.fail(p.RuntimeErrors.general.recordNotFound(a.LocalAttribute.name));if(!r.isRepositoryAttribute(this.accountController.identity.address))return o.Result.fail(p.RuntimeErrors.attributes.isNotRepositoryAttribute(t));const i={"content.owner":this.accountController.identity.address.toString(),"content.@type":"IdentityAttribute","shareInfo.sourceAttribute":e.attributeId,"shareInfo.peer":e.peer},n=await this.attributeController.getLocalAttributes(i);if(n.length>0)return o.Result.fail(p.RuntimeErrors.attributes.repositoryAttributeHasAlreadyBeenSharedWithPeer(e.attributeId,e.peer,n[0].id));const s=await this.attributeController.getSharedVersionsOfRepositoryAttribute(t,[u.CoreAddress.from(e.peer)],!1);if(s.length>0)return o.Result.fail(p.RuntimeErrors.attributes.anotherVersionOfRepositoryAttributeHasAlreadyBeenSharedWithPeer(e.attributeId,e.peer,s[0].id));const l=a.CreateOutgoingRequestParameters.from({peer:e.peer,content:c.Request.from({...e.requestMetadata??{},items:[c.ShareAttributeRequestItem.from({...e.requestItemMetadata??{},attribute:r.content,sourceAttributeId:r.id,mustBeAccepted:!0}).toJSON()]})}),f=await this.requestsController.canCreate(l);if(f.isError())return o.Result.fail(f.error);const y=await this.requestsController.create(l);return await this.messageController.sendMessage({recipients:[u.CoreAddress.from(e.peer)],content:y.content}),await this.accountController.syncDatawallet(),o.Result.ok(d.RequestMapper.toLocalRequestDTO(y))}};t.ShareRepositoryAttributeUseCase=y,t.ShareRepositoryAttributeUseCase=y=i([s(0,l.Inject),s(1,l.Inject),s(2,l.Inject),s(3,l.Inject),s(4,l.Inject),n("design:paramtypes",[a.AttributesController,u.AccountController,a.OutgoingRequestsController,u.MessageController,f])],y)},6803:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SucceedRelationshipAttributeAndNotifyPeerUseCase=void 0;const o=r(1917),a=r(8334),c=r(2344),u=r(2984),l=r(1699),p=r(2197),d=r(7224);let f=class Validator extends p.SchemaValidator{constructor(e){super(e.getSchema("SucceedRelationshipAttributeAndNotifyPeerRequest"))}};f=i([s(0,l.Inject),n("design:paramtypes",[p.SchemaRepository])],f);let y=class SucceedRelationshipAttributeAndNotifyPeerUseCase extends p.UseCase{constructor(e,t,r,i){super(i),this.accountController=e,this.attributeController=t,this.messageController=r}async executeInternal(e){const t=await this.attributeController.getLocalAttribute(u.CoreId.from(e.predecessorId));if(void 0===t)return o.Result.fail(a.CoreErrors.attributes.predecessorDoesNotExist());if(!t.isOwnSharedRelationshipAttribute(this.accountController.identity.address,t.shareInfo?.peer))return o.Result.fail(a.CoreErrors.attributes.predecessorIsNotOwnSharedRelationshipAttribute());const r=await a.ConsumptionIds.notification.generate(),i=u.CoreId.from(e.predecessorId),n={"@type":"RelationshipAttribute",...e.successorContent,confidentiality:t.content.confidentiality,isTechnical:t.content.isTechnical,key:t.content.key,owner:t.content.owner.toString()},s=a.AttributeSuccessorParams.from({content:c.RelationshipAttribute.from(n),shareInfo:{peer:t.shareInfo.peer,notificationReference:r}}),l=await this.attributeController.validateOwnSharedRelationshipAttributeSuccession(i,s);if(l.isError())return o.Result.fail(l.error);const{predecessor:p,successor:f}=await this.attributeController.succeedOwnSharedRelationshipAttribute(i,s,!1),y=c.PeerSharedAttributeSucceededNotificationItem.from({predecessorId:t.id,successorId:f.id,successorContent:f.content}),h=c.Notification.from({id:r,items:[y]});await this.messageController.sendMessage({recipients:[t.shareInfo.peer],content:h});const g={predecessor:d.AttributeMapper.toAttributeDTO(p),successor:d.AttributeMapper.toAttributeDTO(f),notificationId:r.toString()};return o.Result.ok(g)}};t.SucceedRelationshipAttributeAndNotifyPeerUseCase=y,t.SucceedRelationshipAttributeAndNotifyPeerUseCase=y=i([s(0,l.Inject),s(1,l.Inject),s(2,l.Inject),s(3,l.Inject),n("design:paramtypes",[u.AccountController,a.AttributesController,u.MessageController,f])],y)},8729:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SucceedRepositoryAttributeUseCase=void 0;const o=r(1917),a=r(8334),c=r(2984),u=r(1699),l=r(2197),p=r(7224);let d=class Validator extends l.SchemaValidator{constructor(e){super(e.getSchema("SucceedRepositoryAttributeRequest"))}};d=i([s(0,u.Inject),n("design:paramtypes",[l.SchemaRepository])],d);let f=class SucceedRepositoryAttributeUseCase extends l.UseCase{constructor(e,t,r){super(r),this.attributeController=e,this.accountController=t}async executeInternal(e){const t=await this.attributeController.getLocalAttribute(c.CoreId.from(e.predecessorId));if(void 0===t)return o.Result.fail(a.CoreErrors.attributes.predecessorDoesNotExist());const r={content:{"@type":"IdentityAttribute",owner:this.accountController.identity.address.toString(),...e.successorContent},succeeds:t.id.toString()},i=c.CoreId.from(e.predecessorId),n=await this.attributeController.validateRepositoryAttributeSuccession(i,r);if(n.isError())return o.Result.fail(n.error);const{predecessor:s,successor:u}=await this.attributeController.succeedRepositoryAttribute(i,r,!1);await this.accountController.syncDatawallet();const l={predecessor:p.AttributeMapper.toAttributeDTO(s),successor:p.AttributeMapper.toAttributeDTO(u)};return o.Result.ok(l)}};t.SucceedRepositoryAttributeUseCase=f,t.SucceedRepositoryAttributeUseCase=f=i([s(0,u.Inject),s(1,u.Inject),s(2,u.Inject),n("design:paramtypes",[a.AttributesController,c.AccountController,d])],f)},1685:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ValidateIQLQueryUseCase=void 0;const o=r(1917),a=r(2344),c=r(7181),u=r(1699),l=r(2197);let p=class Validator extends l.SchemaValidator{constructor(e){super(e.getSchema("ValidateIQLQueryRequest"))}};p=i([s(0,u.Inject),n("design:paramtypes",[l.SchemaRepository])],p);let d=class ValidateIQLQueryUseCase extends l.UseCase{constructor(e){super(e)}executeInternal(e){const t=a.IQLQuery.from(e.query),r=(0,c.validate)(t.queryString);return o.Result.ok(r)}};t.ValidateIQLQueryUseCase=d,t.ValidateIQLQueryUseCase=d=i([s(0,u.Inject),n("design:paramtypes",[p])],d)},4525:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(7224),t),n(r(4903),t),n(r(6865),t),n(r(4765),t),n(r(8672),t),n(r(2720),t),n(r(3302),t),n(r(5028),t),n(r(1780),t),n(r(2020),t),n(r(339),t),n(r(5433),t),n(r(6652),t),n(r(7789),t),n(r(2165),t),n(r(3612),t),n(r(3874),t),n(r(2385),t),n(r(2320),t),n(r(1300),t),n(r(6803),t),n(r(8729),t),n(r(1685),t)},5311:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CreateDraftUseCase=void 0;const o=r(1917),a=r(8334),c=r(2984),u=r(1699),l=r(2197),p=r(6350);let d=class Validator extends l.SchemaValidator{constructor(e){super(e.getSchema("CreateDraftRequest"))}};d=i([s(0,u.Inject),n("design:paramtypes",[l.SchemaRepository])],d);let f=class CreateDraftUseCase extends l.UseCase{constructor(e,t,r){super(r),this.draftController=e,this.accountController=t}async executeInternal(e){const t=await this.draftController.createDraft(e.content,e.type);return await this.accountController.syncDatawallet(),o.Result.ok(p.DraftMapper.toDraftDTO(t))}};t.CreateDraftUseCase=f,t.CreateDraftUseCase=f=i([s(0,u.Inject),s(1,u.Inject),s(2,u.Inject),n("design:paramtypes",[a.DraftsController,c.AccountController,d])],f)},5222:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DeleteDraftUseCase=void 0;const o=r(1917),a=r(8334),c=r(2984),u=r(1699),l=r(2197);let p=class Validator extends l.SchemaValidator{constructor(e){super(e.getSchema("DeleteDraftRequest"))}};p=i([s(0,u.Inject),n("design:paramtypes",[l.SchemaRepository])],p);let d=class DeleteDraftUseCase extends l.UseCase{constructor(e,t,r){super(r),this.draftController=e,this.accountController=t}async executeInternal(e){const t=await this.draftController.getDraft(c.CoreId.from(e.id));return t?(await this.draftController.deleteDraft(t),await this.accountController.syncDatawallet(),o.Result.ok(void 0)):o.Result.fail(l.RuntimeErrors.general.recordNotFound(a.Draft))}};t.DeleteDraftUseCase=d,t.DeleteDraftUseCase=d=i([s(0,u.Inject),s(1,u.Inject),s(2,u.Inject),n("design:paramtypes",[a.DraftsController,c.AccountController,p])],d)},6350:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DraftMapper=void 0;t.DraftMapper=class DraftMapper{static toDraftDTO(e){return{id:e.id.toString(),type:e.type,createdAt:e.createdAt.toString(),lastModifiedAt:e.lastModifiedAt.toISOString(),content:e.content.toJSON()}}static toDraftDTOList(e){return e.map((e=>this.toDraftDTO(e)))}}},7801:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetDraftUseCase=void 0;const o=r(1917),a=r(8334),c=r(2984),u=r(1699),l=r(2197),p=r(6350);let d=class Validator extends l.SchemaValidator{constructor(e){super(e.getSchema("GetDraftRequest"))}};d=i([s(0,u.Inject),n("design:paramtypes",[l.SchemaRepository])],d);let f=class GetDraftUseCase extends l.UseCase{constructor(e,t){super(t),this.draftController=e}async executeInternal(e){const t=await this.draftController.getDraft(c.CoreId.from(e.id));return t?o.Result.ok(p.DraftMapper.toDraftDTO(t)):o.Result.fail(l.RuntimeErrors.general.recordNotFound(a.Draft))}};t.GetDraftUseCase=f,t.GetDraftUseCase=f=i([s(0,u.Inject),s(1,u.Inject),n("design:paramtypes",[a.DraftsController,d])],f)},8012:function(e,t,r){"use strict";var i,n=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetDraftsUseCase=void 0;const a=r(7197),c=r(1917),u=r(8334),l=r(889),p=r(1699),d=r(2197),f=r(6350);let y=class Validator extends d.SchemaValidator{constructor(e){super(e.getSchema("GetDraftsRequest"))}};y=n([o(0,p.Inject),s("design:paramtypes",[d.SchemaRepository])],y);let h=class GetDraftsUseCase extends d.UseCase{static{i=this}static{this.queryTranslator=new a.QueryTranslator({whitelist:{[(0,l.nameof)((e=>e.type))]:!0,[(0,l.nameof)((e=>e.createdAt))]:!0,[(0,l.nameof)((e=>e.lastModifiedAt))]:!0}})}constructor(e,t){super(t),this.draftController=e}async executeInternal(e){const t=i.queryTranslator.parse(e.query),r=await this.draftController.getDrafts(t);return c.Result.ok(f.DraftMapper.toDraftDTOList(r))}};t.GetDraftsUseCase=h,t.GetDraftsUseCase=h=i=n([o(0,p.Inject),o(1,p.Inject),s("design:paramtypes",[u.DraftsController,y])],h)},2280:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateDraftUseCase=void 0;const o=r(1391),a=r(1917),c=r(8334),u=r(2984),l=r(1699),p=r(2197),d=r(6350);let f=class Validator extends p.SchemaValidator{constructor(e){super(e.getSchema("UpdateDraftRequest"))}};f=i([s(0,l.Inject),n("design:paramtypes",[p.SchemaRepository])],f);let y=class UpdateDraftUseCase extends p.UseCase{constructor(e,t,r){super(r),this.draftController=e,this.accountController=t}async executeInternal(e){const t=await this.draftController.getDraft(u.CoreId.from(e.id));return t?(t.content=o.Serializable.fromUnknown(e.content),await this.draftController.updateDraft(t),await this.accountController.syncDatawallet(),a.Result.ok(d.DraftMapper.toDraftDTO(t))):a.Result.fail(p.RuntimeErrors.general.recordNotFound(c.Draft))}};t.UpdateDraftUseCase=y,t.UpdateDraftUseCase=y=i([s(0,l.Inject),s(1,l.Inject),s(2,l.Inject),n("design:paramtypes",[c.DraftsController,u.AccountController,f])],y)},4644:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(5311),t),n(r(5222),t),n(r(6350),t),n(r(7801),t),n(r(8012),t),n(r(2280),t)},5583:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(4021),t),n(r(4525),t),n(r(4644),t),n(r(3056),t),n(r(5574),t),n(r(9561),t)},2879:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetNotificationUseCase=void 0;const o=r(1917),a=r(8334),c=r(2984),u=r(1699),l=r(2197),p=r(9276);let d=class Validator extends l.SchemaValidator{constructor(e){super(e.getSchema("GetNotificationRequest"))}};d=i([s(0,u.Inject),n("design:paramtypes",[l.SchemaRepository])],d);let f=class GetNotificationUseCase extends l.UseCase{constructor(e,t){super(t),this.notificationsController=e}async executeInternal(e){const t=await this.notificationsController.getNotification(c.CoreId.from(e.id));return o.Result.ok(p.NotificationMapper.toNotificationDTO(t))}};t.GetNotificationUseCase=f,t.GetNotificationUseCase=f=i([s(0,u.Inject),s(1,u.Inject),n("design:paramtypes",[a.NotificationsController,d])],f)},2426:function(e,t,r){"use strict";var i,n=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetNotificationsUseCase=void 0;const a=r(7197),c=r(1917),u=r(8334),l=r(1699),p=r(2197),d=r(9276);let f=class GetNotificationsUseCase extends p.UseCase{static{i=this}static{this.queryTranslator=new a.QueryTranslator({})}constructor(e){super(),this.notificationsController=e}async executeInternal(e){const t=i.queryTranslator.parse(e.query),r=await this.notificationsController.getNotifications(t);return c.Result.ok(d.NotificationMapper.toNotificationDTOList(r))}};t.GetNotificationsUseCase=f,t.GetNotificationsUseCase=f=i=n([o(0,l.Inject),s("design:paramtypes",[u.NotificationsController])],f)},9276:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationMapper=void 0;t.NotificationMapper=class NotificationMapper{static toNotificationDTO(e){return{id:e.id.toString(),isOwn:e.isOwn,peer:e.peer.toString(),createdAt:e.createdAt.toISOString(),receivedByDevice:e.receivedByDevice?.toString(),content:e.content.toJSON(),status:e.status,source:{type:"Message",reference:e.source.reference.toString()}}}static toNotificationDTOList(e){return e.map((e=>this.toNotificationDTO(e)))}}},2542:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ProcessNotificationByIdUseCase=void 0;const o=r(1917),a=r(8334),c=r(2984),u=r(1699),l=r(2197),p=r(9276);let d=class Validator extends l.SchemaValidator{constructor(e){super(e.getSchema("ProcessNotificationByIdRequest"))}};d=i([s(0,u.Inject),n("design:paramtypes",[l.SchemaRepository])],d);let f=class ProcessNotificationByIdUseCase extends l.UseCase{constructor(e,t){super(t),this.notificationsController=e}async executeInternal(e){const t=await this.notificationsController.processNotificationById(c.CoreId.from(e.notificationId)),r=p.NotificationMapper.toNotificationDTO(t);return o.Result.ok(r)}};t.ProcessNotificationByIdUseCase=f,t.ProcessNotificationByIdUseCase=f=i([s(0,u.Inject),s(1,u.Inject),n("design:paramtypes",[a.NotificationsController,d])],f)},7115:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ProcessOpenNotifactionsReceivedByCurrentDeviceUseCase=void 0;const o=r(1917),a=r(8334),c=r(1699),u=r(2197);let l=class ProcessOpenNotifactionsReceivedByCurrentDeviceUseCase extends u.UseCase{constructor(e){super(),this.notificationsController=e}async executeInternal(){return await this.notificationsController.processOpenNotifactionsReceivedByCurrentDevice(),o.Result.ok(void 0)}};t.ProcessOpenNotifactionsReceivedByCurrentDeviceUseCase=l,t.ProcessOpenNotifactionsReceivedByCurrentDeviceUseCase=l=i([s(0,c.Inject),n("design:paramtypes",[a.NotificationsController])],l)},7818:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ReceivedNotificationUseCase=void 0;const o=r(1917),a=r(8334),c=r(2344),u=r(2984),l=r(1699),p=r(2197),d=r(9276);let f=class Validator extends p.SchemaValidator{constructor(e){super(e.getSchema("ReceivedNotificationRequest"))}};f=i([s(0,l.Inject),n("design:paramtypes",[p.SchemaRepository])],f);let y=class ReceivedNotificationUseCase extends p.UseCase{constructor(e,t,r){super(r),this.notificationsController=e,this.messageController=t}async executeInternal(e){const t=await this.messageController.getMessage(u.CoreId.from(e.messageId));if(!t)return o.Result.fail(p.RuntimeErrors.general.recordNotFound(u.Message));if(!(t.cache.content instanceof c.Notification))return o.Result.fail(p.RuntimeErrors.notifications.messageDoesNotContainNotification(t.id));if(t.isOwn)return o.Result.fail(p.RuntimeErrors.notifications.cannotReceiveNotificationFromOwnMessage());const r=await this.notificationsController.received(t),i=d.NotificationMapper.toNotificationDTO(r);return o.Result.ok(i)}};t.ReceivedNotificationUseCase=y,t.ReceivedNotificationUseCase=y=i([s(0,l.Inject),s(1,l.Inject),s(2,l.Inject),n("design:paramtypes",[a.NotificationsController,u.MessageController,f])],y)},4767:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SentNotificationUseCase=void 0;const o=r(1917),a=r(8334),c=r(2344),u=r(2984),l=r(1699),p=r(2197),d=r(9276);let f=class Validator extends p.SchemaValidator{constructor(e){super(e.getSchema("SentNotificationRequest"))}};f=i([s(0,l.Inject),n("design:paramtypes",[p.SchemaRepository])],f);let y=class SentNotificationUseCase extends p.UseCase{constructor(e,t,r){super(r),this.notificationsController=e,this.messageController=t}async executeInternal(e){const t=await this.messageController.getMessage(u.CoreId.from(e.messageId));if(!t)return o.Result.fail(p.RuntimeErrors.general.recordNotFound(u.Message));if(!(t.cache.content instanceof c.Notification))return o.Result.fail(p.RuntimeErrors.notifications.messageDoesNotContainNotification(t.id));if(!t.isOwn)return o.Result.fail(p.RuntimeErrors.notifications.cannotSaveSentNotificationFromPeerMessage());const r=await this.notificationsController.sent(t),i=d.NotificationMapper.toNotificationDTO(r);return o.Result.ok(i)}};t.SentNotificationUseCase=y,t.SentNotificationUseCase=y=i([s(0,l.Inject),s(1,l.Inject),s(2,l.Inject),n("design:paramtypes",[a.NotificationsController,u.MessageController,f])],y)},3056:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(2879),t),n(r(2426),t),n(r(2542),t),n(r(7115),t),n(r(7818),t),n(r(4767),t)},8675:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AcceptIncomingRequestUseCase=void 0;const o=r(1917),a=r(8334),c=r(2984),u=r(1699),l=r(2197),p=r(9454);let d=class AcceptIncomingRequestUseCase extends l.UseCase{constructor(e){super(),this.incomingRequestsController=e}async executeInternal(e){let t=await this.incomingRequestsController.getIncomingRequest(c.CoreId.from(e.requestId));return t?(t=await this.incomingRequestsController.accept(e),o.Result.ok(p.RequestMapper.toLocalRequestDTO(t))):o.Result.fail(l.RuntimeErrors.general.recordNotFound(a.LocalRequest))}};t.AcceptIncomingRequestUseCase=d,t.AcceptIncomingRequestUseCase=d=i([s(0,u.Inject),n("design:paramtypes",[a.IncomingRequestsController])],d)},47:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CanAcceptIncomingRequestUseCase=void 0;const o=r(1917),a=r(8334),c=r(1699),u=r(2197),l=r(8504);let p=class CanAcceptIncomingRequestUseCase extends u.UseCase{constructor(e){super(),this.incomingRequestsController=e}async executeInternal(e){const t=await this.incomingRequestsController.canAccept(e),r=l.RequestValidationResultMapper.toRequestValidationResultDTO(t);return o.Result.ok(r)}};t.CanAcceptIncomingRequestUseCase=p,t.CanAcceptIncomingRequestUseCase=p=i([s(0,c.Inject),n("design:paramtypes",[a.IncomingRequestsController])],p)},5813:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CanCreateOutgoingRequestUseCase=void 0;const o=r(1917),a=r(8334),c=r(2984),u=r(1699),l=r(2197),p=r(8504);let d=class CanCreateOutgoingRequestUseCase extends l.UseCase{constructor(e){super(),this.outgoingRequestsController=e}async executeInternal(e){const t=await this.outgoingRequestsController.canCreate({content:e.content,peer:e.peer?c.CoreAddress.from(e.peer):void 0}),r=p.RequestValidationResultMapper.toRequestValidationResultDTO(t);return o.Result.ok(r)}};t.CanCreateOutgoingRequestUseCase=d,t.CanCreateOutgoingRequestUseCase=d=i([s(0,u.Inject),n("design:paramtypes",[a.OutgoingRequestsController])],d)},3630:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CanRejectIncomingRequestUseCase=void 0;const o=r(1917),a=r(8334),c=r(1699),u=r(2197),l=r(8504);let p=class CanRejectIncomingRequestUseCase extends u.UseCase{constructor(e){super(),this.incomingRequestsController=e}async executeInternal(e){const t=await this.incomingRequestsController.canReject(e),r=l.RequestValidationResultMapper.toRequestValidationResultDTO(t);return o.Result.ok(r)}};t.CanRejectIncomingRequestUseCase=p,t.CanRejectIncomingRequestUseCase=p=i([s(0,c.Inject),n("design:paramtypes",[a.IncomingRequestsController])],p)},1793:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CheckPrerequisitesOfIncomingRequestUseCase=void 0;const o=r(1917),a=r(8334),c=r(2984),u=r(1699),l=r(2197),p=r(9454);let d=class CheckPrerequisitesOfIncomingRequestUseCase extends l.UseCase{constructor(e){super(),this.incomingRequestsController=e}async executeInternal(e){const t=await this.incomingRequestsController.checkPrerequisites({requestId:c.CoreId.from(e.requestId)});return o.Result.ok(p.RequestMapper.toLocalRequestDTO(t))}};t.CheckPrerequisitesOfIncomingRequestUseCase=d,t.CheckPrerequisitesOfIncomingRequestUseCase=d=i([s(0,u.Inject),n("design:paramtypes",[a.IncomingRequestsController])],d)},6674:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CompleteIncomingRequestUseCase=void 0;const o=r(1917),a=r(8334),c=r(2984),u=r(1699),l=r(2197),p=r(9454);let d=class CompleteIncomingRequestUseCase extends l.UseCase{constructor(e,t,r){super(),this.incomingRequestsController=e,this.messageController=t,this.relationshipController=r}async executeInternal(e){const t=await this.getResponseSourceObject(e),r=c.CoreId.from(e.requestId),i=await this.incomingRequestsController.complete({requestId:r,responseSourceObject:t});return o.Result.ok(p.RequestMapper.toLocalRequestDTO(i))}async getResponseSourceObject(e){if(!e.responseSourceId)return;if(e.responseSourceId.startsWith("MSG")){const t=await this.messageController.getMessage(c.CoreId.from(e.responseSourceId));if(!t)throw l.RuntimeErrors.general.recordNotFound(c.Message);return t}const t=await this.relationshipController.getRelationships({"cache.changes.id":e.responseSourceId});if(0===t.length)throw l.RuntimeErrors.general.recordNotFound(c.RelationshipChange);return t[0].cache.creationChange}};t.CompleteIncomingRequestUseCase=d,t.CompleteIncomingRequestUseCase=d=i([s(0,u.Inject),s(1,u.Inject),s(2,u.Inject),n("design:paramtypes",[a.IncomingRequestsController,c.MessageController,c.RelationshipsController])],d)},5516:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CompleteOutgoingRequestUseCase=void 0;const o=r(1917),a=r(8334),c=r(2344),u=r(2984),l=r(1699),p=r(2197),d=r(9454);let f=class CompleteOutgoingRequestUseCase extends p.UseCase{constructor(e,t){super(),this.outgoingRequestsController=e,this.messageController=t}async executeInternal(e){const t=await this.messageController.getMessage(u.CoreId.from(e.messageId));if(!t)return o.Result.fail(p.RuntimeErrors.general.recordNotFound(u.Message));const r={requestId:u.CoreId.from(e.receivedResponse.requestId),receivedResponse:c.Response.from(e.receivedResponse),responseSourceObject:t},i=await this.outgoingRequestsController.complete(r);return o.Result.ok(d.RequestMapper.toLocalRequestDTO(i))}};t.CompleteOutgoingRequestUseCase=f,t.CompleteOutgoingRequestUseCase=f=i([s(0,l.Inject),s(1,l.Inject),n("design:paramtypes",[a.OutgoingRequestsController,u.MessageController])],f)},6414:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponseUseCase=void 0;const o=r(1917),a=r(8334),c=r(2344),u=r(2984),l=r(1699),p=r(2197),d=r(9454);let f=class CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponseUseCase extends p.UseCase{constructor(e,t,r,i){super(),this.outgoingRequestsController=e,this.relationshipController=t,this.relationshipTemplateController=r,this.messageController=i}async executeInternal(e){const t=await this.relationshipTemplateController.getRelationshipTemplate(u.CoreId.from(e.templateId));if(!t)return o.Result.fail(p.RuntimeErrors.general.recordNotFound(u.RelationshipTemplate));const r=await this.getResponseSource(e.responseSourceId);if(!r)return o.Result.fail(p.RuntimeErrors.general.recordNotFound(u.RelationshipChange));const i=await this.outgoingRequestsController.createAndCompleteFromRelationshipTemplateResponse({template:t,responseSource:r,response:c.Response.from(e.response)});return o.Result.ok(d.RequestMapper.toLocalRequestDTO(i))}async getResponseSource(e){if(e.startsWith("MSG"))return await this.messageController.getMessage(u.CoreId.from(e));const t=await this.relationshipController.getRelationships({"cache.changes.id":e});if(0!==t.length){return t[0].cache.creationChange}}};t.CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponseUseCase=f,t.CreateAndCompleteOutgoingRequestFromRelationshipTemplateResponseUseCase=f=i([s(0,l.Inject),s(1,l.Inject),s(2,l.Inject),s(3,l.Inject),n("design:paramtypes",[a.OutgoingRequestsController,u.RelationshipsController,u.RelationshipTemplateController,u.MessageController])],f)},6545:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CreateOutgoingRequestUseCase=void 0;const o=r(1917),a=r(8334),c=r(2984),u=r(1699),l=r(2197),p=r(9454);let d=class CreateOutgoingRequestUseCase extends l.UseCase{constructor(e){super(),this.outgoingRequestsController=e}async executeInternal(e){const t=await this.outgoingRequestsController.create({content:e.content,peer:c.CoreAddress.from(e.peer)});return o.Result.ok(p.RequestMapper.toLocalRequestDTO(t))}};t.CreateOutgoingRequestUseCase=d,t.CreateOutgoingRequestUseCase=d=i([s(0,u.Inject),n("design:paramtypes",[a.OutgoingRequestsController])],d)},6133:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DiscardOutgoingRequestUseCase=void 0;const o=r(1917),a=r(8334),c=r(2984),u=r(1699),l=r(2197);let p=class DiscardOutgoingRequestUseCase extends l.UseCase{constructor(e){super(),this.outgoingRequestsController=e}async executeInternal(e){return await this.outgoingRequestsController.discardOutgoingRequest(c.CoreId.from(e.id)),o.Result.ok(void 0)}};t.DiscardOutgoingRequestUseCase=p,t.DiscardOutgoingRequestUseCase=p=i([s(0,u.Inject),n("design:paramtypes",[a.OutgoingRequestsController])],p)},5106:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetIncomingRequestUseCase=void 0;const o=r(1917),a=r(8334),c=r(2984),u=r(1699),l=r(2197),p=r(9454);let d=class GetIncomingRequestUseCase extends l.UseCase{constructor(e){super(),this.incomingRequestsController=e}async executeInternal(e){const t=await this.incomingRequestsController.getIncomingRequest(c.CoreId.from(e.id));if(!t)return o.Result.fail(l.RuntimeErrors.general.recordNotFound(a.LocalRequest));const r=p.RequestMapper.toLocalRequestDTO(t);return o.Result.ok(r)}};t.GetIncomingRequestUseCase=d,t.GetIncomingRequestUseCase=d=i([s(0,u.Inject),n("design:paramtypes",[a.IncomingRequestsController])],d)},1632:function(e,t,r){"use strict";var i,n=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetIncomingRequestsUseCase=void 0;const a=r(7197),c=r(1917),u=r(8334),l=r(889),p=r(1699),d=r(2197),f=r(1948),y=r(9454);let h=class GetIncomingRequestsUseCase extends d.UseCase{static{i=this}static{this.queryTranslator=new a.QueryTranslator({whitelist:{[(0,l.nameof)((e=>e.id))]:!0,[(0,l.nameof)((e=>e.peer))]:!0,[(0,l.nameof)((e=>e.createdAt))]:!0,[(0,l.nameof)((e=>e.status))]:!0,[`${(0,l.nameof)((e=>e.content))}.${(0,l.nameof)((e=>e.expiresAt))}`]:!0,[`${(0,l.nameof)((e=>e.content))}.${(0,l.nameof)((e=>e.items))}.@type`]:!0,[`${(0,l.nameof)((e=>e.content))}.${(0,l.nameof)((e=>e.items))}.${(0,l.nameof)((e=>e.items))}.@type`]:!0,[`${(0,l.nameof)((e=>e.source))}.${(0,l.nameof)((e=>e.type))}`]:!0,[`${(0,l.nameof)((e=>e.source))}.${(0,l.nameof)((e=>e.reference))}`]:!0,[`${(0,l.nameof)((e=>e.response))}.${(0,l.nameof)((e=>e.createdAt))}`]:!0,[`${(0,l.nameof)((e=>e.response))}.${(0,l.nameof)((e=>e.source))}.${(0,l.nameof)((e=>e.type))}`]:!0,[`${(0,l.nameof)((e=>e.response))}.${(0,l.nameof)((e=>e.source))}.${(0,l.nameof)((e=>e.reference))}`]:!0,[`${(0,l.nameof)((e=>e.response))}.${(0,l.nameof)((e=>e.content))}.${(0,l.nameof)((e=>e.result))}`]:!0,[`${(0,l.nameof)((e=>e.response))}.${(0,l.nameof)((e=>e.content))}.${(0,l.nameof)((e=>e.items))}.@type`]:!0,[`${(0,l.nameof)((e=>e.response))}.${(0,l.nameof)((e=>e.content))}.${(0,l.nameof)((e=>e.items))}.${(0,l.nameof)((e=>e.items))}.@type`]:!0},alias:{[(0,l.nameof)((e=>e.id))]:(0,l.nameof)((e=>e.id)),[(0,l.nameof)((e=>e.peer))]:(0,l.nameof)((e=>e.peer)),[(0,l.nameof)((e=>e.createdAt))]:(0,l.nameof)((e=>e.createdAt)),[(0,l.nameof)((e=>e.status))]:(0,l.nameof)((e=>e.status)),[`${(0,l.nameof)((e=>e.content))}.${(0,l.nameof)((e=>e.expiresAt))}`]:`${(0,l.nameof)((e=>e.content))}.${(0,l.nameof)((e=>e.expiresAt))}`,[`${(0,l.nameof)((e=>e.content))}.${(0,l.nameof)((e=>e.items))}.@type`]:`${(0,l.nameof)((e=>e.content))}.${(0,l.nameof)((e=>e.items))}.@type`,[`${(0,l.nameof)((e=>e.content))}.${(0,l.nameof)((e=>e.items))}.${(0,l.nameof)((e=>e.items))}.@type`]:`${(0,l.nameof)((e=>e.content))}.${(0,l.nameof)((e=>e.items))}.${(0,l.nameof)((e=>e.items))}.@type`,[`${(0,l.nameof)((e=>e.source))}.${(0,l.nameof)((e=>e.type))}`]:`${(0,l.nameof)((e=>e.source))}.${(0,l.nameof)((e=>e.type))}`,[`${(0,l.nameof)((e=>e.source))}.${(0,l.nameof)((e=>e.reference))}`]:`${(0,l.nameof)((e=>e.source))}.${(0,l.nameof)((e=>e.reference))}`,[`${(0,l.nameof)((e=>e.response))}.${(0,l.nameof)((e=>e.createdAt))}`]:`${(0,l.nameof)((e=>e.response))}.${(0,l.nameof)((e=>e.createdAt))}`,[`${(0,l.nameof)((e=>e.response))}.${(0,l.nameof)((e=>e.source))}.${(0,l.nameof)((e=>e.type))}`]:`${(0,l.nameof)((e=>e.response))}.${(0,l.nameof)((e=>e.source))}.${(0,l.nameof)((e=>e.type))}`,[`${(0,l.nameof)((e=>e.response))}.${(0,l.nameof)((e=>e.source))}.${(0,l.nameof)((e=>e.reference))}`]:!0,[`${(0,l.nameof)((e=>e.response))}.${(0,l.nameof)((e=>e.content))}.${(0,l.nameof)((e=>e.result))}`]:`${(0,l.nameof)((e=>e.response))}.${(0,l.nameof)((e=>e.content))}.${(0,l.nameof)((e=>e.result))}`,[`${(0,l.nameof)((e=>e.response))}.${(0,l.nameof)((e=>e.content))}.${(0,l.nameof)((e=>e.items))}.@type`]:`${(0,l.nameof)((e=>e.response))}.${(0,l.nameof)((e=>e.content))}.${(0,l.nameof)((e=>e.items))}.@type`,[`${(0,l.nameof)((e=>e.response))}.${(0,l.nameof)((e=>e.content))}.${(0,l.nameof)((e=>e.items))}.${(0,l.nameof)((e=>e.items))}.@type`]:`${(0,l.nameof)((e=>e.response))}.${(0,l.nameof)((e=>e.content))}.${(0,l.nameof)((e=>e.items))}.${(0,l.nameof)((e=>e.items))}.@type`}})}constructor(e){super(),this.incomingRequestsController=e}async executeInternal(e){const t=(0,f.flattenObject)(e.query),r=i.queryTranslator.parse(t),n=await this.incomingRequestsController.getIncomingRequests(r),s=y.RequestMapper.toLocalRequestDTOList(n);return c.Result.ok(s)}};t.GetIncomingRequestsUseCase=h,t.GetIncomingRequestsUseCase=h=i=n([o(0,p.Inject),s("design:paramtypes",[u.IncomingRequestsController])],h)},5415:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetOutgoingRequestUseCase=void 0;const o=r(1917),a=r(8334),c=r(2984),u=r(1699),l=r(2197),p=r(9454);let d=class GetOutgoingRequestUseCase extends l.UseCase{constructor(e){super(),this.outgoingRequestsController=e}async executeInternal(e){const t=await this.outgoingRequestsController.getOutgoingRequest(c.CoreId.from(e.id));if(!t)return o.Result.fail(l.RuntimeErrors.general.recordNotFound(a.LocalRequest));const r=p.RequestMapper.toLocalRequestDTO(t);return o.Result.ok(r)}};t.GetOutgoingRequestUseCase=d,t.GetOutgoingRequestUseCase=d=i([s(0,u.Inject),n("design:paramtypes",[a.OutgoingRequestsController])],d)},1602:function(e,t,r){"use strict";var i,n=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetOutgoingRequestsUseCase=void 0;const a=r(7197),c=r(1917),u=r(8334),l=r(889),p=r(1699),d=r(2197),f=r(1948),y=r(9454);let h=class GetOutgoingRequestsUseCase extends d.UseCase{static{i=this}static{this.queryTranslator=new a.QueryTranslator({whitelist:{[(0,l.nameof)((e=>e.id))]:!0,[(0,l.nameof)((e=>e.peer))]:!0,[(0,l.nameof)((e=>e.createdAt))]:!0,[(0,l.nameof)((e=>e.status))]:!0,[`${(0,l.nameof)((e=>e.content))}.${(0,l.nameof)((e=>e.expiresAt))}`]:!0,[`${(0,l.nameof)((e=>e.content))}.${(0,l.nameof)((e=>e.items))}.@type`]:!0,[`${(0,l.nameof)((e=>e.content))}.${(0,l.nameof)((e=>e.items))}.${(0,l.nameof)((e=>e.items))}.@type`]:!0,[`${(0,l.nameof)((e=>e.source))}.${(0,l.nameof)((e=>e.type))}`]:!0,[`${(0,l.nameof)((e=>e.source))}.${(0,l.nameof)((e=>e.reference))}`]:!0,[`${(0,l.nameof)((e=>e.response))}.${(0,l.nameof)((e=>e.createdAt))}`]:!0,[`${(0,l.nameof)((e=>e.response))}.${(0,l.nameof)((e=>e.source))}.${(0,l.nameof)((e=>e.type))}`]:!0,[`${(0,l.nameof)((e=>e.response))}.${(0,l.nameof)((e=>e.source))}.${(0,l.nameof)((e=>e.reference))}`]:!0,[`${(0,l.nameof)((e=>e.response))}.${(0,l.nameof)((e=>e.content))}.${(0,l.nameof)((e=>e.result))}`]:!0,[`${(0,l.nameof)((e=>e.response))}.${(0,l.nameof)((e=>e.content))}.${(0,l.nameof)((e=>e.items))}.@type`]:!0,[`${(0,l.nameof)((e=>e.response))}.${(0,l.nameof)((e=>e.content))}.${(0,l.nameof)((e=>e.items))}.${(0,l.nameof)((e=>e.items))}.@type`]:!0},alias:{[(0,l.nameof)((e=>e.id))]:(0,l.nameof)((e=>e.id)),[(0,l.nameof)((e=>e.peer))]:(0,l.nameof)((e=>e.peer)),[(0,l.nameof)((e=>e.createdAt))]:(0,l.nameof)((e=>e.createdAt)),[(0,l.nameof)((e=>e.status))]:(0,l.nameof)((e=>e.status)),[`${(0,l.nameof)((e=>e.content))}.${(0,l.nameof)((e=>e.expiresAt))}`]:`${(0,l.nameof)((e=>e.content))}.${(0,l.nameof)((e=>e.expiresAt))}`,[`${(0,l.nameof)((e=>e.content))}.${(0,l.nameof)((e=>e.items))}.@type`]:`${(0,l.nameof)((e=>e.content))}.${(0,l.nameof)((e=>e.items))}.@type`,[`${(0,l.nameof)((e=>e.content))}.${(0,l.nameof)((e=>e.items))}.${(0,l.nameof)((e=>e.items))}.@type`]:`${(0,l.nameof)((e=>e.content))}.${(0,l.nameof)((e=>e.items))}.${(0,l.nameof)((e=>e.items))}.@type`,[`${(0,l.nameof)((e=>e.source))}.${(0,l.nameof)((e=>e.type))}`]:`${(0,l.nameof)((e=>e.source))}.${(0,l.nameof)((e=>e.type))}`,[`${(0,l.nameof)((e=>e.source))}.${(0,l.nameof)((e=>e.reference))}`]:`${(0,l.nameof)((e=>e.source))}.${(0,l.nameof)((e=>e.reference))}`,[`${(0,l.nameof)((e=>e.response))}.${(0,l.nameof)((e=>e.createdAt))}`]:`${(0,l.nameof)((e=>e.response))}.${(0,l.nameof)((e=>e.createdAt))}`,[`${(0,l.nameof)((e=>e.response))}.${(0,l.nameof)((e=>e.source))}.${(0,l.nameof)((e=>e.type))}`]:`${(0,l.nameof)((e=>e.response))}.${(0,l.nameof)((e=>e.source))}.${(0,l.nameof)((e=>e.type))}`,[`${(0,l.nameof)((e=>e.response))}.${(0,l.nameof)((e=>e.source))}.${(0,l.nameof)((e=>e.reference))}`]:!0,[`${(0,l.nameof)((e=>e.response))}.${(0,l.nameof)((e=>e.content))}.${(0,l.nameof)((e=>e.result))}`]:`${(0,l.nameof)((e=>e.response))}.${(0,l.nameof)((e=>e.content))}.${(0,l.nameof)((e=>e.result))}`,[`${(0,l.nameof)((e=>e.response))}.${(0,l.nameof)((e=>e.content))}.${(0,l.nameof)((e=>e.items))}.@type`]:`${(0,l.nameof)((e=>e.response))}.${(0,l.nameof)((e=>e.content))}.${(0,l.nameof)((e=>e.items))}.@type`,[`${(0,l.nameof)((e=>e.response))}.${(0,l.nameof)((e=>e.content))}.${(0,l.nameof)((e=>e.items))}.${(0,l.nameof)((e=>e.items))}.@type`]:`${(0,l.nameof)((e=>e.response))}.${(0,l.nameof)((e=>e.content))}.${(0,l.nameof)((e=>e.items))}.${(0,l.nameof)((e=>e.items))}.@type`}})}constructor(e){super(),this.outgoingRequestsController=e}async executeInternal(e){const t=(0,f.flattenObject)(e.query),r=i.queryTranslator.parse(t),n=await this.outgoingRequestsController.getOutgoingRequests(r),s=y.RequestMapper.toLocalRequestDTOList(n);return c.Result.ok(s)}};t.GetOutgoingRequestsUseCase=h,t.GetOutgoingRequestsUseCase=h=i=n([o(0,p.Inject),s("design:paramtypes",[u.OutgoingRequestsController])],h)},8374:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ReceivedIncomingRequestUseCase=void 0;const o=r(1917),a=r(8334),c=r(2344),u=r(2984),l=r(1699),p=r(2197),d=r(9454);let f=class ReceivedIncomingRequestUseCase extends p.UseCase{constructor(e,t,r){super(),this.incomingRequestsController=e,this.messageController=t,this.relationshipTemplateController=r}async executeInternal(e){let t;if(e.requestSourceId.startsWith("MSG")){if(t=await this.messageController.getMessage(u.CoreId.from(e.requestSourceId)),!t)return o.Result.fail(p.RuntimeErrors.general.recordNotFound(u.Message))}else if(t=await this.relationshipTemplateController.getRelationshipTemplate(u.CoreId.from(e.requestSourceId)),!t)return o.Result.fail(p.RuntimeErrors.general.recordNotFound(u.RelationshipTemplate));const r=await this.incomingRequestsController.received({receivedRequest:c.Request.from(e.receivedRequest),requestSourceObject:t});return o.Result.ok(d.RequestMapper.toLocalRequestDTO(r))}};t.ReceivedIncomingRequestUseCase=f,t.ReceivedIncomingRequestUseCase=f=i([s(0,l.Inject),s(1,l.Inject),s(2,l.Inject),n("design:paramtypes",[a.IncomingRequestsController,u.MessageController,u.RelationshipTemplateController])],f)},7674:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.RejectIncomingRequestUseCase=void 0;const o=r(1917),a=r(8334),c=r(2984),u=r(1699),l=r(2197),p=r(9454);let d=class RejectIncomingRequestUseCase extends l.UseCase{constructor(e){super(),this.incomingRequestsController=e}async executeInternal(e){let t=await this.incomingRequestsController.getIncomingRequest(c.CoreId.from(e.requestId));return t?(t=await this.incomingRequestsController.reject(e),o.Result.ok(p.RequestMapper.toLocalRequestDTO(t))):o.Result.fail(l.RuntimeErrors.general.recordNotFound(a.LocalRequest))}};t.RejectIncomingRequestUseCase=d,t.RejectIncomingRequestUseCase=d=i([s(0,u.Inject),n("design:paramtypes",[a.IncomingRequestsController])],d)},9454:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RequestMapper=void 0;t.RequestMapper=class RequestMapper{static toLocalRequestDTO(e){return{id:e.id.toString(),isOwn:e.isOwn,peer:e.peer.toString(),createdAt:e.createdAt.toString(),content:e.content.toJSON(),source:e.source?{type:e.source.type,reference:e.source.reference.toString()}:void 0,response:e.response?{createdAt:e.response.createdAt.toString(),content:e.response.content.toJSON(),source:e.response.source?{type:e.response.source.type,reference:e.response.source.reference.toString()}:void 0}:void 0,status:e.status}}static toLocalRequestDTOList(e){return e.map((e=>this.toLocalRequestDTO(e)))}}},8504:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RequestValidationResultMapper=void 0;t.RequestValidationResultMapper=class RequestValidationResultMapper{static toRequestValidationResultDTO(e){return{isSuccess:e.isSuccess(),code:e.isError()?e.error.code:void 0,message:e.isError()?e.error.message:void 0,items:e.items.map((e=>this.toRequestValidationResultDTO(e)))}}}},4083:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.RequireManualDecisionOfIncomingRequestUseCase=void 0;const o=r(1917),a=r(8334),c=r(2984),u=r(1699),l=r(2197),p=r(9454);let d=class RequireManualDecisionOfIncomingRequestUseCase extends l.UseCase{constructor(e){super(),this.incomingRequestsController=e}async executeInternal(e){const t=await this.incomingRequestsController.requireManualDecision({requestId:c.CoreId.from(e.requestId)});return o.Result.ok(p.RequestMapper.toLocalRequestDTO(t))}};t.RequireManualDecisionOfIncomingRequestUseCase=d,t.RequireManualDecisionOfIncomingRequestUseCase=d=i([s(0,u.Inject),n("design:paramtypes",[a.IncomingRequestsController])],d)},3359:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SentOutgoingRequestUseCase=void 0;const o=r(1917),a=r(8334),c=r(2984),u=r(1699),l=r(2197),p=r(9454);let d=class SentOutgoingRequestUseCase extends l.UseCase{constructor(e,t){super(),this.outgoingRequestsController=e,this.messageController=t}async executeInternal(e){const t=await this.messageController.getMessage(c.CoreId.from(e.messageId));if(!t)return o.Result.fail(l.RuntimeErrors.general.recordNotFound(c.Message));const r={requestId:c.CoreId.from(e.requestId),requestSourceObject:t},i=await this.outgoingRequestsController.sent(r);return o.Result.ok(p.RequestMapper.toLocalRequestDTO(i))}};t.SentOutgoingRequestUseCase=d,t.SentOutgoingRequestUseCase=d=i([s(0,u.Inject),s(1,u.Inject),n("design:paramtypes",[a.OutgoingRequestsController,c.MessageController])],d)},5574:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(8675),t),n(r(47),t),n(r(5813),t),n(r(3630),t),n(r(1793),t),n(r(6674),t),n(r(5516),t),n(r(6414),t),n(r(6545),t),n(r(6133),t),n(r(5106),t),n(r(1632),t),n(r(5415),t),n(r(1602),t),n(r(8374),t),n(r(7674),t),n(r(9454),t),n(r(4083),t),n(r(3359),t)},1701:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CreateSettingUseCase=void 0;const o=r(1917),a=r(8334),c=r(2984),u=r(1699),l=r(2197),p=r(3668);let d=class Validator extends l.SchemaValidator{constructor(e){super(e.getSchema("CreateSettingRequest"))}};d=i([s(0,u.Inject),n("design:paramtypes",[l.SchemaRepository])],d);let f=class CreateSettingUseCase extends l.UseCase{constructor(e,t,r){super(r),this.settingController=e,this.accountController=t}async executeInternal(e){const t=await this.settingController.createSetting({key:e.key,value:e.value,reference:e.reference?c.CoreId.from(e.reference):void 0,scope:e.scope,succeedsAt:e.succeedsAt?c.CoreDate.from(e.succeedsAt):void 0,succeedsItem:e.succeedsItem?c.CoreId.from(e.succeedsItem):void 0});return await this.accountController.syncDatawallet(),o.Result.ok(p.SettingMapper.toSettingDTO(t))}};t.CreateSettingUseCase=f,t.CreateSettingUseCase=f=i([s(0,u.Inject),s(1,u.Inject),s(2,u.Inject),n("design:paramtypes",[a.SettingsController,c.AccountController,d])],f)},2016:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DeleteSettingUseCase=void 0;const o=r(1917),a=r(8334),c=r(2984),u=r(1699),l=r(2197);let p=class Validator extends l.SchemaValidator{constructor(e){super(e.getSchema("DeleteSettingRequest"))}};p=i([s(0,u.Inject),n("design:paramtypes",[l.SchemaRepository])],p);let d=class DeleteSettingUseCase extends l.UseCase{constructor(e,t,r){super(r),this.settingController=e,this.accountController=t}async executeInternal(e){const t=await this.settingController.getSetting(c.CoreId.from(e.id));return t?(await this.settingController.deleteSetting(t),await this.accountController.syncDatawallet(),o.Result.ok(void 0)):o.Result.fail(l.RuntimeErrors.general.recordNotFound(a.Setting))}};t.DeleteSettingUseCase=d,t.DeleteSettingUseCase=d=i([s(0,u.Inject),s(1,u.Inject),s(2,u.Inject),n("design:paramtypes",[a.SettingsController,c.AccountController,p])],d)},9061:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetSettingUseCase=void 0;const o=r(1917),a=r(8334),c=r(2984),u=r(1699),l=r(2197),p=r(3668);let d=class Validator extends l.SchemaValidator{constructor(e){super(e.getSchema("GetSettingRequest"))}};d=i([s(0,u.Inject),n("design:paramtypes",[l.SchemaRepository])],d);let f=class GetSettingUseCase extends l.UseCase{constructor(e,t){super(t),this.settingController=e}async executeInternal(e){const t=await this.settingController.getSetting(c.CoreId.from(e.id));return t?o.Result.ok(p.SettingMapper.toSettingDTO(t)):o.Result.fail(l.RuntimeErrors.general.recordNotFound(a.Setting))}};t.GetSettingUseCase=f,t.GetSettingUseCase=f=i([s(0,u.Inject),s(1,u.Inject),n("design:paramtypes",[a.SettingsController,d])],f)},5797:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetSettingByKeyUseCase=void 0;const o=r(1917),a=r(8334),c=r(1699),u=r(2197),l=r(3668);let p=class Validator extends u.SchemaValidator{constructor(e){super(e.getSchema("GetSettingByKeyRequest"))}};p=i([s(0,c.Inject),n("design:paramtypes",[u.SchemaRepository])],p);let d=class GetSettingByKeyUseCase extends u.UseCase{constructor(e,t){super(t),this.settingController=e}async executeInternal(e){const t=await this.settingController.getSettings({key:e.key});if(0===t.length)return o.Result.fail(u.RuntimeErrors.general.recordNotFound(a.Setting));const r=t.reduce(((e,t)=>e.createdAt>t.createdAt?e:t));return o.Result.ok(l.SettingMapper.toSettingDTO(r))}};t.GetSettingByKeyUseCase=d,t.GetSettingByKeyUseCase=d=i([s(0,c.Inject),s(1,c.Inject),n("design:paramtypes",[a.SettingsController,p])],d)},7936:function(e,t,r){"use strict";var i,n=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetSettingsUseCase=void 0;const a=r(7197),c=r(1917),u=r(8334),l=r(889),p=r(1699),d=r(2197),f=r(3668);let y=class Validator extends d.SchemaValidator{constructor(e){super(e.getSchema("GetSettingsRequest"))}};y=n([o(0,p.Inject),s("design:paramtypes",[d.SchemaRepository])],y);let h=class GetSettingsUseCase extends d.UseCase{static{i=this}static{this.queryTranslator=new a.QueryTranslator({whitelist:{[(0,l.nameof)((e=>e.key))]:!0,[(0,l.nameof)((e=>e.scope))]:!0,[(0,l.nameof)((e=>e.reference))]:!0,[(0,l.nameof)((e=>e.createdAt))]:!0,[(0,l.nameof)((e=>e.succeedsItem))]:!0,[(0,l.nameof)((e=>e.succeedsAt))]:!0}})}constructor(e,t){super(t),this.settingController=e}async executeInternal(e){const t=i.queryTranslator.parse(e.query),r=await this.settingController.getSettings(t);return c.Result.ok(f.SettingMapper.toSettingDTOList(r))}};t.GetSettingsUseCase=h,t.GetSettingsUseCase=h=i=n([o(0,p.Inject),o(1,p.Inject),s("design:paramtypes",[u.SettingsController,y])],h)},3668:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SettingMapper=void 0;t.SettingMapper=class SettingMapper{static toSettingDTO(e){return{id:e.id.toString(),key:e.key,scope:e.scope,reference:e.reference?.toString(),value:e.value.toJSON(),createdAt:e.createdAt.toISOString(),succeedsItem:e.succeedsItem?.toString(),succeedsAt:e.succeedsAt?.toString()}}static toSettingDTOList(e){return e.map((e=>this.toSettingDTO(e)))}}},4562:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateSettingUseCase=void 0;const o=r(1391),a=r(1917),c=r(8334),u=r(2984),l=r(1699),p=r(2197),d=r(3668);let f=class Validator extends p.SchemaValidator{constructor(e){super(e.getSchema("UpdateSettingRequest"))}};f=i([s(0,l.Inject),n("design:paramtypes",[p.SchemaRepository])],f);let y=class UpdateSettingUseCase extends p.UseCase{constructor(e,t,r){super(r),this.settingController=e,this.accountController=t}async executeInternal(e){const t=await this.settingController.getSetting(u.CoreId.from(e.id));return t?(t.value=o.Serializable.fromUnknown(e.value),await this.settingController.updateSetting(t),await this.accountController.syncDatawallet(),a.Result.ok(d.SettingMapper.toSettingDTO(t))):a.Result.fail(p.RuntimeErrors.general.recordNotFound(c.Setting))}};t.UpdateSettingUseCase=y,t.UpdateSettingUseCase=y=i([s(0,l.Inject),s(1,l.Inject),s(2,l.Inject),n("design:paramtypes",[c.SettingsController,u.AccountController,f])],y)},9561:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(1701),t),n(r(2016),t),n(r(9061),t),n(r(5797),t),n(r(7936),t),n(r(3668),t),n(r(4562),t)},8087:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(8913),t),n(r(1174),t),n(r(1866),t),n(r(738),t),n(r(5583),t),n(r(9433),t)},2025:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DisableAutoSyncUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197);let l=class DisableAutoSyncUseCase extends u.UseCase{constructor(e){super(),this.accountController=e}executeInternal(){return this.accountController.disableAutoSync(),o.Result.ok(void 0)}};t.DisableAutoSyncUseCase=l,t.DisableAutoSyncUseCase=l=i([s(0,c.Inject),n("design:paramtypes",[a.AccountController])],l)},8902:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.EnableAutoSyncUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197);let l=class EnableAutoSyncUseCase extends u.UseCase{constructor(e){super(),this.accountController=e}async executeInternal(){return await this.accountController.enableAutoSync(),o.Result.ok(void 0)}};t.EnableAutoSyncUseCase=l,t.EnableAutoSyncUseCase=l=i([s(0,c.Inject),n("design:paramtypes",[a.AccountController])],l)},9807:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetDeviceInfoUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197),l=r(9702);let p=class GetDeviceInfoUseCase extends u.UseCase{constructor(e){super(),this.deviceController=e}executeInternal(){const e=this.deviceController.device;return o.Result.ok(l.DeviceMapper.toDeviceDTO(e,!0))}};t.GetDeviceInfoUseCase=p,t.GetDeviceInfoUseCase=p=i([s(0,c.Inject),n("design:paramtypes",[a.DeviceController])],p)},5035:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetIdentityInfoUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197);let l=class GetIdentityInfoUseCase extends u.UseCase{constructor(e){super(),this.identityController=e}executeInternal(){const e=this.identityController.identity;return o.Result.ok({address:e.address.toString(),publicKey:e.publicKey.toBase64(!1)})}};t.GetIdentityInfoUseCase=l,t.GetIdentityInfoUseCase=l=i([s(0,c.Inject),n("design:paramtypes",[a.IdentityController])],l)},5514:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetSyncInfoUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197);let l=class GetSyncInfoUseCase extends u.UseCase{constructor(e){super(),this.accountController=e}async executeInternal(){const e=await this.accountController.getLastCompletedSyncTime(),t=await this.accountController.getLastCompletedDatawalletSyncTime();return o.Result.ok({lastSyncRun:e?{completedAt:e.toISOString()}:void 0,lastDatawalletSync:t?{completedAt:t.toISOString()}:void 0})}};t.GetSyncInfoUseCase=l,t.GetSyncInfoUseCase=l=i([s(0,c.Inject),n("design:paramtypes",[a.AccountController])],l)},9481:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoadItemFromTruncatedReferenceUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197),l=r(9702),p=r(8622),d=r(8762),f=r(2860);let y=class Validator extends u.SchemaValidator{constructor(e){super(e.getSchema("LoadItemFromTruncatedReferenceRequest"))}};y=i([s(0,c.Inject),n("design:paramtypes",[u.SchemaRepository])],y);let h=class LoadItemFromTruncatedReferenceUseCase extends u.UseCase{constructor(e,t,r,i,n){super(n),this.fileController=e,this.templateController=t,this.tokenController=r,this.accountController=i}async executeInternal(e){try{return await this._executeInternal(e)}finally{await this.accountController.syncDatawallet()}}async _executeInternal(e){const t=e.reference;if(t.startsWith(u.Base64ForIdPrefix.RelationshipTemplate)){const e=await this.templateController.loadPeerRelationshipTemplateByTruncated(t);return o.Result.ok({type:"RelationshipTemplate",value:d.RelationshipTemplateMapper.toRelationshipTemplateDTO(e)})}if(t.startsWith(u.Base64ForIdPrefix.File)){const e=await this.fileController.getOrLoadFileByTruncated(t);return o.Result.ok({type:"File",value:p.FileMapper.toFileDTO(e)})}return await this.handleTokenReference(t)}async handleTokenReference(e){const t=await this.tokenController.loadPeerTokenByTruncated(e,!0);if(!t.cache)throw u.RuntimeErrors.general.cacheEmpty(a.Token,t.id.toString());const r=t.cache.content;if(r instanceof a.TokenContentRelationshipTemplate){const e=await this.templateController.loadPeerRelationshipTemplate(r.templateId,r.secretKey);return o.Result.ok({type:"RelationshipTemplate",value:d.RelationshipTemplateMapper.toRelationshipTemplateDTO(e)})}if(r instanceof a.TokenContentFile){const e=await this.fileController.getOrLoadFile(r.fileId,r.secretKey);return o.Result.ok({type:"File",value:p.FileMapper.toFileDTO(e)})}return r instanceof a.TokenContentDeviceSharedSecret?o.Result.ok({type:"DeviceOnboardingInfo",value:l.DeviceMapper.toDeviceOnboardingInfoDTO(r.sharedSecret)}):o.Result.ok({type:"Token",value:f.TokenMapper.toTokenDTO(t,!0)})}};t.LoadItemFromTruncatedReferenceUseCase=h,t.LoadItemFromTruncatedReferenceUseCase=h=i([s(0,c.Inject),s(1,c.Inject),s(2,c.Inject),s(3,c.Inject),s(4,c.Inject),n("design:paramtypes",[a.FileController,a.RelationshipTemplateController,a.TokenController,a.AccountController,y])],h)},5394:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.RegisterPushNotificationTokenUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197);let l=class Validator extends u.SchemaValidator{constructor(e){super(e.getSchema("RegisterPushNotificationTokenRequest"))}};l=i([s(0,c.Inject),n("design:paramtypes",[u.SchemaRepository])],l);let p=class RegisterPushNotificationTokenUseCase extends u.UseCase{constructor(e,t){super(t),this.accountController=e}async executeInternal(e){return await this.accountController.registerPushNotificationToken({handle:e.handle,platform:e.platform,appId:e.appId,environment:e.environment}),o.Result.ok(void 0)}};t.RegisterPushNotificationTokenUseCase=p,t.RegisterPushNotificationTokenUseCase=p=i([s(0,c.Inject),s(1,c.Inject),n("design:paramtypes",[a.AccountController,l])],p)},3971:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SyncDatawalletUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197);let l=class SyncDatawalletUseCase extends u.UseCase{constructor(e){super(),this.accountController=e}async executeInternal(e){return await this.accountController.syncDatawallet(!0,e.callback),o.Result.ok(void 0)}};t.SyncDatawalletUseCase=l,t.SyncDatawalletUseCase=l=i([s(0,c.Inject),n("design:paramtypes",[a.AccountController])],l)},4263:function(e,t,r){"use strict";var i,n=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SyncEverythingUseCase=void 0;const a=r(1917),c=r(2984),u=r(1699),l=r(842),p=r(2197),d=r(128),f=r(3366);let y=i=class SyncEverythingUseCase extends p.UseCase{constructor(e,t){super(),this.accountController=e,this.logger=t.getLogger(i)}async executeInternal(e){if(this.currentSync)return await this.currentSync;this.currentSync=this._executeInternal(e);try{return await this.currentSync}finally{this.currentSync=void 0}}async _executeInternal(e){const t=await this.accountController.syncEverything(e.callback),r=t.messages.map((e=>d.MessageMapper.toMessageDTO(e))),i=t.relationships.map((e=>f.RelationshipMapper.toRelationshipDTO(e)));return a.Result.ok({messages:r,relationships:i})}};t.SyncEverythingUseCase=y,t.SyncEverythingUseCase=y=i=n([o(0,u.Inject),o(1,u.Inject),s("design:paramtypes",[c.AccountController,l.RuntimeLoggerFactory])],y)},8063:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.UnregisterPushNotificationTokenUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197);let l=class UnregisterPushNotificationTokenUseCase extends u.UseCase{constructor(e){super(),this.accountController=e}async executeInternal(){return await this.accountController.unregisterPushNotificationToken(),o.Result.ok(void 0)}};t.UnregisterPushNotificationTokenUseCase=l,t.UnregisterPushNotificationTokenUseCase=l=i([s(0,c.Inject),n("design:paramtypes",[a.AccountController])],l)},6845:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(2025),t),n(r(8902),t),n(r(9807),t),n(r(5035),t),n(r(5514),t),n(r(9481),t),n(r(5394),t),n(r(3971),t),n(r(4263),t),n(r(8063),t)},3332:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChallengeMapper=void 0;t.ChallengeMapper=class ChallengeMapper{static toChallengeDTO(e){const t=JSON.parse(e.challenge);return{id:t.id,expiresAt:t.expiresAt,createdBy:t.createdBy,createdByDevice:t.createdByDevice,type:t.type,signature:e.signature.toBase64(!1),challengeString:e.challenge}}}},2673:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CreateChallengeUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197),l=r(3332);function isCreateRelationshipChallengeRequest(e){return"Relationship"===e.challengeType&&"string"==typeof e.relationship}let p=class Validator extends u.SchemaValidator{constructor(e){super(e.getSchema("CreateChallengeRequest")),this.relationshipSchema=e.getSchema("CreateRelationshipChallengeRequest"),this.identitySchema=e.getSchema("CreateIdentityChallengeRequest"),this.deviceSchema=e.getSchema("CreateDeviceChallengeRequest")}validate(e){if(this.schema.validate(e).isValid)return new u.ValidationResult;if(isCreateRelationshipChallengeRequest(e))return this.convertValidationResult(this.relationshipSchema.validate(e));if(function isCreateIdentityChallengeRequest(e){return"Identity"===e.challengeType}(e))return this.convertValidationResult(this.identitySchema.validate(e));if(function isCreateDeviceChallengeRequest(e){return"Device"===e.challengeType}(e))return this.convertValidationResult(this.deviceSchema.validate(e));const t=new u.ValidationResult;return t.addFailure(new u.ValidationFailure(u.RuntimeErrors.general.invalidPayload())),t}};p=i([s(0,c.Inject),n("design:paramtypes",[u.SchemaRepository])],p);let d=class CreateChallengeUseCase extends u.UseCase{constructor(e,t,r){super(r),this.challengeController=e,this.relationshipsController=t}async executeInternal(e){const t=await this.getRelationship(e);if(t.isError)return o.Result.fail(t.error);let r;switch(e.challengeType){case"Relationship":r=a.ChallengeType.Relationship;break;case"Identity":r=a.ChallengeType.Identity;break;case"Device":r=a.ChallengeType.Device;break;default:throw new Error("Unknown challenge type.")}const i=await this.challengeController.createChallenge(r,t.value);return o.Result.ok(l.ChallengeMapper.toChallengeDTO(i))}async getRelationship(e){if(!isCreateRelationshipChallengeRequest(e))return o.Result.ok(void 0);const t=await this.relationshipsController.getRelationship(a.CoreId.from(e.relationship));return t?o.Result.ok(t):o.Result.fail(u.RuntimeErrors.general.recordNotFound(a.Relationship))}};t.CreateChallengeUseCase=d,t.CreateChallengeUseCase=d=i([s(0,c.Inject),s(1,c.Inject),s(2,c.Inject),n("design:paramtypes",[a.ChallengeController,a.RelationshipsController,p])],d)},123:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ValidateChallengeUseCase=void 0;const o=r(1917),a=r(922),c=r(2984),u=r(889),l=r(1699),p=r(2197),d=r(3366);let f=class Validator extends p.SchemaValidator{constructor(e){super(e.getSchema("ValidateChallengeRequest"))}validate(e){const t=super.validate(e);if(t.isInvalid())return t;const r=this.validateSignature(e.signature);r.isError&&t.addFailure(new p.ValidationFailure(p.RuntimeErrors.general.invalidPropertyValue(r.error.message),(0,u.nameof)((e=>e.signature))));const i=this.validateChallenge(e.challengeString);return i.isError&&t.addFailure(new p.ValidationFailure(p.RuntimeErrors.general.invalidPropertyValue(i.error.message),(0,u.nameof)((e=>e.challengeString)))),t}validateSignature(e){try{return a.CryptoSignature.fromBase64(e),o.Result.ok(void 0)}catch{return o.Result.fail(p.RuntimeErrors.challenges.invalidSignature())}}validateChallenge(e){try{return c.Challenge.deserialize(e),o.Result.ok(void 0)}catch{return o.Result.fail(p.RuntimeErrors.challenges.invalidChallengeString())}}};f=i([s(0,l.Inject),n("design:paramtypes",[p.SchemaRepository])],f);let y=class ValidateChallengeUseCase extends p.UseCase{constructor(e,t){super(t),this.challengeController=e}async executeInternal(e){const t=a.CryptoSignature.fromBase64(e.signature),r=c.ChallengeSigned.from({challenge:e.challengeString,signature:t});try{const e=await this.challengeController.validateChallenge(r),t=e.correspondingRelationship?d.RelationshipMapper.toRelationshipDTO(e.correspondingRelationship):void 0;return o.Result.ok({isValid:e.isValid,correspondingRelationship:t})}catch(e){if(!(e instanceof c.CoreError)||"error.transport.notSupported"!==e.code)throw e;return o.Result.fail(p.RuntimeErrors.general.notSupported("Validating challenges of the type 'Device' is not yet supported."))}}};t.ValidateChallengeUseCase=y,t.ValidateChallengeUseCase=y=i([s(0,l.Inject),s(1,l.Inject),n("design:paramtypes",[c.ChallengeController,f])],y)},7760:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(2673),t),n(r(123),t)},3531:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CreateDeviceUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197),l=r(9702);let p=class Validator extends u.SchemaValidator{constructor(e){super(e.getSchema("CreateDeviceRequest"))}};p=i([s(0,c.Inject),n("design:paramtypes",[u.SchemaRepository])],p);let d=class CreateDeviceUseCase extends u.UseCase{constructor(e,t,r){super(r),this.devicesController=e,this.accountController=t}async executeInternal(e){const t=await this.devicesController.sendDevice(e);return await this.accountController.syncDatawallet(),o.Result.ok(l.DeviceMapper.toDeviceDTO(t,!1))}};t.CreateDeviceUseCase=d,t.CreateDeviceUseCase=d=i([s(0,c.Inject),s(1,c.Inject),s(2,c.Inject),n("design:paramtypes",[a.DevicesController,a.AccountController,p])],d)},4221:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CreateDeviceOnboardingTokenUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197),l=r(2860);let p=class Validator extends u.SchemaValidator{constructor(e){super(e.getSchema("CreateDeviceOnboardingTokenRequest"))}};p=i([s(0,c.Inject),n("design:paramtypes",[u.SchemaRepository])],p);let d=class CreateDeviceOnboardingTokenUseCase extends u.UseCase{constructor(e,t,r){super(r),this.devicesController=e,this.tokenController=t}async executeInternal(e){const t=await this.devicesController.getSharedSecret(a.CoreId.from(e.id),e.profileName),r=e.expiresAt?a.CoreDate.from(e.expiresAt):a.CoreDate.utc().add({minutes:5}),i=a.TokenContentDeviceSharedSecret.from({sharedSecret:t}),n=await this.tokenController.sendToken({content:i,expiresAt:r,ephemeral:!0});return o.Result.ok(l.TokenMapper.toTokenDTO(n,!0))}};t.CreateDeviceOnboardingTokenUseCase=d,t.CreateDeviceOnboardingTokenUseCase=d=i([s(0,c.Inject),s(1,c.Inject),s(2,c.Inject),n("design:paramtypes",[a.DevicesController,a.TokenController,p])],d)},5876:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DeleteDeviceUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197);let l=class Validator extends u.SchemaValidator{constructor(e){super(e.getSchema("DeleteDeviceRequest"))}};l=i([s(0,c.Inject),n("design:paramtypes",[u.SchemaRepository])],l);let p=class DeleteDeviceUseCase extends u.UseCase{constructor(e,t,r){super(r),this.devicesController=e,this.accountController=t}async executeInternal(e){await this.accountController.syncDatawallet();const t=await this.devicesController.get(a.CoreId.from(e.id));return t?(await this.devicesController.delete(t),await this.accountController.syncDatawallet(),o.Result.ok(void 0)):o.Result.fail(u.RuntimeErrors.general.recordNotFound(a.Device))}};t.DeleteDeviceUseCase=p,t.DeleteDeviceUseCase=p=i([s(0,c.Inject),s(1,c.Inject),s(2,c.Inject),n("design:paramtypes",[a.DevicesController,a.AccountController,l])],p)},9702:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeviceMapper=void 0;const i=r(922),n=r(2984);t.DeviceMapper=class DeviceMapper{static toDeviceDTO(e,t){return{id:e.id.toString(),isAdmin:e.isAdmin??!1,createdAt:e.createdAt.toString(),createdByDevice:e.createdByDevice.toString(),name:e.name,type:e.type.toString(),username:e.username,certificate:e.certificate,description:e.description,lastLoginAt:e.lastLoginAt?.toString(),operatingSystem:e.operatingSystem,publicKey:e.publicKey?.toBase64(!1),isCurrentDevice:t,isOffboarded:e.isOffboarded}}static toDeviceOnboardingInfoDTO(e){return{id:e.id.toString(),createdAt:e.createdAt.toString(),createdByDevice:e.createdByDevice.toString(),name:e.name,description:e.description,secretBaseKey:e.secretBaseKey.toBase64(!1),deviceIndex:e.deviceIndex,synchronizationKey:e.synchronizationKey.toBase64(!1),identityPrivateKey:e.identityPrivateKey?e.identityPrivateKey.toBase64(!1):void 0,identity:{address:e.identity.address.toString(),publicKey:e.identity.publicKey.toBase64(!1),realm:e.identity.realm.toString()},password:e.password,username:e.username,profileName:e.profileName}}static toDeviceSharedSecret(e){return n.DeviceSharedSecret.from({id:n.CoreId.from(e.id),createdAt:n.CoreDate.from(e.createdAt),createdByDevice:n.CoreId.from(e.createdByDevice),name:e.name,description:e.description,secretBaseKey:i.CryptoSecretKey.fromBase64(e.secretBaseKey),deviceIndex:e.deviceIndex,synchronizationKey:i.CryptoSecretKey.fromBase64(e.synchronizationKey),identityPrivateKey:e.identityPrivateKey?i.CryptoSignaturePrivateKey.fromBase64(e.identityPrivateKey):void 0,identity:{address:n.CoreAddress.from(e.identity.address),publicKey:i.CryptoSignaturePublicKey.fromBase64(e.identity.publicKey),realm:e.identity.realm},password:e.password,username:e.username,profileName:e.profileName})}}},1523:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetDeviceUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197),l=r(9702);let p=class Validator extends u.SchemaValidator{constructor(e){super(e.getSchema("GetDeviceRequest"))}};p=i([s(0,c.Inject),n("design:paramtypes",[u.SchemaRepository])],p);let d=class GetDeviceUseCase extends u.UseCase{constructor(e,t,r){super(r),this.devicesController=e,this.deviceController=t}async executeInternal(e){const t=await this.devicesController.get(a.CoreId.from(e.id));if(!t)return o.Result.fail(u.RuntimeErrors.general.recordNotFound(a.Device));const r=this.deviceController.device,i=t.id.equals(r.id);return o.Result.ok(l.DeviceMapper.toDeviceDTO(t,i))}};t.GetDeviceUseCase=d,t.GetDeviceUseCase=d=i([s(0,c.Inject),s(1,c.Inject),s(2,c.Inject),n("design:paramtypes",[a.DevicesController,a.DeviceController,p])],d)},8214:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetDeviceOnboardingInfoUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197),l=r(9702);let p=class Validator extends u.SchemaValidator{constructor(e){super(e.getSchema("GetDeviceOnboardingInfoRequest"))}};p=i([s(0,c.Inject),n("design:paramtypes",[u.SchemaRepository])],p);let d=class GetDeviceOnboardingInfoUseCase extends u.UseCase{constructor(e,t){super(t),this.devicesController=e}async executeInternal(e){const t=await this.devicesController.getSharedSecret(a.CoreId.from(e.id),e.profileName);return o.Result.ok(l.DeviceMapper.toDeviceOnboardingInfoDTO(t))}};t.GetDeviceOnboardingInfoUseCase=d,t.GetDeviceOnboardingInfoUseCase=d=i([s(0,c.Inject),s(1,c.Inject),n("design:paramtypes",[a.DevicesController,p])],d)},4262:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetDevicesUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197),l=r(9702);let p=class GetDevicesUseCase extends u.UseCase{constructor(e,t){super(),this.devicesController=e,this.deviceController=t}async executeInternal(){const e=await this.devicesController.list(),t=this.deviceController.device,r=e.map((e=>l.DeviceMapper.toDeviceDTO(e,e.id.equals(t.id))));return o.Result.ok(r)}};t.GetDevicesUseCase=p,t.GetDevicesUseCase=p=i([s(0,c.Inject),s(1,c.Inject),n("design:paramtypes",[a.DevicesController,a.DeviceController])],p)},2334:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateDeviceUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197),l=r(9702);let p=class Validator extends u.SchemaValidator{constructor(e){super(e.getSchema("UpdateDeviceRequest"))}};p=i([s(0,c.Inject),n("design:paramtypes",[u.SchemaRepository])],p);let d=class UpdateDeviceUseCase extends u.UseCase{constructor(e,t,r,i){super(i),this.devicesController=e,this.accountController=t,this.deviceController=r}async executeInternal(e){const t=await this.devicesController.get(a.CoreId.from(e.id));if(!t)return o.Result.fail(u.RuntimeErrors.general.recordNotFound(a.Device));void 0!==e.name&&(t.name=e.name),t.description=e.description,await this.devicesController.update(t),await this.accountController.syncDatawallet();const r=this.deviceController.device,i=t.id.equals(r.id);return o.Result.ok(l.DeviceMapper.toDeviceDTO(t,i))}};t.UpdateDeviceUseCase=d,t.UpdateDeviceUseCase=d=i([s(0,c.Inject),s(1,c.Inject),s(2,c.Inject),s(3,c.Inject),n("design:paramtypes",[a.DevicesController,a.AccountController,a.DeviceController,p])],d)},1477:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(3531),t),n(r(4221),t),n(r(5876),t),n(r(9702),t),n(r(1523),t),n(r(8214),t),n(r(4262),t),n(r(2334),t)},8498:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CreateQRCodeForFileUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197);let l=class Validator extends u.SchemaValidator{constructor(e){super(e.getSchema("CreateQRCodeForFileRequest"))}};l=i([s(0,c.Inject),n("design:paramtypes",[u.SchemaRepository])],l);let p=class CreateQRCodeForFileUseCase extends u.UseCase{constructor(e,t){super(t),this.fileController=e}async executeInternal(e){const t=await this.fileController.getFile(a.CoreId.from(e.fileId));if(!t)return o.Result.fail(u.RuntimeErrors.general.recordNotFound(a.File));const r=await u.QRCode.forTruncateable(t);return o.Result.ok({qrCodeBytes:r.asBase64()})}};t.CreateQRCodeForFileUseCase=p,t.CreateQRCodeForFileUseCase=p=i([s(0,c.Inject),s(1,c.Inject),n("design:paramtypes",[a.FileController,l])],p)},2427:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CreateTokenForFileUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197),l=r(2860);let p=class Validator extends u.SchemaValidator{constructor(e){super(e.getSchema("CreateTokenForFileRequest"))}};p=i([s(0,c.Inject),n("design:paramtypes",[u.SchemaRepository])],p);let d=class CreateTokenForFileUseCase extends u.UseCase{constructor(e,t,r,i){super(i),this.fileController=e,this.tokenController=t,this.accountController=r}async executeInternal(e){const t=await this.fileController.getFile(a.CoreId.from(e.fileId));if(!t)return o.Result.fail(u.RuntimeErrors.general.recordNotFound(a.File));const r=a.TokenContentFile.from({fileId:t.id,secretKey:t.secretKey}),i=e.ephemeral??!0,n=t.cache?.expiresAt??a.CoreDate.utc().add({days:12}),s=e.expiresAt?a.CoreDate.from(e.expiresAt):n,c=await this.tokenController.sendToken({content:r,expiresAt:s,ephemeral:i});return i||await this.accountController.syncDatawallet(),o.Result.ok(l.TokenMapper.toTokenDTO(c,i))}};t.CreateTokenForFileUseCase=d,t.CreateTokenForFileUseCase=d=i([s(0,c.Inject),s(1,c.Inject),s(2,c.Inject),s(3,c.Inject),n("design:paramtypes",[a.FileController,a.TokenController,a.AccountController,p])],d)},2473:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CreateTokenQRCodeForFileUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197);let l=class Validator extends u.SchemaValidator{constructor(e){super(e.getSchema("CreateTokenQRCodeForFileRequest"))}};l=i([s(0,c.Inject),n("design:paramtypes",[u.SchemaRepository])],l);let p=class CreateTokenQRCodeForFileUseCase extends u.UseCase{constructor(e,t,r){super(r),this.fileController=e,this.tokenController=t}async executeInternal(e){const t=await this.fileController.getFile(a.CoreId.from(e.fileId));if(!t)return o.Result.fail(u.RuntimeErrors.general.recordNotFound(a.File));const r=a.TokenContentFile.from({fileId:t.id,secretKey:t.secretKey}),i=t.cache?.expiresAt??a.CoreDate.utc().add({days:12}),n=e.expiresAt?a.CoreDate.from(e.expiresAt):i,s=await this.tokenController.sendToken({content:r,expiresAt:n,ephemeral:!0}),c=await u.QRCode.forTruncateable(s);return o.Result.ok({qrCodeBytes:c.asBase64()})}};t.CreateTokenQRCodeForFileUseCase=p,t.CreateTokenQRCodeForFileUseCase=p=i([s(0,c.Inject),s(1,c.Inject),s(2,c.Inject),n("design:paramtypes",[a.FileController,a.TokenController,l])],p)},8471:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DownloadFileUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197),l=r(8622);let p=class Validator extends u.SchemaValidator{constructor(e){super(e.getSchema("DownloadFileRequest"))}};p=i([s(0,c.Inject),n("design:paramtypes",[u.SchemaRepository])],p);let d=class DownloadFileUseCase extends u.UseCase{constructor(e,t){super(t),this.fileController=e}async executeInternal(e){const t=a.CoreId.from(e.id),r=await this.fileController.getFile(t);if(!r)return o.Result.fail(u.RuntimeErrors.general.recordNotFound(a.File));const i=await this.fileController.downloadFileContent(r);return o.Result.ok(l.FileMapper.toDownloadFileResponse(i,r))}};t.DownloadFileUseCase=d,t.DownloadFileUseCase=d=i([s(0,c.Inject),s(1,c.Inject),n("design:paramtypes",[a.FileController,p])],d)},8622:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileMapper=void 0;const i=r(2984),n=r(2197);t.FileMapper=class FileMapper{static toDownloadFileResponse(e,t){if(!t.cache)throw n.RuntimeErrors.general.cacheEmpty(i.File,t.id.toString());return{content:e.buffer,filename:t.cache.filename?t.cache.filename:t.id.toString(),mimetype:t.cache.mimetype}}static toFileDTO(e){if(!e.cache)throw n.RuntimeErrors.general.cacheEmpty(i.File,e.id.toString());return{id:e.id.toString(),filename:e.cache.filename,filesize:e.cache.filesize,createdAt:e.cache.createdAt.toString(),createdBy:e.cache.createdBy.toString(),createdByDevice:e.cache.createdByDevice.toString(),expiresAt:e.cache.expiresAt.toString(),mimetype:e.cache.mimetype,isOwn:e.isOwn,title:e.cache.title??"",secretKey:e.secretKey.toBase64(!1),description:e.cache.description,truncatedReference:e.truncate()}}static toFileDTOList(e){return e.map((e=>this.toFileDTO(e)))}}},6979:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetFileUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197),l=r(8622);let p=class Validator extends u.SchemaValidator{constructor(e){super(e.getSchema("GetFileRequest"))}};p=i([s(0,c.Inject),n("design:paramtypes",[u.SchemaRepository])],p);let d=class GetFileUseCase extends u.UseCase{constructor(e,t){super(t),this.fileController=e}async executeInternal(e){const t=await this.fileController.getFile(a.CoreId.from(e.id));return t?o.Result.ok(l.FileMapper.toFileDTO(t)):o.Result.fail(u.RuntimeErrors.general.recordNotFound(a.File))}};t.GetFileUseCase=d,t.GetFileUseCase=d=i([s(0,c.Inject),s(1,c.Inject),n("design:paramtypes",[a.FileController,p])],d)},8854:function(e,t,r){"use strict";var i,n=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetFilesUseCase=void 0;const a=r(7197),c=r(1917),u=r(2984),l=r(889),p=r(1699),d=r(2197),f=r(8622);let y=class Validator extends d.SchemaValidator{constructor(e){super(e.getSchema("GetFilesRequest"))}};y=n([o(0,p.Inject),s("design:paramtypes",[d.SchemaRepository])],y);let h=class GetFilesUseCase extends d.UseCase{static{i=this}static{this.queryTranslator=new a.QueryTranslator({whitelist:{[(0,l.nameof)((e=>e.createdAt))]:!0,[(0,l.nameof)((e=>e.createdBy))]:!0,[(0,l.nameof)((e=>e.createdByDevice))]:!0,[(0,l.nameof)((e=>e.description))]:!0,[(0,l.nameof)((e=>e.expiresAt))]:!0,[(0,l.nameof)((e=>e.filename))]:!0,[(0,l.nameof)((e=>e.filesize))]:!0,[(0,l.nameof)((e=>e.mimetype))]:!0,[(0,l.nameof)((e=>e.title))]:!0,[(0,l.nameof)((e=>e.isOwn))]:!0},alias:{[(0,l.nameof)((e=>e.createdAt))]:`${(0,l.nameof)((e=>e.cache))}.${(0,l.nameof)((e=>e.createdAt))}`,[(0,l.nameof)((e=>e.createdBy))]:`${(0,l.nameof)((e=>e.cache))}.${(0,l.nameof)((e=>e.createdBy))}`,[(0,l.nameof)((e=>e.createdByDevice))]:`${(0,l.nameof)((e=>e.cache))}.${(0,l.nameof)((e=>e.createdByDevice))}`,[(0,l.nameof)((e=>e.description))]:`${(0,l.nameof)((e=>e.cache))}.${(0,l.nameof)((e=>e.description))}`,[(0,l.nameof)((e=>e.expiresAt))]:`${(0,l.nameof)((e=>e.cache))}.${(0,l.nameof)((e=>e.expiresAt))}`,[(0,l.nameof)((e=>e.filename))]:`${(0,l.nameof)((e=>e.cache))}.${(0,l.nameof)((e=>e.filename))}`,[(0,l.nameof)((e=>e.filesize))]:`${(0,l.nameof)((e=>e.cache))}.${(0,l.nameof)((e=>e.filesize))}`,[(0,l.nameof)((e=>e.mimetype))]:`${(0,l.nameof)((e=>e.cache))}.${(0,l.nameof)((e=>e.mimetype))}`,[(0,l.nameof)((e=>e.title))]:`${(0,l.nameof)((e=>e.cache))}.${(0,l.nameof)((e=>e.title))}`,[(0,l.nameof)((e=>e.isOwn))]:(0,l.nameof)((e=>e.isOwn))}})}constructor(e,t){super(t),this.fileController=e}async executeInternal(e){const t=i.queryTranslator.parse(e.query);e.ownerRestriction&&(t[(0,l.nameof)((e=>e.isOwn))]=e.ownerRestriction===d.OwnerRestriction.Own);const r=await this.fileController.getFiles(t);return c.Result.ok(f.FileMapper.toFileDTOList(r))}};t.GetFilesUseCase=h,t.GetFilesUseCase=h=i=n([o(0,p.Inject),o(1,p.Inject),s("design:paramtypes",[u.FileController,y])],h)},4138:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetOrLoadFileUseCase=void 0;const o=r(1917),a=r(922),c=r(2984),u=r(1699),l=r(2197),p=r(8622);function isViaSecret(e){return"id"in e&&"secretKey"in e}function isViaReference(e){return"reference"in e}let d=class Validator extends l.SchemaValidator{constructor(e){super(e.getSchema("GetOrLoadFileRequest")),this.loadViaSecretSchema=e.getSchema("GetOrLoadFileViaSecretRequest"),this.loadViaReferenceSchema=e.getSchema("GetOrLoadFileViaReferenceRequest")}validate(e){if(this.schema.validate(e).isValid)return new l.ValidationResult;if(isViaReference(e))return this.convertValidationResult(this.loadViaReferenceSchema.validate(e));if(isViaSecret(e))return this.convertValidationResult(this.loadViaSecretSchema.validate(e));const t=new l.ValidationResult;return t.addFailure(new l.ValidationFailure(l.RuntimeErrors.general.invalidPayload())),t}};d=i([s(0,u.Inject),n("design:paramtypes",[l.SchemaRepository])],d);let f=class GetOrLoadFileUseCase extends l.UseCase{constructor(e,t,r,i){super(i),this.fileController=e,this.tokenController=t,this.accountController=r}async executeInternal(e){let t;if(isViaSecret(e)){const r=a.CryptoSecretKey.fromBase64(e.secretKey);t=await this.loadFile(c.CoreId.from(e.id),r)}else{if(!isViaReference(e))throw new Error("Invalid request format.");t=await this.loadFileFromReference(e.reference)}return await this.accountController.syncDatawallet(),t}async loadFileFromReference(e){if(e.startsWith(l.Base64ForIdPrefix.File))return await this.loadFileFromFileReference(e);if(e.startsWith(l.Base64ForIdPrefix.Token))return await this.loadFileFromTokenReference(e);throw l.RuntimeErrors.files.invalidReference(e)}async loadFileFromFileReference(e){const t=await this.fileController.getOrLoadFileByTruncated(e);return o.Result.ok(p.FileMapper.toFileDTO(t))}async loadFileFromTokenReference(e){const t=await this.tokenController.loadPeerTokenByTruncated(e,!0);if(!t.cache)throw l.RuntimeErrors.general.cacheEmpty(c.Token,t.id.toString());if(!(t.cache.content instanceof c.TokenContentFile))return o.Result.fail(l.RuntimeErrors.general.invalidTokenContent());const r=t.cache.content;return await this.loadFile(r.fileId,r.secretKey)}async loadFile(e,t){const r=await this.fileController.getOrLoadFile(e,t);return o.Result.ok(p.FileMapper.toFileDTO(r))}};t.GetOrLoadFileUseCase=f,t.GetOrLoadFileUseCase=f=i([s(0,u.Inject),s(1,u.Inject),s(2,u.Inject),s(3,u.Inject),n("design:paramtypes",[c.FileController,c.TokenController,c.AccountController,d])],f)},5144:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.UploadOwnFileUseCase=void 0;const o=r(1917),a=r(922),c=r(2984),u=r(3290),l=r(889),p=r(1699),d=r(2197),f=r(8622);let y=class Validator extends d.SchemaValidator{set maxFileSize(e){this._maxFileSize=e}constructor(e){super(e.getSchema("UploadOwnFileValidatableRequest"))}validate(e){const t=super.validate(e);return t.isValid()?(e.content.byteLength>this._maxFileSize&&t.addFailure(new d.ValidationFailure(d.RuntimeErrors.general.invalidPropertyValue(`'${(0,l.nameof)((e=>e.content))}' is too large`),(0,l.nameof)((e=>e.content)))),0===e.content.length&&t.addFailure(new d.ValidationFailure(d.RuntimeErrors.general.invalidPropertyValue(`'${(0,l.nameof)((e=>e.content))}' is empty`),(0,l.nameof)((e=>e.content)))),u.DateTime.fromISO(e.expiresAt)<=u.DateTime.utc()&&t.addFailure(new d.ValidationFailure(d.RuntimeErrors.general.invalidPropertyValue(`'${(0,l.nameof)((e=>e.expiresAt))}' must be in the future`),(0,l.nameof)((e=>e.expiresAt)))),t):t}};y=i([s(0,p.Inject),n("design:paramtypes",[d.SchemaRepository])],y);let h=class UploadOwnFileUseCase extends d.UseCase{constructor(e,t,r){super(r),this.fileController=e,this.accountController=t,r.maxFileSize=e.config.platformMaxUnencryptedFileSize}async executeInternal(e){const t=await this.fileController.sendFile({buffer:a.CoreBuffer.from(e.content),title:e.title,description:e.description??"",filename:e.filename,mimetype:e.mimetype,expiresAt:c.CoreDate.from(e.expiresAt)});return await this.accountController.syncDatawallet(),o.Result.ok(f.FileMapper.toFileDTO(t))}};t.UploadOwnFileUseCase=h,t.UploadOwnFileUseCase=h=i([s(0,p.Inject),s(1,p.Inject),s(2,p.Inject),n("design:paramtypes",[c.FileController,c.AccountController,y])],h)},9565:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(8498),t),n(r(2427),t),n(r(2473),t),n(r(8471),t),n(r(8622),t),n(r(6979),t),n(r(8854),t),n(r(4138),t),n(r(5144),t)},106:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CheckIdentityUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197),l=r(3366);let p=class Validator extends u.SchemaValidator{constructor(e){super(e.getSchema("CheckIdentityRequest"))}};p=i([s(0,c.Inject),n("design:paramtypes",[u.SchemaRepository])],p);let d=class CheckIdentityUseCase extends u.UseCase{constructor(e,t,r){super(r),this.identityController=e,this.relationshipsController=t}async executeInternal(e){const t=a.CoreAddress.from(e.address);if(this.identityController.isMe(t))return o.Result.ok({self:!0});const r=await this.relationshipsController.getRelationshipToIdentity(t);if(r){const e=l.RelationshipMapper.toRelationshipDTO(r);return r.status===a.RelationshipStatus.Pending?o.Result.ok({peer:!0,relationshipPending:!0,relationship:e}):r.status===a.RelationshipStatus.Active||r.status===a.RelationshipStatus.Terminating?o.Result.ok({peer:!0,relationshipActive:!0,relationship:e}):o.Result.ok({peer:!0,relationshipTerminated:!0,relationship:e})}return o.Result.ok({unknown:!0})}};t.CheckIdentityUseCase=d,t.CheckIdentityUseCase=d=i([s(0,c.Inject),s(1,c.Inject),s(2,c.Inject),n("design:paramtypes",[a.IdentityController,a.RelationshipsController,p])],d)},976:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(106),t)},9433:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(6845),t),n(r(7760),t),n(r(1477),t),n(r(9565),t),n(r(976),t),n(r(810),t),n(r(5857),t),n(r(4999),t),n(r(1444),t)},5877:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DownloadAttachmentUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197),l=r(128);let p=class Validator extends u.SchemaValidator{constructor(e){super(e.getSchema("DownloadAttachmentRequest"))}};p=i([s(0,c.Inject),n("design:paramtypes",[u.SchemaRepository])],p);let d=class DownloadAttachmentUseCase extends u.UseCase{constructor(e,t,r){super(r),this.messageController=e,this.fileController=t}async executeInternal(e){const t=await this.messageController.getMessage(a.CoreId.from(e.id));if(!t)return o.Result.fail(u.RuntimeErrors.general.recordNotFound(a.Message));if(!t.cache)throw u.RuntimeErrors.general.cacheEmpty(a.Message,t.id.toString());const r=t.cache.attachments.find((t=>t.equals(a.CoreId.from(e.attachmentId))));if(!r)return o.Result.fail(u.RuntimeErrors.messages.fileNotFoundInMessage(e.attachmentId));const i=await this.fileController.getFile(r);if(!i)return o.Result.fail(u.RuntimeErrors.general.recordNotFound(a.File));const n=await this.fileController.downloadFileContent(r);return o.Result.ok(l.MessageMapper.toDownloadAttachmentResponse(n,i))}};t.DownloadAttachmentUseCase=d,t.DownloadAttachmentUseCase=d=i([s(0,c.Inject),s(1,c.Inject),s(2,c.Inject),n("design:paramtypes",[a.MessageController,a.FileController,p])],d)},1110:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetAttachmentMetadataUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197),l=r(8622);let p=class Validator extends u.SchemaValidator{constructor(e){super(e.getSchema("GetAttachmentMetadataRequest"))}};p=i([s(0,c.Inject),n("design:paramtypes",[u.SchemaRepository])],p);let d=class GetAttachmentMetadataUseCase extends u.UseCase{constructor(e,t,r){super(r),this.messageController=e,this.fileController=t}async executeInternal(e){const t=await this.messageController.getMessage(a.CoreId.from(e.id));if(!t)return o.Result.fail(u.RuntimeErrors.general.recordNotFound(a.Message));if(!t.cache)throw u.RuntimeErrors.general.cacheEmpty(a.Message,t.id.toString());const r=t.cache.attachments.find((t=>t.equals(a.CoreId.from(e.attachmentId))));if(!r)return o.Result.fail(u.RuntimeErrors.messages.fileNotFoundInMessage(e.attachmentId));const i=await this.fileController.getFile(r);return i?o.Result.ok(l.FileMapper.toFileDTO(i)):o.Result.fail(u.RuntimeErrors.general.recordNotFound(a.File))}};t.GetAttachmentMetadataUseCase=d,t.GetAttachmentMetadataUseCase=d=i([s(0,c.Inject),s(1,c.Inject),s(2,c.Inject),n("design:paramtypes",[a.MessageController,a.FileController,p])],d)},5139:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetMessageUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197),l=r(128);let p=class Validator extends u.SchemaValidator{constructor(e){super(e.getSchema("GetMessageRequest"))}};p=i([s(0,c.Inject),n("design:paramtypes",[u.SchemaRepository])],p);let d=class GetMessageUseCase extends u.UseCase{constructor(e,t,r){super(r),this.messageController=e,this.fileController=t}async executeInternal(e){const t=await this.messageController.getMessage(a.CoreId.from(e.id));if(!t)return o.Result.fail(u.RuntimeErrors.general.recordNotFound(a.Message));if(!t.cache)return o.Result.fail(u.RuntimeErrors.general.cacheEmpty(a.Message,t.id.toString()));const r=await Promise.all(t.cache.attachments.map((e=>this.fileController.getFile(e))));if(r.some((e=>!e)))throw new Error("A file could not be fetched.");return o.Result.ok(l.MessageMapper.toMessageWithAttachmentsDTO(t,r))}};t.GetMessageUseCase=d,t.GetMessageUseCase=d=i([s(0,c.Inject),s(1,c.Inject),s(2,c.Inject),n("design:paramtypes",[a.MessageController,a.FileController,p])],d)},7478:function(e,t,r){"use strict";var i,n=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetMessagesUseCase=void 0;const a=r(7197),c=r(1917),u=r(2984),l=r(889),p=r(1699),d=r(2197),f=r(128);let y=class Validator extends d.SchemaValidator{constructor(e){super(e.getSchema("GetMessagesRequest"))}};y=n([o(0,p.Inject),s("design:paramtypes",[d.SchemaRepository])],y);let h=class GetMessagesUseCase extends d.UseCase{static{i=this}static{this.queryTranslator=new a.QueryTranslator({whitelist:{[(0,l.nameof)((e=>e.createdBy))]:!0,[(0,l.nameof)((e=>e.createdByDevice))]:!0,[(0,l.nameof)((e=>e.createdAt))]:!0,[`${(0,l.nameof)((e=>e.content))}.@type`]:!0,[`${(0,l.nameof)((e=>e.content))}.body`]:!0,[`${(0,l.nameof)((e=>e.content))}.subject`]:!0,[(0,l.nameof)((e=>e.attachments))]:!0,[`${(0,l.nameof)((e=>e.recipients))}.${(0,l.nameof)((e=>e.address))}`]:!0,[`${(0,l.nameof)((e=>e.recipients))}.${(0,l.nameof)((e=>e.relationshipId))}`]:!0,[(0,l.nameof)((e=>e.wasReadAt))]:!0,participant:!0},alias:{[(0,l.nameof)((e=>e.createdBy))]:`${(0,l.nameof)((e=>e.cache))}.${(0,l.nameof)((e=>e.createdBy))}`,[(0,l.nameof)((e=>e.createdByDevice))]:`${(0,l.nameof)((e=>e.cache))}.${(0,l.nameof)((e=>e.createdByDevice))}`,[(0,l.nameof)((e=>e.createdAt))]:`${(0,l.nameof)((e=>e.cache))}.${(0,l.nameof)((e=>e.createdAt))}`,[`${(0,l.nameof)((e=>e.recipients))}.${(0,l.nameof)((e=>e.address))}`]:`${(0,l.nameof)((e=>e.cache))}.${(0,l.nameof)((e=>e.recipients))}.${(0,l.nameof)((e=>e.address))}`,[`${(0,l.nameof)((e=>e.content))}.@type`]:`${(0,l.nameof)((e=>e.cache))}.${(0,l.nameof)((e=>e.content))}.@type`,[`${(0,l.nameof)((e=>e.content))}.body`]:`${(0,l.nameof)((e=>e.cache))}.${(0,l.nameof)((e=>e.content))}.body`,[`${(0,l.nameof)((e=>e.content))}.subject`]:`${(0,l.nameof)((e=>e.cache))}.${(0,l.nameof)((e=>e.content))}.subject`,[(0,l.nameof)((e=>e.wasReadAt))]:(0,l.nameof)((e=>e.wasReadAt))},custom:{[`${(0,l.nameof)((e=>e.recipients))}.${(0,l.nameof)((e=>e.relationshipId))}`]:(e,t)=>{e[(0,l.nameof)((e=>e.relationshipIds))]={$containsAny:Array.isArray(t)?t:[t]}},[(0,l.nameof)((e=>e.attachments))]:(e,t)=>{e[`${(0,l.nameof)((e=>e.cache))}.${(0,l.nameof)((e=>e.attachments))}`]="+"!==t?{$containsAny:Array.isArray(t)?t:[t]}:{$not:{$size:0}}},participant:(e,t)=>{let r;if(Array.isArray(t)){if(0===t.length)return;r={};for(const e of t){const t=i.queryTranslator.parseString(e,!0);switch(t.field){case"$containsAny":case"$containsNone":r[t.field]=r[t.field]||[],r[t.field].push(t.value);break;default:r[t.field]=t.value}}}else r=i.queryTranslator.parseStringVal(t);e.$or=[{[`${(0,l.nameof)((e=>e.cache))}.${(0,l.nameof)((e=>e.createdBy))}`]:r},{[`${(0,l.nameof)((e=>e.cache))}.${(0,l.nameof)((e=>e.recipients))}.${(0,l.nameof)((e=>e.address))}`]:r}]}}})}constructor(e,t){super(t),this.messageController=e}async executeInternal(e){const t=i.queryTranslator.parse(e.query),r=await this.messageController.getMessages(t);return c.Result.ok(f.MessageMapper.toMessageDTOList(r))}};t.GetMessagesUseCase=h,t.GetMessagesUseCase=h=i=n([o(0,p.Inject),o(1,p.Inject),s("design:paramtypes",[u.MessageController,y])],h)},1494:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MarkMessageAsReadUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197),l=r(128);let p=class Validator extends u.SchemaValidator{constructor(e){super(e.getSchema("MarkMessageAsReadRequest"))}};p=i([s(0,c.Inject),n("design:paramtypes",[u.SchemaRepository])],p);let d=class MarkMessageAsReadUseCase extends u.UseCase{constructor(e,t,r){super(r),this.messageController=e,this.accountController=t}async executeInternal(e){const t=await this.messageController.markMessageAsRead(a.CoreId.from(e.id));return await this.accountController.syncDatawallet(),o.Result.ok(l.MessageMapper.toMessageDTO(t))}};t.MarkMessageAsReadUseCase=d,t.MarkMessageAsReadUseCase=d=i([s(0,c.Inject),s(1,c.Inject),s(2,c.Inject),n("design:paramtypes",[a.MessageController,a.AccountController,p])],d)},9909:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MarkMessageAsUnreadUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197),l=r(128);let p=class Validator extends u.SchemaValidator{constructor(e){super(e.getSchema("MarkMessageAsUnreadRequest"))}};p=i([s(0,c.Inject),n("design:paramtypes",[u.SchemaRepository])],p);let d=class MarkMessageAsUnreadUseCase extends u.UseCase{constructor(e,t,r){super(r),this.messageController=e,this.accountController=t}async executeInternal(e){const t=await this.messageController.markMessageAsUnread(a.CoreId.from(e.id));return await this.accountController.syncDatawallet(),o.Result.ok(l.MessageMapper.toMessageDTO(t))}};t.MarkMessageAsUnreadUseCase=d,t.MarkMessageAsUnreadUseCase=d=i([s(0,c.Inject),s(1,c.Inject),s(2,c.Inject),n("design:paramtypes",[a.MessageController,a.AccountController,p])],d)},128:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageMapper=void 0;const i=r(2984),n=r(2197),s=r(8622);t.MessageMapper=class MessageMapper{static toDownloadAttachmentResponse(e,t){if(!t.cache)throw n.RuntimeErrors.general.cacheEmpty(i.File,t.id.toString());return{content:e.buffer,filename:t.cache.filename?t.cache.filename:t.id.toString(),mimetype:t.cache.mimetype}}static toMessageWithAttachmentsDTO(e,t){if(!e.cache)throw n.RuntimeErrors.general.cacheEmpty(i.Message,e.id.toString());return{id:e.id.toString(),content:e.cache.content.toJSON(),createdBy:e.cache.createdBy.toString(),createdByDevice:e.cache.createdByDevice.toString(),recipients:e.cache.recipients.map(((t,r)=>this.toRecipient(t,e.relationshipIds[r]))),createdAt:e.cache.createdAt.toString(),attachments:t.map((e=>s.FileMapper.toFileDTO(e))),isOwn:e.isOwn,wasReadAt:e.wasReadAt?.toString()}}static toMessageDTO(e){if(!e.cache)throw n.RuntimeErrors.general.cacheEmpty(i.Message,e.id.toString());return{id:e.id.toString(),content:e.cache.content.toJSON(),createdBy:e.cache.createdBy.toString(),createdByDevice:e.cache.createdByDevice.toString(),recipients:e.cache.recipients.map(((t,r)=>this.toRecipient(t,e.relationshipIds[r]))),createdAt:e.cache.createdAt.toString(),attachments:e.cache.attachments.map((e=>e.toString())),isOwn:e.isOwn,wasReadAt:e.wasReadAt?.toString()}}static toMessageDTOList(e){return e.map((e=>this.toMessageDTO(e)))}static toRecipient(e,t){return{address:e.address.toString(),receivedAt:e.receivedAt?.toString(),receivedByDevice:e.receivedByDevice?.toString(),relationshipId:t.toString()}}}},3267:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SendMessageUseCase=void 0;const a=r(1391),c=r(1917),u=r(8334),l=r(2344),p=r(2984),d=o(r(5250)),f=r(1699),y=r(2197),h=r(128);let g=class Validator extends y.SchemaValidator{constructor(e){super(e.getSchema("SendMessageRequest"))}};g=i([s(0,f.Inject),n("design:paramtypes",[y.SchemaRepository])],g);let m=class SendMessageUseCase extends y.UseCase{constructor(e,t,r,i,n){super(n),this.messageController=e,this.fileController=t,this.accountController=r,this.outgoingRequestsController=i}async executeInternal(e){const t=await this.validateMessageContent(e.content,e.recipients);if(t)return c.Result.fail(t);const r=await this.transformAttachments(e.attachments);if(r.isError)return c.Result.fail(r.error);const i=await this.messageController.sendMessage({recipients:e.recipients.map((e=>p.CoreAddress.from(e))),content:e.content,attachments:r.value});return await this.accountController.syncDatawallet(),c.Result.ok(h.MessageMapper.toMessageDTO(i))}async validateMessageContent(e,t){const r=a.Serializable.fromUnknown(e);if(!(r instanceof l.Request))return;if(void 0===r.id)return y.RuntimeErrors.general.invalidPropertyValue("The Request must have an id.");const i=await this.outgoingRequestsController.getOutgoingRequest(r.id);if(!i)return y.RuntimeErrors.general.recordNotFound(l.Request);if(!d.default.isEqual(r.toJSON(),i.content.toJSON()))return y.RuntimeErrors.general.invalidPropertyValue("The sent Request must have the same content as the LocalRequest.");if(t.length>1)return y.RuntimeErrors.general.invalidPropertyValue("Only one recipient is allowed for sending Requests.");return p.CoreAddress.from(t[0]).equals(i.peer)?void 0:y.RuntimeErrors.general.invalidPropertyValue("The recipient does not match the Request's peer.")}async transformAttachments(e){if(!e||0===e.length)return c.Result.ok([]);const t=[];for(const r of e){const e=await this.fileController.getFile(p.CoreId.from(r));if(!e)return c.Result.fail(y.RuntimeErrors.general.recordNotFound(p.File));t.push(e)}return c.Result.ok(t)}};t.SendMessageUseCase=m,t.SendMessageUseCase=m=i([s(0,f.Inject),s(1,f.Inject),s(2,f.Inject),s(3,f.Inject),s(4,f.Inject),n("design:paramtypes",[p.MessageController,p.FileController,p.AccountController,u.OutgoingRequestsController,g])],m)},810:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(5877),t),n(r(1110),t),n(r(5139),t),n(r(7478),t),n(r(1494),t),n(r(9909),t),n(r(128),t),n(r(3267),t)},5943:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CreateOwnRelationshipTemplateUseCase=void 0;const o=r(1391),a=r(1917),c=r(8334),u=r(2344),l=r(2984),p=r(3290),d=r(889),f=r(1699),y=r(2197),h=r(8762);let g=class Validator extends y.SchemaValidator{constructor(e){super(e.getSchema("CreateOwnRelationshipTemplateRequest"))}validate(e){const t=super.validate(e);return t.isValid()?(p.DateTime.fromISO(e.expiresAt)<=p.DateTime.utc()&&t.addFailure(new y.ValidationFailure(y.RuntimeErrors.general.invalidPropertyValue(`'${(0,d.nameof)((e=>e.expiresAt))}' must be in the future`),(0,d.nameof)((e=>e.expiresAt)))),t):t}};g=i([s(0,f.Inject),n("design:paramtypes",[y.SchemaRepository])],g);let m=class CreateOwnRelationshipTemplateUseCase extends y.UseCase{constructor(e,t,r,i){super(i),this.templateController=e,this.accountController=t,this.outgoingRequestsController=r}async executeInternal(e){const t=await this.validateRelationshipTemplateContent(e.content);if(t)return a.Result.fail(t);const r=await this.templateController.sendRelationshipTemplate({content:e.content,expiresAt:l.CoreDate.from(e.expiresAt),maxNumberOfAllocations:e.maxNumberOfAllocations});return await this.accountController.syncDatawallet(),a.Result.ok(h.RelationshipTemplateMapper.toRelationshipTemplateDTO(r))}async validateRelationshipTemplateContent(e){const t=o.Serializable.fromUnknown(e);if(!(t instanceof u.RelationshipTemplateContent))return;const r=await this.outgoingRequestsController.canCreate({content:t.onNewRelationship});if(r.isError())return r.error;if(t.onExistingRelationship){const e=await this.outgoingRequestsController.canCreate({content:t.onExistingRelationship});if(e.isError())return e.error}}};t.CreateOwnRelationshipTemplateUseCase=m,t.CreateOwnRelationshipTemplateUseCase=m=i([s(0,f.Inject),s(1,f.Inject),s(2,f.Inject),s(3,f.Inject),n("design:paramtypes",[l.RelationshipTemplateController,l.AccountController,c.OutgoingRequestsController,g])],m)},7212:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CreateQRCodeForOwnTemplateUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197);let l=class Validator extends u.SchemaValidator{constructor(e){super(e.getSchema("CreateQRCodeForOwnTemplateRequest"))}};l=i([s(0,c.Inject),n("design:paramtypes",[u.SchemaRepository])],l);let p=class CreateQRCodeForOwnTemplateUseCase extends u.UseCase{constructor(e,t){super(t),this.templateController=e}async executeInternal(e){const t=await this.templateController.getRelationshipTemplate(a.CoreId.from(e.templateId));if(!t)return o.Result.fail(u.RuntimeErrors.general.recordNotFound(a.RelationshipTemplate));if(!t.isOwn)return o.Result.fail(u.RuntimeErrors.relationshipTemplates.cannotCreateQRCodeForPeerTemplate());const r=await u.QRCode.forTruncateable(t);return o.Result.ok({qrCodeBytes:r.asBase64()})}};t.CreateQRCodeForOwnTemplateUseCase=p,t.CreateQRCodeForOwnTemplateUseCase=p=i([s(0,c.Inject),s(1,c.Inject),n("design:paramtypes",[a.RelationshipTemplateController,l])],p)},3735:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CreateTokenForOwnTemplateUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197),l=r(2860);let p=class Validator extends u.SchemaValidator{constructor(e){super(e.getSchema("CreateTokenForOwnTemplateRequest"))}};p=i([s(0,c.Inject),n("design:paramtypes",[u.SchemaRepository])],p);let d=class CreateTokenForOwnTemplateUseCase extends u.UseCase{constructor(e,t,r,i){super(i),this.templateController=e,this.tokenController=t,this.accountController=r}async executeInternal(e){const t=await this.templateController.getRelationshipTemplate(a.CoreId.from(e.templateId));if(!t)return o.Result.fail(u.RuntimeErrors.general.recordNotFound(a.RelationshipTemplate));if(!t.isOwn)return o.Result.fail(u.RuntimeErrors.relationshipTemplates.cannotCreateTokenForPeerTemplate());const r=a.TokenContentRelationshipTemplate.from({templateId:t.id,secretKey:t.secretKey}),i=e.ephemeral??!0,n=t.cache?.expiresAt??a.CoreDate.utc().add({days:12}),s=e.expiresAt?a.CoreDate.from(e.expiresAt):n,c=await this.tokenController.sendToken({content:r,expiresAt:s,ephemeral:i});return i||await this.accountController.syncDatawallet(),o.Result.ok(l.TokenMapper.toTokenDTO(c,i))}};t.CreateTokenForOwnTemplateUseCase=d,t.CreateTokenForOwnTemplateUseCase=d=i([s(0,c.Inject),s(1,c.Inject),s(2,c.Inject),s(3,c.Inject),n("design:paramtypes",[a.RelationshipTemplateController,a.TokenController,a.AccountController,p])],d)},5421:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CreateTokenQRCodeForOwnTemplateUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197);let l=class Validator extends u.SchemaValidator{constructor(e){super(e.getSchema("CreateTokenQRCodeForOwnTemplateRequest"))}};l=i([s(0,c.Inject),n("design:paramtypes",[u.SchemaRepository])],l);let p=class CreateTokenQRCodeForOwnTemplateUseCase extends u.UseCase{constructor(e,t,r){super(r),this.templateController=e,this.tokenController=t}async executeInternal(e){const t=await this.templateController.getRelationshipTemplate(a.CoreId.from(e.templateId));if(!t)return o.Result.fail(u.RuntimeErrors.general.recordNotFound(a.RelationshipTemplate));if(!t.isOwn)return o.Result.fail(u.RuntimeErrors.relationshipTemplates.cannotCreateTokenForPeerTemplate());const r=a.TokenContentRelationshipTemplate.from({templateId:t.id,secretKey:t.secretKey}),i=t.cache?.expiresAt??a.CoreDate.utc().add({days:12}),n=e.expiresAt?a.CoreDate.from(e.expiresAt):i,s=await this.tokenController.sendToken({content:r,expiresAt:n,ephemeral:!0}),c=await u.QRCode.forTruncateable(s);return o.Result.ok({qrCodeBytes:c.asBase64()})}};t.CreateTokenQRCodeForOwnTemplateUseCase=p,t.CreateTokenQRCodeForOwnTemplateUseCase=p=i([s(0,c.Inject),s(1,c.Inject),s(2,c.Inject),n("design:paramtypes",[a.RelationshipTemplateController,a.TokenController,l])],p)},3295:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetRelationshipTemplateUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197),l=r(8762);let p=class Validator extends u.SchemaValidator{constructor(e){super(e.getSchema("GetRelationshipTemplateRequest"))}};p=i([s(0,c.Inject),n("design:paramtypes",[u.SchemaRepository])],p);let d=class GetRelationshipTemplateUseCase extends u.UseCase{constructor(e,t){super(t),this.relationshipTemplateController=e}async executeInternal(e){const t=await this.relationshipTemplateController.getRelationshipTemplate(a.CoreId.from(e.id));return t?o.Result.ok(l.RelationshipTemplateMapper.toRelationshipTemplateDTO(t)):o.Result.fail(u.RuntimeErrors.general.recordNotFound(a.RelationshipTemplate))}};t.GetRelationshipTemplateUseCase=d,t.GetRelationshipTemplateUseCase=d=i([s(0,c.Inject),s(1,c.Inject),n("design:paramtypes",[a.RelationshipTemplateController,p])],d)},314:function(e,t,r){"use strict";var i,n=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetRelationshipTemplatesUseCase=void 0;const a=r(7197),c=r(1917),u=r(2984),l=r(889),p=r(1699),d=r(2197),f=r(8762);let y=class Validator extends d.SchemaValidator{constructor(e){super(e.getSchema("GetRelationshipTemplatesRequest"))}};y=n([o(0,p.Inject),s("design:paramtypes",[d.SchemaRepository])],y);let h=class GetRelationshipTemplatesUseCase extends d.UseCase{static{i=this}static{this.queryTranslator=new a.QueryTranslator({whitelist:{[(0,l.nameof)((e=>e.isOwn))]:!0,[(0,l.nameof)((e=>e.createdAt))]:!0,[(0,l.nameof)((e=>e.expiresAt))]:!0,[(0,l.nameof)((e=>e.createdBy))]:!0,[(0,l.nameof)((e=>e.createdByDevice))]:!0,[(0,l.nameof)((e=>e.maxNumberOfAllocations))]:!0},alias:{[(0,l.nameof)((e=>e.isOwn))]:(0,l.nameof)((e=>e.isOwn)),[(0,l.nameof)((e=>e.createdAt))]:`${(0,l.nameof)((e=>e.cache))}.${(0,l.nameof)((e=>e.createdAt))}`,[(0,l.nameof)((e=>e.expiresAt))]:`${(0,l.nameof)((e=>e.cache))}.${(0,l.nameof)((e=>e.expiresAt))}`,[(0,l.nameof)((e=>e.createdBy))]:`${(0,l.nameof)((e=>e.cache))}.${(0,l.nameof)((e=>e.createdBy))}`,[(0,l.nameof)((e=>e.createdByDevice))]:`${(0,l.nameof)((e=>e.cache))}.${(0,l.nameof)((e=>e.createdByDevice))}`,[(0,l.nameof)((e=>e.maxNumberOfAllocations))]:`${(0,l.nameof)((e=>e.cache))}.${(0,l.nameof)((e=>e.maxNumberOfAllocations))}`}})}constructor(e,t){super(t),this.relationshipTemplateController=e}async executeInternal(e){const t=i.queryTranslator.parse(e.query);e.ownerRestriction&&(t[(0,l.nameof)((e=>e.isOwn))]=e.ownerRestriction===d.OwnerRestriction.Own);const r=await this.relationshipTemplateController.getRelationshipTemplates(t);return c.Result.ok(f.RelationshipTemplateMapper.toRelationshipTemplateDTOList(r))}};t.GetRelationshipTemplatesUseCase=h,t.GetRelationshipTemplatesUseCase=h=i=n([o(0,p.Inject),o(1,p.Inject),s("design:paramtypes",[u.RelationshipTemplateController,y])],h)},6899:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoadPeerRelationshipTemplateUseCase=void 0;const o=r(1917),a=r(922),c=r(2984),u=r(1699),l=r(2197),p=r(8762);function isLoadPeerRelationshipTemplateViaSecret(e){return"id"in e&&"secretKey"in e}function isLoadPeerRelationshipTemplateViaReference(e){return"reference"in e}let d=class Validator extends l.SchemaValidator{constructor(e){super(e.getSchema("LoadPeerRelationshipTemplateRequest")),this.loadViaSecretSchema=e.getSchema("LoadPeerRelationshipTemplateViaSecretRequest"),this.loadViaReferenceSchema=e.getSchema("LoadPeerRelationshipTemplateViaReferenceRequest")}validate(e){if(this.schema.validate(e).isValid)return new l.ValidationResult;if(isLoadPeerRelationshipTemplateViaReference(e))return this.convertValidationResult(this.loadViaReferenceSchema.validate(e));if(isLoadPeerRelationshipTemplateViaSecret(e))return this.convertValidationResult(this.loadViaSecretSchema.validate(e));const t=new l.ValidationResult;return t.addFailure(new l.ValidationFailure(l.RuntimeErrors.general.invalidPayload())),t}};d=i([s(0,u.Inject),n("design:paramtypes",[l.SchemaRepository])],d);let f=class LoadPeerRelationshipTemplateUseCase extends l.UseCase{constructor(e,t,r,i){super(i),this.templateController=e,this.tokenController=t,this.accountController=r}async executeInternal(e){let t;if(isLoadPeerRelationshipTemplateViaSecret(e)){const r=a.CryptoSecretKey.fromBase64(e.secretKey);t=await this.loadTemplate(c.CoreId.from(e.id),r)}else{if(!isLoadPeerRelationshipTemplateViaReference(e))throw new Error("Invalid request format.");t=await this.loadRelationshipTemplateFromReference(e.reference)}return await this.accountController.syncDatawallet(),t}async loadRelationshipTemplateFromReference(e){if(e.startsWith(l.Base64ForIdPrefix.RelationshipTemplate))return await this.loadRelationshipTemplateFromRelationshipTemplateReference(e);if(e.startsWith(l.Base64ForIdPrefix.Token))return await this.loadRelationshipTemplateFromTokenReference(e);throw l.RuntimeErrors.relationshipTemplates.invalidReference(e)}async loadRelationshipTemplateFromRelationshipTemplateReference(e){const t=await this.templateController.loadPeerRelationshipTemplateByTruncated(e);return o.Result.ok(p.RelationshipTemplateMapper.toRelationshipTemplateDTO(t))}async loadRelationshipTemplateFromTokenReference(e){const t=await this.tokenController.loadPeerTokenByTruncated(e,!0);if(!t.cache)throw l.RuntimeErrors.general.cacheEmpty(c.Token,t.id.toString());if(!(t.cache.content instanceof c.TokenContentRelationshipTemplate))return o.Result.fail(l.RuntimeErrors.general.invalidTokenContent());const r=t.cache.content;return await this.loadTemplate(r.templateId,r.secretKey)}async loadTemplate(e,t){const r=await this.templateController.loadPeerRelationshipTemplate(e,t);return o.Result.ok(p.RelationshipTemplateMapper.toRelationshipTemplateDTO(r))}};t.LoadPeerRelationshipTemplateUseCase=f,t.LoadPeerRelationshipTemplateUseCase=f=i([s(0,u.Inject),s(1,u.Inject),s(2,u.Inject),s(3,u.Inject),n("design:paramtypes",[c.RelationshipTemplateController,c.TokenController,c.AccountController,d])],f)},8762:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RelationshipTemplateMapper=void 0;const i=r(2984),n=r(2197);t.RelationshipTemplateMapper=class RelationshipTemplateMapper{static toRelationshipTemplateDTO(e){if(!e.cache)throw n.RuntimeErrors.general.cacheEmpty(i.RelationshipTemplate,e.id.toString());return{id:e.id.toString(),isOwn:e.isOwn,createdBy:e.cache.createdBy.toString(),createdByDevice:e.cache.createdByDevice.toString(),createdAt:e.cache.createdAt.toString(),content:e.cache.content.toJSON(),expiresAt:e.cache.expiresAt?.toString(),maxNumberOfAllocations:e.cache.maxNumberOfAllocations,secretKey:e.secretKey.toBase64(!1),truncatedReference:e.truncate()}}static toRelationshipTemplateDTOList(e){return e.map((e=>this.toRelationshipTemplateDTO(e)))}}},4999:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(5943),t),n(r(7212),t),n(r(3735),t),n(r(5421),t),n(r(3295),t),n(r(314),t),n(r(6899),t),n(r(8762),t)},5199:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AcceptRelationshipChangeUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197),l=r(3366);let p=class Validator extends u.SchemaValidator{constructor(e){super(e.getSchema("AcceptRelationshipChangeRequest"))}};p=i([s(0,c.Inject),n("design:paramtypes",[u.SchemaRepository])],p);let d=class AcceptRelationshipChangeUseCase extends u.UseCase{constructor(e,t,r){super(r),this.relationshipsController=e,this.accountController=t}async executeInternal(e){const t=await this.relationshipsController.getRelationship(a.CoreId.from(e.relationshipId));if(!t)return o.Result.fail(u.RuntimeErrors.general.recordNotFound(a.Relationship));if(!t.cache)return o.Result.fail(u.RuntimeErrors.general.cacheEmpty(a.Relationship,t.id.toString()));const r=t.cache.changes.find((t=>t.id.toString()===e.changeId));if(!r)return o.Result.fail(u.RuntimeErrors.general.recordNotFound(a.RelationshipChange));const i=await this.relationshipsController.acceptChange(r,e.content);return await this.accountController.syncDatawallet(),o.Result.ok(l.RelationshipMapper.toRelationshipDTO(i))}};t.AcceptRelationshipChangeUseCase=d,t.AcceptRelationshipChangeUseCase=d=i([s(0,c.Inject),s(1,c.Inject),s(2,c.Inject),n("design:paramtypes",[a.RelationshipsController,a.AccountController,p])],d)},7723:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CreateRelationshipUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197),l=r(3366);let p=class Validator extends u.SchemaValidator{constructor(e){super(e.getSchema("CreateRelationshipRequest"))}};p=i([s(0,c.Inject),n("design:paramtypes",[u.SchemaRepository])],p);let d=class CreateRelationshipUseCase extends u.UseCase{constructor(e,t,r,i){super(i),this.relationshipsController=e,this.relationshipTemplateController=t,this.accountController=r}async executeInternal(e){const t=await this.relationshipTemplateController.getRelationshipTemplate(a.CoreId.from(e.templateId));if(!t)return o.Result.fail(u.RuntimeErrors.general.recordNotFound(a.RelationshipTemplate));const r=await this.relationshipsController.sendRelationship({template:t,content:e.content});return await this.accountController.syncDatawallet(),o.Result.ok(l.RelationshipMapper.toRelationshipDTO(r))}};t.CreateRelationshipUseCase=d,t.CreateRelationshipUseCase=d=i([s(0,c.Inject),s(1,c.Inject),s(2,c.Inject),s(3,c.Inject),n("design:paramtypes",[a.RelationshipsController,a.RelationshipTemplateController,a.AccountController,p])],d)},859:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetAttributesForRelationshipUseCase=void 0;const o=r(1917),a=r(8334),c=r(2984),u=r(1699),l=r(2197),p=r(5583);let d=class Validator extends l.SchemaValidator{constructor(e){super(e.getSchema("GetAttributesForRelationshipRequest"))}};d=i([s(0,u.Inject),n("design:paramtypes",[l.SchemaRepository])],d);let f=class GetAttributesForRelationshipUseCase extends l.UseCase{constructor(e,t,r){super(r),this.relationshipsController=e,this.attributesController=t}async executeInternal(e){const t=await this.relationshipsController.getRelationship(c.CoreId.from(e.id));if(!t)return o.Result.fail(l.RuntimeErrors.general.recordNotFound(c.Relationship));const r={"shareInfo.peer":t.peer.address.toString()};(e.onlyLatestVersions??1)&&(r.succeededBy={$exists:!1});const i=await this.attributesController.getLocalAttributes(r,e.hideTechnical);return o.Result.ok(p.AttributeMapper.toAttributeDTOList(i))}};t.GetAttributesForRelationshipUseCase=f,t.GetAttributesForRelationshipUseCase=f=i([s(0,u.Inject),s(1,u.Inject),s(2,u.Inject),n("design:paramtypes",[c.RelationshipsController,a.AttributesController,d])],f)},7243:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetRelationshipUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197),l=r(3366);let p=class Validator extends u.SchemaValidator{constructor(e){super(e.getSchema("GetRelationshipRequest"))}};p=i([s(0,c.Inject),n("design:paramtypes",[u.SchemaRepository])],p);let d=class GetRelationshipUseCase extends u.UseCase{constructor(e,t){super(t),this.relationshipsController=e}async executeInternal(e){const t=await this.relationshipsController.getRelationship(a.CoreId.from(e.id));return t?o.Result.ok(l.RelationshipMapper.toRelationshipDTO(t)):o.Result.fail(u.RuntimeErrors.general.recordNotFound(a.Relationship))}};t.GetRelationshipUseCase=d,t.GetRelationshipUseCase=d=i([s(0,c.Inject),s(1,c.Inject),n("design:paramtypes",[a.RelationshipsController,p])],d)},9052:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetRelationshipByAddressUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197),l=r(3366);let p=class Validator extends u.SchemaValidator{constructor(e){super(e.getSchema("GetRelationshipByAddressRequest"))}};p=i([s(0,c.Inject),n("design:paramtypes",[u.SchemaRepository])],p);let d=class GetRelationshipByAddressUseCase extends u.UseCase{constructor(e,t){super(t),this.relationshipsController=e}async executeInternal(e){const t=await this.relationshipsController.getRelationshipToIdentity(a.CoreAddress.from(e.address));return t?o.Result.ok(l.RelationshipMapper.toRelationshipDTO(t)):o.Result.fail(u.RuntimeErrors.general.recordNotFound(a.Relationship))}};t.GetRelationshipByAddressUseCase=d,t.GetRelationshipByAddressUseCase=d=i([s(0,c.Inject),s(1,c.Inject),n("design:paramtypes",[a.RelationshipsController,p])],d)},7870:function(e,t,r){"use strict";var i,n=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetRelationshipsUseCase=void 0;const a=r(7197),c=r(1917),u=r(2984),l=r(889),p=r(1699),d=r(2197),f=r(3366);let y=class Validator extends d.SchemaValidator{constructor(e){super(e.getSchema("GetRelationshipsRequest"))}};y=n([o(0,p.Inject),s("design:paramtypes",[d.SchemaRepository])],y);let h=class GetRelationshipsUseCase extends d.UseCase{static{i=this}static{this.queryTranslator=new a.QueryTranslator({whitelist:{[(0,l.nameof)((e=>e.peer))]:!0,[(0,l.nameof)((e=>e.status))]:!0,[`${(0,l.nameof)((e=>e.template))}.${(0,l.nameof)((e=>e.id))}`]:!0},alias:{[`${(0,l.nameof)((e=>e.template))}.${(0,l.nameof)((e=>e.id))}`]:`${(0,l.nameof)((e=>e.cache))}.${(0,l.nameof)((e=>e.template))}.${(0,l.nameof)((e=>e.id))}`,[(0,l.nameof)((e=>e.status))]:(0,l.nameof)((e=>e.status)),[(0,l.nameof)((e=>e.peer))]:`${(0,l.nameof)((e=>e.peer))}.${(0,l.nameof)((e=>e.address))}`}})}constructor(e,t){super(t),this.relationshipsController=e}async executeInternal(e){const t=i.queryTranslator.parse(e.query),r=await this.relationshipsController.getRelationships(t);return c.Result.ok(f.RelationshipMapper.toRelationshipDTOList(r))}};t.GetRelationshipsUseCase=h,t.GetRelationshipsUseCase=h=i=n([o(0,p.Inject),o(1,p.Inject),s("design:paramtypes",[u.RelationshipsController,y])],h)},6512:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.RejectRelationshipChangeUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197),l=r(3366);let p=class Validator extends u.SchemaValidator{constructor(e){super(e.getSchema("RejectRelationshipChangeRequest"))}};p=i([s(0,c.Inject),n("design:paramtypes",[u.SchemaRepository])],p);let d=class RejectRelationshipChangeUseCase extends u.UseCase{constructor(e,t,r){super(r),this.relationshipsController=e,this.accountController=t}async executeInternal(e){const t=await this.relationshipsController.getRelationship(a.CoreId.from(e.relationshipId));if(!t)return o.Result.fail(u.RuntimeErrors.general.recordNotFound(a.Relationship));if(!t.cache)return o.Result.fail(u.RuntimeErrors.general.cacheEmpty(a.Relationship,t.id.toString()));const r=t.cache.changes.find((t=>t.id.toString()===e.changeId));if(!r)return o.Result.fail(u.RuntimeErrors.general.recordNotFound(a.RelationshipChange));const i=await this.relationshipsController.rejectChange(r,e.content);return await this.accountController.syncDatawallet(),o.Result.ok(l.RelationshipMapper.toRelationshipDTO(i))}};t.RejectRelationshipChangeUseCase=d,t.RejectRelationshipChangeUseCase=d=i([s(0,c.Inject),s(1,c.Inject),s(2,c.Inject),n("design:paramtypes",[a.RelationshipsController,a.AccountController,p])],d)},3366:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RelationshipMapper=void 0;const i=r(2984),n=r(2197),s=r(8762);t.RelationshipMapper=class RelationshipMapper{static toRelationshipDTO(e){if(!e.cache)throw n.RuntimeErrors.general.cacheEmpty(i.Relationship,e.id.toString());return{id:e.id.toString(),template:s.RelationshipTemplateMapper.toRelationshipTemplateDTO(e.cache.template),status:e.status,peer:e.peer.address.toString(),peerIdentity:{address:e.peer.address.toString(),publicKey:e.peer.publicKey.toBase64(!1),realm:e.peer.realm},changes:e.cache.changes.map((e=>this.toRelationshipChangeDTO(e)))}}static toRelationshipDTOList(e){return e.map((e=>this.toRelationshipDTO(e)))}static toRelationshipChangeRequestDTO(e){return{createdBy:e.createdBy.toString(),createdByDevice:e.createdByDevice.toString(),createdAt:e.createdAt.toString(),content:e.content?.toJSON()}}static toRelationshipChangeResponseDTO(e){return{createdBy:e.createdBy.toString(),createdByDevice:e.createdByDevice.toString(),createdAt:e.createdAt.toString(),content:e.content?.toJSON()}}static toRelationshipChangeDTO(e){return{id:e.id.toString(),request:this.toRelationshipChangeRequestDTO(e.request),status:e.status,type:e.type,response:e.response?this.toRelationshipChangeResponseDTO(e.response):void 0}}}},3709:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.RevokeRelationshipChangeUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197),l=r(3366);let p=class Validator extends u.SchemaValidator{constructor(e){super(e.getSchema("RevokeRelationshipChangeRequest"))}};p=i([s(0,c.Inject),n("design:paramtypes",[u.SchemaRepository])],p);let d=class RevokeRelationshipChangeUseCase extends u.UseCase{constructor(e,t,r){super(r),this.relationshipsController=e,this.accountController=t}async executeInternal(e){const t=await this.relationshipsController.getRelationship(a.CoreId.from(e.relationshipId));if(!t)return o.Result.fail(u.RuntimeErrors.general.recordNotFound(a.Relationship));if(!t.cache)return o.Result.fail(u.RuntimeErrors.general.cacheEmpty(a.Relationship,t.id.toString()));const r=t.cache.changes.find((t=>t.id.toString()===e.changeId));if(!r)return o.Result.fail(u.RuntimeErrors.general.recordNotFound(a.RelationshipChange));const i=await this.relationshipsController.revokeChange(r,e.content);return await this.accountController.syncDatawallet(),o.Result.ok(l.RelationshipMapper.toRelationshipDTO(i))}};t.RevokeRelationshipChangeUseCase=d,t.RevokeRelationshipChangeUseCase=d=i([s(0,c.Inject),s(1,c.Inject),s(2,c.Inject),n("design:paramtypes",[a.RelationshipsController,a.AccountController,p])],d)},5857:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(5199),t),n(r(7723),t),n(r(859),t),n(r(7243),t),n(r(9052),t),n(r(7870),t),n(r(6512),t),n(r(3366),t),n(r(3709),t)},263:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CreateOwnTokenUseCase=void 0;const o=r(1391),a=r(1917),c=r(2984),u=r(3290),l=r(889),p=r(1699),d=r(2197),f=r(2860);let y=class Validator extends d.SchemaValidator{constructor(e){super(e.getSchema("CreateOwnTokenRequest"))}validate(e){const t=super.validate(e);return t.isValid()?(u.DateTime.fromISO(e.expiresAt)<=u.DateTime.utc()&&t.addFailure(new d.ValidationFailure(d.RuntimeErrors.general.invalidPropertyValue(`'${(0,l.nameof)((e=>e.expiresAt))}' must be in the future`),(0,l.nameof)((e=>e.expiresAt)))),t):t}};y=i([s(0,p.Inject),n("design:paramtypes",[d.SchemaRepository])],y);let h=class CreateOwnTokenUseCase extends d.UseCase{constructor(e,t,r){super(r),this.tokenController=e,this.accountController=t}async executeInternal(e){let t;try{t=o.Serializable.fromUnknown(e.content)}catch{throw d.RuntimeErrors.general.invalidTokenContent()}const r=await this.tokenController.sendToken({content:t,expiresAt:c.CoreDate.from(e.expiresAt),ephemeral:e.ephemeral});return e.ephemeral||await this.accountController.syncDatawallet(),a.Result.ok(f.TokenMapper.toTokenDTO(r,e.ephemeral))}};t.CreateOwnTokenUseCase=h,t.CreateOwnTokenUseCase=h=i([s(0,p.Inject),s(1,p.Inject),s(2,p.Inject),n("design:paramtypes",[c.TokenController,c.AccountController,y])],h)},4122:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetQRCodeForTokenUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197);let l=class Validator extends u.SchemaValidator{constructor(e){super(e.getSchema("GetQRCodeForTokenRequest"))}};l=i([s(0,c.Inject),n("design:paramtypes",[u.SchemaRepository])],l);let p=class GetQRCodeForTokenUseCase extends u.UseCase{constructor(e,t){super(t),this.tokenController=e}async executeInternal(e){const t=await this.tokenController.getToken(a.CoreId.from(e.id));if(!t)return o.Result.fail(u.RuntimeErrors.general.recordNotFound(a.Token));const r=await u.QRCode.forTruncateable(t);return o.Result.ok({qrCodeBytes:r.asBase64()})}};t.GetQRCodeForTokenUseCase=p,t.GetQRCodeForTokenUseCase=p=i([s(0,c.Inject),s(1,c.Inject),n("design:paramtypes",[a.TokenController,l])],p)},6535:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetTokenUseCase=void 0;const o=r(1917),a=r(2984),c=r(1699),u=r(2197),l=r(2860);let p=class Validator extends u.SchemaValidator{constructor(e){super(e.getSchema("GetTokenRequest"))}};p=i([s(0,c.Inject),n("design:paramtypes",[u.SchemaRepository])],p);let d=class GetTokenUseCase extends u.UseCase{constructor(e,t){super(t),this.tokenController=e}async executeInternal(e){const t=await this.tokenController.getToken(a.CoreId.from(e.id));return t?o.Result.ok(l.TokenMapper.toTokenDTO(t,!1)):o.Result.fail(u.RuntimeErrors.general.recordNotFound("Token"))}};t.GetTokenUseCase=d,t.GetTokenUseCase=d=i([s(0,c.Inject),s(1,c.Inject),n("design:paramtypes",[a.TokenController,p])],d)},3378:function(e,t,r){"use strict";var i,n=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetTokensUseCase=void 0;const a=r(7197),c=r(1917),u=r(2984),l=r(889),p=r(1699),d=r(2197),f=r(2860);let y=class Validator extends d.SchemaValidator{constructor(e){super(e.getSchema("GetTokensRequest"))}};y=n([o(0,p.Inject),s("design:paramtypes",[d.SchemaRepository])],y);let h=class GetTokensUseCase extends d.UseCase{static{i=this}static{this.queryTranslator=new a.QueryTranslator({whitelist:{[(0,l.nameof)((e=>e.createdAt))]:!0,[(0,l.nameof)((e=>e.createdBy))]:!0,[(0,l.nameof)((e=>e.createdByDevice))]:!0,[(0,l.nameof)((e=>e.expiresAt))]:!0},alias:{[(0,l.nameof)((e=>e.createdAt))]:`${(0,l.nameof)((e=>e.cache))}.${[(0,l.nameof)((e=>e.createdAt))]}`,[(0,l.nameof)((e=>e.createdBy))]:`${(0,l.nameof)((e=>e.cache))}.${[(0,l.nameof)((e=>e.createdBy))]}`,[(0,l.nameof)((e=>e.createdByDevice))]:`${(0,l.nameof)((e=>e.cache))}.${[(0,l.nameof)((e=>e.createdByDevice))]}`,[(0,l.nameof)((e=>e.expiresAt))]:`${(0,l.nameof)((e=>e.cache))}.${[(0,l.nameof)((e=>e.expiresAt))]}`}})}constructor(e,t){super(t),this.tokenController=e}async executeInternal(e){const t=i.queryTranslator.parse(e.query);e.ownerRestriction&&(t[(0,l.nameof)((e=>e.isOwn))]=e.ownerRestriction===d.OwnerRestriction.Own);const r=await this.tokenController.getTokens(t);return c.Result.ok(f.TokenMapper.toTokenDTOList(r,!1))}};t.GetTokensUseCase=h,t.GetTokensUseCase=h=i=n([o(0,p.Inject),o(1,p.Inject),s("design:paramtypes",[u.TokenController,y])],h)},4737:function(e,t,r){"use strict";var i=this&&this.__decorate||function(e,t,r,i){var n,s=arguments.length,o=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(o=(s<3?n(o):s>3?n(t,r,o):n(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(r,i){t(r,i,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoadPeerTokenUseCase=void 0;const o=r(1917),a=r(922),c=r(2984),u=r(1699),l=r(2197),p=r(2860);function isLoadPeerTokenViaSecret(e){return"id"in e&&"secretKey"in e}function isLoadPeerTokenViaReference(e){return"reference"in e}let d=class Validator extends l.SchemaValidator{constructor(e){super(e.getSchema("LoadPeerTokenRequest")),this.loadViaSecretSchema=e.getSchema("LoadPeerTokenViaSecretRequest"),this.loadViaReferenceSchema=e.getSchema("LoadPeerTokenViaReferenceRequest")}validate(e){if(this.schema.validate(e).isValid)return new l.ValidationResult;if(isLoadPeerTokenViaReference(e))return this.convertValidationResult(this.loadViaReferenceSchema.validate(e));if(isLoadPeerTokenViaSecret(e))return this.convertValidationResult(this.loadViaSecretSchema.validate(e));const t=new l.ValidationResult;return t.addFailure(new l.ValidationFailure(l.RuntimeErrors.general.invalidPayload())),t}};d=i([s(0,u.Inject),n("design:paramtypes",[l.SchemaRepository])],d);let f=class LoadPeerTokenUseCase extends l.UseCase{constructor(e,t,r){super(r),this.tokenController=e,this.accountController=t}async executeInternal(e){let t;if(isLoadPeerTokenViaSecret(e)){const r=a.CryptoSecretKey.fromBase64(e.secretKey);t=await this.tokenController.loadPeerToken(c.CoreId.from(e.id),r,e.ephemeral)}else{if(!isLoadPeerTokenViaReference(e))throw new Error("Invalid request format.");t=await this.tokenController.loadPeerTokenByTruncated(e.reference,e.ephemeral)}return e.ephemeral||await this.accountController.syncDatawallet(),o.Result.ok(p.TokenMapper.toTokenDTO(t,e.ephemeral))}};t.LoadPeerTokenUseCase=f,t.LoadPeerTokenUseCase=f=i([s(0,u.Inject),s(1,u.Inject),s(2,u.Inject),n("design:paramtypes",[c.TokenController,c.AccountController,d])],f)},2860:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenMapper=void 0;const i=r(2984),n=r(2197);class TokenMapper{static toTokenDTO(e,t){if(!e.cache)throw n.RuntimeErrors.general.cacheEmpty(i.Token,e.id.toString());const r=e.toTokenReference();return{id:e.id.toString(),createdBy:e.cache.createdBy.toString(),createdByDevice:e.cache.createdByDevice.toString(),content:e.cache.content.toJSON(),createdAt:e.cache.createdAt.toString(),expiresAt:e.cache.expiresAt.toString(),secretKey:e.secretKey.toBase64(!1),truncatedReference:r.truncate(),isEphemeral:t}}static toTokenDTOList(e,t){return e.map((e=>TokenMapper.toTokenDTO(e,t)))}}t.TokenMapper=TokenMapper},1444:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(263),t),n(r(4122),t),n(r(6535),t),n(r(3378),t),n(r(4737),t),n(r(2860),t)},8334:e=>{"use strict";e.exports=NMSHDConsumption},2344:e=>{"use strict";e.exports=NMSHDContent},922:e=>{"use strict";e.exports=NMSHDCrypto},2984:e=>{"use strict";e.exports=NMSHDTransport},1391:e=>{"use strict";e.exports=TSServal},3770:e=>{"use strict";e.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},3928:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')}},t={};function __webpack_require__(r){var i=t[r];if(void 0!==i)return i.exports;var n=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var r=__webpack_require__(7806);NMSHDRuntime=r})();
|
|
9
|
-
//# sourceMappingURL=nmshd.runtime.min.js.map
|