@memberjunction/graphql-dataprovider 1.5.3 → 1.6.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-browser/MemberJunctionGraphQLDataProvider.js +153 -0
- package/dist-browser/config.d.ts +2 -0
- package/dist-browser/config.js +18 -0
- package/dist-browser/config.js.map +1 -0
- package/dist-browser/graphQLDataProvider.d.ts +122 -0
- package/dist-browser/graphQLDataProvider.js +1223 -0
- package/dist-browser/graphQLDataProvider.js.map +1 -0
- package/dist-browser/graphQLTransactionGroup.d.ts +4 -0
- package/dist-browser/graphQLTransactionGroup.js +44 -0
- package/dist-browser/graphQLTransactionGroup.js.map +1 -0
- package/dist-browser/index.d.ts +3 -0
- package/dist-browser/index.js.map +1 -0
- package/package.json +6 -5
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
var MemberJunctionGraphQLDataProvider;(()=>{var __webpack_modules__={288:function(e,t){var r="undefined"!=typeof self?self:this,n=function(){function e(){this.fetch=!1,this.DOMException=r.DOMException}return e.prototype=r,new e}();!function(e){!function(t){var r="URLSearchParams"in e,n="Symbol"in e&&"iterator"in Symbol,i="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),s="FormData"in e,o="ArrayBuffer"in e;if(o)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};function l(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function y(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function f(e){var t=new FileReader,r=y(t);return t.readAsArrayBuffer(e),r}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():o&&i&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=m(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var e,t,r,n=h(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,r=y(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},s&&(this.formData=function(){return this.text().then(I)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(e,t){e=l(e),t=c(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},p.prototype.delete=function(e){delete this.map[l(e)]},p.prototype.get=function(e){return e=l(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(l(e))},p.prototype.set=function(e,t){this.map[l(e)]=c(t)},p.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},p.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),d(e)},p.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),d(e)},p.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),d(e)},n&&(p.prototype[Symbol.iterator]=p.prototype.entries);var v=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function E(e,t){var r,n,i=(t=t||{}).body;if(e instanceof E){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(n=(r=t.method||this.method||"GET").toUpperCase(),v.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function I(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}})),t}function b(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}E.prototype.clone=function(){return new E(this,{body:this._bodyInit})},g.call(E.prototype),g.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},b.error=function(){var e=new b(null,{status:0,statusText:""});return e.type="error",e};var D=[301,302,303,307,308];b.redirect=function(e,t){if(-1===D.indexOf(t))throw new RangeError("Invalid status code");return new b(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function S(e,r){return new Promise((function(n,s){var o=new E(e,r);if(o.signal&&o.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function u(){a.abort()}a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new p,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();t.append(n,i)}})),t)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;n(new b(i,r))},a.onerror=function(){s(new TypeError("Network request failed"))},a.ontimeout=function(){s(new TypeError("Network request failed"))},a.onabort=function(){s(new t.DOMException("Aborted","AbortError"))},a.open(o.method,o.url,!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&i&&(a.responseType="blob"),o.headers.forEach((function(e,t){a.setRequestHeader(t,e)})),o.signal&&(o.signal.addEventListener("abort",u),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener("abort",u)}),a.send(void 0===o._bodyInit?null:o._bodyInit)}))}S.polyfill=!0,e.fetch||(e.fetch=S,e.Headers=p,e.Request=E,e.Response=b),t.Headers=p,t.Request=E,t.Response=b,t.fetch=S,Object.defineProperty(t,"__esModule",{value:!0})}({})}(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var i=n;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},2997:e=>{"use strict";e.exports=function(e){var t=e.uri,r=e.name,n=e.type;this.uri=t,this.name=r,this.type=n}},1003:(e,t,r)=>{"use strict";var n=r(2172);e.exports=function e(t,r,i){var s;void 0===r&&(r=""),void 0===i&&(i=n);var o=new Map;function a(e,t){var r=o.get(t);r?r.push.apply(r,e):o.set(t,e)}if(i(t))s=null,a([r],t);else{var u=r?r+".":"";if("undefined"!=typeof FileList&&t instanceof FileList)s=Array.prototype.map.call(t,(function(e,t){return a([""+u+t],e),null}));else if(Array.isArray(t))s=t.map((function(t,r){var n=e(t,""+u+r,i);return n.files.forEach(a),n.clone}));else if(t&&t.constructor===Object)for(var l in s={},t){var c=e(t[l],""+u+l,i);c.files.forEach(a),s[l]=c.clone}else s=t}return{clone:s,files:o}}},219:(e,t,r)=>{"use strict";t.ReactNativeFile=r(2997),t.extractFiles=r(1003),t.isExtractableFile=r(2172)},2172:(e,t,r)=>{"use strict";var n=r(2997);e.exports=function(e){return"undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Blob&&e instanceof Blob||e instanceof n}},7169:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},s=this&&this.__await||function(e){return this instanceof s?(this.v=e,this):new s(e)},o=this&&this.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){i[e]&&(n[e]=function(t){return new Promise((function(r,n){o.push([e,t,r,n])>1||u(e,t)}))})}function u(e,t){try{(r=i[e](t)).value instanceof s?Promise.resolve(r.value.v).then(l,c):d(o[0][2],r)}catch(e){d(o[0][3],e)}var r}function l(e){u("next",e)}function c(e){u("throw",e)}function d(e,t){e(t),o.shift(),o.length&&u(o[0][0],o[0][1])}};Object.defineProperty(t,"__esModule",{value:!0}),t.TerminatedCloseEvent=t.createClient=void 0;const a=r(9531),u=r(9777);i(r(9531),t),t.createClient=function(e){const{url:t,connectionParams:n,lazy:i=!0,onNonLazyError:d=console.error,lazyCloseTimeout:p=0,keepAlive:h=0,disablePong:y,connectionAckWaitTimeout:f=0,retryAttempts:m=5,retryWait:g=async function(e){let t=1e3;for(let r=0;r<e;r++)t*=2;await new Promise((e=>setTimeout(e,t+Math.floor(2700*Math.random()+300))))},shouldRetry:v=c,isFatalConnectionProblem:E,on:I,webSocketImpl:b,generateID:D=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))},jsonMessageReplacer:S,jsonMessageReviver:w}=e;let A;if(b){if(!("function"==typeof(T=b)&&"constructor"in T&&"CLOSED"in T&&"CLOSING"in T&&"CONNECTING"in T&&"OPEN"in T))throw new Error("Invalid WebSocket implementation provided");A=b}else"undefined"!=typeof WebSocket?A=WebSocket:void 0!==r.g?A=r.g.WebSocket||r.g.MozWebSocket:"undefined"!=typeof window&&(A=window.WebSocket||window.MozWebSocket);var T;if(!A)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const N=A,_=(()=>{const e=(()=>{const e={};return{on:(t,r)=>(e[t]=r,()=>{delete e[t]}),emit(t){var r;"id"in t&&(null===(r=e[t.id])||void 0===r||r.call(e,t))}}})(),t={connecting:(null==I?void 0:I.connecting)?[I.connecting]:[],opened:(null==I?void 0:I.opened)?[I.opened]:[],connected:(null==I?void 0:I.connected)?[I.connected]:[],ping:(null==I?void 0:I.ping)?[I.ping]:[],pong:(null==I?void 0:I.pong)?[I.pong]:[],message:(null==I?void 0:I.message)?[e.emit,I.message]:[e.emit],closed:(null==I?void 0:I.closed)?[I.closed]:[],error:(null==I?void 0:I.error)?[I.error]:[]};return{onMessage:e.on,on(e,r){const n=t[e];return n.push(r),()=>{n.splice(n.indexOf(r),1)}},emit(e,...r){for(const n of[...t[e]])n(...r)}}})();function C(e){const t=[_.on("error",(r=>{t.forEach((e=>e())),e(r)})),_.on("closed",(r=>{t.forEach((e=>e())),e(r)}))]}let R,O,P=0,G=!1,F=0,L=!1;async function x(){clearTimeout(O);const[e,r]=await(null!=R?R:R=new Promise(((e,r)=>(async()=>{if(G){if(await g(F),!P)return R=void 0,r({code:1e3,reason:"All Subscriptions Gone"});F++}_.emit("connecting",G);const i=new N("function"==typeof t?await t():t,a.GRAPHQL_TRANSPORT_WS_PROTOCOL);let s,o;function c(){isFinite(h)&&h>0&&(clearTimeout(o),o=setTimeout((()=>{i.readyState===N.OPEN&&(i.send((0,a.stringifyMessage)({type:a.MessageType.Ping})),_.emit("ping",!1,void 0))}),h))}C((e=>{R=void 0,clearTimeout(s),clearTimeout(o),r(e),e instanceof l&&(i.close(4499,"Terminated"),i.onerror=null,i.onclose=null)})),i.onerror=e=>_.emit("error",e),i.onclose=e=>_.emit("closed",e),i.onopen=async()=>{try{_.emit("opened",i);const e="function"==typeof n?await n():n;if(i.readyState!==N.OPEN)return;i.send((0,a.stringifyMessage)(e?{type:a.MessageType.ConnectionInit,payload:e}:{type:a.MessageType.ConnectionInit},S)),isFinite(f)&&f>0&&(s=setTimeout((()=>{i.close(a.CloseCode.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")}),f)),c()}catch(e){_.emit("error",e),i.close(a.CloseCode.InternalClientError,(0,u.limitCloseReason)(e instanceof Error?e.message:new Error(e).message,"Internal client error"))}};let d=!1;i.onmessage=({data:t})=>{try{const r=(0,a.parseMessage)(t,w);if(_.emit("message",r),"ping"===r.type||"pong"===r.type)return _.emit(r.type,!0,r.payload),void("pong"===r.type?c():y||(i.send((0,a.stringifyMessage)(r.payload?{type:a.MessageType.Pong,payload:r.payload}:{type:a.MessageType.Pong})),_.emit("pong",!1,r.payload)));if(d)return;if(r.type!==a.MessageType.ConnectionAck)throw new Error(`First message cannot be of type ${r.type}`);clearTimeout(s),d=!0,_.emit("connected",i,r.payload,G),G=!1,F=0,e([i,new Promise(((e,t)=>C(t)))])}catch(e){i.onmessage=null,_.emit("error",e),i.close(a.CloseCode.BadResponse,(0,u.limitCloseReason)(e instanceof Error?e.message:new Error(e).message,"Bad response"))}}})())));e.readyState===N.CLOSING&&await r;let i=()=>{};const s=new Promise((e=>i=e));return[e,i,Promise.race([s.then((()=>{if(!P){const t=()=>e.close(1e3,"Normal Closure");isFinite(p)&&p>0?O=setTimeout((()=>{e.readyState===N.OPEN&&t()}),p):t()}})),r])]}function V(e){if(c(e)&&(t=e.code,![1e3,1001,1006,1005,1012,1013,1014].includes(t)&&t>=1e3&&t<=1999||[a.CloseCode.InternalServerError,a.CloseCode.InternalClientError,a.CloseCode.BadRequest,a.CloseCode.BadResponse,a.CloseCode.Unauthorized,a.CloseCode.SubprotocolNotAcceptable,a.CloseCode.SubscriberAlreadyExists,a.CloseCode.TooManyInitialisationRequests].includes(e.code)))throw e;var t;if(L)return!1;if(c(e)&&1e3===e.code)return P>0;if(!m||F>=m)throw e;if(!v(e))throw e;if(null==E?void 0:E(e))throw e;return G=!0}function U(e,t){const r=D(e);let n=!1,i=!1,s=()=>{P--,n=!0};return(async()=>{for(P++;;)try{const[o,u,l]=await x();if(n)return u();const c=_.onMessage(r,(e=>{switch(e.type){case a.MessageType.Next:return void t.next(e.payload);case a.MessageType.Error:return i=!0,n=!0,t.error(e.payload),void s();case a.MessageType.Complete:return n=!0,void s()}}));return o.send((0,a.stringifyMessage)({id:r,type:a.MessageType.Subscribe,payload:e},S)),s=()=>{n||o.readyState!==N.OPEN||o.send((0,a.stringifyMessage)({id:r,type:a.MessageType.Complete},S)),P--,n=!0,u()},void await l.finally(c)}catch(e){if(!V(e))return}})().then((()=>{i||t.complete()})).catch((e=>{t.error(e)})),()=>{n||s()}}return i||(async()=>{for(P++;;)try{const[,,e]=await x();await e}catch(e){try{if(!V(e))return}catch(e){return null==d?void 0:d(e)}}})(),{on:_.on,subscribe:U,iterate(e){const t=[],r={done:!1,error:null,resolve:()=>{}},n=U(e,{next(e){t.push(e),r.resolve()},error(e){r.done=!0,r.error=e,r.resolve()},complete(){r.done=!0,r.resolve()}}),i=function(){return o(this,arguments,(function*(){for(;;){for(t.length||(yield s(new Promise((e=>r.resolve=e))));t.length;)yield yield s(t.shift());if(r.error)throw r.error;if(r.done)return yield s(void 0)}}))}();return i.throw=async e=>(r.done||(r.done=!0,r.error=e,r.resolve()),{done:!0,value:void 0}),i.return=async()=>(n(),{done:!0,value:void 0}),i},async dispose(){if(L=!0,R){const[e]=await R;e.close(1e3,"Normal Closure")}},terminate(){R&&_.emit("closed",new l)}}};class l extends Error{constructor(){super(...arguments),this.name="TerminatedCloseEvent",this.message="4499: Terminated",this.code=4499,this.reason="Terminated",this.wasClean=!1}}function c(e){return(0,u.isObject)(e)&&"code"in e&&"reason"in e}t.TerminatedCloseEvent=l},9531:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringifyMessage=t.parseMessage=t.isMessage=t.validateMessage=t.MessageType=t.CloseCode=t.DEPRECATED_GRAPHQL_WS_PROTOCOL=t.GRAPHQL_TRANSPORT_WS_PROTOCOL=void 0;const n=r(9777);var i,s;function o(e){if(!(0,n.isObject)(e))throw new Error(`Message is expected to be an object, but got ${(0,n.extendedTypeof)(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if("string"!=typeof e.type)throw new Error(`Message is expects the 'type' property to be a string, but got ${(0,n.extendedTypeof)(e.type)}`);switch(e.type){case s.ConnectionInit:case s.ConnectionAck:case s.Ping:case s.Pong:if(null!=e.payload&&!(0,n.isObject)(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break;case s.Subscribe:if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${(0,n.extendedTypeof)(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!(0,n.isObject)(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${(0,n.extendedTypeof)(e.payload)}`);if("string"!=typeof e.payload.query)throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${(0,n.extendedTypeof)(e.payload.query)}`);if(null!=e.payload.variables&&!(0,n.isObject)(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${(0,n.extendedTypeof)(e.payload.variables)}`);if(null!=e.payload.operationName&&"string"!==(0,n.extendedTypeof)(e.payload.operationName))throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${(0,n.extendedTypeof)(e.payload.operationName)}`);if(null!=e.payload.extensions&&!(0,n.isObject)(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${(0,n.extendedTypeof)(e.payload.extensions)}`);break;case s.Next:if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${(0,n.extendedTypeof)(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!(0,n.isObject)(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${(0,n.extendedTypeof)(e.payload)}`);break;case s.Error:if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${(0,n.extendedTypeof)(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!(0,n.areGraphQLErrors)(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break;case s.Complete:if("string"!=typeof e.id)throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${(0,n.extendedTypeof)(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break;default:throw new Error(`Invalid message 'type' property "${e.type}"`)}return e}t.GRAPHQL_TRANSPORT_WS_PROTOCOL="graphql-transport-ws",t.DEPRECATED_GRAPHQL_WS_PROTOCOL="graphql-ws",function(e){e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests"}(i||(t.CloseCode=i={})),function(e){e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete"}(s||(t.MessageType=s={})),t.validateMessage=o,t.isMessage=function(e){try{return o(e),!0}catch(e){return!1}},t.parseMessage=function(e,t){return o("string"==typeof e?JSON.parse(e,t):e)},t.stringifyMessage=function(e,t){return o(e),JSON.stringify(e,t)}},7704:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(7169),t),i(r(469),t),i(r(9531),t)},469:function(e,t,r){"use strict";var n=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,i,(t=e[r](t)).done,t.value)}))}}};Object.defineProperty(t,"__esModule",{value:!0}),t.handleProtocols=t.makeServer=void 0;const i=r(2553),s=r(9531),o=r(9777);t.makeServer=function(e){const{schema:t,context:r,roots:a,validate:u,execute:l,subscribe:c,connectionInitWaitTimeout:d=3e3,onConnect:p,onDisconnect:h,onClose:y,onSubscribe:f,onOperation:m,onNext:g,onError:v,onComplete:E,jsonMessageReviver:I,jsonMessageReplacer:b}=e;return{opened(e,D){const S={connectionInitReceived:!1,acknowledged:!1,subscriptions:{},extra:D};if(e.protocol!==s.GRAPHQL_TRANSPORT_WS_PROTOCOL)return e.close(s.CloseCode.SubprotocolNotAcceptable,"Subprotocol not acceptable"),async(e,t)=>{await(null==y?void 0:y(S,e,t))};const w=d>0&&isFinite(d)?setTimeout((()=>{S.connectionInitReceived||e.close(s.CloseCode.ConnectionInitialisationTimeout,"Connection initialisation timeout")}),d):null;return e.onMessage((async function(d){var h,y,D,w,A;let T;try{T=(0,s.parseMessage)(d,I)}catch(t){return e.close(s.CloseCode.BadRequest,"Invalid message received")}switch(T.type){case s.MessageType.ConnectionInit:{if(S.connectionInitReceived)return e.close(s.CloseCode.TooManyInitialisationRequests,"Too many initialisation requests");S.connectionInitReceived=!0,(0,o.isObject)(T.payload)&&(S.connectionParams=T.payload);const t=await(null==p?void 0:p(S));return!1===t?e.close(s.CloseCode.Forbidden,"Forbidden"):(S.acknowledged=!0,void await e.send((0,s.stringifyMessage)((0,o.isObject)(t)?{type:s.MessageType.ConnectionAck,payload:t}:{type:s.MessageType.ConnectionAck},b)))}case s.MessageType.Ping:return e.onPing?await e.onPing(T.payload):void await e.send((0,s.stringifyMessage)(T.payload?{type:s.MessageType.Pong,payload:T.payload}:{type:s.MessageType.Pong}));case s.MessageType.Pong:return await(null===(A=e.onPong)||void 0===A?void 0:A.call(e,T.payload));case s.MessageType.Subscribe:{if(!S.acknowledged)return e.close(s.CloseCode.Unauthorized,"Unauthorized");const{id:d,payload:p}=T;if(d in S.subscriptions)return e.close(s.CloseCode.SubscriberAlreadyExists,`Subscriber for ${d} already exists`);S.subscriptions[d]=null;const I={next:async(t,r)=>{let n={id:d,type:s.MessageType.Next,payload:t};const i=await(null==g?void 0:g(S,n,r,t));i&&(n=Object.assign(Object.assign({},n),{payload:i})),await e.send((0,s.stringifyMessage)(n,b))},error:async t=>{let r={id:d,type:s.MessageType.Error,payload:t};const n=await(null==v?void 0:v(S,r,t));n&&(r=Object.assign(Object.assign({},r),{payload:n})),await e.send((0,s.stringifyMessage)(r,b))},complete:async t=>{const r={id:d,type:s.MessageType.Complete};await(null==E?void 0:E(S,r)),t&&await e.send((0,s.stringifyMessage)(r,b))}};try{let e;const s=await(null==f?void 0:f(S,T));if(s){if((0,o.areGraphQLErrors)(s))return d in S.subscriptions?await I.error(s):void 0;if(Array.isArray(s))throw new Error("Invalid return value from onSubscribe hook, expected an array of GraphQLError objects");e=s}else{if(!t)throw new Error("The GraphQL schema is not provided");const r={operationName:p.operationName,document:(0,i.parse)(p.query),variableValues:p.variables};e=Object.assign(Object.assign({},r),{schema:"function"==typeof t?await t(S,T,r):t});const n=(null!=u?u:i.validate)(e.schema,e.document);if(n.length>0)return d in S.subscriptions?await I.error(n):void 0}const g=(0,i.getOperationAST)(e.document,e.operationName);if(!g)return d in S.subscriptions?await I.error([new i.GraphQLError("Unable to identify operation")]):void 0;let v;"rootValue"in e||(e.rootValue=null==a?void 0:a[g.operation]),"contextValue"in e||(e.contextValue="function"==typeof r?await r(S,T,e):r),v="subscription"===g.operation?await(null!=c?c:i.subscribe)(e):await(null!=l?l:i.execute)(e);const E=await(null==m?void 0:m(S,T,e,v));if(E&&(v=E),(0,o.isAsyncIterable)(v))if(d in S.subscriptions){S.subscriptions[d]=v;try{for(var N,_=!0,C=n(v);!(h=(N=await C.next()).done);_=!0){w=N.value,_=!1;const t=w;await I.next(t,e)}}catch(e){y={error:e}}finally{try{_||h||!(D=C.return)||await D.call(C)}finally{if(y)throw y.error}}}else(0,o.isAsyncGenerator)(v)&&v.return(void 0);else d in S.subscriptions&&await I.next(v,e);await I.complete(d in S.subscriptions)}finally{delete S.subscriptions[d]}return}case s.MessageType.Complete:{const e=S.subscriptions[T.id];return delete S.subscriptions[T.id],void((0,o.isAsyncGenerator)(e)&&await e.return(void 0))}default:throw new Error(`Unexpected message of type ${T.type} received`)}})),async(e,t)=>{w&&clearTimeout(w);const r=Object.assign({},S.subscriptions);S.subscriptions={},await Promise.all(Object.values(r).filter(o.isAsyncGenerator).map((e=>e.return(void 0)))),S.acknowledged&&await(null==h?void 0:h(S,e,t)),await(null==y?void 0:y(S,e,t))}}}},t.handleProtocols=function(e){switch(!0){case e instanceof Set&&e.has(s.GRAPHQL_TRANSPORT_WS_PROTOCOL):case Array.isArray(e)&&e.includes(s.GRAPHQL_TRANSPORT_WS_PROTOCOL):case"string"==typeof e&&e.split(",").map((e=>e.trim())).includes(s.GRAPHQL_TRANSPORT_WS_PROTOCOL):return s.GRAPHQL_TRANSPORT_WS_PROTOCOL;default:return!1}}},9777:(e,t)=>{"use strict";function r(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function n(e){return"object"===r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.limitCloseReason=t.areGraphQLErrors=t.isAsyncGenerator=t.isAsyncIterable=t.isObject=t.extendedTypeof=void 0,t.extendedTypeof=r,t.isObject=n,t.isAsyncIterable=function(e){return"function"==typeof Object(e)[Symbol.asyncIterator]},t.isAsyncGenerator=function(e){return n(e)&&"function"==typeof Object(e)[Symbol.asyncIterator]&&"function"==typeof e.return},t.areGraphQLErrors=function(e){return Array.isArray(e)&&e.length>0&&e.every((e=>"message"in e))},t.limitCloseReason=function(e,t){return e.length<124?e:t}},8813:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.interval=t.iif=t.generate=t.fromEventPattern=t.fromEvent=t.from=t.forkJoin=t.empty=t.defer=t.connectable=t.concat=t.combineLatest=t.bindNodeCallback=t.bindCallback=t.UnsubscriptionError=t.TimeoutError=t.SequenceError=t.ObjectUnsubscribedError=t.NotFoundError=t.EmptyError=t.ArgumentOutOfRangeError=t.firstValueFrom=t.lastValueFrom=t.isObservable=t.identity=t.noop=t.pipe=t.NotificationKind=t.Notification=t.Subscriber=t.Subscription=t.Scheduler=t.VirtualAction=t.VirtualTimeScheduler=t.animationFrameScheduler=t.animationFrame=t.queueScheduler=t.queue=t.asyncScheduler=t.async=t.asapScheduler=t.asap=t.AsyncSubject=t.ReplaySubject=t.BehaviorSubject=t.Subject=t.animationFrames=t.observable=t.ConnectableObservable=t.Observable=void 0,t.filter=t.expand=t.exhaustMap=t.exhaustAll=t.exhaust=t.every=t.endWith=t.elementAt=t.distinctUntilKeyChanged=t.distinctUntilChanged=t.distinct=t.dematerialize=t.delayWhen=t.delay=t.defaultIfEmpty=t.debounceTime=t.debounce=t.count=t.connect=t.concatWith=t.concatMapTo=t.concatMap=t.concatAll=t.combineLatestWith=t.combineLatestAll=t.combineAll=t.catchError=t.bufferWhen=t.bufferToggle=t.bufferTime=t.bufferCount=t.buffer=t.auditTime=t.audit=t.config=t.NEVER=t.EMPTY=t.scheduled=t.zip=t.using=t.timer=t.throwError=t.range=t.race=t.partition=t.pairs=t.onErrorResumeNext=t.of=t.never=t.merge=void 0,t.switchMap=t.switchAll=t.subscribeOn=t.startWith=t.skipWhile=t.skipUntil=t.skipLast=t.skip=t.single=t.shareReplay=t.share=t.sequenceEqual=t.scan=t.sampleTime=t.sample=t.refCount=t.retryWhen=t.retry=t.repeatWhen=t.repeat=t.reduce=t.raceWith=t.publishReplay=t.publishLast=t.publishBehavior=t.publish=t.pluck=t.pairwise=t.onErrorResumeNextWith=t.observeOn=t.multicast=t.min=t.mergeWith=t.mergeScan=t.mergeMapTo=t.mergeMap=t.flatMap=t.mergeAll=t.max=t.materialize=t.mapTo=t.map=t.last=t.isEmpty=t.ignoreElements=t.groupBy=t.first=t.findIndex=t.find=t.finalize=void 0,t.zipWith=t.zipAll=t.withLatestFrom=t.windowWhen=t.windowToggle=t.windowTime=t.windowCount=t.window=t.toArray=t.timestamp=t.timeoutWith=t.timeout=t.timeInterval=t.throwIfEmpty=t.throttleTime=t.throttle=t.tap=t.takeWhile=t.takeUntil=t.takeLast=t.take=t.switchScan=t.switchMapTo=void 0;var s=r(4662);Object.defineProperty(t,"Observable",{enumerable:!0,get:function(){return s.Observable}});var o=r(8918);Object.defineProperty(t,"ConnectableObservable",{enumerable:!0,get:function(){return o.ConnectableObservable}});var a=r(3327);Object.defineProperty(t,"observable",{enumerable:!0,get:function(){return a.observable}});var u=r(3110);Object.defineProperty(t,"animationFrames",{enumerable:!0,get:function(){return u.animationFrames}});var l=r(2483);Object.defineProperty(t,"Subject",{enumerable:!0,get:function(){return l.Subject}});var c=r(1637);Object.defineProperty(t,"BehaviorSubject",{enumerable:!0,get:function(){return c.BehaviorSubject}});var d=r(1242);Object.defineProperty(t,"ReplaySubject",{enumerable:!0,get:function(){return d.ReplaySubject}});var p=r(95);Object.defineProperty(t,"AsyncSubject",{enumerable:!0,get:function(){return p.AsyncSubject}});var h=r(3692);Object.defineProperty(t,"asap",{enumerable:!0,get:function(){return h.asap}}),Object.defineProperty(t,"asapScheduler",{enumerable:!0,get:function(){return h.asapScheduler}});var y=r(7961);Object.defineProperty(t,"async",{enumerable:!0,get:function(){return y.async}}),Object.defineProperty(t,"asyncScheduler",{enumerable:!0,get:function(){return y.asyncScheduler}});var f=r(2886);Object.defineProperty(t,"queue",{enumerable:!0,get:function(){return f.queue}}),Object.defineProperty(t,"queueScheduler",{enumerable:!0,get:function(){return f.queueScheduler}});var m=r(3862);Object.defineProperty(t,"animationFrame",{enumerable:!0,get:function(){return m.animationFrame}}),Object.defineProperty(t,"animationFrameScheduler",{enumerable:!0,get:function(){return m.animationFrameScheduler}});var g=r(182);Object.defineProperty(t,"VirtualTimeScheduler",{enumerable:!0,get:function(){return g.VirtualTimeScheduler}}),Object.defineProperty(t,"VirtualAction",{enumerable:!0,get:function(){return g.VirtualAction}});var v=r(8986);Object.defineProperty(t,"Scheduler",{enumerable:!0,get:function(){return v.Scheduler}});var E=r(8014);Object.defineProperty(t,"Subscription",{enumerable:!0,get:function(){return E.Subscription}});var I=r(5);Object.defineProperty(t,"Subscriber",{enumerable:!0,get:function(){return I.Subscriber}});var b=r(7800);Object.defineProperty(t,"Notification",{enumerable:!0,get:function(){return b.Notification}}),Object.defineProperty(t,"NotificationKind",{enumerable:!0,get:function(){return b.NotificationKind}});var D=r(2706);Object.defineProperty(t,"pipe",{enumerable:!0,get:function(){return D.pipe}});var S=r(1342);Object.defineProperty(t,"noop",{enumerable:!0,get:function(){return S.noop}});var w=r(6640);Object.defineProperty(t,"identity",{enumerable:!0,get:function(){return w.identity}});var A=r(1751);Object.defineProperty(t,"isObservable",{enumerable:!0,get:function(){return A.isObservable}});var T=r(6894);Object.defineProperty(t,"lastValueFrom",{enumerable:!0,get:function(){return T.lastValueFrom}});var N=r(9060);Object.defineProperty(t,"firstValueFrom",{enumerable:!0,get:function(){return N.firstValueFrom}});var _=r(7057);Object.defineProperty(t,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return _.ArgumentOutOfRangeError}});var C=r(2823);Object.defineProperty(t,"EmptyError",{enumerable:!0,get:function(){return C.EmptyError}});var R=r(1759);Object.defineProperty(t,"NotFoundError",{enumerable:!0,get:function(){return R.NotFoundError}});var O=r(9686);Object.defineProperty(t,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return O.ObjectUnsubscribedError}});var P=r(1505);Object.defineProperty(t,"SequenceError",{enumerable:!0,get:function(){return P.SequenceError}});var G=r(1554);Object.defineProperty(t,"TimeoutError",{enumerable:!0,get:function(){return G.TimeoutError}});var F=r(5788);Object.defineProperty(t,"UnsubscriptionError",{enumerable:!0,get:function(){return F.UnsubscriptionError}});var L=r(2713);Object.defineProperty(t,"bindCallback",{enumerable:!0,get:function(){return L.bindCallback}});var x=r(8561);Object.defineProperty(t,"bindNodeCallback",{enumerable:!0,get:function(){return x.bindNodeCallback}});var V=r(3247);Object.defineProperty(t,"combineLatest",{enumerable:!0,get:function(){return V.combineLatest}});var U=r(3865);Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return U.concat}});var M=r(7579);Object.defineProperty(t,"connectable",{enumerable:!0,get:function(){return M.connectable}});var j=r(9353);Object.defineProperty(t,"defer",{enumerable:!0,get:function(){return j.defer}});var k=r(8616);Object.defineProperty(t,"empty",{enumerable:!0,get:function(){return k.empty}});var B=r(9105);Object.defineProperty(t,"forkJoin",{enumerable:!0,get:function(){return B.forkJoin}});var $=r(4917);Object.defineProperty(t,"from",{enumerable:!0,get:function(){return $.from}});var K=r(5337);Object.defineProperty(t,"fromEvent",{enumerable:!0,get:function(){return K.fromEvent}});var q=r(347);Object.defineProperty(t,"fromEventPattern",{enumerable:!0,get:function(){return q.fromEventPattern}});var Q=r(7610);Object.defineProperty(t,"generate",{enumerable:!0,get:function(){return Q.generate}});var W=r(4209);Object.defineProperty(t,"iif",{enumerable:!0,get:function(){return W.iif}});var J=r(6472);Object.defineProperty(t,"interval",{enumerable:!0,get:function(){return J.interval}});var z=r(2833);Object.defineProperty(t,"merge",{enumerable:!0,get:function(){return z.merge}});var Y=r(8655);Object.defineProperty(t,"never",{enumerable:!0,get:function(){return Y.never}});var H=r(1004);Object.defineProperty(t,"of",{enumerable:!0,get:function(){return H.of}});var X=r(6102);Object.defineProperty(t,"onErrorResumeNext",{enumerable:!0,get:function(){return X.onErrorResumeNext}});var Z=r(7740);Object.defineProperty(t,"pairs",{enumerable:!0,get:function(){return Z.pairs}});var ee=r(1699);Object.defineProperty(t,"partition",{enumerable:!0,get:function(){return ee.partition}});var te=r(5584);Object.defineProperty(t,"race",{enumerable:!0,get:function(){return te.race}});var re=r(9376);Object.defineProperty(t,"range",{enumerable:!0,get:function(){return re.range}});var ne=r(1103);Object.defineProperty(t,"throwError",{enumerable:!0,get:function(){return ne.throwError}});var ie=r(4092);Object.defineProperty(t,"timer",{enumerable:!0,get:function(){return ie.timer}});var se=r(7853);Object.defineProperty(t,"using",{enumerable:!0,get:function(){return se.using}});var oe=r(7286);Object.defineProperty(t,"zip",{enumerable:!0,get:function(){return oe.zip}});var ae=r(1656);Object.defineProperty(t,"scheduled",{enumerable:!0,get:function(){return ae.scheduled}});var ue=r(8616);Object.defineProperty(t,"EMPTY",{enumerable:!0,get:function(){return ue.EMPTY}});var le=r(8655);Object.defineProperty(t,"NEVER",{enumerable:!0,get:function(){return le.NEVER}}),i(r(6038),t);var ce=r(3413);Object.defineProperty(t,"config",{enumerable:!0,get:function(){return ce.config}});var de=r(3146);Object.defineProperty(t,"audit",{enumerable:!0,get:function(){return de.audit}});var pe=r(3231);Object.defineProperty(t,"auditTime",{enumerable:!0,get:function(){return pe.auditTime}});var he=r(8015);Object.defineProperty(t,"buffer",{enumerable:!0,get:function(){return he.buffer}});var ye=r(5572);Object.defineProperty(t,"bufferCount",{enumerable:!0,get:function(){return ye.bufferCount}});var fe=r(7210);Object.defineProperty(t,"bufferTime",{enumerable:!0,get:function(){return fe.bufferTime}});var me=r(8995);Object.defineProperty(t,"bufferToggle",{enumerable:!0,get:function(){return me.bufferToggle}});var ge=r(8831);Object.defineProperty(t,"bufferWhen",{enumerable:!0,get:function(){return ge.bufferWhen}});var ve=r(8118);Object.defineProperty(t,"catchError",{enumerable:!0,get:function(){return ve.catchError}});var Ee=r(6625);Object.defineProperty(t,"combineAll",{enumerable:!0,get:function(){return Ee.combineAll}});var Ie=r(6728);Object.defineProperty(t,"combineLatestAll",{enumerable:!0,get:function(){return Ie.combineLatestAll}});var be=r(8239);Object.defineProperty(t,"combineLatestWith",{enumerable:!0,get:function(){return be.combineLatestWith}});var De=r(8158);Object.defineProperty(t,"concatAll",{enumerable:!0,get:function(){return De.concatAll}});var Se=r(9135);Object.defineProperty(t,"concatMap",{enumerable:!0,get:function(){return Se.concatMap}});var we=r(9938);Object.defineProperty(t,"concatMapTo",{enumerable:!0,get:function(){return we.concatMapTo}});var Ae=r(9669);Object.defineProperty(t,"concatWith",{enumerable:!0,get:function(){return Ae.concatWith}});var Te=r(1483);Object.defineProperty(t,"connect",{enumerable:!0,get:function(){return Te.connect}});var Ne=r(1038);Object.defineProperty(t,"count",{enumerable:!0,get:function(){return Ne.count}});var _e=r(6842);Object.defineProperty(t,"debounce",{enumerable:!0,get:function(){return _e.debounce}});var Ce=r(8079);Object.defineProperty(t,"debounceTime",{enumerable:!0,get:function(){return Ce.debounceTime}});var Re=r(378);Object.defineProperty(t,"defaultIfEmpty",{enumerable:!0,get:function(){return Re.defaultIfEmpty}});var Oe=r(914);Object.defineProperty(t,"delay",{enumerable:!0,get:function(){return Oe.delay}});var Pe=r(8766);Object.defineProperty(t,"delayWhen",{enumerable:!0,get:function(){return Pe.delayWhen}});var Ge=r(7441);Object.defineProperty(t,"dematerialize",{enumerable:!0,get:function(){return Ge.dematerialize}});var Fe=r(5365);Object.defineProperty(t,"distinct",{enumerable:!0,get:function(){return Fe.distinct}});var Le=r(8937);Object.defineProperty(t,"distinctUntilChanged",{enumerable:!0,get:function(){return Le.distinctUntilChanged}});var xe=r(9612);Object.defineProperty(t,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return xe.distinctUntilKeyChanged}});var Ve=r(4520);Object.defineProperty(t,"elementAt",{enumerable:!0,get:function(){return Ve.elementAt}});var Ue=r(1776);Object.defineProperty(t,"endWith",{enumerable:!0,get:function(){return Ue.endWith}});var Me=r(5510);Object.defineProperty(t,"every",{enumerable:!0,get:function(){return Me.every}});var je=r(1551);Object.defineProperty(t,"exhaust",{enumerable:!0,get:function(){return je.exhaust}});var ke=r(2752);Object.defineProperty(t,"exhaustAll",{enumerable:!0,get:function(){return ke.exhaustAll}});var Be=r(4753);Object.defineProperty(t,"exhaustMap",{enumerable:!0,get:function(){return Be.exhaustMap}});var $e=r(7661);Object.defineProperty(t,"expand",{enumerable:!0,get:function(){return $e.expand}});var Ke=r(783);Object.defineProperty(t,"filter",{enumerable:!0,get:function(){return Ke.filter}});var qe=r(3555);Object.defineProperty(t,"finalize",{enumerable:!0,get:function(){return qe.finalize}});var Qe=r(7714);Object.defineProperty(t,"find",{enumerable:!0,get:function(){return Qe.find}});var We=r(9756);Object.defineProperty(t,"findIndex",{enumerable:!0,get:function(){return We.findIndex}});var Je=r(8275);Object.defineProperty(t,"first",{enumerable:!0,get:function(){return Je.first}});var ze=r(7815);Object.defineProperty(t,"groupBy",{enumerable:!0,get:function(){return ze.groupBy}});var Ye=r(490);Object.defineProperty(t,"ignoreElements",{enumerable:!0,get:function(){return Ye.ignoreElements}});var He=r(9356);Object.defineProperty(t,"isEmpty",{enumerable:!0,get:function(){return He.isEmpty}});var Xe=r(8669);Object.defineProperty(t,"last",{enumerable:!0,get:function(){return Xe.last}});var Ze=r(5471);Object.defineProperty(t,"map",{enumerable:!0,get:function(){return Ze.map}});var et=r(3218);Object.defineProperty(t,"mapTo",{enumerable:!0,get:function(){return et.mapTo}});var tt=r(2360);Object.defineProperty(t,"materialize",{enumerable:!0,get:function(){return tt.materialize}});var rt=r(1415);Object.defineProperty(t,"max",{enumerable:!0,get:function(){return rt.max}});var nt=r(7302);Object.defineProperty(t,"mergeAll",{enumerable:!0,get:function(){return nt.mergeAll}});var it=r(6902);Object.defineProperty(t,"flatMap",{enumerable:!0,get:function(){return it.flatMap}});var st=r(983);Object.defineProperty(t,"mergeMap",{enumerable:!0,get:function(){return st.mergeMap}});var ot=r(6586);Object.defineProperty(t,"mergeMapTo",{enumerable:!0,get:function(){return ot.mergeMapTo}});var at=r(4408);Object.defineProperty(t,"mergeScan",{enumerable:!0,get:function(){return at.mergeScan}});var ut=r(8253);Object.defineProperty(t,"mergeWith",{enumerable:!0,get:function(){return ut.mergeWith}});var lt=r(2669);Object.defineProperty(t,"min",{enumerable:!0,get:function(){return lt.min}});var ct=r(9247);Object.defineProperty(t,"multicast",{enumerable:!0,get:function(){return ct.multicast}});var dt=r(5184);Object.defineProperty(t,"observeOn",{enumerable:!0,get:function(){return dt.observeOn}});var pt=r(1226);Object.defineProperty(t,"onErrorResumeNextWith",{enumerable:!0,get:function(){return pt.onErrorResumeNextWith}});var ht=r(1518);Object.defineProperty(t,"pairwise",{enumerable:!0,get:function(){return ht.pairwise}});var yt=r(4912);Object.defineProperty(t,"pluck",{enumerable:!0,get:function(){return yt.pluck}});var ft=r(766);Object.defineProperty(t,"publish",{enumerable:!0,get:function(){return ft.publish}});var mt=r(7220);Object.defineProperty(t,"publishBehavior",{enumerable:!0,get:function(){return mt.publishBehavior}});var gt=r(6106);Object.defineProperty(t,"publishLast",{enumerable:!0,get:function(){return gt.publishLast}});var vt=r(8157);Object.defineProperty(t,"publishReplay",{enumerable:!0,get:function(){return vt.publishReplay}});var Et=r(5600);Object.defineProperty(t,"raceWith",{enumerable:!0,get:function(){return Et.raceWith}});var It=r(9139);Object.defineProperty(t,"reduce",{enumerable:!0,get:function(){return It.reduce}});var bt=r(8522);Object.defineProperty(t,"repeat",{enumerable:!0,get:function(){return bt.repeat}});var Dt=r(6566);Object.defineProperty(t,"repeatWhen",{enumerable:!0,get:function(){return Dt.repeatWhen}});var St=r(7835);Object.defineProperty(t,"retry",{enumerable:!0,get:function(){return St.retry}});var wt=r(9843);Object.defineProperty(t,"retryWhen",{enumerable:!0,get:function(){return wt.retryWhen}});var At=r(7561);Object.defineProperty(t,"refCount",{enumerable:!0,get:function(){return At.refCount}});var Tt=r(1731);Object.defineProperty(t,"sample",{enumerable:!0,get:function(){return Tt.sample}});var Nt=r(6086);Object.defineProperty(t,"sampleTime",{enumerable:!0,get:function(){return Nt.sampleTime}});var _t=r(8624);Object.defineProperty(t,"scan",{enumerable:!0,get:function(){return _t.scan}});var Ct=r(582);Object.defineProperty(t,"sequenceEqual",{enumerable:!0,get:function(){return Ct.sequenceEqual}});var Rt=r(8977);Object.defineProperty(t,"share",{enumerable:!0,get:function(){return Rt.share}});var Ot=r(3133);Object.defineProperty(t,"shareReplay",{enumerable:!0,get:function(){return Ot.shareReplay}});var Pt=r(3001);Object.defineProperty(t,"single",{enumerable:!0,get:function(){return Pt.single}});var Gt=r(3982);Object.defineProperty(t,"skip",{enumerable:!0,get:function(){return Gt.skip}});var Ft=r(9098);Object.defineProperty(t,"skipLast",{enumerable:!0,get:function(){return Ft.skipLast}});var Lt=r(7372);Object.defineProperty(t,"skipUntil",{enumerable:!0,get:function(){return Lt.skipUntil}});var xt=r(4721);Object.defineProperty(t,"skipWhile",{enumerable:!0,get:function(){return xt.skipWhile}});var Vt=r(269);Object.defineProperty(t,"startWith",{enumerable:!0,get:function(){return Vt.startWith}});var Ut=r(8960);Object.defineProperty(t,"subscribeOn",{enumerable:!0,get:function(){return Ut.subscribeOn}});var Mt=r(8774);Object.defineProperty(t,"switchAll",{enumerable:!0,get:function(){return Mt.switchAll}});var jt=r(3879);Object.defineProperty(t,"switchMap",{enumerable:!0,get:function(){return jt.switchMap}});var kt=r(3274);Object.defineProperty(t,"switchMapTo",{enumerable:!0,get:function(){return kt.switchMapTo}});var Bt=r(8712);Object.defineProperty(t,"switchScan",{enumerable:!0,get:function(){return Bt.switchScan}});var $t=r(846);Object.defineProperty(t,"take",{enumerable:!0,get:function(){return $t.take}});var Kt=r(8330);Object.defineProperty(t,"takeLast",{enumerable:!0,get:function(){return Kt.takeLast}});var qt=r(4780);Object.defineProperty(t,"takeUntil",{enumerable:!0,get:function(){return qt.takeUntil}});var Qt=r(2129);Object.defineProperty(t,"takeWhile",{enumerable:!0,get:function(){return Qt.takeWhile}});var Wt=r(3964);Object.defineProperty(t,"tap",{enumerable:!0,get:function(){return Wt.tap}});var Jt=r(8941);Object.defineProperty(t,"throttle",{enumerable:!0,get:function(){return Jt.throttle}});var zt=r(7640);Object.defineProperty(t,"throttleTime",{enumerable:!0,get:function(){return zt.throttleTime}});var Yt=r(4869);Object.defineProperty(t,"throwIfEmpty",{enumerable:!0,get:function(){return Yt.throwIfEmpty}});var Ht=r(489);Object.defineProperty(t,"timeInterval",{enumerable:!0,get:function(){return Ht.timeInterval}});var Xt=r(1554);Object.defineProperty(t,"timeout",{enumerable:!0,get:function(){return Xt.timeout}});var Zt=r(4862);Object.defineProperty(t,"timeoutWith",{enumerable:!0,get:function(){return Zt.timeoutWith}});var er=r(6505);Object.defineProperty(t,"timestamp",{enumerable:!0,get:function(){return er.timestamp}});var tr=r(2343);Object.defineProperty(t,"toArray",{enumerable:!0,get:function(){return tr.toArray}});var rr=r(5477);Object.defineProperty(t,"window",{enumerable:!0,get:function(){return rr.window}});var nr=r(6746);Object.defineProperty(t,"windowCount",{enumerable:!0,get:function(){return nr.windowCount}});var ir=r(8208);Object.defineProperty(t,"windowTime",{enumerable:!0,get:function(){return ir.windowTime}});var sr=r(6637);Object.defineProperty(t,"windowToggle",{enumerable:!0,get:function(){return sr.windowToggle}});var or=r(1141);Object.defineProperty(t,"windowWhen",{enumerable:!0,get:function(){return or.windowWhen}});var ar=r(5442);Object.defineProperty(t,"withLatestFrom",{enumerable:!0,get:function(){return ar.withLatestFrom}});var ur=r(187);Object.defineProperty(t,"zipAll",{enumerable:!0,get:function(){return ur.zipAll}});var lr=r(8538);Object.defineProperty(t,"zipWith",{enumerable:!0,get:function(){return lr.zipWith}})},95:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncSubject=void 0;var s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return i(t,e),t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t._hasValue,i=t._value,s=t.thrownError,o=t.isStopped,a=t._isComplete;r?e.error(s):(o||a)&&(n&&e.next(i),e.complete())},t.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},t.prototype.complete=function(){var t=this,r=t._hasValue,n=t._value;t._isComplete||(this._isComplete=!0,r&&e.prototype.next.call(this,n),e.prototype.complete.call(this))},t}(r(2483).Subject);t.AsyncSubject=s},1637:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.BehaviorSubject=void 0;var s=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return i(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return!r.closed&&t.next(this._value),r},t.prototype.getValue=function(){var e=this,t=e.hasError,r=e.thrownError,n=e._value;if(t)throw r;return this._throwIfClosed(),n},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(r(2483).Subject);t.BehaviorSubject=s},7800:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observeNotification=t.Notification=t.NotificationKind=void 0;var n,i=r(8616),s=r(1004),o=r(1103),a=r(1018);(n=t.NotificationKind||(t.NotificationKind={})).NEXT="N",n.ERROR="E",n.COMPLETE="C";var u=function(){function e(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}return e.prototype.observe=function(e){return l(this,e)},e.prototype.do=function(e,t,r){var n=this,i=n.kind,s=n.value,o=n.error;return"N"===i?null==e?void 0:e(s):"E"===i?null==t?void 0:t(o):null==r?void 0:r()},e.prototype.accept=function(e,t,r){var n;return a.isFunction(null===(n=e)||void 0===n?void 0:n.next)?this.observe(e):this.do(e,t,r)},e.prototype.toObservable=function(){var e=this,t=e.kind,r=e.value,n=e.error,a="N"===t?s.of(r):"E"===t?o.throwError((function(){return n})):"C"===t?i.EMPTY:0;if(!a)throw new TypeError("Unexpected notification kind "+t);return a},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();function l(e,t){var r,n,i,s=e,o=s.kind,a=s.value,u=s.error;if("string"!=typeof o)throw new TypeError('Invalid notification, missing "kind"');"N"===o?null===(r=t.next)||void 0===r||r.call(t,a):"E"===o?null===(n=t.error)||void 0===n||n.call(t,u):null===(i=t.complete)||void 0===i||i.call(t)}t.Notification=u,t.observeNotification=l},9052:(e,t)=>{"use strict";function r(e,t,r){return{kind:e,value:t,error:r}}Object.defineProperty(t,"__esModule",{value:!0}),t.createNotification=t.nextNotification=t.errorNotification=t.COMPLETE_NOTIFICATION=void 0,t.COMPLETE_NOTIFICATION=r("C",void 0,void 0),t.errorNotification=function(e){return r("E",void 0,e)},t.nextNotification=function(e){return r("N",e,void 0)},t.createNotification=r},4662:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Observable=void 0;var n=r(5),i=r(8014),s=r(3327),o=r(2706),a=r(3413),u=r(1018),l=r(9223),c=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var s,o=this,a=(s=e)&&s instanceof n.Subscriber||function(e){return e&&u.isFunction(e.next)&&u.isFunction(e.error)&&u.isFunction(e.complete)}(s)&&i.isSubscription(s)?e:new n.SafeSubscriber(e,t,r);return l.errorContext((function(){var e=o,t=e.operator,r=e.source;a.add(t?t.call(a,r):r?o._subscribe(a):o._trySubscribe(a))})),a},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=d(t))((function(t,i){var s=new n.SafeSubscriber({next:function(t){try{e(t)}catch(e){i(e),s.unsubscribe()}},error:i,complete:t});r.subscribe(s)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[s.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.pipeFromArray(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=d(e))((function(e,r){var n;t.subscribe((function(e){return n=e}),(function(e){return r(e)}),(function(){return e(n)}))}))},e.create=function(t){return new e(t)},e}();function d(e){var t;return null!==(t=null!=e?e:a.config.Promise)&&void 0!==t?t:Promise}t.Observable=c},1242:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.ReplaySubject=void 0;var s=r(2483),o=r(9568),a=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=o.dateTimestampProvider);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,r),i}return i(t,e),t.prototype.next=function(t){var r=this,n=r.isStopped,i=r._buffer,s=r._infiniteTimeWindow,o=r._timestampProvider,a=r._windowTime;n||(i.push(t),!s&&i.push(o.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,r=e._timestampProvider,n=e._buffer,i=e._infiniteTimeWindow,s=(i?1:2)*t;if(t<1/0&&s<n.length&&n.splice(0,n.length-s),!i){for(var o=r.now(),a=0,u=1;u<n.length&&n[u]<=o;u+=2)a=u;a&&n.splice(0,a+1)}},t}(s.Subject);t.ReplaySubject=a},8986:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Scheduler=void 0;var n=r(9568),i=function(){function e(t,r){void 0===r&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},e.now=n.dateTimestampProvider.now,e}();t.Scheduler=i},2483:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.AnonymousSubject=t.Subject=void 0;var o=r(4662),a=r(8014),u=r(9686),l=r(7479),c=r(9223),d=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i(t,e),t.prototype.lift=function(e){var t=new p(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new u.ObjectUnsubscribedError},t.prototype.next=function(e){var t=this;c.errorContext((function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=s(t.currentObservers),o=i.next();!o.done;o=i.next())o.value.next(e)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}}))},t.prototype.error=function(e){var t=this;c.errorContext((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}}))},t.prototype.complete=function(){var e=this;c.errorContext((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,i=r.isStopped,s=r.observers;return n||i?a.EMPTY_SUBSCRIPTION:(this.currentObservers=null,s.push(e),new a.Subscription((function(){t.currentObservers=null,l.arrRemove(s,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,i=t.isStopped;r?e.error(n):i&&e.complete()},t.prototype.asObservable=function(){var e=new o.Observable;return e.source=this,e},t.create=function(e,t){return new p(e,t)},t}(o.Observable);t.Subject=d;var p=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return i(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:a.EMPTY_SUBSCRIPTION},t}(d);t.AnonymousSubject=p},5:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_OBSERVER=t.SafeSubscriber=t.Subscriber=void 0;var s=r(1018),o=r(8014),a=r(3413),u=r(7315),l=r(1342),c=r(9052),d=r(9155),p=r(9223),h=function(e){function r(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,o.isSubscription(r)&&r.add(n)):n.destination=t.EMPTY_OBSERVER,n}return i(r,e),r.create=function(e,t,r){return new g(e,t,r)},r.prototype.next=function(e){this.isStopped?E(c.nextNotification(e),this):this._next(e)},r.prototype.error=function(e){this.isStopped?E(c.errorNotification(e),this):(this.isStopped=!0,this._error(e))},r.prototype.complete=function(){this.isStopped?E(c.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(e){this.destination.next(e)},r.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(o.Subscription);t.Subscriber=h;var y=Function.prototype.bind;function f(e,t){return y.call(e,t)}var m=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){v(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){v(e)}else v(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){v(e)}},e}(),g=function(e){function t(t,r,n){var i,o,u=e.call(this)||this;return s.isFunction(t)||!t?i={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:u&&a.config.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return u.unsubscribe()},i={next:t.next&&f(t.next,o),error:t.error&&f(t.error,o),complete:t.complete&&f(t.complete,o)}):i=t,u.destination=new m(i),u}return i(t,e),t}(h);function v(e){a.config.useDeprecatedSynchronousErrorHandling?p.captureError(e):u.reportUnhandledError(e)}function E(e,t){var r=a.config.onStoppedNotification;r&&d.timeoutProvider.setTimeout((function(){return r(e,t)}))}t.SafeSubscriber=g,t.EMPTY_OBSERVER={closed:!0,next:l.noop,error:function(e){throw e},complete:l.noop}},8014:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o},s=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.isSubscription=t.EMPTY_SUBSCRIPTION=t.Subscription=void 0;var o=r(1018),a=r(5788),u=r(7479),l=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,r,u,l;if(!this.closed){this.closed=!0;var d=this._parentage;if(d)if(this._parentage=null,Array.isArray(d))try{for(var p=n(d),h=p.next();!h.done;h=p.next())h.value.remove(this)}catch(t){e={error:t}}finally{try{h&&!h.done&&(t=p.return)&&t.call(p)}finally{if(e)throw e.error}}else d.remove(this);var y=this.initialTeardown;if(o.isFunction(y))try{y()}catch(e){l=e instanceof a.UnsubscriptionError?e.errors:[e]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var m=n(f),g=m.next();!g.done;g=m.next()){var v=g.value;try{c(v)}catch(e){l=null!=l?l:[],e instanceof a.UnsubscriptionError?l=s(s([],i(l)),i(e.errors)):l.push(e)}}}catch(e){r={error:e}}finally{try{g&&!g.done&&(u=m.return)&&u.call(m)}finally{if(r)throw r.error}}}if(l)throw new a.UnsubscriptionError(l)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)c(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&u.arrRemove(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&u.arrRemove(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}();function c(e){o.isFunction(e)?e():e.unsubscribe()}t.Subscription=l,t.EMPTY_SUBSCRIPTION=l.EMPTY,t.isSubscription=function(e){return e instanceof l||e&&"closed"in e&&o.isFunction(e.remove)&&o.isFunction(e.add)&&o.isFunction(e.unsubscribe)}},3413:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=void 0,t.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9060:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.firstValueFrom=void 0;var n=r(2823),i=r(5);t.firstValueFrom=function(e,t){var r="object"==typeof t;return new Promise((function(s,o){var a=new i.SafeSubscriber({next:function(e){s(e),a.unsubscribe()},error:o,complete:function(){r?s(t.defaultValue):o(new n.EmptyError)}});e.subscribe(a)}))}},6894:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lastValueFrom=void 0;var n=r(2823);t.lastValueFrom=function(e,t){var r="object"==typeof t;return new Promise((function(i,s){var o,a=!1;e.subscribe({next:function(e){o=e,a=!0},error:s,complete:function(){a?i(o):r?i(t.defaultValue):s(new n.EmptyError)}})}))}},8918:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectableObservable=void 0;var s=r(4662),o=r(8014),a=r(7561),u=r(3111),l=r(7843),c=function(e){function t(t,r){var n=e.call(this)||this;return n.source=t,n.subjectFactory=r,n._subject=null,n._refCount=0,n._connection=null,l.hasLift(t)&&(n.lift=t.lift),n}return i(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,null==e||e.unsubscribe()},t.prototype.connect=function(){var e=this,t=this._connection;if(!t){t=this._connection=new o.Subscription;var r=this.getSubject();t.add(this.source.subscribe(u.createOperatorSubscriber(r,void 0,(function(){e._teardown(),r.complete()}),(function(t){e._teardown(),r.error(t)}),(function(){return e._teardown()})))),t.closed&&(this._connection=null,t=o.Subscription.EMPTY)}return t},t.prototype.refCount=function(){return a.refCount()(this)},t}(s.Observable);t.ConnectableObservable=c},2713:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bindCallback=void 0;var n=r(1439);t.bindCallback=function(e,t,r){return n.bindCallbackInternals(!1,e,t,r)}},1439:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.bindCallbackInternals=void 0;var s=r(8613),o=r(4662),a=r(8960),u=r(1251),l=r(5184),c=r(95);t.bindCallbackInternals=function e(t,r,d,p){if(d){if(!s.isScheduler(d))return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return e(t,r,p).apply(this,n).pipe(u.mapOneOrManyArgs(d))};p=d}return p?function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return e(t,r).apply(this,n).pipe(a.subscribeOn(p),l.observeOn(p))}:function(){for(var e=this,s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];var u=new c.AsyncSubject,l=!0;return new o.Observable((function(o){var a=u.subscribe(o);if(l){l=!1;var c=!1,d=!1;r.apply(e,i(i([],n(s)),[function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(t){var n=e.shift();if(null!=n)return void u.error(n)}u.next(1<e.length?e:e[0]),d=!0,c&&u.complete()}])),d&&u.complete(),c=!0}return a}))}}},8561:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bindNodeCallback=void 0;var n=r(1439);t.bindNodeCallback=function(e,t,r){return n.bindCallbackInternals(!0,e,t,r)}},3247:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestInit=t.combineLatest=void 0;var n=r(4662),i=r(7360),s=r(4917),o=r(6640),a=r(1251),u=r(1107),l=r(6013),c=r(3111),d=r(7110);function p(e,t,r){return void 0===r&&(r=o.identity),function(n){h(t,(function(){for(var i=e.length,o=new Array(i),a=i,u=i,l=function(i){h(t,(function(){var l=s.from(e[i],t),d=!1;l.subscribe(c.createOperatorSubscriber(n,(function(e){o[i]=e,d||(d=!0,u--),u||n.next(r(o.slice()))}),(function(){--a||n.complete()})))}),n)},d=0;d<i;d++)l(d)}),n)}}function h(e,t,r){e?d.executeSchedule(r,e,t):t()}t.combineLatest=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=u.popScheduler(e),c=u.popResultSelector(e),d=i.argsArgArrayOrObject(e),h=d.args,y=d.keys;if(0===h.length)return s.from([],r);var f=new n.Observable(p(h,r,y?function(e){return l.createObject(y,e)}:o.identity));return c?f.pipe(a.mapOneOrManyArgs(c)):f},t.combineLatestInit=p},3865:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concat=void 0;var n=r(8158),i=r(1107),s=r(4917);t.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.concatAll()(s.from(e,i.popScheduler(e)))}},7579:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.connectable=void 0;var n=r(2483),i=r(4662),s=r(9353),o={connector:function(){return new n.Subject},resetOnDisconnect:!0};t.connectable=function(e,t){void 0===t&&(t=o);var r=null,n=t.connector,a=t.resetOnDisconnect,u=void 0===a||a,l=n(),c=new i.Observable((function(e){return l.subscribe(e)}));return c.connect=function(){return r&&!r.closed||(r=s.defer((function(){return e})).subscribe(l),u&&r.add((function(){return l=n()}))),r},c}},9353:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defer=void 0;var n=r(4662),i=r(9445);t.defer=function(e){return new n.Observable((function(t){i.innerFrom(e()).subscribe(t)}))}},3110:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.animationFrames=void 0;var n=r(4662),i=r(4746),s=r(9507);function o(e){return new n.Observable((function(t){var r=e||i.performanceTimestampProvider,n=r.now(),o=0,a=function(){t.closed||(o=s.animationFrameProvider.requestAnimationFrame((function(i){o=0;var s=r.now();t.next({timestamp:e?s:i,elapsed:s-n}),a()})))};return a(),function(){o&&s.animationFrameProvider.cancelAnimationFrame(o)}}))}t.animationFrames=function(e){return e?o(e):a};var a=o()},8616:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.empty=t.EMPTY=void 0;var n=r(4662);t.EMPTY=new n.Observable((function(e){return e.complete()})),t.empty=function(e){return e?function(e){return new n.Observable((function(t){return e.schedule((function(){return t.complete()}))}))}(e):t.EMPTY}},9105:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.forkJoin=void 0;var n=r(4662),i=r(7360),s=r(9445),o=r(1107),a=r(3111),u=r(1251),l=r(6013);t.forkJoin=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=o.popResultSelector(e),c=i.argsArgArrayOrObject(e),d=c.args,p=c.keys,h=new n.Observable((function(e){var t=d.length;if(t)for(var r=new Array(t),n=t,i=t,o=function(t){var o=!1;s.innerFrom(d[t]).subscribe(a.createOperatorSubscriber(e,(function(e){o||(o=!0,i--),r[t]=e}),(function(){return n--}),void 0,(function(){n&&o||(i||e.next(p?l.createObject(p,r):r),e.complete())})))},u=0;u<t;u++)o(u);else e.complete()}));return r?h.pipe(u.mapOneOrManyArgs(r)):h}},4917:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.from=void 0;var n=r(1656),i=r(9445);t.from=function(e,t){return t?n.scheduled(e,t):i.innerFrom(e)}},5337:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o};Object.defineProperty(t,"__esModule",{value:!0}),t.fromEvent=void 0;var i=r(9445),s=r(4662),o=r(983),a=r(8046),u=r(1018),l=r(1251),c=["addListener","removeListener"],d=["addEventListener","removeEventListener"],p=["on","off"];function h(e,t){return function(r){return function(n){return e[r](t,n)}}}t.fromEvent=function e(t,r,y,f){if(u.isFunction(y)&&(f=y,y=void 0),f)return e(t,r,y).pipe(l.mapOneOrManyArgs(f));var m=n(function(e){return u.isFunction(e.addEventListener)&&u.isFunction(e.removeEventListener)}(t)?d.map((function(e){return function(n){return t[e](r,n,y)}})):function(e){return u.isFunction(e.addListener)&&u.isFunction(e.removeListener)}(t)?c.map(h(t,r)):function(e){return u.isFunction(e.on)&&u.isFunction(e.off)}(t)?p.map(h(t,r)):[],2),g=m[0],v=m[1];if(!g&&a.isArrayLike(t))return o.mergeMap((function(t){return e(t,r,y)}))(i.innerFrom(t));if(!g)throw new TypeError("Invalid event target");return new s.Observable((function(e){var t=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.next(1<t.length?t:t[0])};return g(t),function(){return v(t)}}))}},347:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromEventPattern=void 0;var n=r(4662),i=r(1018),s=r(1251);t.fromEventPattern=function e(t,r,o){return o?e(t,r).pipe(s.mapOneOrManyArgs(o)):new n.Observable((function(e){var n=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.next(1===t.length?t[0]:t)},s=t(n);return i.isFunction(r)?function(){return r(n,s)}:void 0}))}},6824:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromSubscribable=void 0;var n=r(4662);t.fromSubscribable=function(e){return new n.Observable((function(t){return e.subscribe(t)}))}},7610:function(e,t,r){"use strict";var n=this&&this.__generator||function(e,t){var r,n,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.generate=void 0;var i=r(6640),s=r(8613),o=r(9353),a=r(8808);t.generate=function(e,t,r,u,l){var c,d,p,h;function y(){var e;return n(this,(function(n){switch(n.label){case 0:e=h,n.label=1;case 1:return t&&!t(e)?[3,4]:[4,p(e)];case 2:n.sent(),n.label=3;case 3:return e=r(e),[3,1];case 4:return[2]}}))}return 1===arguments.length?(h=(c=e).initialState,t=c.condition,r=c.iterate,d=c.resultSelector,p=void 0===d?i.identity:d,l=c.scheduler):(h=e,!u||s.isScheduler(u)?(p=i.identity,l=u):p=u),o.defer(l?function(){return a.scheduleIterable(y(),l)}:y)}},4209:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iif=void 0;var n=r(9353);t.iif=function(e,t,r){return n.defer((function(){return e()?t:r}))}},9445:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,s){function o(e){try{u(n.next(e))}catch(e){s(e)}}function a(e){try{u(n.throw(e))}catch(e){s(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}u((n=n.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var r,n,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}},s=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof o?o(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,i,(t=e[r](t)).done,t.value)}))}}},o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.fromReadableStreamLike=t.fromAsyncIterable=t.fromIterable=t.fromPromise=t.fromArrayLike=t.fromInteropObservable=t.innerFrom=void 0;var a=r(8046),u=r(7629),l=r(4662),c=r(1116),d=r(1358),p=r(7614),h=r(6368),y=r(9137),f=r(1018),m=r(7315),g=r(3327);function v(e){return new l.Observable((function(t){var r=e[g.observable]();if(f.isFunction(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")}))}function E(e){return new l.Observable((function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()}))}function I(e){return new l.Observable((function(t){e.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,m.reportUnhandledError)}))}function b(e){return new l.Observable((function(t){var r,n;try{for(var i=o(e),s=i.next();!s.done;s=i.next()){var a=s.value;if(t.next(a),t.closed)return}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}t.complete()}))}function D(e){return new l.Observable((function(t){(function(e,t){var r,o,a,u;return n(this,void 0,void 0,(function(){var n,l;return i(this,(function(i){switch(i.label){case 0:i.trys.push([0,5,6,11]),r=s(e),i.label=1;case 1:return[4,r.next()];case 2:if((o=i.sent()).done)return[3,4];if(n=o.value,t.next(n),t.closed)return[2];i.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return l=i.sent(),a={error:l},[3,11];case 6:return i.trys.push([6,,9,10]),o&&!o.done&&(u=r.return)?[4,u.call(r)]:[3,8];case 7:i.sent(),i.label=8;case 8:return[3,10];case 9:if(a)throw a.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}}))}))})(e,t).catch((function(e){return t.error(e)}))}))}function S(e){return D(y.readableStreamLikeToAsyncGenerator(e))}t.innerFrom=function(e){if(e instanceof l.Observable)return e;if(null!=e){if(c.isInteropObservable(e))return v(e);if(a.isArrayLike(e))return E(e);if(u.isPromise(e))return I(e);if(d.isAsyncIterable(e))return D(e);if(h.isIterable(e))return b(e);if(y.isReadableStreamLike(e))return S(e)}throw p.createInvalidObservableTypeError(e)},t.fromInteropObservable=v,t.fromArrayLike=E,t.fromPromise=I,t.fromIterable=b,t.fromAsyncIterable=D,t.fromReadableStreamLike=S},6472:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.interval=void 0;var n=r(7961),i=r(4092);t.interval=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=n.asyncScheduler),e<0&&(e=0),i.timer(e,e,t)}},2833:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.merge=void 0;var n=r(7302),i=r(9445),s=r(8616),o=r(1107),a=r(4917);t.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=o.popScheduler(e),u=o.popNumber(e,1/0),l=e;return l.length?1===l.length?i.innerFrom(l[0]):n.mergeAll(u)(a.from(l,r)):s.EMPTY}},8655:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.never=t.NEVER=void 0;var n=r(4662),i=r(1342);t.NEVER=new n.Observable(i.noop),t.never=function(){return t.NEVER}},1004:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.of=void 0;var n=r(1107),i=r(4917);t.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=n.popScheduler(e);return i.from(e,r)}},6102:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onErrorResumeNext=void 0;var n=r(4662),i=r(8535),s=r(3111),o=r(1342),a=r(9445);t.onErrorResumeNext=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=i.argsOrArgArray(e);return new n.Observable((function(e){var t=0,n=function(){if(t<r.length){var i=void 0;try{i=a.innerFrom(r[t++])}catch(e){return void n()}var u=new s.OperatorSubscriber(e,void 0,o.noop,o.noop);i.subscribe(u),u.add(n)}else e.complete()};n()}))}},7740:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pairs=void 0;var n=r(4917);t.pairs=function(e,t){return n.from(Object.entries(e),t)}},1699:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.partition=void 0;var n=r(245),i=r(783),s=r(9445);t.partition=function(e,t,r){return[i.filter(t,r)(s.innerFrom(e)),i.filter(n.not(t,r))(s.innerFrom(e))]}},5584:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.raceInit=t.race=void 0;var n=r(4662),i=r(9445),s=r(8535),o=r(3111);function a(e){return function(t){for(var r=[],n=function(n){r.push(i.innerFrom(e[n]).subscribe(o.createOperatorSubscriber(t,(function(e){if(r){for(var i=0;i<r.length;i++)i!==n&&r[i].unsubscribe();r=null}t.next(e)}))))},s=0;r&&!t.closed&&s<e.length;s++)n(s)}}t.race=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===(e=s.argsOrArgArray(e)).length?i.innerFrom(e[0]):new n.Observable(a(e))},t.raceInit=a},9376:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.range=void 0;var n=r(4662),i=r(8616);t.range=function(e,t,r){if(null==t&&(t=e,e=0),t<=0)return i.EMPTY;var s=t+e;return new n.Observable(r?function(t){var n=e;return r.schedule((function(){n<s?(t.next(n++),this.schedule()):t.complete()}))}:function(t){for(var r=e;r<s&&!t.closed;)t.next(r++);t.complete()})}},1103:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwError=void 0;var n=r(4662),i=r(1018);t.throwError=function(e,t){var r=i.isFunction(e)?e:function(){return e},s=function(e){return e.error(r())};return new n.Observable(t?function(e){return t.schedule(s,0,e)}:s)}},4092:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timer=void 0;var n=r(4662),i=r(7961),s=r(8613),o=r(1074);t.timer=function(e,t,r){void 0===e&&(e=0),void 0===r&&(r=i.async);var a=-1;return null!=t&&(s.isScheduler(t)?r=t:a=t),new n.Observable((function(t){var n=o.isValidDate(e)?+e-r.now():e;n<0&&(n=0);var i=0;return r.schedule((function(){t.closed||(t.next(i++),0<=a?this.schedule(void 0,a):t.complete())}),n)}))}},7853:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.using=void 0;var n=r(4662),i=r(9445),s=r(8616);t.using=function(e,t){return new n.Observable((function(r){var n=e(),o=t(n);return(o?i.innerFrom(o):s.EMPTY).subscribe(r),function(){n&&n.unsubscribe()}}))}},7286:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.zip=void 0;var s=r(4662),o=r(9445),a=r(8535),u=r(8616),l=r(3111),c=r(1107);t.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=c.popResultSelector(e),d=a.argsOrArgArray(e);return d.length?new s.Observable((function(e){var t=d.map((function(){return[]})),s=d.map((function(){return!1}));e.add((function(){t=s=null}));for(var a=function(a){o.innerFrom(d[a]).subscribe(l.createOperatorSubscriber(e,(function(o){if(t[a].push(o),t.every((function(e){return e.length}))){var u=t.map((function(e){return e.shift()}));e.next(r?r.apply(void 0,i([],n(u))):u),t.some((function(e,t){return!e.length&&s[t]}))&&e.complete()}}),(function(){s[a]=!0,!t[a].length&&e.complete()})))},u=0;!e.closed&&u<d.length;u++)a(u);return function(){t=s=null}})):u.EMPTY}},3111:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.OperatorSubscriber=t.createOperatorSubscriber=void 0;var s=r(5);t.createOperatorSubscriber=function(e,t,r,n,i){return new o(e,t,r,n,i)};var o=function(e){function t(t,r,n,i,s,o){var a=e.call(this,t)||this;return a.onFinalize=s,a.shouldUnsubscribe=o,a._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,a._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,a}return i(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(s.Subscriber);t.OperatorSubscriber=o},3146:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.audit=void 0;var n=r(7843),i=r(9445),s=r(3111);t.audit=function(e){return n.operate((function(t,r){var n=!1,o=null,a=null,u=!1,l=function(){if(null==a||a.unsubscribe(),a=null,n){n=!1;var e=o;o=null,r.next(e)}u&&r.complete()},c=function(){a=null,u&&r.complete()};t.subscribe(s.createOperatorSubscriber(r,(function(t){n=!0,o=t,a||i.innerFrom(e(t)).subscribe(a=s.createOperatorSubscriber(r,l,c))}),(function(){u=!0,(!n||!a||a.closed)&&r.complete()})))}))}},3231:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.auditTime=void 0;var n=r(7961),i=r(3146),s=r(4092);t.auditTime=function(e,t){return void 0===t&&(t=n.asyncScheduler),i.audit((function(){return s.timer(e,t)}))}},8015:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buffer=void 0;var n=r(7843),i=r(1342),s=r(3111),o=r(9445);t.buffer=function(e){return n.operate((function(t,r){var n=[];return t.subscribe(s.createOperatorSubscriber(r,(function(e){return n.push(e)}),(function(){r.next(n),r.complete()}))),o.innerFrom(e).subscribe(s.createOperatorSubscriber(r,(function(){var e=n;n=[],r.next(e)}),i.noop)),function(){n=null}}))}},5572:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferCount=void 0;var i=r(7843),s=r(3111),o=r(7479);t.bufferCount=function(e,t){return void 0===t&&(t=null),t=null!=t?t:e,i.operate((function(r,i){var a=[],u=0;r.subscribe(s.createOperatorSubscriber(i,(function(r){var s,l,c,d,p=null;u++%t==0&&a.push([]);try{for(var h=n(a),y=h.next();!y.done;y=h.next())(g=y.value).push(r),e<=g.length&&(p=null!=p?p:[]).push(g)}catch(e){s={error:e}}finally{try{y&&!y.done&&(l=h.return)&&l.call(h)}finally{if(s)throw s.error}}if(p)try{for(var f=n(p),m=f.next();!m.done;m=f.next()){var g=m.value;o.arrRemove(a,g),i.next(g)}}catch(e){c={error:e}}finally{try{m&&!m.done&&(d=f.return)&&d.call(f)}finally{if(c)throw c.error}}}),(function(){var e,t;try{for(var r=n(a),s=r.next();!s.done;s=r.next()){var o=s.value;i.next(o)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}i.complete()}),void 0,(function(){a=null})))}))}},7210:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferTime=void 0;var i=r(8014),s=r(7843),o=r(3111),a=r(7479),u=r(7961),l=r(1107),c=r(7110);t.bufferTime=function(e){for(var t,r,d=[],p=1;p<arguments.length;p++)d[p-1]=arguments[p];var h=null!==(t=l.popScheduler(d))&&void 0!==t?t:u.asyncScheduler,y=null!==(r=d[0])&&void 0!==r?r:null,f=d[1]||1/0;return s.operate((function(t,r){var s=[],u=!1,l=function(e){var t=e.buffer;e.subs.unsubscribe(),a.arrRemove(s,e),r.next(t),u&&d()},d=function(){if(s){var t=new i.Subscription;r.add(t);var n={buffer:[],subs:t};s.push(n),c.executeSchedule(t,h,(function(){return l(n)}),e)}};null!==y&&y>=0?c.executeSchedule(r,h,d,y,!0):u=!0,d();var p=o.createOperatorSubscriber(r,(function(e){var t,r,i=s.slice();try{for(var o=n(i),a=o.next();!a.done;a=o.next()){var u=a.value,c=u.buffer;c.push(e),f<=c.length&&l(u)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}}),(function(){for(;null==s?void 0:s.length;)r.next(s.shift().buffer);null==p||p.unsubscribe(),r.complete(),r.unsubscribe()}),void 0,(function(){return s=null}));t.subscribe(p)}))}},8995:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferToggle=void 0;var i=r(8014),s=r(7843),o=r(9445),a=r(3111),u=r(1342),l=r(7479);t.bufferToggle=function(e,t){return s.operate((function(r,s){var c=[];o.innerFrom(e).subscribe(a.createOperatorSubscriber(s,(function(e){var r=[];c.push(r);var n=new i.Subscription;n.add(o.innerFrom(t(e)).subscribe(a.createOperatorSubscriber(s,(function(){l.arrRemove(c,r),s.next(r),n.unsubscribe()}),u.noop)))}),u.noop)),r.subscribe(a.createOperatorSubscriber(s,(function(e){var t,r;try{for(var i=n(c),s=i.next();!s.done;s=i.next())s.value.push(e)}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}}),(function(){for(;c.length>0;)s.next(c.shift());s.complete()})))}))}},8831:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bufferWhen=void 0;var n=r(7843),i=r(1342),s=r(3111),o=r(9445);t.bufferWhen=function(e){return n.operate((function(t,r){var n=null,a=null,u=function(){null==a||a.unsubscribe();var t=n;n=[],t&&r.next(t),o.innerFrom(e()).subscribe(a=s.createOperatorSubscriber(r,u,i.noop))};u(),t.subscribe(s.createOperatorSubscriber(r,(function(e){return null==n?void 0:n.push(e)}),(function(){n&&r.next(n),r.complete()}),void 0,(function(){return n=a=null})))}))}},8118:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.catchError=void 0;var n=r(9445),i=r(3111),s=r(7843);t.catchError=function e(t){return s.operate((function(r,s){var o,a=null,u=!1;a=r.subscribe(i.createOperatorSubscriber(s,void 0,void 0,(function(i){o=n.innerFrom(t(i,e(t)(r))),a?(a.unsubscribe(),a=null,o.subscribe(s)):u=!0}))),u&&(a.unsubscribe(),a=null,o.subscribe(s))}))}},6625:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineAll=void 0;var n=r(6728);t.combineAll=n.combineLatestAll},2551:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatest=void 0;var s=r(3247),o=r(7843),a=r(8535),u=r(1251),l=r(2706),c=r(1107);t.combineLatest=function e(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var d=c.popResultSelector(t);return d?l.pipe(e.apply(void 0,i([],n(t))),u.mapOneOrManyArgs(d)):o.operate((function(e,r){s.combineLatestInit(i([e],n(a.argsOrArgArray(t))))(r)}))}},6728:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestAll=void 0;var n=r(3247),i=r(3638);t.combineLatestAll=function(e){return i.joinAllInternals(n.combineLatest,e)}},8239:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestWith=void 0;var s=r(2551);t.combineLatestWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s.combineLatest.apply(void 0,i([],n(e)))}},7601:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.concat=void 0;var s=r(7843),o=r(8158),a=r(1107),u=r(4917);t.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=a.popScheduler(e);return s.operate((function(t,s){o.concatAll()(u.from(i([t],n(e)),r)).subscribe(s)}))}},8158:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatAll=void 0;var n=r(7302);t.concatAll=function(){return n.mergeAll(1)}},9135:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatMap=void 0;var n=r(983),i=r(1018);t.concatMap=function(e,t){return i.isFunction(t)?n.mergeMap(e,t,1):n.mergeMap(e,1)}},9938:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatMapTo=void 0;var n=r(9135),i=r(1018);t.concatMapTo=function(e,t){return i.isFunction(t)?n.concatMap((function(){return e}),t):n.concatMap((function(){return e}))}},9669:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.concatWith=void 0;var s=r(7601);t.concatWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s.concat.apply(void 0,i([],n(e)))}},1483:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.connect=void 0;var n=r(2483),i=r(9445),s=r(7843),o=r(6824),a={connector:function(){return new n.Subject}};t.connect=function(e,t){void 0===t&&(t=a);var r=t.connector;return s.operate((function(t,n){var s=r();i.innerFrom(e(o.fromSubscribable(s))).subscribe(n),n.add(t.subscribe(s))}))}},1038:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.count=void 0;var n=r(9139);t.count=function(e){return n.reduce((function(t,r,n){return!e||e(r,n)?t+1:t}),0)}},6842:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=void 0;var n=r(7843),i=r(1342),s=r(3111),o=r(9445);t.debounce=function(e){return n.operate((function(t,r){var n=!1,a=null,u=null,l=function(){if(null==u||u.unsubscribe(),u=null,n){n=!1;var e=a;a=null,r.next(e)}};t.subscribe(s.createOperatorSubscriber(r,(function(t){null==u||u.unsubscribe(),n=!0,a=t,u=s.createOperatorSubscriber(r,l,i.noop),o.innerFrom(e(t)).subscribe(u)}),(function(){l(),r.complete()}),void 0,(function(){a=u=null})))}))}},8079:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounceTime=void 0;var n=r(7961),i=r(7843),s=r(3111);t.debounceTime=function(e,t){return void 0===t&&(t=n.asyncScheduler),i.operate((function(r,n){var i=null,o=null,a=null,u=function(){if(i){i.unsubscribe(),i=null;var e=o;o=null,n.next(e)}};function l(){var r=a+e,s=t.now();if(s<r)return i=this.schedule(void 0,r-s),void n.add(i);u()}r.subscribe(s.createOperatorSubscriber(n,(function(r){o=r,a=t.now(),i||(i=t.schedule(l,e),n.add(i))}),(function(){u(),n.complete()}),void 0,(function(){o=i=null})))}))}},378:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultIfEmpty=void 0;var n=r(7843),i=r(3111);t.defaultIfEmpty=function(e){return n.operate((function(t,r){var n=!1;t.subscribe(i.createOperatorSubscriber(r,(function(e){n=!0,r.next(e)}),(function(){n||r.next(e),r.complete()})))}))}},914:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delay=void 0;var n=r(7961),i=r(8766),s=r(4092);t.delay=function(e,t){void 0===t&&(t=n.asyncScheduler);var r=s.timer(e,t);return i.delayWhen((function(){return r}))}},8766:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delayWhen=void 0;var n=r(3865),i=r(846),s=r(490),o=r(3218),a=r(983),u=r(9445);t.delayWhen=function e(t,r){return r?function(o){return n.concat(r.pipe(i.take(1),s.ignoreElements()),o.pipe(e(t)))}:a.mergeMap((function(e,r){return u.innerFrom(t(e,r)).pipe(i.take(1),o.mapTo(e))}))}},7441:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dematerialize=void 0;var n=r(7800),i=r(7843),s=r(3111);t.dematerialize=function(){return i.operate((function(e,t){e.subscribe(s.createOperatorSubscriber(t,(function(e){return n.observeNotification(e,t)})))}))}},5365:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinct=void 0;var n=r(7843),i=r(3111),s=r(1342),o=r(9445);t.distinct=function(e,t){return n.operate((function(r,n){var a=new Set;r.subscribe(i.createOperatorSubscriber(n,(function(t){var r=e?e(t):t;a.has(r)||(a.add(r),n.next(t))}))),t&&o.innerFrom(t).subscribe(i.createOperatorSubscriber(n,(function(){return a.clear()}),s.noop))}))}},8937:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinctUntilChanged=void 0;var n=r(6640),i=r(7843),s=r(3111);function o(e,t){return e===t}t.distinctUntilChanged=function(e,t){return void 0===t&&(t=n.identity),e=null!=e?e:o,i.operate((function(r,n){var i,o=!0;r.subscribe(s.createOperatorSubscriber(n,(function(r){var s=t(r);!o&&e(i,s)||(o=!1,i=s,n.next(r))})))}))}},9612:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinctUntilKeyChanged=void 0;var n=r(8937);t.distinctUntilKeyChanged=function(e,t){return n.distinctUntilChanged((function(r,n){return t?t(r[e],n[e]):r[e]===n[e]}))}},4520:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.elementAt=void 0;var n=r(7057),i=r(783),s=r(4869),o=r(378),a=r(846);t.elementAt=function(e,t){if(e<0)throw new n.ArgumentOutOfRangeError;var r=arguments.length>=2;return function(u){return u.pipe(i.filter((function(t,r){return r===e})),a.take(1),r?o.defaultIfEmpty(t):s.throwIfEmpty((function(){return new n.ArgumentOutOfRangeError})))}}},1776:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.endWith=void 0;var s=r(3865),o=r(1004);t.endWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return s.concat(t,o.of.apply(void 0,i([],n(e))))}}},5510:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.every=void 0;var n=r(7843),i=r(3111);t.every=function(e,t){return n.operate((function(r,n){var s=0;r.subscribe(i.createOperatorSubscriber(n,(function(i){e.call(t,i,s++,r)||(n.next(!1),n.complete())}),(function(){n.next(!0),n.complete()})))}))}},1551:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaust=void 0;var n=r(2752);t.exhaust=n.exhaustAll},2752:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaustAll=void 0;var n=r(4753),i=r(6640);t.exhaustAll=function(){return n.exhaustMap(i.identity)}},4753:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaustMap=void 0;var n=r(5471),i=r(9445),s=r(7843),o=r(3111);t.exhaustMap=function e(t,r){return r?function(s){return s.pipe(e((function(e,s){return i.innerFrom(t(e,s)).pipe(n.map((function(t,n){return r(e,t,s,n)})))})))}:s.operate((function(e,r){var n=0,s=null,a=!1;e.subscribe(o.createOperatorSubscriber(r,(function(e){s||(s=o.createOperatorSubscriber(r,void 0,(function(){s=null,a&&r.complete()})),i.innerFrom(t(e,n++)).subscribe(s))}),(function(){a=!0,!s&&r.complete()})))}))}},7661:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expand=void 0;var n=r(7843),i=r(1983);t.expand=function(e,t,r){return void 0===t&&(t=1/0),t=(t||0)<1?1/0:t,n.operate((function(n,s){return i.mergeInternals(n,s,e,t,void 0,!0,r)}))}},783:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filter=void 0;var n=r(7843),i=r(3111);t.filter=function(e,t){return n.operate((function(r,n){var s=0;r.subscribe(i.createOperatorSubscriber(n,(function(r){return e.call(t,r,s++)&&n.next(r)})))}))}},3555:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.finalize=void 0;var n=r(7843);t.finalize=function(e){return n.operate((function(t,r){try{t.subscribe(r)}finally{r.add(e)}}))}},7714:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFind=t.find=void 0;var n=r(7843),i=r(3111);function s(e,t,r){var n="index"===r;return function(r,s){var o=0;r.subscribe(i.createOperatorSubscriber(s,(function(i){var a=o++;e.call(t,i,a,r)&&(s.next(n?a:i),s.complete())}),(function(){s.next(n?-1:void 0),s.complete()})))}}t.find=function(e,t){return n.operate(s(e,t,"value"))},t.createFind=s},9756:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findIndex=void 0;var n=r(7843),i=r(7714);t.findIndex=function(e,t){return n.operate(i.createFind(e,t,"index"))}},8275:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.first=void 0;var n=r(2823),i=r(783),s=r(846),o=r(378),a=r(4869),u=r(6640);t.first=function(e,t){var r=arguments.length>=2;return function(l){return l.pipe(e?i.filter((function(t,r){return e(t,r,l)})):u.identity,s.take(1),r?o.defaultIfEmpty(t):a.throwIfEmpty((function(){return new n.EmptyError})))}}},6902:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flatMap=void 0;var n=r(983);t.flatMap=n.mergeMap},7815:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.groupBy=void 0;var n=r(4662),i=r(9445),s=r(2483),o=r(7843),a=r(3111);t.groupBy=function(e,t,r,u){return o.operate((function(o,l){var c;t&&"function"!=typeof t?(r=t.duration,c=t.element,u=t.connector):c=t;var d=new Map,p=function(e){d.forEach(e),e(l)},h=function(e){return p((function(t){return t.error(e)}))},y=0,f=!1,m=new a.OperatorSubscriber(l,(function(t){try{var o=e(t),p=d.get(o);if(!p){d.set(o,p=u?u():new s.Subject);var g=(E=o,I=p,(b=new n.Observable((function(e){y++;var t=I.subscribe(e);return function(){t.unsubscribe(),0==--y&&f&&m.unsubscribe()}}))).key=E,b);if(l.next(g),r){var v=a.createOperatorSubscriber(p,(function(){p.complete(),null==v||v.unsubscribe()}),void 0,void 0,(function(){return d.delete(o)}));m.add(i.innerFrom(r(g)).subscribe(v))}}p.next(c?c(t):t)}catch(e){h(e)}var E,I,b}),(function(){return p((function(e){return e.complete()}))}),h,(function(){return d.clear()}),(function(){return f=!0,0===y}));o.subscribe(m)}))}},490:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ignoreElements=void 0;var n=r(7843),i=r(3111),s=r(1342);t.ignoreElements=function(){return n.operate((function(e,t){e.subscribe(i.createOperatorSubscriber(t,s.noop))}))}},9356:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=void 0;var n=r(7843),i=r(3111);t.isEmpty=function(){return n.operate((function(e,t){e.subscribe(i.createOperatorSubscriber(t,(function(){t.next(!1),t.complete()}),(function(){t.next(!0),t.complete()})))}))}},3638:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.joinAllInternals=void 0;var n=r(6640),i=r(1251),s=r(2706),o=r(983),a=r(2343);t.joinAllInternals=function(e,t){return s.pipe(a.toArray(),o.mergeMap((function(t){return e(t)})),t?i.mapOneOrManyArgs(t):n.identity)}},8669:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.last=void 0;var n=r(2823),i=r(783),s=r(8330),o=r(4869),a=r(378),u=r(6640);t.last=function(e,t){var r=arguments.length>=2;return function(l){return l.pipe(e?i.filter((function(t,r){return e(t,r,l)})):u.identity,s.takeLast(1),r?a.defaultIfEmpty(t):o.throwIfEmpty((function(){return new n.EmptyError})))}}},5471:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.map=void 0;var n=r(7843),i=r(3111);t.map=function(e,t){return n.operate((function(r,n){var s=0;r.subscribe(i.createOperatorSubscriber(n,(function(r){n.next(e.call(t,r,s++))})))}))}},3218:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapTo=void 0;var n=r(5471);t.mapTo=function(e){return n.map((function(){return e}))}},2360:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.materialize=void 0;var n=r(7800),i=r(7843),s=r(3111);t.materialize=function(){return i.operate((function(e,t){e.subscribe(s.createOperatorSubscriber(t,(function(e){t.next(n.Notification.createNext(e))}),(function(){t.next(n.Notification.createComplete()),t.complete()}),(function(e){t.next(n.Notification.createError(e)),t.complete()})))}))}},1415:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.max=void 0;var n=r(9139),i=r(1018);t.max=function(e){return n.reduce(i.isFunction(e)?function(t,r){return e(t,r)>0?t:r}:function(e,t){return e>t?e:t})}},361:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.merge=void 0;var s=r(7843),o=r(8535),a=r(7302),u=r(1107),l=r(4917);t.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=u.popScheduler(e),c=u.popNumber(e,1/0);return e=o.argsOrArgArray(e),s.operate((function(t,s){a.mergeAll(c)(l.from(i([t],n(e)),r)).subscribe(s)}))}},7302:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeAll=void 0;var n=r(983),i=r(6640);t.mergeAll=function(e){return void 0===e&&(e=1/0),n.mergeMap(i.identity,e)}},1983:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeInternals=void 0;var n=r(9445),i=r(7110),s=r(3111);t.mergeInternals=function(e,t,r,o,a,u,l,c){var d=[],p=0,h=0,y=!1,f=function(){!y||d.length||p||t.complete()},m=function(e){return p<o?g(e):d.push(e)},g=function(e){u&&t.next(e),p++;var c=!1;n.innerFrom(r(e,h++)).subscribe(s.createOperatorSubscriber(t,(function(e){null==a||a(e),u?m(e):t.next(e)}),(function(){c=!0}),void 0,(function(){if(c)try{p--;for(var e=function(){var e=d.shift();l?i.executeSchedule(t,l,(function(){return g(e)})):g(e)};d.length&&p<o;)e();f()}catch(e){t.error(e)}})))};return e.subscribe(s.createOperatorSubscriber(t,m,(function(){y=!0,f()}))),function(){null==c||c()}}},983:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMap=void 0;var n=r(5471),i=r(9445),s=r(7843),o=r(1983),a=r(1018);t.mergeMap=function e(t,r,u){return void 0===u&&(u=1/0),a.isFunction(r)?e((function(e,s){return n.map((function(t,n){return r(e,t,s,n)}))(i.innerFrom(t(e,s)))}),u):("number"==typeof r&&(u=r),s.operate((function(e,r){return o.mergeInternals(e,r,t,u)})))}},6586:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMapTo=void 0;var n=r(983),i=r(1018);t.mergeMapTo=function(e,t,r){return void 0===r&&(r=1/0),i.isFunction(t)?n.mergeMap((function(){return e}),t,r):("number"==typeof t&&(r=t),n.mergeMap((function(){return e}),r))}},4408:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeScan=void 0;var n=r(7843),i=r(1983);t.mergeScan=function(e,t,r){return void 0===r&&(r=1/0),n.operate((function(n,s){var o=t;return i.mergeInternals(n,s,(function(t,r){return e(o,t,r)}),r,(function(e){o=e}),!1,void 0,(function(){return o=null}))}))}},8253:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.mergeWith=void 0;var s=r(361);t.mergeWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s.merge.apply(void 0,i([],n(e)))}},2669:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.min=void 0;var n=r(9139),i=r(1018);t.min=function(e){return n.reduce(i.isFunction(e)?function(t,r){return e(t,r)<0?t:r}:function(e,t){return e<t?e:t})}},9247:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multicast=void 0;var n=r(8918),i=r(1018),s=r(1483);t.multicast=function(e,t){var r=i.isFunction(e)?e:function(){return e};return i.isFunction(t)?s.connect(t,{connector:r}):function(e){return new n.ConnectableObservable(e,r)}}},5184:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observeOn=void 0;var n=r(7110),i=r(7843),s=r(3111);t.observeOn=function(e,t){return void 0===t&&(t=0),i.operate((function(r,i){r.subscribe(s.createOperatorSubscriber(i,(function(r){return n.executeSchedule(i,e,(function(){return i.next(r)}),t)}),(function(){return n.executeSchedule(i,e,(function(){return i.complete()}),t)}),(function(r){return n.executeSchedule(i,e,(function(){return i.error(r)}),t)})))}))}},1226:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.onErrorResumeNext=t.onErrorResumeNextWith=void 0;var s=r(8535),o=r(6102);function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=s.argsOrArgArray(e);return function(e){return o.onErrorResumeNext.apply(void 0,i([e],n(r)))}}t.onErrorResumeNextWith=a,t.onErrorResumeNext=a},1518:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pairwise=void 0;var n=r(7843),i=r(3111);t.pairwise=function(){return n.operate((function(e,t){var r,n=!1;e.subscribe(i.createOperatorSubscriber(t,(function(e){var i=r;r=e,n&&t.next([i,e]),n=!0})))}))}},4912:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pluck=void 0;var n=r(5471);t.pluck=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e.length;if(0===r)throw new Error("list of properties cannot be empty.");return n.map((function(t){for(var n=t,i=0;i<r;i++){var s=null==n?void 0:n[e[i]];if(void 0===s)return;n=s}return n}))}},766:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publish=void 0;var n=r(2483),i=r(9247),s=r(1483);t.publish=function(e){return e?function(t){return s.connect(e)(t)}:function(e){return i.multicast(new n.Subject)(e)}}},7220:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishBehavior=void 0;var n=r(1637),i=r(8918);t.publishBehavior=function(e){return function(t){var r=new n.BehaviorSubject(e);return new i.ConnectableObservable(t,(function(){return r}))}}},6106:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishLast=void 0;var n=r(95),i=r(8918);t.publishLast=function(){return function(e){var t=new n.AsyncSubject;return new i.ConnectableObservable(e,(function(){return t}))}}},8157:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishReplay=void 0;var n=r(1242),i=r(9247),s=r(1018);t.publishReplay=function(e,t,r,o){r&&!s.isFunction(r)&&(o=r);var a=s.isFunction(r)?r:void 0;return function(r){return i.multicast(new n.ReplaySubject(e,t,o),a)(r)}}},5600:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.raceWith=void 0;var s=r(5584),o=r(7843),a=r(6640);t.raceWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length?o.operate((function(t,r){s.raceInit(i([t],n(e)))(r)})):a.identity}},9139:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reduce=void 0;var n=r(6384),i=r(7843);t.reduce=function(e,t){return i.operate(n.scanInternals(e,t,arguments.length>=2,!1,!0))}},7561:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.refCount=void 0;var n=r(7843),i=r(3111);t.refCount=function(){return n.operate((function(e,t){var r=null;e._refCount++;var n=i.createOperatorSubscriber(t,void 0,void 0,void 0,(function(){if(!e||e._refCount<=0||0<--e._refCount)r=null;else{var n=e._connection,i=r;r=null,!n||i&&n!==i||n.unsubscribe(),t.unsubscribe()}}));e.subscribe(n),n.closed||(r=e.connect())}))}},8522:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.repeat=void 0;var n=r(8616),i=r(7843),s=r(3111),o=r(9445),a=r(4092);t.repeat=function(e){var t,r,u=1/0;return null!=e&&("object"==typeof e?(t=e.count,u=void 0===t?1/0:t,r=e.delay):u=e),u<=0?function(){return n.EMPTY}:i.operate((function(e,t){var n,i=0,l=function(){if(null==n||n.unsubscribe(),n=null,null!=r){var e="number"==typeof r?a.timer(r):o.innerFrom(r(i)),u=s.createOperatorSubscriber(t,(function(){u.unsubscribe(),c()}));e.subscribe(u)}else c()},c=function(){var r=!1;n=e.subscribe(s.createOperatorSubscriber(t,void 0,(function(){++i<u?n?l():r=!0:t.complete()}))),r&&l()};c()}))}},6566:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.repeatWhen=void 0;var n=r(9445),i=r(2483),s=r(7843),o=r(3111);t.repeatWhen=function(e){return s.operate((function(t,r){var s,a,u=!1,l=!1,c=!1,d=function(){return c&&l&&(r.complete(),!0)},p=function(){c=!1,s=t.subscribe(o.createOperatorSubscriber(r,void 0,(function(){c=!0,!d()&&(a||(a=new i.Subject,n.innerFrom(e(a)).subscribe(o.createOperatorSubscriber(r,(function(){s?p():u=!0}),(function(){l=!0,d()})))),a).next()}))),u&&(s.unsubscribe(),s=null,u=!1,p())};p()}))}},7835:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.retry=void 0;var n=r(7843),i=r(3111),s=r(6640),o=r(4092),a=r(9445);t.retry=function(e){var t;void 0===e&&(e=1/0);var r=(t=e&&"object"==typeof e?e:{count:e}).count,u=void 0===r?1/0:r,l=t.delay,c=t.resetOnSuccess,d=void 0!==c&&c;return u<=0?s.identity:n.operate((function(e,t){var r,n=0,s=function(){var c=!1;r=e.subscribe(i.createOperatorSubscriber(t,(function(e){d&&(n=0),t.next(e)}),void 0,(function(e){if(n++<u){var d=function(){r?(r.unsubscribe(),r=null,s()):c=!0};if(null!=l){var p="number"==typeof l?o.timer(l):a.innerFrom(l(e,n)),h=i.createOperatorSubscriber(t,(function(){h.unsubscribe(),d()}),(function(){t.complete()}));p.subscribe(h)}else d()}else t.error(e)}))),c&&(r.unsubscribe(),r=null,s())};s()}))}},9843:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.retryWhen=void 0;var n=r(9445),i=r(2483),s=r(7843),o=r(3111);t.retryWhen=function(e){return s.operate((function(t,r){var s,a,u=!1,l=function(){s=t.subscribe(o.createOperatorSubscriber(r,void 0,void 0,(function(t){a||(a=new i.Subject,n.innerFrom(e(a)).subscribe(o.createOperatorSubscriber(r,(function(){return s?l():u=!0})))),a&&a.next(t)}))),u&&(s.unsubscribe(),s=null,u=!1,l())};l()}))}},1731:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sample=void 0;var n=r(9445),i=r(7843),s=r(1342),o=r(3111);t.sample=function(e){return i.operate((function(t,r){var i=!1,a=null;t.subscribe(o.createOperatorSubscriber(r,(function(e){i=!0,a=e}))),n.innerFrom(e).subscribe(o.createOperatorSubscriber(r,(function(){if(i){i=!1;var e=a;a=null,r.next(e)}}),s.noop))}))}},6086:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sampleTime=void 0;var n=r(7961),i=r(1731),s=r(6472);t.sampleTime=function(e,t){return void 0===t&&(t=n.asyncScheduler),i.sample(s.interval(e,t))}},8624:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scan=void 0;var n=r(7843),i=r(6384);t.scan=function(e,t){return n.operate(i.scanInternals(e,t,arguments.length>=2,!0))}},6384:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scanInternals=void 0;var n=r(3111);t.scanInternals=function(e,t,r,i,s){return function(o,a){var u=r,l=t,c=0;o.subscribe(n.createOperatorSubscriber(a,(function(t){var r=c++;l=u?e(l,t,r):(u=!0,t),i&&a.next(l)}),s&&function(){u&&a.next(l),a.complete()}))}}},582:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sequenceEqual=void 0;var n=r(7843),i=r(3111),s=r(9445);t.sequenceEqual=function(e,t){return void 0===t&&(t=function(e,t){return e===t}),n.operate((function(r,n){var o={buffer:[],complete:!1},a={buffer:[],complete:!1},u=function(e){n.next(e),n.complete()},l=function(e,r){var s=i.createOperatorSubscriber(n,(function(n){var i=r.buffer,s=r.complete;0===i.length?s?u(!1):e.buffer.push(n):!t(n,i.shift())&&u(!1)}),(function(){e.complete=!0;var t=r.complete,n=r.buffer;t&&u(0===n.length),null==s||s.unsubscribe()}));return s};r.subscribe(l(o,a)),s.innerFrom(e).subscribe(l(a,o))}))}},8977:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.share=void 0;var s=r(9445),o=r(2483),a=r(5),u=r(7843);function l(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];if(!0!==t){if(!1!==t){var u=new a.SafeSubscriber({next:function(){u.unsubscribe(),e()}});return s.innerFrom(t.apply(void 0,i([],n(r)))).subscribe(u)}}else e()}t.share=function(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new o.Subject}:t,n=e.resetOnError,i=void 0===n||n,c=e.resetOnComplete,d=void 0===c||c,p=e.resetOnRefCountZero,h=void 0===p||p;return function(e){var t,n,o,c=0,p=!1,y=!1,f=function(){null==n||n.unsubscribe(),n=void 0},m=function(){f(),t=o=void 0,p=y=!1},g=function(){var e=t;m(),null==e||e.unsubscribe()};return u.operate((function(e,u){c++,y||p||f();var v=o=null!=o?o:r();u.add((function(){0!=--c||y||p||(n=l(g,h))})),v.subscribe(u),!t&&c>0&&(t=new a.SafeSubscriber({next:function(e){return v.next(e)},error:function(e){y=!0,f(),n=l(m,i,e),v.error(e)},complete:function(){p=!0,f(),n=l(m,d),v.complete()}}),s.innerFrom(e).subscribe(t))}))(e)}}},3133:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shareReplay=void 0;var n=r(1242),i=r(8977);t.shareReplay=function(e,t,r){var s,o,a,u,l=!1;return e&&"object"==typeof e?(s=e.bufferSize,u=void 0===s?1/0:s,o=e.windowTime,t=void 0===o?1/0:o,l=void 0!==(a=e.refCount)&&a,r=e.scheduler):u=null!=e?e:1/0,i.share({connector:function(){return new n.ReplaySubject(u,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:l})}},3001:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.single=void 0;var n=r(2823),i=r(1505),s=r(1759),o=r(7843),a=r(3111);t.single=function(e){return o.operate((function(t,r){var o,u=!1,l=!1,c=0;t.subscribe(a.createOperatorSubscriber(r,(function(n){l=!0,e&&!e(n,c++,t)||(u&&r.error(new i.SequenceError("Too many matching values")),u=!0,o=n)}),(function(){u?(r.next(o),r.complete()):r.error(l?new s.NotFoundError("No matching values"):new n.EmptyError)})))}))}},3982:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skip=void 0;var n=r(783);t.skip=function(e){return n.filter((function(t,r){return e<=r}))}},9098:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipLast=void 0;var n=r(6640),i=r(7843),s=r(3111);t.skipLast=function(e){return e<=0?n.identity:i.operate((function(t,r){var n=new Array(e),i=0;return t.subscribe(s.createOperatorSubscriber(r,(function(t){var s=i++;if(s<e)n[s]=t;else{var o=s%e,a=n[o];n[o]=t,r.next(a)}}))),function(){n=null}}))}},7372:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipUntil=void 0;var n=r(7843),i=r(3111),s=r(9445),o=r(1342);t.skipUntil=function(e){return n.operate((function(t,r){var n=!1,a=i.createOperatorSubscriber(r,(function(){null==a||a.unsubscribe(),n=!0}),o.noop);s.innerFrom(e).subscribe(a),t.subscribe(i.createOperatorSubscriber(r,(function(e){return n&&r.next(e)})))}))}},4721:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipWhile=void 0;var n=r(7843),i=r(3111);t.skipWhile=function(e){return n.operate((function(t,r){var n=!1,s=0;t.subscribe(i.createOperatorSubscriber(r,(function(t){return(n||(n=!e(t,s++)))&&r.next(t)})))}))}},269:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.startWith=void 0;var n=r(3865),i=r(1107),s=r(7843);t.startWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=i.popScheduler(e);return s.operate((function(t,i){(r?n.concat(e,t,r):n.concat(e,t)).subscribe(i)}))}},8960:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribeOn=void 0;var n=r(7843);t.subscribeOn=function(e,t){return void 0===t&&(t=0),n.operate((function(r,n){n.add(e.schedule((function(){return r.subscribe(n)}),t))}))}},8774:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchAll=void 0;var n=r(3879),i=r(6640);t.switchAll=function(){return n.switchMap(i.identity)}},3879:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchMap=void 0;var n=r(9445),i=r(7843),s=r(3111);t.switchMap=function(e,t){return i.operate((function(r,i){var o=null,a=0,u=!1,l=function(){return u&&!o&&i.complete()};r.subscribe(s.createOperatorSubscriber(i,(function(r){null==o||o.unsubscribe();var u=0,c=a++;n.innerFrom(e(r,c)).subscribe(o=s.createOperatorSubscriber(i,(function(e){return i.next(t?t(r,e,c,u++):e)}),(function(){o=null,l()})))}),(function(){u=!0,l()})))}))}},3274:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchMapTo=void 0;var n=r(3879),i=r(1018);t.switchMapTo=function(e,t){return i.isFunction(t)?n.switchMap((function(){return e}),t):n.switchMap((function(){return e}))}},8712:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchScan=void 0;var n=r(3879),i=r(7843);t.switchScan=function(e,t){return i.operate((function(r,i){var s=t;return n.switchMap((function(t,r){return e(s,t,r)}),(function(e,t){return s=t,t}))(r).subscribe(i),function(){s=null}}))}},846:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.take=void 0;var n=r(8616),i=r(7843),s=r(3111);t.take=function(e){return e<=0?function(){return n.EMPTY}:i.operate((function(t,r){var n=0;t.subscribe(s.createOperatorSubscriber(r,(function(t){++n<=e&&(r.next(t),e<=n&&r.complete())})))}))}},8330:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.takeLast=void 0;var i=r(8616),s=r(7843),o=r(3111);t.takeLast=function(e){return e<=0?function(){return i.EMPTY}:s.operate((function(t,r){var i=[];t.subscribe(o.createOperatorSubscriber(r,(function(t){i.push(t),e<i.length&&i.shift()}),(function(){var e,t;try{for(var s=n(i),o=s.next();!o.done;o=s.next()){var a=o.value;r.next(a)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}r.complete()}),void 0,(function(){i=null})))}))}},4780:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.takeUntil=void 0;var n=r(7843),i=r(3111),s=r(9445),o=r(1342);t.takeUntil=function(e){return n.operate((function(t,r){s.innerFrom(e).subscribe(i.createOperatorSubscriber(r,(function(){return r.complete()}),o.noop)),!r.closed&&t.subscribe(r)}))}},2129:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.takeWhile=void 0;var n=r(7843),i=r(3111);t.takeWhile=function(e,t){return void 0===t&&(t=!1),n.operate((function(r,n){var s=0;r.subscribe(i.createOperatorSubscriber(n,(function(r){var i=e(r,s++);(i||t)&&n.next(r),!i&&n.complete()})))}))}},3964:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tap=void 0;var n=r(1018),i=r(7843),s=r(3111),o=r(6640);t.tap=function(e,t,r){var a=n.isFunction(e)||t||r?{next:e,error:t,complete:r}:e;return a?i.operate((function(e,t){var r;null===(r=a.subscribe)||void 0===r||r.call(a);var n=!0;e.subscribe(s.createOperatorSubscriber(t,(function(e){var r;null===(r=a.next)||void 0===r||r.call(a,e),t.next(e)}),(function(){var e;n=!1,null===(e=a.complete)||void 0===e||e.call(a),t.complete()}),(function(e){var r;n=!1,null===(r=a.error)||void 0===r||r.call(a,e),t.error(e)}),(function(){var e,t;n&&(null===(e=a.unsubscribe)||void 0===e||e.call(a)),null===(t=a.finalize)||void 0===t||t.call(a)})))})):o.identity}},8941:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throttle=void 0;var n=r(7843),i=r(3111),s=r(9445);t.throttle=function(e,t){return n.operate((function(r,n){var o=null!=t?t:{},a=o.leading,u=void 0===a||a,l=o.trailing,c=void 0!==l&&l,d=!1,p=null,h=null,y=!1,f=function(){null==h||h.unsubscribe(),h=null,c&&(v(),y&&n.complete())},m=function(){h=null,y&&n.complete()},g=function(t){return h=s.innerFrom(e(t)).subscribe(i.createOperatorSubscriber(n,f,m))},v=function(){if(d){d=!1;var e=p;p=null,n.next(e),!y&&g(e)}};r.subscribe(i.createOperatorSubscriber(n,(function(e){d=!0,p=e,(!h||h.closed)&&(u?v():g(e))}),(function(){y=!0,(!(c&&d&&h)||h.closed)&&n.complete()})))}))}},7640:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throttleTime=void 0;var n=r(7961),i=r(8941),s=r(4092);t.throttleTime=function(e,t,r){void 0===t&&(t=n.asyncScheduler);var o=s.timer(e,t);return i.throttle((function(){return o}),r)}},4869:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwIfEmpty=void 0;var n=r(2823),i=r(7843),s=r(3111);function o(){return new n.EmptyError}t.throwIfEmpty=function(e){return void 0===e&&(e=o),i.operate((function(t,r){var n=!1;t.subscribe(s.createOperatorSubscriber(r,(function(e){n=!0,r.next(e)}),(function(){return n?r.complete():r.error(e())})))}))}},489:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeInterval=t.timeInterval=void 0;var n=r(7961),i=r(7843),s=r(3111);t.timeInterval=function(e){return void 0===e&&(e=n.asyncScheduler),i.operate((function(t,r){var n=e.now();t.subscribe(s.createOperatorSubscriber(r,(function(t){var i=e.now(),s=i-n;n=i,r.next(new o(t,s))})))}))};var o=function(e,t){this.value=e,this.interval=t};t.TimeInterval=o},1554:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeout=t.TimeoutError=void 0;var n=r(7961),i=r(1074),s=r(7843),o=r(9445),a=r(5568),u=r(3111),l=r(7110);function c(e){throw new t.TimeoutError(e)}t.TimeoutError=a.createErrorClass((function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}})),t.timeout=function(e,t){var r=i.isValidDate(e)?{first:e}:"number"==typeof e?{each:e}:e,a=r.first,d=r.each,p=r.with,h=void 0===p?c:p,y=r.scheduler,f=void 0===y?null!=t?t:n.asyncScheduler:y,m=r.meta,g=void 0===m?null:m;if(null==a&&null==d)throw new TypeError("No timeout provided.");return s.operate((function(e,t){var r,n,i=null,s=0,c=function(e){n=l.executeSchedule(t,f,(function(){try{r.unsubscribe(),o.innerFrom(h({meta:g,lastValue:i,seen:s})).subscribe(t)}catch(e){t.error(e)}}),e)};r=e.subscribe(u.createOperatorSubscriber(t,(function(e){null==n||n.unsubscribe(),s++,t.next(i=e),d>0&&c(d)}),void 0,void 0,(function(){(null==n?void 0:n.closed)||null==n||n.unsubscribe(),i=null}))),!s&&c(null!=a?"number"==typeof a?a:+a-f.now():d)}))}},4862:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeoutWith=void 0;var n=r(7961),i=r(1074),s=r(1554);t.timeoutWith=function(e,t,r){var o,a,u;if(r=null!=r?r:n.async,i.isValidDate(e)?o=e:"number"==typeof e&&(a=e),!t)throw new TypeError("No observable provided to switch to");if(u=function(){return t},null==o&&null==a)throw new TypeError("No timeout provided.");return s.timeout({first:o,each:a,scheduler:r,with:u})}},6505:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timestamp=void 0;var n=r(9568),i=r(5471);t.timestamp=function(e){return void 0===e&&(e=n.dateTimestampProvider),i.map((function(t){return{value:t,timestamp:e.now()}}))}},2343:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toArray=void 0;var n=r(9139),i=r(7843),s=function(e,t){return e.push(t),e};t.toArray=function(){return i.operate((function(e,t){n.reduce(s,[])(e).subscribe(t)}))}},5477:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.window=void 0;var n=r(2483),i=r(7843),s=r(3111),o=r(1342),a=r(9445);t.window=function(e){return i.operate((function(t,r){var i=new n.Subject;r.next(i.asObservable());var u=function(e){i.error(e),r.error(e)};return t.subscribe(s.createOperatorSubscriber(r,(function(e){return null==i?void 0:i.next(e)}),(function(){i.complete(),r.complete()}),u)),a.innerFrom(e).subscribe(s.createOperatorSubscriber(r,(function(){i.complete(),r.next(i=new n.Subject)}),o.noop,u)),function(){null==i||i.unsubscribe(),i=null}}))}},6746:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.windowCount=void 0;var i=r(2483),s=r(7843),o=r(3111);t.windowCount=function(e,t){void 0===t&&(t=0);var r=t>0?t:e;return s.operate((function(t,s){var a=[new i.Subject],u=0;s.next(a[0].asObservable()),t.subscribe(o.createOperatorSubscriber(s,(function(t){var o,l;try{for(var c=n(a),d=c.next();!d.done;d=c.next())d.value.next(t)}catch(e){o={error:e}}finally{try{d&&!d.done&&(l=c.return)&&l.call(c)}finally{if(o)throw o.error}}var p=u-e+1;if(p>=0&&p%r==0&&a.shift().complete(),++u%r==0){var h=new i.Subject;a.push(h),s.next(h.asObservable())}}),(function(){for(;a.length>0;)a.shift().complete();s.complete()}),(function(e){for(;a.length>0;)a.shift().error(e);s.error(e)}),(function(){a=null})))}))}},8208:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.windowTime=void 0;var n=r(2483),i=r(7961),s=r(8014),o=r(7843),a=r(3111),u=r(7479),l=r(1107),c=r(7110);t.windowTime=function(e){for(var t,r,d=[],p=1;p<arguments.length;p++)d[p-1]=arguments[p];var h=null!==(t=l.popScheduler(d))&&void 0!==t?t:i.asyncScheduler,y=null!==(r=d[0])&&void 0!==r?r:null,f=d[1]||1/0;return o.operate((function(t,r){var i=[],o=!1,l=function(e){var t=e.window,r=e.subs;t.complete(),r.unsubscribe(),u.arrRemove(i,e),o&&d()},d=function(){if(i){var t=new s.Subscription;r.add(t);var o=new n.Subject,a={window:o,subs:t,seen:0};i.push(a),r.next(o.asObservable()),c.executeSchedule(t,h,(function(){return l(a)}),e)}};null!==y&&y>=0?c.executeSchedule(r,h,d,y,!0):o=!0,d();var p=function(e){return i.slice().forEach(e)},m=function(e){p((function(t){var r=t.window;return e(r)})),e(r),r.unsubscribe()};return t.subscribe(a.createOperatorSubscriber(r,(function(e){p((function(t){t.window.next(e),f<=++t.seen&&l(t)}))}),(function(){return m((function(e){return e.complete()}))}),(function(e){return m((function(t){return t.error(e)}))}))),function(){i=null}}))}},6637:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.windowToggle=void 0;var i=r(2483),s=r(8014),o=r(7843),a=r(9445),u=r(3111),l=r(1342),c=r(7479);t.windowToggle=function(e,t){return o.operate((function(r,o){var d=[],p=function(e){for(;0<d.length;)d.shift().error(e);o.error(e)};a.innerFrom(e).subscribe(u.createOperatorSubscriber(o,(function(e){var r=new i.Subject;d.push(r);var n,h=new s.Subscription;try{n=a.innerFrom(t(e))}catch(e){return void p(e)}o.next(r.asObservable()),h.add(n.subscribe(u.createOperatorSubscriber(o,(function(){c.arrRemove(d,r),r.complete(),h.unsubscribe()}),l.noop,p)))}),l.noop)),r.subscribe(u.createOperatorSubscriber(o,(function(e){var t,r,i=d.slice();try{for(var s=n(i),o=s.next();!o.done;o=s.next())o.value.next(e)}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}}),(function(){for(;0<d.length;)d.shift().complete();o.complete()}),p,(function(){for(;0<d.length;)d.shift().unsubscribe()})))}))}},1141:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.windowWhen=void 0;var n=r(2483),i=r(7843),s=r(3111),o=r(9445);t.windowWhen=function(e){return i.operate((function(t,r){var i,a,u=function(e){i.error(e),r.error(e)},l=function(){var t;null==a||a.unsubscribe(),null==i||i.complete(),i=new n.Subject,r.next(i.asObservable());try{t=o.innerFrom(e())}catch(e){return void u(e)}t.subscribe(a=s.createOperatorSubscriber(r,l,l,u))};l(),t.subscribe(s.createOperatorSubscriber(r,(function(e){return i.next(e)}),(function(){i.complete(),r.complete()}),u,(function(){null==a||a.unsubscribe(),i=null})))}))}},5442:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.withLatestFrom=void 0;var s=r(7843),o=r(3111),a=r(9445),u=r(6640),l=r(1342),c=r(1107);t.withLatestFrom=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=c.popResultSelector(e);return s.operate((function(t,s){for(var c=e.length,d=new Array(c),p=e.map((function(){return!1})),h=!1,y=function(t){a.innerFrom(e[t]).subscribe(o.createOperatorSubscriber(s,(function(e){d[t]=e,h||p[t]||(p[t]=!0,(h=p.every(u.identity))&&(p=null))}),l.noop))},f=0;f<c;f++)y(f);t.subscribe(o.createOperatorSubscriber(s,(function(e){if(h){var t=i([e],n(d));s.next(r?r.apply(void 0,i([],n(t))):t)}})))}))}},5918:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.zip=void 0;var s=r(7286),o=r(7843);t.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.operate((function(t,r){s.zip.apply(void 0,i([t],n(e))).subscribe(r)}))}},187:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zipAll=void 0;var n=r(7286),i=r(3638);t.zipAll=function(e){return i.joinAllInternals(n.zip,e)}},8538:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.zipWith=void 0;var s=r(5918);t.zipWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s.zip.apply(void 0,i([],n(e)))}},6985:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleArray=void 0;var n=r(4662);t.scheduleArray=function(e,t){return new n.Observable((function(r){var n=0;return t.schedule((function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())}))}))}},854:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleAsyncIterable=void 0;var n=r(4662),i=r(7110);t.scheduleAsyncIterable=function(e,t){if(!e)throw new Error("Iterable cannot be null");return new n.Observable((function(r){i.executeSchedule(r,t,(function(){var n=e[Symbol.asyncIterator]();i.executeSchedule(r,t,(function(){n.next().then((function(e){e.done?r.complete():r.next(e.value)}))}),0,!0)}))}))}},8808:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleIterable=void 0;var n=r(4662),i=r(1964),s=r(1018),o=r(7110);t.scheduleIterable=function(e,t){return new n.Observable((function(r){var n;return o.executeSchedule(r,t,(function(){n=e[i.iterator](),o.executeSchedule(r,t,(function(){var e,t,i;try{t=(e=n.next()).value,i=e.done}catch(e){return void r.error(e)}i?r.complete():r.next(t)}),0,!0)})),function(){return s.isFunction(null==n?void 0:n.return)&&n.return()}}))}},9567:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleObservable=void 0;var n=r(9445),i=r(5184),s=r(8960);t.scheduleObservable=function(e,t){return n.innerFrom(e).pipe(s.subscribeOn(t),i.observeOn(t))}},9589:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.schedulePromise=void 0;var n=r(9445),i=r(5184),s=r(8960);t.schedulePromise=function(e,t){return n.innerFrom(e).pipe(s.subscribeOn(t),i.observeOn(t))}},4953:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleReadableStreamLike=void 0;var n=r(854),i=r(9137);t.scheduleReadableStreamLike=function(e,t){return n.scheduleAsyncIterable(i.readableStreamLikeToAsyncGenerator(e),t)}},1656:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduled=void 0;var n=r(9567),i=r(9589),s=r(6985),o=r(8808),a=r(854),u=r(1116),l=r(7629),c=r(8046),d=r(6368),p=r(1358),h=r(7614),y=r(9137),f=r(4953);t.scheduled=function(e,t){if(null!=e){if(u.isInteropObservable(e))return n.scheduleObservable(e,t);if(c.isArrayLike(e))return s.scheduleArray(e,t);if(l.isPromise(e))return i.schedulePromise(e,t);if(p.isAsyncIterable(e))return a.scheduleAsyncIterable(e,t);if(d.isIterable(e))return o.scheduleIterable(e,t);if(y.isReadableStreamLike(e))return f.scheduleReadableStreamLike(e,t)}throw h.createInvalidObservableTypeError(e)}},4671:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.Action=void 0;var s=function(e){function t(t,r){return e.call(this)||this}return i(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(r(8014).Subscription);t.Action=s},2628:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AnimationFrameAction=void 0;var s=r(5267),o=r(9507),a=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return i(t,e),t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t._scheduled||(t._scheduled=o.animationFrameProvider.requestAnimationFrame((function(){return t.flush(void 0)}))))},t.prototype.recycleAsyncId=function(t,r,n){var i;if(void 0===n&&(n=0),null!=n?n>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);var s=t.actions;null!=r&&(null===(i=s[s.length-1])||void 0===i?void 0:i.id)!==r&&(o.animationFrameProvider.cancelAnimationFrame(r),t._scheduled=void 0)},t}(s.AsyncAction);t.AnimationFrameAction=a},3229:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AnimationFrameScheduler=void 0;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var r,n=this.actions;e=e||n.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}},t}(r(5648).AsyncScheduler);t.AnimationFrameScheduler=s},5006:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsapAction=void 0;var s=r(5267),o=r(6293),a=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return i(t,e),t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t._scheduled||(t._scheduled=o.immediateProvider.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,r,n){var i;if(void 0===n&&(n=0),null!=n?n>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);var s=t.actions;null!=r&&(null===(i=s[s.length-1])||void 0===i?void 0:i.id)!==r&&(o.immediateProvider.clearImmediate(r),t._scheduled===r&&(t._scheduled=void 0))},t}(s.AsyncAction);t.AsapAction=a},827:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsapScheduler=void 0;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var r,n=this.actions;e=e||n.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}},t}(r(5648).AsyncScheduler);t.AsapScheduler=s},5267:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncAction=void 0;var s=r(4671),o=r(5649),a=r(7479),u=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n.pending=!1,n}return i(t,e),t.prototype.schedule=function(e,t){var r;if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),o.intervalProvider.setInterval(e.flush.bind(e,this),r)},t.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&o.intervalProvider.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var r,n=!1;try{this.work(e)}catch(e){n=!0,r=e||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,n=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,a.arrRemove(n,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(s.Action);t.AsyncAction=u},5648:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncScheduler=void 0;var s=r(8986),o=function(e){function t(t,r){void 0===r&&(r=s.Scheduler.now);var n=e.call(this,t,r)||this;return n.actions=[],n._active=!1,n}return i(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var r;this._active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}}},t}(s.Scheduler);t.AsyncScheduler=o},4212:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.QueueAction=void 0;var s=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return i(t,e),t.prototype.schedule=function(t,r){return void 0===r&&(r=0),r>0?e.prototype.schedule.call(this,t,r):(this.delay=r,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,r){return r>0||this.closed?e.prototype.execute.call(this,t,r):this._execute(t,r)},t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!=n&&n>0||null==n&&this.delay>0?e.prototype.requestAsyncId.call(this,t,r,n):(t.flush(this),0)},t}(r(5267).AsyncAction);t.QueueAction=s},1293:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.QueueScheduler=void 0;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(r(5648).AsyncScheduler);t.QueueScheduler=s},182:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.VirtualAction=t.VirtualTimeScheduler=void 0;var s=r(5267),o=r(8014),a=function(e){function t(t,r){void 0===t&&(t=u),void 0===r&&(r=1/0);var n=e.call(this,t,(function(){return n.frame}))||this;return n.maxFrames=r,n.frame=0,n.index=-1,n}return i(t,e),t.prototype.flush=function(){for(var e,t,r=this.actions,n=this.maxFrames;(t=r[0])&&t.delay<=n&&(r.shift(),this.frame=t.delay,!(e=t.execute(t.state,t.delay))););if(e){for(;t=r.shift();)t.unsubscribe();throw e}},t.frameTimeFactor=10,t}(r(5648).AsyncScheduler);t.VirtualTimeScheduler=a;var u=function(e){function t(t,r,n){void 0===n&&(n=t.index+=1);var i=e.call(this,t,r)||this;return i.scheduler=t,i.work=r,i.index=n,i.active=!0,i.index=t.index=n,i}return i(t,e),t.prototype.schedule=function(r,n){if(void 0===n&&(n=0),Number.isFinite(n)){if(!this.id)return e.prototype.schedule.call(this,r,n);this.active=!1;var i=new t(this.scheduler,this.work);return this.add(i),i.schedule(r,n)}return o.Subscription.EMPTY},t.prototype.requestAsyncId=function(e,r,n){void 0===n&&(n=0),this.delay=e.frame+n;var i=e.actions;return i.push(this),i.sort(t.sortActions),1},t.prototype.recycleAsyncId=function(e,t,r){void 0===r&&(r=0)},t.prototype._execute=function(t,r){if(!0===this.active)return e.prototype._execute.call(this,t,r)},t.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1},t}(s.AsyncAction);t.VirtualAction=u},3862:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.animationFrame=t.animationFrameScheduler=void 0;var n=r(2628),i=r(3229);t.animationFrameScheduler=new i.AnimationFrameScheduler(n.AnimationFrameAction),t.animationFrame=t.animationFrameScheduler},9507:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.animationFrameProvider=void 0;var s=r(8014);t.animationFrameProvider={schedule:function(e){var r=requestAnimationFrame,n=cancelAnimationFrame,i=t.animationFrameProvider.delegate;i&&(r=i.requestAnimationFrame,n=i.cancelAnimationFrame);var o=r((function(t){n=void 0,e(t)}));return new s.Subscription((function(){return null==n?void 0:n(o)}))},requestAnimationFrame:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var s=t.animationFrameProvider.delegate;return((null==s?void 0:s.requestAnimationFrame)||requestAnimationFrame).apply(void 0,i([],n(e)))},cancelAnimationFrame:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var s=t.animationFrameProvider.delegate;return((null==s?void 0:s.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,i([],n(e)))},delegate:void 0}},3692:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.asap=t.asapScheduler=void 0;var n=r(5006),i=r(827);t.asapScheduler=new i.AsapScheduler(n.AsapAction),t.asap=t.asapScheduler},7961:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.async=t.asyncScheduler=void 0;var n=r(5267),i=r(5648);t.asyncScheduler=new i.AsyncScheduler(n.AsyncAction),t.async=t.asyncScheduler},9568:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dateTimestampProvider=void 0,t.dateTimestampProvider={now:function(){return(t.dateTimestampProvider.delegate||Date).now()},delegate:void 0}},6293:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.immediateProvider=void 0;var s=r(7245),o=s.Immediate.setImmediate,a=s.Immediate.clearImmediate;t.immediateProvider={setImmediate:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var s=t.immediateProvider.delegate;return((null==s?void 0:s.setImmediate)||o).apply(void 0,i([],n(e)))},clearImmediate:function(e){var r=t.immediateProvider.delegate;return((null==r?void 0:r.clearImmediate)||a)(e)},delegate:void 0}},5649:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o},n=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.intervalProvider=void 0,t.intervalProvider={setInterval:function(e,i){for(var s=[],o=2;o<arguments.length;o++)s[o-2]=arguments[o];var a=t.intervalProvider.delegate;return(null==a?void 0:a.setInterval)?a.setInterval.apply(a,n([e,i],r(s))):setInterval.apply(void 0,n([e,i],r(s)))},clearInterval:function(e){var r=t.intervalProvider.delegate;return((null==r?void 0:r.clearInterval)||clearInterval)(e)},delegate:void 0}},4746:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.performanceTimestampProvider=void 0,t.performanceTimestampProvider={now:function(){return(t.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}},2886:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.queue=t.queueScheduler=void 0;var n=r(4212),i=r(1293);t.queueScheduler=new i.QueueScheduler(n.QueueAction),t.queue=t.queueScheduler},9155:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o},n=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.timeoutProvider=void 0,t.timeoutProvider={setTimeout:function(e,i){for(var s=[],o=2;o<arguments.length;o++)s[o-2]=arguments[o];var a=t.timeoutProvider.delegate;return(null==a?void 0:a.setTimeout)?a.setTimeout.apply(a,n([e,i],r(s))):setTimeout.apply(void 0,n([e,i],r(s)))},clearTimeout:function(e){var r=t.timeoutProvider.delegate;return((null==r?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:void 0}},1964:(e,t)=>{"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}Object.defineProperty(t,"__esModule",{value:!0}),t.iterator=t.getSymbolIterator=void 0,t.getSymbolIterator=r,t.iterator=r()},3327:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observable=void 0,t.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"},6038:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7057:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentOutOfRangeError=void 0;var n=r(5568);t.ArgumentOutOfRangeError=n.createErrorClass((function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}}))},2823:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyError=void 0;var n=r(5568);t.EmptyError=n.createErrorClass((function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}}))},7245:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TestTools=t.Immediate=void 0;var r,n=1,i={};function s(e){return e in i&&(delete i[e],!0)}t.Immediate={setImmediate:function(e){var t=n++;return i[t]=!0,r||(r=Promise.resolve()),r.then((function(){return s(t)&&e()})),t},clearImmediate:function(e){s(e)}},t.TestTools={pending:function(){return Object.keys(i).length}}},1759:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotFoundError=void 0;var n=r(5568);t.NotFoundError=n.createErrorClass((function(e){return function(t){e(this),this.name="NotFoundError",this.message=t}}))},9686:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectUnsubscribedError=void 0;var n=r(5568);t.ObjectUnsubscribedError=n.createErrorClass((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}))},1505:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SequenceError=void 0;var n=r(5568);t.SequenceError=n.createErrorClass((function(e){return function(t){e(this),this.name="SequenceError",this.message=t}}))},5788:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnsubscriptionError=void 0;var n=r(5568);t.UnsubscriptionError=n.createErrorClass((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}))},1107:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.popNumber=t.popScheduler=t.popResultSelector=void 0;var n=r(1018),i=r(8613);function s(e){return e[e.length-1]}t.popResultSelector=function(e){return n.isFunction(s(e))?e.pop():void 0},t.popScheduler=function(e){return i.isScheduler(s(e))?e.pop():void 0},t.popNumber=function(e,t){return"number"==typeof s(e)?e.pop():t}},7360:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.argsArgArrayOrObject=void 0;var r=Array.isArray,n=Object.getPrototypeOf,i=Object.prototype,s=Object.keys;t.argsArgArrayOrObject=function(e){if(1===e.length){var t=e[0];if(r(t))return{args:t,keys:null};if((a=t)&&"object"==typeof a&&n(a)===i){var o=s(t);return{args:o.map((function(e){return t[e]})),keys:o}}}var a;return{args:e,keys:null}}},8535:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.argsOrArgArray=void 0;var r=Array.isArray;t.argsOrArgArray=function(e){return 1===e.length&&r(e[0])?e[0]:e}},7479:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrRemove=void 0,t.arrRemove=function(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}},5568:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createErrorClass=void 0,t.createErrorClass=function(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}},6013:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createObject=void 0,t.createObject=function(e,t){return e.reduce((function(e,r,n){return e[r]=t[n],e}),{})}},9223:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.captureError=t.errorContext=void 0;var n=r(3413),i=null;t.errorContext=function(e){if(n.config.useDeprecatedSynchronousErrorHandling){var t=!i;if(t&&(i={errorThrown:!1,error:null}),e(),t){var r=i,s=r.errorThrown,o=r.error;if(i=null,s)throw o}}else e()},t.captureError=function(e){n.config.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=e)}},7110:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.executeSchedule=void 0,t.executeSchedule=function(e,t,r,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var s=t.schedule((function(){r(),i?e.add(this.schedule(null,n)):this.unsubscribe()}),n);if(e.add(s),!i)return s}},6640:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.identity=void 0,t.identity=function(e){return e}},8046:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArrayLike=void 0,t.isArrayLike=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},1358:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAsyncIterable=void 0;var n=r(1018);t.isAsyncIterable=function(e){return Symbol.asyncIterator&&n.isFunction(null==e?void 0:e[Symbol.asyncIterator])}},1074:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidDate=void 0,t.isValidDate=function(e){return e instanceof Date&&!isNaN(e)}},1018:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFunction=void 0,t.isFunction=function(e){return"function"==typeof e}},1116:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInteropObservable=void 0;var n=r(3327),i=r(1018);t.isInteropObservable=function(e){return i.isFunction(e[n.observable])}},6368:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIterable=void 0;var n=r(1964),i=r(1018);t.isIterable=function(e){return i.isFunction(null==e?void 0:e[n.iterator])}},1751:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObservable=void 0;var n=r(4662),i=r(1018);t.isObservable=function(e){return!!e&&(e instanceof n.Observable||i.isFunction(e.lift)&&i.isFunction(e.subscribe))}},7629:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=void 0;var n=r(1018);t.isPromise=function(e){return n.isFunction(null==e?void 0:e.then)}},9137:function(e,t,r){"use strict";var n=this&&this.__generator||function(e,t){var r,n,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}},i=this&&this.__await||function(e){return this instanceof i?(this.v=e,this):new i(e)},s=this&&this.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,s=r.apply(e,t||[]),o=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){s[e]&&(n[e]=function(t){return new Promise((function(r,n){o.push([e,t,r,n])>1||u(e,t)}))})}function u(e,t){try{(r=s[e](t)).value instanceof i?Promise.resolve(r.value.v).then(l,c):d(o[0][2],r)}catch(e){d(o[0][3],e)}var r}function l(e){u("next",e)}function c(e){u("throw",e)}function d(e,t){e(t),o.shift(),o.length&&u(o[0][0],o[0][1])}};Object.defineProperty(t,"__esModule",{value:!0}),t.isReadableStreamLike=t.readableStreamLikeToAsyncGenerator=void 0;var o=r(1018);t.readableStreamLikeToAsyncGenerator=function(e){return s(this,arguments,(function(){var t,r,s;return n(this,(function(n){switch(n.label){case 0:t=e.getReader(),n.label=1;case 1:n.trys.push([1,,9,10]),n.label=2;case 2:return[4,i(t.read())];case 3:return r=n.sent(),s=r.value,r.done?[4,i(void 0)]:[3,5];case 4:return[2,n.sent()];case 5:return[4,i(s)];case 6:return[4,n.sent()];case 7:return n.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))},t.isReadableStreamLike=function(e){return o.isFunction(null==e?void 0:e.getReader)}},8613:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isScheduler=void 0;var n=r(1018);t.isScheduler=function(e){return e&&n.isFunction(e.schedule)}},7843:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.operate=t.hasLift=void 0;var n=r(1018);function i(e){return n.isFunction(null==e?void 0:e.lift)}t.hasLift=i,t.operate=function(e){return function(t){if(i(t))return t.lift((function(t){try{return e(t,this)}catch(e){this.error(e)}}));throw new TypeError("Unable to lift unknown Observable type")}}},1251:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.mapOneOrManyArgs=void 0;var s=r(5471),o=Array.isArray;t.mapOneOrManyArgs=function(e){return s.map((function(t){return function(e,t){return o(t)?e.apply(void 0,i([],n(t))):e(t)}(e,t)}))}},1342:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noop=void 0,t.noop=function(){}},245:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.not=void 0,t.not=function(e,t){return function(r,n){return!e.call(t,r,n)}}},2706:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pipeFromArray=t.pipe=void 0;var n=r(6640);function i(e){return 0===e.length?n.identity:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}t.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i(e)},t.pipeFromArray=i},7315:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportUnhandledError=void 0;var n=r(3413),i=r(9155);t.reportUnhandledError=function(e){i.timeoutProvider.setTimeout((function(){var t=n.config.onUnhandledError;if(!t)throw e;t(e)}))}},7614:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createInvalidObservableTypeError=void 0,t.createInvalidObservableTypeError=function(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}},3461:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setupGraphQLClient=void 0;const n=r(6655),i=r(1119),s=r(6239);t.setupGraphQLClient=async function(e){const t=new i.GraphQLDataProvider;return n.BaseEntity.Provider=t,n.Metadata.Provider=t,n.RunView.Provider=t,n.RunReport.Provider=t,n.RunQuery.Provider=t,await t.Config(e),s.MJGlobal.Instance.RaiseEvent({event:s.MJEventType.LoggedIn,eventCode:null,component:this,args:null}),t}},1119:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLDataProvider=t.GraphQLProviderConfigData=void 0;const n=r(6655),i=r(9850),s=r(6497),o=r(7721),a=r(7383),u=r(8813),l=r(7704);class c extends n.ProviderConfigDataBase{get Token(){return this.Data.Token}set Token(e){this.Data.Token=e}get URL(){return this.Data.URL}get WSURL(){return this.Data.WSURL}get RefreshTokenFunction(){return this.Data.RefreshFunction}constructor(e,t,r,n,i,s,o){super({Token:e,URL:t,WSURL:r,RefreshTokenFunction:n},i,s,o)}}t.GraphQLProviderConfigData=c;class d extends n.ProviderBase{constructor(){super(...arguments),this._innerCurrentUserQueryString=`CurrentUser {\n ${this.userInfoString()}\n UserRolesArray {\n ${this.userRoleInfoString()}\n }\n }\n `,this._currentUserQuery=s.gql`query CurrentUserAndRoles {
|
|
2
|
+
${this._innerCurrentUserQueryString}
|
|
3
|
+
}`,this._wsClient=null,this._pushStatusRequests=[]}get ConfigData(){return d._configData}GenerateUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}async Config(e){try{return void 0===d._sessionId&&(d._sessionId=this.GenerateUUID()),d._configData=e,d._client||(d._client=d.CreateNewGraphQLClient(e.URL,e.Token,d._sessionId)),super.Config(e)}catch(e){throw(0,n.LogError)(e),e}}get sessionId(){return d._sessionId}get AllowRefresh(){return!0}async GetCurrentUser(){const e=await d.ExecuteGQL(this._currentUserQuery,null);if(e)return new n.UserInfo(this,{...e.CurrentUser,UserRoles:e.CurrentUser.UserRolesArray})}async RunReport(e,t){const r=s.gql`
|
|
4
|
+
query GetReportDataQuery ($ReportID: Int!) {
|
|
5
|
+
GetReportData(ReportID: $ReportID) {
|
|
6
|
+
Success
|
|
7
|
+
Results
|
|
8
|
+
RowCount
|
|
9
|
+
ExecutionTime
|
|
10
|
+
ErrorMessage
|
|
11
|
+
}
|
|
12
|
+
}`,n=await d.ExecuteGQL(r,{ReportID:e.ReportID});if(n&&n.GetReportData)return{ReportID:e.ReportID,Success:n.GetReportData.Success,Results:JSON.parse(n.GetReportData.Results),RowCount:n.GetReportData.RowCount,ExecutionTime:n.GetReportData.ExecutionTime,ErrorMessage:n.GetReportData.ErrorMessage}}async RunQuery(e,t){const r=s.gql`
|
|
13
|
+
query GetQueryDataQuery ($QueryID: Int!) {
|
|
14
|
+
GetQueryData(QueryID: $QueryID) {
|
|
15
|
+
Success
|
|
16
|
+
Results
|
|
17
|
+
RowCount
|
|
18
|
+
ExecutionTime
|
|
19
|
+
ErrorMessage
|
|
20
|
+
}
|
|
21
|
+
}`,n="string"==typeof e.QueryID?parseInt(e.QueryID):e.QueryID,i=await d.ExecuteGQL(r,{QueryID:n});if(i&&i.GetQueryData)return{QueryID:e.QueryID,Success:i.GetQueryData.Success,Results:JSON.parse(i.GetQueryData.Results),RowCount:i.GetQueryData.RowCount,ExecutionTime:i.GetQueryData.ExecutionTime,ErrorMessage:i.GetQueryData.ErrorMessage}}async RunView(e,t){try{let r="",n="";if(!e)throw"No parameters passed to RunView";{const i={};let o,a;if(e.ViewEntity)a=e.ViewEntity,o=a.Entity;else{const{entityName:r,v:n}=await this.getEntityNameAndUserView(e,t);a=n,o=r}const u=this.Entities.find((e=>e.Name===o));if(!u)throw new Error(`Entity ${o} not found in metadata`);let l=!1;e.ViewID?(r=`Run${u.ClassName}ViewByID`,n="RunViewByIDInput",i.ViewID=e.ViewID):e.ViewName?(r=`Run${u.ClassName}ViewByName`,n="RunViewByNameInput",i.ViewName=e.ViewName):(l=!0,r=`Run${u.ClassName}DynamicView`,n="RunDynamicViewInput",i.EntityName=e.EntityName),i.ExtraFilter=e.ExtraFilter?e.ExtraFilter:"",i.OrderBy=e.OrderBy?e.OrderBy:"",i.UserSearchString=e.UserSearchString?e.UserSearchString:"",i.Fields=e.Fields,i.IgnoreMaxRows=!!e.IgnoreMaxRows&&e.IgnoreMaxRows,i.MaxRows=e.MaxRows?e.MaxRows:0,i.ForceAuditLog=!!e.ForceAuditLog&&e.ForceAuditLog,i.ResultType=e.ResultType?e.ResultType:"simple",e.AuditLogDescription&&e.AuditLogDescription.length>0&&(i.AuditLogDescription=e.AuditLogDescription),l||(i.ExcludeUserViewRunID=e.ExcludeUserViewRunID?e.ExcludeUserViewRunID:-1,i.ExcludeDataFromAllPriorViewRuns=!!e.ExcludeDataFromAllPriorViewRuns&&e.ExcludeDataFromAllPriorViewRuns,i.OverrideExcludeFilter=e.OverrideExcludeFilter?e.OverrideExcludeFilter:"",i.SaveViewResults=!!e.SaveViewResults&&e.SaveViewResults);const c=this.getViewRunTimeFieldList(u,a,e,l),p=s.gql`
|
|
22
|
+
query RunViewQuery ($input: ${n}!) {
|
|
23
|
+
${r}(input: $input) {
|
|
24
|
+
Results {
|
|
25
|
+
${c.join("\n ")}
|
|
26
|
+
}
|
|
27
|
+
UserViewRunID
|
|
28
|
+
RowCount
|
|
29
|
+
TotalRowCount
|
|
30
|
+
ExecutionTime
|
|
31
|
+
Success
|
|
32
|
+
ErrorMessage
|
|
33
|
+
}
|
|
34
|
+
}`,h=await d.ExecuteGQL(p,{input:i});if(h&&h[r]){const e=h[r].Results;if(e&&e.length>0){const t=u.Fields.filter((e=>e.CodeName!==e.Name));t.length>0&&e.forEach((e=>{t.forEach((t=>{void 0!==e[t.CodeName]&&(e[t.Name]=e[t.CodeName])}))}))}return h[r]}}return null}catch(e){throw(0,n.LogError)(e),e}}async getEntityNameAndUserView(e,t){let r,n;if(e.EntityName)r=e.EntityName;else if(e.ViewID)n=await i.ViewInfo.GetViewEntity(e.ViewID,t),r=n.Entity;else{if(!e.ViewName)throw new Error("No EntityName, ViewID or ViewName passed to RunView");n=await i.ViewInfo.GetViewEntityByName(e.ViewName,t),r=n.Entity}return{entityName:r,v:n}}getViewRunTimeFieldList(e,t,r,n){const i=[];if(r.Fields){for(const t of e.PrimaryKeys)void 0===r.Fields.find((e=>e.trim().toLowerCase()===t.Name.toLowerCase()))&&i.push(t.Name);r.Fields.forEach((e=>i.push(e)))}else if(n)e.Fields.forEach((e=>{e.IsBinaryFieldType||i.push(e.CodeName)}));else{for(const t of e.PrimaryKeys)void 0===i.find((e=>e.trim().toLowerCase()===t.Name.toLowerCase()))&&i.push(t.Name);t.Columns.forEach((e=>{!1!==e.hidden||i.find((t=>t.trim().toLowerCase()===e.EntityField?.Name.trim().toLowerCase()))||i.push(e.EntityField.CodeName)}))}return i}get ProviderType(){return n.ProviderType.Network}async GetRecordChanges(e,t){try{const r={EntityName:"Record Changes",ExtraFilter:`RecordID = '${t.Values()}' AND Entity = '${e}'`},n=await this.RunView(r);return n?n.Results.sort(((e,t)=>e.ChangedAt>t.ChangedAt?-1:1)):null}catch(e){throw(0,n.LogError)(e),e}}async GetRecordDependencies(e,t){try{const r=s.gql`query GetRecordDependenciesQuery ($entityName: String!, $CompositeKey: CompositeKeyInputType!) {
|
|
35
|
+
GetRecordDependencies(entityName: $entityName, CompositeKey: $CompositeKey) {
|
|
36
|
+
EntityName
|
|
37
|
+
RelatedEntityName
|
|
38
|
+
FieldName
|
|
39
|
+
CompositeKey {
|
|
40
|
+
KeyValuePairs {
|
|
41
|
+
FieldName
|
|
42
|
+
Value
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}`,n={entityName:e,CompositeKey:{KeyValuePairs:this.ensureKeyValuePairValueIsString(t.KeyValuePairs)}},i=await d.ExecuteGQL(r,n);return i?.GetRecordDependencies}catch(e){throw(0,n.LogError)(e),e}}ensureKeyValuePairValueIsString(e){return e.map((e=>({FieldName:e.FieldName,Value:e.Value.toString()})))}async GetRecordDuplicates(e,t){if(!e)return null;const r=s.gql`query GetRecordDuplicatesQuery ($params: PotentialDuplicateRequestType!) {
|
|
47
|
+
GetRecordDuplicates(params: $params) {
|
|
48
|
+
Status
|
|
49
|
+
ErrorMessage
|
|
50
|
+
PotentialDuplicateResult {
|
|
51
|
+
EntityID
|
|
52
|
+
DuplicateRunDetailMatchRecordIDs
|
|
53
|
+
RecordPrimaryKeys {
|
|
54
|
+
KeyValuePairs {
|
|
55
|
+
FieldName
|
|
56
|
+
Value
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
Duplicates {
|
|
60
|
+
ProbabilityScore
|
|
61
|
+
KeyValuePairs {
|
|
62
|
+
FieldName
|
|
63
|
+
Value
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}`;let n={EntityID:e.EntityID,EntityDocumentID:e.EntityDocumentID,ListID:e.ListID,ProbabilityScore:e.ProbabilityScore,Options:e.Options,RecordIDs:e.RecordIDs.map((e=>e.Copy()))};const i=await d.ExecuteGQL(r,{params:n});return i&&i.GetRecordDuplicates?i.GetRecordDuplicates:void 0}async MergeRecords(e){try{const t=s.gql`mutation MergeRecordsMutation ($request: RecordMergeRequest!) {
|
|
69
|
+
MergeRecords(request: $request) {
|
|
70
|
+
Success
|
|
71
|
+
OverallStatus
|
|
72
|
+
RecordMergeLogID
|
|
73
|
+
RecordStatus {
|
|
74
|
+
CompositeKey {
|
|
75
|
+
KeyValuePairs {
|
|
76
|
+
FieldName
|
|
77
|
+
Value
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
Success
|
|
81
|
+
RecordMergeDeletionLogID
|
|
82
|
+
Message
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}`,r={EntityName:e.EntityName,SurvivingRecordCompositeKey:{KeyValuePairs:this.ensureKeyValuePairValueIsString(e.SurvivingRecordCompositeKey.KeyValuePairs)},FieldMap:e.FieldMap?.map((e=>({FieldName:e.FieldName,Value:e.Value.toString()}))),RecordsToMerge:e.RecordsToMerge.map((e=>e.Copy()))},n=await d.ExecuteGQL(t,{request:r});return n?.MergeRecords}catch(t){return(0,n.LogError)(t),{Success:!1,OverallStatus:t&&t.message?t.message:t,RecordStatus:[],RecordMergeLogID:-1,Request:e}}}async Save(e,t,r){const i=new n.BaseEntityResult;try{const t={input:{}},r=e.IsSaved?"Update":"Create";i.StartedAt=new Date,i.Type=e.IsSaved?"update":"create",i.OriginalValues=e.Fields.map((e=>({FieldName:e.CodeName,Value:e.Value}))),e.ResultHistory.push(i);const o=`${r}${e.EntityInfo.ClassName}`,a=e.Fields.filter((t=>"uniqueidentifier"!==t.SQLType.trim().toLowerCase()&&(!1===t.ReadOnly||t.IsPrimaryKey&&e.IsSaved))),u=` ${o}(input: $input) {\n ${e.Fields.map((e=>e.CodeName)).join("\n ")}\n }`,l=s.gql`mutation ${r}${e.EntityInfo.ClassName} ($input: ${o}Input!) {
|
|
86
|
+
${u}
|
|
87
|
+
}
|
|
88
|
+
`;for(let e=0;e<a.length;e++){const r=a[e];let i=r.Value;i&&r.EntityFieldInfo.TSType===n.EntityFieldTSType.Date&&(i=i.getTime()),i&&r.EntityFieldInfo.TSType===n.EntityFieldTSType.Boolean&&"boolean"!=typeof i&&(i=0!==parseInt(i)),null==i&&0==r.EntityFieldInfo.AllowsNull&&(i=null!=r.EntityFieldInfo.DefaultValue?r.EntityFieldInfo.DefaultValue:r.FieldType==n.EntityFieldTSType.Number||r.FieldType==n.EntityFieldTSType.Boolean?0:""),t.input[r.CodeName]=i}if("update"===r.trim().toLowerCase()){const r=[];e.Fields.forEach((e=>{const t=e.OldValue?"string"==typeof e.OldValue?e.OldValue:e.OldValue.toString():null;r.push({Key:e.CodeName,Value:t})})),t.input.OldValues___=r}if(e.TransactionGroup)return new Promise(((r,s)=>{const a=[{varName:"input",inputType:o+"Input!"}];e.TransactionGroup.AddTransaction(new n.TransactionItem(e,u,t,{mutationName:o,mutationInputTypes:a},((e,t)=>{i.EndedAt=new Date,t&&e?(i.Success=!0,r(e)):(i.Success=!1,i.Message="Transaction failed",s())})))}));{const n=await d.ExecuteGQL(l,t);if(n&&n[r+e.EntityInfo.ClassName])return i.Success=!0,i.EndedAt=new Date,n[r+e.EntityInfo.ClassName];throw new Error(`Save failed for ${e.EntityInfo.ClassName}`)}}catch(e){return i.Success=!1,i.EndedAt=new Date,i.Message=e.response?.errors?.length>0?e.response.errors[0].message:e.message,(0,n.LogError)(e),null}}async Load(e,t,r=null,i){try{const i={};let o="",a="";for(let r=0;r<t.KeyValuePairs.length;r++){const s=e.Fields.find((e=>e.Name.trim().toLowerCase()===t.KeyValuePairs[r].FieldName.trim().toLowerCase())).EntityFieldInfo,u=t.GetValueByIndex(r),l=s.GraphQLType;if(a.length>0&&(a+=", "),a+=`$${s.CodeName}: ${l}!`,o.length>0&&(o+=", "),o+=`${s.CodeName}: $${s.CodeName}`,s.TSType===n.EntityFieldTSType.Number){if(isNaN(t.GetValueByIndex(r)))throw new Error(`Primary Key value ${u} (${s.Name}) is not a valid number`);i[s.CodeName]=parseInt(u)}else i[s.CodeName]=u}const u=r&&r.length>0?this.getRelatedEntityString(e.EntityInfo,r):"",l=s.gql`query Single${e.EntityInfo.ClassName}${u.length>0?"Full":""} (${a}) {
|
|
89
|
+
${e.EntityInfo.ClassName}(${o}) {
|
|
90
|
+
${e.Fields.filter((e=>!e.EntityFieldInfo.IsBinaryFieldType)).map((e=>e.CodeName)).join("\n ")}
|
|
91
|
+
${u}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
`,c=await d.ExecuteGQL(l,i);return c&&c[e.EntityInfo.ClassName]?c[e.EntityInfo.ClassName]:null}catch(e){return(0,n.LogError)(e),null}}getRelatedEntityString(e,t){let r="";for(let n=0;n<e.RelatedEntities.length;n++)if(t.indexOf(e.RelatedEntities[n].RelatedEntity)>=0){const t=e.RelatedEntities[n],i=this.Entities.find((e=>e.ID===t.RelatedEntityID));r+=`\n ${i.CodeName} {\n ${i.Fields.map((e=>e.CodeName)).join("\n ")}\n }\n `}return r}async Delete(e,t,r){const i=new n.BaseEntityResult;try{i.StartedAt=new Date,i.Type="delete",i.OriginalValues=e.Fields.map((e=>({FieldName:e.CodeName,Value:e.Value}))),e.ResultHistory.push(i);const r={},o=[];let a="",u="",l="";for(let t of e.PrimaryKey.KeyValuePairs){const n=e.Fields.find((e=>e.Name.trim().toLowerCase()===t.FieldName.trim().toLowerCase()));r[n.CodeName]=n.Value,o.push({varName:n.CodeName,inputType:n.EntityFieldInfo.GraphQLType+"!"}),a.length>0&&(a+=", "),a+=`${n.CodeName}: $${n.CodeName}`,u.length>0&&(u+=", "),u+=`$${n.CodeName}: ${n.EntityFieldInfo.GraphQLType}!`,l.length>0&&(l+="\n "),l+=`${n.CodeName}`}o.push({varName:"options___",inputType:"DeleteOptionsInput!"}),r.options___=t||{SkipEntityAIActions:!1,SkipEntityActions:!1};const c="Delete"+e.EntityInfo.ClassName,p=s.gql`${c}(${a}, options___: $options___) {
|
|
95
|
+
${l}
|
|
96
|
+
}
|
|
97
|
+
`,h=s.gql`mutation ${c} (${u}, $options___: DeleteOptionsInput!) {
|
|
98
|
+
${p}
|
|
99
|
+
}
|
|
100
|
+
`;if(e.TransactionGroup)return new Promise(((t,s)=>{e.TransactionGroup.AddTransaction(new n.TransactionItem(e,p,r,{mutationName:c,mutationInputTypes:o},((r,n)=>{if(i.EndedAt=new Date,n&&r){let n=!0;for(const t of e.PrimaryKey.KeyValuePairs)t.Value!==r[t.FieldName]&&(n=!1);n?(i.Success=!0,t(!0)):(i.Success=!1,i.Message="Transaction failed to commit",s())}else i.Success=!1,i.Message="Transaction failed to commit",s()})))}));{const t=await d.ExecuteGQL(h,r);if(t&&t[c]){for(let r of e.PrimaryKey.KeyValuePairs)if(r.Value!==t[c][r.FieldName])throw new Error("Missing primary key value in server Delete response: "+r.FieldName);return i.Success=!0,i.EndedAt=new Date,!0}throw new Error(`Delete failed for ${e.EntityInfo.Name}: ${e.PrimaryKey.ToString()} `)}}catch(e){return i.EndedAt=new Date,i.Success=!1,i.Message=e.response?.errors?.length>0?e.response.errors[0].message:e.message,(0,n.LogError)(e),!1}}async GetDatasetByName(e,t){const r=s.gql`query GetDatasetByName($DatasetName: String!, $ItemFilters: [DatasetItemFilterTypeGQL!]) {
|
|
101
|
+
GetDatasetByName(DatasetName: $DatasetName, ItemFilters: $ItemFilters) {
|
|
102
|
+
DatasetID
|
|
103
|
+
DatasetName
|
|
104
|
+
Success
|
|
105
|
+
Status
|
|
106
|
+
LatestUpdateDate
|
|
107
|
+
Results
|
|
108
|
+
}
|
|
109
|
+
}`,n=await d.ExecuteGQL(r,{DatasetName:e,ItemFilters:t});return n&&n.GetDatasetByName&&n.GetDatasetByName.Success?{DatasetID:n.GetDatasetByName.DatasetID,DatasetName:n.GetDatasetByName.DatasetName,Success:n.GetDatasetByName.Success,Status:n.GetDatasetByName.Status,LatestUpdateDate:new Date(n.GetDatasetByName.LatestUpdateDate),Results:JSON.parse(n.GetDatasetByName.Results)}:{DatasetID:0,DatasetName:e,Success:!1,Status:"Unknown",LatestUpdateDate:null,Results:null}}async GetDatasetStatusByName(e,t){const r=s.gql`query GetDatasetStatusByName($DatasetName: String!, $ItemFilters: [DatasetItemFilterTypeGQL!]) {
|
|
110
|
+
GetDatasetStatusByName(DatasetName: $DatasetName, ItemFilters: $ItemFilters) {
|
|
111
|
+
DatasetID
|
|
112
|
+
DatasetName
|
|
113
|
+
Success
|
|
114
|
+
Status
|
|
115
|
+
LatestUpdateDate
|
|
116
|
+
EntityUpdateDates
|
|
117
|
+
}
|
|
118
|
+
}`,n=await d.ExecuteGQL(r,{DatasetName:e,ItemFilters:t});return n&&n.GetDatasetStatusByName&&n.GetDatasetStatusByName.Success?{DatasetID:n.GetDatasetStatusByName.DatasetID,DatasetName:n.GetDatasetStatusByName.DatasetName,Success:n.GetDatasetStatusByName.Success,Status:n.GetDatasetStatusByName.Status,LatestUpdateDate:new Date(n.GetDatasetStatusByName.LatestUpdateDate),EntityUpdateDates:JSON.parse(n.GetDatasetStatusByName.EntityUpdateDates)}:{DatasetID:0,DatasetName:e,Success:!1,Status:"Unknown",LatestUpdateDate:null,EntityUpdateDates:null}}async CreateTransactionGroup(){return new o.GraphQLTransactionGroup}async GetRecordFavoriteStatus(e,t,r){if(!r.Validate().IsValid)return!1;const n=this.Entities.find((e=>e.Name===t));if(!n)throw new Error(`Entity ${t} not found in metadata`);const i=s.gql`query GetRecordFavoriteStatus($params: UserFavoriteSearchParams!) {
|
|
119
|
+
GetRecordFavoriteStatus(params: $params) {
|
|
120
|
+
Success
|
|
121
|
+
IsFavorite
|
|
122
|
+
}
|
|
123
|
+
}`,o=await d.ExecuteGQL(i,{params:{UserID:e,EntityID:n.ID,CompositeKey:{KeyValuePairs:this.ensureKeyValuePairValueIsString(r.KeyValuePairs)}}});return o&&o.GetRecordFavoriteStatus&&o.GetRecordFavoriteStatus.Success?o.GetRecordFavoriteStatus.IsFavorite:void 0}async SetRecordFavoriteStatus(e,t,r,n,i){const o=this.Entities.find((e=>e.Name===t));if(!o)throw new Error(`Entity ${t} not found in metadata`);const a=s.gql`mutation SetRecordFavoriteStatus($params: UserFavoriteSetParams!) {
|
|
124
|
+
SetRecordFavoriteStatus(params: $params){
|
|
125
|
+
Success
|
|
126
|
+
}
|
|
127
|
+
}`,u=await d.ExecuteGQL(a,{params:{UserID:e,EntityID:o.ID,CompositeKey:{KeyValuePairs:this.ensureKeyValuePairValueIsString(r.KeyValuePairs)},IsFavorite:n}});if(u&&null!==u.SetRecordFavoriteStatus)return u.SetRecordFavoriteStatus.Success}async GetEntityRecordName(e,t){if(!e||!t||0===t.KeyValuePairs?.length)return null;const r=s.gql`query GetEntityRecordNameQuery ($EntityName: String!, $CompositeKey: CompositeKeyInputType!) {
|
|
128
|
+
GetEntityRecordName(EntityName: $EntityName, CompositeKey: $CompositeKey) {
|
|
129
|
+
Success
|
|
130
|
+
Status
|
|
131
|
+
RecordName
|
|
132
|
+
}
|
|
133
|
+
}`,n=await d.ExecuteGQL(r,{EntityName:e,CompositeKey:{KeyValuePairs:this.ensureKeyValuePairValueIsString(t.KeyValuePairs)}});return n&&n.GetEntityRecordName&&n.GetEntityRecordName.Success?n.GetEntityRecordName.RecordName:void 0}async GetEntityRecordNames(e){if(!e)return null;const t=s.gql`query GetEntityRecordNamesQuery ($info: [EntityRecordNameInput!]!) {
|
|
134
|
+
GetEntityRecordNames(info: $info) {
|
|
135
|
+
Success
|
|
136
|
+
Status
|
|
137
|
+
CompositeKey {
|
|
138
|
+
KeyValuePairs {
|
|
139
|
+
FieldName
|
|
140
|
+
Value
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
EntityName
|
|
144
|
+
RecordName
|
|
145
|
+
}
|
|
146
|
+
}`,r=await d.ExecuteGQL(t,{info:e.map((e=>({EntityName:e.EntityName,CompositeKey:{KeyValuePairs:this.ensureKeyValuePairValueIsString(e.CompositeKey.KeyValuePairs)}})))});return r&&r.GetEntityRecordNames?r.GetEntityRecordNames:void 0}static async ExecuteGQL(e,t,r=!0){try{return await d._client.request(e,t)}catch(i){if(i&&i.response&&i.response.errors?.length>0){const s=i.response.errors[0],o=s?.extensions?.code?.toUpperCase().trim();if("JWT_EXPIRED"===o){if(r)return await d.RefreshToken(),await d.ExecuteGQL(e,t,!1);throw(0,n.LogError)("JWT_EXPIRED and refreshTokenIfNeeded is false"),i}throw i}throw(0,n.LogError)(i),i}}static async RefreshToken(){if(!d._configData.Data.RefreshTokenFunction)throw new Error("No refresh token function provided");{const e=await d._configData.Data.RefreshTokenFunction();if(!e)throw new Error("Refresh token function returned null or undefined token");d._configData.Token=e,d._client=this.CreateNewGraphQLClient(d._configData.URL,d._configData.Token,d._sessionId)}}static CreateNewGraphQLClient(e,t,r){return new s.GraphQLClient(e,{headers:{authorization:"Bearer "+t,"x-session-id":r}})}userInfoString(){return this.infoString(new n.UserInfo(null,null))}userRoleInfoString(){return this.infoString(new n.UserRoleInfo(null))}infoString(e){let t="";const r=Object.keys(e);for(let e=0;e<r.length;e++)"_"!=r[e].substring(0,1)&&(t+=r[e]+"\n ");return t}get LocalStorageProvider(){return this._localStorageProvider||(this._localStorageProvider=new y),this._localStorageProvider}get Metadata(){return this}PushStatusUpdates(e=null){e||(e=this.sessionId),this._wsClient||(this._wsClient=(0,l.createClient)({url:this.ConfigData.WSURL,connectionParams:{Authorization:"Bearer "+this.ConfigData.Token}}));const t=this._pushStatusRequests.find((t=>t.sessionId===e));if(t)return t.observable;const r=s.gql`subscription StatusUpdates($sessionId: String!) {
|
|
147
|
+
statusUpdates(sessionId: $sessionId) {
|
|
148
|
+
date
|
|
149
|
+
message
|
|
150
|
+
sessionId
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
`,n=new u.Observable((t=>(this._wsClient.subscribe({query:r,variables:{sessionId:e}},{next:e=>t.next(e.data.statusUpdates),error:e=>t.error(e),complete:()=>t.complete()}),()=>{console.log("would unsub here")})));return this._pushStatusRequests.push({sessionId:e,observable:n}),n}}t.GraphQLDataProvider=d;class p{constructor(){this._localStorage={}}async getItem(e){return new Promise((t=>{this._localStorage.hasOwnProperty(e)?t(this._localStorage[e]):t(null)}))}async setItem(e,t){return new Promise((r=>{this._localStorage[e]=t,r()}))}async remove(e){return new Promise((t=>{this._localStorage.hasOwnProperty(e)&&delete this._localStorage[e],t()}))}}const h="Metadata_KVPairs";class y extends p{constructor(){super(),this.dbPromise=(0,a.openDB)("MJ_Metadata",1,{upgrade(e){e.objectStoreNames.contains(h)||e.createObjectStore(h)}})}async setItem(e,t){const r=(await this.dbPromise).transaction(h,"readwrite");await r.objectStore(h).put(t,e),await r.done}async getItem(e){const t=await this.dbPromise;return await t.transaction(h).objectStore(h).get(e)}async remove(e){const t=(await this.dbPromise).transaction(h,"readwrite");await t.objectStore(h).delete(e),await t.done}}},7721:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLTransactionGroup=void 0;const n=r(6655),i=r(1119);class s extends n.TransactionGroupBase{async HandleSubmit(e){let t="",r="";const s={};for(let n=0;n<e.length;n++){const i=e[n];let o=i.Instruction;if(i.Vars){const e=Object.keys(i.Vars);for(let t=0;t<e.length;t++){const a=e[t],u=`${a}_${n}`;s[u]=i.Vars[a];const l=new RegExp("\\$"+a,"g");o=o.replace(l,"$"+u);const c=i.ExtraData.mutationInputTypes.find((e=>e.varName===a))?.inputType;r+=`$${u}: ${c} \n`}}t+=`mutation_${n}: `+o+"\n"}t=`mutation TransactionGroup(${r}){ \n`+t+"\n}";const o=await i.GraphQLDataProvider.ExecuteGQL(t,s),a=[];for(let t=0;t<e.length;t++){const r=o[`mutation_${t}`],i=e[t];a.push(new n.TransactionResult(i,r,null!==r))}return a}}t.GraphQLTransactionGroup=s},1894:e=>{e.exports="object"==typeof self?self.FormData:window.FormData},8059:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ApplicationInfo=t.ApplicationEntityInfo=t.ApplicationSettingInfo=void 0;const n=r(5784);class i extends n.BaseInfo{constructor(e=null){super(),this.ApplicationName=null,this.Name=null,this.Value=null,this.Comments=null,this.CreatedAt=null,this.UpdatedAt=null,this.copyInitData(e)}}t.ApplicationSettingInfo=i;class s extends n.BaseInfo{get EntityInfo(){return this._EntityInfo}_setEntity(e){this._EntityInfo=e}constructor(e=null){super(),this.ApplicationName=null,this.EntityID=null,this.Sequence=null,this.DefaultForNewUser=null,this.Application=null,this.Entity=null,this.EntityBaseTable=null,this.EntityCodeName=null,this.EntityClassName=null,this.EntityBaseTableCodeName=null,this._EntityInfo=null,this.copyInitData(e)}}t.ApplicationEntityInfo=s;class o extends n.BaseInfo{get ApplicationEntities(){return this._ApplicationEntities}get ApplicationSettings(){return this._ApplicationSettings}constructor(e=null,t){if(super(),this.Name=null,this.Description=null,this._ApplicationEntities=[],this._ApplicationSettings=[],this.copyInitData(e),e){let r=e.ApplicationEntities||e._ApplicationEntities;if(r){const e=t.Entities;this._ApplicationEntities=[];for(let t=0;t<r.length;t++){const n=new s(r[t]);this._ApplicationEntities.push(n);const i=e.find((e=>e.ID==r[t].EntityID));i&&n._setEntity(i)}}let n=e.ApplicationSettings||e._ApplicationSettings;n&&(this._ApplicationSettings=n.map((e=>new i(e))))}}}t.ApplicationInfo=o},4530:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseEngine=void 0;const n=r(6239),i=r(8813),s=r(338),o=r(7848);class a extends n.BaseSingleton{constructor(){super(...arguments),this._loaded=!1,this._loadingSubject=new i.BehaviorSubject(!1)}async Load(e,t=!1,r){if(this._loadingSubject.value)return new Promise((e=>{const t=this._loadingSubject.subscribe((r=>{r||(t.unsubscribe(),e())}))}));if(!this._loaded||t){this._loadingSubject.next(!0);try{this._contextUser=r;const t=new s.RunView;for(const n of e){const e=await t.RunView({EntityName:n.EntityName,ResultType:"entity_object",ExtraFilter:n.Filter,OrderBy:n.OrderBy},r);e.Success&&(this[n.PropertyName]=e.Results)}await this.AdditionalLoading(r),this._loaded=!0}catch(e){(0,o.LogError)(e)}finally{this._loadingSubject.next(!1)}}}async AdditionalLoading(e){}get Loaded(){return this._loaded}get LoadingSubject(){return this._loadingSubject}get ContextUser(){return this._contextUser}TryThrowIfNotLoaded(){if(!this.Loaded)throw new Error("Data not loaded, call Config() first.")}}t.BaseEngine=a},5879:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseEntity=t.BaseEntityEvent=t.BaseEntityResult=t.BaseEntityAIActionParams=t.DataObjectParams=t.DataObjectRelatedEntityParam=t.EntityField=void 0;const n=r(6239),i=r(6466),s=r(2681),o=r(52),a=r(338),u=r(7848),l=r(887),c=r(8813);class d{get Name(){return this._entityFieldInfo.Name}get FieldType(){return this._entityFieldInfo.TSType}get SQLType(){return this._entityFieldInfo.Type}get IsPrimaryKey(){return this._entityFieldInfo.IsPrimaryKey}get NeedsQuotes(){return this._entityFieldInfo.NeedsQuotes}get CodeName(){return this._entityFieldInfo.CodeName}get IsUnique(){return this._entityFieldInfo.IsUnique}get Value(){return this._Value}get ReadOnly(){return this._entityFieldInfo.ReadOnly}get EntityFieldInfo(){return this._entityFieldInfo}set Value(e){this.ReadOnly&&!this._NeverSet||(this._Value=e,!this._NeverSet||null===e&&null===this._OldValue||(this._OldValue=e),this._NeverSet=!1)}get Dirty(){if(this.ReadOnly)return!1;{const e=null===this._OldValue||void 0===this.OldValue||Number.isNaN(this.OldValue),t=null===this.Value||void 0===this.Value||Number.isNaN(this.OldValue);if(e&&t)return!1;{let e=this._OldValue,t=this.Value;return this._OldValue instanceof Date&&(e=this._OldValue.getTime()),this.Value instanceof Date&&(t=this.Value.getTime()),e!==t}}}FormatValue(e=2,t="USD"){return this.EntityFieldInfo.FormatValue(this.Value,e,t)}Validate(){const e=this._entityFieldInfo,t=new i.ValidationResult;return t.Success=!0,e.ReadOnly||e.SkipValidation||(e.AllowsNull||null!==this.Value&&void 0!==this.Value||(null===e.DefaultValue||void 0===e.DefaultValue||0===e.DefaultValue.trim().length||null!==this._OldValue&&void 0!==this._OldValue)&&(t.Success=!1,t.Errors.push(new i.ValidationErrorInfo(e.Name,`${e.DisplayNameOrName} cannot be null`,null))),e.TSType==i.EntityFieldTSType.String&&e.MaxLength>0&&this.Value&&this.Value.length>e.MaxLength&&(t.Success=!1,t.Errors.push(new i.ValidationErrorInfo(e.Name,`${e.DisplayNameOrName} cannot be longer than ${e.MaxLength} characters. Current value is ${this.Value.length} characters`,this.Value))),e.TSType!=i.EntityFieldTSType.Date||null===this.Value||void 0===this.Value||this.Value instanceof Date||(t.Success=!1,t.Errors.push(new i.ValidationErrorInfo(e.Name,`${this.Value} is not a valid date for ${e.DisplayNameOrName}`,this.Value)))),t}constructor(e,t){if(this._NeverSet=!0,this._entityFieldInfo=e,t)this.Value=t;else if(e.DefaultValue){if(e.TSType===i.EntityFieldTSType.Boolean)"string"==typeof e.DefaultValue&&"1"===e.DefaultValue.trim()||"true"===e.DefaultValue.trim().toLowerCase()?this.Value=!0:this.Value=!1;else if(e.TSType===i.EntityFieldTSType.Number)this.Value=Number(e.DefaultValue);else if("uniqueidentifier"===e.Type.trim().toLowerCase())this.Value=null;else if(e.TSType===i.EntityFieldTSType.Date){if(e.DefaultValue.trim().length>0)try{const t=new Date(e.DefaultValue);if(isNaN(t.getTime()))throw new Error;this.Value=t}catch(t){if(!e.DefaultValue.trim().toLowerCase().includes("getdate()")&&!e.DefaultValue.trim().toLowerCase().includes("getutcdate()"))throw new Error(`Invalid default value for ${e.Entity}.${e.Name} of ${e.DefaultValue}. Default values for date fields must be a valid date or a getdate() type default`);this.Value=null}}else this.Value=e.DefaultValue;this._NeverSet=!0}else this.Value=null,this._NeverSet=!0}ResetOldValue(){this._OldValue=this.Value}get OldValue(){return this._OldValue}}t.EntityField=d,t.DataObjectRelatedEntityParam=class{},t.DataObjectParams=class{constructor(){this.oldValues=!1,this.omitNullValues=!0,this.omitEmptyStrings=!0,this.excludeFields=null,this.includeRelatedEntityData=!0,this.relatedEntityList=null}},t.BaseEntityAIActionParams=class{};class p{constructor(){this.OriginalValues=[],this.NewValues=[]}}t.BaseEntityResult=p,t.BaseEntityEvent=class{};class h{constructor(e){this._Fields=[],this._recordLoaded=!1,this._contextCurrentUser=null,this._transactionGroup=null,this._resultHistory=[],this._compositeKey=null,this._eventSubject=new c.Subject,this._EntityInfo=e,this.init()}RegisterEventHandler(e){return this._eventSubject.asObservable().subscribe(e)}RaiseEvent(e,t){this._eventSubject.next({type:e,payload:t,baseEntity:this})}async Config(e){this.ContextCurrentUser=e}get IsSaved(){return this.PrimaryKey.HasValue}get TransactionGroup(){return this._transactionGroup}set TransactionGroup(e){this._transactionGroup=e}get ResultHistory(){return this._resultHistory}get LatestResult(){return this._resultHistory.length>0?this._resultHistory[this._resultHistory.length-1]:null}get EntityInfo(){return this._EntityInfo}get Fields(){return this._Fields}GetFieldByName(e){return this.Fields.find((t=>t.Name.trim().toLowerCase()==e.trim().toLowerCase()))}get Dirty(){return!this.IsSaved||this.Fields.some((e=>e.Dirty))}get PrimaryKeys(){return this.EntityInfo.PrimaryKeys.map((e=>this.GetFieldByName(e.Name)))}get PrimaryKey(){return null===this._compositeKey&&(this._compositeKey=new l.CompositeKey,this._compositeKey.LoadFromEntityFields(this.PrimaryKeys)),this._compositeKey}get FirstPrimaryKey(){return this.PrimaryKeys[0]}get RecordLoaded(){return this._recordLoaded}Set(e,t){let r=this.Fields.find((t=>t.Name.trim().toLowerCase()===e.trim().toLowerCase()));null!=r&&(r.Value=t)}Get(e){let t=this.Fields.find((t=>t.Name.trim().toLowerCase()===e.trim().toLowerCase()));return null!=t?(t.EntityFieldInfo.TSType!=i.EntityFieldTSType.Date||"string"!=typeof t.Value&&"number"!=typeof t.Value||(t.Value=new Date(t.Value)),t.Value):null}SetMany(e,t=!1){if(!e)throw new Error("calling BaseEntity.SetMany(), object cannot be null or undefined");for(let r in e)if(this.Fields.some((e=>e.Name.trim().toLowerCase()==r.trim().toLowerCase())))this.Set(r,e[r]);else{const n=this.Fields.find((e=>e.CodeName.trim().toLowerCase()==r.trim().toLowerCase()));if(n)this.Set(n.Name,e[r]);else{if(!t)throw new Error(`Field ${r} does not exist on ${this.EntityInfo.Name}`);console.warn(`Field ${r} does not exist on ${this.EntityInfo.Name}, ignoring because ignoreNonExistentFields was set to true`)}}}GetAll(e=!1,t=!1){let r={};for(let n of this.Fields)(!t||t&&n.Dirty)&&(r[n.Name]=e?n.OldValue:n.Value,n.EntityFieldInfo.TSType!=i.EntityFieldTSType.Date||!r[n.Name]||r[n.Name]instanceof Date||(r[n.Name]=new Date(r[n.Name])));return r}async GetDataObjectJSON(e,t=!0){const r=await this.GetDataObject(e);return t?JSON.stringify(r):JSON.stringify(r,null,2)}async GetDataObject(e){const t=this.GetAll(e.oldValues);for(let r in t){const n=t[r];(e.omitNullValues&&null===n||e.omitEmptyStrings&&null!==n&&"string"==typeof n&&0===n.trim().length||e.excludeFields&&e.excludeFields.indexOf(r)>=0)&&delete t[r]}if(e.includeRelatedEntityData)for(let r=0;r<this._EntityInfo.RelatedEntities.length;r++){const n=this._EntityInfo.RelatedEntities[r],i=e.relatedEntityList?e.relatedEntityList.find((e=>e.relatedEntityName===n.RelatedEntity)):null;if(i){const e=await this.GetRelatedEntityDataExt(n,i.filter,i.maxRecords);if(e&&(t[n.RelatedEntity]=e,i.maxRecords>0)){let r;r=i.maxRecords<e.TotalRowCount?`Only the first ${i.maxRecords} records are included in this response. There are ${e.TotalRowCount} total records available.`:`All ${e.TotalRowCount} records are included in this response.`,t[n.RelatedEntity].Note=r,t[n.RelatedEntity].MaxRecordsFilter=i.maxRecords}}}return t}async GetRelatedEntityData(e,t=null,r=null){const n=await this.GetRelatedEntityDataExt(e,t,r);return n?.Data}async GetRelatedEntityDataExt(e,t=null,r=null){const n=i.EntityInfo.BuildRelationshipViewParams(this,e,t,r),s=new a.RunView,o=await s.RunView(n,this._contextCurrentUser);return o&&o.Success?{Data:o.Results,TotalRowCount:o.TotalRowCount}:null}init(){if(this._compositeKey=null,this._resultHistory=[],this._recordLoaded=!1,this._Fields=[],this.EntityInfo)for(let e of this.EntityInfo.Fields)this.Fields.push(new d(e))}CopyFrom(e,t=!1){try{for(let r of this.Fields)if(!r.IsPrimaryKey||t){const t=e.GetFieldByName(r.Name);t&&this.Set(r.Name,t.Value)}return!0}catch(e){return(0,u.LogError)(`Error in BaseEntity.CopyFrom: ${e}`),!1}}set ContextCurrentUser(e){this._contextCurrentUser=e}get ContextCurrentUser(){return this._contextCurrentUser}NewRecord(e){return this.init(),e&&e.KeyValuePairs.filter((e=>null!==e.Value&&void 0!==e.Value)).forEach((e=>{this.Set(e.FieldName,e.Value)})),this.RaiseEvent("new_record",null),!0}async Save(e){const t=this.ResultHistory.length,r=new p;r.StartedAt=new Date;try{const t=e||new s.EntitySaveOptions,r=this.IsSaved?i.EntityPermissionType.Update:i.EntityPermissionType.Create;if(this.CheckPermissions(r,!0),t.IgnoreDirtyState||this.Dirty){if(null==h.Provider)throw new Error("No provider set");{const e=this.Validate();if(e.Success){const e=await h.Provider.Save(this,this.ActiveUser,t);if(e){this.init(),this.SetMany(e);const t=this.LatestResult;return t&&(t.NewValues=this.Fields.map((e=>({FieldName:e.CodeName,Value:e.Value})))),this.RaiseEvent("save",null),!0}return!1}throw e}}return!0}catch(e){return t===this.ResultHistory.length&&(r.Success=!1,r.Type=this.IsSaved?"update":"create",r.Message=e.message||null,r.Errors=e.Errors||[],r.OriginalValues=this.Fields.map((e=>({FieldName:e.CodeName,Value:e.OldValue}))),r.EndedAt=new Date,this.ResultHistory.push(r)),!1}}get ActiveUser(){return this.ContextCurrentUser||o.Metadata.Provider.CurrentUser}CheckPermissions(e,t){const r=this.ActiveUser;if(!r)throw new Error("No user set - either the context user for the entity object must be set, or the Metadata.Provider.CurrentUser must be set");const n=this.EntityInfo.GetUserPermisions(r);let s=!1;switch(e){case i.EntityPermissionType.Create:s=n.CanCreate;break;case i.EntityPermissionType.Read:s=n.CanRead;break;case i.EntityPermissionType.Update:s=n.CanUpdate;break;case i.EntityPermissionType.Delete:s=n.CanDelete}return!s&&t?(this.ThrowPermissionError(r,e,null),!1):s}ThrowPermissionError(e,t,r){throw new Error(`User: ${e.Name} (ID: ${e.ID}, Email: ${e.Email}) \n Does NOT have permission to ${i.EntityPermissionType[t]} ${this.EntityInfo.Name} records.\n If you believe this is an error, please contact your system administrator.${r?"\nAdditional Information: "+r:""}}`)}Revert(){if(this.Dirty)for(let e of this.Fields)e.Value=e.OldValue;return!0}async InnerLoad(e,t=null){if(null==h.Provider)throw new Error("No provider set");{(new Date).getTime();const r=e.Validate();if(!r||!r.IsValid)throw new Error(`Invalid CompositeKey passed to BaseEntity.Load(${this.EntityInfo.Name})`);this.CheckPermissions(i.EntityPermissionType.Read,!0),this.IsSaved||this.init();const n=await h.Provider.Load(this,e,t,this.ActiveUser);if(!n)return(0,u.LogError)(`Error in BaseEntity.Load(${this.EntityInfo.Name}, Key: ${e.ToString()}`),!1;if(this.SetMany(n),t)for(let e of t)n[e]&&(this[e]=n[e]);return this._recordLoaded=!0,this._compositeKey=e,!0}}LoadFromData(e){return this.SetMany(e,!0),!0}Validate(){const e=new i.ValidationResult;e.Success=!0;for(let t of this.Fields){const r=t.Validate();r.Errors.forEach((t=>{e.Errors.push(t)})),e.Success=e.Success&&r.Success}return e}async Delete(e){const t=this.ResultHistory.length,r=new p;r.StartedAt=new Date;try{if(null==h.Provider)throw new Error("No provider set");return this.CheckPermissions(i.EntityPermissionType.Delete,!0),!!await h.Provider.Delete(this,e,this.ActiveUser)&&(this.RaiseEvent("delete",null),this.NewRecord(),!0)}catch(e){return t===this.ResultHistory.length&&(r.Success=!1,r.Type="delete",r.Message=e.message||null,r.Errors=e.Errors||[],r.OriginalValues=this.Fields.map((e=>({FieldName:e.CodeName,Value:e.OldValue}))),r.EndedAt=new Date,this.ResultHistory.push(r)),!1}}async BeforeEntityAIAction(e){return!0}async AfterEntityAIAction(e){return!0}static get Provider(){const e=n.MJGlobal.Instance.GetGlobalObjectStore();if(e)return e[h._globalProviderKey];throw new Error("No global object store, so we cant get the static provider")}static set Provider(e){const t=n.MJGlobal.Instance.GetGlobalObjectStore();if(!t)throw new Error("No global object store, so we cant set the static provider");t[h._globalProviderKey]=e}get RecordChanges(){if(this.IsSaved)return h.GetRecordChanges(this.EntityInfo.Name,this.PrimaryKey);throw new Error("Cannot get record changes for a record that has not been saved yet")}static async GetRecordChanges(e,t){if(null===h.Provider)throw new Error("No provider set");{const r=await h.Provider.GetRecordChanges(e,t);if(r){const e=[];for(let t of r)e.push(new i.RecordChange(t));return e}return[]}}}t.BaseEntity=h,h._globalProviderKey="MJ_BaseEntityProvider"},5784:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseInfo=void 0,t.BaseInfo=class{constructor(){this.ID=null}copyInitData(e){if(e){const t=Object.keys(e),r=Object.keys(this);for(let n=0;n<t.length;n++)if(r.indexOf(t[n])>=0)if("defaultvalue"===t[n].trim().toLowerCase()&&e[t[n]]){const r=e[t[n]],i=this.stripContainingParens(r),s=this.stripUnicodePrefix(i),o=this.stripSingleQuotes(s);this[t[n]]=o}else this[t[n]]=e[t[n]]}}stripUnicodePrefix(e){return e&&(e=e.trim())&&e.toUpperCase().startsWith("N")&&e.length>1&&"'"===e.charAt(1)&&"'"===e.charAt(e.length-1)?e.substring(2,e.length-1):e}stripSingleQuotes(e){if(!e)return e;const t=e.trim();return t.startsWith("'")&&t.endsWith("'")?t.substring(1,t.length-1):t}stripContainingParens(e){return e.startsWith("(")&&e.endsWith(")")?this.stripContainingParens(e.substring(1,e.length-1)):e}}},887:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompositeKey=t.FieldValueCollection=t.KeyValuePair=void 0;class r{}t.KeyValuePair=r;class n{constructor(e){if(this._field_delimiter="||",this._value_delimiter="|",e&&Array.isArray(e)&&e.length>0){let t=e[0];if(t.FieldName&&t.Value)return void(this.KeyValuePairs=e)}this.KeyValuePairs=[]}GetValueByFieldName(e){let t=this.KeyValuePairs.find((t=>t.FieldName===e));return t?t.Value:null}GetValueByIndex(e){return e>=0&&e<this.KeyValuePairs.length?this.KeyValuePairs[e].Value:null}ToString(e){return this.KeyValuePairs.map((t=>!e||null!==t.Value&&void 0!==t.Value?`${t.FieldName}=${t.Value}`:`${t.FieldName} IS NULL`)).join(" AND ")}ValuesAsString(){return this.KeyValuePairs.map((e=>({FieldName:e.FieldName,Value:e.Value?e.Value.toString():""})))}Copy(){let e=new i;return e.KeyValuePairs=this.ValuesAsString(),e}ToList(e){return this.KeyValuePairs.map((t=>e?`${t.FieldName}${e}${t.Value}`:`${t.FieldName}=${t.Value}`))}Values(e){return this.KeyValuePairs.map((e=>e.Value)).join(e||", ")}get HasValue(){return this.KeyValuePairs.some((e=>null!==e.Value&&void 0!==e.Value&&""!==e.Value))}LoadFromEntityFields(e){this.KeyValuePairs=e.map((e=>({FieldName:e.Name,Value:e.Value})))}LoadFromEntityInfoAndRecord(e,t){this.KeyValuePairs=e.PrimaryKeys.map((e=>({FieldName:e.Name,Value:t[e.Name]})))}LoadFromList(e,t){this.KeyValuePairs=e.map((e=>{let n=t?e.split(t):e.split("=");if(2===n.length){let e=new r;return e.FieldName=n[0],e.Value=n[1],e}}))}ToURLSegment(e){return this.KeyValuePairs.map((e=>`${e.FieldName}|${e.Value}`)).join(e||"||")}LoadFromURLSegment(e,t){t.includes("|")?this.SimpleLoadFromURLSegment(t):this.KeyValuePairs=[{FieldName:e.FirstPrimaryKey.Name,Value:t}]}SimpleLoadFromURLSegment(e){if(e.includes(this._value_delimiter)){const t=e.split(this._field_delimiter),r=[];for(let e of t){const t=e.split("|");r.push({FieldName:t[0],Value:t[1]})}this.KeyValuePairs=r}}LoadFromSingleKeyValuePair(e,t){this.KeyValuePairs=[{FieldName:e,Value:t}]}LoadFromSimpleObject(e){this.KeyValuePairs=Object.keys(e).map((t=>({FieldName:t,Value:e[t]})))}static FromObject(e){let t=new n;return t.LoadFromSimpleObject(e),t}}t.FieldValueCollection=n;class i extends n{Equals(e){return!!e&&this.EqualsKey(e.KeyValuePairs)}Validate(e,t=!0){try{if(!this.KeyValuePairs||0===this.KeyValuePairs.length)throw new Error("KeyValuePairs cannot be null or empty");for(let r=0;r<this.KeyValuePairs.length;r++){const n=this.KeyValuePairs[r];if(!n.FieldName||0===n.FieldName.trim().length)throw new Error(`KeyValuePairs[${r}].FieldName cannot be null, empty, or whitespace`);if(null===n.Value||void 0===n.Value)throw new Error(`KeyValuePairs[${r}].Value cannot be null or undefined`);if(e){const i=e.Fields.find((e=>e.Name.trim().toLowerCase()===n.FieldName.trim().toLowerCase()));if(!i)throw new Error(`KeyValuePairs[${r}].FieldName of ${n.FieldName} does not exist on ${e.Name}`);if(t&&!i.IsPrimaryKey)throw new Error(`KeyValuePairs[${r}].FieldName of ${n.FieldName} is not a primary key field on ${e.Name}`)}}return{IsValid:!0,ErrorMessage:null}}catch(e){return{IsValid:!1,ErrorMessage:e.message}}}EqualsKey(e){if(!e||0===e.length)return!1;if(e.length!==this.KeyValuePairs.length)return!1;for(const[t,r]of e.entries()){const e=this.KeyValuePairs[t];if(r.FieldName!==e.FieldName||r.Value!==e.Value)return!1}return!0}}t.CompositeKey=i},6466:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RecordMergeResult=t.RecordMergeDetailResult=t.RecordMergeRequest=t.RecordDependency=t.EntityDependency=t.ValidationResult=t.ValidationErrorInfo=t.ValidationErrorType=t.EntityInfo=t.EntitySettingInfo=t.EntityDocumentTypeInfo=t.EntityFieldInfo=t.GeneratedFormSectionType=t.EntityFieldValueInfo=t.EntityFieldValueListType=t.EntityFieldGraphQLType=t.EntityFieldTSType=t.EntityPermissionInfo=t.EntityUserPermissionInfo=t.EntityPermissionType=t.EntityRelationshipInfo=t.RecordChange=t.RecordChangeStatus=void 0;const n=r(5784),i=r(52),s=r(8369),o=r(7848);t.RecordChangeStatus={Pending:"Pending",Complete:"Complete",Error:"Error"};class a extends n.BaseInfo{get StatusValue(){return t.RecordChangeStatus[this.Status?.trim()]}get Changes(){return JSON.parse(this.ChangesJSON)}get FullRecord(){return JSON.parse(this.FullRecordJSON)}constructor(e){super(),this.EntityID=null,this.RecordID=null,this.ChangedAt=null,this.ChangesJSON=null,this.ChangesDescription=null,this.FullRecordJSON=null,this.Status=null,this.copyInitData(e)}}t.RecordChange=a;class u extends n.BaseInfo{constructor(e){super(),this.EntityID=null,this.Sequence=null,this.RelatedEntityID=null,this.BundleInAPI=null,this.IncludeInParentAllQuery=null,this.Type=null,this.EntityKeyField=null,this.RelatedEntityJoinField=null,this.JoinView=null,this.JoinEntityJoinField=null,this.JoinEntityInverseJoinField=null,this.DisplayInForm=null,this.DisplayName=null,this.DisplayUserViewGUID=null,this.CreatedAt=null,this.UpdatedAt=null,this.Entity=null,this.EntityBaseTable=null,this.EntityBaseView=null,this.RelatedEntity=null,this.RelatedEntityBaseTable=null,this.RelatedEntityBaseView=null,this.RelatedEntityCodeName=null,this.RelatedEntityClassName=null,this.RelatedEntityBaseTableCodeName=null,this.DisplayUserViewName=null,this.DisplayUserViewID=null,this.copyInitData(e)}}t.EntityRelationshipInfo=u,t.EntityPermissionType={Read:"Read",Create:"Create",Update:"Update",Delete:"Delete"};class l{}t.EntityUserPermissionInfo=l;class c extends n.BaseInfo{get CreateRLSFilterObject(){return this.RLSFilter(t.EntityPermissionType.Create)}get ReadRLSFilterObject(){return this.RLSFilter(t.EntityPermissionType.Read)}get UpdateRLSFilterObject(){return this.RLSFilter(t.EntityPermissionType.Update)}get DeleteRLSFilterObject(){return this.RLSFilter(t.EntityPermissionType.Delete)}RLSFilter(e){let r=0;switch(e){case t.EntityPermissionType.Read:r=this.ReadRLSFilterID;break;case t.EntityPermissionType.Create:r=this.CreateRLSFilterID;break;case t.EntityPermissionType.Update:r=this.UpdateRLSFilterID;break;case t.EntityPermissionType.Delete:r=this.DeleteRLSFilterID}if(r>0)return i.Metadata.Provider.RowLevelSecurityFilters.find((e=>e.ID===r))}constructor(e){super(),this.EntityID=null,this.RoleName=null,this.CanCreate=null,this.CanRead=null,this.CanUpdate=null,this.CanDelete=null,this.ReadRLSFilterID=null,this.CreateRLSFilterID=null,this.UpdateRLSFilterID=null,this.DeleteRLSFilterID=null,this.CreatedAt=null,this.UpdatedAt=null,this.Entity=null,this.RoleSQLName=null,this.ReadRLSFilter=null,this.CreateRLSFilter=null,this.UpdateRLSFilter=null,this.DeleteRLSFilter=null,this.copyInitData(e)}}t.EntityPermissionInfo=c,t.EntityFieldTSType={String:"string",Number:"number",Date:"Date",Boolean:"boolean"},t.EntityFieldGraphQLType={Int:"Int",Float:"Float",String:"String",Boolean:"Boolean",Timestamp:"Timestamp"},t.EntityFieldValueListType={None:"None",List:"List",ListOrUserEntry:"ListOrUserEntry"};class d extends n.BaseInfo{constructor(e){super(),this.EntityID=null,this.EntityFieldName=null,this.Sequence=null,this.Value=null,this.Code=null,this.Description=null,this.CreatedAt=null,this.UpdatedAt=null,this.copyInitData(e)}}t.EntityFieldValueInfo=d,t.GeneratedFormSectionType={Top:"Top",Details:"Details",Category:"Category"};class p extends n.BaseInfo{get EntityFieldValues(){return this._EntityFieldValues}get ValueListTypeEnum(){if(null==this.ValueListType)return t.EntityFieldValueListType.None;for(let e in t.EntityFieldValueListType)if("string"==typeof t.EntityFieldValueListType[e]&&e.toLowerCase().trim()===this.ValueListType.toLowerCase().trim())return t.EntityFieldValueListType[e]}get GeneratedFormSectionType(){return t.GeneratedFormSectionType[this.GeneratedFormSection]}get TSType(){switch((0,s.TypeScriptTypeFromSQLType)(this.Type).toLowerCase()){case"number":return t.EntityFieldTSType.Number;case"boolean":return t.EntityFieldTSType.Boolean;case"date":return t.EntityFieldTSType.Date;default:return t.EntityFieldTSType.String}}get IsBinaryFieldType(){switch(this.Type.trim().toLowerCase()){case"binary":case"varbinary":case"image":return!0;default:return!1}}get NeedsQuotes(){switch(this.TSType){case t.EntityFieldTSType.Number:case t.EntityFieldTSType.Boolean:return!1;default:return!0}}get CodeName(){return null===this._codeName&&(this._codeName=(0,s.CodeNameFromString)(this.Name)),this._codeName}get GraphQLType(){switch((0,s.TypeScriptTypeFromSQLType)(this.Type).toLowerCase()){case"number":switch(this.Type.toLowerCase().trim()){case"int":case"smallint":case"tinyint":case"bigint":return t.EntityFieldGraphQLType.Int;default:return t.EntityFieldGraphQLType.Float}case"boolean":return t.EntityFieldGraphQLType.Boolean;case"date":return t.EntityFieldGraphQLType.Timestamp;default:return t.EntityFieldGraphQLType.String}}get SQLFullType(){return(0,s.SQLFullType)(this.Type,this.Length,this.Precision,this.Scale)}get MaxLength(){return(0,s.SQLMaxLength)(this.Type,this.Length)}get ReadOnly(){return this.IsVirtual||!this.AllowUpdateAPI||this.IsPrimaryKey||"uniqueidentifier"===this.Type.toLowerCase()}get SkipValidation(){const e=this.Name.toLowerCase().trim();return"createdat"===e||"updatedat"===e||this.IsPrimaryKey||"uniqueidentifier"===this.Type.trim().toLowerCase()||!0===this.AutoIncrement||!0===this.IsVirtual||!0===this.ReadOnly}get DisplayNameOrName(){return this.DisplayName?this.DisplayName:this.Name}FormatValue(e,t=2,r="USD",n=0,i="..."){return(0,s.FormatValue)(this.Type,e,t,r,n,i)}constructor(e=null){if(super(),this.EntityID=null,this.Sequence=null,this.Name=null,this.DisplayName=null,this.Description=null,this.IsPrimaryKey=null,this.IsUnique=null,this.Category=null,this.Type=null,this.Length=null,this.Precision=null,this.Scale=null,this.AllowsNull=null,this.DefaultValue=null,this.AutoIncrement=null,this.ValueListType=null,this.ExtendedType=null,this.DefaultInView=null,this.ViewCellTemplate=null,this.DefaultColumnWidth=null,this.AllowUpdateAPI=null,this.AllowUpdateInView=null,this.IncludeInUserSearchAPI=null,this.FullTextSearchEnabled=!1,this.UserSearchParamFormatAPI=null,this.IncludeInGeneratedForm=null,this.GeneratedFormSection=null,this.IsVirtual=null,this.IsNameField=null,this.RelatedEntityID=null,this.RelatedEntityFieldName=null,this.IncludeRelatedEntityNameFieldInBaseView=null,this.RelatedEntityNameFieldMap=null,this.CreatedAt=null,this.UpdatedAt=null,this.Entity=null,this.SchemaName=null,this.BaseTable=null,this.BaseView=null,this.EntityCodeName=null,this.EntityClassName=null,this.RelatedEntity=null,this.RelatedEntitySchemaName=null,this.RelatedEntityBaseTable=null,this.RelatedEntityBaseView=null,this.RelatedEntityCodeName=null,this.RelatedEntityClassName=null,this._codeName=null,e){this.copyInitData(e),this._EntityFieldValues=[];const t=e.EntityFieldValues||e._EntityFieldValues;if(t)for(let e=0;e<t.length;e++)this._EntityFieldValues.push(new d(t[e]))}}}t.EntityFieldInfo=p;class h extends n.BaseInfo{constructor(e=null){super(),this.Name=null,this.Description=null,this.CreatedAt=null,this.UpdatedAt=null,this.copyInitData(e)}}t.EntityDocumentTypeInfo=h;class y extends n.BaseInfo{constructor(e=null){super(),this.EntityID=null,this.Name=null,this.Value=null,this.Comments=null,this.CreatedAt=null,this.UpdatedAt=null,this.copyInitData(e)}}t.EntitySettingInfo=y;class f extends n.BaseInfo{get FirstPrimaryKey(){return this.Fields.find((e=>e.IsPrimaryKey))}get PrimaryKeys(){return this.Fields.filter((e=>e.IsPrimaryKey))}get UniqueKeys(){return this.Fields.filter((e=>e.IsUnique))}get ForeignKeys(){return this.Fields.filter((e=>e.RelatedEntityID>0))}get Fields(){return this._Fields}get RelatedEntities(){return this._RelatedEntities}get Permissions(){return this._Permissions}get Settings(){return this._Settings}get DisplayName(){return this.BaseTable.replace(/([A-Z])/g," $1").trim()}get NameField(){for(let e=0;e<this.Fields.length;e++){const t=this.Fields[e];if(t.IsNameField)return t}return this.Fields.find((e=>"name"===e.Name.toLowerCase()))}GetUserPermisions(e){try{const t=[];for(let r=0;r<this.Permissions.length;r++){const n=this.Permissions[r];e.UserRoles.find((e=>e.RoleName.trim().toLowerCase()===n.RoleName.trim().toLowerCase()))&&t.push(n)}const r=new l;r.CanCreate=!1,r.CanDelete=!1,r.CanRead=!1,r.CanUpdate=!1;for(let e=0;e<t.length;e++){const n=t[e];r.CanCreate=r.CanCreate||n.CanCreate,r.CanRead=r.CanRead||n.CanRead,r.CanUpdate=r.CanUpdate||n.CanUpdate,r.CanDelete=r.CanDelete||n.CanDelete}return r.Entity=this,r.User=e,r}catch(e){return console.log(e),null}}UserExemptFromRowLevelSecurity(e,r){for(let n=0;n<this.Permissions.length;n++){const i=this.Permissions[n];if(e.UserRoles.find((e=>e.RoleName.trim().toLowerCase()===i.RoleName.trim().toLowerCase())))switch(r){case t.EntityPermissionType.Create:if(!i.CreateRLSFilterID)return!0;break;case t.EntityPermissionType.Read:if(!i.ReadRLSFilterID)return!0;break;case t.EntityPermissionType.Update:if(!i.UpdateRLSFilterID)return!0;break;case t.EntityPermissionType.Delete:if(!i.DeleteRLSFilterID)return!0}}return!1}GetUserRowLevelSecurityInfo(e,r){const n=[];for(let i=0;i<this.Permissions.length;i++){const s=this.Permissions[i];if(e.UserRoles.find((e=>e.RoleName.trim().toLowerCase()===s.RoleName.trim().toLowerCase()))){let e=null;switch(r){case t.EntityPermissionType.Create:s.CreateRLSFilterID&&(e=s.CreateRLSFilterObject);break;case t.EntityPermissionType.Read:s.ReadRLSFilterID&&(e=s.ReadRLSFilterObject);break;case t.EntityPermissionType.Update:s.UpdateRLSFilterID&&(e=s.UpdateRLSFilterObject);break;case t.EntityPermissionType.Delete:s.DeleteRLSFilterID&&(e=s.DeleteRLSFilterObject)}e&&(n.find((t=>t.ID===e.ID))||n.push(e))}}return n}GetUserRowLevelSecurityWhereClause(e,t,r){const n=this.GetUserRowLevelSecurityInfo(e,t);if(n&&n.length>0){let t="";return n.forEach((r=>{t.length>0&&(t+=" OR "),t+=`(${r.MarkupFilterText(e)})`})),t.length>0?`${r&&r.length>0?r+" ":""}${t}`:""}return""}static BuildRelationshipViewParams(e,t,r,n){const i={};let s="",o="";if(t.EntityKeyField&&t.EntityKeyField.length>0)o=e.Get(t.EntityKeyField),s=e.EntityInfo.Fields.find((e=>e.Name.trim().toLowerCase()===t.EntityKeyField.trim().toLowerCase())).NeedsQuotes?"'":"";else{const t=e.FirstPrimaryKey;o=t.Value,s=t.NeedsQuotes?"'":""}return"one to many"===t.Type.trim().toLowerCase()?i.ExtraFilter=`[${t.RelatedEntityJoinField}] = ${s}${o}${s}`:i.ExtraFilter=`[${t.RelatedEntityJoinField}] IN (SELECT [${t.JoinEntityInverseJoinField}] FROM [${t.JoinView}] WHERE [${t.JoinEntityJoinField}] = ${s}${o}${s})`,r&&r.length>0&&(i.ExtraFilter=`(${i.ExtraFilter}) AND (${r})`),t.DisplayUserViewGUID&&t.DisplayUserViewGUID.length>0?i.ViewID=t.DisplayUserViewID:i.EntityName=t.RelatedEntity,n&&n>0&&(i.MaxRows=n),i}static BuildRelationshipNewRecordValues(e,t){const r={};if(e&&t){const n=t.EntityKeyField&&t.EntityKeyField.trim().length>0?t.EntityKeyField:e.FirstPrimaryKey.Name;r[t.RelatedEntityJoinField]=e.Get(n)}return r}constructor(e=null){if(super(),this.ParentID=null,this.Name=null,this.Description=null,this.BaseTable=null,this.BaseView=null,this.BaseViewGenerated=null,this.SchemaName=null,this.VirtualEntity=null,this.TrackRecordChanges=null,this.AuditRecordAccess=null,this.AuditViewRuns=null,this.IncludeInAPI=!1,this.AllowAllRowsAPI=!1,this.AllowUpdateAPI=!1,this.AllowCreateAPI=!1,this.AllowDeleteAPI=!1,this.CustomResolverAPI=!1,this.AllowUserSearchAPI=!1,this.FullTextSearchEnabled=!1,this.FullTextCatalog=null,this.FullTextCatalogGenerated=!0,this.FullTextIndex=null,this.FullTextIndexGenerated=!0,this.FullTextSearchFunction=null,this.FullTextSearchFunctionGenerated=!0,this.UserViewMaxRows=null,this.spCreate=null,this.spUpdate=null,this.spDelete=null,this.spCreateGenerated=null,this.spUpdateGenerated=null,this.spDeleteGenerated=null,this.CascadeDeletes=null,this.UserFormGenerated=null,this.EntityObjectSubclassName=null,this.EntityObjectSubclassImport=null,this.PreferredCommunicationField=null,this.CreatedAt=null,this.UpdatedAt=null,this.CodeName=null,this.ClassName=null,this.BaseTableCodeName=null,this.ParentEntity=null,this.ParentBaseTable=null,this.ParentBaseView=null,this._hasIdField=!1,this._virtualCount=0,this._manyToManyCount=0,this._oneToManyCount=0,this._floatCount=0,e){this.copyInitData(e),this._Fields=[];const t=e.EntityFields||e._Fields;if(t)for(let e=0;e<t.length;e++)this._Fields.push(new p(t[e]));this._Permissions=[];const r=e.EntityPermissions||e._Permissions;if(r)for(let e=0;e<r.length;e++)this._Permissions.push(new c(r[e]));this._Settings=[];const n=e.EntitySettings||e._Settings;n&&n.map((e=>this._Settings.push(new y(e)))),this._RelatedEntities=[];const i=e.EntityRelationships||e._RelatedEntities;if(i){let e=!1;for(const t of i)if(null!==t.Sequence&&void 0!==t.Sequence&&0!==t.Sequence){e=!0;break}e&&i.sort(((e,t)=>(null!==e.Sequence&&void 0!==e.Sequence?e.Sequence:999999)-(null!==t.Sequence&&void 0!==t.Sequence?t.Sequence:999999)));for(let e=0;e<i.length;e++)this._RelatedEntities.push(new u(i[e]))}this.prepareSpecialFields()}}prepareSpecialFields(){try{let e=0,t=0,r=0,n=0,i=!1;for(let t=0;t<this.Fields.length;++t){const r=this.Fields[t];"ID"===r.Name.trim().toUpperCase()&&(i=!0),e+=r.IsVirtual?1:0,n+=r.IsFloat?1:0}this._hasIdField=i,this._floatCount=n,this._virtualCount=e;for(let e=0;e<this.RelatedEntities.length;++e)"ONE TO MANY"===this.RelatedEntities[e].Type.trim().toUpperCase()?r++:t++;this._manyToManyCount=t,this._oneToManyCount=r}catch(e){(0,o.LogError)(e)}}}t.EntityInfo=f,t.ValidationErrorType={Failure:"Failure",Warning:"Warning"},t.ValidationErrorInfo=class{constructor(e,r,n,i=t.ValidationErrorType.Failure){this.Source=e,this.Message=r,this.Value=n,this.Type=i}},t.ValidationResult=class{constructor(){this.Errors=[]}},t.EntityDependency=class{},t.RecordDependency=class{},t.RecordMergeRequest=class{},t.RecordMergeDetailResult=class{},t.RecordMergeResult=class{}},2681:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EntityRecordNameResult=t.EntityRecordNameInput=t.EntityDeleteOptions=t.EntitySaveOptions=t.PotentialDuplicateResponse=t.PotentialDuplicateResult=t.PotentialDuplicateRequest=t.PotentialDuplicate=t.ProviderType=t.MetadataInfo=t.ProviderConfigDataBase=void 0;const n=r(887);t.ProviderConfigDataBase=class{get Data(){return this._data}get IncludeSchemas(){return this._includeSchemas}get MJCoreSchemaName(){return this._MJCoreSchemaName}get ExcludeSchemas(){return this._excludeSchemas}constructor(e,t="__mj",r,n){this._includeSchemas=[],this._excludeSchemas=[],this._MJCoreSchemaName="__mj",this._data=e,this._MJCoreSchemaName=t,r&&(this._includeSchemas=r),n&&(this._excludeSchemas=n)}},t.MetadataInfo=class{},t.ProviderType={Database:"Database",Network:"Network"};class i extends n.CompositeKey{}t.PotentialDuplicate=i,t.PotentialDuplicateRequest=class{},t.PotentialDuplicateResult=class{},t.PotentialDuplicateResponse=class{},t.EntitySaveOptions=class{constructor(){this.IgnoreDirtyState=!1,this.SkipEntityAIActions=!1,this.SkipEntityActions=!1}},t.EntityDeleteOptions=class{constructor(){this.SkipEntityAIActions=!1,this.SkipEntityActions=!1}},t.EntityRecordNameInput=class{},t.EntityRecordNameResult=class{}},4710:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LibraryInfo=void 0;const n=r(5784);class i extends n.BaseInfo{get ExportItemsArray(){return!this._exportItemsArray&&this.ExportedItems&&this.ExportedItems.length>0?this._exportItemsArray=this.ExportedItems.split(",").map((e=>e.trim())):this._exportItemsArray=[],this._exportItemsArray}constructor(e=null){super(),this.Name=null,this.Description=null,this.Status=null,this.ExportedItems=null,this.TypeDefinitions=null,this.SampleCode=null,this.CreatedAt=null,this.UpdatedAt=null,this._exportItemsArray=null,e&&this.copyInitData(e)}}t.LibraryInfo=i},7848:(__unused_webpack_module,exports)=>{"use strict";let fs;if(Object.defineProperty(exports,"__esModule",{value:!0}),exports.colors=exports.SeverityType=exports.FormatFileMessage=exports.FormatConsoleMessage=exports.SetProductionStatus=exports.GetProductionStatus=exports.LogStatus=exports.LogError=void 0,runningOnNode())try{fs=eval("require('fs')")}catch(e){}function LogError(e,t=null,...r){null!=t&&t.length>=0?logToFile(e,!0,t,...r):logToConsole(e,!0,...r)}function LogStatus(e,t=null,...r){null!=t&&t.length>=0?logToFile(e,!1,t,...r):logToConsole(e,!1,...r)}function logToConsole(e,t,...r){t?console.error(e,...r):GetProductionStatus()||console.log(e,...r)}function logToFile(e,t,r,...n){null==fs?(console.error("Attempting to log to file, but fs module is not available, logging to console instead"),logToConsole(e,t,...n)):fs.appendFileSync(r,`${t?"ERROR":"STATUS"} (${new Date}: ${e}${n&&n.length>0&&n.join("").length>0?"\n ARGS"+n.join("\n "):""}\n`)}exports.LogError=LogError,exports.LogStatus=LogStatus;let _productionStatus=null;function GetProductionStatus(){return _productionStatus||!!runningOnNode()||!runningInBrowser()&&void 0}function SetProductionStatus(e){_productionStatus=e}function runningInBrowser(){return"undefined"!=typeof window&&null!==window.location}function runningOnNode(){return"undefined"!=typeof process&&null!==process.versions&&null!==process.versions.node}function FormatConsoleMessage(e,t){switch(t){case"Trace":case"Debug":case"Info":return`${exports.colors.fg.white}${e}${exports.colors.reset}`;case"Warning":return`${exports.colors.fg.yellow}${e}${exports.colors.reset}`;case"Critical":return`${exports.colors.fg.red}${e}${exports.colors.reset}`;default:return e}}function FormatFileMessage(e,t){switch(t){case"Trace":return`[Trace] ${e}`;case"Debug":return`[Debug] ${e}`;case"Info":return`[Info] ${e}`;case"Warning":return`[Warning] ${e}`;case"Critical":return`[Critical] ${e}`;default:return e}}exports.GetProductionStatus=GetProductionStatus,exports.SetProductionStatus=SetProductionStatus,exports.FormatConsoleMessage=FormatConsoleMessage,exports.FormatFileMessage=FormatFileMessage,exports.SeverityType={Trace:"Trace",Debug:"Debug",Info:"Info",Warning:"Warning",Critical:"Critical"},exports.colors={reset:"[0m",bright:"[1m",dim:"[2m",underscore:"[4m",blink:"[5m",reverse:"[7m",hidden:"[8m",fg:{black:"[30m",red:"[31m",green:"[32m",yellow:"[33m",blue:"[34m",magenta:"[35m",cyan:"[36m",white:"[37m",gray:"[90m",crimson:"[38m"},bg:{black:"[40m",red:"[41m",green:"[42m",yellow:"[43m",blue:"[44m",magenta:"[45m",cyan:"[46m",white:"[47m",gray:"[100m",crimson:"[48m"}}},52:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;const n=r(6239),i=r(7848);class s{static get Provider(){const e=n.MJGlobal.Instance.GetGlobalObjectStore();if(e)return e[s._globalProviderKey];throw new Error("No global object store, so we cant get the static provider")}static set Provider(e){const t=n.MJGlobal.Instance.GetGlobalObjectStore();if(!t)throw new Error("No global object store, so we cant set the static provider");t[s._globalProviderKey]=e}async Refresh(){return await s.Provider.Refresh()}get ProviderType(){return s.Provider.ProviderType}get Applications(){return s.Provider.Applications}get Entities(){return s.Provider.Entities}EntityByName(e){return this.Entities.find((t=>t.Name.toLowerCase().trim()===e.toLowerCase().trim()))}EntityByID(e){return this.Entities.find((t=>t.ID===e))}get Queries(){return s.Provider.Queries}get QueryFields(){return s.Provider.QueryFields}get QueryCategories(){return s.Provider.QueryCategories}get QueryPermissions(){return s.Provider.QueryPermissions}get CurrentUser(){return s.Provider.CurrentUser}get Roles(){return s.Provider.Roles}get AuditLogTypes(){return s.Provider.AuditLogTypes}get Authorizations(){return s.Provider.Authorizations}get Libraries(){return s.Provider.Libraries}EntityIDFromName(e){let t=this.Entities.find((t=>t.Name==e));if(null!=t)return t.ID;throw new Error(`Entity ${e} not found`)}EntityNameFromID(e){let t=this.Entities.find((t=>t.ID==e));return t?t.Name:((0,i.LogError)(`Entity ID: ${e} not found`),null)}EntityFromEntityID(e){return this.Entities.find((t=>t.ID==e))||((0,i.LogError)(`Entity ID: ${e} not found`),null)}async GetRecordFavoriteStatus(e,t,r){return await s.Provider.GetRecordFavoriteStatus(e,t,r)}async SetRecordFavoriteStatus(e,t,r,n,i=null){await s.Provider.SetRecordFavoriteStatus(e,t,r,n,i)}async GetRecordDependencies(e,t){return await s.Provider.GetRecordDependencies(e,t)}async GetRecordDuplicates(e,t){return await s.Provider.GetRecordDuplicates(e,t)}async GetEntityDependencies(e){return await s.Provider.GetEntityDependencies(e)}async MergeRecords(e,t){return await s.Provider.MergeRecords(e,t)}async GetEntityObject(e,t=null){return await s.Provider.GetEntityObject(e,t)}async GetEntityRecordName(e,t){let r=t.Validate();if(!r.IsValid)throw new Error(r.ErrorMessage);return await s.Provider.GetEntityRecordName(e,t)}async GetEntityRecordNames(e){for(let t=0;t<e.length;t++){if(!e[t].CompositeKey.KeyValuePairs||0==e[t].CompositeKey.KeyValuePairs.length)throw new Error("GetEntityRecordNames: KeyValuePairs cannot be null or empty. It is for item "+t.toString()+" in the input array.");for(let r=0;r<e[t].CompositeKey.KeyValuePairs.length;r++)if(!e[t].CompositeKey.KeyValuePairs[r]||!e[t].CompositeKey.KeyValuePairs[r].Value)throw new Error("GetEntityRecordNames: KeyValuePairs cannot contain null values. FieldName: "+e[t].CompositeKey.KeyValuePairs[r]?.FieldName)}return await s.Provider.GetEntityRecordNames(e)}async CreateTransactionGroup(){return await s.Provider.CreateTransactionGroup()}async SaveLocalMetadataToStorage(){await s.Provider.SaveLocalMetadataToStorage()}async RemoveLocalMetadataFromStorage(){await s.Provider.RemoveLocalMetadataFromStorage()}get LocalStorageProvider(){return s.Provider.LocalStorageProvider}async GetDatasetStatusByName(e,t){return s.Provider.GetDatasetStatusByName(e,t)}async GetDatasetByName(e,t){return s.Provider.GetDatasetByName(e,t)}async GetAndCacheDatasetByName(e,t){return s.Provider.GetAndCacheDatasetByName(e,t)}async IsDatasetCacheUpToDate(e,t){return s.Provider.IsDatasetCacheUpToDate(e,t)}async GetCachedDataset(e,t){return s.Provider.GetCachedDataset(e,t)}async CacheDataset(e,t,r){return s.Provider.CacheDataset(e,t,r)}async IsDatasetCached(e,t){return s.Provider.IsDatasetCached(e,t)}GetDatasetCacheKey(e,t){return s.Provider.GetDatasetCacheKey(e,t)}async ClearDatasetCache(e,t){return s.Provider.ClearDatasetCache(e,t)}get ConfigData(){return s.Provider.ConfigData}}t.Metadata=s,s._globalProviderKey="MJ_MetadataProvider"},2517:(e,t,r)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ProviderBase=t.AllMetadataArrays=t.AllMetadata=void 0;const i=r(5879),s=r(6466),o=r(8059),a=r(7751),u=r(6239),l=r(7848),c=r(6769),d=r(4710);class p{constructor(){this.CurrentUser=null,this.AllEntities=[],this.AllApplications=[],this.AllRoles=[],this.AllRowLevelSecurityFilters=[],this.AllAuditLogTypes=[],this.AllAuthorizations=[],this.AllQueryCategories=[],this.AllQueries=[],this.AllQueryFields=[],this.AllQueryPermissions=[],this.AllEntityDocumentTypes=[],this.AllLibraries=[]}static FromSimpleObject(e,r){try{const n=new p;n.CurrentUser=e.CurrentUser?new a.UserInfo(r,e.CurrentUser):null;for(let i of t.AllMetadataArrays)e.hasOwnProperty(i.key)&&(n[i.key]=e[i.key].map((e=>new i.class(e,r))));return n}catch(e){(0,l.LogError)(e)}}}t.AllMetadata=p,t.AllMetadataArrays=[{key:"AllEntities",class:s.EntityInfo},{key:"AllApplications",class:o.ApplicationInfo},{key:"AllRoles",class:a.RoleInfo},{key:"AllRowLevelSecurityFilters",class:a.RowLevelSecurityFilterInfo},{key:"AllAuditLogTypes",class:a.AuditLogTypeInfo},{key:"AllAuthorizations",class:a.AuthorizationInfo},{key:"AllQueryCategories",class:c.QueryCategoryInfo},{key:"AllQueries",class:c.QueryInfo},{key:"AllQueryFields",class:c.QueryFieldInfo},{key:"AllQueryPermissions",class:c.QueryPermissionInfo},{key:"AllEntityDocumentTypes",class:s.EntityDocumentTypeInfo},{key:"AllLibraries",class:d.LibraryInfo}];class h{constructor(){this._localMetadata=new p,this._refresh=!1}async Config(e){if(this._ConfigData=e,this._localMetadata=new p,this._refresh||await this.CheckToSeeIfRefreshNeeded()){this._refresh=!1;const e=(new Date).getTime(),t=await this.GetAllMetadata(),r=(new Date).getTime();(0,l.LogStatus)(`GetAllMetadata() took ${r-e} ms`),t&&(this.UpdateLocalMetadata(t),this._latestLocalMetadataTimestamps=this._latestRemoteMetadataTimestamps,await this.SaveLocalMetadataToStorage())}return!0}BuildDatasetFilterFromConfig(){const e=[],t=this.ConfigData.IncludeSchemas,r=this.ConfigData.ExcludeSchemas,n=this.ConfigData.MJCoreSchemaName;if(t&&t.length>0&&-1===t.indexOf(n)&&t.push(n),r&&r.length>0&&-1!==r.indexOf(n)){const e=r.indexOf(n);r.splice(e,1),(0,l.LogStatus)(`Removed MJ Core schema (${n}) from ExcludeSchemas list because it is required for the API to function correctly`)}let i="";return t&&t.length>0&&(i="SchemaName IN ("+t.map((e=>`'${e}'`)).join(",")+")"),r&&r.length>0&&(i=(i.length>0?" AND ":"")+"SchemaName NOT IN ("+r.map((e=>`'${e}'`)).join(",")+")"),i.length>0&&(e.push({ItemCode:"Entities",Filter:i}),e.push({ItemCode:"EntityFields",Filter:i})),e}async GetAllMetadata(){try{const e=this.BuildDatasetFilterFromConfig(),r=await this.GetDatasetByName(n._mjMetadataDatasetName,e.length>0?e:null);if(r&&r.Success){const e={};for(let t of r.Results)e[t.Code]=t.Results;e.AllEntities=this.PostProcessEntityMetadata(e.Entities,e.EntityFields,e.EntityFieldValues,e.EntityPermissions,e.EntityRelationships,e.EntitySettings),e.AllApplications=e.Applications.map((t=>(t.ApplicationEntities=e.ApplicationEntities.filter((e=>e.ApplicationName.trim().toLowerCase()===t.Name.trim().toLowerCase())),t.ApplicationSettings=e.ApplicationSettings.filter((e=>e.ApplicationName.trim().toLowerCase()===t.Name.trim().toLowerCase())),new o.ApplicationInfo(t,this))));const n=new p;n.CurrentUser=await this.GetCurrentUser();for(let r of t.AllMetadataArrays){let t=r.key;e.hasOwnProperty(t)||(t=t.substring(3)),e.hasOwnProperty(t)&&(n[r.key]=e[t].map((e=>new r.class(e,this))))}return n}(0,l.LogError)("GetAllMetadata() - Error getting metadata from server"+(r?": "+r.Status:""))}catch(e){(0,l.LogError)(e)}}PostProcessEntityMetadata(e,t,r,n,i,o){const a=[];if(r&&r.length>0)for(let e of t)e.EntityFieldValues=r.filter((t=>t.EntityID===e.EntityID&&t.EntityFieldName.trim().toLowerCase()===e.Name.trim().toLowerCase()));for(let r of e)r.EntityFields=t.filter((e=>e.EntityID===r.ID)).sort(((e,t)=>e.Sequence-t.Sequence)),r.EntityPermissions=n.filter((e=>e.EntityID===r.ID)),r.EntityRelationships=i.filter((e=>e.EntityID===r.ID)),r.EntitySettings=o.filter((e=>e.EntityID===r.ID)),a.push(new s.EntityInfo(r));return a}get ConfigData(){return this._ConfigData}get Entities(){return this._localMetadata.AllEntities}get Applications(){return this._localMetadata.AllApplications}get CurrentUser(){return this._localMetadata.CurrentUser}get Roles(){return this._localMetadata.AllRoles}get RowLevelSecurityFilters(){return this._localMetadata.AllRowLevelSecurityFilters}get AuditLogTypes(){return this._localMetadata.AllAuditLogTypes}get Authorizations(){return this._localMetadata.AllAuthorizations}get Queries(){return this._localMetadata.AllQueries}get QueryCategories(){return this._localMetadata.AllQueryCategories}get QueryFields(){return this._localMetadata.AllQueryFields}get QueryPermissions(){return this._localMetadata.AllQueryPermissions}get Libraries(){return this._localMetadata.AllLibraries}async Refresh(){return!this.AllowRefresh||(this._refresh=!0,this.Config(this._ConfigData))}async CheckToSeeIfRefreshNeeded(){return!!this.AllowRefresh&&(await this.RefreshRemoteMetadataTimestamps(),await this.LoadLocalMetadataFromStorage(),this.LocalMetadataObsolete())}async RefreshIfNeeded(){return!await this.CheckToSeeIfRefreshNeeded()||this.Refresh()}async GetEntityObject(e,t=null){try{const r=this.Metadata.Entities.find((t=>t.Name==e));if(!r)throw new Error(`Entity ${e} not found in metadata`);try{const n=u.MJGlobal.Instance.ClassFactory.CreateInstance(i.BaseEntity,e,r);return await n.Config(t),n}catch(t){throw(0,l.LogError)(t),new Error(`Entity ${e} could not be instantiated via MJGlobal Class Factory. Make sure you have registered the class reference with MJGlobal.Instance.ClassFactory.Register(). ALSO, make sure you call LoadGeneratedEntities() from the GeneratedEntities project within your project as tree-shaking sometimes removes subclasses and could be causing this error!`)}}catch(e){return(0,l.LogError)(e),null}}async GetEntityDependencies(e){try{const t=e.trim().toLowerCase(),r=[];for(let n of this.Entities)n.Fields.filter((e=>e.RelatedEntity?.trim().toLowerCase()===t)).map((t=>{r.push({EntityName:e,RelatedEntityName:n.Name,FieldName:t.Name})}));return r}catch(e){throw(0,l.LogError)(e),e}}async GetAndCacheDatasetByName(e,t){if(await this.IsDatasetCached(e,t)){if(await this.IsDatasetCacheUpToDate(e,t))return this.GetCachedDataset(e,t);{const r=await this.GetDatasetByName(e,t);return await this.CacheDataset(e,t,r),r}}{const r=await this.GetDatasetByName(e,t);return await this.CacheDataset(e,t,r),r}}async IsDatasetCacheUpToDate(e,t){const r=this.LocalStorageProvider;if(r){const n=this.GetDatasetCacheKey(e,t)+"_date",i=await r.getItem(n);if(i){const r=await this.GetDatasetStatusByName(e,t);if(r){const e=r.LatestUpdateDate.getTime();return new Date(i).getTime()>=e}return!1}return!1}}async GetCachedDataset(e,t){const r=this.LocalStorageProvider;if(r){const n=this.GetDatasetCacheKey(e,t),i=await r.getItem(n);if(i)return JSON.parse(i)}}async CacheDataset(e,t,r){const n=this.LocalStorageProvider;if(n){const i=this.GetDatasetCacheKey(e,t),s=JSON.stringify(r);await n.setItem(i,s);const o=i+"_date",a=r.LatestUpdateDate.toISOString();await n.setItem(o,a)}}async IsDatasetCached(e,t){const r=this.LocalStorageProvider;if(r){const n=this.GetDatasetCacheKey(e,t);return null!=await r.getItem(n)}}GetDatasetCacheKey(e,t){return n.localStorageRootKey+"__DATASET__"+e+this.ConvertItemFiltersToUniqueKey(t)}ConvertItemFiltersToUniqueKey(e){return e?"{"+e.map((e=>`"${e.ItemCode}":"${e.Filter}"`)).join(",")+"}":""}async ClearDatasetCache(e,t){const r=this.LocalStorageProvider;if(r){const n=this.GetDatasetCacheKey(e,t);await r.remove(n);const i=n+"_date";await r.remove(i)}}get LatestRemoteMetadata(){return this._latestRemoteMetadataTimestamps}get LatestLocalMetadata(){return this._latestLocalMetadataTimestamps}async GetLatestMetadataUpdates(){const e=this.BuildDatasetFilterFromConfig(),t=await this.GetDatasetStatusByName(n._mjMetadataDatasetName,e.length>0?e:null);if(t&&t.Success){const e=t.EntityUpdateDates.map((e=>({ID:e.EntityID,Type:e.EntityName,UpdatedAt:e.UpdateDate})));return e.push({ID:-1,Type:"All Entity Metadata",UpdatedAt:t.LatestUpdateDate}),e}}async RefreshRemoteMetadataTimestamps(){const e=await this.GetLatestMetadataUpdates();return!!e&&(this._latestRemoteMetadataTimestamps=e,!0)}LocalMetadataObsolete(e){const t=this.LatestLocalMetadata,r=this.LatestRemoteMetadata;if(!(t&&r&&t.length&&r.length&&0!==t.length&&0!==r.length))return!0;for(let n=0;n<r.length;++n){let i=!0;if(e&&e.length>0&&(i=r[n].Type.toLowerCase().trim()===e.trim().toLowerCase()),i){const e=t.find((e=>e.Type.trim().toLowerCase()===r[n].Type.trim().toLowerCase()));if(!e)return!0;if(e.UpdatedAt||r[n].UpdatedAt){if(!e.UpdatedAt||!r[n].UpdatedAt)return!0;{const t=new Date(e.UpdatedAt),i=new Date(r[n].UpdatedAt);if(t.getTime()!==i.getTime())return!0}}}}return!1}UpdateLocalMetadata(e){this._localMetadata=e}async LoadLocalMetadataFromStorage(){try{const e=this.LocalStorageProvider;if(e){this._latestLocalMetadataTimestamps=JSON.parse(await e.getItem(n.localStorageTimestampsKey));const t=JSON.parse(await e.getItem(n.localStorageAllMetadataKey));if(t){const e=p.FromSimpleObject(t,this);this.UpdateLocalMetadata(e)}}}catch(e){}}async SaveLocalMetadataToStorage(){try{const e=this.LocalStorageProvider;e&&(await e.setItem(n.localStorageTimestampsKey,JSON.stringify(this._latestLocalMetadataTimestamps)),await e.setItem(n.localStorageAllMetadataKey,JSON.stringify(this._localMetadata)))}catch(e){(0,l.LogError)(e)}}async RemoveLocalMetadataFromStorage(){try{const e=this.LocalStorageProvider;for(let t=0;t<n.localStorageKeys.length;t++)await e.remove(n.localStorageKeys[t])}catch(e){(0,l.LogError)(e)}}}t.ProviderBase=h,n=h,h._mjMetadataDatasetName="MJ_Metadata",h.localStorageRootKey="___MJCore_Metadata",h.localStorageTimestampsKey=n.localStorageRootKey+"_Timestamps",h.localStorageAllMetadataKey=n.localStorageRootKey+"_AllMetadata",h.localStorageKeys=[n.localStorageTimestampsKey,n.localStorageAllMetadataKey]},6769:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryPermissionInfo=t.QueryFieldInfo=t.QueryCategoryInfo=t.QueryInfo=void 0;const n=r(5784),i=r(52);class s extends n.BaseInfo{get Fields(){return null===this._fields&&(this._fields=i.Metadata.Provider.QueryFields.filter((e=>e.QueryID===this.ID))),this._fields}get Permissions(){return i.Metadata.Provider.QueryPermissions.filter((e=>e.QueryID===this.ID))}constructor(e=null){if(super(),this.Name=null,this.Description=null,this.CategoryID=null,this.SQL=null,this.OriginalSQL=null,this.Feedback=null,this.Status=null,this.QualityRank=null,this.CreatedAt=null,this.UpdatedAt=null,this.Category=null,this._fields=null,e){this.copyInitData(e),this._fields=[];const t=e.Fields||e._Fields;if(t)for(let e=0;e<t.length;e++)this._fields.push(new a(t))}}get CategoryInfo(){return i.Metadata.Provider.QueryCategories.find((e=>e.ID===this.CategoryID))}}t.QueryInfo=s;class o extends n.BaseInfo{constructor(e=null){super(),this.Name=null,this.ParentID=null,this.Description=null,this.CreatedAt=null,this.UpdatedAt=null,this.Parent=null,e&&this.copyInitData(e)}get ParentCategoryInfo(){return i.Metadata.Provider.QueryCategories.find((e=>e.ID===this.ParentID))}get Queries(){return i.Metadata.Provider.Queries.filter((e=>e.CategoryID===this.ID))}}t.QueryCategoryInfo=o;class a extends n.BaseInfo{constructor(e=null){super(),this.Name=null,this.QueryID=null,this.Description=null,this.Sequence=null,this.SQLBaseType=null,this.SQLFullType=null,this.SourceEntityID=null,this.SourceFieldName=null,this.IsComputed=null,this.ComputationDescription=null,this.IsSummary=null,this.SummaryDescription=null,this.CreatedAt=null,this.UpdatedAt=null,this.SourceEntity=null,e&&this.copyInitData(e)}get SourceEntityInfo(){return i.Metadata.Provider.Entities.find((e=>e.ID===this.SourceEntityID))}get QueryInfo(){return i.Metadata.Provider.Queries.find((e=>e.ID===this.ID))}}t.QueryFieldInfo=a;class u extends n.BaseInfo{constructor(e=null){super(),this.QueryID=null,this.RoleName=null,this.Query=null,e&&this.copyInitData(e)}get QueryInfo(){return i.Metadata.Provider.Queries.find((e=>e.ID===this.QueryID))}}t.QueryPermissionInfo=u},9026:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RunQuery=void 0;const n=r(6239);class i{async RunQuery(e,t){return i.Provider.RunQuery(e,t)}static get Provider(){const e=n.MJGlobal.Instance.GetGlobalObjectStore();if(e)return e[i._globalProviderKey];throw new Error("No global object store, so we cant get the static provider")}static set Provider(e){const t=n.MJGlobal.Instance.GetGlobalObjectStore();if(!t)throw new Error("No global object store, so we cant set the static provider");t[i._globalProviderKey]=e}}t.RunQuery=i,i._globalProviderKey="MJ_RunQueryProvider"},2358:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RunReport=void 0;const n=r(6239);class i{async RunReport(e,t){return i.Provider.RunReport(e,t)}static get Provider(){const e=n.MJGlobal.Instance.GetGlobalObjectStore();if(e)return e[i._globalProviderKey];throw new Error("No global object store, so we cant get the static provider")}static set Provider(e){const t=n.MJGlobal.Instance.GetGlobalObjectStore();if(!t)throw new Error("No global object store, so we cant set the static provider");t[i._globalProviderKey]=e}}t.RunReport=i,i._globalProviderKey="MJ_RunReportProvider"},7751:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AuditLogTypeInfo=t.AuthorizationEvaluator=t.AuthorizationRoleInfo=t.AuthorizationRoleType=t.AuthorizationInfo=t.RowLevelSecurityFilterInfo=t.RoleInfo=t.UserRoleInfo=t.UserInfo=void 0;const n=r(5784),i=r(52);class s extends n.BaseInfo{get UserRoles(){return this._UserRoles}constructor(e,t=null){super(),this.Name=null,this.FirstName=null,this.LastName=null,this.Title=null,this.Email=null,this.Type=null,this.IsActive=null,this.LinkedRecordType=null,this.EmployeeID=null,this.LinkedEntityID=null,this.LinkedEntityRecordID=null,this.CreatedAt=null,this.UpdatedAt=null,this.FirstLast=null,this.EmployeeFirstLast=null,this.EmployeeEmail=null,this.EmployeeTitle=null,this.EmployeeSupervisor=null,this.EmployeeSupervisorEmail=null,this._UserRoles=[],this.copyInitData(t),t&&this.SetupUserRoles(e,t.UserRoles||t._UserRoles)}SetupUserRoles(e,t){if(t){const r=e.Roles;this._UserRoles=[];for(let e=0;e<t.length;e++){const n=new o(t[e]);this._UserRoles.push(n);const i=r.find((e=>e.Name.trim().toLowerCase()==n.RoleName.trim().toLowerCase()));i&&n._setRole(i)}}}}t.UserInfo=s;class o extends n.BaseInfo{get RoleInfo(){return this._RoleInfo}_setRole(e){this._RoleInfo=e}constructor(e){super(),this.UserID=null,this.RoleName=null,this.CreatedAt=null,this.UpdatedAt=null,this.User=null,this._RoleInfo=null,this.copyInitData(e)}}t.UserRoleInfo=o;class a extends n.BaseInfo{constructor(e){super(),this.Name=null,this.Description=null,this.AzureID=null,this.SQLName=null,this.CreatedAt=null,this.UpdatedAt=null,this.copyInitData(e)}}t.RoleInfo=a;class u extends n.BaseInfo{constructor(e){super(),this.Name=null,this.Description=null,this.FilterText=null,this.CreatedAt=null,this.UpdatedAt=null,this.copyInitData(e)}MarkupFilterText(e){let t=this.FilterText;if(e){const r=Object.keys(e);for(let n=0;n<r.length;n++){const i=r[n],s=e[i];s&&"string"==typeof s&&(t=t.replace(new RegExp(`{{User${i}}}`,"g"),s))}}return t}}t.RowLevelSecurityFilterInfo=u;class l extends n.BaseInfo{get Roles(){return this._AuthorizationRoles}constructor(e,t=null){super(),this.ParentID=null,this.Name=null,this.IsActive=null,this.UseAuditLog=null,this.Description=null,this.CreatedAt=null,this.UpdatedAt=null,this._AuthorizationRoles=[],this.copyInitData(t),t&&this.SetupAuthorizationRoles(e,t.AuthorizationRoles||t._AuthorizationRoles)}SetupAuthorizationRoles(e,t){if(t){const r=e.Roles;this._AuthorizationRoles=[];for(let e=0;e<t.length;e++){const n=new c(t[e]);this._AuthorizationRoles.push(n);const i=r.find((e=>e.Name.trim().toLowerCase()==n.RoleName.trim().toLowerCase()));i&&n._setRole(i)}}}UserCanExecute(e){if(this.IsActive&&e&&e.UserRoles)for(let t=0;t<e.UserRoles.length;t++)if(this.Roles.find((r=>r.RoleName==e.UserRoles[t].RoleName)))return!0;return!1}RoleCanExecute(e){return!!this.IsActive&&null!=this.Roles.find((t=>t.RoleName==e.Name))}}t.AuthorizationInfo=l,t.AuthorizationRoleType={Allow:"Allow",Deny:"Deny"};class c extends n.BaseInfo{get RoleInfo(){return this._RoleInfo}AuthorizationType(){return"allow"===this.Type.trim().toLowerCase()?t.AuthorizationRoleType.Allow:t.AuthorizationRoleType.Deny}_setRole(e){this._RoleInfo=e}constructor(e){super(),this.AuthorizationName=null,this.RoleName=null,this.Type=null,this.CreatedAt=null,this.UpdatedAt=null,this._RoleInfo=null,this.copyInitData(e)}}t.AuthorizationRoleInfo=c,t.AuthorizationEvaluator=class{CurrentUserCanExecute(e){const t=new i.Metadata;if(!t.CurrentUser)throw new Error("No current user is set for authorization evaluation");return this.UserCanExecute(e,t.CurrentUser)}UserCanExecute(e,t){return e.UserCanExecute(t)}GetUserAuthorizations(e){const t=new i.Metadata,r=[];if(e&&e.UserRoles){for(const n of t.Authorizations)n.UserCanExecute(e)&&r.push(n);return r}throw new Error("User must be provided to evaluate authorizations")}};class d extends n.BaseInfo{constructor(e){super(),this.ParentID=null,this.Name=null,this.Description=null,this.AuthorizationName=null,this.CreatedAt=null,this.UpdatedAt=null,this.copyInitData(e)}}t.AuditLogTypeInfo=d},8914:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionGroupBase=t.TransactionResult=t.TransactionItem=void 0,t.TransactionItem=class{get Vars(){return this._vars}get ExtraData(){return this._extraData}get Instruction(){return this._instruction}get CallBack(){return this._callBack}get BaseEntity(){return this._baseEntity}constructor(e,t,r,n,i){this._baseEntity=e,this._instruction=t,this._vars=r,this._extraData=n,this._callBack=i}},t.TransactionResult=class{constructor(e,t,r){this.Transaction=e,this.Result=t,this.Success=r}},t.TransactionGroupBase=class{constructor(){this._pendingTransactions=[]}PendingTransactions(){return this._pendingTransactions}AddTransaction(e){this._pendingTransactions.push(e)}async Submit(){try{if(this._pendingTransactions.length>0){let e=await this.HandleSubmit(this._pendingTransactions);for(let t=0;t<e.length;t++)await e[t].Transaction.CallBack(e[t].Result,e[t].Success);return e.every((e=>e.Success))}return!0}catch(e){console.error(e);for(let t=0;t<this._pendingTransactions.length;t++)await this._pendingTransactions[t].CallBack(e,!1);return!1}}}},8369:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Concurrent=t.CodeNameFromString=t.StripStopWords=t.CommonStopWords=t.SQLMaxLength=t.SQLFullType=t.FormatValue=t.TypeScriptTypeFromSQLType=void 0;const n=r(7848);t.TypeScriptTypeFromSQLType=function(e){switch(e.trim().toLowerCase()){case"text":case"char":case"varchar":case"ntext":case"nchar":case"nvarchar":case"uniqueidentifier":return"string";case"datetime":case"datetime2":case"datetimeoffset":case"date":case"time":return"Date";case"bit":return"boolean";default:return"number"}},t.FormatValue=function(e,t,r=2,i="USD",s=0,o="..."){try{const n=function(e,t,r=2,n="USD",i=0,s="..."){if(null==t)return t;switch(e.trim().toLowerCase()){case"money":return isNaN(t)?t:new Intl.NumberFormat(void 0,{style:"currency",currency:n,minimumFractionDigits:r,maximumFractionDigits:r}).format(t);case"date":case"datetime":case"datetimeoffset":let e=new Date(t);return(new Intl.DateTimeFormat).format(e);case"decimal":case"real":case"float":return new Intl.NumberFormat(void 0,{minimumFractionDigits:r,maximumFractionDigits:r}).format(t);case"int":return new Intl.NumberFormat(void 0,{minimumFractionDigits:0,maximumFractionDigits:0}).format(t);case"percent":return new Intl.NumberFormat(void 0,{style:"percent",minimumFractionDigits:r,maximumFractionDigits:r}).format(t);default:return t}}(e,t,r,i,s,o);return s>0&&n&&n.length>s?n.substring(0,s)+o:n}catch(s){return(0,n.LogError)(`Error formatting value ${t} of type ${e} with decimals ${r} and currency ${i}`,s),t}},t.SQLFullType=function(e,t,r,n){const i=e.trim().toLowerCase();let s=i;return"varchar"===i?s+=`(${t>0?t:"MAX"})`:"nvarchar"===i?s+=`(${t>0?t/2:"MAX"})`:"char"===i?s+=`(${t})`:"nchar"===i?s+=`(${t/2})`:"decimal"===i||"numeric"===i?s+=`(${r}, ${n})`:"float"===i&&(s+=`(${r})`),s},t.SQLMaxLength=function(e,t){switch(e.trim().toLowerCase()){case"varchar":case"char":case"text":return t;case"nvarchar":case"nchar":case"ntext":return t/2;default:return 0}};const i=["a","about","above","after","again","against","ain","all","am","an","and","any","are","aren","aren't","as","at","be","because","been","before","being","below","between","both","but","by","can","couldn","couldn't","could","d","did","didn","didn't","do","does","doesn","doesn't","doing","don","don't","down","during","each","few","for","from","further","had","hadn","hadn't","has","hasn","hasn't","have","haven","haven't","having","he","her","here","hers","herself","him","himself","his","how","i","if","in","into","is","isn","isn't","it","it's","its","itself","just","ll","m","ma","me","mightn","mightn't","more","most","mustn","mustn't","my","myself","needn","needn't","no","nor","not","now","o","of","off","on","once","only","or","other","our","ours","ourselves","out","over","own","re","s","same","shan","shan't","she","she's","should","should've","shouldn","shouldn't","so","some","such","t","than","that","that'll","the","their","theirs","them","themselves","then","there","these","they","this","those","through","to","too","under","until","up","ve","very","was","wasn","wasn't","we","were","weren","weren't","what","when","where","which","while","who","whom","why","will","with","won","won't","wouldn","wouldn't","y","you","you'd","you'll","you're","you've","your","yours","yourself","yourselves"];t.CommonStopWords=function(){return i},t.StripStopWords=function(e){const t=new RegExp(`\\b(${i.join("|")})\\b`,"gi");let r=e.replace(t,"");return r=r.replace(/ +/g," "),r},t.CodeNameFromString=function(e){let t=e.replace(/[^a-zA-Z0-9_]/g,"_");return/^[0-9]/.test(t)&&(t="_"+t),t},t.Concurrent=function(e,t){return new Promise(((r,n)=>{let i=-1;const s=[];for(let r=0;r<Math.max(1,Math.min(e,t.length));r++)o();function o(){++i<t.length?(s[s.length]=t[i]()).then(o).catch(n):i===t.length&&Promise.all(s).then(r).catch(n)}}))}},6655:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.SetProvider=void 0;const s=r(5879),o=r(52),a=r(2358),u=r(338);i(r(52),t),i(r(5784),t),i(r(4530),t),i(r(338),t),i(r(2358),t),i(r(9026),t),i(r(2681),t),i(r(5879),t),i(r(8059),t),i(r(2517),t),i(r(6466),t),i(r(7751),t),i(r(8914),t),i(r(8369),t),i(r(7848),t),i(r(6769),t),i(r(887),t),t.SetProvider=function(e){o.Metadata.Provider=e,s.BaseEntity.Provider=e,u.RunView.Provider=e,a.RunReport.Provider=e}},338:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RunView=void 0;const n=r(6239),i=r(52);class s{async RunView(e,t){if("entity_object"===e.ResultType){const t=(new i.Metadata).Entities.find((t=>t.Name.trim().toLowerCase()===e.EntityName.trim().toLowerCase()));if(!t)throw new Error(`Entity ${e.EntityName} not found in metadata`);e.Fields=t.Fields.map((e=>e.Name))}const r=await s.Provider.RunView(e,t);if("entity_object"===e.ResultType&&r&&r.Success){const n=new i.Metadata,s=[];for(const i of r.Results){const r=await n.GetEntityObject(e.EntityName,t);r.LoadFromData(i),s.push(r)}r.Results=s}return r}static get Provider(){const e=n.MJGlobal.Instance.GetGlobalObjectStore();if(e)return e[s._globalProviderKey];throw new Error("No global object store, so we cant get the static provider")}static set Provider(e){const t=n.MJGlobal.Instance.GetGlobalObjectStore();if(!t)throw new Error("No global object store, so we cant set the static provider");t[s._globalProviderKey]=e}static async GetEntityNameFromRunViewParams(e){if(e.EntityName)return e.EntityName;if(e.ViewEntity){const t=e.ViewEntity.Get("EntityID"),r=(new i.Metadata).Entities.find((e=>e.ID===t));if(r)return r.Name}else{if(!e.ViewID&&!e.ViewName)return null;{const t=new s,r=await t.RunView({EntityName:"User Views",ExtraFilter:e.ViewID?`ID = ${e.ViewID}`:`Name = '${e.ViewName}'`,ResultType:"entity_object"});if(r&&r.Success&&r.Results.length>0)return r.Results[0].Entity}}}}t.RunView=s,s._globalProviderKey="MJ_RunViewProvider"},2718:function(e,t,r){"use strict";var n=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,o=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,r,o):i(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.AIModelEntityExtended=void 0;const i=r(6655),s=r(6239),o=r(4162);let a=class extends o.AIModelEntity{get APINameOrName(){return this.APIName?this.APIName:this.Name}};t.AIModelEntityExtended=a,t.AIModelEntityExtended=a=n([(0,s.RegisterClass)(i.BaseEntity,"AI Models",2)],a)},7718:function(e,t,r){"use strict";var n=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,o=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,r,o):i(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.DashboardEntityExtended=void 0;const i=r(6655),s=r(6239),o=r(4162);let a=class extends o.DashboardEntity{NewRecord(){try{super.NewRecord();let e={columns:4,rowHeight:150,resizable:!0,reorderable:!0,items:[]};const t=JSON.stringify(e);this.Set("UIConfigDetails",t);const r=new i.Metadata;return r.CurrentUser&&this.Set("UserID",r.CurrentUser.ID),!0}catch(e){return(0,i.LogError)("Error in NewRecord: "),(0,i.LogError)(e),!1}}};t.DashboardEntityExtended=a,t.DashboardEntityExtended=a=n([(0,s.RegisterClass)(i.BaseEntity,"Dashboards",2)],a)},5974:function(e,t,r){"use strict";var n=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,o=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,r,o):i(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.EntityBehaviorEntityExtended=void 0;const i=r(6655),s=r(6239),o=r(4162);let a=class extends o.EntityBehaviorEntity{async Save(e){return this.CodeGenerated&&(this.NewRecord||this.Fields.find((e=>"Description"===e.Name)).Dirty||this.Description&&this.Description.trim().length>0&&(!this.Code||0===this.Code.trim().length))&&(this.RegenerateCode=!0),super.Save(e)}};t.EntityBehaviorEntityExtended=a,t.EntityBehaviorEntityExtended=a=n([(0,s.RegisterClass)(i.BaseEntity,"Entity Behaviors",2)],a)},8397:function(e,t,r){"use strict";var n=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,o=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,r,o):i(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.ListDetailEntityExtended=void 0;const i=r(6655),s=r(6239),o=r(4162);let a=class extends o.ListDetailEntity{async Save(){const e=this.ResultHistory.length,t=new i.BaseEntityResult;t.StartedAt=new Date;try{const e=new i.RunView;if(!this.ListID)throw new Error("ListID cannot be null");if(!this.RecordID)throw new Error("RecordID cannot be null");if(!this.ContextCurrentUser)throw new Error("ContextCurrentUser cannot be null");const t=await e.RunView({EntityName:"List Details",ExtraFilter:`ListID = ${this.ListID} AND RecordID = ${this.RecordID}`},this.ContextCurrentUser);if(!t.Success)throw new Error(t.ErrorMessage);if(t.Results.length>0)throw new Error(`Record ${this.RecordID} already exists in List ${this.ListID}`);return await super.Save()}catch(r){return e===this.ResultHistory.length&&(t.Success=!1,t.Type=this.IsSaved?"update":"create",t.Message=r.message,t.OriginalValues=this.Fields.map((e=>({FieldName:e.CodeName,Value:e.OldValue}))),t.EndedAt=new Date,this.ResultHistory.push(t)),!1}}};t.ListDetailEntityExtended=a,t.ListDetailEntityExtended=a=n([(0,s.RegisterClass)(i.BaseEntity,"List Details",2)],a)},7699:function(e,t,r){"use strict";var n=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,o=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,r,o):i(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.ViewGridState=t.ViewSortInfo=t.ViewSortDirectionInfo=t.ViewFilterInfo=t.ViewFilterLogicInfo=t.ViewColumnInfo=t.ViewInfo=t.UserViewEntityExtended=void 0;const i=r(6239),s=r(6655),o=r(4162);let a=class extends o.UserViewEntity{constructor(){super(...arguments),this._ViewEntityInfo=null}get Filter(){return this.FilterState?[new c(JSON.parse(this.FilterState))]:[]}get Columns(){if(this.GridState){const e=JSON.parse(this.GridState);if(e&&e.columnSettings)return e.columnSettings.map((e=>{if(e){const t=this.ViewEntityInfo.Fields.find((t=>t.Name.trim().toLowerCase()===e.Name.trim().toLowerCase()));return new l({...e,EntityField:t})}console.log("null column setting found in view grid state for columns - ViewID: "+this.ID)}))}return[]}get ViewEntityInfo(){return this._ViewEntityInfo}get ViewSortInfo(){if(this.SortState){const e=JSON.parse(this.SortState);if(e&&e.length>0)return e.map((e=>new d(e)))}return[]}get OrderByClause(){return this.ViewSortInfo&&this.ViewSortInfo.length>0?this.ViewSortInfo.map((e=>{let r;r="string"==typeof e.direction?e.direction.trim().toLowerCase():1===e.direction?"asc":2===e.direction?"desc":"";const n=r===t.ViewSortDirectionInfo.Desc.trim().toLowerCase();return e.field+(n?" DESC":"")})).join(", "):""}LoadFromData(e){if(e&&e.EntityID){const t=(new s.Metadata).Entities.find((t=>t.ID===e.EntityID));if(!t)throw new Error("Unable to find entity info for entity ID: "+e.EntityID);this._ViewEntityInfo=t}return super.LoadFromData(e)}async Load(e,t){const r=await super.Load(e,t);if(r){const e=(new s.Metadata).Entities.find((e=>e.ID===this.EntityID));if(!e)throw new Error("Unable to find entity info for entity ID: "+this.EntityID);this._ViewEntityInfo=e}return r}async Save(e){return(!this.ID||e?.IgnoreDirtyState||this.Fields.find((e=>"filterstate"==e.Name.toLowerCase()))?.Dirty||this.Fields.find((e=>"smartfilterenabled"==e.Name.toLowerCase()))?.Dirty||this.Fields.find((e=>"smartfilterprompt"==e.Name.toLowerCase()))?.Dirty)&&await this.UpdateWhereClause(e?.IgnoreDirtyState),super.Save(e)}async SetDefaultsFromEntity(e){this.EntityID=e.ID;const t=new p;t.columnSettings=[],e.Fields.filter((e=>e.DefaultInView)).forEach((e=>{t.columnSettings.push({ID:e.ID,DisplayName:e.DisplayName,Name:e.Name,hidden:!1,width:e.DefaultColumnWidth,orderIndex:t.columnSettings.length})})),this.GridState=JSON.stringify(t)}NewRecord(){const e=super.NewRecord();if(e){if(this.ContextCurrentUser)this.UserID=this.ContextCurrentUser.ID;else{const e=new s.Metadata;if(!e.CurrentUser)throw new Error("Unable to determine current user for new view record");this.UserID=e.CurrentUser.ID}this.Name="",this.IsShared=!1,this.IsDefault=!1,this.WhereClause="",this.Description="",this.FilterState=JSON.stringify({logic:"and",filters:[]}),this.GridState=JSON.stringify({}),this.CustomFilterState=!1,this.CustomWhereClause=!1}return e}async UpdateWhereClause(e){if(!this.CustomWhereClause||!0!==this.CustomWhereClause&&1!==this.CustomWhereClause)if(this.SmartFilterEnabled&&(!0===this.SmartFilterEnabled||1===this.SmartFilterEnabled)&&this.SmartFilterPrompt&&this.SmartFilterPrompt.length>0){if(this.SmartFilterImplemented){if(!this.ID||e||this.Fields.find((e=>"smartfilterprompt"==e.Name.toLowerCase()))?.Dirty){const e=await this.GenerateSmartFilterWhereClause(this.SmartFilterPrompt,this.ViewEntityInfo);this.SmartFilterWhereClause=e.whereClause,this.SmartFilterExplanation=e.userExplanation}this.WhereClause=this.SmartFilterWhereClause}}else this.WhereClause=this.GenerateWhereClause(this.FilterState,this.ViewEntityInfo)}async GenerateSmartFilterWhereClause(e,t){return{whereClause:"",userExplanation:""}}get SmartFilterImplemented(){return!1}Set(e,t){if(super.Set(e,t),"entityid"==e.toLowerCase()){const e=(new s.Metadata).Entities.find((e=>e.ID===t));if(!e)throw new Error("Unable to find entity info for entity ID: "+t);this._ViewEntityInfo=e}}GenerateWhereClause(e,t){return this.processFilterGroup(JSON.parse(e),t)}wrapQuotes(e,t){return t?`'${e}'`:e}convertFilterToSQL(e,t,r,n){let i="",s=!1;const o=n.Fields.find((t=>t.Name.trim().toLowerCase()===e.trim().toLowerCase()));if(!o)throw new Error("Unable to find field "+e+" in entity "+n.Name);switch(o.Type.toLowerCase().trim()){case"nvarchar":case"char":case"varchar":case"text":case"ntext":case"date":case"datetime":case"datetimeoffset":case"time":case"guid":case"uniqueidentifier":s=!0}switch(t){case"eq":i="= "+this.wrapQuotes(r,s);break;case"neq":i="<> "+this.wrapQuotes(r,s);break;case"gt":i="> "+this.wrapQuotes(r,s);break;case"gte":i=">= "+this.wrapQuotes(r,s);break;case"lt":i="< "+this.wrapQuotes(r,s);break;case"lte":i="<= "+this.wrapQuotes(r,s);break;case"startswith":i=`LIKE '${r}%'`;break;case"endswith":i=`LIKE '%${r}'`;break;case"contains":i=`LIKE '%${r}%'`;break;case"doesnotcontain":i=`NOT LIKE '%${r}%'`;break;case"isnull":case"isempty":i="IS NULL";break;case"isnotnull":case"isnotempty":i="IS NOT NULL"}return`[${e}] ${i}`}processFilterGroup(e,t){let r="",n=!0;const i=e.logic.toUpperCase();for(const s of e.filters)n?n=!1:r+=` ${i} `,s.logic&&s.logic.length>0?r+=`(${this.processFilterGroup(s,t)})`:r+=`(${this.convertFilterToSQL(s.field,s.operator,s.value,t)})`;return r}};t.UserViewEntityExtended=a,t.UserViewEntityExtended=a=n([(0,i.RegisterClass)(s.BaseEntity,"User Views")],a);class u{static async GetViewsForUser(e,t){const r=new s.RunView,n=new s.Metadata,i=await r.RunView({EntityName:"User Views",ExtraFilter:`UserID = ${t?t.ID:n.CurrentUser.ID}\n ${e?` AND EntityID = ${e}`:""}`}),o=i?.Results;if(i&&i.Success&&o)return o}static async GetViewID(e){const t=new s.RunView,r=await t.RunView({EntityName:"User Views",ExtraFilter:`Name = '${e}'`}),n=r?.Results;if(r&&r.Success&&n&&n.length>0)return n[0].ID;throw new Error("Unable to find view with name: "+e)}static async GetViewEntity(e,t){const r=new s.Metadata,n=await r.GetEntityObject("User Views",t);if(await n.Load(e))return n;throw new Error("Unable to load view with ID: "+e)}static async GetViewEntityByName(e,t){const r=await u.GetViewID(e);if(r)return await u.GetViewEntity(r,t);throw new Error("Unable to find view with name: "+e)}}t.ViewInfo=u;class l extends s.BaseInfo{constructor(e=null){super(),this.ID=null,this.Name=null,this.DisplayName=null,this.hidden=null,this.width=null,this.orderIndex=null,this.EntityField=null,this.copyInitData(e)}}t.ViewColumnInfo=l,t.ViewFilterLogicInfo={And:"And",Or:"Or"};class c extends s.BaseInfo{constructor(e=null){super(),this.logicOperator=null,this.field=null,this.operator=null,this.value=null,this.filters=[],this.copyInitData(e),e&&e.logic&&(this.logicOperator="and"==e.logic.trim().toLowerCase()?t.ViewFilterLogicInfo.And:t.ViewFilterLogicInfo.Or),e&&e.filters&&(this.filters=e.filters.map((e=>new c(e))))}}t.ViewFilterInfo=c,t.ViewSortDirectionInfo={Asc:"Asc",Desc:"Desc"};class d extends s.BaseInfo{constructor(e=null){super(),this.field=null,this.direction=null,this.copyInitData(e),e&&e.dir&&"string"==typeof e.dir&&(this.direction="asc"==e.dir.trim().toLowerCase()?t.ViewSortDirectionInfo.Asc:t.ViewSortDirectionInfo.Desc)}}t.ViewSortInfo=d;class p{}t.ViewGridState=p},4162:function(e,t,r){"use strict";var n=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,o=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,r,o):i(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.DashboardEntity=t.QueueTaskEntity=t.QueueEntity=t.QueueTypeEntity=t.AIModelTypeEntity=t.EntityAIActionEntity=t.AIModelActionEntity=t.AIActionEntity=t.AIModelEntity=t.EntityFieldValueEntity=t.AuditLogTypeEntity=t.AuthorizationRoleEntity=t.AuthorizationEntity=t.AuditLogEntity=t.RowLevelSecurityFilterEntity=t.UserRoleEntity=t.RecordChangeEntity=t.WorkflowEngineEntity=t.WorkflowEntity=t.WorkflowRunEntity=t.UserViewRunDetailEntity=t.UserViewRunEntity=t.ListDetailEntity=t.ListEntity=t.CompanyIntegrationRunAPILogEntity=t.UserApplicationEntity=t.UserApplicationEntityEntity=t.EntityPermissionEntity=t.ApplicationEntityEntity=t.ApplicationEntity=t.ErrorLogEntity=t.CompanyIntegrationRunDetailEntity=t.CompanyIntegrationRunEntity=t.UserViewEntity=t.UserRecordLogEntity=t.EntityRelationshipEntity=t.UserEntity=t.EntityEntity=t.EntityFieldEntity=t.CompanyIntegrationEntity=t.IntegrationEntity=t.IntegrationURLFormatEntity=t.SkillEntity=t.RoleEntity=t.EmployeeSkillEntity=t.EmployeeRoleEntity=t.EmployeeCompanyIntegrationEntity=t.UserFavoriteEntity=t.EmployeeEntity=t.CompanyEntity=void 0,t.EntityActionInvocationEntity=t.EntityActionEntity=t.ActionCategoryEntity=t.ApplicationSettingEntity=t.EntityBehaviorTypeEntity=t.EntityBehaviorEntity=t.DuplicateRunDetailEntity=t.DuplicateRunEntity=t.EntitySettingEntity=t.EntityDocumentSettingEntity=t.DuplicateRunDetailMatchEntity=t.VersionInstallationEntity=t.FileEntityRecordLinkEntity=t.FileCategoryEntity=t.FileEntity=t.FileStorageProviderEntity=t.ReportCategoryEntity=t.DashboardCategoryEntity=t.UserViewCategoryEntity=t.DataContextEntity=t.DataContextItemEntity=t.EntityDocumentEntity=t.EntityRecordDocumentEntity=t.VectorDatabaseEntity=t.EntityDocumentRunEntity=t.EntityDocumentTypeEntity=t.VectorIndexEntity=t.QueryPermissionEntity=t.QueryEntity=t.QueryCategoryEntity=t.QueryFieldEntity=t.RecordMergeDeletionLogEntity=t.RecordMergeLogEntity=t.CompanyIntegrationRecordMapEntity=t.SchemaInfoEntity=t.UserNotificationEntity=t.ConversationEntity=t.ConversationDetailEntity=t.DatasetItemEntity=t.DatasetEntity=t.WorkspaceItemEntity=t.WorkspaceEntity=t.TaggedItemEntity=t.TagEntity=t.ResourceTypeEntity=t.ReportSnapshotEntity=t.ReportEntity=t.OutputDeliveryTypeEntity=t.OutputFormatTypeEntity=t.OutputTriggerTypeEntity=void 0,t.EntityCommunicationFieldEntity=t.EntityCommunicationMessageTypeEntity=t.RecommendationItemEntity=t.RecommendationRunEntity=t.RecommendationProviderEntity=t.RecommendationEntity=t.TemplateContentTypeEntity=t.TemplateParamEntity=t.TemplateContentEntity=t.TemplateCategoryEntity=t.TemplateEntity=t.CommunicationBaseMessageTypeEntity=t.CommunicationLogEntity=t.CommunicationProviderMessageTypeEntity=t.CommunicationRunEntity=t.CommunicationProviderEntity=t.ListCategoryEntity=t.LibraryEntity=t.ActionLibraryEntity=t.ActionParamEntity=t.ActionExecutionLogEntity=t.ActionContextEntity=t.ActionResultCodeEntity=t.ActionContextTypeEntity=t.ActionFilterEntity=t.EntityActionFilterEntity=t.ActionEntity=t.EntityActionInvocationTypeEntity=t.ActionAuthorizationEntity=void 0;const i=r(6655),s=r(6239);let o=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get Website(){return this.Get("Website")}set Website(e){this.Set("Website",e)}get LogoURL(){return this.Get("LogoURL")}set LogoURL(e){this.Set("LogoURL",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Domain(){return this.Get("Domain")}set Domain(e){this.Set("Domain",e)}};t.CompanyEntity=o,t.CompanyEntity=o=n([(0,s.RegisterClass)(i.BaseEntity,"Companies")],o);let a=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get BCMID(){return this.Get("BCMID")}get FirstName(){return this.Get("FirstName")}set FirstName(e){this.Set("FirstName",e)}get LastName(){return this.Get("LastName")}set LastName(e){this.Set("LastName",e)}get Title(){return this.Get("Title")}set Title(e){this.Set("Title",e)}get Email(){return this.Get("Email")}set Email(e){this.Set("Email",e)}get Phone(){return this.Get("Phone")}set Phone(e){this.Set("Phone",e)}get Active(){return this.Get("Active")}set Active(e){this.Set("Active",e)}get CompanyID(){return this.Get("CompanyID")}set CompanyID(e){this.Set("CompanyID",e)}get SupervisorID(){return this.Get("SupervisorID")}set SupervisorID(e){this.Set("SupervisorID",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get FirstLast(){return this.Get("FirstLast")}get Supervisor(){return this.Get("Supervisor")}get SupervisorFirstName(){return this.Get("SupervisorFirstName")}get SupervisorLastName(){return this.Get("SupervisorLastName")}get SupervisorEmail(){return this.Get("SupervisorEmail")}};t.EmployeeEntity=a,t.EmployeeEntity=a=n([(0,s.RegisterClass)(i.BaseEntity,"Employees")],a);let u=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get UserID(){return this.Get("UserID")}set UserID(e){this.Set("UserID",e)}get EntityID(){return this.Get("EntityID")}set EntityID(e){this.Set("EntityID",e)}get RecordID(){return this.Get("RecordID")}set RecordID(e){this.Set("RecordID",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Entity(){return this.Get("Entity")}get EntityBaseTable(){return this.Get("EntityBaseTable")}get EntityBaseView(){return this.Get("EntityBaseView")}};t.UserFavoriteEntity=u,t.UserFavoriteEntity=u=n([(0,s.RegisterClass)(i.BaseEntity,"User Favorites")],u);let l=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Employee Company Integrations, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get EmployeeID(){return this.Get("EmployeeID")}set EmployeeID(e){this.Set("EmployeeID",e)}get CompanyIntegrationID(){return this.Get("CompanyIntegrationID")}set CompanyIntegrationID(e){this.Set("CompanyIntegrationID",e)}get ExternalSystemRecordID(){return this.Get("ExternalSystemRecordID")}set ExternalSystemRecordID(e){this.Set("ExternalSystemRecordID",e)}get IsActive(){return this.Get("IsActive")}set IsActive(e){this.Set("IsActive",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}};t.EmployeeCompanyIntegrationEntity=l,t.EmployeeCompanyIntegrationEntity=l=n([(0,s.RegisterClass)(i.BaseEntity,"Employee Company Integrations")],l);let c=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Employee Roles, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get EmployeeID(){return this.Get("EmployeeID")}set EmployeeID(e){this.Set("EmployeeID",e)}get RoleID(){return this.Get("RoleID")}set RoleID(e){this.Set("RoleID",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Role(){return this.Get("Role")}};t.EmployeeRoleEntity=c,t.EmployeeRoleEntity=c=n([(0,s.RegisterClass)(i.BaseEntity,"Employee Roles")],c);let d=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Employee Skills, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get EmployeeID(){return this.Get("EmployeeID")}set EmployeeID(e){this.Set("EmployeeID",e)}get SkillID(){return this.Get("SkillID")}set SkillID(e){this.Set("SkillID",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Skill(){return this.Get("Skill")}};t.EmployeeSkillEntity=d,t.EmployeeSkillEntity=d=n([(0,s.RegisterClass)(i.BaseEntity,"Employee Skills")],d);let p=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get DirectoryID(){return this.Get("DirectoryID")}set DirectoryID(e){this.Set("DirectoryID",e)}get SQLName(){return this.Get("SQLName")}set SQLName(e){this.Set("SQLName",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}};t.RoleEntity=p,t.RoleEntity=p=n([(0,s.RegisterClass)(i.BaseEntity,"Roles")],p);let h=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Save(e){throw new Error("Save is not allowed for Skills, to enable it set AllowCreateAPI and/or AllowUpdateAPI to 1 in the database.")}async Delete(){throw new Error("Delete is not allowed for Skills, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get ParentID(){return this.Get("ParentID")}set ParentID(e){this.Set("ParentID",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Parent(){return this.Get("Parent")}};t.SkillEntity=h,t.SkillEntity=h=n([(0,s.RegisterClass)(i.BaseEntity,"Skills")],h);let y=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Integration URL Formats, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get IntegrationName(){return this.Get("IntegrationName")}set IntegrationName(e){this.Set("IntegrationName",e)}get EntityID(){return this.Get("EntityID")}set EntityID(e){this.Set("EntityID",e)}get URLFormat(){return this.Get("URLFormat")}set URLFormat(e){this.Set("URLFormat",e)}get IntegrationID(){return this.Get("IntegrationID")}get Integration(){return this.Get("Integration")}get NavigationBaseURL(){return this.Get("NavigationBaseURL")}get FullURLFormat(){return this.Get("FullURLFormat")}};t.IntegrationURLFormatEntity=y,t.IntegrationURLFormatEntity=y=n([(0,s.RegisterClass)(i.BaseEntity,"Integration URL Formats")],y);let f=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Integrations, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get NavigationBaseURL(){return this.Get("NavigationBaseURL")}set NavigationBaseURL(e){this.Set("NavigationBaseURL",e)}get ClassName(){return this.Get("ClassName")}set ClassName(e){this.Set("ClassName",e)}get ImportPath(){return this.Get("ImportPath")}set ImportPath(e){this.Set("ImportPath",e)}get BatchMaxRequestCount(){return this.Get("BatchMaxRequestCount")}set BatchMaxRequestCount(e){this.Set("BatchMaxRequestCount",e)}get BatchRequestWaitTime(){return this.Get("BatchRequestWaitTime")}set BatchRequestWaitTime(e){this.Set("BatchRequestWaitTime",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}};t.IntegrationEntity=f,t.IntegrationEntity=f=n([(0,s.RegisterClass)(i.BaseEntity,"Integrations")],f);let m=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Company Integrations, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get CompanyName(){return this.Get("CompanyName")}set CompanyName(e){this.Set("CompanyName",e)}get IntegrationName(){return this.Get("IntegrationName")}set IntegrationName(e){this.Set("IntegrationName",e)}get IsActive(){return this.Get("IsActive")}set IsActive(e){this.Set("IsActive",e)}get AccessToken(){return this.Get("AccessToken")}set AccessToken(e){this.Set("AccessToken",e)}get RefreshToken(){return this.Get("RefreshToken")}set RefreshToken(e){this.Set("RefreshToken",e)}get TokenExpirationDate(){return this.Get("TokenExpirationDate")}set TokenExpirationDate(e){this.Set("TokenExpirationDate",e)}get APIKey(){return this.Get("APIKey")}set APIKey(e){this.Set("APIKey",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get ExternalSystemID(){return this.Get("ExternalSystemID")}set ExternalSystemID(e){this.Set("ExternalSystemID",e)}get IsExternalSystemReadOnly(){return this.Get("IsExternalSystemReadOnly")}set IsExternalSystemReadOnly(e){this.Set("IsExternalSystemReadOnly",e)}get ClientID(){return this.Get("ClientID")}set ClientID(e){this.Set("ClientID",e)}get ClientSecret(){return this.Get("ClientSecret")}set ClientSecret(e){this.Set("ClientSecret",e)}get CustomAttribute1(){return this.Get("CustomAttribute1")}set CustomAttribute1(e){this.Set("CustomAttribute1",e)}get CompanyID(){return this.Get("CompanyID")}get IntegrationID(){return this.Get("IntegrationID")}get Company(){return this.Get("Company")}get Integration(){return this.Get("Integration")}get DriverClassName(){return this.Get("DriverClassName")}get DriverImportPath(){return this.Get("DriverImportPath")}get LastRunID(){return this.Get("LastRunID")}get LastRunStartedAt(){return this.Get("LastRunStartedAt")}get LastRunEndedAt(){return this.Get("LastRunEndedAt")}};t.CompanyIntegrationEntity=m,t.CompanyIntegrationEntity=m=n([(0,s.RegisterClass)(i.BaseEntity,"Company Integrations")],m);let g=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get EntityID(){return this.Get("EntityID")}get Sequence(){return this.Get("Sequence")}get Name(){return this.Get("Name")}get DisplayName(){return this.Get("DisplayName")}set DisplayName(e){this.Set("DisplayName",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get AutoUpdateDescription(){return this.Get("AutoUpdateDescription")}set AutoUpdateDescription(e){this.Set("AutoUpdateDescription",e)}get IsPrimaryKey(){return this.Get("IsPrimaryKey")}set IsPrimaryKey(e){this.Set("IsPrimaryKey",e)}get IsUnique(){return this.Get("IsUnique")}set IsUnique(e){this.Set("IsUnique",e)}get Category(){return this.Get("Category")}set Category(e){this.Set("Category",e)}get Type(){return this.Get("Type")}get Length(){return this.Get("Length")}get Precision(){return this.Get("Precision")}get Scale(){return this.Get("Scale")}get AllowsNull(){return this.Get("AllowsNull")}get DefaultValue(){return this.Get("DefaultValue")}get AutoIncrement(){return this.Get("AutoIncrement")}get ValueListType(){return this.Get("ValueListType")}set ValueListType(e){this.Set("ValueListType",e)}get ExtendedType(){return this.Get("ExtendedType")}set ExtendedType(e){this.Set("ExtendedType",e)}get CodeType(){return this.Get("CodeType")}set CodeType(e){this.Set("CodeType",e)}get DefaultInView(){return this.Get("DefaultInView")}set DefaultInView(e){this.Set("DefaultInView",e)}get ViewCellTemplate(){return this.Get("ViewCellTemplate")}set ViewCellTemplate(e){this.Set("ViewCellTemplate",e)}get DefaultColumnWidth(){return this.Get("DefaultColumnWidth")}set DefaultColumnWidth(e){this.Set("DefaultColumnWidth",e)}get AllowUpdateAPI(){return this.Get("AllowUpdateAPI")}set AllowUpdateAPI(e){this.Set("AllowUpdateAPI",e)}get AllowUpdateInView(){return this.Get("AllowUpdateInView")}set AllowUpdateInView(e){this.Set("AllowUpdateInView",e)}get IncludeInUserSearchAPI(){return this.Get("IncludeInUserSearchAPI")}set IncludeInUserSearchAPI(e){this.Set("IncludeInUserSearchAPI",e)}get FullTextSearchEnabled(){return this.Get("FullTextSearchEnabled")}set FullTextSearchEnabled(e){this.Set("FullTextSearchEnabled",e)}get UserSearchParamFormatAPI(){return this.Get("UserSearchParamFormatAPI")}set UserSearchParamFormatAPI(e){this.Set("UserSearchParamFormatAPI",e)}get IncludeInGeneratedForm(){return this.Get("IncludeInGeneratedForm")}set IncludeInGeneratedForm(e){this.Set("IncludeInGeneratedForm",e)}get GeneratedFormSection(){return this.Get("GeneratedFormSection")}set GeneratedFormSection(e){this.Set("GeneratedFormSection",e)}get IsVirtual(){return this.Get("IsVirtual")}get IsNameField(){return this.Get("IsNameField")}set IsNameField(e){this.Set("IsNameField",e)}get RelatedEntityID(){return this.Get("RelatedEntityID")}set RelatedEntityID(e){this.Set("RelatedEntityID",e)}get RelatedEntityFieldName(){return this.Get("RelatedEntityFieldName")}set RelatedEntityFieldName(e){this.Set("RelatedEntityFieldName",e)}get IncludeRelatedEntityNameFieldInBaseView(){return this.Get("IncludeRelatedEntityNameFieldInBaseView")}set IncludeRelatedEntityNameFieldInBaseView(e){this.Set("IncludeRelatedEntityNameFieldInBaseView",e)}get RelatedEntityNameFieldMap(){return this.Get("RelatedEntityNameFieldMap")}set RelatedEntityNameFieldMap(e){this.Set("RelatedEntityNameFieldMap",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Entity(){return this.Get("Entity")}get SchemaName(){return this.Get("SchemaName")}get BaseTable(){return this.Get("BaseTable")}get BaseView(){return this.Get("BaseView")}get EntityCodeName(){return this.Get("EntityCodeName")}get EntityClassName(){return this.Get("EntityClassName")}get RelatedEntity(){return this.Get("RelatedEntity")}get RelatedEntitySchemaName(){return this.Get("RelatedEntitySchemaName")}get RelatedEntityBaseTable(){return this.Get("RelatedEntityBaseTable")}get RelatedEntityBaseView(){return this.Get("RelatedEntityBaseView")}get RelatedEntityCodeName(){return this.Get("RelatedEntityCodeName")}get RelatedEntityClassName(){return this.Get("RelatedEntityClassName")}};t.EntityFieldEntity=g,t.EntityFieldEntity=g=n([(0,s.RegisterClass)(i.BaseEntity,"Entity Fields")],g);let v=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get ParentID(){return this.Get("ParentID")}set ParentID(e){this.Set("ParentID",e)}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get NameSuffix(){return this.Get("NameSuffix")}set NameSuffix(e){this.Set("NameSuffix",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get AutoUpdateDescription(){return this.Get("AutoUpdateDescription")}set AutoUpdateDescription(e){this.Set("AutoUpdateDescription",e)}get BaseTable(){return this.Get("BaseTable")}get BaseView(){return this.Get("BaseView")}set BaseView(e){this.Set("BaseView",e)}get BaseViewGenerated(){return this.Get("BaseViewGenerated")}set BaseViewGenerated(e){this.Set("BaseViewGenerated",e)}get SchemaName(){return this.Get("SchemaName")}get VirtualEntity(){return this.Get("VirtualEntity")}set VirtualEntity(e){this.Set("VirtualEntity",e)}get TrackRecordChanges(){return this.Get("TrackRecordChanges")}set TrackRecordChanges(e){this.Set("TrackRecordChanges",e)}get AuditRecordAccess(){return this.Get("AuditRecordAccess")}set AuditRecordAccess(e){this.Set("AuditRecordAccess",e)}get AuditViewRuns(){return this.Get("AuditViewRuns")}set AuditViewRuns(e){this.Set("AuditViewRuns",e)}get IncludeInAPI(){return this.Get("IncludeInAPI")}set IncludeInAPI(e){this.Set("IncludeInAPI",e)}get AllowAllRowsAPI(){return this.Get("AllowAllRowsAPI")}set AllowAllRowsAPI(e){this.Set("AllowAllRowsAPI",e)}get AllowUpdateAPI(){return this.Get("AllowUpdateAPI")}set AllowUpdateAPI(e){this.Set("AllowUpdateAPI",e)}get AllowCreateAPI(){return this.Get("AllowCreateAPI")}set AllowCreateAPI(e){this.Set("AllowCreateAPI",e)}get AllowDeleteAPI(){return this.Get("AllowDeleteAPI")}set AllowDeleteAPI(e){this.Set("AllowDeleteAPI",e)}get CustomResolverAPI(){return this.Get("CustomResolverAPI")}set CustomResolverAPI(e){this.Set("CustomResolverAPI",e)}get AllowUserSearchAPI(){return this.Get("AllowUserSearchAPI")}set AllowUserSearchAPI(e){this.Set("AllowUserSearchAPI",e)}get FullTextSearchEnabled(){return this.Get("FullTextSearchEnabled")}set FullTextSearchEnabled(e){this.Set("FullTextSearchEnabled",e)}get FullTextCatalog(){return this.Get("FullTextCatalog")}set FullTextCatalog(e){this.Set("FullTextCatalog",e)}get FullTextCatalogGenerated(){return this.Get("FullTextCatalogGenerated")}set FullTextCatalogGenerated(e){this.Set("FullTextCatalogGenerated",e)}get FullTextIndex(){return this.Get("FullTextIndex")}set FullTextIndex(e){this.Set("FullTextIndex",e)}get FullTextIndexGenerated(){return this.Get("FullTextIndexGenerated")}set FullTextIndexGenerated(e){this.Set("FullTextIndexGenerated",e)}get FullTextSearchFunction(){return this.Get("FullTextSearchFunction")}set FullTextSearchFunction(e){this.Set("FullTextSearchFunction",e)}get FullTextSearchFunctionGenerated(){return this.Get("FullTextSearchFunctionGenerated")}set FullTextSearchFunctionGenerated(e){this.Set("FullTextSearchFunctionGenerated",e)}get UserViewMaxRows(){return this.Get("UserViewMaxRows")}set UserViewMaxRows(e){this.Set("UserViewMaxRows",e)}get spCreate(){return this.Get("spCreate")}set spCreate(e){this.Set("spCreate",e)}get spUpdate(){return this.Get("spUpdate")}set spUpdate(e){this.Set("spUpdate",e)}get spDelete(){return this.Get("spDelete")}set spDelete(e){this.Set("spDelete",e)}get spCreateGenerated(){return this.Get("spCreateGenerated")}set spCreateGenerated(e){this.Set("spCreateGenerated",e)}get spUpdateGenerated(){return this.Get("spUpdateGenerated")}set spUpdateGenerated(e){this.Set("spUpdateGenerated",e)}get spDeleteGenerated(){return this.Get("spDeleteGenerated")}set spDeleteGenerated(e){this.Set("spDeleteGenerated",e)}get CascadeDeletes(){return this.Get("CascadeDeletes")}set CascadeDeletes(e){this.Set("CascadeDeletes",e)}get spMatch(){return this.Get("spMatch")}set spMatch(e){this.Set("spMatch",e)}get UserFormGenerated(){return this.Get("UserFormGenerated")}set UserFormGenerated(e){this.Set("UserFormGenerated",e)}get EntityObjectSubclassName(){return this.Get("EntityObjectSubclassName")}set EntityObjectSubclassName(e){this.Set("EntityObjectSubclassName",e)}get EntityObjectSubclassImport(){return this.Get("EntityObjectSubclassImport")}set EntityObjectSubclassImport(e){this.Set("EntityObjectSubclassImport",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get PreferredCommunicationField(){return this.Get("PreferredCommunicationField")}set PreferredCommunicationField(e){this.Set("PreferredCommunicationField",e)}get CodeName(){return this.Get("CodeName")}get ClassName(){return this.Get("ClassName")}get BaseTableCodeName(){return this.Get("BaseTableCodeName")}get ParentEntity(){return this.Get("ParentEntity")}get ParentBaseTable(){return this.Get("ParentBaseTable")}get ParentBaseView(){return this.Get("ParentBaseView")}};t.EntityEntity=v,t.EntityEntity=v=n([(0,s.RegisterClass)(i.BaseEntity,"Entities")],v);let E=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get FirstName(){return this.Get("FirstName")}set FirstName(e){this.Set("FirstName",e)}get LastName(){return this.Get("LastName")}set LastName(e){this.Set("LastName",e)}get Title(){return this.Get("Title")}set Title(e){this.Set("Title",e)}get Email(){return this.Get("Email")}set Email(e){this.Set("Email",e)}get Type(){return this.Get("Type")}set Type(e){this.Set("Type",e)}get IsActive(){return this.Get("IsActive")}set IsActive(e){this.Set("IsActive",e)}get LinkedRecordType(){return this.Get("LinkedRecordType")}set LinkedRecordType(e){this.Set("LinkedRecordType",e)}get EmployeeID(){return this.Get("EmployeeID")}set EmployeeID(e){this.Set("EmployeeID",e)}get LinkedEntityID(){return this.Get("LinkedEntityID")}set LinkedEntityID(e){this.Set("LinkedEntityID",e)}get LinkedEntityRecordID(){return this.Get("LinkedEntityRecordID")}set LinkedEntityRecordID(e){this.Set("LinkedEntityRecordID",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get FirstLast(){return this.Get("FirstLast")}get EmployeeFirstLast(){return this.Get("EmployeeFirstLast")}get EmployeeEmail(){return this.Get("EmployeeEmail")}get EmployeeTitle(){return this.Get("EmployeeTitle")}get EmployeeSupervisor(){return this.Get("EmployeeSupervisor")}get EmployeeSupervisorEmail(){return this.Get("EmployeeSupervisorEmail")}};t.UserEntity=E,t.UserEntity=E=n([(0,s.RegisterClass)(i.BaseEntity,"Users")],E);let I=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get EntityID(){return this.Get("EntityID")}set EntityID(e){this.Set("EntityID",e)}get Sequence(){return this.Get("Sequence")}set Sequence(e){this.Set("Sequence",e)}get RelatedEntityID(){return this.Get("RelatedEntityID")}set RelatedEntityID(e){this.Set("RelatedEntityID",e)}get BundleInAPI(){return this.Get("BundleInAPI")}set BundleInAPI(e){this.Set("BundleInAPI",e)}get IncludeInParentAllQuery(){return this.Get("IncludeInParentAllQuery")}set IncludeInParentAllQuery(e){this.Set("IncludeInParentAllQuery",e)}get Type(){return this.Get("Type")}set Type(e){this.Set("Type",e)}get EntityKeyField(){return this.Get("EntityKeyField")}set EntityKeyField(e){this.Set("EntityKeyField",e)}get RelatedEntityJoinField(){return this.Get("RelatedEntityJoinField")}set RelatedEntityJoinField(e){this.Set("RelatedEntityJoinField",e)}get JoinView(){return this.Get("JoinView")}set JoinView(e){this.Set("JoinView",e)}get JoinEntityJoinField(){return this.Get("JoinEntityJoinField")}set JoinEntityJoinField(e){this.Set("JoinEntityJoinField",e)}get JoinEntityInverseJoinField(){return this.Get("JoinEntityInverseJoinField")}set JoinEntityInverseJoinField(e){this.Set("JoinEntityInverseJoinField",e)}get DisplayInForm(){return this.Get("DisplayInForm")}set DisplayInForm(e){this.Set("DisplayInForm",e)}get DisplayName(){return this.Get("DisplayName")}set DisplayName(e){this.Set("DisplayName",e)}get DisplayUserViewGUID(){return this.Get("DisplayUserViewGUID")}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Entity(){return this.Get("Entity")}get EntityBaseTable(){return this.Get("EntityBaseTable")}get EntityBaseView(){return this.Get("EntityBaseView")}get RelatedEntity(){return this.Get("RelatedEntity")}get RelatedEntityBaseTable(){return this.Get("RelatedEntityBaseTable")}get RelatedEntityBaseView(){return this.Get("RelatedEntityBaseView")}get RelatedEntityClassName(){return this.Get("RelatedEntityClassName")}get RelatedEntityCodeName(){return this.Get("RelatedEntityCodeName")}get RelatedEntityBaseTableCodeName(){return this.Get("RelatedEntityBaseTableCodeName")}get DisplayUserViewName(){return this.Get("DisplayUserViewName")}get DisplayUserViewID(){return this.Get("DisplayUserViewID")}};t.EntityRelationshipEntity=I,t.EntityRelationshipEntity=I=n([(0,s.RegisterClass)(i.BaseEntity,"Entity Relationships")],I);let b=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for User Record Logs, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get UserID(){return this.Get("UserID")}set UserID(e){this.Set("UserID",e)}get EntityID(){return this.Get("EntityID")}set EntityID(e){this.Set("EntityID",e)}get RecordID(){return this.Get("RecordID")}set RecordID(e){this.Set("RecordID",e)}get EarliestAt(){return this.Get("EarliestAt")}set EarliestAt(e){this.Set("EarliestAt",e)}get LatestAt(){return this.Get("LatestAt")}set LatestAt(e){this.Set("LatestAt",e)}get TotalCount(){return this.Get("TotalCount")}set TotalCount(e){this.Set("TotalCount",e)}get Entity(){return this.Get("Entity")}get UserName(){return this.Get("UserName")}get UserFirstLast(){return this.Get("UserFirstLast")}get UserEmail(){return this.Get("UserEmail")}get UserSupervisor(){return this.Get("UserSupervisor")}get UserSupervisorEmail(){return this.Get("UserSupervisorEmail")}};t.UserRecordLogEntity=b,t.UserRecordLogEntity=b=n([(0,s.RegisterClass)(i.BaseEntity,"User Record Logs")],b);let D=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get UserID(){return this.Get("UserID")}set UserID(e){this.Set("UserID",e)}get EntityID(){return this.Get("EntityID")}set EntityID(e){this.Set("EntityID",e)}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get GUID(){return this.Get("GUID")}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get CategoryID(){return this.Get("CategoryID")}set CategoryID(e){this.Set("CategoryID",e)}get IsShared(){return this.Get("IsShared")}set IsShared(e){this.Set("IsShared",e)}get IsDefault(){return this.Get("IsDefault")}set IsDefault(e){this.Set("IsDefault",e)}get GridState(){return this.Get("GridState")}set GridState(e){this.Set("GridState",e)}get FilterState(){return this.Get("FilterState")}set FilterState(e){this.Set("FilterState",e)}get CustomFilterState(){return this.Get("CustomFilterState")}set CustomFilterState(e){this.Set("CustomFilterState",e)}get SmartFilterEnabled(){return this.Get("SmartFilterEnabled")}set SmartFilterEnabled(e){this.Set("SmartFilterEnabled",e)}get SmartFilterPrompt(){return this.Get("SmartFilterPrompt")}set SmartFilterPrompt(e){this.Set("SmartFilterPrompt",e)}get SmartFilterWhereClause(){return this.Get("SmartFilterWhereClause")}set SmartFilterWhereClause(e){this.Set("SmartFilterWhereClause",e)}get SmartFilterExplanation(){return this.Get("SmartFilterExplanation")}set SmartFilterExplanation(e){this.Set("SmartFilterExplanation",e)}get WhereClause(){return this.Get("WhereClause")}set WhereClause(e){this.Set("WhereClause",e)}get CustomWhereClause(){return this.Get("CustomWhereClause")}set CustomWhereClause(e){this.Set("CustomWhereClause",e)}get SortState(){return this.Get("SortState")}set SortState(e){this.Set("SortState",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get UserName(){return this.Get("UserName")}get UserFirstLast(){return this.Get("UserFirstLast")}get UserEmail(){return this.Get("UserEmail")}get UserType(){return this.Get("UserType")}get Entity(){return this.Get("Entity")}get EntityBaseView(){return this.Get("EntityBaseView")}};t.UserViewEntity=D,t.UserViewEntity=D=n([(0,s.RegisterClass)(i.BaseEntity,"User Views")],D);let S=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Company Integration Runs, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get CompanyIntegrationID(){return this.Get("CompanyIntegrationID")}set CompanyIntegrationID(e){this.Set("CompanyIntegrationID",e)}get RunByUserID(){return this.Get("RunByUserID")}set RunByUserID(e){this.Set("RunByUserID",e)}get StartedAt(){return this.Get("StartedAt")}set StartedAt(e){this.Set("StartedAt",e)}get EndedAt(){return this.Get("EndedAt")}set EndedAt(e){this.Set("EndedAt",e)}get TotalRecords(){return this.Get("TotalRecords")}set TotalRecords(e){this.Set("TotalRecords",e)}get Comments(){return this.Get("Comments")}set Comments(e){this.Set("Comments",e)}get RunByUser(){return this.Get("RunByUser")}};t.CompanyIntegrationRunEntity=S,t.CompanyIntegrationRunEntity=S=n([(0,s.RegisterClass)(i.BaseEntity,"Company Integration Runs")],S);let w=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Company Integration Run Details, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get CompanyIntegrationRunID(){return this.Get("CompanyIntegrationRunID")}set CompanyIntegrationRunID(e){this.Set("CompanyIntegrationRunID",e)}get EntityID(){return this.Get("EntityID")}set EntityID(e){this.Set("EntityID",e)}get RecordID(){return this.Get("RecordID")}set RecordID(e){this.Set("RecordID",e)}get Action(){return this.Get("Action")}set Action(e){this.Set("Action",e)}get ExecutedAt(){return this.Get("ExecutedAt")}set ExecutedAt(e){this.Set("ExecutedAt",e)}get IsSuccess(){return this.Get("IsSuccess")}set IsSuccess(e){this.Set("IsSuccess",e)}get Entity(){return this.Get("Entity")}get RunStartedAt(){return this.Get("RunStartedAt")}get RunEndedAt(){return this.Get("RunEndedAt")}};t.CompanyIntegrationRunDetailEntity=w,t.CompanyIntegrationRunDetailEntity=w=n([(0,s.RegisterClass)(i.BaseEntity,"Company Integration Run Details")],w);let A=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Error Logs, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get CompanyIntegrationRunID(){return this.Get("CompanyIntegrationRunID")}set CompanyIntegrationRunID(e){this.Set("CompanyIntegrationRunID",e)}get CompanyIntegrationRunDetailID(){return this.Get("CompanyIntegrationRunDetailID")}set CompanyIntegrationRunDetailID(e){this.Set("CompanyIntegrationRunDetailID",e)}get Code(){return this.Get("Code")}set Code(e){this.Set("Code",e)}get Message(){return this.Get("Message")}set Message(e){this.Set("Message",e)}get CreatedAt(){return this.Get("CreatedAt")}get CreatedBy(){return this.Get("CreatedBy")}set CreatedBy(e){this.Set("CreatedBy",e)}get Status(){return this.Get("Status")}set Status(e){this.Set("Status",e)}get Category(){return this.Get("Category")}set Category(e){this.Set("Category",e)}get Details(){return this.Get("Details")}set Details(e){this.Set("Details",e)}};t.ErrorLogEntity=A,t.ErrorLogEntity=A=n([(0,s.RegisterClass)(i.BaseEntity,"Error Logs")],A);let T=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}};t.ApplicationEntity=T,t.ApplicationEntity=T=n([(0,s.RegisterClass)(i.BaseEntity,"Applications")],T);let N=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get ApplicationName(){return this.Get("ApplicationName")}set ApplicationName(e){this.Set("ApplicationName",e)}get EntityID(){return this.Get("EntityID")}set EntityID(e){this.Set("EntityID",e)}get Sequence(){return this.Get("Sequence")}set Sequence(e){this.Set("Sequence",e)}get DefaultForNewUser(){return this.Get("DefaultForNewUser")}set DefaultForNewUser(e){this.Set("DefaultForNewUser",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Application(){return this.Get("Application")}get Entity(){return this.Get("Entity")}get EntityBaseTable(){return this.Get("EntityBaseTable")}get EntityCodeName(){return this.Get("EntityCodeName")}get EntityClassName(){return this.Get("EntityClassName")}get EntityBaseTableCodeName(){return this.Get("EntityBaseTableCodeName")}};t.ApplicationEntityEntity=N,t.ApplicationEntityEntity=N=n([(0,s.RegisterClass)(i.BaseEntity,"Application Entities")],N);let _=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get EntityID(){return this.Get("EntityID")}set EntityID(e){this.Set("EntityID",e)}get RoleName(){return this.Get("RoleName")}set RoleName(e){this.Set("RoleName",e)}get CanCreate(){return this.Get("CanCreate")}set CanCreate(e){this.Set("CanCreate",e)}get CanRead(){return this.Get("CanRead")}set CanRead(e){this.Set("CanRead",e)}get CanUpdate(){return this.Get("CanUpdate")}set CanUpdate(e){this.Set("CanUpdate",e)}get CanDelete(){return this.Get("CanDelete")}set CanDelete(e){this.Set("CanDelete",e)}get ReadRLSFilterID(){return this.Get("ReadRLSFilterID")}set ReadRLSFilterID(e){this.Set("ReadRLSFilterID",e)}get CreateRLSFilterID(){return this.Get("CreateRLSFilterID")}set CreateRLSFilterID(e){this.Set("CreateRLSFilterID",e)}get UpdateRLSFilterID(){return this.Get("UpdateRLSFilterID")}set UpdateRLSFilterID(e){this.Set("UpdateRLSFilterID",e)}get DeleteRLSFilterID(){return this.Get("DeleteRLSFilterID")}set DeleteRLSFilterID(e){this.Set("DeleteRLSFilterID",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Entity(){return this.Get("Entity")}get RoleSQLName(){return this.Get("RoleSQLName")}get CreateRLSFilter(){return this.Get("CreateRLSFilter")}get ReadRLSFilter(){return this.Get("ReadRLSFilter")}get UpdateRLSFilter(){return this.Get("UpdateRLSFilter")}get DeleteRLSFilter(){return this.Get("DeleteRLSFilter")}};t.EntityPermissionEntity=_,t.EntityPermissionEntity=_=n([(0,s.RegisterClass)(i.BaseEntity,"Entity Permissions")],_);let C=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get UserApplicationID(){return this.Get("UserApplicationID")}set UserApplicationID(e){this.Set("UserApplicationID",e)}get EntityID(){return this.Get("EntityID")}set EntityID(e){this.Set("EntityID",e)}get Sequence(){return this.Get("Sequence")}set Sequence(e){this.Set("Sequence",e)}get Application(){return this.Get("Application")}get User(){return this.Get("User")}get Entity(){return this.Get("Entity")}};t.UserApplicationEntityEntity=C,t.UserApplicationEntityEntity=C=n([(0,s.RegisterClass)(i.BaseEntity,"User Application Entities")],C);let R=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get UserID(){return this.Get("UserID")}set UserID(e){this.Set("UserID",e)}get ApplicationID(){return this.Get("ApplicationID")}set ApplicationID(e){this.Set("ApplicationID",e)}get Sequence(){return this.Get("Sequence")}set Sequence(e){this.Set("Sequence",e)}get IsActive(){return this.Get("IsActive")}set IsActive(e){this.Set("IsActive",e)}get User(){return this.Get("User")}get Application(){return this.Get("Application")}};t.UserApplicationEntity=R,t.UserApplicationEntity=R=n([(0,s.RegisterClass)(i.BaseEntity,"User Applications")],R);let O=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Company Integration Run API Logs, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get CompanyIntegrationRunID(){return this.Get("CompanyIntegrationRunID")}set CompanyIntegrationRunID(e){this.Set("CompanyIntegrationRunID",e)}get ExecutedAt(){return this.Get("ExecutedAt")}set ExecutedAt(e){this.Set("ExecutedAt",e)}get IsSuccess(){return this.Get("IsSuccess")}set IsSuccess(e){this.Set("IsSuccess",e)}get RequestMethod(){return this.Get("RequestMethod")}set RequestMethod(e){this.Set("RequestMethod",e)}get URL(){return this.Get("URL")}set URL(e){this.Set("URL",e)}get Parameters(){return this.Get("Parameters")}set Parameters(e){this.Set("Parameters",e)}};t.CompanyIntegrationRunAPILogEntity=O,t.CompanyIntegrationRunAPILogEntity=O=n([(0,s.RegisterClass)(i.BaseEntity,"Company Integration Run API Logs")],O);let P=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get EntityID(){return this.Get("EntityID")}set EntityID(e){this.Set("EntityID",e)}get UserID(){return this.Get("UserID")}set UserID(e){this.Set("UserID",e)}get ExternalSystemRecordID(){return this.Get("ExternalSystemRecordID")}set ExternalSystemRecordID(e){this.Set("ExternalSystemRecordID",e)}get CompanyIntegrationID(){return this.Get("CompanyIntegrationID")}set CompanyIntegrationID(e){this.Set("CompanyIntegrationID",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get CategoryID(){return this.Get("CategoryID")}set CategoryID(e){this.Set("CategoryID",e)}get Entity(){return this.Get("Entity")}get User(){return this.Get("User")}};t.ListEntity=P,t.ListEntity=P=n([(0,s.RegisterClass)(i.BaseEntity,"Lists")],P);let G=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get ListID(){return this.Get("ListID")}set ListID(e){this.Set("ListID",e)}get RecordID(){return this.Get("RecordID")}set RecordID(e){this.Set("RecordID",e)}get Sequence(){return this.Get("Sequence")}set Sequence(e){this.Set("Sequence",e)}get List(){return this.Get("List")}};t.ListDetailEntity=G,t.ListDetailEntity=G=n([(0,s.RegisterClass)(i.BaseEntity,"List Details")],G);let F=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for User View Runs, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get UserViewID(){return this.Get("UserViewID")}set UserViewID(e){this.Set("UserViewID",e)}get RunAt(){return this.Get("RunAt")}set RunAt(e){this.Set("RunAt",e)}get RunByUserID(){return this.Get("RunByUserID")}set RunByUserID(e){this.Set("RunByUserID",e)}get UserView(){return this.Get("UserView")}get RunByUser(){return this.Get("RunByUser")}};t.UserViewRunEntity=F,t.UserViewRunEntity=F=n([(0,s.RegisterClass)(i.BaseEntity,"User View Runs")],F);let L=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for User View Run Details, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get UserViewRunID(){return this.Get("UserViewRunID")}set UserViewRunID(e){this.Set("UserViewRunID",e)}get RecordID(){return this.Get("RecordID")}set RecordID(e){this.Set("RecordID",e)}get UserViewID(){return this.Get("UserViewID")}get EntityID(){return this.Get("EntityID")}};t.UserViewRunDetailEntity=L,t.UserViewRunDetailEntity=L=n([(0,s.RegisterClass)(i.BaseEntity,"User View Run Details")],L);let x=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Workflow Runs, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get WorkflowName(){return this.Get("WorkflowName")}set WorkflowName(e){this.Set("WorkflowName",e)}get ExternalSystemRecordID(){return this.Get("ExternalSystemRecordID")}set ExternalSystemRecordID(e){this.Set("ExternalSystemRecordID",e)}get StartedAt(){return this.Get("StartedAt")}set StartedAt(e){this.Set("StartedAt",e)}get EndedAt(){return this.Get("EndedAt")}set EndedAt(e){this.Set("EndedAt",e)}get Status(){return this.Get("Status")}set Status(e){this.Set("Status",e)}get Results(){return this.Get("Results")}set Results(e){this.Set("Results",e)}get Workflow(){return this.Get("Workflow")}get WorkflowEngineName(){return this.Get("WorkflowEngineName")}};t.WorkflowRunEntity=x,t.WorkflowRunEntity=x=n([(0,s.RegisterClass)(i.BaseEntity,"Workflow Runs")],x);let V=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Workflows, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get WorkflowEngineName(){return this.Get("WorkflowEngineName")}set WorkflowEngineName(e){this.Set("WorkflowEngineName",e)}get CompanyName(){return this.Get("CompanyName")}set CompanyName(e){this.Set("CompanyName",e)}get ExternalSystemRecordID(){return this.Get("ExternalSystemRecordID")}set ExternalSystemRecordID(e){this.Set("ExternalSystemRecordID",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get AutoRunEnabled(){return this.Get("AutoRunEnabled")}set AutoRunEnabled(e){this.Set("AutoRunEnabled",e)}get AutoRunIntervalUnits(){return this.Get("AutoRunIntervalUnits")}set AutoRunIntervalUnits(e){this.Set("AutoRunIntervalUnits",e)}get AutoRunInterval(){return this.Get("AutoRunInterval")}set AutoRunInterval(e){this.Set("AutoRunInterval",e)}get SubclassName(){return this.Get("SubclassName")}set SubclassName(e){this.Set("SubclassName",e)}get AutoRunIntervalMinutes(){return this.Get("AutoRunIntervalMinutes")}};t.WorkflowEntity=V,t.WorkflowEntity=V=n([(0,s.RegisterClass)(i.BaseEntity,"Workflows")],V);let U=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Workflow Engines, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get DriverPath(){return this.Get("DriverPath")}set DriverPath(e){this.Set("DriverPath",e)}get DriverClass(){return this.Get("DriverClass")}set DriverClass(e){this.Set("DriverClass",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}};t.WorkflowEngineEntity=U,t.WorkflowEngineEntity=U=n([(0,s.RegisterClass)(i.BaseEntity,"Workflow Engines")],U);let M=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Record Changes, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get EntityID(){return this.Get("EntityID")}set EntityID(e){this.Set("EntityID",e)}get RecordID(){return this.Get("RecordID")}set RecordID(e){this.Set("RecordID",e)}get UserID(){return this.Get("UserID")}set UserID(e){this.Set("UserID",e)}get ChangedAt(){return this.Get("ChangedAt")}set ChangedAt(e){this.Set("ChangedAt",e)}get ChangesJSON(){return this.Get("ChangesJSON")}set ChangesJSON(e){this.Set("ChangesJSON",e)}get ChangesDescription(){return this.Get("ChangesDescription")}set ChangesDescription(e){this.Set("ChangesDescription",e)}get FullRecordJSON(){return this.Get("FullRecordJSON")}set FullRecordJSON(e){this.Set("FullRecordJSON",e)}get Status(){return this.Get("Status")}set Status(e){this.Set("Status",e)}get Comments(){return this.Get("Comments")}set Comments(e){this.Set("Comments",e)}get Entity(){return this.Get("Entity")}get User(){return this.Get("User")}};t.RecordChangeEntity=M,t.RecordChangeEntity=M=n([(0,s.RegisterClass)(i.BaseEntity,"Record Changes")],M);let j=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get UserID(){return this.Get("UserID")}set UserID(e){this.Set("UserID",e)}get RoleName(){return this.Get("RoleName")}set RoleName(e){this.Set("RoleName",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get User(){return this.Get("User")}};t.UserRoleEntity=j,t.UserRoleEntity=j=n([(0,s.RegisterClass)(i.BaseEntity,"User Roles")],j);let k=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Save(e){throw new Error("Save is not allowed for Row Level Security Filters, to enable it set AllowCreateAPI and/or AllowUpdateAPI to 1 in the database.")}async Delete(){throw new Error("Delete is not allowed for Row Level Security Filters, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get FilterText(){return this.Get("FilterText")}set FilterText(e){this.Set("FilterText",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}};t.RowLevelSecurityFilterEntity=k,t.RowLevelSecurityFilterEntity=k=n([(0,s.RegisterClass)(i.BaseEntity,"Row Level Security Filters")],k);let B=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Audit Logs, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get AuditLogTypeName(){return this.Get("AuditLogTypeName")}set AuditLogTypeName(e){this.Set("AuditLogTypeName",e)}get UserID(){return this.Get("UserID")}set UserID(e){this.Set("UserID",e)}get AuthorizationName(){return this.Get("AuthorizationName")}set AuthorizationName(e){this.Set("AuthorizationName",e)}get Status(){return this.Get("Status")}set Status(e){this.Set("Status",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get Details(){return this.Get("Details")}set Details(e){this.Set("Details",e)}get EntityID(){return this.Get("EntityID")}set EntityID(e){this.Set("EntityID",e)}get RecordID(){return this.Get("RecordID")}set RecordID(e){this.Set("RecordID",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get User(){return this.Get("User")}get Entity(){return this.Get("Entity")}};t.AuditLogEntity=B,t.AuditLogEntity=B=n([(0,s.RegisterClass)(i.BaseEntity,"Audit Logs")],B);let $=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Save(e){throw new Error("Save is not allowed for Authorizations, to enable it set AllowCreateAPI and/or AllowUpdateAPI to 1 in the database.")}async Delete(){throw new Error("Delete is not allowed for Authorizations, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get ParentID(){return this.Get("ParentID")}set ParentID(e){this.Set("ParentID",e)}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get IsActive(){return this.Get("IsActive")}set IsActive(e){this.Set("IsActive",e)}get UseAuditLog(){return this.Get("UseAuditLog")}set UseAuditLog(e){this.Set("UseAuditLog",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Parent(){return this.Get("Parent")}};t.AuthorizationEntity=$,t.AuthorizationEntity=$=n([(0,s.RegisterClass)(i.BaseEntity,"Authorizations")],$);let K=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Save(e){throw new Error("Save is not allowed for Authorization Roles, to enable it set AllowCreateAPI and/or AllowUpdateAPI to 1 in the database.")}async Delete(){throw new Error("Delete is not allowed for Authorization Roles, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get AuthorizationName(){return this.Get("AuthorizationName")}set AuthorizationName(e){this.Set("AuthorizationName",e)}get RoleName(){return this.Get("RoleName")}set RoleName(e){this.Set("RoleName",e)}get Type(){return this.Get("Type")}set Type(e){this.Set("Type",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}};t.AuthorizationRoleEntity=K,t.AuthorizationRoleEntity=K=n([(0,s.RegisterClass)(i.BaseEntity,"Authorization Roles")],K);let q=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Save(e){throw new Error("Save is not allowed for Audit Log Types, to enable it set AllowCreateAPI and/or AllowUpdateAPI to 1 in the database.")}async Delete(){throw new Error("Delete is not allowed for Audit Log Types, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get ParentID(){return this.Get("ParentID")}set ParentID(e){this.Set("ParentID",e)}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get AuthorizationName(){return this.Get("AuthorizationName")}set AuthorizationName(e){this.Set("AuthorizationName",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Parent(){return this.Get("Parent")}};t.AuditLogTypeEntity=q,t.AuditLogTypeEntity=q=n([(0,s.RegisterClass)(i.BaseEntity,"Audit Log Types")],q);let Q=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Save(e){throw new Error("Save is not allowed for Entity Field Values, to enable it set AllowCreateAPI and/or AllowUpdateAPI to 1 in the database.")}async Delete(){throw new Error("Delete is not allowed for Entity Field Values, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get EntityID(){return this.Get("EntityID")}set EntityID(e){this.Set("EntityID",e)}get EntityFieldName(){return this.Get("EntityFieldName")}set EntityFieldName(e){this.Set("EntityFieldName",e)}get Sequence(){return this.Get("Sequence")}set Sequence(e){this.Set("Sequence",e)}get Value(){return this.Get("Value")}set Value(e){this.Set("Value",e)}get Code(){return this.Get("Code")}set Code(e){this.Set("Code",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get EntityField(){return this.Get("EntityField")}get Entity(){return this.Get("Entity")}};t.EntityFieldValueEntity=Q,t.EntityFieldValueEntity=Q=n([(0,s.RegisterClass)(i.BaseEntity,"Entity Field Values")],Q);let W=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Vendor(){return this.Get("Vendor")}set Vendor(e){this.Set("Vendor",e)}get AIModelTypeID(){return this.Get("AIModelTypeID")}set AIModelTypeID(e){this.Set("AIModelTypeID",e)}get IsActive(){return this.Get("IsActive")}set IsActive(e){this.Set("IsActive",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get DriverClass(){return this.Get("DriverClass")}set DriverClass(e){this.Set("DriverClass",e)}get DriverImportPath(){return this.Get("DriverImportPath")}set DriverImportPath(e){this.Set("DriverImportPath",e)}get APIName(){return this.Get("APIName")}set APIName(e){this.Set("APIName",e)}get PowerRank(){return this.Get("PowerRank")}set PowerRank(e){this.Set("PowerRank",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get AIModelType(){return this.Get("AIModelType")}};t.AIModelEntity=W,t.AIModelEntity=W=n([(0,s.RegisterClass)(i.BaseEntity,"AI Models")],W);let J=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get DefaultModelID(){return this.Get("DefaultModelID")}set DefaultModelID(e){this.Set("DefaultModelID",e)}get DefaultPrompt(){return this.Get("DefaultPrompt")}set DefaultPrompt(e){this.Set("DefaultPrompt",e)}get IsActive(){return this.Get("IsActive")}set IsActive(e){this.Set("IsActive",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get DefaultModel(){return this.Get("DefaultModel")}};t.AIActionEntity=J,t.AIActionEntity=J=n([(0,s.RegisterClass)(i.BaseEntity,"AI Actions")],J);let z=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get AIModelID(){return this.Get("AIModelID")}set AIModelID(e){this.Set("AIModelID",e)}get AIActionID(){return this.Get("AIActionID")}set AIActionID(e){this.Set("AIActionID",e)}get IsActive(){return this.Get("IsActive")}set IsActive(e){this.Set("IsActive",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get AIModel(){return this.Get("AIModel")}get AIAction(){return this.Get("AIAction")}};t.AIModelActionEntity=z,t.AIModelActionEntity=z=n([(0,s.RegisterClass)(i.BaseEntity,"AI Model Actions")],z);let Y=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get EntityID(){return this.Get("EntityID")}set EntityID(e){this.Set("EntityID",e)}get AIActionID(){return this.Get("AIActionID")}set AIActionID(e){this.Set("AIActionID",e)}get AIModelID(){return this.Get("AIModelID")}set AIModelID(e){this.Set("AIModelID",e)}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Prompt(){return this.Get("Prompt")}set Prompt(e){this.Set("Prompt",e)}get TriggerEvent(){return this.Get("TriggerEvent")}set TriggerEvent(e){this.Set("TriggerEvent",e)}get UserMessage(){return this.Get("UserMessage")}set UserMessage(e){this.Set("UserMessage",e)}get OutputType(){return this.Get("OutputType")}set OutputType(e){this.Set("OutputType",e)}get OutputField(){return this.Get("OutputField")}set OutputField(e){this.Set("OutputField",e)}get SkipIfOutputFieldNotEmpty(){return this.Get("SkipIfOutputFieldNotEmpty")}set SkipIfOutputFieldNotEmpty(e){this.Set("SkipIfOutputFieldNotEmpty",e)}get OutputEntityID(){return this.Get("OutputEntityID")}set OutputEntityID(e){this.Set("OutputEntityID",e)}get Comments(){return this.Get("Comments")}set Comments(e){this.Set("Comments",e)}get Entity(){return this.Get("Entity")}get AIAction(){return this.Get("AIAction")}get AIModel(){return this.Get("AIModel")}get OutputEntity(){return this.Get("OutputEntity")}};t.EntityAIActionEntity=Y,t.EntityAIActionEntity=Y=n([(0,s.RegisterClass)(i.BaseEntity,"Entity AI Actions")],Y);let H=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}};t.AIModelTypeEntity=H,t.AIModelTypeEntity=H=n([(0,s.RegisterClass)(i.BaseEntity,"AI Model Types")],H);let X=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Save(e){throw new Error("Save is not allowed for Queue Types, to enable it set AllowCreateAPI and/or AllowUpdateAPI to 1 in the database.")}async Delete(){throw new Error("Delete is not allowed for Queue Types, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get DriverClass(){return this.Get("DriverClass")}set DriverClass(e){this.Set("DriverClass",e)}get DriverImportPath(){return this.Get("DriverImportPath")}set DriverImportPath(e){this.Set("DriverImportPath",e)}get IsActive(){return this.Get("IsActive")}set IsActive(e){this.Set("IsActive",e)}};t.QueueTypeEntity=X,t.QueueTypeEntity=X=n([(0,s.RegisterClass)(i.BaseEntity,"Queue Types")],X);let Z=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Queues, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get QueueTypeID(){return this.Get("QueueTypeID")}set QueueTypeID(e){this.Set("QueueTypeID",e)}get IsActive(){return this.Get("IsActive")}set IsActive(e){this.Set("IsActive",e)}get ProcessPID(){return this.Get("ProcessPID")}set ProcessPID(e){this.Set("ProcessPID",e)}get ProcessPlatform(){return this.Get("ProcessPlatform")}set ProcessPlatform(e){this.Set("ProcessPlatform",e)}get ProcessVersion(){return this.Get("ProcessVersion")}set ProcessVersion(e){this.Set("ProcessVersion",e)}get ProcessCwd(){return this.Get("ProcessCwd")}set ProcessCwd(e){this.Set("ProcessCwd",e)}get ProcessIPAddress(){return this.Get("ProcessIPAddress")}set ProcessIPAddress(e){this.Set("ProcessIPAddress",e)}get ProcessMacAddress(){return this.Get("ProcessMacAddress")}set ProcessMacAddress(e){this.Set("ProcessMacAddress",e)}get ProcessOSName(){return this.Get("ProcessOSName")}set ProcessOSName(e){this.Set("ProcessOSName",e)}get ProcessOSVersion(){return this.Get("ProcessOSVersion")}set ProcessOSVersion(e){this.Set("ProcessOSVersion",e)}get ProcessHostName(){return this.Get("ProcessHostName")}set ProcessHostName(e){this.Set("ProcessHostName",e)}get ProcessUserID(){return this.Get("ProcessUserID")}set ProcessUserID(e){this.Set("ProcessUserID",e)}get ProcessUserName(){return this.Get("ProcessUserName")}set ProcessUserName(e){this.Set("ProcessUserName",e)}get LastHeartbeat(){return this.Get("LastHeartbeat")}set LastHeartbeat(e){this.Set("LastHeartbeat",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get QueueType(){return this.Get("QueueType")}};t.QueueEntity=Z,t.QueueEntity=Z=n([(0,s.RegisterClass)(i.BaseEntity,"Queues")],Z);let ee=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Queue Tasks, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get QueueID(){return this.Get("QueueID")}set QueueID(e){this.Set("QueueID",e)}get Status(){return this.Get("Status")}set Status(e){this.Set("Status",e)}get StartedAt(){return this.Get("StartedAt")}set StartedAt(e){this.Set("StartedAt",e)}get EndedAt(){return this.Get("EndedAt")}set EndedAt(e){this.Set("EndedAt",e)}get Data(){return this.Get("Data")}set Data(e){this.Set("Data",e)}get Options(){return this.Get("Options")}set Options(e){this.Set("Options",e)}get Output(){return this.Get("Output")}set Output(e){this.Set("Output",e)}get ErrorMessage(){return this.Get("ErrorMessage")}set ErrorMessage(e){this.Set("ErrorMessage",e)}get Comments(){return this.Get("Comments")}set Comments(e){this.Set("Comments",e)}get Queue(){return this.Get("Queue")}};t.QueueTaskEntity=ee,t.QueueTaskEntity=ee=n([(0,s.RegisterClass)(i.BaseEntity,"Queue Tasks")],ee);let te=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get CategoryID(){return this.Get("CategoryID")}set CategoryID(e){this.Set("CategoryID",e)}get UIConfigDetails(){return this.Get("UIConfigDetails")}set UIConfigDetails(e){this.Set("UIConfigDetails",e)}get UserID(){return this.Get("UserID")}set UserID(e){this.Set("UserID",e)}get Category(){return this.Get("Category")}get User(){return this.Get("User")}};t.DashboardEntity=te,t.DashboardEntity=te=n([(0,s.RegisterClass)(i.BaseEntity,"Dashboards")],te);let re=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Save(e){throw new Error("Save is not allowed for Output Trigger Types, to enable it set AllowCreateAPI and/or AllowUpdateAPI to 1 in the database.")}async Delete(){throw new Error("Delete is not allowed for Output Trigger Types, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}};t.OutputTriggerTypeEntity=re,t.OutputTriggerTypeEntity=re=n([(0,s.RegisterClass)(i.BaseEntity,"Output Trigger Types")],re);let ne=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Save(e){throw new Error("Save is not allowed for Output Format Types, to enable it set AllowCreateAPI and/or AllowUpdateAPI to 1 in the database.")}async Delete(){throw new Error("Delete is not allowed for Output Format Types, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get DisplayFormat(){return this.Get("DisplayFormat")}set DisplayFormat(e){this.Set("DisplayFormat",e)}};t.OutputFormatTypeEntity=ne,t.OutputFormatTypeEntity=ne=n([(0,s.RegisterClass)(i.BaseEntity,"Output Format Types")],ne);let ie=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Save(e){throw new Error("Save is not allowed for Output Delivery Types, to enable it set AllowCreateAPI and/or AllowUpdateAPI to 1 in the database.")}async Delete(){throw new Error("Delete is not allowed for Output Delivery Types, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}};t.OutputDeliveryTypeEntity=ie,t.OutputDeliveryTypeEntity=ie=n([(0,s.RegisterClass)(i.BaseEntity,"Output Delivery Types")],ie);let se=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get CategoryID(){return this.Get("CategoryID")}set CategoryID(e){this.Set("CategoryID",e)}get UserID(){return this.Get("UserID")}set UserID(e){this.Set("UserID",e)}get SharingScope(){return this.Get("SharingScope")}set SharingScope(e){this.Set("SharingScope",e)}get ConversationID(){return this.Get("ConversationID")}set ConversationID(e){this.Set("ConversationID",e)}get ConversationDetailID(){return this.Get("ConversationDetailID")}set ConversationDetailID(e){this.Set("ConversationDetailID",e)}get DataContextID(){return this.Get("DataContextID")}set DataContextID(e){this.Set("DataContextID",e)}get Configuration(){return this.Get("Configuration")}set Configuration(e){this.Set("Configuration",e)}get OutputTriggerTypeID(){return this.Get("OutputTriggerTypeID")}set OutputTriggerTypeID(e){this.Set("OutputTriggerTypeID",e)}get OutputFormatTypeID(){return this.Get("OutputFormatTypeID")}set OutputFormatTypeID(e){this.Set("OutputFormatTypeID",e)}get OutputDeliveryTypeID(){return this.Get("OutputDeliveryTypeID")}set OutputDeliveryTypeID(e){this.Set("OutputDeliveryTypeID",e)}get OutputEventID(){return this.Get("OutputEventID")}set OutputEventID(e){this.Set("OutputEventID",e)}get OutputFrequency(){return this.Get("OutputFrequency")}set OutputFrequency(e){this.Set("OutputFrequency",e)}get OutputTargetEmail(){return this.Get("OutputTargetEmail")}set OutputTargetEmail(e){this.Set("OutputTargetEmail",e)}get OutputWorkflowID(){return this.Get("OutputWorkflowID")}set OutputWorkflowID(e){this.Set("OutputWorkflowID",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Category(){return this.Get("Category")}get User(){return this.Get("User")}get Conversation(){return this.Get("Conversation")}get DataContext(){return this.Get("DataContext")}get OutputTriggerType(){return this.Get("OutputTriggerType")}get OutputFormatType(){return this.Get("OutputFormatType")}get OutputDeliveryType(){return this.Get("OutputDeliveryType")}get OutputEvent(){return this.Get("OutputEvent")}get OutputWorkflow(){return this.Get("OutputWorkflow")}};t.ReportEntity=se,t.ReportEntity=se=n([(0,s.RegisterClass)(i.BaseEntity,"Reports")],se);let oe=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get ReportID(){return this.Get("ReportID")}set ReportID(e){this.Set("ReportID",e)}get ResultSet(){return this.Get("ResultSet")}set ResultSet(e){this.Set("ResultSet",e)}get CreatedAt(){return this.Get("CreatedAt")}get UserID(){return this.Get("UserID")}set UserID(e){this.Set("UserID",e)}get Report(){return this.Get("Report")}get User(){return this.Get("User")}};t.ReportSnapshotEntity=oe,t.ReportSnapshotEntity=oe=n([(0,s.RegisterClass)(i.BaseEntity,"Report Snapshots")],oe);let ae=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Save(e){throw new Error("Save is not allowed for Resource Types, to enable it set AllowCreateAPI and/or AllowUpdateAPI to 1 in the database.")}async Delete(){throw new Error("Delete is not allowed for Resource Types, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get DisplayName(){return this.Get("DisplayName")}set DisplayName(e){this.Set("DisplayName",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get Icon(){return this.Get("Icon")}set Icon(e){this.Set("Icon",e)}get EntityID(){return this.Get("EntityID")}set EntityID(e){this.Set("EntityID",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Entity(){return this.Get("Entity")}};t.ResourceTypeEntity=ae,t.ResourceTypeEntity=ae=n([(0,s.RegisterClass)(i.BaseEntity,"Resource Types")],ae);let ue=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Save(e){throw new Error("Save is not allowed for Tags, to enable it set AllowCreateAPI and/or AllowUpdateAPI to 1 in the database.")}async Delete(){throw new Error("Delete is not allowed for Tags, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get DisplayName(){return this.Get("DisplayName")}set DisplayName(e){this.Set("DisplayName",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get ParentID(){return this.Get("ParentID")}set ParentID(e){this.Set("ParentID",e)}get Parent(){return this.Get("Parent")}};t.TagEntity=ue,t.TagEntity=ue=n([(0,s.RegisterClass)(i.BaseEntity,"Tags")],ue);let le=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Save(e){throw new Error("Save is not allowed for Tagged Items, to enable it set AllowCreateAPI and/or AllowUpdateAPI to 1 in the database.")}get ID(){return this.Get("ID")}get TagID(){return this.Get("TagID")}set TagID(e){this.Set("TagID",e)}get EntityID(){return this.Get("EntityID")}set EntityID(e){this.Set("EntityID",e)}get RecordID(){return this.Get("RecordID")}set RecordID(e){this.Set("RecordID",e)}get Tag(){return this.Get("Tag")}get Entity(){return this.Get("Entity")}};t.TaggedItemEntity=le,t.TaggedItemEntity=le=n([(0,s.RegisterClass)(i.BaseEntity,"Tagged Items")],le);let ce=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get UserID(){return this.Get("UserID")}set UserID(e){this.Set("UserID",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get User(){return this.Get("User")}};t.WorkspaceEntity=ce,t.WorkspaceEntity=ce=n([(0,s.RegisterClass)(i.BaseEntity,"Workspaces")],ce);let de=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get WorkSpaceID(){return this.Get("WorkSpaceID")}set WorkSpaceID(e){this.Set("WorkSpaceID",e)}get ResourceTypeID(){return this.Get("ResourceTypeID")}set ResourceTypeID(e){this.Set("ResourceTypeID",e)}get ResourceRecordID(){return this.Get("ResourceRecordID")}set ResourceRecordID(e){this.Set("ResourceRecordID",e)}get Sequence(){return this.Get("Sequence")}set Sequence(e){this.Set("Sequence",e)}get Configuration(){return this.Get("Configuration")}set Configuration(e){this.Set("Configuration",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get WorkSpace(){return this.Get("WorkSpace")}get ResourceType(){return this.Get("ResourceType")}};t.WorkspaceItemEntity=de,t.WorkspaceItemEntity=de=n([(0,s.RegisterClass)(i.BaseEntity,"Workspace Items")],de);let pe=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Save(e){throw new Error("Save is not allowed for Datasets, to enable it set AllowCreateAPI and/or AllowUpdateAPI to 1 in the database.")}async Delete(){throw new Error("Delete is not allowed for Datasets, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}};t.DatasetEntity=pe,t.DatasetEntity=pe=n([(0,s.RegisterClass)(i.BaseEntity,"Datasets")],pe);let he=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Save(e){throw new Error("Save is not allowed for Dataset Items, to enable it set AllowCreateAPI and/or AllowUpdateAPI to 1 in the database.")}async Delete(){throw new Error("Delete is not allowed for Dataset Items, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get Code(){return this.Get("Code")}set Code(e){this.Set("Code",e)}get DatasetName(){return this.Get("DatasetName")}set DatasetName(e){this.Set("DatasetName",e)}get Sequence(){return this.Get("Sequence")}set Sequence(e){this.Set("Sequence",e)}get EntityID(){return this.Get("EntityID")}set EntityID(e){this.Set("EntityID",e)}get WhereClause(){return this.Get("WhereClause")}set WhereClause(e){this.Set("WhereClause",e)}get DateFieldToCheck(){return this.Get("DateFieldToCheck")}set DateFieldToCheck(e){this.Set("DateFieldToCheck",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Entity(){return this.Get("Entity")}};t.DatasetItemEntity=he,t.DatasetItemEntity=he=n([(0,s.RegisterClass)(i.BaseEntity,"Dataset Items")],he);let ye=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get ConversationID(){return this.Get("ConversationID")}set ConversationID(e){this.Set("ConversationID",e)}get ExternalID(){return this.Get("ExternalID")}set ExternalID(e){this.Set("ExternalID",e)}get Role(){return this.Get("Role")}set Role(e){this.Set("Role",e)}get Message(){return this.Get("Message")}set Message(e){this.Set("Message",e)}get Error(){return this.Get("Error")}set Error(e){this.Set("Error",e)}get HiddenToUser(){return this.Get("HiddenToUser")}set HiddenToUser(e){this.Set("HiddenToUser",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Conversation(){return this.Get("Conversation")}};t.ConversationDetailEntity=ye,t.ConversationDetailEntity=ye=n([(0,s.RegisterClass)(i.BaseEntity,"Conversation Details")],ye);let fe=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get UserID(){return this.Get("UserID")}set UserID(e){this.Set("UserID",e)}get ExternalID(){return this.Get("ExternalID")}set ExternalID(e){this.Set("ExternalID",e)}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get Type(){return this.Get("Type")}set Type(e){this.Set("Type",e)}get IsArchived(){return this.Get("IsArchived")}set IsArchived(e){this.Set("IsArchived",e)}get LinkedEntityID(){return this.Get("LinkedEntityID")}set LinkedEntityID(e){this.Set("LinkedEntityID",e)}get LinkedRecordID(){return this.Get("LinkedRecordID")}set LinkedRecordID(e){this.Set("LinkedRecordID",e)}get DataContextID(){return this.Get("DataContextID")}set DataContextID(e){this.Set("DataContextID",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get User(){return this.Get("User")}get LinkedEntity(){return this.Get("LinkedEntity")}};t.ConversationEntity=fe,t.ConversationEntity=fe=n([(0,s.RegisterClass)(i.BaseEntity,"Conversations")],fe);let me=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get UserID(){return this.Get("UserID")}set UserID(e){this.Set("UserID",e)}get Title(){return this.Get("Title")}set Title(e){this.Set("Title",e)}get Message(){return this.Get("Message")}set Message(e){this.Set("Message",e)}get ResourceTypeID(){return this.Get("ResourceTypeID")}set ResourceTypeID(e){this.Set("ResourceTypeID",e)}get ResourceRecordID(){return this.Get("ResourceRecordID")}set ResourceRecordID(e){this.Set("ResourceRecordID",e)}get ResourceConfiguration(){return this.Get("ResourceConfiguration")}set ResourceConfiguration(e){this.Set("ResourceConfiguration",e)}get Unread(){return this.Get("Unread")}set Unread(e){this.Set("Unread",e)}get ReadAt(){return this.Get("ReadAt")}set ReadAt(e){this.Set("ReadAt",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get User(){return this.Get("User")}};t.UserNotificationEntity=me,t.UserNotificationEntity=me=n([(0,s.RegisterClass)(i.BaseEntity,"User Notifications")],me);let ge=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Schema Info, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get SchemaName(){return this.Get("SchemaName")}set SchemaName(e){this.Set("SchemaName",e)}get EntityIDMin(){return this.Get("EntityIDMin")}set EntityIDMin(e){this.Set("EntityIDMin",e)}get EntityIDMax(){return this.Get("EntityIDMax")}set EntityIDMax(e){this.Set("EntityIDMax",e)}get Comments(){return this.Get("Comments")}set Comments(e){this.Set("Comments",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}};t.SchemaInfoEntity=ge,t.SchemaInfoEntity=ge=n([(0,s.RegisterClass)(i.BaseEntity,"Schema Info")],ge);let ve=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Company Integration Record Maps, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get CompanyIntegrationID(){return this.Get("CompanyIntegrationID")}set CompanyIntegrationID(e){this.Set("CompanyIntegrationID",e)}get ExternalSystemRecordID(){return this.Get("ExternalSystemRecordID")}set ExternalSystemRecordID(e){this.Set("ExternalSystemRecordID",e)}get EntityID(){return this.Get("EntityID")}set EntityID(e){this.Set("EntityID",e)}get EntityRecordID(){return this.Get("EntityRecordID")}set EntityRecordID(e){this.Set("EntityRecordID",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Entity(){return this.Get("Entity")}};t.CompanyIntegrationRecordMapEntity=ve,t.CompanyIntegrationRecordMapEntity=ve=n([(0,s.RegisterClass)(i.BaseEntity,"Company Integration Record Maps")],ve);let Ee=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Record Merge Logs, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get EntityID(){return this.Get("EntityID")}set EntityID(e){this.Set("EntityID",e)}get SurvivingRecordID(){return this.Get("SurvivingRecordID")}set SurvivingRecordID(e){this.Set("SurvivingRecordID",e)}get InitiatedByUserID(){return this.Get("InitiatedByUserID")}set InitiatedByUserID(e){this.Set("InitiatedByUserID",e)}get ApprovalStatus(){return this.Get("ApprovalStatus")}set ApprovalStatus(e){this.Set("ApprovalStatus",e)}get ApprovedByUserID(){return this.Get("ApprovedByUserID")}set ApprovedByUserID(e){this.Set("ApprovedByUserID",e)}get ProcessingStatus(){return this.Get("ProcessingStatus")}set ProcessingStatus(e){this.Set("ProcessingStatus",e)}get ProcessingStartedAt(){return this.Get("ProcessingStartedAt")}set ProcessingStartedAt(e){this.Set("ProcessingStartedAt",e)}get ProcessingEndedAt(){return this.Get("ProcessingEndedAt")}set ProcessingEndedAt(e){this.Set("ProcessingEndedAt",e)}get ProcessingLog(){return this.Get("ProcessingLog")}set ProcessingLog(e){this.Set("ProcessingLog",e)}get Comments(){return this.Get("Comments")}set Comments(e){this.Set("Comments",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Entity(){return this.Get("Entity")}get InitiatedByUser(){return this.Get("InitiatedByUser")}};t.RecordMergeLogEntity=Ee,t.RecordMergeLogEntity=Ee=n([(0,s.RegisterClass)(i.BaseEntity,"Record Merge Logs")],Ee);let Ie=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Record Merge Deletion Logs, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get RecordMergeLogID(){return this.Get("RecordMergeLogID")}set RecordMergeLogID(e){this.Set("RecordMergeLogID",e)}get DeletedRecordID(){return this.Get("DeletedRecordID")}set DeletedRecordID(e){this.Set("DeletedRecordID",e)}get Status(){return this.Get("Status")}set Status(e){this.Set("Status",e)}get ProcessingLog(){return this.Get("ProcessingLog")}set ProcessingLog(e){this.Set("ProcessingLog",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}};t.RecordMergeDeletionLogEntity=Ie,t.RecordMergeDeletionLogEntity=Ie=n([(0,s.RegisterClass)(i.BaseEntity,"Record Merge Deletion Logs")],Ie);let be=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Query Fields, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get QueryID(){return this.Get("QueryID")}set QueryID(e){this.Set("QueryID",e)}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get Sequence(){return this.Get("Sequence")}set Sequence(e){this.Set("Sequence",e)}get SQLBaseType(){return this.Get("SQLBaseType")}set SQLBaseType(e){this.Set("SQLBaseType",e)}get SQLFullType(){return this.Get("SQLFullType")}set SQLFullType(e){this.Set("SQLFullType",e)}get SourceEntityID(){return this.Get("SourceEntityID")}set SourceEntityID(e){this.Set("SourceEntityID",e)}get SourceFieldName(){return this.Get("SourceFieldName")}set SourceFieldName(e){this.Set("SourceFieldName",e)}get IsComputed(){return this.Get("IsComputed")}set IsComputed(e){this.Set("IsComputed",e)}get ComputationDescription(){return this.Get("ComputationDescription")}set ComputationDescription(e){this.Set("ComputationDescription",e)}get IsSummary(){return this.Get("IsSummary")}set IsSummary(e){this.Set("IsSummary",e)}get SummaryDescription(){return this.Get("SummaryDescription")}set SummaryDescription(e){this.Set("SummaryDescription",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Query(){return this.Get("Query")}get SourceEntity(){return this.Get("SourceEntity")}};t.QueryFieldEntity=be,t.QueryFieldEntity=be=n([(0,s.RegisterClass)(i.BaseEntity,"Query Fields")],be);let De=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get ParentID(){return this.Get("ParentID")}set ParentID(e){this.Set("ParentID",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get UserID(){return this.Get("UserID")}set UserID(e){this.Set("UserID",e)}get Parent(){return this.Get("Parent")}get User(){return this.Get("User")}};t.QueryCategoryEntity=De,t.QueryCategoryEntity=De=n([(0,s.RegisterClass)(i.BaseEntity,"Query Categories")],De);let Se=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Queries, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get CategoryID(){return this.Get("CategoryID")}set CategoryID(e){this.Set("CategoryID",e)}get SQL(){return this.Get("SQL")}set SQL(e){this.Set("SQL",e)}get OriginalSQL(){return this.Get("OriginalSQL")}set OriginalSQL(e){this.Set("OriginalSQL",e)}get Feedback(){return this.Get("Feedback")}set Feedback(e){this.Set("Feedback",e)}get Status(){return this.Get("Status")}set Status(e){this.Set("Status",e)}get QualityRank(){return this.Get("QualityRank")}set QualityRank(e){this.Set("QualityRank",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Category(){return this.Get("Category")}};t.QueryEntity=Se,t.QueryEntity=Se=n([(0,s.RegisterClass)(i.BaseEntity,"Queries")],Se);let we=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Query Permissions, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get QueryID(){return this.Get("QueryID")}set QueryID(e){this.Set("QueryID",e)}get RoleName(){return this.Get("RoleName")}set RoleName(e){this.Set("RoleName",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}};t.QueryPermissionEntity=we,t.QueryPermissionEntity=we=n([(0,s.RegisterClass)(i.BaseEntity,"Query Permissions")],we);let Ae=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Vector Indexes, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get VectorDatabaseID(){return this.Get("VectorDatabaseID")}set VectorDatabaseID(e){this.Set("VectorDatabaseID",e)}get EmbeddingModelID(){return this.Get("EmbeddingModelID")}set EmbeddingModelID(e){this.Set("EmbeddingModelID",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get VectorDatabase(){return this.Get("VectorDatabase")}get EmbeddingModel(){return this.Get("EmbeddingModel")}};t.VectorIndexEntity=Ae,t.VectorIndexEntity=Ae=n([(0,s.RegisterClass)(i.BaseEntity,"Vector Indexes")],Ae);let Te=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Entity Document Types, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}};t.EntityDocumentTypeEntity=Te,t.EntityDocumentTypeEntity=Te=n([(0,s.RegisterClass)(i.BaseEntity,"Entity Document Types")],Te);let Ne=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Entity Document Runs, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get EntityDocumentID(){return this.Get("EntityDocumentID")}set EntityDocumentID(e){this.Set("EntityDocumentID",e)}get StartedAt(){return this.Get("StartedAt")}set StartedAt(e){this.Set("StartedAt",e)}get EndedAt(){return this.Get("EndedAt")}set EndedAt(e){this.Set("EndedAt",e)}get Status(){return this.Get("Status")}set Status(e){this.Set("Status",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get EntityDocument(){return this.Get("EntityDocument")}};t.EntityDocumentRunEntity=Ne,t.EntityDocumentRunEntity=Ne=n([(0,s.RegisterClass)(i.BaseEntity,"Entity Document Runs")],Ne);let _e=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Vector Databases, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get DefaultURL(){return this.Get("DefaultURL")}set DefaultURL(e){this.Set("DefaultURL",e)}get ClassKey(){return this.Get("ClassKey")}set ClassKey(e){this.Set("ClassKey",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}};t.VectorDatabaseEntity=_e,t.VectorDatabaseEntity=_e=n([(0,s.RegisterClass)(i.BaseEntity,"Vector Databases")],_e);let Ce=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Entity Record Documents, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get EntityID(){return this.Get("EntityID")}set EntityID(e){this.Set("EntityID",e)}get RecordID(){return this.Get("RecordID")}set RecordID(e){this.Set("RecordID",e)}get DocumentText(){return this.Get("DocumentText")}set DocumentText(e){this.Set("DocumentText",e)}get VectorIndexID(){return this.Get("VectorIndexID")}set VectorIndexID(e){this.Set("VectorIndexID",e)}get VectorID(){return this.Get("VectorID")}set VectorID(e){this.Set("VectorID",e)}get VectorJSON(){return this.Get("VectorJSON")}set VectorJSON(e){this.Set("VectorJSON",e)}get EntityRecordUpdatedAt(){return this.Get("EntityRecordUpdatedAt")}set EntityRecordUpdatedAt(e){this.Set("EntityRecordUpdatedAt",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get EntityDocumentID(){return this.Get("EntityDocumentID")}set EntityDocumentID(e){this.Set("EntityDocumentID",e)}};t.EntityRecordDocumentEntity=Ce,t.EntityRecordDocumentEntity=Ce=n([(0,s.RegisterClass)(i.BaseEntity,"Entity Record Documents")],Ce);let Re=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Entity Documents, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get EntityID(){return this.Get("EntityID")}set EntityID(e){this.Set("EntityID",e)}get TypeID(){return this.Get("TypeID")}set TypeID(e){this.Set("TypeID",e)}get Status(){return this.Get("Status")}set Status(e){this.Set("Status",e)}get Template(){return this.Get("Template")}set Template(e){this.Set("Template",e)}get VectorDatabaseID(){return this.Get("VectorDatabaseID")}set VectorDatabaseID(e){this.Set("VectorDatabaseID",e)}get AIModelID(){return this.Get("AIModelID")}set AIModelID(e){this.Set("AIModelID",e)}get PotentialMatchThreshold(){return this.Get("PotentialMatchThreshold")}set PotentialMatchThreshold(e){this.Set("PotentialMatchThreshold",e)}get AbsoluteMatchThreshold(){return this.Get("AbsoluteMatchThreshold")}set AbsoluteMatchThreshold(e){this.Set("AbsoluteMatchThreshold",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Entity(){return this.Get("Entity")}get Type(){return this.Get("Type")}};t.EntityDocumentEntity=Re,t.EntityDocumentEntity=Re=n([(0,s.RegisterClass)(i.BaseEntity,"Entity Documents")],Re);let Oe=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get DataContextID(){return this.Get("DataContextID")}set DataContextID(e){this.Set("DataContextID",e)}get Type(){return this.Get("Type")}set Type(e){this.Set("Type",e)}get ViewID(){return this.Get("ViewID")}set ViewID(e){this.Set("ViewID",e)}get QueryID(){return this.Get("QueryID")}set QueryID(e){this.Set("QueryID",e)}get EntityID(){return this.Get("EntityID")}set EntityID(e){this.Set("EntityID",e)}get RecordID(){return this.Get("RecordID")}set RecordID(e){this.Set("RecordID",e)}get SQL(){return this.Get("SQL")}set SQL(e){this.Set("SQL",e)}get DataJSON(){return this.Get("DataJSON")}set DataJSON(e){this.Set("DataJSON",e)}get LastRefreshedAt(){return this.Get("LastRefreshedAt")}set LastRefreshedAt(e){this.Set("LastRefreshedAt",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get DataContext(){return this.Get("DataContext")}get View(){return this.Get("View")}get Query(){return this.Get("Query")}get Entity(){return this.Get("Entity")}};t.DataContextItemEntity=Oe,t.DataContextItemEntity=Oe=n([(0,s.RegisterClass)(i.BaseEntity,"Data Context Items")],Oe);let Pe=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get UserID(){return this.Get("UserID")}set UserID(e){this.Set("UserID",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get LastRefreshedAt(){return this.Get("LastRefreshedAt")}set LastRefreshedAt(e){this.Set("LastRefreshedAt",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get User(){return this.Get("User")}};t.DataContextEntity=Pe,t.DataContextEntity=Pe=n([(0,s.RegisterClass)(i.BaseEntity,"Data Contexts")],Pe);let Ge=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get ParentID(){return this.Get("ParentID")}set ParentID(e){this.Set("ParentID",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get EntityID(){return this.Get("EntityID")}set EntityID(e){this.Set("EntityID",e)}get UserID(){return this.Get("UserID")}set UserID(e){this.Set("UserID",e)}get Parent(){return this.Get("Parent")}get User(){return this.Get("User")}};t.UserViewCategoryEntity=Ge,t.UserViewCategoryEntity=Ge=n([(0,s.RegisterClass)(i.BaseEntity,"User View Categories")],Ge);let Fe=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get ParentID(){return this.Get("ParentID")}set ParentID(e){this.Set("ParentID",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get UserID(){return this.Get("UserID")}set UserID(e){this.Set("UserID",e)}get Parent(){return this.Get("Parent")}get User(){return this.Get("User")}};t.DashboardCategoryEntity=Fe,t.DashboardCategoryEntity=Fe=n([(0,s.RegisterClass)(i.BaseEntity,"Dashboard Categories")],Fe);let Le=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get ParentID(){return this.Get("ParentID")}set ParentID(e){this.Set("ParentID",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get UserID(){return this.Get("UserID")}set UserID(e){this.Set("UserID",e)}get Parent(){return this.Get("Parent")}get User(){return this.Get("User")}};t.ReportCategoryEntity=Le,t.ReportCategoryEntity=Le=n([(0,s.RegisterClass)(i.BaseEntity,"Report Categories")],Le);let xe=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for File Storage Providers, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get ServerDriverKey(){return this.Get("ServerDriverKey")}set ServerDriverKey(e){this.Set("ServerDriverKey",e)}get ClientDriverKey(){return this.Get("ClientDriverKey")}set ClientDriverKey(e){this.Set("ClientDriverKey",e)}get Priority(){return this.Get("Priority")}set Priority(e){this.Set("Priority",e)}get IsActive(){return this.Get("IsActive")}set IsActive(e){this.Set("IsActive",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}};t.FileStorageProviderEntity=xe,t.FileStorageProviderEntity=xe=n([(0,s.RegisterClass)(i.BaseEntity,"File Storage Providers")],xe);let Ve=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get ProviderID(){return this.Get("ProviderID")}set ProviderID(e){this.Set("ProviderID",e)}get ContentType(){return this.Get("ContentType")}set ContentType(e){this.Set("ContentType",e)}get ProviderKey(){return this.Get("ProviderKey")}set ProviderKey(e){this.Set("ProviderKey",e)}get CategoryID(){return this.Get("CategoryID")}set CategoryID(e){this.Set("CategoryID",e)}get Status(){return this.Get("Status")}set Status(e){this.Set("Status",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Provider(){return this.Get("Provider")}get Category(){return this.Get("Category")}};t.FileEntity=Ve,t.FileEntity=Ve=n([(0,s.RegisterClass)(i.BaseEntity,"Files")],Ve);let Ue=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get ParentID(){return this.Get("ParentID")}set ParentID(e){this.Set("ParentID",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Parent(){return this.Get("Parent")}};t.FileCategoryEntity=Ue,t.FileCategoryEntity=Ue=n([(0,s.RegisterClass)(i.BaseEntity,"File Categories")],Ue);let Me=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for File Entity Record Links, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get FileID(){return this.Get("FileID")}set FileID(e){this.Set("FileID",e)}get EntityID(){return this.Get("EntityID")}set EntityID(e){this.Set("EntityID",e)}get RecordID(){return this.Get("RecordID")}set RecordID(e){this.Set("RecordID",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get File(){return this.Get("File")}get Entity(){return this.Get("Entity")}};t.FileEntityRecordLinkEntity=Me,t.FileEntityRecordLinkEntity=Me=n([(0,s.RegisterClass)(i.BaseEntity,"File Entity Record Links")],Me);let je=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Version Installations, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get MajorVersion(){return this.Get("MajorVersion")}set MajorVersion(e){this.Set("MajorVersion",e)}get MinorVersion(){return this.Get("MinorVersion")}set MinorVersion(e){this.Set("MinorVersion",e)}get PatchVersion(){return this.Get("PatchVersion")}set PatchVersion(e){this.Set("PatchVersion",e)}get Type(){return this.Get("Type")}set Type(e){this.Set("Type",e)}get InstalledAt(){return this.Get("InstalledAt")}set InstalledAt(e){this.Set("InstalledAt",e)}get Status(){return this.Get("Status")}set Status(e){this.Set("Status",e)}get InstallLog(){return this.Get("InstallLog")}set InstallLog(e){this.Set("InstallLog",e)}get Comments(){return this.Get("Comments")}set Comments(e){this.Set("Comments",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get CompleteVersion(){return this.Get("CompleteVersion")}};t.VersionInstallationEntity=je,t.VersionInstallationEntity=je=n([(0,s.RegisterClass)(i.BaseEntity,"Version Installations")],je);let ke=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Duplicate Run Detail Matches, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get DuplicateRunDetailID(){return this.Get("DuplicateRunDetailID")}set DuplicateRunDetailID(e){this.Set("DuplicateRunDetailID",e)}get MatchSource(){return this.Get("MatchSource")}set MatchSource(e){this.Set("MatchSource",e)}get MatchRecordID(){return this.Get("MatchRecordID")}set MatchRecordID(e){this.Set("MatchRecordID",e)}get MatchProbability(){return this.Get("MatchProbability")}set MatchProbability(e){this.Set("MatchProbability",e)}get MatchedAt(){return this.Get("MatchedAt")}set MatchedAt(e){this.Set("MatchedAt",e)}get Action(){return this.Get("Action")}set Action(e){this.Set("Action",e)}get ApprovalStatus(){return this.Get("ApprovalStatus")}set ApprovalStatus(e){this.Set("ApprovalStatus",e)}get MergeStatus(){return this.Get("MergeStatus")}set MergeStatus(e){this.Set("MergeStatus",e)}get MergedAt(){return this.Get("MergedAt")}set MergedAt(e){this.Set("MergedAt",e)}get RecordMergeLogID(){return this.Get("RecordMergeLogID")}set RecordMergeLogID(e){this.Set("RecordMergeLogID",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}};t.DuplicateRunDetailMatchEntity=ke,t.DuplicateRunDetailMatchEntity=ke=n([(0,s.RegisterClass)(i.BaseEntity,"Duplicate Run Detail Matches")],ke);let Be=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Entity Document Settings, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get EntityDocumentID(){return this.Get("EntityDocumentID")}set EntityDocumentID(e){this.Set("EntityDocumentID",e)}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Value(){return this.Get("Value")}set Value(e){this.Set("Value",e)}get Comments(){return this.Get("Comments")}set Comments(e){this.Set("Comments",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get EntityDocument(){return this.Get("EntityDocument")}};t.EntityDocumentSettingEntity=Be,t.EntityDocumentSettingEntity=Be=n([(0,s.RegisterClass)(i.BaseEntity,"Entity Document Settings")],Be);let $e=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Entity Settings, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get EntityID(){return this.Get("EntityID")}set EntityID(e){this.Set("EntityID",e)}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Value(){return this.Get("Value")}set Value(e){this.Set("Value",e)}get Comments(){return this.Get("Comments")}set Comments(e){this.Set("Comments",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Entity(){return this.Get("Entity")}};t.EntitySettingEntity=$e,t.EntitySettingEntity=$e=n([(0,s.RegisterClass)(i.BaseEntity,"Entity Settings")],$e);let Ke=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Duplicate Runs, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get EntityID(){return this.Get("EntityID")}set EntityID(e){this.Set("EntityID",e)}get StartedByUserID(){return this.Get("StartedByUserID")}set StartedByUserID(e){this.Set("StartedByUserID",e)}get StartedAt(){return this.Get("StartedAt")}set StartedAt(e){this.Set("StartedAt",e)}get EndedAt(){return this.Get("EndedAt")}set EndedAt(e){this.Set("EndedAt",e)}get ApprovalStatus(){return this.Get("ApprovalStatus")}set ApprovalStatus(e){this.Set("ApprovalStatus",e)}get ApprovalComments(){return this.Get("ApprovalComments")}set ApprovalComments(e){this.Set("ApprovalComments",e)}get ApprovedByUserID(){return this.Get("ApprovedByUserID")}set ApprovedByUserID(e){this.Set("ApprovedByUserID",e)}get ProcessingStatus(){return this.Get("ProcessingStatus")}set ProcessingStatus(e){this.Set("ProcessingStatus",e)}get ProcessingErrorMessage(){return this.Get("ProcessingErrorMessage")}set ProcessingErrorMessage(e){this.Set("ProcessingErrorMessage",e)}get SourceListID(){return this.Get("SourceListID")}set SourceListID(e){this.Set("SourceListID",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Entity(){return this.Get("Entity")}get StartedByUser(){return this.Get("StartedByUser")}get ApprovedByUser(){return this.Get("ApprovedByUser")}get SourceList(){return this.Get("SourceList")}};t.DuplicateRunEntity=Ke,t.DuplicateRunEntity=Ke=n([(0,s.RegisterClass)(i.BaseEntity,"Duplicate Runs")],Ke);let qe=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Duplicate Run Details, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get DuplicateRunID(){return this.Get("DuplicateRunID")}set DuplicateRunID(e){this.Set("DuplicateRunID",e)}get RecordID(){return this.Get("RecordID")}set RecordID(e){this.Set("RecordID",e)}get MatchStatus(){return this.Get("MatchStatus")}set MatchStatus(e){this.Set("MatchStatus",e)}get SkippedReason(){return this.Get("SkippedReason")}set SkippedReason(e){this.Set("SkippedReason",e)}get MatchErrorMessage(){return this.Get("MatchErrorMessage")}set MatchErrorMessage(e){this.Set("MatchErrorMessage",e)}get MergeStatus(){return this.Get("MergeStatus")}set MergeStatus(e){this.Set("MergeStatus",e)}get MergeErrorMessage(){return this.Get("MergeErrorMessage")}set MergeErrorMessage(e){this.Set("MergeErrorMessage",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}};t.DuplicateRunDetailEntity=qe,t.DuplicateRunDetailEntity=qe=n([(0,s.RegisterClass)(i.BaseEntity,"Duplicate Run Details")],qe);let Qe=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get EntityID(){return this.Get("EntityID")}set EntityID(e){this.Set("EntityID",e)}get BehaviorTypeID(){return this.Get("BehaviorTypeID")}set BehaviorTypeID(e){this.Set("BehaviorTypeID",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get RegenerateCode(){return this.Get("RegenerateCode")}set RegenerateCode(e){this.Set("RegenerateCode",e)}get Code(){return this.Get("Code")}set Code(e){this.Set("Code",e)}get CodeExplanation(){return this.Get("CodeExplanation")}set CodeExplanation(e){this.Set("CodeExplanation",e)}get CodeGenerated(){return this.Get("CodeGenerated")}set CodeGenerated(e){this.Set("CodeGenerated",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Entity(){return this.Get("Entity")}};t.EntityBehaviorEntity=Qe,t.EntityBehaviorEntity=Qe=n([(0,s.RegisterClass)(i.BaseEntity,"Entity Behaviors")],Qe);let We=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}};t.EntityBehaviorTypeEntity=We,t.EntityBehaviorTypeEntity=We=n([(0,s.RegisterClass)(i.BaseEntity,"Entity Behavior Types")],We);let Je=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get ApplicationName(){return this.Get("ApplicationName")}set ApplicationName(e){this.Set("ApplicationName",e)}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Value(){return this.Get("Value")}set Value(e){this.Set("Value",e)}get Comments(){return this.Get("Comments")}set Comments(e){this.Set("Comments",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}};t.ApplicationSettingEntity=Je,t.ApplicationSettingEntity=Je=n([(0,s.RegisterClass)(i.BaseEntity,"Application Settings")],Je);let ze=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get ParentID(){return this.Get("ParentID")}set ParentID(e){this.Set("ParentID",e)}get Status(){return this.Get("Status")}set Status(e){this.Set("Status",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Parent(){return this.Get("Parent")}};t.ActionCategoryEntity=ze,t.ActionCategoryEntity=ze=n([(0,s.RegisterClass)(i.BaseEntity,"Action Categories")],ze);let Ye=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get EntityID(){return this.Get("EntityID")}set EntityID(e){this.Set("EntityID",e)}get ActionID(){return this.Get("ActionID")}set ActionID(e){this.Set("ActionID",e)}get Status(){return this.Get("Status")}set Status(e){this.Set("Status",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Entity(){return this.Get("Entity")}get Action(){return this.Get("Action")}};t.EntityActionEntity=Ye,t.EntityActionEntity=Ye=n([(0,s.RegisterClass)(i.BaseEntity,"Entity Actions")],Ye);let He=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get EntityActionID(){return this.Get("EntityActionID")}set EntityActionID(e){this.Set("EntityActionID",e)}get InvocationTypeID(){return this.Get("InvocationTypeID")}set InvocationTypeID(e){this.Set("InvocationTypeID",e)}get Status(){return this.Get("Status")}set Status(e){this.Set("Status",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get InvocationType(){return this.Get("InvocationType")}};t.EntityActionInvocationEntity=He,t.EntityActionInvocationEntity=He=n([(0,s.RegisterClass)(i.BaseEntity,"Entity Action Invocations")],He);let Xe=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get ActionID(){return this.Get("ActionID")}set ActionID(e){this.Set("ActionID",e)}get AuthorizationName(){return this.Get("AuthorizationName")}set AuthorizationName(e){this.Set("AuthorizationName",e)}get Comments(){return this.Get("Comments")}set Comments(e){this.Set("Comments",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Action(){return this.Get("Action")}};t.ActionAuthorizationEntity=Xe,t.ActionAuthorizationEntity=Xe=n([(0,s.RegisterClass)(i.BaseEntity,"Action Authorizations")],Xe);let Ze=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get DisplaySequence(){return this.Get("DisplaySequence")}set DisplaySequence(e){this.Set("DisplaySequence",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}};t.EntityActionInvocationTypeEntity=Ze,t.EntityActionInvocationTypeEntity=Ze=n([(0,s.RegisterClass)(i.BaseEntity,"Entity Action Invocation Types")],Ze);let et=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get CategoryID(){return this.Get("CategoryID")}set CategoryID(e){this.Set("CategoryID",e)}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get UserPrompt(){return this.Get("UserPrompt")}set UserPrompt(e){this.Set("UserPrompt",e)}get UserComments(){return this.Get("UserComments")}set UserComments(e){this.Set("UserComments",e)}get Code(){return this.Get("Code")}set Code(e){this.Set("Code",e)}get CodeComments(){return this.Get("CodeComments")}set CodeComments(e){this.Set("CodeComments",e)}get CodeApprovalStatus(){return this.Get("CodeApprovalStatus")}set CodeApprovalStatus(e){this.Set("CodeApprovalStatus",e)}get CodeApprovalComments(){return this.Get("CodeApprovalComments")}set CodeApprovalComments(e){this.Set("CodeApprovalComments",e)}get CodeApprovedByUserID(){return this.Get("CodeApprovedByUserID")}set CodeApprovedByUserID(e){this.Set("CodeApprovedByUserID",e)}get CodeApprovedAt(){return this.Get("CodeApprovedAt")}set CodeApprovedAt(e){this.Set("CodeApprovedAt",e)}get ForceCodeGeneration(){return this.Get("ForceCodeGeneration")}set ForceCodeGeneration(e){this.Set("ForceCodeGeneration",e)}get RetentionPeriod(){return this.Get("RetentionPeriod")}set RetentionPeriod(e){this.Set("RetentionPeriod",e)}get Status(){return this.Get("Status")}set Status(e){this.Set("Status",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Category(){return this.Get("Category")}get CodeApprovedByUser(){return this.Get("CodeApprovedByUser")}};t.ActionEntity=et,t.ActionEntity=et=n([(0,s.RegisterClass)(i.BaseEntity,"Actions")],et);let tt=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get EntityActionID(){return this.Get("EntityActionID")}set EntityActionID(e){this.Set("EntityActionID",e)}get ActionFilterID(){return this.Get("ActionFilterID")}set ActionFilterID(e){this.Set("ActionFilterID",e)}get Sequence(){return this.Get("Sequence")}set Sequence(e){this.Set("Sequence",e)}get Status(){return this.Get("Status")}set Status(e){this.Set("Status",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}};t.EntityActionFilterEntity=tt,t.EntityActionFilterEntity=tt=n([(0,s.RegisterClass)(i.BaseEntity,"Entity Action Filters")],tt);let rt=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get UserDescription(){return this.Get("UserDescription")}set UserDescription(e){this.Set("UserDescription",e)}get UserComments(){return this.Get("UserComments")}set UserComments(e){this.Set("UserComments",e)}get Code(){return this.Get("Code")}set Code(e){this.Set("Code",e)}get CodeExplanation(){return this.Get("CodeExplanation")}set CodeExplanation(e){this.Set("CodeExplanation",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}};t.ActionFilterEntity=rt,t.ActionFilterEntity=rt=n([(0,s.RegisterClass)(i.BaseEntity,"Action Filters")],rt);let nt=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}};t.ActionContextTypeEntity=nt,t.ActionContextTypeEntity=nt=n([(0,s.RegisterClass)(i.BaseEntity,"Action Context Types")],nt);let it=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get ActionID(){return this.Get("ActionID")}set ActionID(e){this.Set("ActionID",e)}get ResultCode(){return this.Get("ResultCode")}set ResultCode(e){this.Set("ResultCode",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Action(){return this.Get("Action")}};t.ActionResultCodeEntity=it,t.ActionResultCodeEntity=it=n([(0,s.RegisterClass)(i.BaseEntity,"Action Result Codes")],it);let st=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get ActionID(){return this.Get("ActionID")}set ActionID(e){this.Set("ActionID",e)}get ContextTypeID(){return this.Get("ContextTypeID")}set ContextTypeID(e){this.Set("ContextTypeID",e)}get Status(){return this.Get("Status")}set Status(e){this.Set("Status",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Action(){return this.Get("Action")}get ContextType(){return this.Get("ContextType")}};t.ActionContextEntity=st,t.ActionContextEntity=st=n([(0,s.RegisterClass)(i.BaseEntity,"Action Contexts")],st);let ot=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get ActionID(){return this.Get("ActionID")}set ActionID(e){this.Set("ActionID",e)}get StartedAt(){return this.Get("StartedAt")}set StartedAt(e){this.Set("StartedAt",e)}get EndedAt(){return this.Get("EndedAt")}set EndedAt(e){this.Set("EndedAt",e)}get Params(){return this.Get("Params")}set Params(e){this.Set("Params",e)}get ResultCode(){return this.Get("ResultCode")}set ResultCode(e){this.Set("ResultCode",e)}get UserID(){return this.Get("UserID")}set UserID(e){this.Set("UserID",e)}get RetentionPeriod(){return this.Get("RetentionPeriod")}set RetentionPeriod(e){this.Set("RetentionPeriod",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Action(){return this.Get("Action")}get User(){return this.Get("User")}};t.ActionExecutionLogEntity=ot,t.ActionExecutionLogEntity=ot=n([(0,s.RegisterClass)(i.BaseEntity,"Action Execution Logs")],ot);let at=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get ActionID(){return this.Get("ActionID")}set ActionID(e){this.Set("ActionID",e)}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get DefaultValue(){return this.Get("DefaultValue")}set DefaultValue(e){this.Set("DefaultValue",e)}get Type(){return this.Get("Type")}set Type(e){this.Set("Type",e)}get ValueType(){return this.Get("ValueType")}set ValueType(e){this.Set("ValueType",e)}get IsArray(){return this.Get("IsArray")}set IsArray(e){this.Set("IsArray",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get IsRequired(){return this.Get("IsRequired")}set IsRequired(e){this.Set("IsRequired",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Action(){return this.Get("Action")}};t.ActionParamEntity=at,t.ActionParamEntity=at=n([(0,s.RegisterClass)(i.BaseEntity,"Action Params")],at);let ut=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}get ID(){return this.Get("ID")}get ActionID(){return this.Get("ActionID")}set ActionID(e){this.Set("ActionID",e)}get LibraryID(){return this.Get("LibraryID")}set LibraryID(e){this.Set("LibraryID",e)}get ItemsUsed(){return this.Get("ItemsUsed")}set ItemsUsed(e){this.Set("ItemsUsed",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Action(){return this.Get("Action")}get Library(){return this.Get("Library")}};t.ActionLibraryEntity=ut,t.ActionLibraryEntity=ut=n([(0,s.RegisterClass)(i.BaseEntity,"Action Libraries")],ut);let lt=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Libraries, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get Status(){return this.Get("Status")}set Status(e){this.Set("Status",e)}get ExportedItems(){return this.Get("ExportedItems")}set ExportedItems(e){this.Set("ExportedItems",e)}get TypeDefinitions(){return this.Get("TypeDefinitions")}set TypeDefinitions(e){this.Set("TypeDefinitions",e)}get SampleCode(){return this.Get("SampleCode")}set SampleCode(e){this.Set("SampleCode",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}};t.LibraryEntity=lt,t.LibraryEntity=lt=n([(0,s.RegisterClass)(i.BaseEntity,"Libraries")],lt);let ct=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for List Categories, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get ParentID(){return this.Get("ParentID")}set ParentID(e){this.Set("ParentID",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get UserID(){return this.Get("UserID")}set UserID(e){this.Set("UserID",e)}};t.ListCategoryEntity=ct,t.ListCategoryEntity=ct=n([(0,s.RegisterClass)(i.BaseEntity,"List Categories")],ct);let dt=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Communication Providers, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get Status(){return this.Get("Status")}set Status(e){this.Set("Status",e)}get SupportsSending(){return this.Get("SupportsSending")}set SupportsSending(e){this.Set("SupportsSending",e)}get SupportsReceiving(){return this.Get("SupportsReceiving")}set SupportsReceiving(e){this.Set("SupportsReceiving",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}};t.CommunicationProviderEntity=dt,t.CommunicationProviderEntity=dt=n([(0,s.RegisterClass)(i.BaseEntity,"Communication Providers")],dt);let pt=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Communication Runs, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get UserID(){return this.Get("UserID")}set UserID(e){this.Set("UserID",e)}get Direction(){return this.Get("Direction")}set Direction(e){this.Set("Direction",e)}get Status(){return this.Get("Status")}set Status(e){this.Set("Status",e)}get StartedAt(){return this.Get("StartedAt")}set StartedAt(e){this.Set("StartedAt",e)}get EndedAt(){return this.Get("EndedAt")}set EndedAt(e){this.Set("EndedAt",e)}get Comments(){return this.Get("Comments")}set Comments(e){this.Set("Comments",e)}get ErrorMessage(){return this.Get("ErrorMessage")}set ErrorMessage(e){this.Set("ErrorMessage",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get User(){return this.Get("User")}};t.CommunicationRunEntity=pt,t.CommunicationRunEntity=pt=n([(0,s.RegisterClass)(i.BaseEntity,"Communication Runs")],pt);let ht=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Communication Provider Message Types, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get CommunicationProviderID(){return this.Get("CommunicationProviderID")}set CommunicationProviderID(e){this.Set("CommunicationProviderID",e)}get CommunicationBaseMessageTypeID(){return this.Get("CommunicationBaseMessageTypeID")}set CommunicationBaseMessageTypeID(e){this.Set("CommunicationBaseMessageTypeID",e)}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Status(){return this.Get("Status")}set Status(e){this.Set("Status",e)}get AdditionalAttributes(){return this.Get("AdditionalAttributes")}set AdditionalAttributes(e){this.Set("AdditionalAttributes",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get CommunicationProvider(){return this.Get("CommunicationProvider")}get CommunicationBaseMessageType(){return this.Get("CommunicationBaseMessageType")}};t.CommunicationProviderMessageTypeEntity=ht,t.CommunicationProviderMessageTypeEntity=ht=n([(0,s.RegisterClass)(i.BaseEntity,"Communication Provider Message Types")],ht);let yt=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Communication Logs, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get CommunicationProviderID(){return this.Get("CommunicationProviderID")}set CommunicationProviderID(e){this.Set("CommunicationProviderID",e)}get CommunicationProviderMessageTypeID(){return this.Get("CommunicationProviderMessageTypeID")}set CommunicationProviderMessageTypeID(e){this.Set("CommunicationProviderMessageTypeID",e)}get CommunicationRunID(){return this.Get("CommunicationRunID")}set CommunicationRunID(e){this.Set("CommunicationRunID",e)}get Direction(){return this.Get("Direction")}set Direction(e){this.Set("Direction",e)}get MessageDate(){return this.Get("MessageDate")}set MessageDate(e){this.Set("MessageDate",e)}get Status(){return this.Get("Status")}set Status(e){this.Set("Status",e)}get MessageContent(){return this.Get("MessageContent")}set MessageContent(e){this.Set("MessageContent",e)}get ErrorMessage(){return this.Get("ErrorMessage")}set ErrorMessage(e){this.Set("ErrorMessage",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get CommunicationProvider(){return this.Get("CommunicationProvider")}get CommunicationProviderMessageType(){return this.Get("CommunicationProviderMessageType")}};t.CommunicationLogEntity=yt,t.CommunicationLogEntity=yt=n([(0,s.RegisterClass)(i.BaseEntity,"Communication Logs")],yt);let ft=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Communication Base Message Types, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get Type(){return this.Get("Type")}set Type(e){this.Set("Type",e)}get SupportsAttachments(){return this.Get("SupportsAttachments")}set SupportsAttachments(e){this.Set("SupportsAttachments",e)}get SupportsSubjectLine(){return this.Get("SupportsSubjectLine")}set SupportsSubjectLine(e){this.Set("SupportsSubjectLine",e)}get SupportsHtml(){return this.Get("SupportsHtml")}set SupportsHtml(e){this.Set("SupportsHtml",e)}get MaxBytes(){return this.Get("MaxBytes")}set MaxBytes(e){this.Set("MaxBytes",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}};t.CommunicationBaseMessageTypeEntity=ft,t.CommunicationBaseMessageTypeEntity=ft=n([(0,s.RegisterClass)(i.BaseEntity,"Communication Base Message Types")],ft);let mt=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Templates, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get UserPrompt(){return this.Get("UserPrompt")}set UserPrompt(e){this.Set("UserPrompt",e)}get CategoryID(){return this.Get("CategoryID")}set CategoryID(e){this.Set("CategoryID",e)}get UserID(){return this.Get("UserID")}set UserID(e){this.Set("UserID",e)}get ActiveAt(){return this.Get("ActiveAt")}set ActiveAt(e){this.Set("ActiveAt",e)}get DisabledAt(){return this.Get("DisabledAt")}set DisabledAt(e){this.Set("DisabledAt",e)}get IsActive(){return this.Get("IsActive")}set IsActive(e){this.Set("IsActive",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Category(){return this.Get("Category")}get User(){return this.Get("User")}};t.TemplateEntity=mt,t.TemplateEntity=mt=n([(0,s.RegisterClass)(i.BaseEntity,"Templates")],mt);let gt=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Template Categories, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get ParentID(){return this.Get("ParentID")}set ParentID(e){this.Set("ParentID",e)}get UserID(){return this.Get("UserID")}set UserID(e){this.Set("UserID",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Parent(){return this.Get("Parent")}get User(){return this.Get("User")}};t.TemplateCategoryEntity=gt,t.TemplateCategoryEntity=gt=n([(0,s.RegisterClass)(i.BaseEntity,"Template Categories")],gt);let vt=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Template Contents, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get TemplateID(){return this.Get("TemplateID")}set TemplateID(e){this.Set("TemplateID",e)}get TypeID(){return this.Get("TypeID")}set TypeID(e){this.Set("TypeID",e)}get TemplateText(){return this.Get("TemplateText")}set TemplateText(e){this.Set("TemplateText",e)}get Priority(){return this.Get("Priority")}set Priority(e){this.Set("Priority",e)}get IsActive(){return this.Get("IsActive")}set IsActive(e){this.Set("IsActive",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Template(){return this.Get("Template")}get Type(){return this.Get("Type")}};t.TemplateContentEntity=vt,t.TemplateContentEntity=vt=n([(0,s.RegisterClass)(i.BaseEntity,"Template Contents")],vt);let Et=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Template Params, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get TemplateID(){return this.Get("TemplateID")}set TemplateID(e){this.Set("TemplateID",e)}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get Type(){return this.Get("Type")}set Type(e){this.Set("Type",e)}get DefaultValue(){return this.Get("DefaultValue")}set DefaultValue(e){this.Set("DefaultValue",e)}get IsRequired(){return this.Get("IsRequired")}set IsRequired(e){this.Set("IsRequired",e)}get EntityID(){return this.Get("EntityID")}set EntityID(e){this.Set("EntityID",e)}get RecordID(){return this.Get("RecordID")}set RecordID(e){this.Set("RecordID",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Template(){return this.Get("Template")}get Entity(){return this.Get("Entity")}};t.TemplateParamEntity=Et,t.TemplateParamEntity=Et=n([(0,s.RegisterClass)(i.BaseEntity,"Template Params")],Et);let It=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Template Content Types, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}};t.TemplateContentTypeEntity=It,t.TemplateContentTypeEntity=It=n([(0,s.RegisterClass)(i.BaseEntity,"Template Content Types")],It);let bt=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Recommendations, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get RecommendationRunID(){return this.Get("RecommendationRunID")}set RecommendationRunID(e){this.Set("RecommendationRunID",e)}get SourceEntityID(){return this.Get("SourceEntityID")}set SourceEntityID(e){this.Set("SourceEntityID",e)}get SourceEntityRecordID(){return this.Get("SourceEntityRecordID")}set SourceEntityRecordID(e){this.Set("SourceEntityRecordID",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get SourceEntity(){return this.Get("SourceEntity")}};t.RecommendationEntity=bt,t.RecommendationEntity=bt=n([(0,s.RegisterClass)(i.BaseEntity,"Recommendations")],bt);let Dt=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Recommendation Providers, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get Name(){return this.Get("Name")}set Name(e){this.Set("Name",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}};t.RecommendationProviderEntity=Dt,t.RecommendationProviderEntity=Dt=n([(0,s.RegisterClass)(i.BaseEntity,"Recommendation Providers")],Dt);let St=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Recommendation Runs, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get RecommendationProviderID(){return this.Get("RecommendationProviderID")}set RecommendationProviderID(e){this.Set("RecommendationProviderID",e)}get StartDate(){return this.Get("StartDate")}set StartDate(e){this.Set("StartDate",e)}get EndDate(){return this.Get("EndDate")}set EndDate(e){this.Set("EndDate",e)}get Status(){return this.Get("Status")}set Status(e){this.Set("Status",e)}get Description(){return this.Get("Description")}set Description(e){this.Set("Description",e)}get RunByUserID(){return this.Get("RunByUserID")}set RunByUserID(e){this.Set("RunByUserID",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get RecommendationProvider(){return this.Get("RecommendationProvider")}get RunByUser(){return this.Get("RunByUser")}};t.RecommendationRunEntity=St,t.RecommendationRunEntity=St=n([(0,s.RegisterClass)(i.BaseEntity,"Recommendation Runs")],St);let wt=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Recommendation Items, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get RecommendationID(){return this.Get("RecommendationID")}set RecommendationID(e){this.Set("RecommendationID",e)}get DestinationEntityID(){return this.Get("DestinationEntityID")}set DestinationEntityID(e){this.Set("DestinationEntityID",e)}get DestinationEntityRecordID(){return this.Get("DestinationEntityRecordID")}set DestinationEntityRecordID(e){this.Set("DestinationEntityRecordID",e)}get MatchProbability(){return this.Get("MatchProbability")}set MatchProbability(e){this.Set("MatchProbability",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get DestinationEntity(){return this.Get("DestinationEntity")}};t.RecommendationItemEntity=wt,t.RecommendationItemEntity=wt=n([(0,s.RegisterClass)(i.BaseEntity,"Recommendation Items")],wt);let At=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Entity Communication Message Types, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get EntityID(){return this.Get("EntityID")}set EntityID(e){this.Set("EntityID",e)}get BaseMessageTypeID(){return this.Get("BaseMessageTypeID")}set BaseMessageTypeID(e){this.Set("BaseMessageTypeID",e)}get IsActive(){return this.Get("IsActive")}set IsActive(e){this.Set("IsActive",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}get Entity(){return this.Get("Entity")}get BaseMessageType(){return this.Get("BaseMessageType")}};t.EntityCommunicationMessageTypeEntity=At,t.EntityCommunicationMessageTypeEntity=At=n([(0,s.RegisterClass)(i.BaseEntity,"Entity Communication Message Types")],At);let Tt=class extends i.BaseEntity{async Load(e,t=null){const r=new i.CompositeKey;return r.KeyValuePairs.push({FieldName:"ID",Value:e}),await super.InnerLoad(r,t)}async Delete(){throw new Error("Delete is not allowed for Entity Communication Fields, to enable it set AllowDeleteAPI to 1 in the database.")}get ID(){return this.Get("ID")}get EntityCommunicationMessageTypeID(){return this.Get("EntityCommunicationMessageTypeID")}set EntityCommunicationMessageTypeID(e){this.Set("EntityCommunicationMessageTypeID",e)}get FieldName(){return this.Get("FieldName")}set FieldName(e){this.Set("FieldName",e)}get Priority(){return this.Get("Priority")}set Priority(e){this.Set("Priority",e)}get CreatedAt(){return this.Get("CreatedAt")}get UpdatedAt(){return this.Get("UpdatedAt")}};t.EntityCommunicationFieldEntity=Tt,t.EntityCommunicationFieldEntity=Tt=n([(0,s.RegisterClass)(i.BaseEntity,"Entity Communication Fields")],Tt)},9850:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(4162),t),i(r(7699),t),i(r(7718),t),i(r(5974),t),i(r(2718),t),i(r(8397),t)},1601:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseSingleton=void 0;const n=r(6239);class i{get GlobalKey(){return this._globalKey}constructor(){this._globalKey=i._globalKeyPrefix+this.constructor.name;const e=(0,n.GetGlobalObjectStore)();if(e&&e[this.GlobalKey])return e[this.GlobalKey];e&&(e[this.GlobalKey]=this)}static getInstance(){const e=i._globalKeyPrefix+this.name,t=(0,n.GetGlobalObjectStore)();return t[e]||(t[e]=new this),t[e]}GetGlobalObjectStore(){return(0,n.GetGlobalObjectStore)()}}t.BaseSingleton=i,i._globalKeyPrefix="___"},9501:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClassFactory=t.ClassRegistration=void 0;class r{}t.ClassRegistration=r,t.ClassFactory=class{constructor(){this._registrations=[]}Register(e,t,n=null,i=0){if(e&&t){const s=this.GetAllRegistrations(e,n);if(i>0){const r=s.filter((e=>e.Priority===i));r&&r.length>0&&console.warn(`*** ClassFactory.Register: Registering class ${t.name} for base class ${e.name} and key/priority ${n}/${i}. ${r.length} registrations already exist for that combination. While this is allowed it is not desired and when matching class requests occur, we will simply use the LAST registration we happen to have which can lead to unintended behavior. ***`)}else if(0===i||null==i){let e=0;for(let t=0;t<s.length;t++)s[t].Priority>e&&(e=s[t].Priority);i=e+1}let o=new r;o.BaseClass=e,o.SubClass=t,o.Key=n,o.Priority=i,this._registrations.push(o)}}CreateInstance(e,t=null,...r){if(e){let n=this.GetRegistration(e,t);if(n){let e=null;return e=void 0!==r?new n.SubClass(...r):new n.SubClass,e}return console.log(`ClassFactory.CreateInstance: Could not find registration for base class ${e&&e.name?e.name:e} and key ${t}, using the base class instead.`),new e(...r)}return null}GetAllRegistrations(e,t=void 0){return e?this._registrations.filter((r=>r.BaseClass.name===e.name&&(null==t||r.Key.trim().toLowerCase()===t.trim().toLowerCase()))):null}GetRegistration(e,t=void 0){let r=this.GetAllRegistrations(e,t);if(r&&r.length>0){let e=0;for(let t=0;t<r.length;t++)r[t].Priority>e&&(e=r[t].Priority);const t=r.filter((t=>t.Priority===e));return t[t.length-1]}return null}}},4588:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectCache=t.ObjectCacheEntry=void 0;class r{constructor(e,t){this.key=e,this.object=t}}t.ObjectCacheEntry=r,t.ObjectCache=class{constructor(){this._entries=[]}Clear(){this._entries=[]}Add(e,t){if(this._entries.findIndex((t=>t.key.trim().toLowerCase()===e.trim().toLowerCase()))>=0)throw new Error(`An object with the key ${e} already exists in the cache. Remove it first before adding a new one.`);{const n=new r(e,t);this._entries.push(n)}}Replace(e,t){this.Remove(e),this.Add(e,t)}Remove(e){const t=this._entries.findIndex((t=>t.key.trim().toLowerCase()===e.trim().toLowerCase()));t>=0&&this._entries.splice(t,1)}Find(e){const t=this._entries.findIndex((t=>t.key.trim().toLowerCase()===e.trim().toLowerCase()));return t>=0?this._entries[t].object:null}}},6239:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.RegisterClass=t.MJGlobal=t.ClassRegistration=t.ClassFactory=void 0;const s=r(8813),o=r(9501),a=r(4588),u=r(1601);var l=r(9501);Object.defineProperty(t,"ClassFactory",{enumerable:!0,get:function(){return l.ClassFactory}}),Object.defineProperty(t,"ClassRegistration",{enumerable:!0,get:function(){return l.ClassRegistration}}),i(r(6644),t),i(r(8975),t),i(r(4588),t),i(r(1601),t);class c extends u.BaseSingleton{constructor(){super(...arguments),this._eventsSubject=new s.Subject,this._eventsReplaySubject=new s.ReplaySubject,this._events$=this._eventsSubject.asObservable(),this._eventsReplay$=this._eventsReplaySubject.asObservable(),this._components=[],this._classFactory=new o.ClassFactory,this._properties=[],this._objectCache=new a.ObjectCache}static get Instance(){return super.getInstance()}RegisterComponent(e){this._components.push(e)}Reset(){this._components=[],this._eventsSubject=new s.Subject,this._eventsReplaySubject=new s.ReplaySubject,this._events$=this._eventsSubject.asObservable(),this._eventsReplay$=this._eventsReplaySubject.asObservable()}RaiseEvent(e){this._eventsSubject.next(e),this._eventsReplaySubject.next(e)}GetEventListener(e=!1){return e?this._eventsReplay$:this._events$}get ClassFactory(){return this._classFactory}get Properties(){return this._properties}get ObjectCache(){return this._objectCache}}t.MJGlobal=c,t.RegisterClass=function(e,t=null,r=0){return function(n){c.Instance.ClassFactory.Register(e,n,t,r)}}},6644:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MJEventType=t.MJEvent=t.MJGlobalProperty=void 0,t.MJGlobalProperty=class{},t.MJEvent=class{},t.MJEventType={ComponentRegistered:"ComponentRegistered",ComponentUnregistered:"ComponentUnregistered",ComponentEvent:"ComponentEvent",LoggedIn:"LoggedIn",LoggedOut:"LoggedOut",LoginFailed:"LoginFailed",LogoutFailed:"LogoutFailed",ManualResizeRequest:"ManualResizeRequest",DisplaySimpleNotificationRequest:"DisplaySimpleNotificationRequest"}},8975:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CleanJavaScript=t.CleanJSON=t.CopyScalarsAndArrays=t.GetGlobalObjectStore=void 0,t.GetGlobalObjectStore=function(){try{return window||(r.g?r.g:null)}catch(e){try{return r.g?r.g:null}catch(e){return null}}},t.CopyScalarsAndArrays=function e(t){const r={};return Object.keys(t).forEach((n=>{const i=t[n];null===i||"object"!=typeof i?r[n]=i:Array.isArray(i)?r[n]=[...i]:"object"==typeof i&&i.constructor===Object&&(r[n]=e(i))})),r},t.CleanJSON=function(e){if(!e)return null;const t=e.trim().replace(/\n/g,"").replace(/\t/g,""),r=Array.from(t.matchAll(/```(?:json|JSON)?\s*([\s\S]*?)```/gi));if(r.length>0)return r.map((e=>e[1].trim())).join("\n");{const e=t.indexOf("["),r=t.indexOf("{");let n=-1,i=-1;if(-1!==e&&e<r||-1===r?(n=e,i=t.lastIndexOf("]")):-1!==r&&(n=r,i=t.lastIndexOf("}")),-1===n||-1===i||i<n)return console.warn("No JSON found in the input."),t.trim();const s=t.substring(n,i+1);try{const e=JSON.parse(s);return JSON.stringify(e,null,2)}catch(e){return console.error("Failed to parse extracted string as JSON:",e),null}}},t.CleanJavaScript=function(e){const t=Array.from(e.matchAll(/```(?:js|javascript)?\s*([\s\S]*?)```/gi));return t.length>0?t.map((e=>e[1].trim())).join("\n"):e.trim()}},1912:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(8762),s=r(219),o=n(r(1894)),a=e=>(0,s.isExtractableFile)(e)||null!==e&&"object"==typeof e&&"function"==typeof e.pipe;t.default=(e,t,r,n=i.defaultJsonSerializer)=>{const{clone:u,files:l}=(0,s.extractFiles)({query:e,variables:t,operationName:r},"",a);if(0===l.size){if(!Array.isArray(e))return n.stringify(u);if(void 0!==t&&!Array.isArray(t))throw new Error("Cannot create request body with given variable type, array expected");const r=e.reduce(((e,r,n)=>(e.push({query:r,variables:t?t[n]:void 0}),e)),[]);return n.stringify(r)}const c=new("undefined"==typeof FormData?o.default:FormData);c.append("operations",n.stringify(u));const d={};let p=0;return l.forEach((e=>{d[++p]=e})),c.append("map",n.stringify(d)),p=0,l.forEach(((e,t)=>{c.append(""+ ++p,t)})),c}},8762:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultJsonSerializer=void 0,t.defaultJsonSerializer={parse:JSON.parse,stringify:JSON.stringify}},5367:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLWebSocketClient=void 0;const n=r(6605),i=r(2656),s="ping",o="pong",a="complete";class u{get type(){return this._type}get id(){return this._id}get payload(){return this._payload}constructor(e,t,r){this._type=e,this._payload=t,this._id=r}get text(){const e={type:this.type};return null!=this.id&&null!=this.id&&(e.id=this.id),null!=this.payload&&null!=this.payload&&(e.payload=this.payload),JSON.stringify(e)}static parse(e,t){const{type:r,payload:n,id:i}=JSON.parse(e);return new u(r,t(n),i)}}class l{constructor(e,{onInit:t,onAcknowledged:r,onPing:n,onPong:l}){this.socketState={acknowledged:!1,lastRequestId:0,subscriptions:{}},this.socket=e,e.onopen=async r=>{var n;this.socketState.acknowledged=!1,this.socketState.subscriptions={},e.send((n=t?await t():null,new u("connection_init",n)).text)},e.onclose=e=>{this.socketState.acknowledged=!1,this.socketState.subscriptions={}},e.onerror=e=>{console.error(e)},e.onmessage=t=>{try{const d=function(e,t=(e=>e)){return u.parse(e,t)}(t.data);switch(d.type){case"connection_ack":return void(this.socketState.acknowledged?console.warn("Duplicate CONNECTION_ACK message ignored"):(this.socketState.acknowledged=!0,r&&r(d.payload)));case s:return void(n?n(d.payload).then((t=>e.send(c(t).text))):e.send(c(null).text));case o:return void(l&&l(d.payload))}if(!this.socketState.acknowledged)return;if(void 0===d.id||null===d.id||!this.socketState.subscriptions[d.id])return;const{query:p,variables:h,subscriber:y}=this.socketState.subscriptions[d.id];switch(d.type){case"next":return!d.payload.errors&&d.payload.data&&y.next&&y.next(d.payload.data),void(d.payload.errors&&y.error&&y.error(new i.ClientError({...d.payload,status:200},{query:p,variables:h})));case"error":return void(y.error&&y.error(new i.ClientError({errors:d.payload,status:200},{query:p,variables:h})));case a:return y.complete&&y.complete(),void delete this.socketState.subscriptions[d.id]}}catch(t){console.error(t),e.close(1006)}e.close(4400,"Unknown graphql-ws message.")}}makeSubscribe(e,t,r,n){const i=(this.socketState.lastRequestId++).toString();var s,o;return this.socketState.subscriptions[i]={query:e,variables:n,subscriber:r},this.socket.send((s=i,o={query:e,operationName:t,variables:n},new u("subscribe",o,s)).text),()=>{this.socket.send(function(e){return new u(a,void 0,e)}(i).text),delete this.socketState.subscriptions[i]}}rawRequest(e,t){return new Promise(((r,n)=>{let i;this.rawSubscribe(e,{next:(e,t)=>i={data:e,extensions:t},error:n,complete:()=>r(i)},t)}))}request(e,t){return new Promise(((r,n)=>{let i;this.subscribe(e,{next:e=>i=e,error:n,complete:()=>r(i)},t)}))}subscribe(e,t,r){const{query:i,operationName:s}=(0,n.resolveRequestDocument)(e);return this.makeSubscribe(i,s,t,r)}rawSubscribe(e,t,r){return this.makeSubscribe(e,void 0,t,r)}ping(e){this.socket.send(function(e){return new u(s,e,void 0)}(e).text)}close(){this.socket.close(1e3)}}function c(e){return new u(o,e,void 0)}t.GraphQLWebSocketClient=l,l.PROTOCOL="graphql-transport-ws"},8140:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HeadersInstanceToPlainObject=t.uppercase=void 0,t.uppercase=e=>e.toUpperCase(),t.HeadersInstanceToPlainObject=e=>{const t={};return e.forEach(((e,r)=>{t[r]=e})),t}},6497:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=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)&&n(t,e,r);return i(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.resolveRequestDocument=t.GraphQLWebSocketClient=t.gql=t.batchRequests=t.request=t.rawRequest=t.GraphQLClient=t.ClientError=void 0;const a=o(r(1912)),u=r(8762),l=r(8140),c=r(1307),d=r(6605),p=r(2656);Object.defineProperty(t,"ClientError",{enumerable:!0,get:function(){return p.ClientError}});const h=s(r(288)),y=h,f=e=>{let t={};return e&&("undefined"!=typeof Headers&&e instanceof Headers||y&&y.Headers&&e instanceof y.Headers?t=(0,l.HeadersInstanceToPlainObject)(e):Array.isArray(e)?e.forEach((([e,r])=>{e&&void 0!==r&&(t[e]=r)})):t=e),t},m=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim();class g{constructor(e,t={}){this.url=e,this.requestConfig=t,this.rawRequest=async(...e)=>{const[t,r,n]=e,i=(0,c.parseRawRequestArgs)(t,r,n),{headers:s,fetch:o=h.default,method:a="POST",requestMiddleware:u,responseMiddleware:l,...p}=this.requestConfig,{url:y}=this;void 0!==i.signal&&(p.signal=i.signal);const{operationName:m}=(0,d.resolveRequestDocument)(i.query);return v({url:y,query:i.query,variables:i.variables,headers:{...f(D(s)),...f(i.requestHeaders)},operationName:m,fetch:o,method:a,fetchOptions:p,middleware:u}).then((e=>(l&&l(e),e))).catch((e=>{throw l&&l(e),e}))}}async request(e,...t){const[r,n]=t,i=(0,c.parseRequestArgs)(e,r,n),{headers:s,fetch:o=h.default,method:a="POST",requestMiddleware:u,responseMiddleware:l,...p}=this.requestConfig,{url:y}=this;void 0!==i.signal&&(p.signal=i.signal);const{query:m,operationName:g}=(0,d.resolveRequestDocument)(i.document);return v({url:y,query:m,variables:i.variables,headers:{...f(D(s)),...f(i.requestHeaders)},operationName:g,fetch:o,method:a,fetchOptions:p,middleware:u}).then((e=>(l&&l(e),e.data))).catch((e=>{throw l&&l(e),e}))}batchRequests(e,t){const r=(0,c.parseBatchRequestArgs)(e,t),{headers:n,...i}=this.requestConfig;void 0!==r.signal&&(i.signal=r.signal);const s=r.documents.map((({document:e})=>(0,d.resolveRequestDocument)(e).query)),o=r.documents.map((({variables:e})=>e));return v({url:this.url,query:s,variables:o,headers:{...f(D(n)),...f(r.requestHeaders)},operationName:void 0,fetch:this.requestConfig.fetch??h.default,method:this.requestConfig.method||"POST",fetchOptions:i,middleware:this.requestConfig.requestMiddleware}).then((e=>(this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(e),e.data))).catch((e=>{throw this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(e),e}))}setHeaders(e){return this.requestConfig.headers=e,this}setHeader(e,t){const{headers:r}=this.requestConfig;return r?r[e]=t:this.requestConfig.headers={[e]:t},this}setEndpoint(e){return this.url=e,this}}t.GraphQLClient=g;const v=async e=>{const{query:t,variables:r,fetchOptions:n}=e,i=(y=(0,l.uppercase)(e.method??"post"),async e=>{const{url:t,query:r,variables:n,operationName:i,fetch:s,fetchOptions:o,middleware:l}=e,c={...e.headers};let d,p="";"POST"===y?(d=(0,a.default)(r,n,i,o.jsonSerializer),"string"==typeof d&&(c["Content-Type"]="application/json")):p=(e=>{if(!Array.isArray(e.query)){const t=e,r=[`query=${encodeURIComponent(m(t.query))}`];return e.variables&&r.push(`variables=${encodeURIComponent(t.jsonSerializer.stringify(t.variables))}`),t.operationName&&r.push(`operationName=${encodeURIComponent(t.operationName)}`),r.join("&")}if(void 0!==e.variables&&!Array.isArray(e.variables))throw new Error("Cannot create query with given variable type, array expected");const t=e,r=e.query.reduce(((e,r,n)=>(e.push({query:m(r),variables:t.variables?t.jsonSerializer.stringify(t.variables[n]):void 0}),e)),[]);return`query=${encodeURIComponent(t.jsonSerializer.stringify(r))}`})({query:r,variables:n,operationName:i,jsonSerializer:o.jsonSerializer??u.defaultJsonSerializer});const h={method:y,headers:c,body:d,...o};let f=t,g=h;if(l){const e=await Promise.resolve(l({...h,url:t,operationName:i,variables:n})),{url:r,...s}=e;f=r,g=s}return p&&(f=`${f}?${p}`),await s(f,g)}),s=Array.isArray(e.query),o=await i(e),c=await b(o,n.jsonSerializer??u.defaultJsonSerializer),d=Array.isArray(c)?!c.some((({data:e})=>!e)):Boolean(c.data),h=Array.isArray(c)||!c.errors||Array.isArray(c.errors)&&!c.errors.length||"all"===n.errorPolicy||"ignore"===n.errorPolicy;var y;if(o.ok&&h&&d){const{errors:e,...t}=(Array.isArray(c),c),r="ignore"===n.errorPolicy?t:c;return{...s?{data:r}:r,headers:o.headers,status:o.status}}{const e="string"==typeof c?{error:c}:c;throw new p.ClientError({...e,status:o.status,headers:o.headers},{query:t,variables:r})}};async function E(e,t,...r){const n=(0,c.parseRequestExtendedArgs)(e,t,...r);return new g(n.url).request({...n})}t.rawRequest=async(...e)=>{const[t,r,...n]=e,i=(0,c.parseRawRequestExtendedArgs)(t,r,...n);return new g(i.url).rawRequest({...i})},t.request=E,t.batchRequests=async(...e)=>{const t=I(e);return new g(t.url).batchRequests(t)};const I=e=>1===e.length?e[0]:{url:e[0],documents:e[1],requestHeaders:e[2],signal:void 0};t.default=E;const b=async(e,t)=>{let r;return e.headers.forEach(((e,t)=>{"content-type"===t.toLowerCase()&&(r=e)})),r&&(r.toLowerCase().startsWith("application/json")||r.toLowerCase().startsWith("application/graphql+json")||r.toLowerCase().startsWith("application/graphql-response+json"))?t.parse(await e.text()):e.text()},D=e=>"function"==typeof e?e():e;t.gql=(e,...t)=>e.reduce(((e,r,n)=>`${e}${r}${n in t?t[n]:""}`),"");var S=r(5367);Object.defineProperty(t,"GraphQLWebSocketClient",{enumerable:!0,get:function(){return S.GraphQLWebSocketClient}});var w=r(6605);Object.defineProperty(t,"resolveRequestDocument",{enumerable:!0,get:function(){return w.resolveRequestDocument}})},1307:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawRequestExtendedArgs=t.parseRequestExtendedArgs=t.parseBatchRequestArgs=t.parseRawRequestArgs=t.parseRequestArgs=void 0,t.parseRequestArgs=(e,t,r)=>e.document?e:{document:e,variables:t,requestHeaders:r,signal:void 0},t.parseRawRequestArgs=(e,t,r)=>e.query?e:{query:e,variables:t,requestHeaders:r,signal:void 0},t.parseBatchRequestArgs=(e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0},t.parseRequestExtendedArgs=(e,t,...r)=>{const[n,i]=r;return e.document?e:{url:e,document:t,variables:n,requestHeaders:i,signal:void 0}},t.parseRawRequestExtendedArgs=(e,t,...r)=>{const[n,i]=r;return e.query?e:{url:e,query:t,variables:n,requestHeaders:i,signal:void 0}}},6605:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveRequestDocument=void 0;const n=r(2553),i=e=>{let t;const r=e.definitions.filter((e=>"OperationDefinition"===e.kind));return 1===r.length&&(t=r[0]?.name?.value),t};t.resolveRequestDocument=e=>{if("string"==typeof e){let t;try{const r=(0,n.parse)(e);t=i(r)}catch(e){}return{query:e,operationName:t}}const t=i(e);return{query:(0,n.print)(e),operationName:t}}},2656:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClientError=void 0;class r extends Error{constructor(e,t){super(`${r.extractMessage(e)}: ${JSON.stringify({response:e,request:t})}`),Object.setPrototypeOf(this,r.prototype),this.response=e,this.request=t,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,r)}static extractMessage(e){return e.errors?.[0]?.message??`GraphQL Error (Code: ${e.status})`}}t.ClientError=r},7383:(e,t,r)=>{"use strict";r.r(t),r.d(t,{deleteDB:()=>f,openDB:()=>y,unwrap:()=>h,wrap:()=>p});const n=(e,t)=>t.some((t=>e instanceof t));let i,s;const o=new WeakMap,a=new WeakMap,u=new WeakMap;let l={get(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return o.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return p(e[t])},set:(e,t,r)=>(e[t]=r,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function c(e){l=e(l)}function d(e){return"function"==typeof e?(t=e,(s||(s=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(h(this),e),p(this.request)}:function(...e){return p(t.apply(h(this),e))}):(e instanceof IDBTransaction&&function(e){if(o.has(e))return;const t=new Promise(((t,r)=>{const n=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",s),e.removeEventListener("abort",s)},i=()=>{t(),n()},s=()=>{r(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",i),e.addEventListener("error",s),e.addEventListener("abort",s)}));o.set(e,t)}(e),n(e,i||(i=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,l):e);var t}function p(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,r)=>{const n=()=>{e.removeEventListener("success",i),e.removeEventListener("error",s)},i=()=>{t(p(e.result)),n()},s=()=>{r(e.error),n()};e.addEventListener("success",i),e.addEventListener("error",s)}));return u.set(t,e),t}(e);if(a.has(e))return a.get(e);const t=d(e);return t!==e&&(a.set(e,t),u.set(t,e)),t}const h=e=>u.get(e);function y(e,t,{blocked:r,upgrade:n,blocking:i,terminated:s}={}){const o=indexedDB.open(e,t),a=p(o);return n&&o.addEventListener("upgradeneeded",(e=>{n(p(o.result),e.oldVersion,e.newVersion,p(o.transaction),e)})),r&&o.addEventListener("blocked",(e=>r(e.oldVersion,e.newVersion,e))),a.then((e=>{s&&e.addEventListener("close",(()=>s())),i&&e.addEventListener("versionchange",(e=>i(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),a}function f(e,{blocked:t}={}){const r=indexedDB.deleteDatabase(e);return t&&r.addEventListener("blocked",(e=>t(e.oldVersion,e))),p(r).then((()=>{}))}const m=["get","getKey","getAll","getAllKeys","count"],g=["put","add","delete","clear"],v=new Map;function E(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(v.get(t))return v.get(t);const r=t.replace(/FromIndex$/,""),n=t!==r,i=g.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!i&&!m.includes(r))return;const s=async function(e,...t){const s=this.transaction(e,i?"readwrite":"readonly");let o=s.store;return n&&(o=o.index(t.shift())),(await Promise.all([o[r](...t),i&&s.done]))[0]};return v.set(t,s),s}c((e=>({...e,get:(t,r,n)=>E(t,r)||e.get(t,r,n),has:(t,r)=>!!E(t,r)||e.has(t,r)})));const I=["continue","continuePrimaryKey","advance"],b={},D=new WeakMap,S=new WeakMap,w={get(e,t){if(!I.includes(t))return e[t];let r=b[t];return r||(r=b[t]=function(...e){D.set(this,S.get(this)[t](...e))}),r}};async function*A(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;const r=new Proxy(t,w);for(S.set(r,t),u.set(r,h(t));t;)yield r,t=await(D.get(r)||t.continue()),D.delete(r)}function T(e,t){return t===Symbol.asyncIterator&&n(e,[IDBIndex,IDBObjectStore,IDBCursor])||"iterate"===t&&n(e,[IDBIndex,IDBObjectStore])}c((e=>({...e,get:(t,r,n)=>T(t,r)?A:e.get(t,r,n),has:(t,r)=>T(t,r)||e.has(t,r)})))},2553:(e,t,r)=>{"use strict";r.r(t),r.d(t,{BREAK:()=>Fe,BreakingChangeType:()=>Xs,DEFAULT_DEPRECATION_REASON:()=>mr,DangerousChangeType:()=>Zs,DirectiveLocation:()=>A,ExecutableDefinitionsRule:()=>vn,FieldsOnCorrectTypeRule:()=>En,FragmentsOnCompositeTypesRule:()=>In,GRAPHQL_MAX_INT:()=>tr,GRAPHQL_MIN_INT:()=>rr,GraphQLBoolean:()=>or,GraphQLDeprecatedDirective:()=>gr,GraphQLDirective:()=>hr,GraphQLEnumType:()=>Wt,GraphQLError:()=>y,GraphQLFloat:()=>ir,GraphQLID:()=>ar,GraphQLIncludeDirective:()=>yr,GraphQLInputObjectType:()=>zt,GraphQLInt:()=>nr,GraphQLInterfaceType:()=>Kt,GraphQLList:()=>St,GraphQLNonNull:()=>wt,GraphQLObjectType:()=>xt,GraphQLScalarType:()=>Lt,GraphQLSchema:()=>jr,GraphQLSkipDirective:()=>fr,GraphQLSpecifiedByDirective:()=>vr,GraphQLString:()=>sr,GraphQLUnionType:()=>qt,Kind:()=>T,KnownArgumentNamesRule:()=>bn,KnownDirectivesRule:()=>Sn,KnownFragmentNamesRule:()=>wn,KnownTypeNamesRule:()=>An,Lexer:()=>V,Location:()=>E,LoneAnonymousOperationRule:()=>Nn,LoneSchemaDefinitionRule:()=>_n,NoDeprecatedCustomRule:()=>ys,NoFragmentCyclesRule:()=>Cn,NoSchemaIntrospectionCustomRule:()=>fs,NoUndefinedVariablesRule:()=>Rn,NoUnusedFragmentsRule:()=>On,NoUnusedVariablesRule:()=>Pn,OperationTypeNode:()=>w,OverlappingFieldsCanBeMergedRule:()=>Ln,PossibleFragmentSpreadsRule:()=>Qn,PossibleTypeExtensionsRule:()=>Wn,ProvidedRequiredArgumentsRule:()=>zn,ScalarLeafsRule:()=>Xn,SchemaMetaFieldDef:()=>Gr,SingleFieldSubscriptionsRule:()=>fi,Source:()=>ue,Token:()=>I,TokenKind:()=>N,TypeInfo:()=>sn,TypeKind:()=>Or,TypeMetaFieldDef:()=>Fr,TypeNameMetaFieldDef:()=>Lr,UniqueArgumentDefinitionNamesRule:()=>gi,UniqueArgumentNamesRule:()=>vi,UniqueDirectiveNamesRule:()=>Ei,UniqueDirectivesPerLocationRule:()=>Ii,UniqueEnumValueNamesRule:()=>bi,UniqueFieldDefinitionNamesRule:()=>Di,UniqueFragmentNamesRule:()=>wi,UniqueInputFieldNamesRule:()=>Ai,UniqueOperationNamesRule:()=>Ti,UniqueOperationTypesRule:()=>Ni,UniqueTypeNamesRule:()=>_i,UniqueVariableNamesRule:()=>Ci,ValidationContext:()=>Mi,ValuesOfCorrectTypeRule:()=>Ri,VariablesAreInputTypesRule:()=>Pi,VariablesInAllowedPositionRule:()=>Gi,__Directive:()=>Ar,__DirectiveLocation:()=>Tr,__EnumValue:()=>Rr,__Field:()=>_r,__InputValue:()=>Cr,__Schema:()=>wr,__Type:()=>Nr,__TypeKind:()=>Pr,assertAbstractType:()=>Dt,assertCompositeType:()=>It,assertDirective:()=>pr,assertEnumType:()=>ot,assertEnumValueName:()=>Je,assertInputObjectType:()=>ut,assertInputType:()=>yt,assertInterfaceType:()=>rt,assertLeafType:()=>vt,assertListType:()=>ct,assertName:()=>We,assertNamedType:()=>Ot,assertNonNullType:()=>pt,assertNullableType:()=>_t,assertObjectType:()=>et,assertOutputType:()=>mt,assertScalarType:()=>Xe,assertSchema:()=>Mr,assertType:()=>Ye,assertUnionType:()=>it,assertValidName:()=>Ys,assertValidSchema:()=>$r,assertWrappingType:()=>Tt,astFromValue:()=>Dr,buildASTSchema:()=>Ts,buildClientSchema:()=>Is,buildSchema:()=>Ns,coerceInputValue:()=>ri,concatAST:()=>qs,createSourceEventStream:()=>hs,defaultFieldResolver:()=>os,defaultTypeResolver:()=>ss,doTypesOverlap:()=>er,execute:()=>Qi,executeSync:()=>Wi,extendSchema:()=>bs,findBreakingChanges:()=>eo,findDangerousChanges:()=>to,formatError:()=>g,getArgumentValues:()=>ui,getDirectiveValues:()=>li,getEnterLeaveForKind:()=>Ve,getIntrospectionQuery:()=>ms,getLocation:()=>c,getNamedType:()=>Pt,getNullableType:()=>Ct,getOperationAST:()=>gs,getOperationRootType:()=>vs,getVariableValues:()=>ai,getVisitFn:()=>Ue,graphql:()=>us,graphqlSync:()=>ls,introspectionFromSchema:()=>Es,introspectionTypes:()=>xr,isAbstractType:()=>bt,isCompositeType:()=>Et,isConstValueNode:()=>pn,isDefinitionNode:()=>un,isDirective:()=>dr,isEnumType:()=>st,isEqualType:()=>Xt,isExecutableDefinitionNode:()=>ln,isInputObjectType:()=>at,isInputType:()=>ht,isInterfaceType:()=>tt,isIntrospectionType:()=>Vr,isLeafType:()=>gt,isListType:()=>lt,isNamedType:()=>Rt,isNonNullType:()=>dt,isNullableType:()=>Nt,isObjectType:()=>Ze,isOutputType:()=>ft,isRequiredArgument:()=>$t,isRequiredInputField:()=>Ht,isScalarType:()=>He,isSchema:()=>Ur,isSelectionNode:()=>cn,isSpecifiedDirective:()=>Ir,isSpecifiedScalarType:()=>lr,isType:()=>ze,isTypeDefinitionNode:()=>fn,isTypeExtensionNode:()=>gn,isTypeNode:()=>hn,isTypeSubTypeOf:()=>Zt,isTypeSystemDefinitionNode:()=>yn,isTypeSystemExtensionNode:()=>mn,isUnionType:()=>nt,isValidNameError:()=>Hs,isValueNode:()=>dn,isWrappingType:()=>At,lexicographicSortSchema:()=>_s,locatedError:()=>Ki,parse:()=>ce,parseConstValue:()=>pe,parseType:()=>he,parseValue:()=>de,print:()=>Me,printError:()=>m,printIntrospectionSchema:()=>Gs,printLocation:()=>d,printSchema:()=>Ps,printSourceLocation:()=>p,printType:()=>Vs,resolveObjMapThunk:()=>Ft,resolveReadonlyArrayThunk:()=>Gt,responsePathAsArray:()=>ti,separateOperations:()=>Qs,specifiedDirectives:()=>Er,specifiedRules:()=>Li,specifiedScalarTypes:()=>ur,stripIgnoredCharacters:()=>zs,subscribe:()=>ps,syntaxError:()=>v,typeFromAST:()=>nn,validate:()=>ji,validateSchema:()=>Br,valueFromAST:()=>si,valueFromASTUntyped:()=>Qe,version:()=>n,versionInfo:()=>i,visit:()=>Le,visitInParallel:()=>xe,visitWithTypeInfo:()=>an});const n="16.8.1",i=Object.freeze({major:16,minor:8,patch:1,preReleaseTag:null});function s(e,t){if(!Boolean(e))throw new Error(t)}function o(e){return"function"==typeof(null==e?void 0:e.then)}function a(e){return"object"==typeof e&&null!==e}function u(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}const l=/\r\n|[\n\r]/g;function c(e,t){let r=0,n=1;for(const i of e.body.matchAll(l)){if("number"==typeof i.index||u(!1),i.index>=t)break;r=i.index+i[0].length,n+=1}return{line:n,column:t+1-r}}function d(e){return p(e.source,c(e.source,e.start))}function p(e,t){const r=e.locationOffset.column-1,n="".padStart(r)+e.body,i=t.line-1,s=e.locationOffset.line-1,o=t.line+s,a=1===t.line?r:0,u=t.column+a,l=`${e.name}:${o}:${u}\n`,c=n.split(/\r\n|[\n\r]/g),d=c[i];if(d.length>120){const e=Math.floor(u/80),t=u%80,r=[];for(let e=0;e<d.length;e+=80)r.push(d.slice(e,e+80));return l+h([[`${o} |`,r[0]],...r.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",r[e+1]]])}return l+h([[o-1+" |",c[i-1]],[`${o} |`,d],["|","^".padStart(u)],[`${o+1} |`,c[i+1]]])}function h(e){const t=e.filter((([e,t])=>void 0!==t)),r=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(r)+(t?" "+t:""))).join("\n")}class y extends Error{constructor(e,...t){var r,n,i;const{nodes:s,source:o,positions:u,path:l,originalError:d,extensions:p}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=l?l:void 0,this.originalError=null!=d?d:void 0,this.nodes=f(Array.isArray(s)?s:s?[s]:void 0);const h=f(null===(r=this.nodes)||void 0===r?void 0:r.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=o?o:null==h||null===(n=h[0])||void 0===n?void 0:n.source,this.positions=null!=u?u:null==h?void 0:h.map((e=>e.start)),this.locations=u&&o?u.map((e=>c(o,e))):null==h?void 0:h.map((e=>c(e.source,e.start)));const m=a(null==d?void 0:d.extensions)?null==d?void 0:d.extensions:void 0;this.extensions=null!==(i=null!=p?p:m)&&void 0!==i?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=d&&d.stack?Object.defineProperty(this,"stack",{value:d.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,y):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+d(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+p(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function f(e){return void 0===e||0===e.length?void 0:e}function m(e){return e.toString()}function g(e){return e.toJSON()}function v(e,t,r){return new y(`Syntax Error: ${r}`,{source:e,positions:[t]})}class E{constructor(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class I{constructor(e,t,r,n,i,s){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const b={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},D=new Set(Object.keys(b));function S(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&D.has(t)}var w,A,T,N;function _(e){return 9===e||32===e}function C(e){return e>=48&&e<=57}function R(e){return e>=97&&e<=122||e>=65&&e<=90}function O(e){return R(e)||95===e}function P(e){return R(e)||C(e)||95===e}function G(e){var t;let r=Number.MAX_SAFE_INTEGER,n=null,i=-1;for(let t=0;t<e.length;++t){var s;const o=e[t],a=F(o);a!==o.length&&(n=null!==(s=n)&&void 0!==s?s:t,i=t,0!==t&&a<r&&(r=a))}return e.map(((e,t)=>0===t?e:e.slice(r))).slice(null!==(t=n)&&void 0!==t?t:0,i+1)}function F(e){let t=0;for(;t<e.length&&_(e.charCodeAt(t));)++t;return t}function L(e){if(""===e)return!0;let t=!0,r=!1,n=!0,i=!1;for(let s=0;s<e.length;++s)switch(e.codePointAt(s)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:case 13:return!1;case 10:if(t&&!i)return!1;i=!0,t=!0,r=!1;break;case 9:case 32:r||(r=t);break;default:n&&(n=r),t=!1}return!(t||n&&i)}function x(e,t){const r=e.replace(/"""/g,'\\"""'),n=r.split(/\r\n|[\n\r]/g),i=1===n.length,s=n.length>1&&n.slice(1).every((e=>0===e.length||_(e.charCodeAt(0)))),o=r.endsWith('\\"""'),a=e.endsWith('"')&&!o,u=e.endsWith("\\"),l=a||u,c=!(null!=t&&t.minimize)&&(!i||e.length>70||l||s||o);let d="";const p=i&&_(e.charCodeAt(0));return(c&&!p||s)&&(d+="\n"),d+=r,(c||l)&&(d+="\n"),'"""'+d+'"""'}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(w||(w={})),function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(A||(A={})),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(T||(T={})),function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(N||(N={}));class V{constructor(e){const t=new I(N.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==N.EOF)do{if(e.next)e=e.next;else{const t=q(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===N.COMMENT);return e}}function U(e){return e===N.BANG||e===N.DOLLAR||e===N.AMP||e===N.PAREN_L||e===N.PAREN_R||e===N.SPREAD||e===N.COLON||e===N.EQUALS||e===N.AT||e===N.BRACKET_L||e===N.BRACKET_R||e===N.BRACE_L||e===N.PIPE||e===N.BRACE_R}function M(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function j(e,t){return k(e.charCodeAt(t))&&B(e.charCodeAt(t+1))}function k(e){return e>=55296&&e<=56319}function B(e){return e>=56320&&e<=57343}function $(e,t){const r=e.source.body.codePointAt(t);if(void 0===r)return N.EOF;if(r>=32&&r<=126){const e=String.fromCodePoint(r);return'"'===e?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function K(e,t,r,n,i){const s=e.line,o=1+r-e.lineStart;return new I(t,r,n,s,o,i)}function q(e,t){const r=e.source.body,n=r.length;let i=t;for(;i<n;){const t=r.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===r.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return Q(e,i);case 33:return K(e,N.BANG,i,i+1);case 36:return K(e,N.DOLLAR,i,i+1);case 38:return K(e,N.AMP,i,i+1);case 40:return K(e,N.PAREN_L,i,i+1);case 41:return K(e,N.PAREN_R,i,i+1);case 46:if(46===r.charCodeAt(i+1)&&46===r.charCodeAt(i+2))return K(e,N.SPREAD,i,i+3);break;case 58:return K(e,N.COLON,i,i+1);case 61:return K(e,N.EQUALS,i,i+1);case 64:return K(e,N.AT,i,i+1);case 91:return K(e,N.BRACKET_L,i,i+1);case 93:return K(e,N.BRACKET_R,i,i+1);case 123:return K(e,N.BRACE_L,i,i+1);case 124:return K(e,N.PIPE,i,i+1);case 125:return K(e,N.BRACE_R,i,i+1);case 34:return 34===r.charCodeAt(i+1)&&34===r.charCodeAt(i+2)?te(e,i):z(e,i)}if(C(t)||45===t)return W(e,i,t);if(O(t))return re(e,i);throw v(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":M(t)||j(r,i)?`Unexpected character: ${$(e,i)}.`:`Invalid character: ${$(e,i)}.`)}return K(e,N.EOF,n,n)}function Q(e,t){const r=e.source.body,n=r.length;let i=t+1;for(;i<n;){const e=r.charCodeAt(i);if(10===e||13===e)break;if(M(e))++i;else{if(!j(r,i))break;i+=2}}return K(e,N.COMMENT,t,i,r.slice(t+1,i))}function W(e,t,r){const n=e.source.body;let i=t,s=r,o=!1;if(45===s&&(s=n.charCodeAt(++i)),48===s){if(s=n.charCodeAt(++i),C(s))throw v(e.source,i,`Invalid number, unexpected digit after 0: ${$(e,i)}.`)}else i=J(e,i,s),s=n.charCodeAt(i);if(46===s&&(o=!0,s=n.charCodeAt(++i),i=J(e,i,s),s=n.charCodeAt(i)),69!==s&&101!==s||(o=!0,s=n.charCodeAt(++i),43!==s&&45!==s||(s=n.charCodeAt(++i)),i=J(e,i,s),s=n.charCodeAt(i)),46===s||O(s))throw v(e.source,i,`Invalid number, expected digit but got: ${$(e,i)}.`);return K(e,o?N.FLOAT:N.INT,t,i,n.slice(t,i))}function J(e,t,r){if(!C(r))throw v(e.source,t,`Invalid number, expected digit but got: ${$(e,t)}.`);const n=e.source.body;let i=t+1;for(;C(n.charCodeAt(i));)++i;return i}function z(e,t){const r=e.source.body,n=r.length;let i=t+1,s=i,o="";for(;i<n;){const n=r.charCodeAt(i);if(34===n)return o+=r.slice(s,i),K(e,N.STRING,t,i+1,o);if(92!==n){if(10===n||13===n)break;if(M(n))++i;else{if(!j(r,i))throw v(e.source,i,`Invalid character within String: ${$(e,i)}.`);i+=2}}else{o+=r.slice(s,i);const t=117===r.charCodeAt(i+1)?123===r.charCodeAt(i+2)?Y(e,i):H(e,i):ee(e,i);o+=t.value,i+=t.size,s=i}}throw v(e.source,i,"Unterminated string.")}function Y(e,t){const r=e.source.body;let n=0,i=3;for(;i<12;){const e=r.charCodeAt(t+i++);if(125===e){if(i<5||!M(n))break;return{value:String.fromCodePoint(n),size:i}}if(n=n<<4|Z(e),n<0)break}throw v(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+i)}".`)}function H(e,t){const r=e.source.body,n=X(r,t+2);if(M(n))return{value:String.fromCodePoint(n),size:6};if(k(n)&&92===r.charCodeAt(t+6)&&117===r.charCodeAt(t+7)){const e=X(r,t+8);if(B(e))return{value:String.fromCodePoint(n,e),size:12}}throw v(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}function X(e,t){return Z(e.charCodeAt(t))<<12|Z(e.charCodeAt(t+1))<<8|Z(e.charCodeAt(t+2))<<4|Z(e.charCodeAt(t+3))}function Z(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function ee(e,t){const r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw v(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function te(e,t){const r=e.source.body,n=r.length;let i=e.lineStart,s=t+3,o=s,a="";const u=[];for(;s<n;){const n=r.charCodeAt(s);if(34===n&&34===r.charCodeAt(s+1)&&34===r.charCodeAt(s+2)){a+=r.slice(o,s),u.push(a);const n=K(e,N.BLOCK_STRING,t,s+3,G(u).join("\n"));return e.line+=u.length-1,e.lineStart=i,n}if(92!==n||34!==r.charCodeAt(s+1)||34!==r.charCodeAt(s+2)||34!==r.charCodeAt(s+3))if(10!==n&&13!==n)if(M(n))++s;else{if(!j(r,s))throw v(e.source,s,`Invalid character within String: ${$(e,s)}.`);s+=2}else a+=r.slice(o,s),u.push(a),13===n&&10===r.charCodeAt(s+1)?s+=2:++s,a="",o=s,i=s;else a+=r.slice(o,s),o=s+1,s+=4}throw v(e.source,s,"Unterminated string.")}function re(e,t){const r=e.source.body,n=r.length;let i=t+1;for(;i<n&&P(r.charCodeAt(i));)++i;return K(e,N.NAME,t,i,r.slice(t,i))}const ne=10,ie=2;function se(e){return oe(e,[])}function oe(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const r=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:oe(t,r)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>ie)return"[Array]";const r=Math.min(ne,e.length),n=e.length-r,i=[];for(let n=0;n<r;++n)i.push(oe(e[n],t));return 1===n?i.push("... 1 more item"):n>1&&i.push(`... ${n} more items`),"["+i.join(", ")+"]"}(e,r);return function(e,t){const r=Object.entries(e);if(0===r.length)return"{}";if(t.length>ie)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const n=r.map((([e,r])=>e+": "+oe(r,t)));return"{ "+n.join(", ")+" }"}(e,r)}(e,t);default:return String(e)}}const ae=globalThis.process&&"production"===globalThis.process.env.NODE_ENV?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var r;const n=t.prototype[Symbol.toStringTag];if(n===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(r=e.constructor)||void 0===r?void 0:r.name)){const t=se(e);throw new Error(`Cannot use ${n} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};class ue{constructor(e,t="GraphQL request",r={line:1,column:1}){"string"==typeof e||s(!1,`Body must be a string. Received: ${se(e)}.`),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||s(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||s(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function le(e){return ae(e,ue)}function ce(e,t){return new ye(e,t).parseDocument()}function de(e,t){const r=new ye(e,t);r.expectToken(N.SOF);const n=r.parseValueLiteral(!1);return r.expectToken(N.EOF),n}function pe(e,t){const r=new ye(e,t);r.expectToken(N.SOF);const n=r.parseConstValueLiteral();return r.expectToken(N.EOF),n}function he(e,t){const r=new ye(e,t);r.expectToken(N.SOF);const n=r.parseTypeReference();return r.expectToken(N.EOF),n}class ye{constructor(e,t={}){const r=le(e)?e:new ue(e);this._lexer=new V(r),this._options=t,this._tokenCounter=0}parseName(){const e=this.expectToken(N.NAME);return this.node(e,{kind:T.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:T.DOCUMENT,definitions:this.many(N.SOF,this.parseDefinition,N.EOF)})}parseDefinition(){if(this.peek(N.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===N.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw v(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(N.BRACE_L))return this.node(e,{kind:T.OPERATION_DEFINITION,operation:w.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let r;return this.peek(N.NAME)&&(r=this.parseName()),this.node(e,{kind:T.OPERATION_DEFINITION,operation:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(N.NAME);switch(e.value){case"query":return w.QUERY;case"mutation":return w.MUTATION;case"subscription":return w.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(N.PAREN_L,this.parseVariableDefinition,N.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:T.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(N.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(N.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(N.DOLLAR),this.node(e,{kind:T.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:T.SELECTION_SET,selections:this.many(N.BRACE_L,this.parseSelection,N.BRACE_R)})}parseSelection(){return this.peek(N.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let r,n;return this.expectOptionalToken(N.COLON)?(r=t,n=this.parseName()):n=t,this.node(e,{kind:T.FIELD,alias:r,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(N.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(N.PAREN_L,t,N.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,r=this.parseName();return this.expectToken(N.COLON),this.node(t,{kind:T.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(N.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(N.NAME)?this.node(e,{kind:T.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:T.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:T.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:T.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case N.BRACKET_L:return this.parseList(e);case N.BRACE_L:return this.parseObject(e);case N.INT:return this.advanceLexer(),this.node(t,{kind:T.INT,value:t.value});case N.FLOAT:return this.advanceLexer(),this.node(t,{kind:T.FLOAT,value:t.value});case N.STRING:case N.BLOCK_STRING:return this.parseStringLiteral();case N.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:T.BOOLEAN,value:!0});case"false":return this.node(t,{kind:T.BOOLEAN,value:!1});case"null":return this.node(t,{kind:T.NULL});default:return this.node(t,{kind:T.ENUM,value:t.value})}case N.DOLLAR:if(e){if(this.expectToken(N.DOLLAR),this._lexer.token.kind===N.NAME){const e=this._lexer.token.value;throw v(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:T.STRING,value:e.value,block:e.kind===N.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:T.LIST,values:this.any(N.BRACKET_L,(()=>this.parseValueLiteral(e)),N.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:T.OBJECT,fields:this.any(N.BRACE_L,(()=>this.parseObjectField(e)),N.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,r=this.parseName();return this.expectToken(N.COLON),this.node(t,{kind:T.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(N.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(N.AT),this.node(t,{kind:T.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(N.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(N.BRACKET_R),t=this.node(e,{kind:T.LIST_TYPE,type:r})}else t=this.parseNamedType();return this.expectOptionalToken(N.BANG)?this.node(e,{kind:T.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:T.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(N.STRING)||this.peek(N.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),n=this.many(N.BRACE_L,this.parseOperationTypeDefinition,N.BRACE_R);return this.node(e,{kind:T.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(N.COLON);const r=this.parseNamedType();return this.node(e,{kind:T.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),n=this.parseConstDirectives();return this.node(e,{kind:T.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:T.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(N.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(N.BRACE_L,this.parseFieldDefinition,N.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(N.COLON);const i=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:T.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:s})}parseArgumentDefs(){return this.optionalMany(N.PAREN_L,this.parseInputValueDef,N.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseName();this.expectToken(N.COLON);const n=this.parseTypeReference();let i;this.expectOptionalToken(N.EQUALS)&&(i=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(e,{kind:T.INPUT_VALUE_DEFINITION,description:t,name:r,type:n,defaultValue:i,directives:s})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:T.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:s})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:T.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(N.EQUALS)?this.delimitedMany(N.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:T.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i})}parseEnumValuesDefinition(){return this.optionalMany(N.BRACE_L,this.parseEnumValueDefinition,N.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(e,{kind:T.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw v(this._lexer.source,this._lexer.token.start,`${fe(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:T.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(N.BRACE_L,this.parseInputValueDef,N.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===N.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),r=this.optionalMany(N.BRACE_L,this.parseOperationTypeDefinition,N.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:T.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(e,{kind:T.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:T.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:T.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),r=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:T.UNION_TYPE_EXTENSION,name:t,directives:r,types:n})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),r=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:T.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),r=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:T.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(N.AT);const r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const s=this.parseDirectiveLocations();return this.node(e,{kind:T.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:i,locations:s})}parseDirectiveLocations(){return this.delimitedMany(N.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(A,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new E(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw v(this._lexer.source,t.start,`Expected ${me(e)}, found ${fe(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==N.NAME||t.value!==e)throw v(this._lexer.source,t.start,`Expected "${e}", found ${fe(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===N.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return v(this._lexer.source,t.start,`Unexpected ${fe(t)}.`)}any(e,t,r){this.expectToken(e);const n=[];for(;!this.expectOptionalToken(r);)n.push(t.call(this));return n}optionalMany(e,t,r){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(r));return e}return[]}many(e,t,r){this.expectToken(e);const n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n}delimitedMany(e,t){this.expectOptionalToken(e);const r=[];do{r.push(t.call(this))}while(this.expectOptionalToken(e));return r}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==N.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw v(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function fe(e){const t=e.value;return me(e.kind)+(null!=t?` "${t}"`:"")}function me(e){return U(e)?`"${e}"`:e}const ge=5;function ve(e,t){const[r,n]=t?[e,t]:[void 0,e];let i=" Did you mean ";r&&(i+=r+" ");const s=n.map((e=>`"${e}"`));switch(s.length){case 0:return"";case 1:return i+s[0]+"?";case 2:return i+s[0]+" or "+s[1]+"?"}const o=s.slice(0,ge),a=o.pop();return i+o.join(", ")+", or "+a+"?"}function Ee(e){return e}function Ie(e,t){const r=Object.create(null);for(const n of e)r[t(n)]=n;return r}function be(e,t,r){const n=Object.create(null);for(const i of e)n[t(i)]=r(i);return n}function De(e,t){const r=Object.create(null);for(const n of Object.keys(e))r[n]=t(e[n],n);return r}function Se(e,t){let r=0,n=0;for(;r<e.length&&n<t.length;){let i=e.charCodeAt(r),s=t.charCodeAt(n);if(Te(i)&&Te(s)){let o=0;do{++r,o=10*o+i-we,i=e.charCodeAt(r)}while(Te(i)&&o>0);let a=0;do{++n,a=10*a+s-we,s=t.charCodeAt(n)}while(Te(s)&&a>0);if(o<a)return-1;if(o>a)return 1}else{if(i<s)return-1;if(i>s)return 1;++r,++n}}return e.length-t.length}const we=48,Ae=57;function Te(e){return!isNaN(e)&&we<=e&&e<=Ae}function Ne(e,t){const r=Object.create(null),n=new _e(e),i=Math.floor(.4*e.length)+1;for(const e of t){const t=n.measure(e,i);void 0!==t&&(r[e]=t)}return Object.keys(r).sort(((e,t)=>{const n=r[e]-r[t];return 0!==n?n:Se(e,t)}))}class _e{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=Ce(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;const r=e.toLowerCase();if(this._inputLowerCase===r)return 1;let n=Ce(r),i=this._inputArray;if(n.length<i.length){const e=n;n=i,i=e}const s=n.length,o=i.length;if(s-o>t)return;const a=this._rows;for(let e=0;e<=o;e++)a[0][e]=e;for(let e=1;e<=s;e++){const r=a[(e-1)%3],s=a[e%3];let u=s[0]=e;for(let t=1;t<=o;t++){const o=n[e-1]===i[t-1]?0:1;let l=Math.min(r[t]+1,s[t-1]+1,r[t-1]+o);if(e>1&&t>1&&n[e-1]===i[t-2]&&n[e-2]===i[t-1]){const r=a[(e-2)%3][t-2];l=Math.min(l,r+1)}l<u&&(u=l),s[t]=l}if(u>t)return}const u=a[s%3][o];return u<=t?u:void 0}}function Ce(e){const t=e.length,r=new Array(t);for(let n=0;n<t;++n)r[n]=e.charCodeAt(n);return r}function Re(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;const t=Object.create(null);for(const[r,n]of Object.entries(e))t[r]=n;return t}const Oe=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Pe(e){return Ge[e.charCodeAt(0)]}const Ge=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],Fe=Object.freeze({});function Le(e,t,r=b){const n=new Map;for(const e of Object.values(T))n.set(e,Ve(t,e));let i,o,a,u=Array.isArray(e),l=[e],c=-1,d=[],p=e;const h=[],y=[];do{c++;const e=c===l.length,v=e&&0!==d.length;if(e){if(o=0===y.length?void 0:h[h.length-1],p=a,a=y.pop(),v)if(u){p=p.slice();let e=0;for(const[t,r]of d){const n=t-e;null===r?(p.splice(n,1),e++):p[n]=r}}else{p=Object.defineProperties({},Object.getOwnPropertyDescriptors(p));for(const[e,t]of d)p[e]=t}c=i.index,l=i.keys,d=i.edits,u=i.inArray,i=i.prev}else if(a){if(o=u?c:l[c],p=a[o],null==p)continue;h.push(o)}let E;if(!Array.isArray(p)){var f,m;S(p)||s(!1,`Invalid AST Node: ${se(p)}.`);const r=e?null===(f=n.get(p.kind))||void 0===f?void 0:f.leave:null===(m=n.get(p.kind))||void 0===m?void 0:m.enter;if(E=null==r?void 0:r.call(t,p,o,a,h,y),E===Fe)break;if(!1===E){if(!e){h.pop();continue}}else if(void 0!==E&&(d.push([o,E]),!e)){if(!S(E)){h.pop();continue}p=E}}var g;void 0===E&&v&&d.push([o,p]),e?h.pop():(i={inArray:u,index:c,keys:l,edits:d,prev:i},u=Array.isArray(p),l=u?p:null!==(g=r[p.kind])&&void 0!==g?g:[],c=-1,d=[],a&&y.push(a),a=p)}while(void 0!==i);return 0!==d.length?d[d.length-1][1]:e}function xe(e){const t=new Array(e.length).fill(null),r=Object.create(null);for(const n of Object.values(T)){let i=!1;const s=new Array(e.length).fill(void 0),o=new Array(e.length).fill(void 0);for(let t=0;t<e.length;++t){const{enter:r,leave:a}=Ve(e[t],n);i||(i=null!=r||null!=a),s[t]=r,o[t]=a}if(!i)continue;const a={enter(...r){const n=r[0];for(let o=0;o<e.length;o++)if(null===t[o]){var i;const a=null===(i=s[o])||void 0===i?void 0:i.apply(e[o],r);if(!1===a)t[o]=n;else if(a===Fe)t[o]=Fe;else if(void 0!==a)return a}},leave(...r){const n=r[0];for(let s=0;s<e.length;s++)if(null===t[s]){var i;const n=null===(i=o[s])||void 0===i?void 0:i.apply(e[s],r);if(n===Fe)t[s]=Fe;else if(void 0!==n&&!1!==n)return n}else t[s]===n&&(t[s]=null)}};r[n]=a}return r}function Ve(e,t){const r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}function Ue(e,t,r){const{enter:n,leave:i}=Ve(e,t);return r?i:n}function Me(e){return Le(e,je)}const je={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>ke(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=$e("(",ke(e.variableDefinitions,", "),")"),r=ke([e.operation,ke([e.name,t]),ke(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+$e(" = ",r)+$e(" ",ke(n," "))},SelectionSet:{leave:({selections:e})=>Be(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){const s=$e("",e,": ")+t;let o=s+$e("(",ke(r,", "),")");return o.length>80&&(o=s+$e("(\n",Ke(ke(r,"\n")),"\n)")),ke([o,ke(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+$e(" ",ke(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>ke(["...",$e("on ",e),ke(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${e}${$e("(",ke(r,", "),")")} on ${t} ${$e("",ke(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?x(e):`"${e.replace(Oe,Pe)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+ke(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+ke(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+$e("(",ke(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>$e("",e,"\n")+ke(["schema",ke(t," "),Be(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>$e("",e,"\n")+ke(["scalar",t,ke(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>$e("",e,"\n")+ke(["type",t,$e("implements ",ke(r," & ")),ke(n," "),Be(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>$e("",e,"\n")+t+(qe(r)?$e("(\n",Ke(ke(r,"\n")),"\n)"):$e("(",ke(r,", "),")"))+": "+n+$e(" ",ke(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>$e("",e,"\n")+ke([t+": "+r,$e("= ",n),ke(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>$e("",e,"\n")+ke(["interface",t,$e("implements ",ke(r," & ")),ke(n," "),Be(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>$e("",e,"\n")+ke(["union",t,ke(r," "),$e("= ",ke(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>$e("",e,"\n")+ke(["enum",t,ke(r," "),Be(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>$e("",e,"\n")+ke([t,ke(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>$e("",e,"\n")+ke(["input",t,ke(r," "),Be(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>$e("",e,"\n")+"directive @"+t+(qe(r)?$e("(\n",Ke(ke(r,"\n")),"\n)"):$e("(",ke(r,", "),")"))+(n?" repeatable":"")+" on "+ke(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>ke(["extend schema",ke(e," "),Be(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>ke(["extend scalar",e,ke(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>ke(["extend type",e,$e("implements ",ke(t," & ")),ke(r," "),Be(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>ke(["extend interface",e,$e("implements ",ke(t," & ")),ke(r," "),Be(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>ke(["extend union",e,ke(t," "),$e("= ",ke(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>ke(["extend enum",e,ke(t," "),Be(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>ke(["extend input",e,ke(t," "),Be(r)]," ")}};function ke(e,t=""){var r;return null!==(r=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==r?r:""}function Be(e){return $e("{\n",Ke(ke(e,"\n")),"\n}")}function $e(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function Ke(e){return $e(" ",e.replace(/\n/g,"\n "))}function qe(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}function Qe(e,t){switch(e.kind){case T.NULL:return null;case T.INT:return parseInt(e.value,10);case T.FLOAT:return parseFloat(e.value);case T.STRING:case T.ENUM:case T.BOOLEAN:return e.value;case T.LIST:return e.values.map((e=>Qe(e,t)));case T.OBJECT:return be(e.fields,(e=>e.name.value),(e=>Qe(e.value,t)));case T.VARIABLE:return null==t?void 0:t[e.name.value]}}function We(e){if(null!=e||s(!1,"Must provide name."),"string"==typeof e||s(!1,"Expected name to be a string."),0===e.length)throw new y("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!P(e.charCodeAt(t)))throw new y(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!O(e.charCodeAt(0)))throw new y(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function Je(e){if("true"===e||"false"===e||"null"===e)throw new y(`Enum values cannot be named: ${e}`);return We(e)}function ze(e){return He(e)||Ze(e)||tt(e)||nt(e)||st(e)||at(e)||lt(e)||dt(e)}function Ye(e){if(!ze(e))throw new Error(`Expected ${se(e)} to be a GraphQL type.`);return e}function He(e){return ae(e,Lt)}function Xe(e){if(!He(e))throw new Error(`Expected ${se(e)} to be a GraphQL Scalar type.`);return e}function Ze(e){return ae(e,xt)}function et(e){if(!Ze(e))throw new Error(`Expected ${se(e)} to be a GraphQL Object type.`);return e}function tt(e){return ae(e,Kt)}function rt(e){if(!tt(e))throw new Error(`Expected ${se(e)} to be a GraphQL Interface type.`);return e}function nt(e){return ae(e,qt)}function it(e){if(!nt(e))throw new Error(`Expected ${se(e)} to be a GraphQL Union type.`);return e}function st(e){return ae(e,Wt)}function ot(e){if(!st(e))throw new Error(`Expected ${se(e)} to be a GraphQL Enum type.`);return e}function at(e){return ae(e,zt)}function ut(e){if(!at(e))throw new Error(`Expected ${se(e)} to be a GraphQL Input Object type.`);return e}function lt(e){return ae(e,St)}function ct(e){if(!lt(e))throw new Error(`Expected ${se(e)} to be a GraphQL List type.`);return e}function dt(e){return ae(e,wt)}function pt(e){if(!dt(e))throw new Error(`Expected ${se(e)} to be a GraphQL Non-Null type.`);return e}function ht(e){return He(e)||st(e)||at(e)||At(e)&&ht(e.ofType)}function yt(e){if(!ht(e))throw new Error(`Expected ${se(e)} to be a GraphQL input type.`);return e}function ft(e){return He(e)||Ze(e)||tt(e)||nt(e)||st(e)||At(e)&&ft(e.ofType)}function mt(e){if(!ft(e))throw new Error(`Expected ${se(e)} to be a GraphQL output type.`);return e}function gt(e){return He(e)||st(e)}function vt(e){if(!gt(e))throw new Error(`Expected ${se(e)} to be a GraphQL leaf type.`);return e}function Et(e){return Ze(e)||tt(e)||nt(e)}function It(e){if(!Et(e))throw new Error(`Expected ${se(e)} to be a GraphQL composite type.`);return e}function bt(e){return tt(e)||nt(e)}function Dt(e){if(!bt(e))throw new Error(`Expected ${se(e)} to be a GraphQL abstract type.`);return e}class St{constructor(e){ze(e)||s(!1,`Expected ${se(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class wt{constructor(e){Nt(e)||s(!1,`Expected ${se(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function At(e){return lt(e)||dt(e)}function Tt(e){if(!At(e))throw new Error(`Expected ${se(e)} to be a GraphQL wrapping type.`);return e}function Nt(e){return ze(e)&&!dt(e)}function _t(e){if(!Nt(e))throw new Error(`Expected ${se(e)} to be a GraphQL nullable type.`);return e}function Ct(e){if(e)return dt(e)?e.ofType:e}function Rt(e){return He(e)||Ze(e)||tt(e)||nt(e)||st(e)||at(e)}function Ot(e){if(!Rt(e))throw new Error(`Expected ${se(e)} to be a GraphQL named type.`);return e}function Pt(e){if(e){let t=e;for(;At(t);)t=t.ofType;return t}}function Gt(e){return"function"==typeof e?e():e}function Ft(e){return"function"==typeof e?e():e}class Lt{constructor(e){var t,r,n,i;const o=null!==(t=e.parseValue)&&void 0!==t?t:Ee;this.name=We(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(r=e.serialize)&&void 0!==r?r:Ee,this.parseValue=o,this.parseLiteral=null!==(n=e.parseLiteral)&&void 0!==n?n:(e,t)=>o(Qe(e,t)),this.extensions=Re(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(i=e.extensionASTNodes)&&void 0!==i?i:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||s(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${se(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||s(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||s(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class xt{constructor(e){var t;this.name=We(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=Re(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>Ut(e),this._interfaces=()=>Vt(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||s(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${se(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:kt(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Vt(e){var t;const r=Gt(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(r)||s(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),r}function Ut(e){const t=Ft(e.fields);return jt(t)||s(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),De(t,((t,r)=>{var n;jt(t)||s(!1,`${e.name}.${r} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||s(!1,`${e.name}.${r} field resolver must be a function if provided, but got: ${se(t.resolve)}.`);const i=null!==(n=t.args)&&void 0!==n?n:{};return jt(i)||s(!1,`${e.name}.${r} args must be an object with argument names as keys.`),{name:We(r),description:t.description,type:t.type,args:Mt(i),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:Re(t.extensions),astNode:t.astNode}}))}function Mt(e){return Object.entries(e).map((([e,t])=>({name:We(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:Re(t.extensions),astNode:t.astNode})))}function jt(e){return a(e)&&!Array.isArray(e)}function kt(e){return De(e,(e=>({description:e.description,type:e.type,args:Bt(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function Bt(e){return be(e,(e=>e.name),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})))}function $t(e){return dt(e.type)&&void 0===e.defaultValue}class Kt{constructor(e){var t;this.name=We(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=Re(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=Ut.bind(void 0,e),this._interfaces=Vt.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||s(!1,`${this.name} must provide "resolveType" as a function, but got: ${se(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:kt(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class qt{constructor(e){var t;this.name=We(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=Re(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=Qt.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||s(!1,`${this.name} must provide "resolveType" as a function, but got: ${se(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Qt(e){const t=Gt(e.types);return Array.isArray(t)||s(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class Wt{constructor(e){var t,r,n;this.name=We(e.name),this.description=e.description,this.extensions=Re(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values=(r=this.name,jt(n=e.values)||s(!1,`${r} values must be an object with value names as keys.`),Object.entries(n).map((([e,t])=>(jt(t)||s(!1,`${r}.${e} must refer to an object with a "value" key representing an internal value but got: ${se(t)}.`),{name:Je(e),description:t.description,value:void 0!==t.value?t.value:e,deprecationReason:t.deprecationReason,extensions:Re(t.extensions),astNode:t.astNode})))),this._valueLookup=new Map(this._values.map((e=>[e.value,e]))),this._nameLookup=Ie(this._values,(e=>e.name))}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return this._values}getValue(e){return this._nameLookup[e]}serialize(e){const t=this._valueLookup.get(e);if(void 0===t)throw new y(`Enum "${this.name}" cannot represent value: ${se(e)}`);return t.name}parseValue(e){if("string"!=typeof e){const t=se(e);throw new y(`Enum "${this.name}" cannot represent non-string value: ${t}.`+Jt(this,t))}const t=this.getValue(e);if(null==t)throw new y(`Value "${e}" does not exist in "${this.name}" enum.`+Jt(this,e));return t.value}parseLiteral(e,t){if(e.kind!==T.ENUM){const t=Me(e);throw new y(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+Jt(this,t),{nodes:e})}const r=this.getValue(e.value);if(null==r){const t=Me(e);throw new y(`Value "${t}" does not exist in "${this.name}" enum.`+Jt(this,t),{nodes:e})}return r.value}toConfig(){const e=be(this.getValues(),(e=>e.name),(e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Jt(e,t){return ve("the enum value",Ne(t,e.getValues().map((e=>e.name))))}class zt{constructor(e){var t;this.name=We(e.name),this.description=e.description,this.extensions=Re(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=Yt.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=De(this.getFields(),(e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode})));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Yt(e){const t=Ft(e.fields);return jt(t)||s(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),De(t,((t,r)=>(!("resolve"in t)||s(!1,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:We(r),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:Re(t.extensions),astNode:t.astNode})))}function Ht(e){return dt(e.type)&&void 0===e.defaultValue}function Xt(e,t){return e===t||(dt(e)&&dt(t)||!(!lt(e)||!lt(t)))&&Xt(e.ofType,t.ofType)}function Zt(e,t,r){return t===r||(dt(r)?!!dt(t)&&Zt(e,t.ofType,r.ofType):dt(t)?Zt(e,t.ofType,r):lt(r)?!!lt(t)&&Zt(e,t.ofType,r.ofType):!lt(t)&&bt(r)&&(tt(t)||Ze(t))&&e.isSubType(r,t))}function er(e,t,r){return t===r||(bt(t)?bt(r)?e.getPossibleTypes(t).some((t=>e.isSubType(r,t))):e.isSubType(t,r):!!bt(r)&&e.isSubType(r,t))}const tr=2147483647,rr=-2147483648,nr=new Lt({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=cr(e);if("boolean"==typeof t)return t?1:0;let r=t;if("string"==typeof t&&""!==t&&(r=Number(t)),"number"!=typeof r||!Number.isInteger(r))throw new y(`Int cannot represent non-integer value: ${se(t)}`);if(r>tr||r<rr)throw new y("Int cannot represent non 32-bit signed integer value: "+se(t));return r},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new y(`Int cannot represent non-integer value: ${se(e)}`);if(e>tr||e<rr)throw new y(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==T.INT)throw new y(`Int cannot represent non-integer value: ${Me(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>tr||t<rr)throw new y(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),ir=new Lt({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){const t=cr(e);if("boolean"==typeof t)return t?1:0;let r=t;if("string"==typeof t&&""!==t&&(r=Number(t)),"number"!=typeof r||!Number.isFinite(r))throw new y(`Float cannot represent non numeric value: ${se(t)}`);return r},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new y(`Float cannot represent non numeric value: ${se(e)}`);return e},parseLiteral(e){if(e.kind!==T.FLOAT&&e.kind!==T.INT)throw new y(`Float cannot represent non numeric value: ${Me(e)}`,e);return parseFloat(e.value)}}),sr=new Lt({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){const t=cr(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if("number"==typeof t&&Number.isFinite(t))return t.toString();throw new y(`String cannot represent value: ${se(e)}`)},parseValue(e){if("string"!=typeof e)throw new y(`String cannot represent a non string value: ${se(e)}`);return e},parseLiteral(e){if(e.kind!==T.STRING)throw new y(`String cannot represent a non string value: ${Me(e)}`,{nodes:e});return e.value}}),or=new Lt({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=cr(e);if("boolean"==typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new y(`Boolean cannot represent a non boolean value: ${se(t)}`)},parseValue(e){if("boolean"!=typeof e)throw new y(`Boolean cannot represent a non boolean value: ${se(e)}`);return e},parseLiteral(e){if(e.kind!==T.BOOLEAN)throw new y(`Boolean cannot represent a non boolean value: ${Me(e)}`,{nodes:e});return e.value}}),ar=new Lt({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){const t=cr(e);if("string"==typeof t)return t;if(Number.isInteger(t))return String(t);throw new y(`ID cannot represent value: ${se(e)}`)},parseValue(e){if("string"==typeof e)return e;if("number"==typeof e&&Number.isInteger(e))return e.toString();throw new y(`ID cannot represent value: ${se(e)}`)},parseLiteral(e){if(e.kind!==T.STRING&&e.kind!==T.INT)throw new y("ID cannot represent a non-string and non-integer value: "+Me(e),{nodes:e});return e.value}}),ur=Object.freeze([sr,nr,ir,or,ar]);function lr(e){return ur.some((({name:t})=>e.name===t))}function cr(e){if(a(e)){if("function"==typeof e.valueOf){const t=e.valueOf();if(!a(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}function dr(e){return ae(e,hr)}function pr(e){if(!dr(e))throw new Error(`Expected ${se(e)} to be a GraphQL directive.`);return e}class hr{constructor(e){var t,r;this.name=We(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=Re(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||s(!1,`@${e.name} locations must be an Array.`);const n=null!==(r=e.args)&&void 0!==r?r:{};a(n)&&!Array.isArray(n)||s(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=Mt(n)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:Bt(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const yr=new hr({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[A.FIELD,A.FRAGMENT_SPREAD,A.INLINE_FRAGMENT],args:{if:{type:new wt(or),description:"Included when true."}}}),fr=new hr({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[A.FIELD,A.FRAGMENT_SPREAD,A.INLINE_FRAGMENT],args:{if:{type:new wt(or),description:"Skipped when true."}}}),mr="No longer supported",gr=new hr({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[A.FIELD_DEFINITION,A.ARGUMENT_DEFINITION,A.INPUT_FIELD_DEFINITION,A.ENUM_VALUE],args:{reason:{type:sr,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:mr}}}),vr=new hr({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[A.SCALAR],args:{url:{type:new wt(sr),description:"The URL that specifies the behavior of this scalar."}}}),Er=Object.freeze([yr,fr,gr,vr]);function Ir(e){return Er.some((({name:t})=>t===e.name))}function br(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}function Dr(e,t){if(dt(t)){const r=Dr(e,t.ofType);return(null==r?void 0:r.kind)===T.NULL?null:r}if(null===e)return{kind:T.NULL};if(void 0===e)return null;if(lt(t)){const r=t.ofType;if(br(e)){const t=[];for(const n of e){const e=Dr(n,r);null!=e&&t.push(e)}return{kind:T.LIST,values:t}}return Dr(e,r)}if(at(t)){if(!a(e))return null;const r=[];for(const n of Object.values(t.getFields())){const t=Dr(e[n.name],n.type);t&&r.push({kind:T.OBJECT_FIELD,name:{kind:T.NAME,value:n.name},value:t})}return{kind:T.OBJECT,fields:r}}if(gt(t)){const r=t.serialize(e);if(null==r)return null;if("boolean"==typeof r)return{kind:T.BOOLEAN,value:r};if("number"==typeof r&&Number.isFinite(r)){const e=String(r);return Sr.test(e)?{kind:T.INT,value:e}:{kind:T.FLOAT,value:e}}if("string"==typeof r)return st(t)?{kind:T.ENUM,value:r}:t===ar&&Sr.test(r)?{kind:T.INT,value:r}:{kind:T.STRING,value:r};throw new TypeError(`Cannot convert value to AST: ${se(r)}.`)}u(!1,"Unexpected input type: "+se(t))}const Sr=/^-?(?:0|[1-9][0-9]*)$/,wr=new xt({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:sr,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new wt(new St(new wt(Nr))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new wt(Nr),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Nr,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Nr,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new wt(new St(new wt(Ar))),resolve:e=>e.getDirectives()}})}),Ar=new xt({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new wt(sr),resolve:e=>e.name},description:{type:sr,resolve:e=>e.description},isRepeatable:{type:new wt(or),resolve:e=>e.isRepeatable},locations:{type:new wt(new St(new wt(Tr))),resolve:e=>e.locations},args:{type:new wt(new St(new wt(Cr))),args:{includeDeprecated:{type:or,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))}})}),Tr=new Wt({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:A.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:A.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:A.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:A.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:A.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:A.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:A.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:A.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:A.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:A.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:A.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:A.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:A.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:A.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:A.UNION,description:"Location adjacent to a union definition."},ENUM:{value:A.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:A.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:A.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:A.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),Nr=new xt({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new wt(Pr),resolve:e=>He(e)?Or.SCALAR:Ze(e)?Or.OBJECT:tt(e)?Or.INTERFACE:nt(e)?Or.UNION:st(e)?Or.ENUM:at(e)?Or.INPUT_OBJECT:lt(e)?Or.LIST:dt(e)?Or.NON_NULL:void u(!1,`Unexpected type: "${se(e)}".`)},name:{type:sr,resolve:e=>"name"in e?e.name:void 0},description:{type:sr,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:sr,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new St(new wt(_r)),args:{includeDeprecated:{type:or,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Ze(e)||tt(e)){const r=Object.values(e.getFields());return t?r:r.filter((e=>null==e.deprecationReason))}}},interfaces:{type:new St(new wt(Nr)),resolve(e){if(Ze(e)||tt(e))return e.getInterfaces()}},possibleTypes:{type:new St(new wt(Nr)),resolve(e,t,r,{schema:n}){if(bt(e))return n.getPossibleTypes(e)}},enumValues:{type:new St(new wt(Rr)),args:{includeDeprecated:{type:or,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(st(e)){const r=e.getValues();return t?r:r.filter((e=>null==e.deprecationReason))}}},inputFields:{type:new St(new wt(Cr)),args:{includeDeprecated:{type:or,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(at(e)){const r=Object.values(e.getFields());return t?r:r.filter((e=>null==e.deprecationReason))}}},ofType:{type:Nr,resolve:e=>"ofType"in e?e.ofType:void 0}})}),_r=new xt({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new wt(sr),resolve:e=>e.name},description:{type:sr,resolve:e=>e.description},args:{type:new wt(new St(new wt(Cr))),args:{includeDeprecated:{type:or,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter((e=>null==e.deprecationReason))},type:{type:new wt(Nr),resolve:e=>e.type},isDeprecated:{type:new wt(or),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:sr,resolve:e=>e.deprecationReason}})}),Cr=new xt({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new wt(sr),resolve:e=>e.name},description:{type:sr,resolve:e=>e.description},type:{type:new wt(Nr),resolve:e=>e.type},defaultValue:{type:sr,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:r}=e,n=Dr(r,t);return n?Me(n):null}},isDeprecated:{type:new wt(or),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:sr,resolve:e=>e.deprecationReason}})}),Rr=new xt({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new wt(sr),resolve:e=>e.name},description:{type:sr,resolve:e=>e.description},isDeprecated:{type:new wt(or),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:sr,resolve:e=>e.deprecationReason}})});var Or;!function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"}(Or||(Or={}));const Pr=new Wt({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Or.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Or.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Or.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Or.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Or.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Or.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Or.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Or.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),Gr={name:"__schema",type:new wt(wr),description:"Access the current type schema of this server.",args:[],resolve:(e,t,r,{schema:n})=>n,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Fr={name:"__type",type:Nr,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new wt(sr),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},r,{schema:n})=>n.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Lr={name:"__typename",type:new wt(sr),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,r,{parentType:n})=>n.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},xr=Object.freeze([wr,Ar,Tr,Nr,_r,Cr,Rr,Pr]);function Vr(e){return xr.some((({name:t})=>e.name===t))}function Ur(e){return ae(e,jr)}function Mr(e){if(!Ur(e))throw new Error(`Expected ${se(e)} to be a GraphQL schema.`);return e}class jr{constructor(e){var t,r;this.__validationErrors=!0===e.assumeValid?[]:void 0,a(e)||s(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||s(!1,`"types" must be Array if provided but got: ${se(e.types)}.`),!e.directives||Array.isArray(e.directives)||s(!1,`"directives" must be Array if provided but got: ${se(e.directives)}.`),this.description=e.description,this.extensions=Re(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(r=e.directives)&&void 0!==r?r:Er;const n=new Set(e.types);if(null!=e.types)for(const t of e.types)n.delete(t),kr(t,n);null!=this._queryType&&kr(this._queryType,n),null!=this._mutationType&&kr(this._mutationType,n),null!=this._subscriptionType&&kr(this._subscriptionType,n);for(const e of this._directives)if(dr(e))for(const t of e.args)kr(t.type,n);kr(wr,n),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const e of n){if(null==e)continue;const t=e.name;if(t||s(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[t])throw new Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`);if(this._typeMap[t]=e,tt(e)){for(const t of e.getInterfaces())if(tt(t)){let r=this._implementationsMap[t.name];void 0===r&&(r=this._implementationsMap[t.name]={objects:[],interfaces:[]}),r.interfaces.push(e)}}else if(Ze(e))for(const t of e.getInterfaces())if(tt(t)){let r=this._implementationsMap[t.name];void 0===r&&(r=this._implementationsMap[t.name]={objects:[],interfaces:[]}),r.objects.push(e)}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case w.QUERY:return this.getQueryType();case w.MUTATION:return this.getMutationType();case w.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return nt(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}}isSubType(e,t){let r=this._subTypeMap[e.name];if(void 0===r){if(r=Object.create(null),nt(e))for(const t of e.getTypes())r[t.name]=!0;else{const t=this.getImplementations(e);for(const e of t.objects)r[e.name]=!0;for(const e of t.interfaces)r[e.name]=!0}this._subTypeMap[e.name]=r}return void 0!==r[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find((t=>t.name===e))}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function kr(e,t){const r=Pt(e);if(!t.has(r))if(t.add(r),nt(r))for(const e of r.getTypes())kr(e,t);else if(Ze(r)||tt(r)){for(const e of r.getInterfaces())kr(e,t);for(const e of Object.values(r.getFields())){kr(e.type,t);for(const r of e.args)kr(r.type,t)}}else if(at(r))for(const e of Object.values(r.getFields()))kr(e.type,t);return t}function Br(e){if(Mr(e),e.__validationErrors)return e.__validationErrors;const t=new Kr(e);!function(e){const t=e.schema,r=t.getQueryType();if(r){if(!Ze(r)){var n;e.reportError(`Query root type must be Object type, it cannot be ${se(r)}.`,null!==(n=qr(t,w.QUERY))&&void 0!==n?n:r.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);const i=t.getMutationType();var s;i&&!Ze(i)&&e.reportError(`Mutation root type must be Object type if provided, it cannot be ${se(i)}.`,null!==(s=qr(t,w.MUTATION))&&void 0!==s?s:i.astNode);const o=t.getSubscriptionType();var a;o&&!Ze(o)&&e.reportError(`Subscription root type must be Object type if provided, it cannot be ${se(o)}.`,null!==(a=qr(t,w.SUBSCRIPTION))&&void 0!==a?a:o.astNode)}(t),function(e){for(const r of e.schema.getDirectives())if(dr(r)){Qr(e,r);for(const n of r.args){var t;Qr(e,n),ht(n.type)||e.reportError(`The type of @${r.name}(${n.name}:) must be Input Type but got: ${se(n.type)}.`,n.astNode),$t(n)&&null!=n.deprecationReason&&e.reportError(`Required argument @${r.name}(${n.name}:) cannot be deprecated.`,[rn(n.astNode),null===(t=n.astNode)||void 0===t?void 0:t.type])}}else e.reportError(`Expected directive but got: ${se(r)}.`,null==r?void 0:r.astNode)}(t),function(e){const t=function(e){const t=Object.create(null),r=[],n=Object.create(null);return function i(s){if(t[s.name])return;t[s.name]=!0,n[s.name]=r.length;const o=Object.values(s.getFields());for(const t of o)if(dt(t.type)&&at(t.type.ofType)){const s=t.type.ofType,o=n[s.name];if(r.push(t),void 0===o)i(s);else{const t=r.slice(o),n=t.map((e=>e.name)).join(".");e.reportError(`Cannot reference Input Object "${s.name}" within itself through a series of non-null fields: "${n}".`,t.map((e=>e.astNode)))}r.pop()}n[s.name]=void 0}}(e),r=e.schema.getTypeMap();for(const n of Object.values(r))Rt(n)?(Vr(n)||Qr(e,n),Ze(n)||tt(n)?(Wr(e,n),Jr(e,n)):nt(n)?Hr(e,n):st(n)?Xr(e,n):at(n)&&(Zr(e,n),t(n))):e.reportError(`Expected GraphQL named type but got: ${se(n)}.`,n.astNode)}(t);const r=t.getErrors();return e.__validationErrors=r,r}function $r(e){const t=Br(e);if(0!==t.length)throw new Error(t.map((e=>e.message)).join("\n\n"))}class Kr{constructor(e){this._errors=[],this.schema=e}reportError(e,t){const r=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new y(e,{nodes:r}))}getErrors(){return this._errors}}function qr(e,t){var r;return null===(r=[e.astNode,...e.extensionASTNodes].flatMap((e=>{var t;return null!==(t=null==e?void 0:e.operationTypes)&&void 0!==t?t:[]})).find((e=>e.operation===t)))||void 0===r?void 0:r.type}function Qr(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function Wr(e,t){const r=Object.values(t.getFields());0===r.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const o of r){var n;Qr(e,o),ft(o.type)||e.reportError(`The type of ${t.name}.${o.name} must be Output Type but got: ${se(o.type)}.`,null===(n=o.astNode)||void 0===n?void 0:n.type);for(const r of o.args){const n=r.name;var i,s;Qr(e,r),ht(r.type)||e.reportError(`The type of ${t.name}.${o.name}(${n}:) must be Input Type but got: ${se(r.type)}.`,null===(i=r.astNode)||void 0===i?void 0:i.type),$t(r)&&null!=r.deprecationReason&&e.reportError(`Required argument ${t.name}.${o.name}(${n}:) cannot be deprecated.`,[rn(r.astNode),null===(s=r.astNode)||void 0===s?void 0:s.type])}}}function Jr(e,t){const r=Object.create(null);for(const n of t.getInterfaces())tt(n)?t!==n?r[n.name]?e.reportError(`Type ${t.name} can only implement ${n.name} once.`,en(t,n)):(r[n.name]=!0,Yr(e,t,n),zr(e,t,n)):e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,en(t,n)):e.reportError(`Type ${se(t)} must only implement Interface types, it cannot implement ${se(n)}.`,en(t,n))}function zr(e,t,r){const n=t.getFields();for(const u of Object.values(r.getFields())){const l=u.name,c=n[l];if(c){var i,s;Zt(e.schema,c.type,u.type)||e.reportError(`Interface field ${r.name}.${l} expects type ${se(u.type)} but ${t.name}.${l} is type ${se(c.type)}.`,[null===(i=u.astNode)||void 0===i?void 0:i.type,null===(s=c.astNode)||void 0===s?void 0:s.type]);for(const n of u.args){const i=n.name,s=c.args.find((e=>e.name===i));var o,a;s?Xt(n.type,s.type)||e.reportError(`Interface field argument ${r.name}.${l}(${i}:) expects type ${se(n.type)} but ${t.name}.${l}(${i}:) is type ${se(s.type)}.`,[null===(o=n.astNode)||void 0===o?void 0:o.type,null===(a=s.astNode)||void 0===a?void 0:a.type]):e.reportError(`Interface field argument ${r.name}.${l}(${i}:) expected but ${t.name}.${l} does not provide it.`,[n.astNode,c.astNode])}for(const n of c.args){const i=n.name;!u.args.find((e=>e.name===i))&&$t(n)&&e.reportError(`Object field ${t.name}.${l} includes required argument ${i} that is missing from the Interface field ${r.name}.${l}.`,[n.astNode,u.astNode])}}else e.reportError(`Interface field ${r.name}.${l} expected but ${t.name} does not provide it.`,[u.astNode,t.astNode,...t.extensionASTNodes])}}function Yr(e,t,r){const n=t.getInterfaces();for(const i of r.getInterfaces())n.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${r.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${r.name}.`,[...en(r,i),...en(t,r)])}function Hr(e,t){const r=t.getTypes();0===r.length&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);const n=Object.create(null);for(const i of r)n[i.name]?e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,tn(t,i.name)):(n[i.name]=!0,Ze(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${se(i)}.`,tn(t,String(i))))}function Xr(e,t){const r=t.getValues();0===r.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const t of r)Qr(e,t)}function Zr(e,t){const r=Object.values(t.getFields());0===r.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const s of r){var n,i;Qr(e,s),ht(s.type)||e.reportError(`The type of ${t.name}.${s.name} must be Input Type but got: ${se(s.type)}.`,null===(n=s.astNode)||void 0===n?void 0:n.type),Ht(s)&&null!=s.deprecationReason&&e.reportError(`Required input field ${t.name}.${s.name} cannot be deprecated.`,[rn(s.astNode),null===(i=s.astNode)||void 0===i?void 0:i.type])}}function en(e,t){const{astNode:r,extensionASTNodes:n}=e;return(null!=r?[r,...n]:n).flatMap((e=>{var t;return null!==(t=e.interfaces)&&void 0!==t?t:[]})).filter((e=>e.name.value===t.name))}function tn(e,t){const{astNode:r,extensionASTNodes:n}=e;return(null!=r?[r,...n]:n).flatMap((e=>{var t;return null!==(t=e.types)&&void 0!==t?t:[]})).filter((e=>e.name.value===t))}function rn(e){var t;return null==e||null===(t=e.directives)||void 0===t?void 0:t.find((e=>e.name.value===gr.name))}function nn(e,t){switch(t.kind){case T.LIST_TYPE:{const r=nn(e,t.type);return r&&new St(r)}case T.NON_NULL_TYPE:{const r=nn(e,t.type);return r&&new wt(r)}case T.NAMED_TYPE:return e.getType(t.name.value)}}class sn{constructor(e,t,r){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=r?r:on,t&&(ht(t)&&this._inputTypeStack.push(t),Et(t)&&this._parentTypeStack.push(t),ft(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case T.SELECTION_SET:{const e=Pt(this.getType());this._parentTypeStack.push(Et(e)?e:void 0);break}case T.FIELD:{const r=this.getParentType();let n,i;r&&(n=this._getFieldDef(t,r,e),n&&(i=n.type)),this._fieldDefStack.push(n),this._typeStack.push(ft(i)?i:void 0);break}case T.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case T.OPERATION_DEFINITION:{const r=t.getRootType(e.operation);this._typeStack.push(Ze(r)?r:void 0);break}case T.INLINE_FRAGMENT:case T.FRAGMENT_DEFINITION:{const r=e.typeCondition,n=r?nn(t,r):Pt(this.getType());this._typeStack.push(ft(n)?n:void 0);break}case T.VARIABLE_DEFINITION:{const r=nn(t,e.type);this._inputTypeStack.push(ht(r)?r:void 0);break}case T.ARGUMENT:{var r;let t,n;const i=null!==(r=this.getDirective())&&void 0!==r?r:this.getFieldDef();i&&(t=i.args.find((t=>t.name===e.name.value)),t&&(n=t.type)),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push(ht(n)?n:void 0);break}case T.LIST:{const e=Ct(this.getInputType()),t=lt(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push(ht(t)?t:void 0);break}case T.OBJECT_FIELD:{const t=Pt(this.getInputType());let r,n;at(t)&&(n=t.getFields()[e.name.value],n&&(r=n.type)),this._defaultValueStack.push(n?n.defaultValue:void 0),this._inputTypeStack.push(ht(r)?r:void 0);break}case T.ENUM:{const t=Pt(this.getInputType());let r;st(t)&&(r=t.getValue(e.value)),this._enumValue=r;break}}}leave(e){switch(e.kind){case T.SELECTION_SET:this._parentTypeStack.pop();break;case T.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case T.DIRECTIVE:this._directive=null;break;case T.OPERATION_DEFINITION:case T.INLINE_FRAGMENT:case T.FRAGMENT_DEFINITION:this._typeStack.pop();break;case T.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case T.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case T.LIST:case T.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case T.ENUM:this._enumValue=null}}}function on(e,t,r){const n=r.name.value;return n===Gr.name&&e.getQueryType()===t?Gr:n===Fr.name&&e.getQueryType()===t?Fr:n===Lr.name&&Et(t)?Lr:Ze(t)||tt(t)?t.getFields()[n]:void 0}function an(e,t){return{enter(...r){const n=r[0];e.enter(n);const i=Ve(t,n.kind).enter;if(i){const s=i.apply(t,r);return void 0!==s&&(e.leave(n),S(s)&&e.enter(s)),s}},leave(...r){const n=r[0],i=Ve(t,n.kind).leave;let s;return i&&(s=i.apply(t,r)),e.leave(n),s}}}function un(e){return ln(e)||yn(e)||mn(e)}function ln(e){return e.kind===T.OPERATION_DEFINITION||e.kind===T.FRAGMENT_DEFINITION}function cn(e){return e.kind===T.FIELD||e.kind===T.FRAGMENT_SPREAD||e.kind===T.INLINE_FRAGMENT}function dn(e){return e.kind===T.VARIABLE||e.kind===T.INT||e.kind===T.FLOAT||e.kind===T.STRING||e.kind===T.BOOLEAN||e.kind===T.NULL||e.kind===T.ENUM||e.kind===T.LIST||e.kind===T.OBJECT}function pn(e){return dn(e)&&(e.kind===T.LIST?e.values.some(pn):e.kind===T.OBJECT?e.fields.some((e=>pn(e.value))):e.kind!==T.VARIABLE)}function hn(e){return e.kind===T.NAMED_TYPE||e.kind===T.LIST_TYPE||e.kind===T.NON_NULL_TYPE}function yn(e){return e.kind===T.SCHEMA_DEFINITION||fn(e)||e.kind===T.DIRECTIVE_DEFINITION}function fn(e){return e.kind===T.SCALAR_TYPE_DEFINITION||e.kind===T.OBJECT_TYPE_DEFINITION||e.kind===T.INTERFACE_TYPE_DEFINITION||e.kind===T.UNION_TYPE_DEFINITION||e.kind===T.ENUM_TYPE_DEFINITION||e.kind===T.INPUT_OBJECT_TYPE_DEFINITION}function mn(e){return e.kind===T.SCHEMA_EXTENSION||gn(e)}function gn(e){return e.kind===T.SCALAR_TYPE_EXTENSION||e.kind===T.OBJECT_TYPE_EXTENSION||e.kind===T.INTERFACE_TYPE_EXTENSION||e.kind===T.UNION_TYPE_EXTENSION||e.kind===T.ENUM_TYPE_EXTENSION||e.kind===T.INPUT_OBJECT_TYPE_EXTENSION}function vn(e){return{Document(t){for(const r of t.definitions)if(!ln(r)){const t=r.kind===T.SCHEMA_DEFINITION||r.kind===T.SCHEMA_EXTENSION?"schema":'"'+r.name.value+'"';e.reportError(new y(`The ${t} definition is not executable.`,{nodes:r}))}return!1}}}function En(e){return{Field(t){const r=e.getParentType();if(r&&!e.getFieldDef()){const n=e.getSchema(),i=t.name.value;let s=ve("to use an inline fragment on",function(e,t,r){if(!bt(t))return[];const n=new Set,i=Object.create(null);for(const o of e.getPossibleTypes(t))if(o.getFields()[r]){n.add(o),i[o.name]=1;for(const e of o.getInterfaces()){var s;e.getFields()[r]&&(n.add(e),i[e.name]=(null!==(s=i[e.name])&&void 0!==s?s:0)+1)}}return[...n].sort(((t,r)=>{const n=i[r.name]-i[t.name];return 0!==n?n:tt(t)&&e.isSubType(t,r)?-1:tt(r)&&e.isSubType(r,t)?1:Se(t.name,r.name)})).map((e=>e.name))}(n,r,i));""===s&&(s=ve(function(e,t){return Ze(e)||tt(e)?Ne(t,Object.keys(e.getFields())):[]}(r,i))),e.reportError(new y(`Cannot query field "${i}" on type "${r.name}".`+s,{nodes:t}))}}}}function In(e){return{InlineFragment(t){const r=t.typeCondition;if(r){const t=nn(e.getSchema(),r);if(t&&!Et(t)){const t=Me(r);e.reportError(new y(`Fragment cannot condition on non composite type "${t}".`,{nodes:r}))}}},FragmentDefinition(t){const r=nn(e.getSchema(),t.typeCondition);if(r&&!Et(r)){const r=Me(t.typeCondition);e.reportError(new y(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}function bn(e){return{...Dn(e),Argument(t){const r=e.getArgument(),n=e.getFieldDef(),i=e.getParentType();if(!r&&n&&i){const r=t.name.value,s=Ne(r,n.args.map((e=>e.name)));e.reportError(new y(`Unknown argument "${r}" on field "${i.name}.${n.name}".`+ve(s),{nodes:t}))}}}}function Dn(e){const t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():Er;for(const e of n)t[e.name]=e.args.map((e=>e.name));const i=e.getDocument().definitions;for(const e of i)if(e.kind===T.DIRECTIVE_DEFINITION){var s;const r=null!==(s=e.arguments)&&void 0!==s?s:[];t[e.name.value]=r.map((e=>e.name.value))}return{Directive(r){const n=r.name.value,i=t[n];if(r.arguments&&i)for(const t of r.arguments){const r=t.name.value;if(!i.includes(r)){const s=Ne(r,i);e.reportError(new y(`Unknown argument "${r}" on directive "@${n}".`+ve(s),{nodes:t}))}}return!1}}}function Sn(e){const t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():Er;for(const e of n)t[e.name]=e.locations;const i=e.getDocument().definitions;for(const e of i)e.kind===T.DIRECTIVE_DEFINITION&&(t[e.name.value]=e.locations.map((e=>e.value)));return{Directive(r,n,i,s,o){const a=r.name.value,l=t[a];if(!l)return void e.reportError(new y(`Unknown directive "@${a}".`,{nodes:r}));const c=function(e){const t=e[e.length-1];switch("kind"in t||u(!1),t.kind){case T.OPERATION_DEFINITION:return function(e){switch(e){case w.QUERY:return A.QUERY;case w.MUTATION:return A.MUTATION;case w.SUBSCRIPTION:return A.SUBSCRIPTION}}(t.operation);case T.FIELD:return A.FIELD;case T.FRAGMENT_SPREAD:return A.FRAGMENT_SPREAD;case T.INLINE_FRAGMENT:return A.INLINE_FRAGMENT;case T.FRAGMENT_DEFINITION:return A.FRAGMENT_DEFINITION;case T.VARIABLE_DEFINITION:return A.VARIABLE_DEFINITION;case T.SCHEMA_DEFINITION:case T.SCHEMA_EXTENSION:return A.SCHEMA;case T.SCALAR_TYPE_DEFINITION:case T.SCALAR_TYPE_EXTENSION:return A.SCALAR;case T.OBJECT_TYPE_DEFINITION:case T.OBJECT_TYPE_EXTENSION:return A.OBJECT;case T.FIELD_DEFINITION:return A.FIELD_DEFINITION;case T.INTERFACE_TYPE_DEFINITION:case T.INTERFACE_TYPE_EXTENSION:return A.INTERFACE;case T.UNION_TYPE_DEFINITION:case T.UNION_TYPE_EXTENSION:return A.UNION;case T.ENUM_TYPE_DEFINITION:case T.ENUM_TYPE_EXTENSION:return A.ENUM;case T.ENUM_VALUE_DEFINITION:return A.ENUM_VALUE;case T.INPUT_OBJECT_TYPE_DEFINITION:case T.INPUT_OBJECT_TYPE_EXTENSION:return A.INPUT_OBJECT;case T.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];return"kind"in t||u(!1),t.kind===T.INPUT_OBJECT_TYPE_DEFINITION?A.INPUT_FIELD_DEFINITION:A.ARGUMENT_DEFINITION}default:u(!1,"Unexpected kind: "+se(t.kind))}}(o);c&&!l.includes(c)&&e.reportError(new y(`Directive "@${a}" may not be used on ${c}.`,{nodes:r}))}}}function wn(e){return{FragmentSpread(t){const r=t.name.value;e.getFragment(r)||e.reportError(new y(`Unknown fragment "${r}".`,{nodes:t.name}))}}}function An(e){const t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);for(const t of e.getDocument().definitions)fn(t)&&(n[t.name.value]=!0);const i=[...Object.keys(r),...Object.keys(n)];return{NamedType(t,s,o,a,u){const l=t.name.value;if(!r[l]&&!n[l]){var c;const r=null!==(c=u[2])&&void 0!==c?c:o,n=null!=r&&"kind"in(d=r)&&(yn(d)||mn(d));if(n&&Tn.includes(l))return;const s=Ne(l,n?Tn.concat(i):i);e.reportError(new y(`Unknown type "${l}".`+ve(s),{nodes:t}))}var d}}}const Tn=[...ur,...xr].map((e=>e.name));function Nn(e){let t=0;return{Document(e){t=e.definitions.filter((e=>e.kind===T.OPERATION_DEFINITION)).length},OperationDefinition(r){!r.name&&t>1&&e.reportError(new y("This anonymous operation must be the only defined operation.",{nodes:r}))}}}function _n(e){var t,r,n;const i=e.getSchema(),s=null!==(t=null!==(r=null!==(n=null==i?void 0:i.astNode)&&void 0!==n?n:null==i?void 0:i.getQueryType())&&void 0!==r?r:null==i?void 0:i.getMutationType())&&void 0!==t?t:null==i?void 0:i.getSubscriptionType();let o=0;return{SchemaDefinition(t){s?e.reportError(new y("Cannot define a new schema within a schema extension.",{nodes:t})):(o>0&&e.reportError(new y("Must provide only one schema definition.",{nodes:t})),++o)}}}function Cn(e){const t=Object.create(null),r=[],n=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:e=>(i(e),!1)};function i(s){if(t[s.name.value])return;const o=s.name.value;t[o]=!0;const a=e.getFragmentSpreads(s.selectionSet);if(0!==a.length){n[o]=r.length;for(const t of a){const s=t.name.value,o=n[s];if(r.push(t),void 0===o){const t=e.getFragment(s);t&&i(t)}else{const t=r.slice(o),n=t.slice(0,-1).map((e=>'"'+e.name.value+'"')).join(", ");e.reportError(new y(`Cannot spread fragment "${s}" within itself`+(""!==n?` via ${n}.`:"."),{nodes:t}))}r.pop()}n[o]=void 0}}}function Rn(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){const n=e.getRecursiveVariableUsages(r);for(const{node:i}of n){const n=i.name.value;!0!==t[n]&&e.reportError(new y(r.name?`Variable "$${n}" is not defined by operation "${r.name.value}".`:`Variable "$${n}" is not defined.`,{nodes:[i,r]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}}function On(e){const t=[],r=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(r.push(e),!1),Document:{leave(){const n=Object.create(null);for(const r of t)for(const t of e.getRecursivelyReferencedFragments(r))n[t.name.value]=!0;for(const t of r){const r=t.name.value;!0!==n[r]&&e.reportError(new y(`Fragment "${r}" is never used.`,{nodes:t}))}}}}}function Pn(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(r){const n=Object.create(null),i=e.getRecursiveVariableUsages(r);for(const{node:e}of i)n[e.name.value]=!0;for(const i of t){const t=i.variable.name.value;!0!==n[t]&&e.reportError(new y(r.name?`Variable "$${t}" is never used in operation "${r.name.value}".`:`Variable "$${t}" is never used.`,{nodes:i}))}}},VariableDefinition(e){t.push(e)}}}function Gn(e){switch(e.kind){case T.OBJECT:return{...e,fields:(t=e.fields,t.map((e=>({...e,value:Gn(e.value)}))).sort(((e,t)=>Se(e.name.value,t.name.value))))};case T.LIST:return{...e,values:e.values.map(Gn)};case T.INT:case T.FLOAT:case T.STRING:case T.BOOLEAN:case T.NULL:case T.ENUM:case T.VARIABLE:return e}var t}function Fn(e){return Array.isArray(e)?e.map((([e,t])=>`subfields "${e}" conflict because `+Fn(t))).join(" and "):e}function Ln(e){const t=new qn,r=new Map;return{SelectionSet(n){const i=function(e,t,r,n,i){const s=[],[o,a]=Bn(e,t,n,i);if(function(e,t,r,n,i){for(const[s,o]of Object.entries(i))if(o.length>1)for(let i=0;i<o.length;i++)for(let a=i+1;a<o.length;a++){const u=Mn(e,r,n,!1,s,o[i],o[a]);u&&t.push(u)}}(e,s,t,r,o),0!==a.length)for(let n=0;n<a.length;n++){xn(e,s,t,r,!1,o,a[n]);for(let i=n+1;i<a.length;i++)Vn(e,s,t,r,!1,a[n],a[i])}return s}(e,r,t,e.getParentType(),n);for(const[[t,r],n,s]of i){const i=Fn(r);e.reportError(new y(`Fields "${t}" conflict because ${i}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:n.concat(s)}))}}}}function xn(e,t,r,n,i,s,o){const a=e.getFragment(o);if(!a)return;const[u,l]=$n(e,r,a);if(s!==u){Un(e,t,r,n,i,s,u);for(const a of l)n.has(a,o,i)||(n.add(a,o,i),xn(e,t,r,n,i,s,a))}}function Vn(e,t,r,n,i,s,o){if(s===o)return;if(n.has(s,o,i))return;n.add(s,o,i);const a=e.getFragment(s),u=e.getFragment(o);if(!a||!u)return;const[l,c]=$n(e,r,a),[d,p]=$n(e,r,u);Un(e,t,r,n,i,l,d);for(const o of p)Vn(e,t,r,n,i,s,o);for(const s of c)Vn(e,t,r,n,i,s,o)}function Un(e,t,r,n,i,s,o){for(const[a,u]of Object.entries(s)){const s=o[a];if(s)for(const o of u)for(const u of s){const s=Mn(e,r,n,i,a,o,u);s&&t.push(s)}}}function Mn(e,t,r,n,i,s,o){const[a,u,l]=s,[c,d,p]=o,h=n||a!==c&&Ze(a)&&Ze(c);if(!h){const e=u.name.value,t=d.name.value;if(e!==t)return[[i,`"${e}" and "${t}" are different fields`],[u],[d]];if(!function(e,t){const r=e.arguments,n=t.arguments;if(void 0===r||0===r.length)return void 0===n||0===n.length;if(void 0===n||0===n.length)return!1;if(r.length!==n.length)return!1;const i=new Map(n.map((({name:e,value:t})=>[e.value,t])));return r.every((e=>{const t=e.value,r=i.get(e.name.value);return void 0!==r&&jn(t)===jn(r)}))}(u,d))return[[i,"they have differing arguments"],[u],[d]]}const y=null==l?void 0:l.type,f=null==p?void 0:p.type;if(y&&f&&kn(y,f))return[[i,`they return conflicting types "${se(y)}" and "${se(f)}"`],[u],[d]];const m=u.selectionSet,g=d.selectionSet;if(m&&g){const n=function(e,t,r,n,i,s,o,a){const u=[],[l,c]=Bn(e,t,i,s),[d,p]=Bn(e,t,o,a);Un(e,u,t,r,n,l,d);for(const i of p)xn(e,u,t,r,n,l,i);for(const i of c)xn(e,u,t,r,n,d,i);for(const i of c)for(const s of p)Vn(e,u,t,r,n,i,s);return u}(e,t,r,h,Pt(y),m,Pt(f),g);return function(e,t,r,n){if(e.length>0)return[[t,e.map((([e])=>e))],[r,...e.map((([,e])=>e)).flat()],[n,...e.map((([,,e])=>e)).flat()]]}(n,i,u,d)}}function jn(e){return Me(Gn(e))}function kn(e,t){return lt(e)?!lt(t)||kn(e.ofType,t.ofType):!!lt(t)||(dt(e)?!dt(t)||kn(e.ofType,t.ofType):!!dt(t)||!(!gt(e)&&!gt(t))&&e!==t)}function Bn(e,t,r,n){const i=t.get(n);if(i)return i;const s=Object.create(null),o=Object.create(null);Kn(e,r,n,s,o);const a=[s,Object.keys(o)];return t.set(n,a),a}function $n(e,t,r){const n=t.get(r.selectionSet);if(n)return n;const i=nn(e.getSchema(),r.typeCondition);return Bn(e,t,i,r.selectionSet)}function Kn(e,t,r,n,i){for(const s of r.selections)switch(s.kind){case T.FIELD:{const e=s.name.value;let r;(Ze(t)||tt(t))&&(r=t.getFields()[e]);const i=s.alias?s.alias.value:e;n[i]||(n[i]=[]),n[i].push([t,s,r]);break}case T.FRAGMENT_SPREAD:i[s.name.value]=!0;break;case T.INLINE_FRAGMENT:{const r=s.typeCondition,o=r?nn(e.getSchema(),r):t;Kn(e,o,s.selectionSet,n,i);break}}}class qn{constructor(){this._data=new Map}has(e,t,r){var n;const[i,s]=e<t?[e,t]:[t,e],o=null===(n=this._data.get(i))||void 0===n?void 0:n.get(s);return void 0!==o&&(!!r||r===o)}add(e,t,r){const[n,i]=e<t?[e,t]:[t,e],s=this._data.get(n);void 0===s?this._data.set(n,new Map([[i,r]])):s.set(i,r)}}function Qn(e){return{InlineFragment(t){const r=e.getType(),n=e.getParentType();if(Et(r)&&Et(n)&&!er(e.getSchema(),r,n)){const i=se(n),s=se(r);e.reportError(new y(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${s}".`,{nodes:t}))}},FragmentSpread(t){const r=t.name.value,n=function(e,t){const r=e.getFragment(t);if(r){const t=nn(e.getSchema(),r.typeCondition);if(Et(t))return t}}(e,r),i=e.getParentType();if(n&&i&&!er(e.getSchema(),n,i)){const s=se(i),o=se(n);e.reportError(new y(`Fragment "${r}" cannot be spread here as objects of type "${s}" can never be of type "${o}".`,{nodes:t}))}}}}function Wn(e){const t=e.getSchema(),r=Object.create(null);for(const t of e.getDocument().definitions)fn(t)&&(r[t.name.value]=t);return{ScalarTypeExtension:n,ObjectTypeExtension:n,InterfaceTypeExtension:n,UnionTypeExtension:n,EnumTypeExtension:n,InputObjectTypeExtension:n};function n(n){const i=n.name.value,s=r[i],o=null==t?void 0:t.getType(i);let a;if(s?a=Jn[s.kind]:o&&(a=He(l=o)?T.SCALAR_TYPE_EXTENSION:Ze(l)?T.OBJECT_TYPE_EXTENSION:tt(l)?T.INTERFACE_TYPE_EXTENSION:nt(l)?T.UNION_TYPE_EXTENSION:st(l)?T.ENUM_TYPE_EXTENSION:at(l)?T.INPUT_OBJECT_TYPE_EXTENSION:void u(!1,"Unexpected type: "+se(l))),a){if(a!==n.kind){const t=function(e){switch(e){case T.SCALAR_TYPE_EXTENSION:return"scalar";case T.OBJECT_TYPE_EXTENSION:return"object";case T.INTERFACE_TYPE_EXTENSION:return"interface";case T.UNION_TYPE_EXTENSION:return"union";case T.ENUM_TYPE_EXTENSION:return"enum";case T.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:u(!1,"Unexpected kind: "+se(e))}}(n.kind);e.reportError(new y(`Cannot extend non-${t} type "${i}".`,{nodes:s?[s,n]:n}))}}else{const s=Ne(i,Object.keys({...r,...null==t?void 0:t.getTypeMap()}));e.reportError(new y(`Cannot extend type "${i}" because it is not defined.`+ve(s),{nodes:n.name}))}var l}}const Jn={[T.SCALAR_TYPE_DEFINITION]:T.SCALAR_TYPE_EXTENSION,[T.OBJECT_TYPE_DEFINITION]:T.OBJECT_TYPE_EXTENSION,[T.INTERFACE_TYPE_DEFINITION]:T.INTERFACE_TYPE_EXTENSION,[T.UNION_TYPE_DEFINITION]:T.UNION_TYPE_EXTENSION,[T.ENUM_TYPE_DEFINITION]:T.ENUM_TYPE_EXTENSION,[T.INPUT_OBJECT_TYPE_DEFINITION]:T.INPUT_OBJECT_TYPE_EXTENSION};function zn(e){return{...Yn(e),Field:{leave(t){var r;const n=e.getFieldDef();if(!n)return!1;const i=new Set(null===(r=t.arguments)||void 0===r?void 0:r.map((e=>e.name.value)));for(const r of n.args)if(!i.has(r.name)&&$t(r)){const i=se(r.type);e.reportError(new y(`Field "${n.name}" argument "${r.name}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}function Yn(e){var t;const r=Object.create(null),n=e.getSchema(),i=null!==(t=null==n?void 0:n.getDirectives())&&void 0!==t?t:Er;for(const e of i)r[e.name]=Ie(e.args.filter($t),(e=>e.name));const s=e.getDocument().definitions;for(const e of s)if(e.kind===T.DIRECTIVE_DEFINITION){var o;const t=null!==(o=e.arguments)&&void 0!==o?o:[];r[e.name.value]=Ie(t.filter(Hn),(e=>e.name.value))}return{Directive:{leave(t){const n=t.name.value,i=r[n];if(i){var s;const r=null!==(s=t.arguments)&&void 0!==s?s:[],o=new Set(r.map((e=>e.name.value)));for(const[r,s]of Object.entries(i))if(!o.has(r)){const i=ze(s.type)?se(s.type):Me(s.type);e.reportError(new y(`Directive "@${n}" argument "${r}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}}function Hn(e){return e.type.kind===T.NON_NULL_TYPE&&null==e.defaultValue}function Xn(e){return{Field(t){const r=e.getType(),n=t.selectionSet;if(r)if(gt(Pt(r))){if(n){const i=t.name.value,s=se(r);e.reportError(new y(`Field "${i}" must not have a selection since type "${s}" has no subfields.`,{nodes:n}))}}else if(!n){const n=t.name.value,i=se(r);e.reportError(new y(`Field "${n}" of type "${i}" must have a selection of subfields. Did you mean "${n} { ... }"?`,{nodes:t}))}}}}function Zn(e){return e.map((e=>"number"==typeof e?"["+e.toString()+"]":"."+e)).join("")}function ei(e,t,r){return{prev:e,key:t,typename:r}}function ti(e){const t=[];let r=e;for(;r;)t.push(r.key),r=r.prev;return t.reverse()}function ri(e,t,r=ni){return ii(e,t,r,void 0)}function ni(e,t,r){let n="Invalid value "+se(t);throw e.length>0&&(n+=` at "value${Zn(e)}"`),r.message=n+": "+r.message,r}function ii(e,t,r,n){if(dt(t))return null!=e?ii(e,t.ofType,r,n):void r(ti(n),e,new y(`Expected non-nullable type "${se(t)}" not to be null.`));if(null==e)return null;if(lt(t)){const i=t.ofType;return br(e)?Array.from(e,((e,t)=>{const s=ei(n,t,void 0);return ii(e,i,r,s)})):[ii(e,i,r,n)]}if(at(t)){if(!a(e))return void r(ti(n),e,new y(`Expected type "${t.name}" to be an object.`));const i={},s=t.getFields();for(const o of Object.values(s)){const s=e[o.name];if(void 0!==s)i[o.name]=ii(s,o.type,r,ei(n,o.name,t.name));else if(void 0!==o.defaultValue)i[o.name]=o.defaultValue;else if(dt(o.type)){const t=se(o.type);r(ti(n),e,new y(`Field "${o.name}" of required type "${t}" was not provided.`))}}for(const i of Object.keys(e))if(!s[i]){const s=Ne(i,Object.keys(t.getFields()));r(ti(n),e,new y(`Field "${i}" is not defined by type "${t.name}".`+ve(s)))}return i}if(gt(t)){let i;try{i=t.parseValue(e)}catch(i){return void r(ti(n),e,i instanceof y?i:new y(`Expected type "${t.name}". `+i.message,{originalError:i}))}return void 0===i&&r(ti(n),e,new y(`Expected type "${t.name}".`)),i}u(!1,"Unexpected input type: "+se(t))}function si(e,t,r){if(e){if(e.kind===T.VARIABLE){const n=e.name.value;if(null==r||void 0===r[n])return;const i=r[n];if(null===i&&dt(t))return;return i}if(dt(t)){if(e.kind===T.NULL)return;return si(e,t.ofType,r)}if(e.kind===T.NULL)return null;if(lt(t)){const n=t.ofType;if(e.kind===T.LIST){const t=[];for(const i of e.values)if(oi(i,r)){if(dt(n))return;t.push(null)}else{const e=si(i,n,r);if(void 0===e)return;t.push(e)}return t}const i=si(e,n,r);if(void 0===i)return;return[i]}if(at(t)){if(e.kind!==T.OBJECT)return;const n=Object.create(null),i=Ie(e.fields,(e=>e.name.value));for(const e of Object.values(t.getFields())){const t=i[e.name];if(!t||oi(t.value,r)){if(void 0!==e.defaultValue)n[e.name]=e.defaultValue;else if(dt(e.type))return;continue}const s=si(t.value,e.type,r);if(void 0===s)return;n[e.name]=s}return n}if(gt(t)){let n;try{n=t.parseLiteral(e,r)}catch(e){return}if(void 0===n)return;return n}u(!1,"Unexpected input type: "+se(t))}}function oi(e,t){return e.kind===T.VARIABLE&&(null==t||void 0===t[e.name.value])}function ai(e,t,r,n){const i=[],s=null==n?void 0:n.maxErrors;try{const n=function(e,t,r,n){const i={};for(const s of t){const t=s.variable.name.value,o=nn(e,s.type);if(!ht(o)){const e=Me(s.type);n(new y(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:s.type}));continue}if(!ci(r,t)){if(s.defaultValue)i[t]=si(s.defaultValue,o);else if(dt(o)){const e=se(o);n(new y(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:s}))}continue}const a=r[t];if(null===a&&dt(o)){const e=se(o);n(new y(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:s}))}else i[t]=ri(a,o,((e,r,i)=>{let o=`Variable "$${t}" got invalid value `+se(r);e.length>0&&(o+=` at "${t}${Zn(e)}"`),n(new y(o+"; "+i.message,{nodes:s,originalError:i}))}))}return i}(e,t,r,(e=>{if(null!=s&&i.length>=s)throw new y("Too many errors processing variables, error limit reached. Execution aborted.");i.push(e)}));if(0===i.length)return{coerced:n}}catch(e){i.push(e)}return{errors:i}}function ui(e,t,r){var n;const i={},s=Ie(null!==(n=t.arguments)&&void 0!==n?n:[],(e=>e.name.value));for(const n of e.args){const e=n.name,o=n.type,a=s[e];if(!a){if(void 0!==n.defaultValue)i[e]=n.defaultValue;else if(dt(o))throw new y(`Argument "${e}" of required type "${se(o)}" was not provided.`,{nodes:t});continue}const u=a.value;let l=u.kind===T.NULL;if(u.kind===T.VARIABLE){const t=u.name.value;if(null==r||!ci(r,t)){if(void 0!==n.defaultValue)i[e]=n.defaultValue;else if(dt(o))throw new y(`Argument "${e}" of required type "${se(o)}" was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:u});continue}l=null==r[t]}if(l&&dt(o))throw new y(`Argument "${e}" of non-null type "${se(o)}" must not be null.`,{nodes:u});const c=si(u,o,r);if(void 0===c)throw new y(`Argument "${e}" has invalid value ${Me(u)}.`,{nodes:u});i[e]=c}return i}function li(e,t,r){var n;const i=null===(n=t.directives)||void 0===n?void 0:n.find((t=>t.name.value===e.name));if(i)return ui(e,i,r)}function ci(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function di(e,t,r,n,i){const s=new Map;return pi(e,t,r,n,i,s,new Set),s}function pi(e,t,r,n,i,s,o){for(const u of i.selections)switch(u.kind){case T.FIELD:{if(!hi(r,u))continue;const e=(a=u).alias?a.alias.value:a.name.value,t=s.get(e);void 0!==t?t.push(u):s.set(e,[u]);break}case T.INLINE_FRAGMENT:if(!hi(r,u)||!yi(e,u,n))continue;pi(e,t,r,n,u.selectionSet,s,o);break;case T.FRAGMENT_SPREAD:{const i=u.name.value;if(o.has(i)||!hi(r,u))continue;o.add(i);const a=t[i];if(!a||!yi(e,a,n))continue;pi(e,t,r,n,a.selectionSet,s,o);break}}var a}function hi(e,t){const r=li(fr,t,e);if(!0===(null==r?void 0:r.if))return!1;const n=li(yr,t,e);return!1!==(null==n?void 0:n.if)}function yi(e,t,r){const n=t.typeCondition;if(!n)return!0;const i=nn(e,n);return i===r||!!bt(i)&&e.isSubType(i,r)}function fi(e){return{OperationDefinition(t){if("subscription"===t.operation){const r=e.getSchema(),n=r.getSubscriptionType();if(n){const i=t.name?t.name.value:null,s=Object.create(null),o=e.getDocument(),a=Object.create(null);for(const e of o.definitions)e.kind===T.FRAGMENT_DEFINITION&&(a[e.name.value]=e);const u=di(r,a,s,n,t.selectionSet);if(u.size>1){const t=[...u.values()].slice(1).flat();e.reportError(new y(null!=i?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:t}))}for(const t of u.values())t[0].name.value.startsWith("__")&&e.reportError(new y(null!=i?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}function mi(e,t){const r=new Map;for(const n of e){const e=t(n),i=r.get(e);void 0===i?r.set(e,[n]):i.push(n)}return r}function gi(e){return{DirectiveDefinition(e){var t;const n=null!==(t=e.arguments)&&void 0!==t?t:[];return r(`@${e.name.value}`,n)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t;const n=e.name.value,i=null!==(t=e.fields)&&void 0!==t?t:[];for(const e of i){var s;r(`${n}.${e.name.value}`,null!==(s=e.arguments)&&void 0!==s?s:[])}return!1}function r(t,r){const n=mi(r,(e=>e.name.value));for(const[r,i]of n)i.length>1&&e.reportError(new y(`Argument "${t}(${r}:)" can only be defined once.`,{nodes:i.map((e=>e.name))}));return!1}}function vi(e){return{Field:t,Directive:t};function t(t){var r;const n=mi(null!==(r=t.arguments)&&void 0!==r?r:[],(e=>e.name.value));for(const[t,r]of n)r.length>1&&e.reportError(new y(`There can be only one argument named "${t}".`,{nodes:r.map((e=>e.name))}))}}function Ei(e){const t=Object.create(null),r=e.getSchema();return{DirectiveDefinition(n){const i=n.name.value;if(null==r||!r.getDirective(i))return t[i]?e.reportError(new y(`There can be only one directive named "@${i}".`,{nodes:[t[i],n.name]})):t[i]=n.name,!1;e.reportError(new y(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:n.name}))}}}function Ii(e){const t=Object.create(null),r=e.getSchema(),n=r?r.getDirectives():Er;for(const e of n)t[e.name]=!e.isRepeatable;const i=e.getDocument().definitions;for(const e of i)e.kind===T.DIRECTIVE_DEFINITION&&(t[e.name.value]=!e.repeatable);const s=Object.create(null),o=Object.create(null);return{enter(r){if(!("directives"in r)||!r.directives)return;let n;if(r.kind===T.SCHEMA_DEFINITION||r.kind===T.SCHEMA_EXTENSION)n=s;else if(fn(r)||gn(r)){const e=r.name.value;n=o[e],void 0===n&&(o[e]=n=Object.create(null))}else n=Object.create(null);for(const i of r.directives){const r=i.name.value;t[r]&&(n[r]?e.reportError(new y(`The directive "@${r}" can only be used once at this location.`,{nodes:[n[r],i]})):n[r]=i)}}}}function bi(e){const t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(t){var i;const s=t.name.value;n[s]||(n[s]=Object.create(null));const o=null!==(i=t.values)&&void 0!==i?i:[],a=n[s];for(const t of o){const n=t.name.value,i=r[s];st(i)&&i.getValue(n)?e.reportError(new y(`Enum value "${s}.${n}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):a[n]?e.reportError(new y(`Enum value "${s}.${n}" can only be defined once.`,{nodes:[a[n],t.name]})):a[n]=t.name}return!1}}function Di(e){const t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(t){var i;const s=t.name.value;n[s]||(n[s]=Object.create(null));const o=null!==(i=t.fields)&&void 0!==i?i:[],a=n[s];for(const t of o){const n=t.name.value;Si(r[s],n)?e.reportError(new y(`Field "${s}.${n}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):a[n]?e.reportError(new y(`Field "${s}.${n}" can only be defined once.`,{nodes:[a[n],t.name]})):a[n]=t.name}return!1}}function Si(e,t){return!!(Ze(e)||tt(e)||at(e))&&null!=e.getFields()[t]}function wi(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(r){const n=r.name.value;return t[n]?e.reportError(new y(`There can be only one fragment named "${n}".`,{nodes:[t[n],r.name]})):t[n]=r.name,!1}}}function Ai(e){const t=[];let r=Object.create(null);return{ObjectValue:{enter(){t.push(r),r=Object.create(null)},leave(){const e=t.pop();e||u(!1),r=e}},ObjectField(t){const n=t.name.value;r[n]?e.reportError(new y(`There can be only one input field named "${n}".`,{nodes:[r[n],t.name]})):r[n]=t.name}}}function Ti(e){const t=Object.create(null);return{OperationDefinition(r){const n=r.name;return n&&(t[n.value]?e.reportError(new y(`There can be only one operation named "${n.value}".`,{nodes:[t[n.value],n]})):t[n.value]=n),!1},FragmentDefinition:()=>!1}}function Ni(e){const t=e.getSchema(),r=Object.create(null),n=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(t){var i;const s=null!==(i=t.operationTypes)&&void 0!==i?i:[];for(const t of s){const i=t.operation,s=r[i];n[i]?e.reportError(new y(`Type for ${i} already defined in the schema. It cannot be redefined.`,{nodes:t})):s?e.reportError(new y(`There can be only one ${i} type in schema.`,{nodes:[s,t]})):r[i]=t}return!1}}function _i(e){const t=Object.create(null),r=e.getSchema();return{ScalarTypeDefinition:n,ObjectTypeDefinition:n,InterfaceTypeDefinition:n,UnionTypeDefinition:n,EnumTypeDefinition:n,InputObjectTypeDefinition:n};function n(n){const i=n.name.value;if(null==r||!r.getType(i))return t[i]?e.reportError(new y(`There can be only one type named "${i}".`,{nodes:[t[i],n.name]})):t[i]=n.name,!1;e.reportError(new y(`Type "${i}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:n.name}))}}function Ci(e){return{OperationDefinition(t){var r;const n=mi(null!==(r=t.variableDefinitions)&&void 0!==r?r:[],(e=>e.variable.name.value));for(const[t,r]of n)r.length>1&&e.reportError(new y(`There can be only one variable named "$${t}".`,{nodes:r.map((e=>e.variable.name))}))}}}function Ri(e){return{ListValue(t){if(!lt(Ct(e.getParentInputType())))return Oi(e,t),!1},ObjectValue(t){const r=Pt(e.getInputType());if(!at(r))return Oi(e,t),!1;const n=Ie(t.fields,(e=>e.name.value));for(const i of Object.values(r.getFields()))if(!n[i.name]&&Ht(i)){const n=se(i.type);e.reportError(new y(`Field "${r.name}.${i.name}" of required type "${n}" was not provided.`,{nodes:t}))}},ObjectField(t){const r=Pt(e.getParentInputType());if(!e.getInputType()&&at(r)){const n=Ne(t.name.value,Object.keys(r.getFields()));e.reportError(new y(`Field "${t.name.value}" is not defined by type "${r.name}".`+ve(n),{nodes:t}))}},NullValue(t){const r=e.getInputType();dt(r)&&e.reportError(new y(`Expected value of type "${se(r)}", found ${Me(t)}.`,{nodes:t}))},EnumValue:t=>Oi(e,t),IntValue:t=>Oi(e,t),FloatValue:t=>Oi(e,t),StringValue:t=>Oi(e,t),BooleanValue:t=>Oi(e,t)}}function Oi(e,t){const r=e.getInputType();if(!r)return;const n=Pt(r);if(gt(n))try{if(void 0===n.parseLiteral(t,void 0)){const n=se(r);e.reportError(new y(`Expected value of type "${n}", found ${Me(t)}.`,{nodes:t}))}}catch(n){const i=se(r);n instanceof y?e.reportError(n):e.reportError(new y(`Expected value of type "${i}", found ${Me(t)}; `+n.message,{nodes:t,originalError:n}))}else{const n=se(r);e.reportError(new y(`Expected value of type "${n}", found ${Me(t)}.`,{nodes:t}))}}function Pi(e){return{VariableDefinition(t){const r=nn(e.getSchema(),t.type);if(void 0!==r&&!ht(r)){const r=t.variable.name.value,n=Me(t.type);e.reportError(new y(`Variable "$${r}" cannot be non-input type "${n}".`,{nodes:t.type}))}}}}function Gi(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){const n=e.getRecursiveVariableUsages(r);for(const{node:r,type:i,defaultValue:s}of n){const n=r.name.value,o=t[n];if(o&&i){const t=e.getSchema(),a=nn(t,o.type);if(a&&!Fi(t,a,o.defaultValue,i,s)){const t=se(a),s=se(i);e.reportError(new y(`Variable "$${n}" of type "${t}" used in position expecting type "${s}".`,{nodes:[o,r]}))}}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}function Fi(e,t,r,n,i){return dt(n)&&!dt(t)?(null!=r&&r.kind!==T.NULL||void 0!==i)&&Zt(e,t,n.ofType):Zt(e,t,n)}const Li=Object.freeze([vn,Ti,Nn,fi,An,In,Pi,Xn,En,wi,wn,On,Qn,Cn,Ci,Rn,Pn,Sn,Ii,bn,vi,Ri,zn,Gi,Ln,Ai]),xi=Object.freeze([_n,Ni,_i,bi,Di,gi,Ei,An,Sn,Ii,Wn,Dn,vi,Ai,Yn]);class Vi{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{t=Object.create(null);for(const e of this.getDocument().definitions)e.kind===T.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const r=[e];let n;for(;n=r.pop();)for(const e of n.selections)e.kind===T.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&r.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const r=Object.create(null),n=[e.selectionSet];let i;for(;i=n.pop();)for(const e of this.getFragmentSpreads(i)){const i=e.name.value;if(!0!==r[i]){r[i]=!0;const e=this.getFragment(i);e&&(t.push(e),n.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}class Ui extends Vi{constructor(e,t,r){super(e,r),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class Mi extends Vi{constructor(e,t,r,n){super(t,n),this._schema=e,this._typeInfo=r,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const r=[],n=new sn(this._schema);Le(e,an(n,{VariableDefinition:()=>!1,Variable(e){r.push({node:e,type:n.getInputType(),defaultValue:n.getDefaultValue()})}})),t=r,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const r of this.getRecursivelyReferencedFragments(e))t=t.concat(this.getVariableUsages(r));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}function ji(e,t,r=Li,n,i=new sn(e)){var o;const a=null!==(o=null==n?void 0:n.maxErrors)&&void 0!==o?o:100;t||s(!1,"Must provide document."),$r(e);const u=Object.freeze({}),l=[],c=new Mi(e,t,i,(e=>{if(l.length>=a)throw l.push(new y("Too many validation errors, error limit reached. Validation aborted.")),u;l.push(e)})),d=xe(r.map((e=>e(c))));try{Le(t,an(i,d))}catch(e){if(e!==u)throw e}return l}function ki(e,t,r=xi){const n=[],i=new Ui(e,t,(e=>{n.push(e)}));return Le(e,xe(r.map((e=>e(i))))),n}function Bi(e){return Promise.all(Object.values(e)).then((t=>{const r=Object.create(null);for(const[n,i]of Object.keys(e).entries())r[i]=t[n];return r}))}class $i extends Error{constructor(e){super("Unexpected error value: "+se(e)),this.name="NonErrorThrown",this.thrownValue=e}}function Ki(e,t,r){var n;const i=(s=e)instanceof Error?s:new $i(s);var s,o;return o=i,Array.isArray(o.path)?i:new y(i.message,{nodes:null!==(n=i.nodes)&&void 0!==n?n:t,source:i.source,positions:i.positions,path:r,originalError:i})}const qi=function(e){let t;return function(e,r,n){void 0===t&&(t=new WeakMap);let i=t.get(e);void 0===i&&(i=new WeakMap,t.set(e,i));let s=i.get(r);void 0===s&&(s=new WeakMap,i.set(r,s));let o=s.get(n);return void 0===o&&(u=r,l=n,o=function(e,t,r,n,i){const s=new Map,o=new Set;for(const a of i)a.selectionSet&&pi(e,t,r,n,a.selectionSet,s,o);return s}((a=e).schema,a.fragments,a.variableValues,u,l),s.set(n,o)),o;var a,u,l}}();function Qi(e){arguments.length<2||s(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,document:r,variableValues:n,rootValue:i}=e;zi(t,r,n);const a=Yi(e);if(!("schema"in a))return{errors:a};try{const{operation:e}=a,t=function(e,t,r){const n=e.schema.getRootType(t.operation);if(null==n)throw new y(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});const i=di(e.schema,e.fragments,e.variableValues,n,t.selectionSet),s=void 0;switch(t.operation){case w.QUERY:return Hi(e,n,r,s,i);case w.MUTATION:return function(e,t,r,n,i){return function(e,t,r){let n=Object.create(null);for(const r of e)n=o(n)?n.then((e=>t(e,r))):t(n,r);return n}(i.entries(),((i,[s,a])=>{const u=ei(n,s,t.name),l=Xi(e,t,r,a,u);return void 0===l?i:o(l)?l.then((e=>(i[s]=e,i))):(i[s]=l,i)}))}(e,n,r,s,i);case w.SUBSCRIPTION:return Hi(e,n,r,s,i)}}(a,e,i);return o(t)?t.then((e=>Ji(e,a.errors)),(e=>(a.errors.push(e),Ji(null,a.errors)))):Ji(t,a.errors)}catch(e){return a.errors.push(e),Ji(null,a.errors)}}function Wi(e){const t=Qi(e);if(o(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function Ji(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function zi(e,t,r){t||s(!1,"Must provide document."),$r(e),null==r||a(r)||s(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function Yi(e){var t,r;const{schema:n,document:i,rootValue:s,contextValue:o,variableValues:a,operationName:u,fieldResolver:l,typeResolver:c,subscribeFieldResolver:d}=e;let p;const h=Object.create(null);for(const e of i.definitions)switch(e.kind){case T.OPERATION_DEFINITION:if(null==u){if(void 0!==p)return[new y("Must provide operation name if query contains multiple operations.")];p=e}else(null===(t=e.name)||void 0===t?void 0:t.value)===u&&(p=e);break;case T.FRAGMENT_DEFINITION:h[e.name.value]=e}if(!p)return null!=u?[new y(`Unknown operation named "${u}".`)]:[new y("Must provide an operation.")];const f=ai(n,null!==(r=p.variableDefinitions)&&void 0!==r?r:[],null!=a?a:{},{maxErrors:50});return f.errors?f.errors:{schema:n,fragments:h,rootValue:s,contextValue:o,operation:p,variableValues:f.coerced,fieldResolver:null!=l?l:os,typeResolver:null!=c?c:ss,subscribeFieldResolver:null!=d?d:os,errors:[]}}function Hi(e,t,r,n,i){const s=Object.create(null);let a=!1;try{for(const[u,l]of i.entries()){const i=Xi(e,t,r,l,ei(n,u,t.name));void 0!==i&&(s[u]=i,o(i)&&(a=!0))}}catch(e){if(a)return Bi(s).finally((()=>{throw e}));throw e}return a?Bi(s):s}function Xi(e,t,r,n,i){var s;const a=as(e.schema,t,n[0]);if(!a)return;const u=a.type,l=null!==(s=a.resolve)&&void 0!==s?s:e.fieldResolver,c=Zi(e,a,n,t,i);try{const t=l(r,ui(a,n[0],e.variableValues),e.contextValue,c);let s;return s=o(t)?t.then((t=>ts(e,u,n,c,i,t))):ts(e,u,n,c,i,t),o(s)?s.then(void 0,(t=>es(Ki(t,n,ti(i)),u,e))):s}catch(t){return es(Ki(t,n,ti(i)),u,e)}}function Zi(e,t,r,n,i){return{fieldName:t.name,fieldNodes:r,returnType:t.type,parentType:n,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function es(e,t,r){if(dt(t))throw e;return r.errors.push(e),null}function ts(e,t,r,n,i,s){if(s instanceof Error)throw s;if(dt(t)){const o=ts(e,t.ofType,r,n,i,s);if(null===o)throw new Error(`Cannot return null for non-nullable field ${n.parentType.name}.${n.fieldName}.`);return o}return null==s?null:lt(t)?function(e,t,r,n,i,s){if(!br(s))throw new y(`Expected Iterable, but did not find one for field "${n.parentType.name}.${n.fieldName}".`);const a=t.ofType;let u=!1;const l=Array.from(s,((t,s)=>{const l=ei(i,s,void 0);try{let i;return i=o(t)?t.then((t=>ts(e,a,r,n,l,t))):ts(e,a,r,n,l,t),o(i)?(u=!0,i.then(void 0,(t=>es(Ki(t,r,ti(l)),a,e)))):i}catch(t){return es(Ki(t,r,ti(l)),a,e)}}));return u?Promise.all(l):l}(e,t,r,n,i,s):gt(t)?function(e,t){const r=e.serialize(t);if(null==r)throw new Error(`Expected \`${se(e)}.serialize(${se(t)})\` to return non-nullable value, returned: ${se(r)}`);return r}(t,s):bt(t)?function(e,t,r,n,i,s){var a;const u=null!==(a=t.resolveType)&&void 0!==a?a:e.typeResolver,l=e.contextValue,c=u(s,l,n,t);return o(c)?c.then((o=>ns(e,rs(o,e,t,r,n,s),r,n,i,s))):ns(e,rs(c,e,t,r,n,s),r,n,i,s)}(e,t,r,n,i,s):Ze(t)?ns(e,t,r,n,i,s):void u(!1,"Cannot complete value of unexpected output type: "+se(t))}function rs(e,t,r,n,i,s){if(null==e)throw new y(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${r.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,n);if(Ze(e))throw new y("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!=typeof e)throw new y(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${se(s)}, received "${se(e)}".`);const o=t.schema.getType(e);if(null==o)throw new y(`Abstract type "${r.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:n});if(!Ze(o))throw new y(`Abstract type "${r.name}" was resolved to a non-object type "${e}".`,{nodes:n});if(!t.schema.isSubType(r,o))throw new y(`Runtime Object type "${o.name}" is not a possible type for "${r.name}".`,{nodes:n});return o}function ns(e,t,r,n,i,s){const a=qi(e,t,r);if(t.isTypeOf){const u=t.isTypeOf(s,e.contextValue,n);if(o(u))return u.then((n=>{if(!n)throw is(t,s,r);return Hi(e,t,s,i,a)}));if(!u)throw is(t,s,r)}return Hi(e,t,s,i,a)}function is(e,t,r){return new y(`Expected value of type "${e.name}" but got: ${se(t)}.`,{nodes:r})}const ss=function(e,t,r,n){if(a(e)&&"string"==typeof e.__typename)return e.__typename;const i=r.schema.getPossibleTypes(n),s=[];for(let n=0;n<i.length;n++){const a=i[n];if(a.isTypeOf){const i=a.isTypeOf(e,t,r);if(o(i))s[n]=i;else if(i)return a.name}}return s.length?Promise.all(s).then((e=>{for(let t=0;t<e.length;t++)if(e[t])return i[t].name})):void 0},os=function(e,t,r,n){if(a(e)||"function"==typeof e){const i=e[n.fieldName];return"function"==typeof i?e[n.fieldName](t,r,n):i}};function as(e,t,r){const n=r.name.value;return n===Gr.name&&e.getQueryType()===t?Gr:n===Fr.name&&e.getQueryType()===t?Fr:n===Lr.name?Lr:t.getFields()[n]}function us(e){return new Promise((t=>t(cs(e))))}function ls(e){const t=cs(e);if(o(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function cs(e){arguments.length<2||s(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const{schema:t,source:r,rootValue:n,contextValue:i,variableValues:o,operationName:a,fieldResolver:u,typeResolver:l}=e,c=Br(t);if(c.length>0)return{errors:c};let d;try{d=ce(r)}catch(e){return{errors:[e]}}const p=ji(t,d);return p.length>0?{errors:p}:Qi({schema:t,document:d,rootValue:n,contextValue:i,variableValues:o,operationName:a,fieldResolver:u,typeResolver:l})}function ds(e){return"function"==typeof(null==e?void 0:e[Symbol.asyncIterator])}async function ps(e){arguments.length<2||s(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const t=await hs(e);return ds(t)?function(t,r){const n=t[Symbol.asyncIterator]();async function i(t){if(t.done)return t;try{return{value:await(r=t.value,Qi({...e,rootValue:r})),done:!1}}catch(e){if("function"==typeof n.return)try{await n.return()}catch(e){}throw e}var r}return{next:async()=>i(await n.next()),return:async()=>"function"==typeof n.return?i(await n.return()):{value:void 0,done:!0},async throw(e){if("function"==typeof n.throw)return i(await n.throw(e));throw e},[Symbol.asyncIterator](){return this}}}(t):t}async function hs(...e){const t=function(e){const t=e[0];return t&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}(e),{schema:r,document:n,variableValues:i}=t;zi(r,n,i);const s=Yi(t);if(!("schema"in s))return{errors:s};try{const e=await async function(e){const{schema:t,fragments:r,operation:n,variableValues:i,rootValue:s}=e,o=t.getSubscriptionType();if(null==o)throw new y("Schema is not configured to execute subscription operation.",{nodes:n});const a=di(t,r,i,o,n.selectionSet),[u,l]=[...a.entries()][0],c=as(t,o,l[0]);if(!c){const e=l[0].name.value;throw new y(`The subscription field "${e}" is not defined.`,{nodes:l})}const d=ei(void 0,u,o.name),p=Zi(e,c,l,o,d);try{var h;const t=ui(c,l[0],i),r=e.contextValue,n=null!==(h=c.subscribe)&&void 0!==h?h:e.subscribeFieldResolver,o=await n(s,t,r,p);if(o instanceof Error)throw o;return o}catch(e){throw Ki(e,l,ti(d))}}(s);if(!ds(e))throw new Error(`Subscription field must return Async Iterable. Received: ${se(e)}.`);return e}catch(e){if(e instanceof y)return{errors:[e]};throw e}}function ys(e){return{Field(t){const r=e.getFieldDef(),n=null==r?void 0:r.deprecationReason;if(r&&null!=n){const i=e.getParentType();null!=i||u(!1),e.reportError(new y(`The field ${i.name}.${r.name} is deprecated. ${n}`,{nodes:t}))}},Argument(t){const r=e.getArgument(),n=null==r?void 0:r.deprecationReason;if(r&&null!=n){const i=e.getDirective();if(null!=i)e.reportError(new y(`Directive "@${i.name}" argument "${r.name}" is deprecated. ${n}`,{nodes:t}));else{const i=e.getParentType(),s=e.getFieldDef();null!=i&&null!=s||u(!1),e.reportError(new y(`Field "${i.name}.${s.name}" argument "${r.name}" is deprecated. ${n}`,{nodes:t}))}}},ObjectField(t){const r=Pt(e.getParentInputType());if(at(r)){const n=r.getFields()[t.name.value],i=null==n?void 0:n.deprecationReason;null!=i&&e.reportError(new y(`The input field ${r.name}.${n.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){const r=e.getEnumValue(),n=null==r?void 0:r.deprecationReason;if(r&&null!=n){const i=Pt(e.getInputType());null!=i||u(!1),e.reportError(new y(`The enum value "${i.name}.${r.name}" is deprecated. ${n}`,{nodes:t}))}}}}function fs(e){return{Field(t){const r=Pt(e.getType());r&&Vr(r)&&e.reportError(new y(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}function ms(e){const t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,...e},r=t.descriptions?"description":"",n=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"";function s(e){return t.inputValueDeprecation?e:""}return`\n query IntrospectionQuery {\n __schema {\n ${t.schemaDescription?r:""}\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ${r}\n ${i}\n locations\n args${s("(includeDeprecated: true)")} {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ${r}\n ${n}\n fields(includeDeprecated: true) {\n name\n ${r}\n args${s("(includeDeprecated: true)")} {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields${s("(includeDeprecated: true)")} {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ${r}\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ${r}\n type { ...TypeRef }\n defaultValue\n ${s("isDeprecated")}\n ${s("deprecationReason")}\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n `}function gs(e,t){let r=null;for(const i of e.definitions){var n;if(i.kind===T.OPERATION_DEFINITION)if(null==t){if(r)return null;r=i}else if((null===(n=i.name)||void 0===n?void 0:n.value)===t)return i}return r}function vs(e,t){if("query"===t.operation){const r=e.getQueryType();if(!r)throw new y("Schema does not define the required query root type.",{nodes:t});return r}if("mutation"===t.operation){const r=e.getMutationType();if(!r)throw new y("Schema is not configured for mutations.",{nodes:t});return r}if("subscription"===t.operation){const r=e.getSubscriptionType();if(!r)throw new y("Schema is not configured for subscriptions.",{nodes:t});return r}throw new y("Can only have query, mutation and subscription operations.",{nodes:t})}function Es(e,t){const r=Wi({schema:e,document:ce(ms({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,...t}))});return!r.errors&&r.data||u(!1),r.data}function Is(e,t){a(e)&&a(e.__schema)||s(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${se(e)}.`);const r=e.__schema,n=be(r.types,(e=>e.name),(e=>function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case Or.SCALAR:return new Lt({name:(n=e).name,description:n.description,specifiedByURL:n.specifiedByURL});case Or.OBJECT:return new xt({name:(r=e).name,description:r.description,interfaces:()=>y(r),fields:()=>f(r)});case Or.INTERFACE:return new Kt({name:(t=e).name,description:t.description,interfaces:()=>y(t),fields:()=>f(t)});case Or.UNION:return function(e){if(!e.possibleTypes){const t=se(e);throw new Error(`Introspection result missing possibleTypes: ${t}.`)}return new qt({name:e.name,description:e.description,types:()=>e.possibleTypes.map(p)})}(e);case Or.ENUM:return function(e){if(!e.enumValues){const t=se(e);throw new Error(`Introspection result missing enumValues: ${t}.`)}return new Wt({name:e.name,description:e.description,values:be(e.enumValues,(e=>e.name),(e=>({description:e.description,deprecationReason:e.deprecationReason})))})}(e);case Or.INPUT_OBJECT:return function(e){if(!e.inputFields){const t=se(e);throw new Error(`Introspection result missing inputFields: ${t}.`)}return new zt({name:e.name,description:e.description,fields:()=>g(e.inputFields)})}(e)}var t,r,n;const i=se(e);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${i}.`)}(e)));for(const e of[...ur,...xr])n[e.name]&&(n[e.name]=e);const i=r.queryType?p(r.queryType):null,o=r.mutationType?p(r.mutationType):null,u=r.subscriptionType?p(r.subscriptionType):null,l=r.directives?r.directives.map((function(e){if(!e.args){const t=se(e);throw new Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){const t=se(e);throw new Error(`Introspection result missing directive locations: ${t}.`)}return new hr({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:g(e.args)})})):[];return new jr({description:r.description,query:i,mutation:o,subscription:u,types:Object.values(n),directives:l,assumeValid:null==t?void 0:t.assumeValid});function c(e){if(e.kind===Or.LIST){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new St(c(t))}if(e.kind===Or.NON_NULL){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");const r=c(t);return new wt(_t(r))}return d(e)}function d(e){const t=e.name;if(!t)throw new Error(`Unknown type reference: ${se(e)}.`);const r=n[t];if(!r)throw new Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);return r}function p(e){return et(d(e))}function h(e){return rt(d(e))}function y(e){if(null===e.interfaces&&e.kind===Or.INTERFACE)return[];if(!e.interfaces){const t=se(e);throw new Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(h)}function f(e){if(!e.fields)throw new Error(`Introspection result missing fields: ${se(e)}.`);return be(e.fields,(e=>e.name),m)}function m(e){const t=c(e.type);if(!ft(t)){const e=se(t);throw new Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){const t=se(e);throw new Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:g(e.args)}}function g(e){return be(e,(e=>e.name),v)}function v(e){const t=c(e.type);if(!ht(t)){const e=se(t);throw new Error(`Introspection must provide input type for arguments, but received: ${e}.`)}const r=null!=e.defaultValue?si(de(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:r,deprecationReason:e.deprecationReason}}}function bs(e,t,r){Mr(e),null!=t&&t.kind===T.DOCUMENT||s(!1,"Must provide valid Document AST."),!0!==(null==r?void 0:r.assumeValid)&&!0!==(null==r?void 0:r.assumeValidSDL)&&function(e,t){const r=ki(e,t);if(0!==r.length)throw new Error(r.map((e=>e.message)).join("\n\n"))}(t,e);const n=e.toConfig(),i=Ds(n,t,r);return n===i?e:new jr(i)}function Ds(e,t,r){var n,i,s,o;const a=[],l=Object.create(null),c=[];let d;const p=[];for(const e of t.definitions)if(e.kind===T.SCHEMA_DEFINITION)d=e;else if(e.kind===T.SCHEMA_EXTENSION)p.push(e);else if(fn(e))a.push(e);else if(gn(e)){const t=e.name.value,r=l[t];l[t]=r?r.concat([e]):[e]}else e.kind===T.DIRECTIVE_DEFINITION&&c.push(e);if(0===Object.keys(l).length&&0===a.length&&0===c.length&&0===p.length&&null==d)return e;const h=Object.create(null);for(const t of e.types)h[t.name]=Vr(y=t)||lr(y)?y:He(y)?function(e){var t;const r=e.toConfig(),n=null!==(t=l[r.name])&&void 0!==t?t:[];let i=r.specifiedByURL;for(const e of n){var s;i=null!==(s=As(e))&&void 0!==s?s:i}return new Lt({...r,specifiedByURL:i,extensionASTNodes:r.extensionASTNodes.concat(n)})}(y):Ze(y)?function(e){var t;const r=e.toConfig(),n=null!==(t=l[r.name])&&void 0!==t?t:[];return new xt({...r,interfaces:()=>[...e.getInterfaces().map(v),...C(n)],fields:()=>({...De(r.fields,E),...w(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}(y):tt(y)?function(e){var t;const r=e.toConfig(),n=null!==(t=l[r.name])&&void 0!==t?t:[];return new Kt({...r,interfaces:()=>[...e.getInterfaces().map(v),...C(n)],fields:()=>({...De(r.fields,E),...w(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}(y):nt(y)?function(e){var t;const r=e.toConfig(),n=null!==(t=l[r.name])&&void 0!==t?t:[];return new qt({...r,types:()=>[...e.getTypes().map(v),...R(n)],extensionASTNodes:r.extensionASTNodes.concat(n)})}(y):st(y)?function(e){var t;const r=e.toConfig(),n=null!==(t=l[e.name])&&void 0!==t?t:[];return new Wt({...r,values:{...r.values,..._(n)},extensionASTNodes:r.extensionASTNodes.concat(n)})}(y):at(y)?function(e){var t;const r=e.toConfig(),n=null!==(t=l[r.name])&&void 0!==t?t:[];return new zt({...r,fields:()=>({...De(r.fields,(e=>({...e,type:g(e.type)}))),...N(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}(y):void u(!1,"Unexpected type: "+se(y));var y;for(const e of a){var f;const t=e.name.value;h[t]=null!==(f=Ss[t])&&void 0!==f?f:O(e)}const m={query:e.query&&v(e.query),mutation:e.mutation&&v(e.mutation),subscription:e.subscription&&v(e.subscription),...d&&b([d]),...b(p)};return{description:null===(n=d)||void 0===n||null===(i=n.description)||void 0===i?void 0:i.value,...m,types:Object.values(h),directives:[...e.directives.map((function(e){const t=e.toConfig();return new hr({...t,args:De(t.args,I)})})),...c.map((function(e){var t;return new hr({name:e.name.value,description:null===(t=e.description)||void 0===t?void 0:t.value,locations:e.locations.map((({value:e})=>e)),isRepeatable:e.repeatable,args:A(e.arguments),astNode:e})}))],extensions:Object.create(null),astNode:null!==(s=d)&&void 0!==s?s:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(p),assumeValid:null!==(o=null==r?void 0:r.assumeValid)&&void 0!==o&&o};function g(e){return lt(e)?new St(g(e.ofType)):dt(e)?new wt(g(e.ofType)):v(e)}function v(e){return h[e.name]}function E(e){return{...e,type:g(e.type),args:e.args&&De(e.args,I)}}function I(e){return{...e,type:g(e.type)}}function b(e){const t={};for(const n of e){var r;const e=null!==(r=n.operationTypes)&&void 0!==r?r:[];for(const r of e)t[r.operation]=D(r.type)}return t}function D(e){var t;const r=e.name.value,n=null!==(t=Ss[r])&&void 0!==t?t:h[r];if(void 0===n)throw new Error(`Unknown type: "${r}".`);return n}function S(e){return e.kind===T.LIST_TYPE?new St(S(e.type)):e.kind===T.NON_NULL_TYPE?new wt(S(e.type)):D(e)}function w(e){const t=Object.create(null);for(const i of e){var r;const e=null!==(r=i.fields)&&void 0!==r?r:[];for(const r of e){var n;t[r.name.value]={type:S(r.type),description:null===(n=r.description)||void 0===n?void 0:n.value,args:A(r.arguments),deprecationReason:ws(r),astNode:r}}}return t}function A(e){const t=null!=e?e:[],r=Object.create(null);for(const e of t){var n;const t=S(e.type);r[e.name.value]={type:t,description:null===(n=e.description)||void 0===n?void 0:n.value,defaultValue:si(e.defaultValue,t),deprecationReason:ws(e),astNode:e}}return r}function N(e){const t=Object.create(null);for(const i of e){var r;const e=null!==(r=i.fields)&&void 0!==r?r:[];for(const r of e){var n;const e=S(r.type);t[r.name.value]={type:e,description:null===(n=r.description)||void 0===n?void 0:n.value,defaultValue:si(r.defaultValue,e),deprecationReason:ws(r),astNode:r}}}return t}function _(e){const t=Object.create(null);for(const i of e){var r;const e=null!==(r=i.values)&&void 0!==r?r:[];for(const r of e){var n;t[r.name.value]={description:null===(n=r.description)||void 0===n?void 0:n.value,deprecationReason:ws(r),astNode:r}}}return t}function C(e){return e.flatMap((e=>{var t,r;return null!==(t=null===(r=e.interfaces)||void 0===r?void 0:r.map(D))&&void 0!==t?t:[]}))}function R(e){return e.flatMap((e=>{var t,r;return null!==(t=null===(r=e.types)||void 0===r?void 0:r.map(D))&&void 0!==t?t:[]}))}function O(e){var t;const r=e.name.value,n=null!==(t=l[r])&&void 0!==t?t:[];switch(e.kind){case T.OBJECT_TYPE_DEFINITION:{var i;const t=[e,...n];return new xt({name:r,description:null===(i=e.description)||void 0===i?void 0:i.value,interfaces:()=>C(t),fields:()=>w(t),astNode:e,extensionASTNodes:n})}case T.INTERFACE_TYPE_DEFINITION:{var s;const t=[e,...n];return new Kt({name:r,description:null===(s=e.description)||void 0===s?void 0:s.value,interfaces:()=>C(t),fields:()=>w(t),astNode:e,extensionASTNodes:n})}case T.ENUM_TYPE_DEFINITION:{var o;const t=[e,...n];return new Wt({name:r,description:null===(o=e.description)||void 0===o?void 0:o.value,values:_(t),astNode:e,extensionASTNodes:n})}case T.UNION_TYPE_DEFINITION:{var a;const t=[e,...n];return new qt({name:r,description:null===(a=e.description)||void 0===a?void 0:a.value,types:()=>R(t),astNode:e,extensionASTNodes:n})}case T.SCALAR_TYPE_DEFINITION:var u;return new Lt({name:r,description:null===(u=e.description)||void 0===u?void 0:u.value,specifiedByURL:As(e),astNode:e,extensionASTNodes:n});case T.INPUT_OBJECT_TYPE_DEFINITION:{var c;const t=[e,...n];return new zt({name:r,description:null===(c=e.description)||void 0===c?void 0:c.value,fields:()=>N(t),astNode:e,extensionASTNodes:n})}}}}const Ss=Ie([...ur,...xr],(e=>e.name));function ws(e){const t=li(gr,e);return null==t?void 0:t.reason}function As(e){const t=li(vr,e);return null==t?void 0:t.url}function Ts(e,t){null!=e&&e.kind===T.DOCUMENT||s(!1,"Must provide valid Document AST."),!0!==(null==t?void 0:t.assumeValid)&&!0!==(null==t?void 0:t.assumeValidSDL)&&function(e){const t=ki(e);if(0!==t.length)throw new Error(t.map((e=>e.message)).join("\n\n"))}(e);const r=Ds({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(null==r.astNode)for(const e of r.types)switch(e.name){case"Query":r.query=e;break;case"Mutation":r.mutation=e;break;case"Subscription":r.subscription=e}const n=[...r.directives,...Er.filter((e=>r.directives.every((t=>t.name!==e.name))))];return new jr({...r,directives:n})}function Ns(e,t){return Ts(ce(e,{noLocation:null==t?void 0:t.noLocation,allowLegacyFragmentVariables:null==t?void 0:t.allowLegacyFragmentVariables}),{assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})}function _s(e){const t=e.toConfig(),r=be(Rs(t.types),(e=>e.name),(function(e){if(He(e)||Vr(e))return e;if(Ze(e)){const t=e.toConfig();return new xt({...t,interfaces:()=>l(t.interfaces),fields:()=>a(t.fields)})}if(tt(e)){const t=e.toConfig();return new Kt({...t,interfaces:()=>l(t.interfaces),fields:()=>a(t.fields)})}if(nt(e)){const t=e.toConfig();return new qt({...t,types:()=>l(t.types)})}if(st(e)){const t=e.toConfig();return new Wt({...t,values:Cs(t.values,(e=>e))})}if(at(e)){const t=e.toConfig();return new zt({...t,fields:()=>Cs(t.fields,(e=>({...e,type:n(e.type)})))})}u(!1,"Unexpected type: "+se(e))}));return new jr({...t,types:Object.values(r),directives:Rs(t.directives).map((function(e){const t=e.toConfig();return new hr({...t,locations:Os(t.locations,(e=>e)),args:o(t.args)})})),query:s(t.query),mutation:s(t.mutation),subscription:s(t.subscription)});function n(e){return lt(e)?new St(n(e.ofType)):dt(e)?new wt(n(e.ofType)):i(e)}function i(e){return r[e.name]}function s(e){return e&&i(e)}function o(e){return Cs(e,(e=>({...e,type:n(e.type)})))}function a(e){return Cs(e,(e=>({...e,type:n(e.type),args:e.args&&o(e.args)})))}function l(e){return Rs(e).map(i)}}function Cs(e,t){const r=Object.create(null);for(const n of Object.keys(e).sort(Se))r[n]=t(e[n]);return r}function Rs(e){return Os(e,(e=>e.name))}function Os(e,t){return e.slice().sort(((e,r)=>Se(t(e),t(r))))}function Ps(e){return Ls(e,(e=>!Ir(e)),Fs)}function Gs(e){return Ls(e,Ir,Vr)}function Fs(e){return!lr(e)&&!Vr(e)}function Ls(e,t,r){const n=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(r);return[xs(e),...n.map((e=>function(e){return Ks(e)+"directive @"+e.name+ks(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e))),...i.map((e=>Vs(e)))].filter(Boolean).join("\n\n")}function xs(e){if(null==e.description&&function(e){const t=e.getQueryType();if(t&&"Query"!==t.name)return!1;const r=e.getMutationType();if(r&&"Mutation"!==r.name)return!1;const n=e.getSubscriptionType();return!n||"Subscription"===n.name}(e))return;const t=[],r=e.getQueryType();r&&t.push(` query: ${r.name}`);const n=e.getMutationType();n&&t.push(` mutation: ${n.name}`);const i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),Ks(e)+`schema {\n${t.join("\n")}\n}`}function Vs(e){return He(e)?function(e){return Ks(e)+`scalar ${e.name}`+(null==(t=e).specifiedByURL?"":` @specifiedBy(url: ${Me({kind:T.STRING,value:t.specifiedByURL})})`);var t}(e):Ze(e)?function(e){return Ks(e)+`type ${e.name}`+Us(e)+Ms(e)}(e):tt(e)?function(e){return Ks(e)+`interface ${e.name}`+Us(e)+Ms(e)}(e):nt(e)?function(e){const t=e.getTypes(),r=t.length?" = "+t.join(" | "):"";return Ks(e)+"union "+e.name+r}(e):st(e)?function(e){const t=e.getValues().map(((e,t)=>Ks(e," ",!t)+" "+e.name+$s(e.deprecationReason)));return Ks(e)+`enum ${e.name}`+js(t)}(e):at(e)?function(e){const t=Object.values(e.getFields()).map(((e,t)=>Ks(e," ",!t)+" "+Bs(e)));return Ks(e)+`input ${e.name}`+js(t)}(e):void u(!1,"Unexpected type: "+se(e))}function Us(e){const t=e.getInterfaces();return t.length?" implements "+t.map((e=>e.name)).join(" & "):""}function Ms(e){return js(Object.values(e.getFields()).map(((e,t)=>Ks(e," ",!t)+" "+e.name+ks(e.args," ")+": "+String(e.type)+$s(e.deprecationReason))))}function js(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function ks(e,t=""){return 0===e.length?"":e.every((e=>!e.description))?"("+e.map(Bs).join(", ")+")":"(\n"+e.map(((e,r)=>Ks(e," "+t,!r)+" "+t+Bs(e))).join("\n")+"\n"+t+")"}function Bs(e){const t=Dr(e.defaultValue,e.type);let r=e.name+": "+String(e.type);return t&&(r+=` = ${Me(t)}`),r+$s(e.deprecationReason)}function $s(e){return null==e?"":e!==mr?` @deprecated(reason: ${Me({kind:T.STRING,value:e})})`:" @deprecated"}function Ks(e,t="",r=!0){const{description:n}=e;return null==n?"":(t&&!r?"\n"+t:t)+Me({kind:T.STRING,value:n,block:L(n)}).replace(/\n/g,"\n"+t)+"\n"}function qs(e){const t=[];for(const r of e)t.push(...r.definitions);return{kind:T.DOCUMENT,definitions:t}}function Qs(e){const t=[],r=Object.create(null);for(const n of e.definitions)switch(n.kind){case T.OPERATION_DEFINITION:t.push(n);break;case T.FRAGMENT_DEFINITION:r[n.name.value]=Js(n.selectionSet)}const n=Object.create(null);for(const i of t){const t=new Set;for(const e of Js(i.selectionSet))Ws(t,r,e);n[i.name?i.name.value:""]={kind:T.DOCUMENT,definitions:e.definitions.filter((e=>e===i||e.kind===T.FRAGMENT_DEFINITION&&t.has(e.name.value)))}}return n}function Ws(e,t,r){if(!e.has(r)){e.add(r);const n=t[r];if(void 0!==n)for(const r of n)Ws(e,t,r)}}function Js(e){const t=[];return Le(e,{FragmentSpread(e){t.push(e.name.value)}}),t}function zs(e){const t=le(e)?e:new ue(e),r=t.body,n=new V(t);let i="",s=!1;for(;n.advance().kind!==N.EOF;){const e=n.token,t=e.kind,o=!U(e.kind);s&&(o||e.kind===N.SPREAD)&&(i+=" ");const a=r.slice(e.start,e.end);t===N.BLOCK_STRING?i+=x(e.value,{minimize:!0}):i+=a,s=o}return i}function Ys(e){const t=Hs(e);if(t)throw t;return e}function Hs(e){if("string"==typeof e||s(!1,"Expected name to be a string."),e.startsWith("__"))return new y(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{We(e)}catch(e){return e}}var Xs,Zs;function eo(e,t){return ro(e,t).filter((e=>e.type in Xs))}function to(e,t){return ro(e,t).filter((e=>e.type in Zs))}function ro(e,t){return[...io(e,t),...no(e,t)]}function no(e,t){const r=[],n=mo(e.getDirectives(),t.getDirectives());for(const e of n.removed)r.push({type:Xs.DIRECTIVE_REMOVED,description:`${e.name} was removed.`});for(const[e,t]of n.persisted){const n=mo(e.args,t.args);for(const t of n.added)$t(t)&&r.push({type:Xs.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`});for(const t of n.removed)r.push({type:Xs.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`});e.isRepeatable&&!t.isRepeatable&&r.push({type:Xs.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`});for(const n of e.locations)t.locations.includes(n)||r.push({type:Xs.DIRECTIVE_LOCATION_REMOVED,description:`${n} was removed from ${e.name}.`})}return r}function io(e,t){const r=[],n=mo(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const e of n.removed)r.push({type:Xs.TYPE_REMOVED,description:lr(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`});for(const[e,t]of n.persisted)st(e)&&st(t)?r.push(...ao(e,t)):nt(e)&&nt(t)?r.push(...oo(e,t)):at(e)&&at(t)?r.push(...so(e,t)):Ze(e)&&Ze(t)||tt(e)&&tt(t)?r.push(...lo(e,t),...uo(e,t)):e.constructor!==t.constructor&&r.push({type:Xs.TYPE_CHANGED_KIND,description:`${e.name} changed from ${yo(e)} to ${yo(t)}.`});return r}function so(e,t){const r=[],n=mo(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of n.added)Ht(t)?r.push({type:Xs.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`}):r.push({type:Zs.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`});for(const t of n.removed)r.push({type:Xs.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(const[t,i]of n.persisted)ho(t.type,i.type)||r.push({type:Xs.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return r}function oo(e,t){const r=[],n=mo(e.getTypes(),t.getTypes());for(const t of n.added)r.push({type:Zs.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`});for(const t of n.removed)r.push({type:Xs.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`});return r}function ao(e,t){const r=[],n=mo(e.getValues(),t.getValues());for(const t of n.added)r.push({type:Zs.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`});for(const t of n.removed)r.push({type:Xs.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`});return r}function uo(e,t){const r=[],n=mo(e.getInterfaces(),t.getInterfaces());for(const t of n.added)r.push({type:Zs.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`});for(const t of n.removed)r.push({type:Xs.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`});return r}function lo(e,t){const r=[],n=mo(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of n.removed)r.push({type:Xs.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(const[t,i]of n.persisted)r.push(...co(e,t,i)),po(t.type,i.type)||r.push({type:Xs.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return r}function co(e,t,r){const n=[],i=mo(t.args,r.args);for(const r of i.removed)n.push({type:Xs.ARG_REMOVED,description:`${e.name}.${t.name} arg ${r.name} was removed.`});for(const[r,s]of i.persisted)if(ho(r.type,s.type)){if(void 0!==r.defaultValue)if(void 0===s.defaultValue)n.push({type:Zs.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${r.name} defaultValue was removed.`});else{const i=fo(r.defaultValue,r.type),o=fo(s.defaultValue,s.type);i!==o&&n.push({type:Zs.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${r.name} has changed defaultValue from ${i} to ${o}.`})}}else n.push({type:Xs.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${r.name} has changed type from ${String(r.type)} to ${String(s.type)}.`});for(const r of i.added)$t(r)?n.push({type:Xs.REQUIRED_ARG_ADDED,description:`A required arg ${r.name} on ${e.name}.${t.name} was added.`}):n.push({type:Zs.OPTIONAL_ARG_ADDED,description:`An optional arg ${r.name} on ${e.name}.${t.name} was added.`});return n}function po(e,t){return lt(e)?lt(t)&&po(e.ofType,t.ofType)||dt(t)&&po(e,t.ofType):dt(e)?dt(t)&&po(e.ofType,t.ofType):Rt(t)&&e.name===t.name||dt(t)&&po(e,t.ofType)}function ho(e,t){return lt(e)?lt(t)&&ho(e.ofType,t.ofType):dt(e)?dt(t)&&ho(e.ofType,t.ofType)||!dt(t)&&ho(e.ofType,t):Rt(t)&&e.name===t.name}function yo(e){return He(e)?"a Scalar type":Ze(e)?"an Object type":tt(e)?"an Interface type":nt(e)?"a Union type":st(e)?"an Enum type":at(e)?"an Input type":void u(!1,"Unexpected type: "+se(e))}function fo(e,t){const r=Dr(e,t);return null!=r||u(!1),Me(Gn(r))}function mo(e,t){const r=[],n=[],i=[],s=Ie(e,(({name:e})=>e)),o=Ie(t,(({name:e})=>e));for(const t of e){const e=o[t.name];void 0===e?n.push(t):i.push([t,e])}for(const e of t)void 0===s[e.name]&&r.push(e);return{added:r,persisted:i,removed:n}}!function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"}(Xs||(Xs={})),function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"}(Zs||(Zs={}))}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};(()=>{"use strict";var e=__webpack_exports__;Object.defineProperty(e,"__esModule",{value:!0}),e.GraphQLProviderConfigData=e.GraphQLDataProvider=e.setupGraphQLClient=e.gql=void 0;var t=__webpack_require__(6497);Object.defineProperty(e,"gql",{enumerable:!0,get:function(){return t.gql}});var r=__webpack_require__(3461);Object.defineProperty(e,"setupGraphQLClient",{enumerable:!0,get:function(){return r.setupGraphQLClient}});var n=__webpack_require__(1119);Object.defineProperty(e,"GraphQLDataProvider",{enumerable:!0,get:function(){return n.GraphQLDataProvider}}),Object.defineProperty(e,"GraphQLProviderConfigData",{enumerable:!0,get:function(){return n.GraphQLProviderConfigData}})})(),MemberJunctionGraphQLDataProvider=__webpack_exports__})();
|