@memberjunction/react-runtime 2.90.0 → 2.91.0
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/.turbo/turbo-build.log +29 -1
- package/CHANGELOG.md +15 -0
- package/dist/compiler/babel-config.js +1 -0
- package/dist/compiler/babel-config.js.map +1 -0
- package/dist/compiler/component-compiler.d.ts.map +1 -1
- package/dist/compiler/component-compiler.js +51 -6
- package/dist/compiler/component-compiler.js.map +1 -0
- package/dist/compiler/index.js +1 -0
- package/dist/compiler/index.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -0
- package/dist/registry/component-registry.d.ts +1 -0
- package/dist/registry/component-registry.d.ts.map +1 -1
- package/dist/registry/component-registry.js +10 -0
- package/dist/registry/component-registry.js.map +1 -0
- package/dist/registry/component-resolver.js +1 -0
- package/dist/registry/component-resolver.js.map +1 -0
- package/dist/registry/index.js +1 -0
- package/dist/registry/index.js.map +1 -0
- package/dist/runtime/component-hierarchy.d.ts +7 -4
- package/dist/runtime/component-hierarchy.d.ts.map +1 -1
- package/dist/runtime/component-hierarchy.js +19 -6
- package/dist/runtime/component-hierarchy.js.map +1 -0
- package/dist/runtime/error-boundary.js +1 -0
- package/dist/runtime/error-boundary.js.map +1 -0
- package/dist/runtime/index.js +1 -0
- package/dist/runtime/index.js.map +1 -0
- package/dist/runtime/prop-builder.d.ts +2 -1
- package/dist/runtime/prop-builder.d.ts.map +1 -1
- package/dist/runtime/prop-builder.js +1 -0
- package/dist/runtime/prop-builder.js.map +1 -0
- package/dist/runtime/react-root-manager.js +1 -0
- package/dist/runtime/react-root-manager.js.map +1 -0
- package/dist/runtime.umd.js +2 -0
- package/dist/runtime.umd.js.LICENSE.txt +10 -0
- package/dist/types/index.d.ts +4 -6
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/library-config.js +1 -0
- package/dist/types/library-config.js.map +1 -0
- package/dist/utilities/cache-manager.js +1 -0
- package/dist/utilities/cache-manager.js.map +1 -0
- package/dist/utilities/component-error-analyzer.js +1 -0
- package/dist/utilities/component-error-analyzer.js.map +1 -0
- package/dist/utilities/component-styles.js +1 -0
- package/dist/utilities/component-styles.js.map +1 -0
- package/dist/utilities/core-libraries.js +1 -0
- package/dist/utilities/core-libraries.js.map +1 -0
- package/dist/utilities/index.d.ts +0 -1
- package/dist/utilities/index.d.ts.map +1 -1
- package/dist/utilities/index.js +1 -1
- package/dist/utilities/index.js.map +1 -0
- package/dist/utilities/library-loader.d.ts.map +1 -1
- package/dist/utilities/library-loader.js +15 -0
- package/dist/utilities/library-loader.js.map +1 -0
- package/dist/utilities/library-registry.d.ts +3 -1
- package/dist/utilities/library-registry.d.ts.map +1 -1
- package/dist/utilities/library-registry.js +43 -518
- package/dist/utilities/library-registry.js.map +1 -0
- package/dist/utilities/resource-manager.js +1 -0
- package/dist/utilities/resource-manager.js.map +1 -0
- package/dist/utilities/standard-libraries.js +1 -0
- package/dist/utilities/standard-libraries.js.map +1 -0
- package/package.json +16 -6
- package/src/compiler/component-compiler.ts +66 -8
- package/src/index.ts +5 -4
- package/src/registry/component-registry.ts +18 -0
- package/src/runtime/component-hierarchy.ts +28 -8
- package/src/runtime/prop-builder.ts +3 -2
- package/src/types/index.ts +11 -12
- package/src/utilities/index.ts +0 -1
- package/src/utilities/library-loader.ts +18 -0
- package/src/utilities/library-registry.ts +57 -552
- package/tsconfig.json +1 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/webpack.umd.config.js +76 -0
- package/dist/utilities/runtime-utilities.d.ts +0 -10
- package/dist/utilities/runtime-utilities.d.ts.map +0 -1
- package/dist/utilities/runtime-utilities.js +0 -92
- package/src/utilities/runtime-utilities.ts +0 -122
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see runtime.umd.js.LICENSE.txt */
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.MJReactRuntime=t():e.MJReactRuntime=t()}(this,(()=>(()=>{var __webpack_modules__={3815:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6298:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3288:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(){i=function(){return t};var e,t={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),u=new L(n||[]);return a(i,"_invoke",{value:C(e,r,u)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var y="suspendedStart",h="suspendedYield",v="executing",m="completed",b={};function g(){}function w(){}function _(){}var O={};f(O,c,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(T([])));E&&E!==r&&o.call(E,c)&&(O=E);var P=_.prototype=g.prototype=Object.create(O);function j(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function r(i,a,u,c){var s=d(e[i],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&o.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,u,c)}),(function(e){r("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return r("throw",e,u,c)}))}c(s.arg)}var i;a(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function C(t,r,n){var o=y;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=k(u,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=d(t,r,n);if("normal"===s.type){if(o=n.done?m:h,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function T(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(o.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(n(t)+" is not iterable")}return w.prototype=_,a(P,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:w,configurable:!0}),w.displayName=f(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,f(e,l,"GeneratorFunction")),e.prototype=Object.create(P),e},t.awrap=function(e){return{__await:e}},j(x.prototype),f(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(p(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},j(P),f(P,l,"Generator"),f(P,c,(function(){return this})),f(P,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=T,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),s=o.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}function a(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=u(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function u(e,t){if(e){if("string"==typeof e)return c(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,f(n.key),n)}}function f(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function p(e,t,r){return t=y(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(t,r||[],y(e).constructor):t.apply(e,r))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentSpecRuntime=void 0;var v=r(6517),m=r(600),b=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),p(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(t,e),r=t,n=[{key:"GetRequiredPermissions",value:function(){var e,t=new Set;return null===(e=this.dataRequirements)||void 0===e||e.entities.forEach((function(e){e.permissionLevelNeeded.forEach((function(e){return t.add(e)}))})),Array.from(t)}},{key:"IsEffectivelyReadOnly",value:function(){var e=this.GetRequiredPermissions();return 1===e.length&&"read"===e[0]}},{key:"GetAccessedEntities",value:function(){var e;return(null===(e=this.dataRequirements)||void 0===e?void 0:e.entities.map((function(e){return e.name})))||[]}},{key:"HasWriteCapabilities",value:function(){return this.GetRequiredPermissions().some((function(e){return"create"===e||"update"===e||"delete"===e}))}},{key:"convertToEntityPermissionType",value:function(e){switch(e){case"read":default:return m.EntityPermissionType.Read;case"create":return m.EntityPermissionType.Create;case"update":return m.EntityPermissionType.Update;case"delete":return m.EntityPermissionType.Delete}}},{key:"ValidateUserPermissions",value:(c=i().mark((function e(t){var r,n,o,u,c,s,l;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=[],o=[],u=new m.Metadata,c=a((null===(r=this.dataRequirements)||void 0===r?void 0:r.entities)||[]),e.prev=4,l=i().mark((function e(){var r,o,c,l,f,p,d,y,h,v;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=s.value,o=u.Entities.find((function(e){return e.Name===r.name}))){e.next=6;break}c=a(r.permissionLevelNeeded);try{for(c.s();!(l=c.n()).done;)f=l.value,n.push({entity:r.name,permission:f})}catch(e){c.e(e)}finally{c.f()}return e.abrupt("return",1);case 6:p=o.GetUserPermisions(t),d=a(r.permissionLevelNeeded),e.prev=8,d.s();case 10:if((y=d.n()).done){e.next=27;break}h=y.value,v=!1,e.t0=h,e.next="read"===e.t0?16:"create"===e.t0?18:"update"===e.t0?20:"delete"===e.t0?22:24;break;case 16:return v=p.CanRead,e.abrupt("break",24);case 18:return v=p.CanCreate,e.abrupt("break",24);case 20:return v=p.CanUpdate,e.abrupt("break",24);case 22:return v=p.CanDelete,e.abrupt("break",24);case 24:v||n.push({entity:r.name,permission:h});case 25:e.next=10;break;case 27:e.next=32;break;case 29:e.prev=29,e.t1=e.catch(8),d.e(e.t1);case 32:return e.prev=32,d.f(),e.finish(32);case 35:case"end":return e.stop()}}),e,null,[[8,29,32,35]])})),c.s();case 7:if((s=c.n()).done){e.next=13;break}return e.delegateYield(l(),"t0",9);case 9:if(!e.t0){e.next=11;break}return e.abrupt("continue",11);case 11:e.next=7;break;case 13:e.next=18;break;case 15:e.prev=15,e.t1=e.catch(4),c.e(e.t1);case 18:return e.prev=18,c.f(),e.finish(18);case 21:return e.abrupt("return",{canRender:0===n.length,missingPermissions:n,degradedPermissions:o});case 22:case"end":return e.stop()}}),e,this,[[4,15,18,21]])})),f=function(){var e=this,t=arguments;return new Promise((function(r,n){var o=c.apply(e,t);function i(e){s(o,r,n,i,a,"next",e)}function a(e){s(o,r,n,i,a,"throw",e)}i(void 0)}))},function(e){return f.apply(this,arguments)})},{key:"GetDataAccessSummary",value:function(){var e,t,r,n=(null===(e=this.dataRequirements)||void 0===e?void 0:e.entities.map((function(e){return{name:e.name,permissions:e.permissionLevelNeeded}})))||[],o=(null===(t=this.dataRequirements)||void 0===t?void 0:t.queries.map((function(e){return{name:e.name,category:e.categoryPath}})))||[];return{mode:(null===(r=this.dataRequirements)||void 0===r?void 0:r.mode)||"none",entityCount:n.length,queryCount:o.length,requiresWrite:this.HasWriteCapabilities(),entities:n,queries:o}}},{key:"GetLibraryDependencies",value:function(){return this.libraries||[]}},{key:"DependsOnLibrary",value:function(e){var t;return(null===(t=this.libraries)||void 0===t?void 0:t.some((function(t){return t.name===e||t.globalVariable===e})))||!1}},{key:"GetAllDependencies",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set,r=[];if(e.has(this.name))return r;e.add(this.name);var n,i=a(this.dependencies||[]);try{for(i.s();!(n=i.n()).done;){var u=n.value;r.push(u),u instanceof t&&r.push.apply(r,o(u.GetAllDependencies(e)))}}catch(e){i.e(e)}finally{i.f()}return r}}],u=[{key:"FromObject",value:function(e){var r=new t;return Object.assign(r,e),r}},{key:"FromJSON",value:function(e){var r=JSON.parse(e);return t.FromObject(r)}}],n&&l(r.prototype,n),u&&l(r,u),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,u,c,f}(v.ComponentSpec);t.ComponentSpecRuntime=b},6517:(e,t)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function o(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function i(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentSpec=void 0;var a=o((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}));t.ComponentSpec=a},6589:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7890:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=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}),o(r(6589),t),o(r(3815),t),o(r(1514),t),o(r(7677),t),o(r(6298),t),o(r(8988),t),o(r(6517),t),o(r(3288),t),o(r(1823),t)},1823:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1514:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7677:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8988:(e,t)=>{"use strict";function r(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,a=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw a}}}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function o(e,t){var n="/*******************************************************\n ".concat(t?"".concat(t," > "):"").concat(e.name,"\n ").concat(e.description,"\n*******************************************************/\n")+e.code;if(!e.dependencies||0===e.dependencies.length)return n;var i,a=r(e.dependencies);try{for(a.s();!(i=a.n()).done;){var u=i.value,c=o(u,t+(t?" > ":"")+u.name);c&&c.length>0&&(n+="\n\n"+c)}}catch(e){a.e(e)}finally{a.f()}return n}Object.defineProperty(t,"__esModule",{value:!0}),t.BuildComponentCode=t.BuildComponentCompleteCode=void 0,t.BuildComponentCompleteCode=function(e){var t=e.code||"// Generation Error: No root component code provided! \n\n";if(!e.dependencies||0===e.dependencies.length)return t;var n,i=r(e.dependencies);try{for(i.s();!(n=i.n()).done;){var a=o(n.value,"");a&&a.length>0&&(t+="\n\n"+a)}}catch(e){i.e(e)}finally{i.f()}return t},t.BuildComponentCode=o},8702:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function c(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}Object.defineProperty(t,"__esModule",{value:!0}),t.QueryCache=void 0;var s=r(4423),l=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cache=new Map,this.accessOrder=[],this.DEFAULT_MAX_SIZE=1e3,this.DEFAULT_TTL_MINUTES=60,this.stats={hits:0,misses:0,evictions:0,expirations:0}},t=[{key:"getCacheKey",value:function(e,t){var r=Object.keys(t).sort().reduce((function(e,r){return e[r]=t[r],e}),{});return"".concat(e,":").concat(JSON.stringify(r))}},{key:"get",value:function(e,t,r){if(!r.enabled)return null;var n=this.getCacheKey(e,t),o=this.cache.get(n);return o?Date.now()>o.timestamp+60*o.ttlMinutes*1e3?(this.cache.delete(n),this.removeFromAccessOrder(n),this.stats.expirations++,this.stats.misses++,null):(this.updateAccessOrder(n),o.hitCount++,this.stats.hits++,o):(this.stats.misses++,null)}},{key:"set",value:function(e,t,r,n){if(n.enabled){var o=this.getCacheKey(e,t),i=n.maxCacheSize||this.DEFAULT_MAX_SIZE;if(this.cache.size>=i&&!this.cache.has(o)){var a=this.accessOrder.shift();a&&(this.cache.delete(a),this.stats.evictions++,(0,s.LogStatus)("Cache eviction: Removed LRU entry for key ".concat(a)))}var u={queryId:e,parameters:t,results:r,timestamp:Date.now(),ttlMinutes:n.ttlMinutes||this.DEFAULT_TTL_MINUTES,hitCount:0};this.cache.set(o,u),this.updateAccessOrder(o)}}},{key:"clear",value:function(e){var t=this;if(e){var r=Array.from(this.cache.keys()).filter((function(t){return t.startsWith("".concat(e,":"))}));r.forEach((function(e){t.cache.delete(e),t.removeFromAccessOrder(e)})),(0,s.LogStatus)("Cleared ".concat(r.length," cache entries for query ").concat(e))}else{var n=this.cache.size;this.cache.clear(),this.accessOrder=[],(0,s.LogStatus)("Cleared entire query cache (".concat(n," entries)"))}}},{key:"updateAccessOrder",value:function(e){var t=this.accessOrder.indexOf(e);t>-1&&this.accessOrder.splice(t,1),this.accessOrder.push(e)}},{key:"removeFromAccessOrder",value:function(e){var t=this.accessOrder.indexOf(e);t>-1&&this.accessOrder.splice(t,1)}},{key:"getStats",value:function(){var e=this.stats.hits+this.stats.misses,t=e>0?this.stats.hits/e:0;return{size:this.cache.size,hits:this.stats.hits,misses:this.stats.misses,hitRate:Math.round(100*t)/100,evictions:this.stats.evictions,expirations:this.stats.expirations}}},{key:"cleanupExpired",value:function(){var e,t=Date.now(),r=0,n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=i(e))){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,a=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw a}}}}(this.cache.entries());try{for(n.s();!(e=n.n()).done;){var a=o(e.value,2),u=a[0],c=a[1];t>c.timestamp+60*c.ttlMinutes*1e3&&(this.cache.delete(u),this.removeFromAccessOrder(u),r++)}}catch(e){n.e(e)}finally{n.f()}return r>0&&(0,s.LogStatus)("Cleaned up ".concat(r," expired cache entries")),r}}],t&&u(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();t.QueryCache=l},588:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4472:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function i(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t,r){return t=l(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.ApplicationInfo=t.ApplicationEntityInfo=t.ApplicationSettingInfo=void 0;var d=r(5485),y=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return u(this,t),(e=c(this,t)).ID=null,e.ApplicationName=null,e.Name=null,e.Value=null,e.Comments=null,e.__mj_CreatedAt=null,e.__mj_UpdatedAt=null,e.copyInitData(r),e}return f(t,e),i(t)}(d.BaseInfo);t.ApplicationSettingInfo=y;var h=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return u(this,t),(e=c(this,t)).ID=null,e.ApplicationName=null,e.EntityID=null,e.Sequence=null,e.DefaultForNewUser=null,e.Application=null,e.Entity=null,e.EntityBaseTable=null,e.EntityCodeName=null,e.EntityClassName=null,e.EntityBaseTableCodeName=null,e._EntityInfo=null,e.copyInitData(r),e}return f(t,e),i(t,[{key:"EntityInfo",get:function(){return this._EntityInfo}},{key:"_setEntity",value:function(e){this._EntityInfo=e}}])}(d.BaseInfo);t.ApplicationEntityInfo=h;var v=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0;if(u(this,t),(e=c(this,t)).ID=null,e.Name=null,e.Description=null,e.Icon=null,e.DefaultForNewUser=null,e.SchemaAutoAddNewEntities=null,e._ApplicationEntities=[],e._ApplicationSettings=[],e.copyInitData(r),r){var o=r.ApplicationEntities||r._ApplicationEntities;if(o){var i=n.Entities;e._ApplicationEntities=[];for(var a=function(t){var r=new h(o[t]);e._ApplicationEntities.push(r);var n=i.find((function(e){return e.ID==o[t].EntityID}));n&&r._setEntity(n)},s=0;s<o.length;s++)a(s)}var l=r.ApplicationSettings||r._ApplicationSettings;l&&(e._ApplicationSettings=l.map((function(e){return new y(e)})))}return e}return f(t,e),i(t,[{key:"ApplicationEntities",get:function(){return this._ApplicationEntities}},{key:"ApplicationSettings",get:function(){return this._ApplicationSettings}}])}(d.BaseInfo);t.ApplicationInfo=v},2217:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}Object.defineProperty(t,"__esModule",{value:!0}),t.AuthorizationEvaluator=void 0;var u=r(5949),c=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},(t=[{key:"CurrentUserCanExecute",value:function(e){var t=new u.Metadata;if(!t.CurrentUser)throw new Error("No current user is set for authorization evaluation");return this.UserCanExecute(e,t.CurrentUser)}},{key:"UserCanExecute",value:function(e,t){return e.UserCanExecute(t)}},{key:"GetUserAuthorizations",value:function(e){var t=new u.Metadata,r=[];if(e&&e.UserRoles){var n,i=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,a=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw a}}}}(t.Authorizations);try{for(i.s();!(n=i.n()).done;){var a=n.value;a.UserCanExecute(e)&&r.push(a)}}catch(e){i.e(e)}finally{i.f()}return r}throw new Error("User must be provided to evaluate authorizations")}}])&&i(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();t.AuthorizationEvaluator=c},2745:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AUTH_PROVIDER_TYPES=void 0,t.AUTH_PROVIDER_TYPES={MSAL:"msal",AUTH0:"auth0",OKTA:"okta",COGNITO:"cognito",GOOGLE:"google",CUSTOM:"custom"}},4183:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=a(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,i=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw i}}}}function a(e,t){if(e){if("string"==typeof e)return u(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(){c=function(){return t};var e,t={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),u=new L(n||[]);return i(a,"_invoke",{value:C(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var y="suspendedStart",h="suspendedYield",v="executing",m="completed",b={};function g(){}function w(){}function _(){}var O={};f(O,u,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(T([])));E&&E!==r&&o.call(E,u)&&(O=E);var P=_.prototype=g.prototype=Object.create(O);function j(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function r(i,a,u,c){var s=d(e[i],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&o.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,u,c)}),(function(e){r("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return r("throw",e,u,c)}))}c(s.arg)}var a;i(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return a=a?a.then(o,o):o()}})}function C(t,r,n){var o=y;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=k(u,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=d(t,r,n);if("normal"===s.type){if(o=n.done?m:h,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function T(t){if(t||""===t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(o.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(n(t)+" is not iterable")}return w.prototype=_,i(P,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:w,configurable:!0}),w.displayName=f(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,f(e,l,"GeneratorFunction")),e.prototype=Object.create(P),e},t.awrap=function(e){return{__await:e}},j(x.prototype),f(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(p(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},j(P),f(P,l,"Generator"),f(P,u,(function(){return this})),f(P,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=T,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),s=o.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}function s(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function l(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){s(i,n,o,a,u,"next",e)}function u(e){s(i,n,o,a,u,"throw",e)}a(void 0)}))}}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d(n.key),n)}}function p(e,t,r){return t&&f(e.prototype,t),r&&f(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function d(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t,r){return t=m(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,v()?Reflect.construct(t,r||[],m(e).constructor):t.apply(e,r))}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.BaseEngine=t.BaseEnginePropertyConfig=void 0;var w=r(5120),_=r(4802),O=r(3664),S=r(4593),E=r(4423),P=r(5949),j=r(5788),x=r(5485),C=r(7074),k=function(e){function t(e){var r;return y(this,t),(r=h(this,t)).Type="entity",r.DatasetResultHandling="single_property",r.AutoRefresh=!0,e&&Object.assign(r,e),r}return b(t,e),p(t)}(x.BaseInfo);t.BaseEnginePropertyConfig=k;var A=function(e){function t(){var e;return y(this,t),(e=h(this,t))._loaded=!1,e._loadingSubject=new _.BehaviorSubject(!1),e._metadataConfigs=[],e._dynamicConfigs=new Map,e._dataMap=new Map,e._expirationTimers=new Map,e._entityEventSubjects=new Map,e._entityEventDebounceTime=5e3,e}return b(t,e),p(t,[{key:"ProviderToUse",get:function(){return this._provider||P.Metadata.Provider}},{key:"RunViewProviderToUse",get:function(){return this.ProviderToUse}},{key:"Configs",get:function(){return JSON.parse(JSON.stringify(this._metadataConfigs))}},{key:"Load",value:(T=l(c().mark((function e(t,r){var n,o,i=this,a=arguments;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=a.length>2&&void 0!==a[2]&&a[2],o=a.length>3?a[3]:void 0,this.ProviderToUse.ProviderType!==j.ProviderType.Database||o){e.next=4;break}throw new Error("For server-side use of all engine classes, you must provide the contextUser parameter");case 4:if(!this._loadingSubject.value){e.next=6;break}return e.abrupt("return",new Promise((function(e){var t=i._loadingSubject.subscribe((function(r){r||(t.unsubscribe(),e())}))})));case 6:if(this._loaded&&!n){e.next=26;break}return this._loadingSubject.next(!0),e.prev=8,this.SetProvider(r),this._contextUser=o,e.next=13,this.LoadConfigs(t,o);case 13:return e.next=15,this.AdditionalLoading(o);case 15:return e.next=17,this.SetupGlobalEventListener();case 17:this._loaded=!0,e.next=23;break;case 20:e.prev=20,e.t0=e.catch(8),(0,E.LogError)(e.t0);case 23:return e.prev=23,this._loadingSubject.next(!1),e.finish(23);case 26:case"end":return e.stop()}}),e,this,[[8,20,23,26]])}))),function(e,t){return T.apply(this,arguments)})},{key:"SetProvider",value:function(e){this._provider=e,this.CheckAddToProviderInstances(this.ProviderToUse)}},{key:"CheckAddToProviderInstances",value:function(e){var r=this;t.ProviderInstances.find((function(t){return t.provider===e&&t.subclassConstructor===r.constructor}))||t.ProviderInstances.push({provider:e,subclassConstructor:this.constructor,instance:this})}},{key:"SetupGlobalEventListener",value:(L=l(c().mark((function e(){var t=this;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,this._eventListener||(this._eventListener=w.MJGlobal.Instance.GetEventListener(!1),this._eventListener.subscribe(function(){var e=l(c().mark((function e(r){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.HandleIndividualEvent(r);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())),e.next=8;break;case 4:return e.prev=4,e.t0=e.catch(0),(0,E.LogError)(e.t0),e.abrupt("return",!1);case 8:case"end":return e.stop()}}),e,this,[[0,4]])}))),function(){return L.apply(this,arguments)})},{key:"HandleIndividualEvent",value:(I=l(c().mark((function e(t){var r;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.event!==w.MJEventType.ComponentEvent||t.eventCode!==C.BaseEntity.BaseEventCode){e.next=5;break}return r=t.args,e.next=4,this.HandleIndividualBaseEntityEvent(r);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return I.apply(this,arguments)})},{key:"HandleIndividualBaseEntityEvent",value:(A=l(c().mark((function e(t){var r;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,"delete"!==t.type&&"save"!==t.type){e.next=6;break}if(r=t.baseEntity.EntityInfo.Name.toLowerCase().trim(),!this.Configs.some((function(e){return e.AutoRefresh&&e.EntityName&&e.EntityName.trim().toLowerCase()===r}))){e.next=6;break}return e.abrupt("return",this.DebounceIndividualBaseEntityEvent(t));case 6:return e.abrupt("return",!0);case 9:return e.prev=9,e.t0=e.catch(0),(0,E.LogError)(e.t0),e.abrupt("return",!1);case 13:case"end":return e.stop()}}),e,this,[[0,9]])}))),function(e){return A.apply(this,arguments)})},{key:"DebounceIndividualBaseEntityEvent",value:(x=l(c().mark((function e(t){var r,n,o=this;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r=t.baseEntity.EntityInfo.Name.toLowerCase().trim(),this._entityEventSubjects.has(r)||((n=new _.Subject).pipe((0,O.debounceTime)(this.EntityEventDebounceTime)).subscribe(function(){var e=l(c().mark((function e(t){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.ProcessEntityEvent(t);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),this._entityEventSubjects.set(r,n)),this._entityEventSubjects.get(r).next(t),e.abrupt("return",!0);case 7:return e.prev=7,e.t0=e.catch(0),(0,E.LogError)(e.t0),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(e){return x.apply(this,arguments)})},{key:"EntityEventDebounceTime",get:function(){return this._entityEventDebounceTime}},{key:"ProcessEntityEvent",value:(g=l(c().mark((function e(t){var r,n,o,a,u,s;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,r=t.baseEntity.EntityInfo.Name.toLowerCase().trim(),n=0,o=i(this.Configs),e.prev=4,o.s();case 6:if((a=o.n()).done){e.next=14;break}if(!(s=a.value).AutoRefresh||"entity"!==s.Type||(null===(u=s.EntityName)||void 0===u?void 0:u.trim().toLowerCase())!==r){e.next=12;break}return e.next=11,this.LoadSingleConfig(s,this._contextUser);case 11:n++;case 12:e.next=6;break;case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(4),o.e(e.t0);case 19:return e.prev=19,o.f(),e.finish(19);case 22:if(!(n>0)){e.next=25;break}return e.next=25,this.AdditionalLoading(this._contextUser);case 25:e.next=30;break;case 27:e.prev=27,e.t1=e.catch(0),(0,E.LogError)(e.t1);case 30:case"end":return e.stop()}}),e,this,[[0,27],[4,16,19,22]])}))),function(e){return g.apply(this,arguments)})},{key:"UpgradeObjectToConfig",value:function(e){return e instanceof k?e:new k(e)}},{key:"LoadConfigs",value:(m=l(c().mark((function e(t,r){var n,i,a=this;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._metadataConfigs=t.map((function(e){return a.UpgradeObjectToConfig(e)})),n=this._metadataConfigs.filter((function(e){return"entity"===e.Type})),i=this._metadataConfigs.filter((function(e){return"dataset"===e.Type})),e.next=5,Promise.all([].concat(o(i.map((function(e){return a.LoadSingleDatasetConfig(e,r)}))),[this.LoadMultipleEntityConfigs(n,r)]));case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return m.apply(this,arguments)})},{key:"LoadSingleConfig",value:(v=l(c().mark((function e(t,r){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("dataset"!==t.Type){e.next=6;break}return e.next=3,this.LoadSingleDatasetConfig(t,r);case 3:case 8:return e.abrupt("return",e.sent);case 6:return e.next=8,this.LoadSingleEntityConfig(t,r);case 9:case"end":return e.stop()}}),e,this)}))),function(e,t){return v.apply(this,arguments)})},{key:"LoadSingleEntityConfig",value:(d=l(c().mark((function e(t,r){var n,o,i;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.RunViewProviderToUse,o=new S.RunView(n),e.next=4,o.RunView({EntityName:t.EntityName,ResultType:"entity_object",ExtraFilter:t.Filter,OrderBy:t.OrderBy},r);case 4:i=e.sent,this.HandleSingleViewResult(t,i);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return d.apply(this,arguments)})},{key:"HandleSingleViewResult",value:function(e,t){t.Success&&(!1!==e.AddToObject&&(this[e.PropertyName]=t.Results),this._dataMap.set(e.PropertyName,{entityName:e.EntityName,data:t.Results}),e.Expiration&&this.SetExpirationTimer(e.PropertyName,e.Expiration))}},{key:"LoadMultipleEntityConfigs",value:(f=l(c().mark((function e(t,r){var n,o,i,a,u;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t&&t.length>0)){e.next=8;break}return n=this.RunViewProviderToUse,o=new S.RunView(n),i=t.map((function(e){return{EntityName:e.EntityName,ResultType:"entity_object",ExtraFilter:e.Filter,OrderBy:e.OrderBy}})),e.next=6,o.RunViews(i,r);case 6:for(a=e.sent,u=0;u<t.length;u++)this.HandleSingleViewResult(t[u],a[u]);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return f.apply(this,arguments)})},{key:"LoadSingleDatasetConfig",value:(s=l(c().mark((function e(t,r){var n,o,a,u,s,l,f,p,d,y,h,v,m,b;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.ProviderToUse,e.next=3,n.GetAndCacheDatasetByName(t.DatasetName,t.DatasetItemFilters);case 3:if(!(o=e.sent).Success){e.next=52;break}if(!1===t.AddToObject){e.next=50;break}if("single_property"!==t.DatasetResultHandling){e.next=48;break}a={},u=i(o.Results),e.prev=9,u.s();case 11:if((s=u.n()).done){e.next=37;break}l=s.value,f=[],p=i(l.Results),e.prev=15,p.s();case 17:if((d=p.n()).done){e.next=26;break}return y=d.value,e.next=21,n.GetEntityObject(l.EntityName,r);case 21:(h=e.sent).SetMany(y),f.push(h);case 24:e.next=17;break;case 26:e.next=31;break;case 28:e.prev=28,e.t0=e.catch(15),p.e(e.t0);case 31:return e.prev=31,p.f(),e.finish(31);case 34:a[l.Code]=f;case 35:e.next=11;break;case 37:e.next=42;break;case 39:e.prev=39,e.t1=e.catch(9),u.e(e.t1);case 42:return e.prev=42,u.f(),e.finish(42);case 45:this[t.PropertyName]=a,e.next=50;break;case 48:v=i(o.Results);try{for(v.s();!(m=v.n()).done;)b=m.value,this["".concat(t.PropertyName,"_").concat(b.Code)]=b.Results}catch(e){v.e(e)}finally{v.f()}case 50:this._dataMap.set(t.PropertyName,{datasetName:t.DatasetName,data:o.Results}),t.Expiration&&this.SetExpirationTimer(t.PropertyName,t.Expiration);case 52:case"end":return e.stop()}}),e,this,[[9,39,42,45],[15,28,31,34]])}))),function(e,t){return s.apply(this,arguments)})},{key:"SetExpirationTimer",value:function(e,t){var r=this;this._expirationTimers.has(e)&&clearTimeout(this._expirationTimers.get(e));var n=setTimeout((function(){return r.RefreshItem(e)}),t);this._expirationTimers.set(e,n)}},{key:"AddDynamicConfig",value:(u=l(c().mark((function e(t,r){var n;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.UpgradeObjectToConfig(t),this._dynamicConfigs.set(n.PropertyName,n),e.next=4,this.LoadSingleConfig(n,r||this._contextUser);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return u.apply(this,arguments)})},{key:"RemoveDynamicConfig",value:function(e){this._dynamicConfigs.delete(e),this._dataMap.delete(e),this._expirationTimers.has(e)&&(clearTimeout(this._expirationTimers.get(e)),this._expirationTimers.delete(e))}},{key:"RefreshItem",value:(a=l(c().mark((function e(t){var r;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=this._metadataConfigs.find((function(e){return e.PropertyName===t}))||this._dynamicConfigs.get(t))){e.next=4;break}return e.next=4,this.LoadSingleConfig(r,this._contextUser);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"RefreshAllItems",value:(n=l(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.LoadConfigs([].concat(o(this._metadataConfigs),o(Array.from(this._dynamicConfigs.values()))),this._contextUser);case 2:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"AdditionalLoading",value:(r=l(c().mark((function e(t){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})},{key:"Loaded",get:function(){return this._loaded}},{key:"LoadingSubject",get:function(){return this._loadingSubject}},{key:"ContextUser",get:function(){return this._contextUser}},{key:"TryThrowIfNotLoaded",value:function(){if(!this.Loaded)throw new Error("Data not loaded, call Config() first.")}}],[{key:"ProviderInstances",get:function(){return t._providerInstances}},{key:"GetProviderInstance",value:function(e,r){var n=t.ProviderInstances.find((function(t){return t.provider===e&&t.subclassConstructor===r}));if(n)return n.instance;var o=new r;return o.SetProvider(e),o}}]);var r,n,a,u,s,f,d,v,m,g,x,A,I,L,T}(w.BaseSingleton);t.BaseEngine=A,A._providerInstances=[]},7074:(e,t,r)=>{"use strict";function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,a=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(){i=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),u=new L(n||[]);return o(a,"_invoke",{value:C(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var y="suspendedStart",h="suspendedYield",v="executing",m="completed",b={};function g(){}function w(){}function _(){}var O={};f(O,u,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(T([])));E&&E!==r&&n.call(E,u)&&(O=E);var P=_.prototype=g.prototype=Object.create(O);function j(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function r(o,i,a,u){var s=d(e[o],e,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==c(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function C(t,r,n){var o=y;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=k(u,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=d(t,r,n);if("normal"===s.type){if(o=n.done?m:h,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function T(t){if(t||""===t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(c(t)+" is not iterable")}return w.prototype=_,o(P,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:w,configurable:!0}),w.displayName=f(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,f(e,l,"GeneratorFunction")),e.prototype=Object.create(P),e},t.awrap=function(e){return{__await:e}},j(x.prototype),f(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(p(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},j(P),f(P,l,"Generator"),f(P,u,(function(){return this})),f(P,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=T,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}function a(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function u(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function u(e){a(i,n,o,u,c,"next",e)}function c(e){a(i,n,o,u,c,"throw",e)}u(void 0)}))}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,p(n.key),n)}}function f(e,t,r){return t&&l(e.prototype,t),r&&l(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function p(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}Object.defineProperty(t,"__esModule",{value:!0}),t.BaseEntity=t.BaseEntityEvent=t.BaseEntityResult=t.BaseEntityAIActionParams=t.DataObjectParams=t.DataObjectRelatedEntityParam=t.EntityField=void 0;var d=r(5120),y=r(9827),h=r(5788),v=r(5949),m=r(4593),b=r(4423),g=r(7538),w=r(4802),_=function(){function e(t,r){if(s(this,e),this._assertActiveStatusRequired=!1,this._NeverSet=!0,this._entityFieldInfo=t,r)this.Value=r;else if(t.DefaultValue){if(t.TSType===y.EntityFieldTSType.Boolean)"string"==typeof t.DefaultValue&&"1"===t.DefaultValue.trim()||"true"===t.DefaultValue.trim().toLowerCase()?this.Value=!0:this.Value=!1;else if(t.TSType===y.EntityFieldTSType.Number)isNaN(Number(t.DefaultValue))?"null"===t.DefaultValue.trim().toLowerCase()&&(this.Value=null):this.Value=Number(t.DefaultValue);else if("uniqueidentifier"===t.Type.trim().toLowerCase())this.Value=null;else if(t.TSType===y.EntityFieldTSType.Date){if(t.DefaultValue.trim().length>0)try{var n=new Date(t.DefaultValue);if(isNaN(n.getTime()))throw new Error;this.Value=n}catch(e){if(!y.EntityFieldInfo.IsDefaultValueSQLCurrentDateFunction(t.DefaultValue))throw new Error("Invalid default value for ".concat(t.Entity,".").concat(t.Name," of ").concat(t.DefaultValue,". Default values for date fields must be a valid date or a getdate() type default"));t.IsSpecialDateField?this.Value=null:this.Value=new Date}}else this.Value=t.DefaultValue;this._NeverSet=!0}else this.Value=null,this._NeverSet=!0;this._assertActiveStatusRequired=!0}return f(e,[{key:"Name",get:function(){return this._entityFieldInfo.Name}},{key:"FieldType",get:function(){return this._entityFieldInfo.TSType}},{key:"SQLType",get:function(){return this._entityFieldInfo.Type}},{key:"IsPrimaryKey",get:function(){return this._entityFieldInfo.IsPrimaryKey}},{key:"NeedsQuotes",get:function(){return this._entityFieldInfo.NeedsQuotes}},{key:"CodeName",get:function(){return this._entityFieldInfo.CodeName}},{key:"IsUnique",get:function(){return this._entityFieldInfo.IsUnique}},{key:"Value",get:function(){return this._assertActiveStatusRequired&&y.EntityFieldInfo.AssertEntityFieldActiveStatus(this._entityFieldInfo,"EntityField.Value setter"),this._Value},set:function(e){this._assertActiveStatusRequired&&e!==this._Value&&y.EntityFieldInfo.AssertEntityFieldActiveStatus(this._entityFieldInfo,"EntityField.Value setter"),this.ReadOnly&&!this._NeverSet||(this._Value=e,!this._NeverSet||null===e&&null===this._OldValue||(this._OldValue=e),this._NeverSet=!1)}},{key:"ReadOnly",get:function(){return this._entityFieldInfo.ReadOnly}},{key:"EntityFieldInfo",get:function(){return this._entityFieldInfo}},{key:"IsUniqueIdentifier",get:function(){return this._entityFieldInfo.IsUniqueIdentifier}},{key:"HasDefaultValue",get:function(){return this._entityFieldInfo.HasDefaultValue}},{key:"ResetNeverSetFlag",value:function(){this._NeverSet=!0}},{key:"Dirty",get:function(){if(this.ReadOnly)return!1;var 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;var r=this._OldValue,n=this.Value;if(this._OldValue instanceof Date&&(r=this._OldValue.getTime()),this.Value instanceof Date&&(n=this.Value.getTime()),this._entityFieldInfo.TSType===y.EntityFieldTSType.Boolean||"bit"===this._entityFieldInfo.Type.toLowerCase())return this.convertToBoolean(r)!==this.convertToBoolean(n);if(this._entityFieldInfo.TSType===y.EntityFieldTSType.Number||this.isNumericType(this._entityFieldInfo.Type)){var o=this.convertToNumber(r),i=this.convertToNumber(n);return!(isNaN(o)&&isNaN(i)||!isNaN(o)&&!isNaN(i)&&o===i)}return r!==n}},{key:"convertToBoolean",value:function(e){if(null==e)return!1;if("boolean"==typeof e)return e;if("number"==typeof e)return 0!==e;if("string"==typeof e){var t=e.trim().toLowerCase();return"true"===t||"1"===t}return!!e}},{key:"isNumericType",value:function(e){if(!e)return!1;var t=e.toLowerCase().trim();return["int","smallint","bigint","tinyint","money","decimal","numeric","float","real"].includes(t)||t.startsWith("decimal(")||t.startsWith("numeric(")}},{key:"convertToNumber",value:function(e){if(null==e)return NaN;if("number"==typeof e)return e;if("string"==typeof e){var t=e.trim();return""===t?NaN:Number(t)}return"boolean"==typeof e?e?1:0:Number(e)}},{key:"FormatValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD";return this.EntityFieldInfo.FormatValue(this.Value,e,t)}},{key:"Validate",value:function(){var t=this._entityFieldInfo,r=new y.ValidationResult;if(r.Success=!0,!t.ReadOnly&&!t.SkipValidation&&(t.AllowsNull||null!==this.Value&&void 0!==this.Value||(null===t.DefaultValue||void 0===t.DefaultValue||0===t.DefaultValue.trim().length||null!==this._OldValue&&void 0!==this._OldValue)&&(r.Success=!1,r.Errors.push(new y.ValidationErrorInfo(t.Name,"".concat(t.DisplayNameOrName," cannot be null"),null))),t.TSType==y.EntityFieldTSType.String&&t.MaxLength>0&&this.Value&&this.Value.length>t.MaxLength&&(r.Success=!1,r.Errors.push(new y.ValidationErrorInfo(t.Name,"".concat(t.DisplayNameOrName," cannot be longer than ").concat(t.MaxLength," characters. Current value is ").concat(this.Value.length," characters"),this.Value))),t.TSType!=y.EntityFieldTSType.Date||null===this.Value||void 0===this.Value||this.Value instanceof Date||(r.Success=!1,r.Errors.push(new y.ValidationErrorInfo(t.Name,"".concat(this.Value," is not a valid date for ").concat(t.DisplayNameOrName),this.Value))),"number"===t.TSType)){var n=e.SQLTypeValueRanges[t.Type.toLowerCase()];n&&(this.Value<n.min||this.Value>n.max)&&(r.Success=!1,r.Errors.push(new y.ValidationErrorInfo(t.Name,"".concat(t.DisplayNameOrName," is ").concat(t.SQLFullType," in the database and must be a valid number between ").concat(-n.min," and ").concat(n.max,". Current value is ").concat(this.Value),this.Value)))}return r}},{key:"ResetOldValue",value:function(){this._assertActiveStatusRequired=!1,this._OldValue=this.Value,this._assertActiveStatusRequired=!0}},{key:"ActiveStatusAssertions",get:function(){return this._assertActiveStatusRequired},set:function(e){this._assertActiveStatusRequired=e}},{key:"OldValue",get:function(){return this._OldValue}}])}();t.EntityField=_,_.SQLTypeValueRanges={int:{min:-2147483648,max:2147483647},bigint:{min:-0x8000000000000000,max:0x8000000000000000},smallint:{min:-32768,max:32767},tinyint:{min:0,max:255},decimal:{min:-7922816251426434e12,max:7922816251426434e13},numeric:{min:-7922816251426434e12,max:7922816251426434e13},float:{min:-17976931348623157e292,max:17976931348623157e292},real:{min:-3402823466e29,max:3402823466e29},money:{min:-922337203685477.6,max:922337203685477.6}};var O=f((function e(){s(this,e)}));t.DataObjectRelatedEntityParam=O;var S=f((function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];s(this,e),this.oldValues=t,this.omitNullValues=r,this.omitEmptyStrings=n,this.excludeFields=o,this.includeRelatedEntityData=i,this.relatedEntityList=a}));t.DataObjectParams=S;var E=f((function e(){s(this,e)}));t.BaseEntityAIActionParams=E;var P=f((function e(t,r,n){s(this,e),this.OriginalValues=[],this.NewValues=[],this.Success=void 0!==t&&t,this.Type=void 0===n?"create":n,this.Message=void 0===r?"":r,this.Error=null,this.Errors=[],this.StartedAt=new Date,this.EndedAt=new Date}));t.BaseEntityResult=P;var j=f((function e(){s(this,e)}));t.BaseEntityEvent=j;var x=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;s(this,e),this._Fields=[],this._recordLoaded=!1,this._contextCurrentUser=null,this._transactionGroup=null,this._resultHistory=[],this._provider=null,this._everSaved=!1,this._compositeKey=null,this._pendingSave$=null,this._eventSubject=new w.Subject,this._EntityInfo=t,y.EntityInfo.AssertEntityActiveStatus(t,"BaseEntity::constructor"),this._provider=r,this.init()}return f(e,[{key:"ProviderToUse",get:function(){return this._provider||e.Provider}},{key:"RunViewProviderToUse",get:function(){return this.ProviderToUse}},{key:"RunQueryProviderToUse",get:function(){return this.ProviderToUse}},{key:"RunReportProviderToUse",get:function(){return this.ProviderToUse}},{key:"RegisterEventHandler",value:function(e){return this._eventSubject.asObservable().subscribe(e)}},{key:"RegisterTransactionPreprocessing",value:function(){this.TransactionGroup&&this.TransactionGroup.RegisterPreprocessing(this)}},{key:"RaiseReadyForTransaction",value:function(){this.RaiseEvent("transaction_ready",null)}},{key:"RaiseEvent",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if((0,b.LogDebug)("BaseEntity.RaiseEvent() - ".concat("save"===t?"save:"+n:t," event raised for ").concat(this.EntityInfo.Name,", about to call this._eventSubject.next()")),this._eventSubject.next({type:t,payload:r,saveSubType:n,baseEntity:this}),"save"===t||"delete"===t){var o=new j;o.baseEntity=this,o.payload=r,o.type=t,o.saveSubType=n,(0,b.LogDebug)("BaseEntity.RaiseEvent() - ".concat("save"===t?"save:"+n:t," event raised for ").concat(this.EntityInfo.Name,", about to call MJGlobal.RaiseEvent()")),d.MJGlobal.Instance.RaiseEvent({component:this,event:d.MJEventType.ComponentEvent,eventCode:e.BaseEventCode,args:o})}}},{key:"Config",value:(N=u(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.ContextCurrentUser=t;case 1:case"end":return e.stop()}}),e,this)}))),function(e){return N.apply(this,arguments)})},{key:"IsSaved",get:function(){return this._everSaved}},{key:"TransactionGroup",get:function(){return this._transactionGroup},set:function(e){this._transactionGroup=e}},{key:"ResultHistory",get:function(){return this._resultHistory}},{key:"LatestResult",get:function(){return this._resultHistory.length>0?this._resultHistory[this._resultHistory.length-1]:null}},{key:"EntityInfo",get:function(){return this._EntityInfo}},{key:"Fields",get:function(){return this._Fields}},{key:"GetFieldByName",value:function(e){if(!e)return null;var t=e.trim().toLowerCase();return this.Fields.find((function(e){return e.Name.trim().toLowerCase()===t}))}},{key:"Dirty",get:function(){return!this.IsSaved||this.Fields.some((function(e){return e.Dirty}))}},{key:"PrimaryKeys",get:function(){var e=this;return this.EntityInfo.PrimaryKeys.map((function(t){return e.GetFieldByName(t.Name)}))}},{key:"PrimaryKey",get:function(){return null===this._compositeKey&&(this._compositeKey=new g.CompositeKey,this._compositeKey.LoadFromEntityFields(this.PrimaryKeys)),this._compositeKey}},{key:"FirstPrimaryKey",get:function(){return this.PrimaryKeys[0]}},{key:"RecordLoaded",get:function(){return this._recordLoaded}},{key:"Set",value:function(e,t){var r=this.GetFieldByName(e);if(null!=r)if(r.EntityFieldInfo.TSType!==y.EntityFieldTSType.Date||"string"!=typeof t&&"number"!=typeof t)if(r.EntityFieldInfo.TSType===y.EntityFieldTSType.Number&&"string"==typeof t&&null!=t){var n=Number(t);isNaN(n)?r.Value=t:r.Value=n}else r.EntityFieldInfo.TSType===y.EntityFieldTSType.Boolean&&null!=t?"string"==typeof t?"1"===t.trim()||"true"===t.trim().toLowerCase()?r.Value=!0:"0"===t.trim()||"false"===t.trim().toLowerCase()?r.Value=!1:r.Value=t:r.Value="number"==typeof t?0!==t:t:r.Value=t;else r.Value=new Date(t)}},{key:"Get",value:function(e){var t=this.GetFieldByName(e);return null!=t?(t.EntityFieldInfo.TSType!==y.EntityFieldTSType.Date||"string"!=typeof t.Value&&"number"!=typeof t.Value||(t.Value=new Date(t.Value)),t.Value):null}},{key:"SetMany",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)throw new Error("calling BaseEntity.SetMany(), object cannot be null or undefined");var i=function(i){var a=t.GetFieldByName(i);if(a){var u=a.ActiveStatusAssertions;o&&(a.ActiveStatusAssertions=!1),t.Set(i,e[i]),n&&a.ResetOldValue(),o&&(a.ActiveStatusAssertions=u)}else{var c=t.Fields.find((function(e){return e.CodeName.trim().toLowerCase()==i.trim().toLowerCase()}));if(c){var s=c.ActiveStatusAssertions;o&&(c.ActiveStatusAssertions=!1),t.Set(c.Name,e[i]),n&&c.ResetOldValue(),o&&(c.ActiveStatusAssertions=s)}else{if(!r)throw new Error("Field ".concat(i," does not exist on ").concat(t.EntityInfo.Name));console.warn("Field ".concat(i," does not exist on ").concat(t.EntityInfo.Name,", ignoring because ignoreNonExistentFields was set to true"))}}};for(var a in e)i(a)}},{key:"GetAll",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={},i=n(this.Fields);try{for(i.s();!(e=i.n()).done;){var a=e.value;if(!r||r&&a.Dirty){var u=a.ActiveStatusAssertions;a.ActiveStatusAssertions=!1,o[a.Name]=t?a.OldValue:a.Value,a.EntityFieldInfo.TSType!=y.EntityFieldTSType.Date||!o[a.Name]||o[a.Name]instanceof Date||(o[a.Name]=new Date(o[a.Name])),a.ActiveStatusAssertions=u}}}catch(e){i.e(e)}finally{i.f()}return o}},{key:"GetChangesSinceLastSave",value:function(){return this.GetAll(!1,!0)}},{key:"GetDataObjectJSON",value:(F=u(i().mark((function e(){var t,r,n,o=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:null,r=!(o.length>1&&void 0!==o[1])||o[1],e.next=4,this.GetDataObject(t);case 4:if(n=e.sent,!r){e.next=9;break}return e.abrupt("return",JSON.stringify(n));case 9:return e.abrupt("return",JSON.stringify(n,null,2));case 10:case"end":return e.stop()}}),e,this)}))),function(){return F.apply(this,arguments)})},{key:"GetDataObject",value:(R=u(i().mark((function e(){var t,r,n,o,a,u,c=this,s=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n in(t=s.length>0&&void 0!==s[0]?s[0]:null)||(t=new S),r=this.GetAll(t.oldValues))o=r[n],(t.omitNullValues&&null===o||t.omitEmptyStrings&&null!==o&&"string"==typeof o&&0===o.trim().length||t.excludeFields&&t.excludeFields.indexOf(n)>=0)&&delete r[n];if(!t.includeRelatedEntityData){e.next=12;break}a=i().mark((function e(){var n,o,a,s;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=c._EntityInfo.RelatedEntities[u],!(o=t.relatedEntityList?t.relatedEntityList.find((function(e){return e.relatedEntityName===n.RelatedEntity})):null)){e.next=7;break}return e.next=5,c.GetRelatedEntityDataExt(n,o.filter,o.maxRecords);case 5:(a=e.sent)&&(r[n.RelatedEntity]=a,o.maxRecords>0&&(s=o.maxRecords<a.TotalRowCount?"Only the first ".concat(o.maxRecords," records are included in this response. There are ").concat(a.TotalRowCount," total records available."):"All ".concat(a.TotalRowCount," records are included in this response."),r[n.RelatedEntity].Note=s,r[n.RelatedEntity].MaxRecordsFilter=o.maxRecords));case 7:case"end":return e.stop()}}),e)})),u=0;case 7:if(!(u<this._EntityInfo.RelatedEntities.length)){e.next=12;break}return e.delegateYield(a(),"t0",9);case 9:u++,e.next=7;break;case 12:return e.abrupt("return",r);case 13:case"end":return e.stop()}}),e,this)}))),function(){return R.apply(this,arguments)})},{key:"GetRelatedEntityData",value:(T=u(i().mark((function e(t){var r,n,o,a=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:null,n=a.length>2&&void 0!==a[2]?a[2]:null,e.next=4,this.GetRelatedEntityDataExt(t,r,n);case 4:return o=e.sent,e.abrupt("return",null==o?void 0:o.Data);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return T.apply(this,arguments)})},{key:"GetRelatedEntityDataExt",value:(L=u(i().mark((function e(t){var r,n,o,a,u,c=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=c.length>1&&void 0!==c[1]?c[1]:null,n=c.length>2&&void 0!==c[2]?c[2]:null,o=y.EntityInfo.BuildRelationshipViewParams(this,t,r,n),a=new m.RunView,e.next=6,a.RunView(o,this._contextCurrentUser);case 6:if(!(u=e.sent)||!u.Success){e.next=11;break}return e.abrupt("return",{Data:u.Results,TotalRowCount:u.TotalRowCount});case 11:return e.abrupt("return",null);case 12:case"end":return e.stop()}}),e,this)}))),function(e){return L.apply(this,arguments)})},{key:"init",value:function(){if(this._compositeKey=null,this._resultHistory=[],this._recordLoaded=!1,this._Fields=[],this.EntityInfo){var e,t=n(this.EntityInfo.Fields);try{for(t.s();!(e=t.n()).done;){var r=e.value,o=this.EntityInfo.Name+"."+r.Name,i=d.MJGlobal.Instance.ClassFactory.CreateInstance(_,o,r);this.Fields.push(i)}}catch(e){t.e(e)}finally{t.f()}}}},{key:"CopyFrom",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];try{var o,i=n(this.Fields);try{for(i.s();!(o=i.n()).done;){var a=o.value;if(!a.IsPrimaryKey||t){var u=e.GetFieldByName(a.Name);u&&(this.Set(a.Name,u.Value),r&&a.ResetOldValue())}}}catch(e){i.e(e)}finally{i.f()}return!0}catch(e){return(0,b.LogError)("Error in BaseEntity.CopyFrom: ".concat(e)),!1}}},{key:"ContextCurrentUser",get:function(){return this._contextCurrentUser},set:function(e){this._contextCurrentUser=e}},{key:"NewRecord",value:function(e){var t=this;if(this.init(),this._everSaved=!1,1===this.EntityInfo.PrimaryKeys.length){var r=this.EntityInfo.PrimaryKeys[0];if(!r.AutoIncrement&&"uniqueidentifier"===r.Type.toLowerCase().trim()&&!this.Get(r.Name)){var n=(0,d.uuidv4)();this.Set(r.Name,n);var o=this.GetFieldByName(r.Name);o&&o.ResetNeverSetFlag()}}return e&&e.KeyValuePairs.filter((function(e){return null!==e.Value&&void 0!==e.Value})).forEach((function(e){t.Set(e.FieldName,e.Value)})),this.RaiseEvent("new_record",null),!0}},{key:"Save",value:(I=u(i().mark((function e(t){var r=this;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._pendingSave$){e.next=2;break}return e.abrupt("return",(0,w.firstValueFrom)(this._pendingSave$));case 2:return this._pendingSave$=(0,w.of)(t).pipe((0,w.switchMap)((function(e){return(0,w.from)(r._InnerSave(e))})),(0,w.finalize)((function(){r._pendingSave$=null})),(0,w.shareReplay)(1)),e.abrupt("return",(0,w.firstValueFrom)(this._pendingSave$));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return I.apply(this,arguments)})},{key:"_InnerSave",value:(A=u(i().mark((function e(t){var r,n,o,a,u,c,s,l,f=this;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.ResultHistory.length,(n=new P).StartedAt=new Date,e.prev=3,o=t||new h.EntitySaveOptions,a=this.IsSaved?y.EntityPermissionType.Update:y.EntityPermissionType.Create,u=this.IsSaved?"update":"create",this.CheckPermissions(a,!0),!(o.IgnoreDirtyState||this.Dirty||o.ReplayOnly)){e.next=41;break}if(this.ProviderToUse){e.next=13;break}throw new Error("No provider set");case 13:if(c=new y.ValidationResult,!o.ReplayOnly){e.next=18;break}c.Success=!0,e.next=26;break;case 18:if(c=this.Validate(),void 0!==o.SkipAsyncValidation?o.SkipAsyncValidation:this.DefaultSkipAsyncValidation){e.next=26;break}return e.next=23,this.ValidateAsync();case 23:s=e.sent,c.Success=c.Success&&s.Success,s.Errors.forEach((function(e){c.Errors.push(e)}));case 26:if(!c.Success){e.next=38;break}return e.next=29,this.ProviderToUse.Save(this,this.ActiveUser,o);case 29:if(l=e.sent,this.TransactionGroup){e.next=34;break}return e.abrupt("return",this.finalizeSave(l,u));case 34:return this.TransactionGroup.TransactionNotifications$.subscribe((function(e){var t=e.success,r=e.results,n=e.error;if(!t)throw n;var o=r.find((function(e){return e.Transaction.BaseEntity===f}));if(!o)throw new Error("Transaction group did not return a result for the entity object");f.finalizeSave(o.Result,u)})),e.abrupt("return",!0);case 36:e.next=39;break;case 38:throw c;case 39:e.next=42;break;case 41:return e.abrupt("return",!0);case 42:e.next=48;break;case 44:return e.prev=44,e.t0=e.catch(3),r===this.ResultHistory.length&&(n.Success=!1,n.Type=this.IsSaved?"update":"create",n.Message=e.t0.message||null,n.Errors=e.t0.Errors||[],n.OriginalValues=this.Fields.map((function(e){return{FieldName:e.CodeName,Value:e.OldValue}})),n.EndedAt=new Date,this.ResultHistory.push(n)),e.abrupt("return",!1);case 48:case"end":return e.stop()}}),e,this,[[3,44]])}))),function(e){return A.apply(this,arguments)})},{key:"finalizeSave",value:function(e,t){if(e){this.init(),this.SetMany(e,!1,!0,!0),this._everSaved=!0;var r=this.LatestResult;return r&&(r.NewValues=this.Fields.map((function(e){return{FieldName:e.CodeName,Value:e.Value}}))),this.RaiseEvent("save",null,t),!0}return!1}},{key:"ActiveUser",get:function(){return this.ContextCurrentUser||v.Metadata.Provider.CurrentUser}},{key:"CheckPermissions",value:function(e,t){var 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");switch(e){case y.EntityPermissionType.Create:if(!this.EntityInfo.AllowCreateAPI){if(t)throw new Error("Create API is disabled for ".concat(this.EntityInfo.Name));return!1}break;case y.EntityPermissionType.Update:if(!this.EntityInfo.AllowUpdateAPI){if(t)throw new Error("Update API is disabled for ".concat(this.EntityInfo.Name));return!1}break;case y.EntityPermissionType.Delete:if(!this.EntityInfo.AllowDeleteAPI){if(t)throw new Error("Delete API is disabled for ".concat(this.EntityInfo.Name));return!1}break;case y.EntityPermissionType.Read:if(!this.EntityInfo.IncludeInAPI){if(t)throw new Error("API is disabled for ".concat(this.EntityInfo.Name));return!1}}var n=this.EntityInfo.GetUserPermisions(r),o=!1;switch(e){case y.EntityPermissionType.Create:o=n.CanCreate;break;case y.EntityPermissionType.Read:o=n.CanRead;break;case y.EntityPermissionType.Update:o=n.CanUpdate;break;case y.EntityPermissionType.Delete:o=n.CanDelete}if(o||!t)return o;this.ThrowPermissionError(r,e,null)}},{key:"ThrowPermissionError",value:function(e,t,r){throw new Error("User: ".concat(e.Name," (ID: ").concat(e.ID,", Email: ").concat(e.Email,")\n Does NOT have permission to ").concat(y.EntityPermissionType[t]," ").concat(this.EntityInfo.Name," records.\n If you believe this is an error, please contact your system administrator.").concat(r?"\nAdditional Information: "+r:"","}"))}},{key:"Revert",value:function(){if(this.Dirty){var e,t=n(this.Fields);try{for(t.s();!(e=t.n()).done;){var r=e.value;r.Value=r.OldValue}}catch(e){t.e(e)}finally{t.f()}}return!0}},{key:"InnerLoad",value:(k=u(i().mark((function e(t){var r,o,a,u,c,s,l=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=l.length>1&&void 0!==l[1]?l[1]:null,this.ProviderToUse){e.next=5;break}throw new Error("No provider set");case 5:if((o=t.Validate())&&o.IsValid){e.next=8;break}throw new Error("Invalid CompositeKey passed to BaseEntity.Load(".concat(this.EntityInfo.Name,"): ").concat(o.ErrorMessage));case 8:return this.CheckPermissions(y.EntityPermissionType.Read,!0),this.IsSaved||this.init(),e.next=12,this.ProviderToUse.Load(this,t,r,this.ActiveUser);case 12:if(a=e.sent){e.next=16;break}return(0,b.LogError)("Error in BaseEntity.Load(".concat(this.EntityInfo.Name,", Key: ").concat(t.ToString())),e.abrupt("return",!1);case 16:if(this.SetMany(a,!1,!0,!0),r){u=n(r);try{for(u.s();!(c=u.n()).done;)s=c.value,a[s]&&(this[s]=a[s])}catch(e){u.e(e)}finally{u.f()}}return this._recordLoaded=!0,this._everSaved=!0,this._compositeKey=t,e.abrupt("return",!0);case 22:case"end":return e.stop()}}),e,this)}))),function(e){return k.apply(this,arguments)})},{key:"LoadFromData",value:(C=u(i().mark((function e(t){var r,o,a,u,c=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=c.length>1&&void 0!==c[1]&&c[1],this.SetMany(t,!0,r,!0),this.PrimaryKeys&&this.PrimaryKeys.length>0){this._recordLoaded=!0,this._everSaved=!0,o=n(this.PrimaryKeys);try{for(o.s();!(a=o.n()).done;)null!==(u=a.value).Value&&void 0!==u.Value||(this._recordLoaded=!1,this._everSaved=!1)}catch(e){o.e(e)}finally{o.f()}}else(0,b.LogError)("BaseEntity.LoadFromData() called on ".concat(this.EntityInfo.Name," with no primary keys defined. This is an error state and should not happen.")),this._recordLoaded=!1,this._everSaved=!1;return e.abrupt("return",!0);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return C.apply(this,arguments)})},{key:"Validate",value:function(){var e=new y.ValidationResult;e.Success=!0;var t,r=n(this.Fields);try{for(r.s();!(t=r.n()).done;){var o=t.value.Validate();o.Errors.forEach((function(t){e.Errors.push(t)})),e.Success=e.Success&&o.Success}}catch(o){r.e(o)}finally{r.f()}return e}},{key:"DefaultSkipAsyncValidation",get:function(){return!0}},{key:"ValidateAsync",value:(x=u(i().mark((function e(){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new y.ValidationResult).Success=!0,e.abrupt("return",t);case 3:case"end":return e.stop()}}),e)}))),function(){return x.apply(this,arguments)})},{key:"Delete",value:(E=u(i().mark((function e(t){var r,n,o,a=this;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.ResultHistory.length,(n=new P).StartedAt=new Date,e.prev=3,this.ProviderToUse){e.next=8;break}throw new Error("No provider set");case 8:return this.CheckPermissions(y.EntityPermissionType.Delete,!0),e.next=11,this.GetDataObject({oldValues:!1,omitNullValues:!1,omitEmptyStrings:!1,excludeFields:null,includeRelatedEntityData:!1,relatedEntityList:null});case 11:return o=e.sent,e.next=14,this.ProviderToUse.Delete(this,t,this.ActiveUser);case 14:if(!e.sent){e.next=19;break}return this.TransactionGroup?this.TransactionGroup.TransactionNotifications$.subscribe((function(e){var t=e.success,r=(e.results,e.error);t?(a.RaiseEvent("delete",{OldValues:o}),a.NewRecord()):(n.Success=!1,n.Type="delete",n.Message=r&&r.message?r.message:r,n.Errors=r.Errors||[],n.OriginalValues=a.Fields.map((function(e){return{FieldName:e.CodeName,Value:e.OldValue}})),n.EndedAt=new Date,a.ResultHistory.push(n))})):(this.RaiseEvent("delete",{OldValues:o}),this.NewRecord()),e.abrupt("return",!0);case 19:return e.abrupt("return",!1);case 20:e.next=26;break;case 22:return e.prev=22,e.t0=e.catch(3),r===this.ResultHistory.length&&(n.Success=!1,n.Type="delete",n.Message=e.t0.message||null,n.Errors=e.t0.Errors||[],n.OriginalValues=this.Fields.map((function(e){return{FieldName:e.CodeName,Value:e.OldValue}})),n.EndedAt=new Date,this.ResultHistory.push(n)),e.abrupt("return",!1);case 26:case"end":return e.stop()}}),e,this,[[3,22]])}))),function(e){return E.apply(this,arguments)})},{key:"BeforeEntityAIAction",value:(O=u(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),e)}))),function(e){return O.apply(this,arguments)})},{key:"AfterEntityAIAction",value:(p=u(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),e)}))),function(e){return p.apply(this,arguments)})},{key:"RecordChanges",get:function(){if(this.IsSaved)return e.GetRecordChanges(this.EntityInfo.Name,this.PrimaryKey,this.ProviderToUse);throw new Error("Cannot get record changes for a record that has not been saved yet")}},{key:"From",value:function(e,t){if(this.init(),t){var r=t.safeParse(e);return r.success?(this.SetMany(r.data,!1,!1,!0),!0):((0,b.LogError)(r.error.flatten()),!1)}return this.SetMany(e,!1,!1,!0),!0}},{key:"To",value:function(e){if(e){var t=this.GetAll(),r=e.safeParse(t);if(!r.success)return(0,b.LogError)(r.error.flatten()),null;r.data}return this.GetAll()}},{key:"GenerateEmbeddingsByFieldName",value:(l=u(i().mark((function e(t){var r,o,a,u,c,s,l,f;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=[],o=n(t);try{for(o.s();!(a=o.n()).done;)u=a.value,c=u.fieldName,s=u.vectorFieldName,l=u.modelFieldName,r.push(this.GenerateEmbeddingByFieldName(c,s,l))}catch(e){o.e(e)}finally{o.f()}return e.next=5,Promise.all(r);case 5:return f=e.sent,e.abrupt("return",f.every((function(e){return!0===e})));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"GenerateEmbeddingByFieldName",value:(c=u(i().mark((function e(t,r,n){var o,a,u;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=this.GetFieldByName(t),a=this.GetFieldByName(r),u=this.GetFieldByName(n),o){e.next=5;break}throw new Error("Field not found: ".concat(t));case 5:if(a){e.next=7;break}throw new Error("Vector field not found: ".concat(r));case 7:if(!((null==n?void 0:n.trim().length)>0)||u){e.next=9;break}throw new Error("Model field not found: ".concat(n));case 9:return e.next=11,this.GenerateEmbedding(o,a,u);case 11:return e.abrupt("return",e.sent);case 12:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return c.apply(this,arguments)})},{key:"GenerateEmbeddings",value:(a=u(i().mark((function e(t){var r,o,a,u,c,s,l,f;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=[],o=n(t);try{for(o.s();!(a=o.n()).done;)u=a.value,c=u.field,s=u.vectorField,l=u.modelField,r.push(this.GenerateEmbedding(c,s,l))}catch(e){o.e(e)}finally{o.f()}return e.next=5,Promise.all(r);case 5:return f=e.sent,e.abrupt("return",f.every((function(e){return!0===e})));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"GenerateEmbedding",value:(o=u(i().mark((function e(t,r,n){var o,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,this.IsSaved&&!t.Dirty){e.next=11;break}if(!((null===(o=t.Value)||void 0===o?void 0:o.trim().length)>0)){e.next=9;break}return e.next=5,this.EmbedTextLocal(t.Value);case 5:(a=e.sent)&&a.vector&&(r.Value=JSON.stringify(a.vector),n&&(n.Value=a.modelID)),e.next=11;break;case 9:r.Value=null,n&&(n.Value=null);case 11:return e.abrupt("return",!0);case 14:return e.prev=14,e.t0=e.catch(0),console.error("Error generating embedding:",e.t0),e.abrupt("return",!1);case 18:case"end":return e.stop()}}),e,this,[[0,14]])}))),function(e,t,r){return o.apply(this,arguments)})},{key:"EmbedTextLocal",value:(r=u(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("EmbedTextLocal not implemented in BaseEntity, sub-classes must implement this functionality to use it");case 1:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})}],[{key:"BaseEventCode",get:function(){return e._baseEventCode}},{key:"Provider",get:function(){var t=d.MJGlobal.Instance.GetGlobalObjectStore();if(t)return t[e._globalProviderKey];throw new Error("No global object store, so we cant get the static provider")},set:function(t){var r=d.MJGlobal.Instance.GetGlobalObjectStore();if(!r)throw new Error("No global object store, so we cant set the static provider");r[e._globalProviderKey]=t}},{key:"GetRecordChanges",value:(t=u(i().mark((function t(r,o){var a,u,c,s,l,f,p=arguments;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=(p.length>2&&void 0!==p[2]?p[2]:null)||e.Provider){t.next=6;break}throw new Error("No provider set or passed in");case 6:return t.next=8,a.GetRecordChanges(r,o);case 8:if(!(u=t.sent)){t.next=16;break}c=[],s=n(u);try{for(s.s();!(l=s.n()).done;)f=l.value,c.push(new y.RecordChange(f))}catch(e){s.e(e)}finally{s.f()}return t.abrupt("return",c);case 16:return t.abrupt("return",[]);case 17:case"end":return t.stop()}}),t)}))),function(e,r){return t.apply(this,arguments)})}]);var t,r,o,a,c,l,p,O,E,x,C,k,A,I,L,T,R,F,N}();t.BaseEntity=x,x._baseEventCode="BaseEntityEvent",x._globalProviderKey="MJ_BaseEntityProvider"},5485:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}Object.defineProperty(t,"__esModule",{value:!0}),t.BaseInfo=void 0;var a=r(2584),u=function(){return e=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.ID=null,t&&this.copyInitData(t)},(t=[{key:"copyInitData",value:function(e){if(e)for(var t=Object.keys(e),r=Object.keys(this),n=0;n<t.length;n++)if(r.indexOf(t[n])>=0)if("defaultvalue"===t[n].trim().toLowerCase()&&e[t[n]]){var o=e[t[n]],i=(0,a.ExtractActualDefaultValue)(o);this[t[n]]=i}else this[t[n]]=e[t[n]]}}])&&o(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();t.BaseInfo=u},7538:(e,t)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function n(e,t,n){return t=i(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,o()?Reflect.construct(t,n||[],i(e).constructor):t.apply(e,n))}function o(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(o=function(){return!!e})()}function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function u(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=c(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function c(e,t){if(e){if("string"==typeof e)return s(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,p(n.key),n)}}function f(e,t,r){return t&&l(e.prototype,t),r&&l(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function p(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.CompositeKey=t.FieldValueCollection=t.KeyValuePair=void 0;var y=f((function e(t,r){d(this,e),this.FieldName=t||"",this.Value=r}));t.KeyValuePair=y;var h=function(){function e(t){if(d(this,e),t&&Array.isArray(t)&&t.length>0){var r=t[0];if(r.FieldName&&r.Value)return void(this.KeyValuePairs=t)}this.KeyValuePairs=[]}return f(e,[{key:"GetValueByFieldName",value:function(e){var t=this.KeyValuePairs.find((function(t){return t.FieldName===e}));return t?t.Value:null}},{key:"GetValueByIndex",value:function(e){return e>=0&&e<this.KeyValuePairs.length?this.KeyValuePairs[e].Value:null}},{key:"ToString",value:function(e){return this.KeyValuePairs.map((function(t){return!e||null!==t.Value&&void 0!==t.Value?"".concat(t.FieldName,"=").concat(t.Value):"".concat(t.FieldName," IS NULL")})).join(" AND ")}},{key:"ValuesAsString",value:function(){return this.KeyValuePairs.map((function(e){return{FieldName:e.FieldName,Value:e.Value?e.Value.toString():""}}))}},{key:"Copy",value:function(){var e=new v;return e.KeyValuePairs=this.ValuesAsString(),e}},{key:"ToList",value:function(e){return this.KeyValuePairs.map((function(t){return e?"".concat(t.FieldName).concat(e).concat(t.Value):"".concat(t.FieldName,"=").concat(t.Value)}))}},{key:"ToWhereClause",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"single";return this.KeyValuePairs.map((function(r){var n=r.Value;return e&&null==n?"".concat(r.FieldName," IS NULL"):(("string"==typeof n||n instanceof Date)&&(n="single"===t?"'".concat(n,"'"):'"'.concat(n,'"')),"".concat(r.FieldName,"=").concat(n))})).join(" AND ")}},{key:"Values",value:function(e){return this.KeyValuePairs.map((function(e){return e.Value})).join(e||", ")}},{key:"HasValue",get:function(){return this.KeyValuePairs.some((function(e){return null!==e.Value&&void 0!==e.Value&&""!==e.Value}))}},{key:"LoadFromEntityFields",value:function(e){this.KeyValuePairs=e.map((function(e){return{FieldName:e.Name,Value:e.Value}}))}},{key:"LoadFromEntityInfoAndRecord",value:function(e,t){this.KeyValuePairs=e.PrimaryKeys.map((function(e){return{FieldName:e.Name,Value:t[e.Name]}}))}},{key:"LoadFromList",value:function(e,t){this.KeyValuePairs=e.map((function(e){var r=t?e.split(t):e.split("=");if(2===r.length){var n=new y;return n.FieldName=r[0],n.Value=r[1],n}}))}},{key:"ToConcatenatedString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"||",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"|";return this.KeyValuePairs.map((function(e){return"".concat(e.FieldName).concat(t).concat(e.Value)})).join(e)}},{key:"LoadFromConcatenatedString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"||",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"|";if(e.includes(r)){var n,o=[],i=u(e.split(t));try{for(i.s();!(n=i.n()).done;){var a=n.value.split(r);o.push({FieldName:a[0],Value:a[1]})}}catch(e){i.e(e)}finally{i.f()}this.KeyValuePairs=o}}},{key:"ToURLSegment",value:function(e){return this.ToConcatenatedString(e||v.DefaultFieldDelimiter,v.DefaultValueDelimiter)}},{key:"LoadFromURLSegment",value:function(e,t){t.includes("|")?this.SimpleLoadFromURLSegment(t):this.KeyValuePairs=[{FieldName:e.FirstPrimaryKey.Name,Value:t}]}},{key:"SimpleLoadFromURLSegment",value:function(e){if(e.includes(v.DefaultValueDelimiter)){var t,r=[],n=u(e.split(v.DefaultFieldDelimiter));try{for(n.s();!(t=n.n()).done;){var o=t.value.split("|");r.push({FieldName:o[0],Value:o[1]})}}catch(e){n.e(e)}finally{n.f()}this.KeyValuePairs=r}}},{key:"LoadFromSingleKeyValuePair",value:function(e,t){this.KeyValuePairs=[{FieldName:e,Value:t}]}},{key:"LoadFromSimpleObject",value:function(e){this.KeyValuePairs=Object.keys(e).map((function(t){return{FieldName:t,Value:e[t]}}))}}],[{key:"DefaultFieldDelimiter",get:function(){return this._field_delimiter}},{key:"DefaultValueDelimiter",get:function(){return this._value_delimiter}},{key:"FromObject",value:function(t){var r=new e;return r.LoadFromSimpleObject(t),r}}])}();t.FieldValueCollection=h,h._field_delimiter="||",h._value_delimiter="|";var v=function(e){function t(e){return d(this,t),n(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(t,e),f(t,[{key:"Equals",value:function(e){return!!e&&this.EqualsKey(e.KeyValuePairs)}},{key:"Validate",value:function(e){var t=this,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{if(!this.KeyValuePairs||0===this.KeyValuePairs.length)throw new Error("KeyValuePairs cannot be null or empty");for(var n=function(){var n=t.KeyValuePairs[o];if(!n.FieldName||0===n.FieldName.trim().length)throw new Error("KeyValuePairs[".concat(o,"].FieldName cannot be null, empty, or whitespace"));if(null===n.Value||void 0===n.Value)throw new Error("KeyValuePairs[".concat(o,"].Value cannot be null or undefined"));if(e){var i=e.Fields.find((function(e){return e.Name.trim().toLowerCase()===n.FieldName.trim().toLowerCase()}));if(!i)throw new Error("KeyValuePairs[".concat(o,"].FieldName of ").concat(n.FieldName," does not exist on ").concat(e.Name));if(r&&!i.IsPrimaryKey)throw new Error("KeyValuePairs[".concat(o,"].FieldName of ").concat(n.FieldName," is not a primary key field on ").concat(e.Name))}},o=0;o<this.KeyValuePairs.length;o++)n();return{IsValid:!0,ErrorMessage:null}}catch(e){return{IsValid:!1,ErrorMessage:e.message}}}},{key:"EqualsKey",value:function(e){if(!e||0===e.length)return!1;if(e.length!==this.KeyValuePairs.length)return!1;var t,r,n,o=u(e.entries());try{for(o.s();!(t=o.n()).done;){var i=(r=t.value,n=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(r,n)||c(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],s=i[1],l=this.KeyValuePairs[a];if(s.FieldName!==l.FieldName||s.Value!==l.Value)return!1}}catch(e){o.e(e)}finally{o.f()}return!0}}],[{key:"FromKeyValuePair",value:function(e,r){var n=new t;return n.LoadFromSingleKeyValuePair(e,r),n}},{key:"FromKeyValuePairs",value:function(e){return new t(e)}},{key:"FromID",value:function(e){var r=new t;return r.LoadFromSingleKeyValuePair("ID",e),r}},{key:"FromObject",value:function(e){var r=new t;return r.LoadFromSimpleObject(e),r}}])}(h);t.CompositeKey=v},1261:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t,r){return t=a(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,i()?Reflect.construct(t,r||[],a(e).constructor):t.apply(e,r))}function i(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(i=function(){return!!e})()}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.DatabaseProviderBase=void 0;var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(t,e),r=t,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(r(9571).ProviderBase);t.DatabaseProviderBase=c},9827:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function s(e,t,r){return t=f(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,r||[],f(e).constructor):t.apply(e,r))}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}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;var y=r(5485),h=r(5949),v=r(2584),m=r(4423);t.RecordChangeStatus={Pending:"Pending",Complete:"Complete",Error:"Error"};var b=function(e){function r(e){var t;return i(this,r),(t=s(this,r)).ID=null,t.EntityID=null,t.RecordID=null,t.ChangedAt=null,t.ChangesJSON=null,t.ChangesDescription=null,t.FullRecordJSON=null,t.Status=null,t.copyInitData(e),t}return p(r,e),u(r,[{key:"StatusValue",get:function(){var e;return t.RecordChangeStatus[null===(e=this.Status)||void 0===e?void 0:e.trim()]}},{key:"Changes",get:function(){return JSON.parse(this.ChangesJSON)}},{key:"FullRecord",get:function(){return JSON.parse(this.FullRecordJSON)}}])}(y.BaseInfo);t.RecordChange=b;var g=function(e){function t(e){var r;return i(this,t),(r=s(this,t)).ID=null,r.EntityID=null,r.Sequence=null,r.RelatedEntityID=null,r.BundleInAPI=null,r.IncludeInParentAllQuery=null,r.Type=null,r.EntityKeyField=null,r.RelatedEntityJoinField=null,r.JoinView=null,r.JoinEntityJoinField=null,r.JoinEntityInverseJoinField=null,r.DisplayInForm=null,r.DisplayLocation="After Field Tabs",r.DisplayName=null,r.DisplayIconType="Related Entity Icon",r.DisplayIcon=null,r.DisplayUserViewID=null,r.DisplayComponentID=null,r.DisplayComponentConfiguration=null,r.__mj_CreatedAt=null,r.__mj_UpdatedAt=null,r.AutoUpdateFromSchema=!0,r.Entity=null,r.EntityBaseTable=null,r.EntityBaseView=null,r.RelatedEntity=null,r.RelatedEntityBaseTable=null,r.RelatedEntityBaseView=null,r.RelatedEntityCodeName=null,r.RelatedEntityClassName=null,r.RelatedEntityBaseTableCodeName=null,r.DisplayUserViewName=null,r.DisplayComponent=null,r.copyInitData(e),r}return p(t,e),u(t)}(y.BaseInfo);t.EntityRelationshipInfo=g,t.EntityPermissionType={Read:"Read",Create:"Create",Update:"Update",Delete:"Delete"};var w=u((function e(){i(this,e),this.ID=null}));t.EntityUserPermissionInfo=w;var _=function(e){function r(e){var t;return i(this,r),(t=s(this,r)).ID=null,t.EntityID=null,t.RoleID=null,t.CanCreate=null,t.CanRead=null,t.CanUpdate=null,t.CanDelete=null,t.ReadRLSFilterID=null,t.CreateRLSFilterID=null,t.UpdateRLSFilterID=null,t.DeleteRLSFilterID=null,t.__mj_CreatedAt=null,t.__mj_UpdatedAt=null,t.Entity=null,t.Role=null,t.RoleSQLName=null,t.ReadRLSFilter=null,t.CreateRLSFilter=null,t.UpdateRLSFilter=null,t.DeleteRLSFilter=null,t.copyInitData(e),t}return p(r,e),u(r,[{key:"CreateRLSFilterObject",get:function(){return this.RLSFilter(t.EntityPermissionType.Create)}},{key:"ReadRLSFilterObject",get:function(){return this.RLSFilter(t.EntityPermissionType.Read)}},{key:"UpdateRLSFilterObject",get:function(){return this.RLSFilter(t.EntityPermissionType.Update)}},{key:"DeleteRLSFilterObject",get:function(){return this.RLSFilter(t.EntityPermissionType.Delete)}},{key:"RLSFilter",value:function(e){var r="";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&&r.length>0)return h.Metadata.Provider.RowLevelSecurityFilters.find((function(e){return e.ID===r}))}}])}(y.BaseInfo);t.EntityPermissionInfo=_,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"};var O=function(e){function t(e){var r;return i(this,t),(r=s(this,t)).ID=null,r.EntityFieldID=null,r.Sequence=null,r.Value=null,r.Code=null,r.Description=null,r.__mj_CreatedAt=null,r.__mj_UpdatedAt=null,r.copyInitData(e),r}return p(t,e),u(t)}(y.BaseInfo);t.EntityFieldValueInfo=O,t.GeneratedFormSectionType={Top:"Top",Details:"Details",Category:"Category"};var S=function(e){function r(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(i(this,r),(e=s(this,r)).ID=null,e.EntityID=null,e.Sequence=null,e.Name=null,e.DisplayName=null,e.Description=null,e.IsPrimaryKey=null,e.IsUnique=null,e.Category=null,e.Type=null,e.Length=null,e.Precision=null,e.Scale=null,e.AllowsNull=null,e.DefaultValue=null,e.AutoIncrement=null,e.ValueListType=null,e.ExtendedType=null,e.DefaultInView=null,e.ViewCellTemplate=null,e.DefaultColumnWidth=null,e.AllowUpdateAPI=null,e.AllowUpdateInView=null,e.IncludeInUserSearchAPI=null,e.FullTextSearchEnabled=!1,e.UserSearchParamFormatAPI=null,e.IncludeInGeneratedForm=null,e.GeneratedFormSection=null,e.IsVirtual=null,e.IsNameField=null,e.RelatedEntityID=null,e.RelatedEntityFieldName=null,e.IncludeRelatedEntityNameFieldInBaseView=null,e.RelatedEntityNameFieldMap=null,e.RelatedEntityDisplayType=null,e.EntityIDFieldName=null,e.__mj_CreatedAt=null,e.__mj_UpdatedAt=null,e.ScopeDefault=null,e.AutoUpdateRelatedEntityInfo=!0,e.ValuesToPackWithSchema="Auto",e.GeneratedValidationFunctionName=null,e.GeneratedValidationFunctionDescription=null,e.GeneratedValidationFunctionCode=null,e.GeneratedValidationFunctionCheckConstraint=null,e.Status="Active",e.FieldCodeName=null,e.Entity=null,e.SchemaName=null,e.BaseTable=null,e.BaseView=null,e.EntityCodeName=null,e.EntityClassName=null,e.RelatedEntity=null,e.RelatedEntitySchemaName=null,e.RelatedEntityBaseTable=null,e.RelatedEntityBaseView=null,e.RelatedEntityCodeName=null,e.RelatedEntityClassName=null,e._codeName=null,t){e.copyInitData(t),e._EntityFieldValues=[];var n=t.EntityFieldValues||t._EntityFieldValues;if(n)for(var o=0;o<n.length;o++)e._EntityFieldValues.push(new O(n[o]))}return e}return p(r,e),u(r,[{key:"EntityFieldValues",get:function(){return this._EntityFieldValues}},{key:"ValueListTypeEnum",get:function(){if(null==this.ValueListType)return t.EntityFieldValueListType.None;for(var e in t.EntityFieldValueListType)if("string"==typeof t.EntityFieldValueListType[e]&&e.toLowerCase().trim()===this.ValueListType.toLowerCase().trim())return t.EntityFieldValueListType[e]}},{key:"GeneratedFormSectionType",get:function(){return t.GeneratedFormSectionType[this.GeneratedFormSection]}},{key:"TSType",get:function(){switch((0,v.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}}},{key:"IsBinaryFieldType",get:function(){switch(this.Type.trim().toLowerCase()){case"binary":case"varbinary":case"image":return!0;default:return!1}}},{key:"UnicodePrefix",get:function(){return this.RequiredUnicodePrefix?"N":""}},{key:"RequiredUnicodePrefix",get:function(){switch(this.Type.trim().toLowerCase()){case"nchar":case"nvarchar":case"ntext":return!0;default:return!1}}},{key:"NeedsQuotes",get:function(){switch(this.TSType){case t.EntityFieldTSType.Number:case t.EntityFieldTSType.Boolean:return!1;default:return!0}}},{key:"CodeName",get:function(){return null===this._codeName&&(this._codeName=(0,v.CodeNameFromString)(this.Name)),this._codeName}},{key:"GraphQLType",get:function(){switch((0,v.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}}},{key:"SQLFullType",get:function(){return(0,v.SQLFullType)(this.Type,this.Length,this.Precision,this.Scale)}},{key:"MaxLength",get:function(){return(0,v.SQLMaxLength)(this.Type,this.Length)}},{key:"ReadOnly",get:function(){return this.IsVirtual||!this.AllowUpdateAPI||this.IsPrimaryKey||this.IsSpecialDateField}},{key:"IsSpecialDateField",get:function(){return this.IsCreatedAtField||this.IsUpdatedAtField||this.IsDeletedAtField}},{key:"IsCreatedAtField",get:function(){return this.Name.trim().toLowerCase()===j.CreatedAtFieldName.trim().toLowerCase()}},{key:"IsUpdatedAtField",get:function(){return this.Name.trim().toLowerCase()===j.UpdatedAtFieldName.trim().toLowerCase()}},{key:"IsDeletedAtField",get:function(){return this.Name.trim().toLowerCase()===j.DeletedAtFieldName.trim().toLowerCase()}},{key:"IsUniqueIdentifier",get:function(){return"uniqueidentifier"===this.Type.trim().toLowerCase()}},{key:"HasDefaultValue",get:function(){return this.DefaultValue&&this.DefaultValue.trim().length>0}},{key:"SkipValidation",get:function(){return this.Name.toLowerCase().trim(),this.IsSpecialDateField||this.IsPrimaryKey||!0===this.AutoIncrement||!0===this.IsVirtual||!0===this.ReadOnly}},{key:"DisplayNameOrName",get:function(){return this.DisplayName?this.DisplayName:this.Name}},{key:"FormatValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"USD",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"...";return(0,v.FormatValue)(this.Type,e,t,r,n,o)}}],[{key:"AssertEntityFieldActiveStatus",value:function(e,t){var r,n;if(!e)throw new Error("Entity must be provided to call AssertEntityFieldActiveStatus. Caller: ".concat(t));if("Active"!==e.Status)if("deprecated"===(null===(r=e.Status)||void 0===r?void 0:r.trim().toLowerCase()))console.warn("".concat(t,": Entity Field ").concat(e.Entity,".").concat(e.Name," is deprecated and should not be used as it could be removed in the future."));else if("disabled"===(null===(n=e.Status)||void 0===n?void 0:n.trim().toLowerCase())){var o="".concat(t,": Entity Field ").concat(e.Entity,".").concat(e.Name," is disabled and cannot be used.");throw(0,m.LogError)(o),new Error(o)}}},{key:"IsDefaultValueSQLCurrentDateFunction",value:function(e){if(!e)return!1;var t=e.trim().toLowerCase();return r.SQL_CURRENT_DATE_FUNCTIONS.some((function(e){return t.includes(e)}))}}])}(y.BaseInfo);t.EntityFieldInfo=S,S.SQL_CURRENT_DATE_FUNCTIONS=["getdate()","getutcdate()","sysdatetimeoffset()","current_timestamp","sysdatetime()","sysutcdatetime()"];var E=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return i(this,t),(e=s(this,t)).ID=null,e.Name=null,e.Description=null,e.__mj_CreatedAt=null,e.__mj_UpdatedAt=null,e.copyInitData(r),e}return p(t,e),u(t)}(y.BaseInfo);t.EntityDocumentTypeInfo=E;var P=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return i(this,t),(e=s(this,t)).ID=null,e.EntityID=null,e.Name=null,e.Value=null,e.Comments=null,e.__mj_CreatedAt=null,e.__mj_UpdatedAt=null,e.copyInitData(r),e}return p(t,e),u(t)}(y.BaseInfo);t.EntitySettingInfo=P;var j=function(e){function r(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(i(this,r),(e=s(this,r)).ID=null,e.ParentID=null,e.Name=null,e.DisplayName=null,e.NameSuffix=null,e.Description=null,e.BaseTable=null,e.BaseView=null,e.BaseViewGenerated=null,e.SchemaName=null,e.VirtualEntity=null,e.TrackRecordChanges=null,e.AuditRecordAccess=null,e.AuditViewRuns=null,e.IncludeInAPI=!1,e.AllowAllRowsAPI=!1,e.AllowUpdateAPI=!1,e.AllowCreateAPI=!1,e.AllowDeleteAPI=!1,e.CustomResolverAPI=!1,e.AllowUserSearchAPI=!1,e.FullTextSearchEnabled=!1,e.FullTextCatalog=null,e.FullTextCatalogGenerated=!0,e.FullTextIndex=null,e.FullTextIndexGenerated=!0,e.FullTextSearchFunction=null,e.FullTextSearchFunctionGenerated=!0,e.UserViewMaxRows=null,e.spCreate=null,e.spUpdate=null,e.spDelete=null,e.spCreateGenerated=null,e.spUpdateGenerated=null,e.spDeleteGenerated=null,e.CascadeDeletes=null,e.DeleteType="Hard",e.AllowRecordMerge=null,e.spMatch=null,e.RelationshipDefaultDisplayType=null,e.UserFormGenerated=null,e.EntityObjectSubclassName=null,e.EntityObjectSubclassImport=null,e.PreferredCommunicationField=null,e.Icon=null,e.__mj_CreatedAt=null,e.__mj_UpdatedAt=null,e.ScopeDefault=null,e.RowsToPackWithSchema="None",e.RowsToPackSampleMethod="random",e.RowsToPackSampleCount=0,e.RowsToPackSampleOrder=null,e.AutoRowCountFrequency=null,e.RowCount=null,e.RowCountRunAt=null,e.Status="Active",e.CodeName=null,e.ClassName=null,e.BaseTableCodeName=null,e.ParentEntity=null,e.ParentBaseTable=null,e.ParentBaseView=null,e._hasIdField=!1,e._virtualCount=0,e._manyToManyCount=0,e._oneToManyCount=0,e._floatCount=0,t){e.copyInitData(t),e._Fields=[];var n=t.EntityFields||t._Fields;if(n)for(var a=0;a<n.length;a++)e._Fields.push(new S(n[a]));e._Permissions=[];var u=t.EntityPermissions||t._Permissions;if(u)for(var c=0;c<u.length;c++)e._Permissions.push(new _(u[c]));e._Settings=[];var l=t.EntitySettings||t._Settings;l&&l.map((function(t){return e._Settings.push(new P(t))})),e._RelatedEntities=[];var f=t.EntityRelationships||t._RelatedEntities;if(f){var p,d=!1,y=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,a=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw a}}}}(f);try{for(y.s();!(p=y.n()).done;){var h=p.value;if(null!==h.Sequence&&void 0!==h.Sequence&&0!==h.Sequence){d=!0;break}}}catch(e){y.e(e)}finally{y.f()}d&&f.sort((function(e,t){return(null!==e.Sequence&&void 0!==e.Sequence?e.Sequence:999999)-(null!==t.Sequence&&void 0!==t.Sequence?t.Sequence:999999)}));for(var v=0;v<f.length;v++)e._RelatedEntities.push(new g(f[v]))}e.prepareSpecialFields()}return e}return p(r,e),u(r,[{key:"FirstPrimaryKey",get:function(){return this.Fields.find((function(e){return e.IsPrimaryKey}))}},{key:"PrimaryKeys",get:function(){return this.Fields.filter((function(e){return e.IsPrimaryKey}))}},{key:"UniqueKeys",get:function(){return this.Fields.filter((function(e){return e.IsUnique}))}},{key:"ForeignKeys",get:function(){return this.Fields.filter((function(e){return e.RelatedEntityID&&e.RelatedEntityID.length>0}))}},{key:"Fields",get:function(){return this._Fields}},{key:"RelatedEntities",get:function(){return this._RelatedEntities}},{key:"Permissions",get:function(){return this._Permissions}},{key:"Settings",get:function(){return this._Settings}},{key:"BaseTableDisplayName",get:function(){return this.BaseTable.replace(/([A-Z])/g," $1").trim()}},{key:"DisplayNameOrName",get:function(){return this.DisplayName?this.DisplayName:this.Name}},{key:"NameField",get:function(){for(var e=0;e<this.Fields.length;e++){var t=this.Fields[e];if(t.IsNameField)return t}return this.Fields.find((function(e){return"name"===e.Name.toLowerCase()}))}},{key:"GetUserPermisions",value:function(e){var t=this;try{for(var r=[],n=function(){var n=t.Permissions[o];e.UserRoles.find((function(e){return e.RoleID===n.RoleID}))&&r.push(n)},o=0;o<this.Permissions.length;o++)n();var i=new w;i.CanCreate=!1,i.CanDelete=!1,i.CanRead=!1,i.CanUpdate=!1;for(var a=0;a<r.length;a++){var u=r[a];i.CanCreate=i.CanCreate||u.CanCreate,i.CanRead=i.CanRead||u.CanRead,i.CanUpdate=i.CanUpdate||u.CanUpdate,i.CanDelete=i.CanDelete||u.CanDelete}return i.Entity=this,i.User=e,i}catch(e){return console.log(e),null}}},{key:"UserExemptFromRowLevelSecurity",value:function(e,r){for(var n,o=this,i=function(){var n=o.Permissions[a];if(e.UserRoles.find((function(e){return e.RoleID===n.RoleID})))switch(r){case t.EntityPermissionType.Create:if(!n.CreateRLSFilterID)return{v:!0};break;case t.EntityPermissionType.Read:if(!n.ReadRLSFilterID)return{v:!0};break;case t.EntityPermissionType.Update:if(!n.UpdateRLSFilterID)return{v:!0};break;case t.EntityPermissionType.Delete:if(!n.DeleteRLSFilterID)return{v:!0}}},a=0;a<this.Permissions.length;a++)if(n=i())return n.v;return!1}},{key:"GetUserRowLevelSecurityInfo",value:function(e,r){for(var n=this,o=[],i=function(){var i=n.Permissions[a];if(e.UserRoles.find((function(e){return e.RoleID===i.RoleID}))){var u=null;switch(r){case t.EntityPermissionType.Create:i.CreateRLSFilterID&&(u=i.CreateRLSFilterObject);break;case t.EntityPermissionType.Read:i.ReadRLSFilterID&&(u=i.ReadRLSFilterObject);break;case t.EntityPermissionType.Update:i.UpdateRLSFilterID&&(u=i.UpdateRLSFilterObject);break;case t.EntityPermissionType.Delete:i.DeleteRLSFilterID&&(u=i.DeleteRLSFilterObject)}u&&(o.find((function(e){return e.ID===u.ID}))||o.push(u))}},a=0;a<this.Permissions.length;a++)i();return o}},{key:"GetUserRowLevelSecurityWhereClause",value:function(e,t,r){var n=this.GetUserRowLevelSecurityInfo(e,t);if(n&&n.length>0){var o="";return n.forEach((function(t){o.length>0&&(o+=" OR "),o+="(".concat(t.MarkupFilterText(e),")")})),o.length>0?"".concat(r&&r.length>0?r+" ":"").concat(o):""}return""}},{key:"prepareSpecialFields",value:function(){try{for(var e=0,t=0,r=0,n=0,o=!1,i=0;i<this.Fields.length;++i){var a=this.Fields[i];"ID"===a.Name.trim().toUpperCase()&&(o=!0),e+=a.IsVirtual?1:0,n+=a.IsFloat?1:0}this._hasIdField=o,this._floatCount=n,this._virtualCount=e;for(var u=0;u<this.RelatedEntities.length;++u)"ONE TO MANY"===this.RelatedEntities[u].Type.trim().toUpperCase()?r++:t++;this._manyToManyCount=t,this._oneToManyCount=r}catch(e){(0,m.LogError)(e)}}}],[{key:"CreatedAtFieldName",get:function(){return r.__createdAtFieldName}},{key:"UpdatedAtFieldName",get:function(){return r.__updatedAtFieldName}},{key:"DeletedAtFieldName",get:function(){return r.__deletedAtFieldName}},{key:"AssertEntityActiveStatus",value:function(e,t){var r,n;if(!e)throw new Error("Entity must be provided to call AssertEntityActiveStatus. Caller: ".concat(t));if("deprecated"===(null===(r=e.Status)||void 0===r?void 0:r.trim().toLowerCase()))console.warn("".concat(t,": Entity ").concat(e.Name," is deprecated and should not be used as it could be removed in the future."));else if("disabled"===(null===(n=e.Status)||void 0===n?void 0:n.trim().toLowerCase())){var o="".concat(t,": Entity ").concat(e.Name," is disabled and cannot be used.");throw(0,m.LogError)(o),new Error(o)}}},{key:"BuildRelationshipViewParams",value:function(e,t,r,n){var o={},i="",a="";if(t.EntityKeyField&&t.EntityKeyField.length>0)a=e.Get(t.EntityKeyField),i=e.EntityInfo.Fields.find((function(e){return e.Name.trim().toLowerCase()===t.EntityKeyField.trim().toLowerCase()})).NeedsQuotes?"'":"";else{var u=e.FirstPrimaryKey;i=(a=u.Value)&&u.NeedsQuotes?"'":""}return"one to many"===t.Type.trim().toLowerCase()?o.ExtraFilter="[".concat(t.RelatedEntityJoinField,"] = ").concat(i).concat(a).concat(i):o.ExtraFilter="[".concat(t.RelatedEntityJoinField,"] IN (SELECT [").concat(t.JoinEntityInverseJoinField,"] FROM [").concat(t.JoinView,"] WHERE [").concat(t.JoinEntityJoinField,"] = ").concat(i).concat(a).concat(i,")"),r&&r.length>0&&(o.ExtraFilter="(".concat(o.ExtraFilter,") AND (").concat(r,")")),t.DisplayUserViewID&&t.DisplayUserViewID.length>0?o.ViewID=t.DisplayUserViewID:o.EntityName=t.RelatedEntity,n&&n>0&&(o.MaxRows=n),o}},{key:"BuildRelationshipNewRecordValues",value:function(e,t){var r={};if(e&&t){var n=t.EntityKeyField&&t.EntityKeyField.trim().length>0?t.EntityKeyField:e.FirstPrimaryKey.Name;r[t.RelatedEntityJoinField]=e.Get(n)}return r}}])}(y.BaseInfo);t.EntityInfo=j,j.__createdAtFieldName="__mj_CreatedAt",j.__updatedAtFieldName="__mj_UpdatedAt",j.__deletedAtFieldName="__mj_DeletedAt";var x=r(5120);Object.defineProperty(t,"ValidationErrorType",{enumerable:!0,get:function(){return x.ValidationErrorType}}),Object.defineProperty(t,"ValidationErrorInfo",{enumerable:!0,get:function(){return x.ValidationErrorInfo}}),Object.defineProperty(t,"ValidationResult",{enumerable:!0,get:function(){return x.ValidationResult}});var C=u((function e(){i(this,e)}));t.EntityDependency=C;var k=u((function e(){i(this,e)}));t.RecordDependency=k;var A=u((function e(){i(this,e)}));t.RecordMergeRequest=A;var I=u((function e(){i(this,e)}));t.RecordMergeDetailResult=I;var L=u((function e(){i(this,e)}));t.RecordMergeResult=L},2714:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t,r){return t=a(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,i()?Reflect.construct(t,r||[],a(e).constructor):t.apply(e,r))}function i(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(i=function(){return!!e})()}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.ExplorerNavigationItem=void 0;var c=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=o(this,t)).ID=null,e.Sequence=null,e.Name=null,e.Route=null,e.IsActive=null,e.ShowInHomeScreen=null,e.ShowInNavigationDrawer=null,e.IconCSSClass=null,e.Description=null,e.Comments=null,e.__mj_CreatedAt=null,e.__mj_UpdatedAt=null,r&&e.copyInitData(r),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(t,e),r=t,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(r(5485).BaseInfo);t.ExplorerNavigationItem=c},5788:(e,t,r)=>{"use strict";function n(e,t,r){return t=i(t),function(e,t){if(t&&("object"==u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,o()?Reflect.construct(t,r||[],i(e).constructor):t.apply(e,r))}function o(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(o=function(){return!!e})()}function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,f(n.key),n)}}function l(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function f(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}Object.defineProperty(t,"__esModule",{value:!0}),t.AllMetadata=t.EntityRecordNameResult=t.EntityRecordNameInput=t.EntityMergeOptions=t.EntityDeleteOptions=t.EntitySaveOptions=t.PotentialDuplicateResponse=t.PotentialDuplicateResult=t.PotentialDuplicateRequest=t.PotentialDuplicate=t.ProviderType=t.MetadataInfo=t.ProviderConfigDataBase=void 0;var p=r(7538),d=function(){return l((function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"__mj",n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];c(this,e),this._includeSchemas=[],this._excludeSchemas=[],this._MJCoreSchemaName="__mj",this._ignoreExistingMetadata=!1,this._data=t,this._MJCoreSchemaName=r,n&&(this._includeSchemas=n),o&&(this._excludeSchemas=o),this._ignoreExistingMetadata=i}),[{key:"Data",get:function(){return this._data}},{key:"IncludeSchemas",get:function(){return this._includeSchemas}},{key:"MJCoreSchemaName",get:function(){return this._MJCoreSchemaName}},{key:"ExcludeSchemas",get:function(){return this._excludeSchemas}},{key:"IgnoreExistingMetadata",get:function(){return this._ignoreExistingMetadata}}])}();t.ProviderConfigDataBase=d;var y=l((function e(){c(this,e)}));t.MetadataInfo=y,t.ProviderType={Database:"Database",Network:"Network"};var h=function(e){function t(){return c(this,t),n(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(t,e),l(t)}(p.CompositeKey);t.PotentialDuplicate=h;var v=l((function e(){c(this,e)}));t.PotentialDuplicateRequest=v;var m=l((function e(){c(this,e),this.RecordCompositeKey=new p.CompositeKey,this.Duplicates=[],this.DuplicateRunDetailMatchRecordIDs=[]}));t.PotentialDuplicateResult=m;var b=l((function e(){c(this,e)}));t.PotentialDuplicateResponse=b;var g=l((function e(){c(this,e),this.IgnoreDirtyState=!1,this.SkipEntityAIActions=!1,this.SkipEntityActions=!1,this.ReplayOnly=!1,this.SkipOldValuesCheck=!1,this.SkipAsyncValidation=void 0}));t.EntitySaveOptions=g;var w=l((function e(){c(this,e),this.SkipEntityAIActions=!1,this.SkipEntityActions=!1,this.ReplayOnly=!1}));t.EntityDeleteOptions=w;var _=l((function e(){c(this,e)}));t.EntityMergeOptions=_;var O=l((function e(){c(this,e)}));t.EntityRecordNameInput=O;var S=l((function e(){c(this,e)}));t.EntityRecordNameResult=S;var E=l((function e(){c(this,e),this.CurrentUser=null,this.AllEntities=[],this.AllApplications=[],this.AllRoles=[],this.AllRowLevelSecurityFilters=[],this.AllAuditLogTypes=[],this.AllAuthorizations=[],this.AllQueryCategories=[],this.AllQueries=[],this.AllQueryFields=[],this.AllQueryPermissions=[],this.AllQueryEntities=[],this.AllQueryParameters=[],this.AllEntityDocumentTypes=[],this.AllLibraries=[],this.AllExplorerNavigationItems=[]}));t.AllMetadata=E},9589:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(e,t,r){return t=c(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,u()?Reflect.construct(t,r||[],c(e).constructor):t.apply(e,r))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.LibraryInfo=void 0;var l=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=a(this,t)).ID=null,e.Name=null,e.Description=null,e.Status=null,e.ExportedItems=null,e.TypeDefinitions=null,e.SampleCode=null,e.__mj_CreatedAt=null,e.__mj_UpdatedAt=null,e._exportItemsArray=null,r&&e.copyInitData(r),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(t,e),r=t,(n=[{key:"ExportItemsArray",get:function(){return!this._exportItemsArray&&this.ExportedItems&&this.ExportedItems.length>0?this._exportItemsArray=this.ExportedItems.split(",").map((function(e){return e.trim()})):this._exportItemsArray=[],this._exportItemsArray}}])&&o(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(r(5485).BaseInfo);t.LibraryInfo=l},4423:function(__unused_webpack_module,exports,__webpack_require__){"use strict";function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.UpdateCurrentConsoleProgress=exports.UpdateCurrentConsoleLine=exports.getAnsiColorCode=exports.ConsoleColor=exports.SeverityType=exports.FormatFileMessage=exports.FormatConsoleMessage=exports.SetProductionStatus=exports.GetProductionStatus=exports.LogStatus=exports.SetVerboseLogging=exports.IsVerboseLoggingEnabled=exports.LogStatusEx=exports.LogError=exports.LogErrorEx=exports.LogDebug=void 0;var debug_1=__importDefault(__webpack_require__(6419)),fs;if(runningOnNode())try{fs=eval("require('fs')")}catch(e){}var __defaultLogger=(0,debug_1.default)("MJGlobal");function LogDebug(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];__defaultLogger.apply(void 0,t)}function LogErrorEx(e){if("string"!=typeof e){var t=e.message;e.category&&(t="[".concat(e.category,"] ").concat(t)),e.severity&&"error"!==e.severity&&(t="[".concat(e.severity.toUpperCase(),"] ").concat(t)),e.error&&(t+="\n Error: ".concat(e.error.message),!1!==e.includeStack&&e.error.stack&&(t+="\n Stack: ".concat(e.error.stack))),e.metadata&&Object.keys(e.metadata).length>0&&(t+="\n Metadata: "+JSON.stringify(e.metadata,null,2)),null!==e.logToFileName&&void 0!==e.logToFileName&&e.logToFileName.length>=0?logToFile.apply(void 0,[t,!0,e.logToFileName].concat(_toConsumableArray(e.additionalArgs||[]))):logToConsole.apply(void 0,[t,!0].concat(_toConsumableArray(e.additionalArgs||[])))}else logToConsole(e,!0)}function LogError(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];LogErrorEx({message:String(e),logToFileName:t,additionalArgs:n})}function LogStatusEx(e){if("string"!=typeof e){if(e.verboseOnly&&!(e.isVerboseEnabled||IsVerboseLoggingEnabled)())return;null!==e.logToFileName&&void 0!==e.logToFileName&&e.logToFileName.length>=0?logToFile.apply(void 0,[e.message,!1,e.logToFileName].concat(_toConsumableArray(e.additionalArgs||[]))):logToConsole.apply(void 0,[e.message,!1].concat(_toConsumableArray(e.additionalArgs||[])))}else logToConsole(e,!1)}function IsVerboseLoggingEnabled(){if(runningOnNode()){var e=process.env.MJ_VERBOSE;if(void 0!==e)return["true","1","yes"].includes(e.toLowerCase())}if(runningInBrowser()){if(void 0!==window.MJ_VERBOSE)return!0===window.MJ_VERBOSE;try{var t=localStorage.getItem("MJ_VERBOSE");if(null!==t)return["true","1","yes"].includes(t.toLowerCase())}catch(e){}if("undefined"!=typeof URLSearchParams){var r=new URLSearchParams(window.location.search).get("MJ_VERBOSE");if(r)return["true","1","yes"].includes(r.toLowerCase())}}return!1}function SetVerboseLogging(e){if(runningInBrowser()){window.MJ_VERBOSE=e;try{localStorage.setItem("MJ_VERBOSE",e?"true":"false")}catch(e){}}}function LogStatus(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];LogStatusEx({message:String(e),logToFileName:t,additionalArgs:n,verboseOnly:!1})}function logToConsole(e,t){for(var r,n,o=arguments.length,i=new Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];t?(r=console).error.apply(r,[e].concat(i)):GetProductionStatus()||(n=console).log.apply(n,[e].concat(i))}function logToFile(e,t,r){for(var n=arguments.length,o=new Array(n>3?n-3:0),i=3;i<n;i++)o[i-3]=arguments[i];null==fs?(console.error("Attempting to log to file, but fs module is not available, logging to console instead"),logToConsole.apply(void 0,[e,t].concat(o))):fs.appendFileSync(r,"".concat(t?"ERROR":"STATUS"," (").concat(new Date,": ").concat(e).concat(o&&o.length>0&&o.join("").length>0?"\n ARGS"+o.join("\n "):"")+"\n")}exports.LogDebug=LogDebug,exports.LogErrorEx=LogErrorEx,exports.LogError=LogError,exports.LogStatusEx=LogStatusEx,exports.IsVerboseLoggingEnabled=IsVerboseLoggingEnabled,exports.SetVerboseLogging=SetVerboseLogging,exports.LogStatus=LogStatus;var _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 FormatConsoleMessageInternal(exports.ConsoleColor.white,e);case"Warning":return FormatConsoleMessageInternal(exports.ConsoleColor.yellow,e);case"Critical":return FormatConsoleMessageInternal(exports.ConsoleColor.red,e);default:return e}}function FormatConsoleMessageInternal(e,t){return"\r[".concat(getAnsiColorCode(exports.ConsoleColor.white),"m").concat(t,"[0m")}function FormatFileMessage(e,t){switch(t){case"Trace":return"[Trace] ".concat(e);case"Debug":return"[Debug] ".concat(e);case"Info":return"[Info] ".concat(e);case"Warning":return"[Warning] ".concat(e);case"Critical":return"[Critical] ".concat(e);default:return e}}function getAnsiColorCode(e){switch(e){case exports.ConsoleColor.black:return 30;case exports.ConsoleColor.red:return 31;case exports.ConsoleColor.green:return 32;case exports.ConsoleColor.yellow:return 33;case exports.ConsoleColor.blue:return 34;case exports.ConsoleColor.magenta:return 35;case exports.ConsoleColor.cyan:return 36;case exports.ConsoleColor.white:return 37;case exports.ConsoleColor.gray:return 90;case exports.ConsoleColor.crimson:return 38;default:return 37}}function UpdateCurrentConsoleLine(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:exports.ConsoleColor.white;runningOnNode()?console.log("[".concat(getAnsiColorCode(t),"m").concat(e,"[0m")):console.log("\r%c".concat(e),"color: ".concat(t))}function UpdateCurrentConsoleProgress(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:exports.ConsoleColor.white;UpdateCurrentConsoleLine("".concat(e," ").concat(t," of ").concat(r," (").concat((t/r*100).toFixed(1),"%)"),n)}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.ConsoleColor={black:"black",red:"red",green:"green",yellow:"yellow",blue:"blue",magenta:"magenta",cyan:"cyan",white:"white",gray:"gray",crimson:"crimson"},exports.getAnsiColorCode=getAnsiColorCode,exports.UpdateCurrentConsoleLine=UpdateCurrentConsoleLine,exports.UpdateCurrentConsoleProgress=UpdateCurrentConsoleProgress},5949:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return t};var e,t={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),u=new L(n||[]);return a(i,"_invoke",{value:C(e,r,u)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var y="suspendedStart",h="suspendedYield",v="executing",m="completed",b={};function g(){}function w(){}function _(){}var O={};f(O,c,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(T([])));E&&E!==r&&i.call(E,c)&&(O=E);var P=_.prototype=g.prototype=Object.create(O);function j(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function r(o,a,u,c){var s=d(e[o],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&i.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,u,c)}),(function(e){r("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return r("throw",e,u,c)}))}c(s.arg)}var o;a(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function C(t,r,n){var o=y;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=k(u,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=d(t,r,n);if("normal"===s.type){if(o=n.done?m:h,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function T(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(i.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(n(t)+" is not iterable")}return w.prototype=_,a(P,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:w,configurable:!0}),w.displayName=f(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,f(e,l,"GeneratorFunction")),e.prototype=Object.create(P),e},t.awrap=function(e){return{__await:e}},j(x.prototype),f(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(p(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},j(P),f(P,l,"Generator"),f(P,c,(function(){return this})),f(P,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=T,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),s=i.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}function i(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function u(e){i(a,n,o,u,c,"next",e)}function c(e){i(a,n,o,u,c,"throw",e)}u(void 0)}))}}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function c(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var s=r(4922),l=r(5120),f=r(4423),p=r(7538),d=r(4593),y=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,r=[{key:"Refresh",value:(T=a(o().mark((function t(r){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.Provider.Refresh(r);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)}))),function(e){return T.apply(this,arguments)})},{key:"ProviderType",get:function(){return e.Provider.ProviderType}},{key:"Applications",get:function(){return e.Provider.Applications}},{key:"Entities",get:function(){return e.Provider.Entities}},{key:"EntityByName",value:function(e){if(!e||"string"!=typeof e||0===e.trim().length)throw new Error("EntityByName: entityName must be a non-empty string");return this.Entities.find((function(t){return t.Name.toLowerCase().trim()===e.toLowerCase().trim()}))}},{key:"EntityByID",value:function(e){return this.Entities.find((function(t){return t.ID===e}))}},{key:"Queries",get:function(){return e.Provider.Queries}},{key:"QueryFields",get:function(){return e.Provider.QueryFields}},{key:"QueryCategories",get:function(){return e.Provider.QueryCategories}},{key:"QueryPermissions",get:function(){return e.Provider.QueryPermissions}},{key:"CurrentUser",get:function(){return e.Provider.CurrentUser}},{key:"Roles",get:function(){return e.Provider.Roles}},{key:"AuditLogTypes",get:function(){return e.Provider.AuditLogTypes}},{key:"Authorizations",get:function(){return e.Provider.Authorizations}},{key:"Libraries",get:function(){return e.Provider.Libraries}},{key:"VisibleExplorerNavigationItems",get:function(){return e.Provider.VisibleExplorerNavigationItems}},{key:"AllExplorerNavigationItems",get:function(){return e.Provider.AllExplorerNavigationItems}},{key:"EntityIDFromName",value:function(e){var t=this.Entities.find((function(t){return t.Name==e}));if(null!=t)return t.ID;throw new Error("Entity ".concat(e," not found"))}},{key:"EntityNameFromID",value:function(e){var t=this.Entities.find((function(t){return t.ID==e}));return t?t.Name:((0,f.LogError)("Entity ID: ".concat(e," not found")),null)}},{key:"EntityFromEntityID",value:function(e){var t=this.Entities.find((function(t){return t.ID==e}));return t||((0,f.LogError)("Entity ID: ".concat(e," not found")),null)}},{key:"GetRecordFavoriteStatus",value:(L=a(o().mark((function t(r,n,i,a){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.Provider.GetRecordFavoriteStatus(r,n,i,a);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)}))),function(e,t,r,n){return L.apply(this,arguments)})},{key:"GetRecordChanges",value:(I=a(o().mark((function e(t,r,n){var i,a,u;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,i=this.EntityByName(t)){e.next=4;break}throw new Error("Entity ".concat(t," not found"));case 4:if(i.TrackRecordChanges){e.next=7;break}return(0,f.LogStatus)("GetRecordChanges called for entity ".concat(t," with primary key ").concat(r.ToConcatenatedString()," but TrackRecordChanges is not enabled, returning empty array.")),e.abrupt("return",[]);case 7:return a=new d.RunView,e.next=10,a.RunView({EntityName:"Record Changes",ExtraFilter:"Entity='".concat(t,"' AND RecordID='").concat(r.ToConcatenatedString(),"'"),OrderBy:"ChangedAt DESC"},n);case 10:if(!(u=e.sent).Success){e.next=13;break}return e.abrupt("return",u.Results);case 13:e.next=19;break;case 15:throw e.prev=15,e.t0=e.catch(0),(0,f.LogError)("GetRecordChanges failed for entityName: ".concat(t," and primaryKey: ").concat(r,". Error: ").concat(e.t0.message)),e.t0;case 19:case"end":return e.stop()}}),e,this,[[0,15]])}))),function(e,t,r){return I.apply(this,arguments)})},{key:"SetRecordFavoriteStatus",value:(A=a(o().mark((function t(r,n,i,a){var u,c=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return u=c.length>4&&void 0!==c[4]?c[4]:null,t.next=3,e.Provider.SetRecordFavoriteStatus(r,n,i,a,u);case 3:case"end":return t.stop()}}),t)}))),function(e,t,r,n){return A.apply(this,arguments)})},{key:"GetRecordDependencies",value:(k=a(o().mark((function t(r,n){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.Provider.GetRecordDependencies(r,n);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)}))),function(e,t){return k.apply(this,arguments)})},{key:"GetRecordDuplicates",value:(C=a(o().mark((function t(r,n){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.Provider.GetRecordDuplicates(r,n);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)}))),function(e,t){return C.apply(this,arguments)})},{key:"GetEntityDependencies",value:(x=a(o().mark((function t(r){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.Provider.GetEntityDependencies(r);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)}))),function(e){return x.apply(this,arguments)})},{key:"MergeRecords",value:(j=a(o().mark((function t(r,n,i){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.EntityByName(r.EntityName).AllowRecordMerge){t.next=7;break}return t.next=4,e.Provider.MergeRecords(r,n,i);case 4:return t.abrupt("return",t.sent);case 7:throw new Error("Entity ".concat(r.EntityName," does not allow record merging, check the AllowRecordMerge property in the entity metadata"));case 8:case"end":return t.stop()}}),t,this)}))),function(e,t,r){return j.apply(this,arguments)})},{key:"GetEntityObject",value:(P=a(o().mark((function t(r,n,i){var a,u,c;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r&&"string"==typeof r&&0!==r.trim().length){t.next=2;break}throw new Error("GetEntityObject: entityName must be a non-empty string");case 2:if(n instanceof p.CompositeKey?(a=n,u=i):void 0!==i?(a=void 0,u=i):u=n,!u){t.next=11;break}if(u instanceof s.UserInfo){t.next=11;break}if(!((c=u)&&c.ID&&c.Name&&c.Email&&c.UserRoles)){t.next=10;break}u=new s.UserInfo(e.Provider,c),t.next=11;break;case 10:throw new Error("GetEntityObject: contextUser must be null/undefined, a UserInfo instance, or an object that has the same shape as UserInfo, notably having the following properties: ID, Name, Email, and UserRoles");case 11:return t.next=13,e.Provider.GetEntityObject(r,a,u);case 13:return t.abrupt("return",t.sent);case 14:case"end":return t.stop()}}),t)}))),function(e,t,r){return P.apply(this,arguments)})},{key:"GetEntityRecordName",value:(E=a(o().mark((function t(r,n,i){var a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((a=n.Validate()).IsValid){t.next=3;break}throw new Error(a.ErrorMessage);case 3:return t.next=5,e.Provider.GetEntityRecordName(r,n,i);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t)}))),function(e,t,r){return E.apply(this,arguments)})},{key:"GetEntityRecordNames",value:(S=a(o().mark((function t(r,n){var i,a,u;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=0;case 1:if(!(i<r.length)){t.next=16;break}if(r[i].CompositeKey.KeyValuePairs&&0!=r[i].CompositeKey.KeyValuePairs.length){t.next=6;break}throw new Error("GetEntityRecordNames: KeyValuePairs cannot be null or empty. It is for item "+i.toString()+" in the input array.");case 6:a=0;case 7:if(!(a<r[i].CompositeKey.KeyValuePairs.length)){t.next=13;break}if(r[i].CompositeKey.KeyValuePairs[a]&&r[i].CompositeKey.KeyValuePairs[a].Value){t.next=10;break}throw new Error("GetEntityRecordNames: KeyValuePairs cannot contain null values. FieldName: "+(null===(u=r[i].CompositeKey.KeyValuePairs[a])||void 0===u?void 0:u.FieldName));case 10:a++,t.next=7;break;case 13:i++,t.next=1;break;case 16:return t.next=18,e.Provider.GetEntityRecordNames(r,n);case 18:return t.abrupt("return",t.sent);case 19:case"end":return t.stop()}}),t)}))),function(e,t){return S.apply(this,arguments)})},{key:"CreateTransactionGroup",value:(O=a(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.Provider.CreateTransactionGroup();case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)}))),function(){return O.apply(this,arguments)})},{key:"SaveLocalMetadataToStorage",value:(_=a(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.Provider.SaveLocalMetadataToStorage();case 2:case"end":return t.stop()}}),t)}))),function(){return _.apply(this,arguments)})},{key:"RemoveLocalMetadataFromStorage",value:(w=a(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.Provider.RemoveLocalMetadataFromStorage();case 2:case"end":return t.stop()}}),t)}))),function(){return w.apply(this,arguments)})},{key:"LocalStorageProvider",get:function(){return e.Provider.LocalStorageProvider}},{key:"GetDatasetStatusByName",value:(g=a(o().mark((function t(r,n,i,a){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.Provider.GetDatasetStatusByName(r,n,i,a));case 1:case"end":return t.stop()}}),t)}))),function(e,t,r,n){return g.apply(this,arguments)})},{key:"GetDatasetByName",value:(b=a(o().mark((function t(r,n,i,a){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.Provider.GetDatasetByName(r,n,i,a));case 1:case"end":return t.stop()}}),t)}))),function(e,t,r,n){return b.apply(this,arguments)})},{key:"GetAndCacheDatasetByName",value:(m=a(o().mark((function t(r,n,i){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.Provider.GetAndCacheDatasetByName(r,n,i));case 1:case"end":return t.stop()}}),t)}))),function(e,t,r){return m.apply(this,arguments)})},{key:"IsDatasetCacheUpToDate",value:(v=a(o().mark((function t(r,n){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.Provider.IsDatasetCacheUpToDate(r,n));case 1:case"end":return t.stop()}}),t)}))),function(e,t){return v.apply(this,arguments)})},{key:"GetCachedDataset",value:(h=a(o().mark((function t(r,n){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.Provider.GetCachedDataset(r,n));case 1:case"end":return t.stop()}}),t)}))),function(e,t){return h.apply(this,arguments)})},{key:"CacheDataset",value:(y=a(o().mark((function t(r,n,i){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.Provider.CacheDataset(r,n,i));case 1:case"end":return t.stop()}}),t)}))),function(e,t,r){return y.apply(this,arguments)})},{key:"IsDatasetCached",value:(c=a(o().mark((function t(r,n){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.Provider.IsDatasetCached(r,n));case 1:case"end":return t.stop()}}),t)}))),function(e,t){return c.apply(this,arguments)})},{key:"GetDatasetCacheKey",value:function(t,r){return e.Provider.GetDatasetCacheKey(t,r)}},{key:"ClearDatasetCache",value:(i=a(o().mark((function t(r,n){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.Provider.ClearDatasetCache(r,n));case 1:case"end":return t.stop()}}),t)}))),function(e,t){return i.apply(this,arguments)})},{key:"ConfigData",get:function(){return e.Provider.ConfigData}}],n=[{key:"Provider",get:function(){var t=l.MJGlobal.Instance.GetGlobalObjectStore();if(t)return t[e._globalProviderKey];throw new Error("No global object store, so we cant get the static provider")},set:function(t){var r=l.MJGlobal.Instance.GetGlobalObjectStore();if(!r)throw new Error("No global object store, so we cant set the static provider");r[e._globalProviderKey]=t}}],r&&u(t.prototype,r),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n,i,c,y,h,v,m,b,g,w,_,O,S,E,P,j,x,C,k,A,I,L,T}();t.Metadata=y,y._globalProviderKey="MJ_MetadataProvider"},8993:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetEntityNameFromSchemaAndViewString=void 0;var n=r(5949);t.GetEntityNameFromSchemaAndViewString=function(e,t){var r=t||new n.Metadata,o="",i="";-1===e.indexOf(".")?i=e.trim().toLowerCase():(o=e.split(".")[0].trim().toLowerCase(),i=e.split(".")[1].trim().toLowerCase());var a=r.Entities.filter((function(e){return e.BaseView.trim().toLowerCase()===i&&(""===o||e.SchemaName.trim().toLowerCase()===o)}));return a&&1===a.length?a[0].Name:a&&0!==a.length?a&&a.length>1?(console.warn("Found more than one entity for the specified DrillDownView: ".concat(e)),null):null:(console.warn("Could not find entity for the specified DrillDownView: ".concat(e)),null)}},9571:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return t};var e,t={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),u=new L(n||[]);return a(i,"_invoke",{value:C(e,r,u)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var y="suspendedStart",h="suspendedYield",v="executing",m="completed",b={};function g(){}function w(){}function _(){}var O={};f(O,c,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(T([])));E&&E!==r&&i.call(E,c)&&(O=E);var P=_.prototype=g.prototype=Object.create(O);function j(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function r(o,a,u,c){var s=d(e[o],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&i.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,u,c)}),(function(e){r("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return r("throw",e,u,c)}))}c(s.arg)}var o;a(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function C(t,r,n){var o=y;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=k(u,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=d(t,r,n);if("normal"===s.type){if(o=n.done?m:h,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function T(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(i.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(n(t)+" is not iterable")}return w.prototype=_,a(P,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:w,configurable:!0}),w.displayName=f(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,f(e,l,"GeneratorFunction")),e.prototype=Object.create(P),e},t.awrap=function(e){return{__await:e}},j(x.prototype),f(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(p(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},j(P),f(P,l,"Generator"),f(P,c,(function(){return this})),f(P,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=T,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),s=i.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}function i(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function u(e){i(a,n,o,u,c,"next",e)}function c(e){i(a,n,o,u,c,"throw",e)}u(void 0)}))}}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function c(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function s(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return l(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var f;Object.defineProperty(t,"__esModule",{value:!0}),t.ProviderBase=t.AllMetadataArrays=t.MetadataFromSimpleObject=void 0;var p=r(7074),d=r(9827),y=r(5788),h=r(4472),v=r(4922),m=r(5120),b=r(4423),g=r(1446),w=r(9589),_=r(7538),O=r(2714),S=r(5949),E=r(4593);function P(e,r){try{var n=new y.AllMetadata;n.CurrentUser=e.CurrentUser?new v.UserInfo(r,e.CurrentUser):null;var o,i=s(t.AllMetadataArrays);try{var a=function(){var t=o.value;e.hasOwnProperty(t.key)&&(n[t.key]=e[t.key].map((function(e){return new t.class(e,r)})))};for(i.s();!(o=i.n()).done;)a()}catch(e){i.e(e)}finally{i.f()}return n}catch(e){(0,b.LogError)(e)}}t.MetadataFromSimpleObject=P,t.AllMetadataArrays=[{key:"AllEntities",class:d.EntityInfo},{key:"AllApplications",class:h.ApplicationInfo},{key:"AllRoles",class:v.RoleInfo},{key:"AllRowLevelSecurityFilters",class:v.RowLevelSecurityFilterInfo},{key:"AllAuditLogTypes",class:v.AuditLogTypeInfo},{key:"AllAuthorizations",class:v.AuthorizationInfo},{key:"AllQueryCategories",class:g.QueryCategoryInfo},{key:"AllQueries",class:g.QueryInfo},{key:"AllQueryFields",class:g.QueryFieldInfo},{key:"AllQueryPermissions",class:g.QueryPermissionInfo},{key:"AllQueryEntities",class:g.QueryEntityInfo},{key:"AllQueryParameters",class:g.QueryParameterInfo},{key:"AllEntityDocumentTypes",class:d.EntityDocumentTypeInfo},{key:"AllLibraries",class:w.LibraryInfo},{key:"AllExplorerNavigationItems",class:O.ExplorerNavigationItem}];var j=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._localMetadata=new y.AllMetadata,this._refresh=!1,this._cachedVisibleExplorerNavigationItems=null},r=[{key:"EntityStatusCheck",value:(B=a(o().mark((function e(t,r){var n,i;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,E.RunView.GetEntityNameFromRunViewParams(t,this);case 2:if(n=e.sent,i=this.Entities.find((function(e){return e.Name.trim().toLowerCase()===(null==n?void 0:n.trim().toLowerCase())}))){e.next=6;break}throw new Error("Entity ".concat(n," not found in metadata"));case 6:d.EntityInfo.AssertEntityActiveStatus(i,r);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return B.apply(this,arguments)})},{key:"PreProcessRunView",value:(G=a(o().mark((function e(t,r){var n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.EntityStatusCheck(t,"PreProcessRunView"),"entity_object"!==t.ResultType){e.next=6;break}if(n=this.Entities.find((function(e){return e.Name.trim().toLowerCase()===t.EntityName.trim().toLowerCase()}))){e.next=5;break}throw new Error("Entity ".concat(t.EntityName," not found in metadata"));case 5:t.Fields=n.Fields.map((function(e){return e.Name}));case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return G.apply(this,arguments)})},{key:"PostProcessRunView",value:(V=a(o().mark((function e(t,r,n){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.TransformSimpleObjectToEntityObject(r,t,n);case 2:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return V.apply(this,arguments)})},{key:"PreProcessRunViews",value:(U=a(o().mark((function e(t,r){var n,i,a,u=this;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t&&t.length>0)){e.next=17;break}n=s(t),e.prev=2,a=o().mark((function e(){var t,r;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=i.value,u.EntityStatusCheck(t,"PreProcessRunViews"),"entity_object"!==t.ResultType){e.next=7;break}if(r=u.Entities.find((function(e){return e.Name.trim().toLowerCase()===t.EntityName.trim().toLowerCase()}))){e.next=6;break}throw new Error("Entity ".concat(t.EntityName," not found in metadata"));case 6:t.Fields=r.Fields.map((function(e){return e.Name}));case 7:case"end":return e.stop()}}),e)})),n.s();case 5:if((i=n.n()).done){e.next=9;break}return e.delegateYield(a(),"t0",7);case 7:e.next=5;break;case 9:e.next=14;break;case 11:e.prev=11,e.t1=e.catch(2),n.e(e.t1);case 14:return e.prev=14,n.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[2,11,14,17]])}))),function(e,t){return U.apply(this,arguments)})},{key:"PostProcessRunViews",value:(D=a(o().mark((function e(t,r,n){var i,a;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r&&r.length>0)){e.next=5;break}for(i=[],a=0;a<t.length;a++)i.push(this.TransformSimpleObjectToEntityObject(r[a],t[a],n));return e.next=5,Promise.all(i);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return D.apply(this,arguments)})},{key:"TransformSimpleObjectToEntityObject",value:(M=a(o().mark((function e(t,r,n){var i,u=this;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("entity_object"!==t.ResultType||!r||!r.Success){e.next=5;break}return i=r.Results.map(function(){var e=a(o().mark((function e(r){var i;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r instanceof p.BaseEntity)){e.next=4;break}return e.abrupt("return",r);case 4:return e.next=6,u.GetEntityObject(t.EntityName,n);case 6:return i=e.sent,e.next=9,i.LoadFromData(r);case 9:return e.abrupt("return",i);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.next=4,Promise.all(i);case 4:r.Results=e.sent;case 5:case"end":return e.stop()}}),e)}))),function(e,t,r){return M.apply(this,arguments)})},{key:"AllMetadata",get:function(){return this._localMetadata}},{key:"Config",value:(N=a(o().mark((function e(t,r){var n,i,a;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._ConfigData=t,!S.Metadata.Provider||t.IgnoreExistingMetadata){e.next=4;break}if(!this.CopyMetadataFromGlobalProvider()){e.next=4;break}return e.abrupt("return",!0);case 4:if(e.t0=this._refresh,e.t0){e.next=9;break}return e.next=8,this.CheckToSeeIfRefreshNeeded(r);case 8:e.t0=e.sent;case 9:if(!e.t0){e.next=24;break}return this._refresh=!1,this._localMetadata=new y.AllMetadata,this._cachedVisibleExplorerNavigationItems=null,n=(new Date).getTime(),e.next=16,this.GetAllMetadata(r);case 16:if(i=e.sent,a=(new Date).getTime(),(0,b.LogStatus)("GetAllMetadata() took ".concat(a-n," ms")),!i){e.next=24;break}return this.UpdateLocalMetadata(i),this._latestLocalMetadataTimestamps=this._latestRemoteMetadataTimestamps,e.next=24,this.SaveLocalMetadataToStorage();case 24:return e.abrupt("return",!0);case 25:case"end":return e.stop()}}),e,this)}))),function(e,t){return N.apply(this,arguments)})},{key:"CopyMetadataFromGlobalProvider",value:function(){try{return!(!S.Metadata.Provider||S.Metadata.Provider===this||!S.Metadata.Provider.AllMetadata||(this._localMetadata=S.Metadata.Provider.AllMetadata,0))}catch(e){return(0,b.LogError)("Failed to copy metadata from global provider: ".concat(e.message)),!1}}},{key:"BuildDatasetFilterFromConfig",value:function(){var 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)){var o=r.indexOf(n);r.splice(o,1),(0,b.LogStatus)("Removed MJ Core schema (".concat(n,") from ExcludeSchemas list because it is required for the API to function correctly"))}var i="";return t&&t.length>0&&(i="SchemaName IN ("+t.map((function(e){return"'".concat(e,"'")})).join(",")+")"),r&&r.length>0&&(i=(i.length>0?" AND ":"")+"SchemaName NOT IN ("+r.map((function(e){return"'".concat(e,"'")})).join(",")+")"),i.length>0&&(e.push({ItemCode:"Entities",Filter:i}),e.push({ItemCode:"EntityFields",Filter:i})),e}},{key:"GetAllMetadata",value:(F=a(o().mark((function e(r){var n,i,a,u,c,l,p,d,v,m,g=this;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=this.BuildDatasetFilterFromConfig(),e.next=4,this.GetDatasetByName(f._mjMetadataDatasetName,n.length>0?n:null,this.CurrentUser,r);case 4:if(!(i=e.sent)||!i.Success){e.next=36;break}return e.next=8,this.CacheDataset(f._mjMetadataDatasetName,n.length>0?n:null,i);case 8:a={},u=s(i.Results);try{for(u.s();!(c=u.n()).done;)l=c.value,a[l.Code]=l.Results}catch(e){u.e(e)}finally{u.f()}return a.AllEntities=this.PostProcessEntityMetadata(a.Entities,a.EntityFields,a.EntityFieldValues,a.EntityPermissions,a.EntityRelationships,a.EntitySettings),a.AllApplications=a.Applications.map((function(e){return e.ApplicationEntities=a.ApplicationEntities.filter((function(t){return t.ApplicationID===e.ID})),e.ApplicationSettings=a.ApplicationSettings.filter((function(t){return t.ApplicationID===e.ID})),new h.ApplicationInfo(e,g)})),p=new y.AllMetadata,e.next=16,this.GetCurrentUser();case 16:p.CurrentUser=e.sent,d=s(t.AllMetadataArrays),e.prev=18,m=o().mark((function e(){var t,r;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=v.value,r=t.key,a.hasOwnProperty(r)||(r=r.substring(3)),a.hasOwnProperty(r)&&(p[t.key]=a[r].map((function(e){return new t.class(e,g)})));case 4:case"end":return e.stop()}}),e)})),d.s();case 21:if((v=d.n()).done){e.next=25;break}return e.delegateYield(m(),"t0",23);case 23:e.next=21;break;case 25:e.next=30;break;case 27:e.prev=27,e.t1=e.catch(18),d.e(e.t1);case 30:return e.prev=30,d.f(),e.finish(30);case 33:return e.abrupt("return",p);case 36:(0,b.LogError)("GetAllMetadata() - Error getting metadata from server"+(i?": "+i.Status:""));case 37:e.next=42;break;case 39:e.prev=39,e.t2=e.catch(0),(0,b.LogError)(e.t2);case 42:case"end":return e.stop()}}),e,this,[[0,39],[18,27,30,33]])}))),function(e){return F.apply(this,arguments)})},{key:"PostProcessEntityMetadata",value:function(e,t,r,n,o,i){var a=[];if(r&&r.length>0){var u,c=s(t);try{var l=function(){var e=u.value;e.EntityFieldValues=r.filter((function(t){return t.EntityFieldID===e.ID}))};for(c.s();!(u=c.n()).done;)l()}catch(e){c.e(e)}finally{c.f()}}var f,p=s(e);try{var y=function(){var e=f.value;e.EntityFields=t.filter((function(t){return t.EntityID===e.ID})).sort((function(e,t){return e.Sequence-t.Sequence})),e.EntityPermissions=n.filter((function(t){return t.EntityID===e.ID})),e.EntityRelationships=o.filter((function(t){return t.EntityID===e.ID})),e.EntitySettings=i.filter((function(t){return t.EntityID===e.ID})),a.push(new d.EntityInfo(e))};for(p.s();!(f=p.n()).done;)y()}catch(e){p.e(e)}finally{p.f()}return a}},{key:"ConfigData",get:function(){return this._ConfigData}},{key:"Entities",get:function(){return this._localMetadata.AllEntities}},{key:"Applications",get:function(){return this._localMetadata.AllApplications}},{key:"CurrentUser",get:function(){return this._localMetadata.CurrentUser}},{key:"Roles",get:function(){return this._localMetadata.AllRoles}},{key:"RowLevelSecurityFilters",get:function(){return this._localMetadata.AllRowLevelSecurityFilters}},{key:"AuditLogTypes",get:function(){return this._localMetadata.AllAuditLogTypes}},{key:"Authorizations",get:function(){return this._localMetadata.AllAuthorizations}},{key:"Queries",get:function(){return this._localMetadata.AllQueries}},{key:"QueryCategories",get:function(){return this._localMetadata.AllQueryCategories}},{key:"QueryFields",get:function(){return this._localMetadata.AllQueryFields}},{key:"QueryPermissions",get:function(){return this._localMetadata.AllQueryPermissions}},{key:"QueryEntities",get:function(){return this._localMetadata.AllQueryEntities}},{key:"QueryParameters",get:function(){return this._localMetadata.AllQueryParameters}},{key:"Libraries",get:function(){return this._localMetadata.AllLibraries}},{key:"AllExplorerNavigationItems",get:function(){return this._localMetadata.AllExplorerNavigationItems}},{key:"VisibleExplorerNavigationItems",get:function(){return this._cachedVisibleExplorerNavigationItems||(this._cachedVisibleExplorerNavigationItems=this._localMetadata.AllExplorerNavigationItems.filter((function(e){return e.IsActive})).sort((function(e,t){return e.Sequence-t.Sequence}))),this._cachedVisibleExplorerNavigationItems}},{key:"Refresh",value:(R=a(o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.AllowRefresh){e.next=5;break}return this._refresh=!0,e.abrupt("return",this.Config(this._ConfigData,t));case 5:return e.abrupt("return",!0);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return R.apply(this,arguments)})},{key:"CheckToSeeIfRefreshNeeded",value:(T=a(o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.AllowRefresh){e.next=8;break}return e.next=3,this.RefreshRemoteMetadataTimestamps(t);case 3:return e.next=5,this.LoadLocalMetadataFromStorage();case 5:return e.abrupt("return",this.LocalMetadataObsolete());case 8:return e.abrupt("return",!1);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return T.apply(this,arguments)})},{key:"RefreshIfNeeded",value:(L=a(o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.CheckToSeeIfRefreshNeeded(t);case 2:if(!e.sent){e.next=6;break}return e.abrupt("return",this.Refresh(t));case 6:return e.abrupt("return",!0);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return L.apply(this,arguments)})},{key:"GetEntityObject",value:(I=a(o().mark((function e(t,r,n){var i,a,u,c;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r instanceof _.CompositeKey?(i=r,a=n):void 0!==n?(i=void 0,a=n):a=r,!(u=this.Metadata.Entities.find((function(e){return e.Name==t})))){e.next=26;break}return e.prev=4,c=m.MJGlobal.Instance.ClassFactory.CreateInstance(p.BaseEntity,t,u,this),e.next=8,c.Config(a);case 8:if(!i){e.next=16;break}return e.next=11,c.InnerLoad(i);case 11:if(e.sent){e.next=14;break}throw new Error("Failed to load ".concat(t," with key: ").concat(i.ToString()));case 14:e.next=17;break;case 16:c.NewRecord();case 17:return e.abrupt("return",c);case 20:throw e.prev=20,e.t0=e.catch(4),(0,b.LogError)(e.t0),new Error("Entity ".concat(t," 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!"));case 24:e.next=27;break;case 26:throw new Error("Entity ".concat(t," not found in metadata"));case 27:e.next=33;break;case 29:return e.prev=29,e.t1=e.catch(0),(0,b.LogError)(e.t1),e.abrupt("return",null);case 33:case"end":return e.stop()}}),e,this,[[0,29],[4,20]])}))),function(e,t,r){return I.apply(this,arguments)})},{key:"GetEntityDependencies",value:(A=a(o().mark((function e(t){var r,n,i,a,u;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,r=t.trim().toLowerCase(),n=[],i=s(this.Entities),e.prev=4,u=o().mark((function e(){var i;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(i=a.value).Fields.filter((function(e){var t;return(null===(t=e.RelatedEntity)||void 0===t?void 0:t.trim().toLowerCase())===r})).map((function(e){n.push({EntityName:t,RelatedEntityName:i.Name,FieldName:e.Name})}));case 3:case"end":return e.stop()}}),e)})),i.s();case 7:if((a=i.n()).done){e.next=11;break}return e.delegateYield(u(),"t0",9);case 9:e.next=7;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(4),i.e(e.t1);case 16:return e.prev=16,i.f(),e.finish(16);case 19:return e.abrupt("return",n);case 22:throw e.prev=22,e.t2=e.catch(0),(0,b.LogError)(e.t2),e.t2;case 26:case"end":return e.stop()}}),e,this,[[0,22],[4,13,16,19]])}))),function(e){return A.apply(this,arguments)})},{key:"GetAndCacheDatasetByName",value:(k=a(o().mark((function e(t,r,n,i){var a,u;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.IsDatasetCached(t,r);case 2:if(!e.sent){e.next=17;break}return e.next=5,this.IsDatasetCacheUpToDate(t,r);case 5:if(!e.sent){e.next=9;break}return e.abrupt("return",this.GetCachedDataset(t,r));case 9:return e.next=11,this.GetDatasetByName(t,r,n,i);case 11:return a=e.sent,e.next=14,this.CacheDataset(t,r,a);case 14:return e.abrupt("return",a);case 15:e.next=23;break;case 17:return e.next=19,this.GetDatasetByName(t,r,n,i);case 19:return u=e.sent,e.next=22,this.CacheDataset(t,r,u);case 22:return e.abrupt("return",u);case 23:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return k.apply(this,arguments)})},{key:"GetLocalDatasetTimestamp",value:(C=a(o().mark((function e(t,r){var n,i,a,u;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=this.LocalStorageProvider)){e.next=9;break}return i=this.GetDatasetCacheKey(t,r),a=i+"_date",e.next=6,n.GetItem(a);case 6:if(!(u=e.sent)){e.next=9;break}return e.abrupt("return",new Date(u));case 9:case"end":return e.stop()}}),e,this)}))),function(e,t){return C.apply(this,arguments)})},{key:"IsDatasetCacheUpToDate",value:(x=a(o().mark((function e(t,r){var n,i,a,u,c,l,f,p;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.GetLocalDatasetTimestamp(t,r);case 2:if(!(n=e.sent)){e.next=41;break}return e.next=6,this.GetDatasetStatusByName(t,r);case 6:if(!(i=e.sent)){e.next=38;break}if(a=i.LatestUpdateDate.getTime(),!(n.getTime()>=a)){e.next=35;break}return e.next=12,this.GetCachedDataset(t,r);case 12:u=e.sent,c=s(i.EntityUpdateDates),e.prev=14,f=o().mark((function e(){var t,r;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=l.value,(r=u.Results.find((function(e){return e.EntityID===t.EntityID})))&&r.Results.length===t.RowCount){e.next=4;break}return e.abrupt("return",{v:!1});case 4:case"end":return e.stop()}}),e)})),c.s();case 17:if((l=c.n()).done){e.next=24;break}return e.delegateYield(f(),"t0",19);case 19:if(!(p=e.t0)){e.next=22;break}return e.abrupt("return",p.v);case 22:e.next=17;break;case 24:e.next=29;break;case 26:e.prev=26,e.t1=e.catch(14),c.e(e.t1);case 29:return e.prev=29,c.f(),e.finish(29);case 32:return e.abrupt("return",!0);case 35:return e.abrupt("return",!1);case 36:e.next=39;break;case 38:return e.abrupt("return",!1);case 39:e.next=42;break;case 41:return e.abrupt("return",!1);case 42:case"end":return e.stop()}}),e,this,[[14,26,29,32]])}))),function(e,t){return x.apply(this,arguments)})},{key:"GetCachedDataset",value:(j=a(o().mark((function e(t,r){var n,i,a,u;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=this.LocalStorageProvider)){e.next=9;break}return i=this.GetDatasetCacheKey(t,r),e.next=5,n.GetItem(i);case 5:if(!(a=e.sent)){e.next=9;break}return u=JSON.parse(a),e.abrupt("return",u);case 9:case"end":return e.stop()}}),e,this)}))),function(e,t){return j.apply(this,arguments)})},{key:"CacheDataset",value:(O=a(o().mark((function e(t,r,n){var i,a,u,c,s;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(i=this.LocalStorageProvider)){e.next=10;break}return a=this.GetDatasetCacheKey(t,r),u=JSON.stringify(n),e.next=6,i.SetItem(a,u);case 6:return c=a+"_date",s=n.LatestUpdateDate.toISOString(),e.next=10,i.SetItem(c,s);case 10:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return O.apply(this,arguments)})},{key:"IsDatasetCached",value:(w=a(o().mark((function e(t,r){var n,i,a;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=this.LocalStorageProvider)){e.next=7;break}return i=this.GetDatasetCacheKey(t,r),e.next=5,n.GetItem(i);case 5:return a=e.sent,e.abrupt("return",null!=a);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return w.apply(this,arguments)})},{key:"GetDatasetCacheKey",value:function(e,t){return this.LocalStoragePrefix+f.localStorageRootKey+this.InstanceConnectionString+"__DATASET__"+e+this.ConvertItemFiltersToUniqueKey(t)}},{key:"ConvertItemFiltersToUniqueKey",value:function(e){return e?"{"+e.map((function(e){return'"'.concat(e.ItemCode,'":"').concat(e.Filter,'"')})).join(",")+"}":""}},{key:"ClearDatasetCache",value:(g=a(o().mark((function e(t,r){var n,i,a;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=this.LocalStorageProvider)){e.next=8;break}return i=this.GetDatasetCacheKey(t,r),e.next=5,n.Remove(i);case 5:return a=i+"_date",e.next=8,n.Remove(a);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return g.apply(this,arguments)})},{key:"LatestRemoteMetadata",get:function(){return this._latestRemoteMetadataTimestamps}},{key:"LatestLocalMetadata",get:function(){return this._latestLocalMetadataTimestamps}},{key:"GetLatestMetadataUpdates",value:(v=a(o().mark((function e(t){var r,n,i;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.BuildDatasetFilterFromConfig(),e.next=3,this.GetDatasetStatusByName(f._mjMetadataDatasetName,r.length>0?r:null,this.CurrentUser,t);case 3:if(!(n=e.sent)||!n.Success){e.next=8;break}return(i=n.EntityUpdateDates.map((function(e){return{ID:e.EntityID,Type:e.EntityName,UpdatedAt:e.UpdateDate,RowCount:e.RowCount}}))).push({ID:"",Type:"All Entity Metadata",UpdatedAt:n.LatestUpdateDate,RowCount:n.EntityUpdateDates.reduce((function(e,t){return e+t.RowCount}),0)}),e.abrupt("return",i);case 8:case"end":return e.stop()}}),e,this)}))),function(e){return v.apply(this,arguments)})},{key:"RefreshRemoteMetadataTimestamps",value:(l=a(o().mark((function e(t){var r;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.GetLatestMetadataUpdates(t);case 2:if(!(r=e.sent)){e.next=8;break}return this._latestRemoteMetadataTimestamps=r,e.abrupt("return",!0);case 8:return e.abrupt("return",!1);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"LocalMetadataObsolete",value:function(e){var t=this.LatestLocalMetadata,r=this.LatestRemoteMetadata;if(!(t&&r&&t.length&&r.length&&0!==t.length&&0!==r.length))return!0;for(var n,o=function(n){var o=!0;if(e&&e.length>0&&(o=r[n].Type.toLowerCase().trim()===e.trim().toLowerCase()),o){var i=t.find((function(e){return e.Type.trim().toLowerCase()===r[n].Type.trim().toLowerCase()}));if(!i)return{v:!0};if(i.UpdatedAt||r[n].UpdatedAt){if(!i.UpdatedAt||!r[n].UpdatedAt)return{v:!0};var a=new Date(i.UpdatedAt),u=new Date(r[n].UpdatedAt);if(a.getTime()!==u.getTime())return{v:!0};if(i.RowCount!==r[n].RowCount)return{v:!0}}}},i=0;i<r.length;++i)if(n=o(i))return n.v;return!1}},{key:"UpdateLocalMetadata",value:function(e){this._localMetadata=e}},{key:"LoadLocalMetadataFromStorage",value:(c=a(o().mark((function e(){var t,r,n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!(t=this.LocalStorageProvider)){e.next=14;break}return e.t0=JSON,e.next=6,t.GetItem(this.LocalStoragePrefix+f.localStorageTimestampsKey);case 6:return e.t1=e.sent,this._latestLocalMetadataTimestamps=e.t0.parse.call(e.t0,e.t1),e.t2=JSON,e.next=11,t.GetItem(this.LocalStoragePrefix+f.localStorageAllMetadataKey);case 11:e.t3=e.sent,(r=e.t2.parse.call(e.t2,e.t3))&&((0,b.LogStatus)("Metadata loaded from local storage"),n=P(r,this),this.UpdateLocalMetadata(n));case 14:e.next=18;break;case 16:e.prev=16,e.t4=e.catch(0);case 18:case"end":return e.stop()}}),e,this,[[0,16]])}))),function(){return c.apply(this,arguments)})},{key:"LocalStoragePrefix",get:function(){return""}},{key:"SaveLocalMetadataToStorage",value:(i=a(o().mark((function e(){var t;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!(t=this.LocalStorageProvider)){e.next=7;break}return e.next=5,t.SetItem(this.LocalStoragePrefix+f.localStorageTimestampsKey,JSON.stringify(this._latestLocalMetadataTimestamps));case 5:return e.next=7,t.SetItem(this.LocalStoragePrefix+f.localStorageAllMetadataKey,JSON.stringify(this._localMetadata));case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),(0,b.LogError)(e.t0);case 12:case"end":return e.stop()}}),e,this,[[0,9]])}))),function(){return i.apply(this,arguments)})},{key:"RemoveLocalMetadataFromStorage",value:(n=a(o().mark((function e(){var t,r;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,t=this.LocalStorageProvider,r=0;case 3:if(!(r<f.localStorageKeys.length)){e.next=9;break}return e.next=6,t.Remove(this.LocalStoragePrefix+f.localStorageKeys[r]);case 6:r++,e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(0),(0,b.LogError)(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])}))),function(){return n.apply(this,arguments)})}],r&&u(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n,i,c,l,v,g,w,O,j,x,C,k,A,I,L,T,R,F,N,M,D,U,V,G,B}();t.ProviderBase=j,f=j,j._mjMetadataDatasetName="MJ_Metadata",j.localStorageRootKey="___MJCore_Metadata",j.localStorageTimestampsKey=f.localStorageRootKey+"_Timestamps",j.localStorageAllMetadataKey=f.localStorageRootKey+"_AllMetadata",j.localStorageKeys=[f.localStorageTimestampsKey,f.localStorageAllMetadataKey]},1446:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function u(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function s(e,t,r){return t=f(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,r||[],f(e).constructor):t.apply(e,r))}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.QueryParameterInfo=t.QueryEntityInfo=t.QueryPermissionInfo=t.QueryFieldInfo=t.QueryCategoryInfo=t.QueryInfo=void 0;var y=r(5485),h=r(5949),v=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(i(this,t),(e=s(this,t)).ID=null,e.Name=null,e.Description=null,e.CategoryID=null,e.SQL=null,e.OriginalSQL=null,e.Feedback=null,e.Status=null,e.QualityRank=null,e.UsesTemplate=!1,e.AuditQueryRuns=!1,e.CacheEnabled=!1,e.CacheTTLMinutes=null,e.CacheMaxSize=null,e.__mj_CreatedAt=null,e.__mj_UpdatedAt=null,e.EmbeddingVector=null,e.EmbeddingModelID=null,e.Category=null,e.EmbeddingModel=null,e._categoryPath=null,e._cacheConfig=null,e._fields=null,e._parameters=null,e._entities=null,r){e.copyInitData(r);var n=r.Fields||r._Fields;if(n){e._fields=[];for(var o=0;o<n.length;o++)e._fields.push(new b(n))}}return e}return p(t,e),u(t,[{key:"CategoryPath",get:function(){return null===this._categoryPath&&(this._categoryPath=this.buildCategoryPath()),this._categoryPath}},{key:"CacheConfig",get:function(){if(null!==this._cacheConfig)return this._cacheConfig;if(this.CacheEnabled)return this._cacheConfig={enabled:!0,ttlMinutes:this.CacheTTLMinutes||60,maxCacheSize:this.CacheMaxSize||void 0,cacheKey:"exact"},this._cacheConfig;if(this.CategoryInfo){var e=this.getInheritedCacheConfig();if(e)return this._cacheConfig=e,this._cacheConfig}return this._cacheConfig={enabled:!1,ttlMinutes:0},this._cacheConfig}},{key:"getInheritedCacheConfig",value:function(){for(var e=this.CategoryInfo;e;){if(e.DefaultCacheEnabled&&e.CacheInheritanceEnabled)return{enabled:!0,ttlMinutes:e.DefaultCacheTTLMinutes||60,maxCacheSize:e.DefaultCacheMaxSize||void 0,cacheKey:"exact",inheritFromCategory:!0};e=e.ParentCategoryInfo}return null}},{key:"Fields",get:function(){var e=this;return null===this._fields&&(this._fields=h.Metadata.Provider.QueryFields.filter((function(t){return t.QueryID===e.ID}))),this._fields}},{key:"Permissions",get:function(){var e=this;return h.Metadata.Provider.QueryPermissions.filter((function(t){return t.QueryID===e.ID}))}},{key:"Parameters",get:function(){var e=this;return null===this._parameters&&(this._parameters=h.Metadata.Provider.QueryParameters.filter((function(t){return t.QueryID===e.ID}))),this._parameters}},{key:"Entities",get:function(){var e=this;return null===this._entities&&(this._entities=h.Metadata.Provider.QueryEntities.filter((function(t){return t.QueryID===e.ID}))),this._entities}},{key:"CategoryInfo",get:function(){var e=this;return h.Metadata.Provider.QueryCategories.find((function(t){return t.ID===e.CategoryID}))}},{key:"buildCategoryPath",value:function(){if(!this.CategoryID)return"";for(var e=[],t=this.CategoryInfo;t;)e.unshift(t.Name),t=t.ParentCategoryInfo;return e.length>0?"/".concat(e.join("/"),"/"):""}},{key:"UserHasRunPermissions",value:function(e){var t=this.Permissions;if(!t||0===t.length)return!0;if(e&&e.UserRoles){var r,n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,a=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw a}}}}(e.UserRoles);try{var i,a=function(){var e=r.value;if(t.some((function(t){return t.Role.trim().toLowerCase()===e.Role.trim().toLowerCase()})))return{v:!0}};for(n.s();!(r=n.n()).done;)if(i=a())return i.v}catch(e){n.e(e)}finally{n.f()}}return!1}},{key:"UserCanRun",value:function(e){return!!this.UserHasRunPermissions(e)&&"Approved"===this.Status}}])}(y.BaseInfo);t.QueryInfo=v;var m=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return i(this,t),(e=s(this,t)).ID=null,e.Name=null,e.ParentID=null,e.Description=null,e.DefaultCacheEnabled=!1,e.DefaultCacheTTLMinutes=null,e.DefaultCacheMaxSize=null,e.CacheInheritanceEnabled=!0,e.__mj_CreatedAt=null,e.__mj_UpdatedAt=null,e.Parent=null,r&&e.copyInitData(r),e}return p(t,e),u(t,[{key:"ParentCategoryInfo",get:function(){var e=this;return h.Metadata.Provider.QueryCategories.find((function(t){return t.ID===e.ParentID}))}},{key:"Queries",get:function(){var e=this;return h.Metadata.Provider.Queries.filter((function(t){return t.CategoryID===e.ID}))}}])}(y.BaseInfo);t.QueryCategoryInfo=m;var b=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return i(this,t),(e=s(this,t)).Name=null,e.QueryID=null,e.Description=null,e.Sequence=null,e.SQLBaseType=null,e.SQLFullType=null,e.SourceEntityID=null,e.SourceFieldName=null,e.IsComputed=null,e.ComputationDescription=null,e.IsSummary=null,e.SummaryDescription=null,e.__mj_CreatedAt=null,e.__mj_UpdatedAt=null,e.DetectionMethod="Manual",e.AutoDetectConfidenceScore=null,e.SourceEntity=null,r&&e.copyInitData(r),e}return p(t,e),u(t,[{key:"SourceEntityInfo",get:function(){var e=this;return h.Metadata.Provider.Entities.find((function(t){return t.ID===e.SourceEntityID}))}},{key:"QueryInfo",get:function(){var e=this;return h.Metadata.Provider.Queries.find((function(t){return t.ID===e.ID}))}}])}(y.BaseInfo);t.QueryFieldInfo=b;var g=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return i(this,t),(e=s(this,t)).QueryID=null,e.RoleID=null,e.Role=null,e.Query=null,r&&e.copyInitData(r),e}return p(t,e),u(t,[{key:"QueryInfo",get:function(){var e=this;return h.Metadata.Provider.Queries.find((function(t){return t.ID===e.QueryID}))}}])}(y.BaseInfo);t.QueryPermissionInfo=g;var w=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return i(this,t),(e=s(this,t)).QueryID=null,e.EntityID=null,e.DetectionMethod="Manual",e.AutoDetectConfidenceScore=null,e.__mj_CreatedAt=null,e.__mj_UpdatedAt=null,e.Query=null,e.Entity=null,r&&e.copyInitData(r),e}return p(t,e),u(t,[{key:"QueryInfo",get:function(){var e=this;return h.Metadata.Provider.Queries.find((function(t){return t.ID===e.QueryID}))}},{key:"EntityInfo",get:function(){var e=this;return h.Metadata.Provider.Entities.find((function(t){return t.ID===e.EntityID}))}}])}(y.BaseInfo);t.QueryEntityInfo=w;var _=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return i(this,t),(e=s(this,t)).QueryID=null,e.Name=null,e.Type=null,e.IsRequired=!1,e.DefaultValue=null,e.Description=null,e.SampleValue=null,e.ValidationFilters=null,e.DetectionMethod="Manual",e.AutoDetectConfidenceScore=null,e.__mj_CreatedAt=null,e.__mj_UpdatedAt=null,e.Query=null,r&&e.copyInitData(r),e}return p(t,e),u(t,[{key:"QueryInfo",get:function(){var e=this;return h.Metadata.Provider.Queries.find((function(t){return t.ID===e.QueryID}))}},{key:"ParsedFilters",get:function(){try{return this.ValidationFilters?JSON.parse(this.ValidationFilters):[]}catch(e){return[]}}}])}(y.BaseInfo);t.QueryParameterInfo=_},2169:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRunQuerySQLFilterNames=t.getRunQuerySQLFilter=t.RUN_QUERY_SQL_FILTERS=void 0,t.RUN_QUERY_SQL_FILTERS=[{name:"sqlString",description:"Safely escapes a string value for SQL queries by doubling single quotes and wrapping in quotes",exampleSyntax:"WHERE Name = {{ userName | sqlString }}",exampleInput:"O'Brien",exampleOutput:"'O''Brien'",notes:"Returns NULL for null/undefined values. Always use this filter for string parameters in WHERE clauses."},{name:"sqlNumber",description:"Validates and formats a numeric value for SQL queries",exampleSyntax:"WHERE Age > {{ minAge | sqlNumber }}",exampleInput:"25",exampleOutput:"25",notes:"Throws an error if the value cannot be converted to a valid number. Handles both integers and decimals."},{name:"sqlDate",description:"Formats a date value for SQL queries in ISO 8601 format",exampleSyntax:"WHERE CreatedDate >= {{ startDate | sqlDate }}",exampleInput:new Date("2024-01-15"),exampleOutput:"'2024-01-15T00:00:00.000Z'",notes:"Accepts Date objects or parseable date strings. Returns NULL for null/undefined values."},{name:"sqlBoolean",description:"Converts a boolean value to SQL bit representation (1 or 0)",exampleSyntax:"WHERE IsActive = {{ isActive | sqlBoolean }}",exampleInput:!0,exampleOutput:"1",notes:"Truthy values become 1, falsy values become 0. Useful for SQL Server bit columns."},{name:"sqlIdentifier",description:"Safely formats a SQL identifier (table/column name) by wrapping in square brackets",exampleSyntax:"SELECT * FROM {{ tableName | sqlIdentifier }}",exampleInput:"UserAccounts",exampleOutput:"[UserAccounts]",notes:"Only allows alphanumeric characters and underscores. Throws error for invalid identifiers to prevent SQL injection."},{name:"sqlIn",description:"Formats an array of values for use with SQL IN operator",exampleSyntax:"WHERE Status IN {{ statusList | sqlIn }}",exampleInput:["Active","Pending","Review"],exampleOutput:"('Active', 'Pending', 'Review')",notes:"Automatically escapes string values. Returns (NULL) for empty arrays which will match no records. Supports mixed types (strings, numbers, nulls)."},{name:"sqlNoKeywordsExpression",description:"Validates and formats a SQL expression by ensuring it contains no dangerous keywords",exampleSyntax:"ORDER BY {{ orderClause | sqlNoKeywordsExpression }}",exampleInput:"Revenue DESC, CreatedDate ASC",exampleOutput:"Revenue DESC, CreatedDate ASC",notes:"Blocks dangerous SQL keywords like DROP, DELETE, INSERT, UPDATE, EXEC, etc. Allows field names, ASC/DESC, basic functions, and arithmetic operators. Throws error if dangerous keywords detected."}],t.getRunQuerySQLFilter=function(e){return t.RUN_QUERY_SQL_FILTERS.find((function(t){return t.name===e}))},t.getRunQuerySQLFilterNames=function(){return t.RUN_QUERY_SQL_FILTERS.map((function(e){return e.name}))}},2659:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return t};var e,t={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),u=new L(n||[]);return a(i,"_invoke",{value:C(e,r,u)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var y="suspendedStart",h="suspendedYield",v="executing",m="completed",b={};function g(){}function w(){}function _(){}var O={};f(O,c,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(T([])));E&&E!==r&&i.call(E,c)&&(O=E);var P=_.prototype=g.prototype=Object.create(O);function j(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function r(o,a,u,c){var s=d(e[o],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&i.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,u,c)}),(function(e){r("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return r("throw",e,u,c)}))}c(s.arg)}var o;a(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function C(t,r,n){var o=y;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=k(u,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=d(t,r,n);if("normal"===s.type){if(o=n.done?m:h,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function T(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(i.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(n(t)+" is not iterable")}return w.prototype=_,a(P,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:w,configurable:!0}),w.displayName=f(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,f(e,l,"GeneratorFunction")),e.prototype=Object.create(P),e},t.awrap=function(e){return{__await:e}},j(x.prototype),f(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(p(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},j(P),f(P,l,"Generator"),f(P,c,(function(){return this})),f(P,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=T,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),s=i.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}function i(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function u(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}Object.defineProperty(t,"__esModule",{value:!0}),t.RunQuery=void 0;var c=r(5120),s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._provider=t}return t=e,r=[{key:"ProviderToUse",get:function(){return this._provider||e.Provider}},{key:"RunQuery",value:(u=o().mark((function e(t,r){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.ProviderToUse.RunQuery(t,r));case 1:case"end":return e.stop()}}),e,this)})),s=function(){var e=this,t=arguments;return new Promise((function(r,n){var o=u.apply(e,t);function a(e){i(o,r,n,a,c,"next",e)}function c(e){i(o,r,n,a,c,"throw",e)}a(void 0)}))},function(e,t){return s.apply(this,arguments)})}],n=[{key:"Provider",get:function(){var t=c.MJGlobal.Instance.GetGlobalObjectStore();if(t)return t[e._globalProviderKey];throw new Error("No global object store, so we cant get the static provider")},set:function(t){var r=c.MJGlobal.Instance.GetGlobalObjectStore();if(!r)throw new Error("No global object store, so we cant set the static provider");r[e._globalProviderKey]=t}}],r&&a(t.prototype,r),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n,u,s}();t.RunQuery=s,s._globalProviderKey="MJ_RunQueryProvider"},1754:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return(t=c(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}Object.defineProperty(t,"__esModule",{value:!0}),t.RunQuerySQLFilterManager=t.RUN_QUERY_SQL_FILTERS_WITH_IMPLEMENTATIONS=void 0;var l=r(2169),f=["DROP","CREATE","ALTER","TRUNCATE","RENAME","INSERT","UPDATE","DELETE","MERGE","REPLACE","GRANT","REVOKE","DENY","EXEC","EXECUTE","CALL","PROCEDURE","FUNCTION","BEGIN","COMMIT","ROLLBACK","SAVEPOINT","USE","DATABASE","SCHEMA","IF","WHILE","LOOP","FOR","GOTO","SYSTEM","ADMIN","USER","SESSION","GLOBAL","SHOW","DESCRIBE","EXPLAIN","UNION","INTERSECT","EXCEPT","EXISTS","ANY","ALL","SOME","--","/*","*/","CHAR","ASCII","UNICODE","BULK","OPENROWSET","OPENDATASOURCE","OPENQUERY","DYNAMIC","PREPARE","DEALLOCATE","WAITFOR","DELAY","SLEEP"],p=["ASC","ASCENDING","DESC","DESCENDING","COUNT","SUM","AVG","MIN","MAX","ABS","CEILING","FLOOR","ROUND","SQRT","LEN","LENGTH","UPPER","LOWER","LTRIM","RTRIM","TRIM","YEAR","MONTH","DAY","DATEPART","DATEDIFF","CASE","WHEN","THEN","ELSE","END","AND","OR","NOT","IS","NULL","LIKE","BETWEEN","IN"],d={sqlString:function(e){return null==e?"NULL":"'".concat(String(e).replace(/'/g,"''"),"'")},sqlNumber:function(e){var t=Number(e);if(isNaN(t))throw new Error("Invalid number: ".concat(e));return t},sqlDate:function(e){if(!e)return"NULL";var t=e instanceof Date?e:new Date(e);if(isNaN(t.getTime()))throw new Error("Invalid date: ".concat(e));return"'".concat(t.toISOString(),"'")},sqlBoolean:function(e){return e?"1":"0"},sqlIdentifier:function(e){if(!e)throw new Error("Identifier cannot be empty");var t=String(e);if(!/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(t))throw new Error("Invalid SQL identifier: ".concat(t));return"[".concat(t,"]")},sqlIn:function(e){if(!Array.isArray(e)||0===e.length)return"(NULL)";var t=e.map((function(e){return"string"==typeof e?"'".concat(e.replace(/'/g,"''"),"'"):"number"==typeof e?e:null==e?"NULL":"'".concat(String(e).replace(/'/g,"''"),"'")}));return"(".concat(t.join(", "),")")},sqlNoKeywordsExpression:function(e){if(!e)throw new Error("SQL expression cannot be empty");var t=String(e).trim();if(!t)throw new Error("SQL expression cannot be empty");for(var r=t.toUpperCase(),n=0,o=f;n<o.length;n++){var i=o[n];if(new RegExp("\\b".concat(i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"\\b"),"i").test(r))throw new Error("Dangerous SQL keyword detected: ".concat(i))}var a,u=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return s(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}(t.match(/\b[A-Za-z_][A-Za-z0-9_]*\b/g)||[]);try{for(u.s();!(a=u.n()).done;){var c=a.value,l=c.toUpperCase(),d=f.includes(l)||p.includes(l),y=p.includes(l);if(d&&!y)throw new Error("SQL keyword '".concat(c,"' is not allowed in expressions"))}}catch(e){u.e(e)}finally{u.f()}if(r.includes("--")||r.includes("/*")||r.includes("*/"))throw new Error("Comments are not allowed in SQL expressions");if(r.includes(";"))throw new Error("Semicolons are not allowed in SQL expressions");if(r.includes("()")&&!r.match(/\b(COUNT|SUM|AVG|MIN|MAX|ABS|CEILING|FLOOR|ROUND|SQRT|LEN|LENGTH|UPPER|LOWER|TRIM|YEAR|MONTH|DAY)\s*\(/i))throw new Error("Function calls with empty parentheses are not allowed");return t}};t.RUN_QUERY_SQL_FILTERS_WITH_IMPLEMENTATIONS=l.RUN_QUERY_SQL_FILTERS.map((function(e){return a(a({},e),{},{implementation:d[e.name]})}));var y=function(){function e(){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._filters=new Map,t.RUN_QUERY_SQL_FILTERS_WITH_IMPLEMENTATIONS.forEach((function(e){e.implementation&&r._filters.set(e.name,e)}))}return r=e,i=[{key:"Instance",get:function(){return this._instance||(this._instance=new e),this._instance}}],(n=[{key:"getFilter",value:function(e){return this._filters.get(e)}},{key:"getFilterNames",value:function(){return Array.from(this._filters.keys())}},{key:"getAllFilters",value:function(){return Array.from(this._filters.values())}},{key:"executeFilter",value:function(e,t){var r=this._filters.get(e);if(!r||!r.implementation)throw new Error("Filter '".concat(e,"' not found or has no implementation"));return r.implementation(t)}}])&&o(r.prototype,n),i&&o(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();t.RunQuerySQLFilterManager=y},4789:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return t};var e,t={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),u=new L(n||[]);return a(i,"_invoke",{value:C(e,r,u)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var y="suspendedStart",h="suspendedYield",v="executing",m="completed",b={};function g(){}function w(){}function _(){}var O={};f(O,c,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(T([])));E&&E!==r&&i.call(E,c)&&(O=E);var P=_.prototype=g.prototype=Object.create(O);function j(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function r(o,a,u,c){var s=d(e[o],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&i.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,u,c)}),(function(e){r("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return r("throw",e,u,c)}))}c(s.arg)}var o;a(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function C(t,r,n){var o=y;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=k(u,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=d(t,r,n);if("normal"===s.type){if(o=n.done?m:h,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function T(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(i.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(n(t)+" is not iterable")}return w.prototype=_,a(P,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:w,configurable:!0}),w.displayName=f(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,f(e,l,"GeneratorFunction")),e.prototype=Object.create(P),e},t.awrap=function(e){return{__await:e}},j(x.prototype),f(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(p(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},j(P),f(P,l,"Generator"),f(P,c,(function(){return this})),f(P,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=T,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),s=i.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}function i(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function u(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}Object.defineProperty(t,"__esModule",{value:!0}),t.RunReport=void 0;var c=r(5120),s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._provider=t}return t=e,r=[{key:"ProviderToUse",get:function(){return this._provider||e.Provider}},{key:"RunReport",value:(u=o().mark((function e(t,r){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.ProviderToUse.RunReport(t,r));case 1:case"end":return e.stop()}}),e,this)})),s=function(){var e=this,t=arguments;return new Promise((function(r,n){var o=u.apply(e,t);function a(e){i(o,r,n,a,c,"next",e)}function c(e){i(o,r,n,a,c,"throw",e)}a(void 0)}))},function(e,t){return s.apply(this,arguments)})}],n=[{key:"Provider",get:function(){var t=c.MJGlobal.Instance.GetGlobalObjectStore();if(t)return t[e._globalProviderKey];throw new Error("No global object store, so we cant get the static provider")},set:function(t){var r=c.MJGlobal.Instance.GetGlobalObjectStore();if(!r)throw new Error("No global object store, so we cant set the static provider");r[e._globalProviderKey]=t}}],r&&a(t.prototype,r),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n,u,s}();t.RunReport=s,s._globalProviderKey="MJ_RunReportProvider"},4922:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function a(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function c(e,t,r){return t=l(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,r||[],l(e).constructor):t.apply(e,r))}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.AuditLogTypeInfo=t.AuthorizationRoleInfo=t.AuthorizationRoleType=t.AuthorizationInfo=t.RowLevelSecurityFilterInfo=t.RoleInfo=t.UserRoleInfo=t.UserInfo=void 0;var d=r(5485),y=function(e){function t(){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o(this,t),(e=c(this,t)).ID=null,e.Name=null,e.FirstName=null,e.LastName=null,e.Title=null,e.Email=null,e.Type=null,e.IsActive=null,e.LinkedRecordType=null,e.EmployeeID=null,e.LinkedEntityID=null,e.LinkedEntityRecordID=null,e.__mj_CreatedAt=null,e.__mj_UpdatedAt=null,e.FirstLast=null,e.EmployeeFirstLast=null,e.EmployeeEmail=null,e.EmployeeTitle=null,e.EmployeeSupervisor=null,e.EmployeeSupervisorEmail=null,e._UserRoles=[],e.copyInitData(r),r&&(e._UserRoles=r.UserRoles||r._UserRoles),e}return f(t,e),a(t,[{key:"UserRoles",get:function(){return this._UserRoles}}])}(d.BaseInfo);t.UserInfo=y;var h=function(e){function t(e){var r;return o(this,t),(r=c(this,t)).UserID=null,r.RoleID=null,r.__mj_CreatedAt=null,r.__mj_UpdatedAt=null,r.User=null,r.Role=null,r.copyInitData(e),r}return f(t,e),a(t)}(d.BaseInfo);t.UserRoleInfo=h;var v=function(e){function t(e){var r;return o(this,t),(r=c(this,t)).ID=null,r.Name=null,r.Description=null,r.DirectoryID=null,r.SQLName=null,r.__mj_CreatedAt=null,r.__mj_UpdatedAt=null,r.copyInitData(e),r}return f(t,e),a(t)}(d.BaseInfo);t.RoleInfo=v;var m=function(e){function t(e){var r;return o(this,t),(r=c(this,t)).ID=null,r.Name=null,r.Description=null,r.FilterText=null,r.__mj_CreatedAt=null,r.__mj_UpdatedAt=null,r.copyInitData(e),r}return f(t,e),a(t,[{key:"MarkupFilterText",value:function(e){var t=this.FilterText;if(e)for(var r=Object.keys(e),n=0;n<r.length;n++){var o=r[n],i=e[o];i&&"string"==typeof i&&(t=t.replace(new RegExp("{{User".concat(o,"}}"),"g"),i))}return t}}])}(d.BaseInfo);t.RowLevelSecurityFilterInfo=m;var b=function(e){function t(e){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o(this,t),(r=c(this,t)).ID=null,r.ParentID=null,r.Name=null,r.IsActive=null,r.UseAuditLog=null,r.Description=null,r.__mj_CreatedAt=null,r.__mj_UpdatedAt=null,r._AuthorizationRoles=[],r.copyInitData(n),n&&r.SetupAuthorizationRoles(e,n.AuthorizationRoles||n._AuthorizationRoles),r}return f(t,e),a(t,[{key:"Roles",get:function(){return this._AuthorizationRoles}},{key:"SetupAuthorizationRoles",value:function(e,t){var r=this;if(t){var n=e.Roles;this._AuthorizationRoles=[];for(var o=function(){var e=new g(t[i]);r._AuthorizationRoles.push(e);var o=n.find((function(t){return t.ID===e.RoleID}));o&&e._setRole(o)},i=0;i<t.length;i++)o()}}},{key:"UserCanExecute",value:function(e){var t=this;if(this.IsActive&&e&&e.UserRoles)for(var r,n=function(r){if(t.Roles.find((function(t){return t.ID===e.UserRoles[r].RoleID})))return{v:!0}},o=0;o<e.UserRoles.length;o++)if(r=n(o))return r.v;return!1}},{key:"RoleCanExecute",value:function(e){return!!this.IsActive&&null!=this.Roles.find((function(t){return t.ID===e.ID}))}}])}(d.BaseInfo);t.AuthorizationInfo=b,t.AuthorizationRoleType={Allow:"Allow",Deny:"Deny"};var g=function(e){function r(e){var t;return o(this,r),(t=c(this,r)).ID=null,t.AuthorizationID=null,t.RoleID=null,t.Type=null,t.__mj_CreatedAt=null,t.__mj_UpdatedAt=null,t._RoleInfo=null,t.copyInitData(e),t}return f(r,e),a(r,[{key:"RoleInfo",get:function(){return this._RoleInfo}},{key:"AuthorizationType",value:function(){return"allow"===this.Type.trim().toLowerCase()?t.AuthorizationRoleType.Allow:t.AuthorizationRoleType.Deny}},{key:"_setRole",value:function(e){this._RoleInfo=e}}])}(d.BaseInfo);t.AuthorizationRoleInfo=g;var w=function(e){function t(e){var r;return o(this,t),(r=c(this,t)).ID=null,r.ParentID=null,r.Name=null,r.Description=null,r.AuthorizationName=null,r.__mj_CreatedAt=null,r.__mj_UpdatedAt=null,r.copyInitData(e),r}return f(t,e),a(t)}(d.BaseInfo);t.AuditLogTypeInfo=w},103:(e,t,r)=>{"use strict";function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,a=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(){i=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),u=new L(n||[]);return o(a,"_invoke",{value:C(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var y="suspendedStart",h="suspendedYield",v="executing",m="completed",b={};function g(){}function w(){}function _(){}var O={};f(O,u,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(T([])));E&&E!==r&&n.call(E,u)&&(O=E);var P=_.prototype=g.prototype=Object.create(O);function j(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function r(o,i,a,u){var s=d(e[o],e,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==c(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function C(t,r,n){var o=y;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=k(u,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=d(t,r,n);if("normal"===s.type){if(o=n.done?m:h,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function T(t){if(t||""===t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(c(t)+" is not iterable")}return w.prototype=_,o(P,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:w,configurable:!0}),w.displayName=f(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,f(e,l,"GeneratorFunction")),e.prototype=Object.create(P),e},t.awrap=function(e){return{__await:e}},j(x.prototype),f(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(p(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},j(P),f(P,l,"Generator"),f(P,u,(function(){return this})),f(P,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=T,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}function a(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function u(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function u(e){a(i,n,o,u,c,"next",e)}function c(e){a(i,n,o,u,c,"throw",e)}u(void 0)}))}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,p(n.key),n)}}function f(e,t,r){return t&&l(e.prototype,t),r&&l(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function p(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionGroupBase=t.TransactionVariable=t.TransactionPreprocessingItem=t.TransactionResult=t.TransactionItem=void 0;var d=r(4802),y=r(4423),h=function(){return f((function e(t,r,n,o,i,a){s(this,e),this._operationType=r,this._baseEntity=t,this._instruction=n,this._vars=o,this._extraData=i,this._callBack=a}),[{key:"Vars",get:function(){return this._vars}},{key:"ExtraData",get:function(){return this._extraData}},{key:"Instruction",get:function(){return this._instruction},set:function(e){this._instruction=e}},{key:"CallBack",get:function(){return this._callBack}},{key:"BaseEntity",get:function(){return this._baseEntity}},{key:"OperationType",get:function(){return this._operationType}}])}();t.TransactionItem=h;var v=f((function e(t,r,n){s(this,e),this.Transaction=t,this.Result=r,this.Success=n}));t.TransactionResult=v;var m=f((function e(t,r){s(this,e),this.complete=!1,this.entity=t,this.completionPromise=r}));t.TransactionPreprocessingItem=m;var b=function(){return f((function e(t,r,n,o){s(this,e),this._isProcessed=!1,this._name=t,this._entityObject=r,this._fieldName=n,this._type=o}),[{key:"Name",get:function(){return this._name}},{key:"EntityObject",get:function(){return this._entityObject}},{key:"FieldName",get:function(){return this._fieldName}},{key:"Type",get:function(){return this._type}},{key:"IsProcessed",get:function(){return this._isProcessed}},{key:"ProcessedValue",get:function(){return this._processedValue},set:function(e){this._processedValue=e,this._isProcessed=!0}}])}();t.TransactionVariable=b;var g=function(){return f((function e(){s(this,e),this._pendingTransactions=[],this._variables=[],this._status="Pending",this.transactionNotifier=new d.Subject,this._preprocessingItems=[]}),[{key:"PendingTransactions",get:function(){return this._pendingTransactions}},{key:"Status",get:function(){return this._status}},{key:"Variables",get:function(){return this._variables}},{key:"AddVariable",value:function(e){this._variables.push(e)}},{key:"TransactionNotifications$",get:function(){return this.transactionNotifier.asObservable()}},{key:"NotifyTransactionStatus",value:function(e,t,r){this.transactionNotifier.next({success:e,results:t,error:r})}},{key:"RegisterPreprocessing",value:function(e){var t=this;if(!this._preprocessingItems.find((function(t){return t.entity===e}))){var r=new Promise((function(r){e.RegisterEventHandler((function(n){if("transaction_ready"===n.type&&n.baseEntity===e){var o=t._preprocessingItems.find((function(t){return t.entity===e}));o&&(o.complete=!0,r())}}))})),n=new m(e,r);this._preprocessingItems.push(n)}}},{key:"PreprocessingComplete",value:function(){return 0===this._preprocessingItems.length||this._preprocessingItems.every((function(e){return e.complete}))}},{key:"waitForPreprocessing",value:(t=u(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Promise.all(this._preprocessingItems.map((function(e){return e.completionPromise})));case 3:this._preprocessingItems=[],e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),(0,y.LogError)("Error during preprocessing TransactionGroupBase. Error: ".concat(e.t0.message));case 9:case"end":return e.stop()}}),e,this,[[0,6]])}))),function(){return t.apply(this,arguments)})},{key:"AddTransaction",value:function(e){this._pendingTransactions.push(e)}},{key:"MapVariableEntityObjectToPosition",value:function(e){return this._pendingTransactions.findIndex((function(t){return t.BaseEntity===e.EntityObject}))}},{key:"Submit",value:(e=u(i().mark((function e(){var t,r,n,o,a,u=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=u.length>0&&void 0!==u[0]&&u[0],"Complete"!==this.Status){e.next=5;break}throw new Error("TransactionGroup has already been completed");case 5:if("In Progress"!==this.Status){e.next=9;break}throw new Error("TransactionGroup is already in progress");case 9:if("Failed"!==this.Status){e.next=15;break}if(t){e.next=14;break}throw new Error("TransactionGroup has failed and cannot be resubmitted unless allowRetryOfFailedTransaction is set to true");case 14:(0,y.LogStatus)("TransactionGroupBase.Submit","TransactionGroup is in a failed state, resubmitting");case 15:return this._status="In Progress",e.prev=16,e.next=19,this.waitForPreprocessing();case 19:if(!(this._pendingTransactions.length>0)){e.next=36;break}return e.next=22,this.HandleSubmit();case 22:r=e.sent,n=0;case 24:if(!(n<r.length)){e.next=30;break}return e.next=27,r[n].Transaction.CallBack(r[n].Result,r[n].Success);case 27:n++,e.next=24;break;case 30:return o=r.every((function(e){return e.Success})),this.NotifyTransactionStatus(o,r),this._status=o?"Complete":"Failed",e.abrupt("return",o);case 36:return(0,y.LogStatus)("No transactions to submit, switching status back to Pending"),this._status="Pending",e.abrupt("return",!0);case 39:e.next=54;break;case 41:e.prev=41,e.t0=e.catch(16),console.error(e.t0),a=0;case 45:if(!(a<this._pendingTransactions.length)){e.next=51;break}return e.next=48,this._pendingTransactions[a].CallBack(e.t0,!1);case 48:a++,e.next=45;break;case 51:return this.NotifyTransactionStatus(!1,void 0,e.t0),this._status="Failed",e.abrupt("return",!1);case 54:case"end":return e.stop()}}),e,this,[[16,41]])}))),function(){return e.apply(this,arguments)})},{key:"SetEntityValuesFromVariables",value:function(e){var t,r=this,o=0,i=n(this.Variables.filter((function(t){return t.EntityObject===e})));try{var a=function(){var n=t.value;if("Use"===n.Type){var i=r.Variables.find((function(e){return e.Name.trim().toLowerCase()===n.Name.trim().toLowerCase()&&"Define"===e.Type}));if(!i)throw new Error("Unable to find variable definition for variable ".concat(n.Name,", can't continue with transaction"));if(!i.IsProcessed)throw new Error("Variable ".concat(n.Name," was never processed, can't continue with transaction"));var a=i.ProcessedValue;e.Set(n.FieldName,a),o++}};for(i.s();!(t=i.n()).done;)a()}catch(e){i.e(e)}finally{i.f()}return o}},{key:"SetVariableValuesFromEntity",value:function(e,t){var r,o=0,i=n(this.Variables.filter((function(t){return t.EntityObject===e})));try{for(i.s();!(r=i.n()).done;){var a=r.value;if("Define"===a.Type){var u=t[a.FieldName];a.ProcessedValue=u,o++}}}catch(e){i.e(e)}finally{i.f()}return o}}]);var e,t}();t.TransactionGroupBase=g},2584:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StripContainingParens=t.StripSingleQuotes=t.StripUnicodePrefix=t.ExtractActualDefaultValue=t.Concurrent=t.CodeNameFromString=t.StripStopWords=t.CommonStopWords=t.SQLMaxLength=t.SQLFullType=t.FormatValue=t.TypeScriptTypeFromSQLTypeWithNullableOption=t.TypeScriptTypeFromSQLType=void 0;var n=r(4423);function o(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.TypeScriptTypeFromSQLType=o,t.TypeScriptTypeFromSQLTypeWithNullableOption=function(e,t){var r=o(e);return t?r+" | null":r},t.FormatValue=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"USD",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"...";try{var u=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"USD";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"time":case"datetime":case"datetime2":case"datetimeoffset":var o=new Date(t);return(new Intl.DateTimeFormat).format(o);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,o,i,a);return i>0&&u&&u.length>i?u.substring(0,i)+a:u}catch(i){return(0,n.LogError)("Error formatting value ".concat(t," of type ").concat(e," with decimals ").concat(r," and currency ").concat(o),i),t}},t.SQLFullType=function(e,t,r,n){var o=e.trim().toLowerCase(),i=o;return"varchar"===o?i+="(".concat(t>0?t:"MAX",")"):"nvarchar"===o?i+="(".concat(t>0?t/2:"MAX",")"):"char"===o?i+="(".concat(t,")"):"nchar"===o?i+="(".concat(t/2,")"):"decimal"===o||"numeric"===o?i+="(".concat(r,", ").concat(n,")"):"float"===o&&(i+="(".concat(r,")")),i},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}};var 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"];function a(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}function u(e){if(!e)return e;var t=e.trim();return t.startsWith("'")&&t.endsWith("'")?t.substring(1,t.length-1):t}function c(e){return e.startsWith("(")&&e.endsWith(")")?c(e.substring(1,e.length-1)):e}t.CommonStopWords=function(){return i},t.StripStopWords=function(e){var t=new RegExp("\\b(".concat(i.join("|"),")\\b"),"gi"),r=e.replace(t,"");return r.replace(/ +/g," ")},t.CodeNameFromString=function(e){var t=e.replace(/[^a-zA-Z0-9_]/g,"_");return/^[0-9]/.test(t)&&(t="_"+t),t},t.Concurrent=function(e,t){return new Promise((function(r,n){for(var o=-1,i=[],a=0;a<Math.max(1,Math.min(e,t.length));a++)u();function u(){++o<t.length?(i[i.length]=t[o]()).then(u).catch(n):o===t.length&&Promise.all(i).then(r).catch(n)}}))},t.ExtractActualDefaultValue=function(e){if(!e||0===e.trim().length)return e;var t=a(c(e));return"null"===t.trim().toLowerCase()?null:u(t)},t.StripUnicodePrefix=a,t.StripSingleQuotes=u,t.StripContainingParens=c},600:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=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;var i=r(7074),a=r(5949),u=r(2659),c=r(4789),s=r(4593);o(r(5949),t),o(r(5485),t),o(r(4183),t),o(r(4593),t),o(r(4789),t),o(r(2659),t),o(r(5788),t),o(r(7074),t),o(r(4472),t),o(r(9571),t),o(r(9827),t),o(r(4922),t),o(r(103),t),o(r(2584),t),o(r(4423),t),o(r(1446),t),o(r(2169),t),o(r(1754),t),o(r(9589),t),o(r(588),t),o(r(8702),t),o(r(2714),t),o(r(7538),t),o(r(2217),t),o(r(8993),t),o(r(2745),t),o(r(1261),t),t.SetProvider=function(e){a.Metadata.Provider=e,i.BaseEntity.Provider=e,s.RunView.Provider=e,c.RunReport.Provider=e,u.RunQuery.Provider=e}},4593:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return t};var e,t={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),u=new L(n||[]);return a(i,"_invoke",{value:C(e,r,u)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var y="suspendedStart",h="suspendedYield",v="executing",m="completed",b={};function g(){}function w(){}function _(){}var O={};f(O,c,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(T([])));E&&E!==r&&i.call(E,c)&&(O=E);var P=_.prototype=g.prototype=Object.create(O);function j(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function r(o,a,u,c){var s=d(e[o],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&i.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,u,c)}),(function(e){r("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return r("throw",e,u,c)}))}c(s.arg)}var o;a(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function C(t,r,n){var o=y;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=k(u,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=d(t,r,n);if("normal"===s.type){if(o=n.done?m:h,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function T(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(i.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(n(t)+" is not iterable")}return w.prototype=_,a(P,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:w,configurable:!0}),w.displayName=f(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,f(e,l,"GeneratorFunction")),e.prototype=Object.create(P),e},t.awrap=function(e){return{__await:e}},j(x.prototype),f(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(p(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},j(P),f(P,l,"Generator"),f(P,c,(function(){return this})),f(P,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=T,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),s=i.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}function i(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function u(e){i(a,n,o,u,c,"next",e)}function c(e){i(a,n,o,u,c,"throw",e)}u(void 0)}))}}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function c(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}Object.defineProperty(t,"__esModule",{value:!0}),t.RunView=void 0;var s=r(5120),l=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._provider=null,t&&(this._provider=t)}return t=e,r=[{key:"ProviderToUse",get:function(){return this._provider||e.Provider}},{key:"RunView",value:(l=a(o().mark((function e(t,r){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.ProviderToUse.RunView(t,r);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return l.apply(this,arguments)})},{key:"RunViews",value:(c=a(o().mark((function e(t,r){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.ProviderToUse.RunViews(t,r));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return c.apply(this,arguments)})}],n=[{key:"Provider",get:function(){var t=s.MJGlobal.Instance.GetGlobalObjectStore();if(t)return t[e._globalProviderKey];throw new Error("No global object store, so we cant get the static provider")},set:function(t){var r=s.MJGlobal.Instance.GetGlobalObjectStore();if(!r)throw new Error("No global object store, so we cant set the static provider");r[e._globalProviderKey]=t}},{key:"GetEntityNameFromRunViewParams",value:(i=a(o().mark((function t(r){var n,i,a,u,c,s=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=(s.length>1&&void 0!==s[1]?s[1]:null)||e.Provider,!r.EntityName){t.next=6;break}return t.abrupt("return",r.EntityName);case 6:if(!r.ViewEntity){t.next=13;break}if(i=r.ViewEntity.Get("EntityID"),!(a=n.Entities.find((function(e){return e.ID===i})))){t.next=11;break}return t.abrupt("return",a.Name);case 11:case 20:t.next=23;break;case 13:if(!r.ViewID&&!r.ViewName){t.next=22;break}return u=new e(n),t.next=17,u.RunView({EntityName:"User Views",ExtraFilter:r.ViewID?"ID = '".concat(r.ViewID,"'"):"Name = '".concat(r.ViewName,"'"),ResultType:"entity_object"});case 17:if(!((c=t.sent)&&c.Success&&c.Results.length>0)){t.next=20;break}return t.abrupt("return",c.Results[0].Entity);case 22:return t.abrupt("return",null);case 23:case"end":return t.stop()}}),t)}))),function(e){return i.apply(this,arguments)})}],r&&u(t.prototype,r),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n,i,c,l}();t.RunView=l,l._globalProviderKey="MJ_RunViewProvider"},5946:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}Object.defineProperty(t,"__esModule",{value:!0}),t.BaseSingleton=void 0;var a=r(5120),u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._globalKey=e._globalKeyPrefix+this.constructor.name;var t=(0,a.GetGlobalObjectStore)();if(t&&t[this.GlobalKey])return t[this.GlobalKey];t&&(t[this.GlobalKey]=this)}return t=e,n=[{key:"getInstance",value:function(t){var r=e._globalKeyPrefix+(t||this.name),n=(0,a.GetGlobalObjectStore)();return n[r]||(n[r]=new this),n[r]}}],(r=[{key:"GlobalKey",get:function(){return this._globalKey}},{key:"GetGlobalObjectStore",value:function(){return(0,a.GetGlobalObjectStore)()}}])&&o(t.prototype,r),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}();t.BaseSingleton=u,u._globalKeyPrefix="___SINGLETON__"},3504:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t,r){if(a())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&i(o,r.prototype),o}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(a=function(){return!!e})()}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function c(e,t,r){return t&&u(e.prototype,t),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.ClassFactory=t.ClassRegistration=void 0;var f=r(9207),p=c((function e(){l(this,e)}));t.ClassRegistration=p;var d=function(){return c((function e(){l(this,e),this._registrations=[]}),[{key:"Register",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(e&&t){(void 0===r||null===r&&!(arguments.length>4&&void 0!==arguments[4]&&arguments[4]))&&console.warn("ClassFactory.GetAllRegistrations: Registration for base class ".concat(e.name," has no key set. This is not recommended and may lead to unintended behavior when trying to match registrations. Please set a key for this registration."));var i=(0,f.GetRootClass)(e),a=o?i:e;o&&a!==e&&console.info("ClassFactory.Register: Auto-registering ".concat(t.name," with root class ").concat(i.name," instead of ").concat(e.name));var u=this.GetAllRegistrations(a,r);if(n>0){var c=u.filter((function(e){return e.Priority===n}));c&&c.length>0&&console.warn("*** ClassFactory.Register: Registering class ".concat(t.name," for base class ").concat(a.name," and key/priority ").concat(r,"/").concat(n,". ").concat(c.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===n||null==n){for(var s=0,l=0;l<u.length;l++)u[l].Priority>s&&(s=u[l].Priority);n=s+1}var d=new p;d.BaseClass=a,d.SubClass=t,d.RootClass=i,d.Key=r,d.Priority=n,this._registrations.push(d)}}},{key:"CreateInstance",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e){for(var r=this.GetRegistration(e,t),n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];return r?void 0!==i?o(r.SubClass,i):new r.SubClass:o(e,i)}return null}},{key:"GetAllRegistrations",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return e?this._registrations.filter((function(r){var n;return r.BaseClass.name===e.name&&(null==t||(null===(n=r.Key)||void 0===n?void 0:n.trim().toLowerCase())===t.trim().toLowerCase())})):null}},{key:"GetRegistration",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=this.GetAllRegistrations(e,t);if(r&&r.length>0){for(var n=0,o=0;o<r.length;o++)r[o].Priority>n&&(n=r[o].Priority);var i=r.filter((function(e){return e.Priority===n}));return i[i.length-1]}return null}},{key:"GetRegistrationsByRootClass",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return e?this._registrations.filter((function(r){var n,o;return(null===(n=r.RootClass)||void 0===n?void 0:n.name)===e.name&&(null==t||(null===(o=r.Key)||void 0===o?void 0:o.trim().toLowerCase())===t.trim().toLowerCase())})):[]}}])}();t.ClassFactory=d},9207:(e,t)=>{"use strict";function r(e,t){if(!e||!t||"function"!=typeof e||"function"!=typeof t)return!1;if(e===t)return!1;for(var r=e;r;){if((r=Object.getPrototypeOf(r))===t)return!0;if(!r||r===Function.prototype||r.constructor===Function)break}return!1}Object.defineProperty(t,"__esModule",{value:!0}),t.GetClassName=t.IsClassConstructor=t.GetFullClassHierarchy=t.GetClassInheritance=t.IsDescendantClassOf=t.IsRootClass=t.IsSubclassOf=t.GetRootClass=t.GetSuperclass=void 0,t.GetSuperclass=function(e){if(!e||"function"!=typeof e)return null;var t=Object.getPrototypeOf(e);return t&&t!==Function.prototype&&t.constructor!==Function?t:null},t.GetRootClass=function(e){if(!e||"function"!=typeof e)return e;for(var t=e,r=e;t;){var n=Object.getPrototypeOf(t);if(!n||n===Function.prototype||n.constructor===Function)break;r=t,t=n}return r},t.IsSubclassOf=r,t.IsRootClass=function(e){if(!e||"function"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return!t||t===Function.prototype||t.constructor===Function},t.IsDescendantClassOf=function(e,t){return r(e,t)},t.GetClassInheritance=function(e){var t=[];if(!e||"function"!=typeof e)return t;for(var r=Object.getPrototypeOf(e);r&&r!==Function.prototype&&r.constructor!==Function;)t.push({name:r.name||"Anonymous",reference:r}),r=Object.getPrototypeOf(r);return t},t.GetFullClassHierarchy=function(e){var t=[];if(!e||"function"!=typeof e)return t;for(var r=e;r&&r!==Function.prototype&&r.constructor!==Function;)t.push({name:r.name||"Anonymous",reference:r}),r=Object.getPrototypeOf(r);return t},t.IsClassConstructor=function(e){if("function"!=typeof e)return!1;var t=e.toString();return!!t.startsWith("class ")||!(!e.prototype||e.prototype.constructor!==e)&&(t.includes("this.")||Object.getOwnPropertyNames(e.prototype).length>1)},t.GetClassName=function(e){if(!e||"function"!=typeof e)return"Unknown";if(e.name)return e.name;var t=e.toString().match(/^class\s+(\w+)/);return t&&t[1]?t[1]:"Anonymous"}},1483:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=a(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,i=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw i}}}}function i(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){if(e){if("string"==typeof e)return u(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return(t=p(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,p(n.key),n)}}function p(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}var d=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),y=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),h=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)&&d(t,e,r);return y(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.DeepDiffer=t.DiffChangeType=void 0;var v,m=h(r(637));!function(e){e.Added="added",e.Removed="removed",e.Modified="modified",e.Unchanged="unchanged"}(v||(t.DiffChangeType=v={}));var b=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=s({includeUnchanged:!1,maxDepth:10,maxStringLength:100,includeArrayIndices:!0,treatNullAsUndefined:!1},t)},(t=[{key:"diff",value:function(e,t){var r=[];this.generateDiff(e,t,[],r,0),r.sort((function(e,t){return e.path.localeCompare(t.path)}));var n={added:r.filter((function(e){return e.type===v.Added})).length,removed:r.filter((function(e){return e.type===v.Removed})).length,modified:r.filter((function(e){return e.type===v.Modified})).length,unchanged:r.filter((function(e){return e.type===v.Unchanged})).length,totalPaths:r.length};return{changes:r,summary:n,formatted:this.formatDiff(r,n)}}},{key:"updateConfig",value:function(e){this.config=s(s({},this.config),e)}},{key:"generateDiff",value:function(e,t,r,n,o){var i=this;if(!(o>this.config.maxDepth)){var a,u,c=r.join("."),s=function(e){return void 0===e||i.config.treatNullAsUndefined&&null===e};(a=e)===(u=t)||i.config.treatNullAsUndefined&&s(a)&&s(u)?this.config.includeUnchanged&&n.push({path:c||"root",type:v.Unchanged,oldValue:e,newValue:t,description:"No change"}):s(e)&&!s(t)?n.push({path:c||"root",type:v.Added,newValue:t,description:this.describeValue(t,"Added")}):!s(e)&&s(t)?n.push({path:c||"root",type:v.Removed,oldValue:e,description:this.describeValue(e,"Removed")}):Array.isArray(e)&&Array.isArray(t)?this.diffArrays(e,t,r,n,o):m.isObject(e)&&m.isObject(t)?this.diffObjects(e,t,r,n,o):n.push({path:c||"root",type:v.Modified,oldValue:e,newValue:t,description:"Changed from ".concat(this.describeValue(e)," to ").concat(this.describeValue(t))})}}},{key:"diffArrays",value:function(e,t,r,n,o){var a=r.join(".");e.length!==t.length&&n.push({path:a||"root",type:v.Modified,oldValue:"Array[".concat(e.length,"]"),newValue:"Array[".concat(t.length,"]"),description:"Array length changed from ".concat(e.length," to ").concat(t.length)});for(var u=Math.max(e.length,t.length),c=0;c<u;c++){var s=this.config.includeArrayIndices?[].concat(i(r),["[".concat(c,"]")]):[].concat(i(r),["[]"]);c<e.length&&c<t.length?this.generateDiff(e[c],t[c],s,n,o+1):c<e.length?n.push({path:s.join("."),type:v.Removed,oldValue:e[c],description:this.describeValue(e[c],"Removed")}):n.push({path:s.join("."),type:v.Added,newValue:t[c],description:this.describeValue(t[c],"Added")})}}},{key:"diffObjects",value:function(e,t,r,n,a){var u,c=o(new Set([].concat(i(Object.keys(e)),i(Object.keys(t)))));try{for(c.s();!(u=c.n()).done;){var s=u.value,l=[].concat(i(r),[s]);this.generateDiff(e[s],t[s],l,n,a+1)}}catch(e){c.e(e)}finally{c.f()}}},{key:"describeValue",value:function(e,t){if(this.config.valueFormatter){var r=Array.isArray(e)?"array":n(e);return this.config.valueFormatter(e,r)}var o=this.getValueDescription(e);return t?"".concat(t," ").concat(o):o}},{key:"getValueDescription",value:function(e){if(null===e)return"null";if(void 0===e)return"undefined";var t=n(e);if("string"===t)return e.length>this.config.maxStringLength?'"'.concat(e.substring(0,this.config.maxStringLength),'..."'):'"'.concat(e,'"');if("number"===t||"boolean"===t)return String(e);if(Array.isArray(e))return"Array[".concat(e.length,"]");if(m.isObject(e)){var r=Object.keys(e);return"Object{".concat(r.length," ").concat(1===r.length?"key":"keys","}")}return String(e)}},{key:"formatDiff",value:function(e,t){var r=[];if(r.push("=== Deep Diff Summary ==="),r.push("Total changes: ".concat(t.added+t.removed+t.modified)),t.added>0&&r.push(" Added: ".concat(t.added)),t.removed>0&&r.push(" Removed: ".concat(t.removed)),t.modified>0&&r.push(" Modified: ".concat(t.modified)),this.config.includeUnchanged&&t.unchanged>0&&r.push(" Unchanged: ".concat(t.unchanged)),r.push(""),e.length>0){r.push("=== Changes ===");for(var n=m.groupBy(e,"type"),i=0,a=[v.Added,v.Removed,v.Modified];i<a.length;i++){var u=a[i],c=n[u];if(c&&c.length>0){r.push("\n".concat(u.charAt(0).toUpperCase()+u.slice(1),":"));var s,l=o(c);try{for(l.s();!(s=l.n()).done;){var f=s.value;r.push(" ".concat(f.path,": ").concat(f.description))}}catch(e){l.e(e)}finally{l.f()}}}this.config.includeUnchanged&&n[v.Unchanged]&&r.push("\nUnchanged (".concat(n[v.Unchanged].length," items)"))}return r.join("\n")}}])&&f(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();t.DeepDiffer=b},553:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}function a(e,t,r){return t=s(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,u()?Reflect.construct(t,r||[],s(e).constructor):t.apply(e,r))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=s(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},c.apply(null,arguments)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.MJGlobal=void 0;var f=r(4802),p=r(3504),d=r(1215),y=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=a(this,t,arguments))._eventsSubject=new f.Subject,e._eventsReplaySubject=new f.ReplaySubject,e._events$=e._eventsSubject.asObservable(),e._eventsReplay$=e._eventsReplaySubject.asObservable(),e._components=[],e._classFactory=new p.ClassFactory,e._properties=[],e._objectCache=new d.ObjectCache,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),r=t,n=[{key:"RegisterComponent",value:function(e){this._components.push(e)}},{key:"Reset",value:function(){this._components=[],this._eventsSubject=new f.Subject,this._eventsReplaySubject=new f.ReplaySubject,this._events$=this._eventsSubject.asObservable(),this._eventsReplay$=this._eventsReplaySubject.asObservable()}},{key:"RaiseEvent",value:function(e){this._eventsSubject.next(e),this._eventsReplaySubject.next(e)}},{key:"GetEventListener",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?this._eventsReplay$:this._events$}},{key:"ClassFactory",get:function(){return this._classFactory}},{key:"Properties",get:function(){return this._properties}},{key:"ObjectCache",get:function(){return this._objectCache}}],i=[{key:"Instance",get:function(){return c(s(t),"getInstance",this).call(this)}}],n&&o(r.prototype,n),i&&o(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}(r(5946).BaseSingleton);t.MJGlobal=y},2900:(e,t,r)=>{"use strict";function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=a(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,i=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw i}}}}function o(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){if(e){if("string"==typeof e)return u(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}Object.defineProperty(t,"__esModule",{value:!0}),t.JSONValidator=void 0;var f=r(488),p=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"validate",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=this.validateObject(e,t,r);return{Success:0===n.length,Errors:n}}},{key:"validateObject",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=[];if("object"!==c(t)||null===t||Array.isArray(t))return a;if("object"!==c(e)||null===e||Array.isArray(e))return a.push(new f.ValidationErrorInfo(n||"root","Expected object but got ".concat(Array.isArray(e)?"array":c(e)),e,f.ValidationErrorType.Failure)),a;for(var u=e,s=t,l=function(){var e=i(d[p],2),t=e[0],c=e[1],s=r.parseFieldKey(t),l=n?"".concat(n,".").concat(s.fieldName):s.fieldName;if(!s.isOptional&&!s.isWildcard&&!(s.fieldName in u))return a.push(new f.ValidationErrorInfo(l,"Required field '".concat(s.fieldName,"' is missing"),void 0,f.ValidationErrorType.Failure)),0;if(s.fieldName in u){var y=u[s.fieldName];if(s.isWildcard)return 0;if(s.validationRules.length>0){var h=r.applyValidationRules(y,s.validationRules,l);a.push.apply(a,o(h))}if(0===a.filter((function(e){return e.Source===l})).length){var v=r.validateObject(y,c,l);a.push.apply(a,o(v))}}},p=0,d=Object.entries(s);p<d.length;p++)l();return a}},{key:"parseFieldKey",value:function(e){var t=e.trim(),r=!1,n=!1,i=[];t.endsWith("?")?(r=!0,t=t.slice(0,-1)):t.endsWith("*")&&(n=!0,t=t.slice(0,-1));var a=t.indexOf(":"),u=t;if(-1!==a){u=t.substring(0,a);var c=t.substring(a+1),s=this.parseValidationRules(c);i.push.apply(i,o(s))}return{fieldName:u,isOptional:r,isWildcard:n,validationRules:i}}},{key:"parseValidationRules",value:function(e){var t,r=[],o="",i=!1,a=n(e);try{for(a.s();!(t=a.n()).done;){var u=t.value;"["===u?(i=!0,o+=u):"]"===u?(i=!1,o+=u):":"!==u||i?o+=u:o&&(r.push(o),o="")}}catch(e){a.e(e)}finally{a.f()}return o&&r.push(o),r}},{key:"applyValidationRules",value:function(e,t,r){var i,a=[],u=n(t);try{for(u.s();!(i=u.n()).done;){var c=i.value;if(c.startsWith("[")&&c.endsWith("]")){var s=this.validateArrayLength(e,c,r);a.push.apply(a,o(s))}else if(["string","number","boolean","object","array"].includes(c)){var l=this.validateType(e,c,r);l&&a.push(l)}else if("!empty"===c){var f=this.validateNonEmpty(e,r);f&&a.push(f)}}}catch(e){u.e(e)}finally{u.f()}return a}},{key:"validateArrayLength",value:function(e,t,r){var n=[];if(!Array.isArray(e))return n.push(new f.ValidationErrorInfo(r,"Array length validation requires an array, but got ".concat(c(e)),e,f.ValidationErrorType.Failure)),n;var o=e.length,a=t.slice(1,-1);if(a.endsWith("+")){var u=parseInt(a.slice(0,-1),10);o<u&&n.push(new f.ValidationErrorInfo(r,"Array must have at least ".concat(u," element").concat(u>1?"s":"",", but has ").concat(o),e,f.ValidationErrorType.Failure))}else if(a.includes("-")){var s=i(a.split("-"),2),l=s[0],p=s[1],d=parseInt(l,10),y=parseInt(p,10);(o<d||o>y)&&n.push(new f.ValidationErrorInfo(r,"Array must have between ".concat(d," and ").concat(y," elements, but has ").concat(o),e,f.ValidationErrorType.Failure))}else if(a.startsWith("=")){var h=parseInt(a.slice(1),10);o!==h&&n.push(new f.ValidationErrorInfo(r,"Array must have exactly ".concat(h," element").concat(h>1?"s":"",", but has ").concat(o),e,f.ValidationErrorType.Failure))}return n}},{key:"validateType",value:function(e,t,r){var n=Array.isArray(e)?"array":c(e),o=!1;switch(t){case"string":o="string"==typeof e;break;case"number":o="number"==typeof e&&!isNaN(e);break;case"boolean":o="boolean"==typeof e;break;case"object":o="object"===c(e)&&null!==e&&!Array.isArray(e);break;case"array":o=Array.isArray(e)}return o?null:new f.ValidationErrorInfo(r,"Expected ".concat(t," but got ").concat(n),e,f.ValidationErrorType.Failure)}},{key:"validateNonEmpty",value:function(e,t){var r=!1;return"string"==typeof e?r=0===e.trim().length:Array.isArray(e)?r=0===e.length:"object"===c(e)&&null!==e&&(r=0===Object.keys(e).length),r?new f.ValidationErrorInfo(t,"Field must not be empty",e,f.ValidationErrorType.Failure):null}},{key:"validateAgainstSchema",value:function(e,t){try{var r=JSON.parse(t);return this.validate(e,r)}catch(e){return{Success:!1,Errors:[new f.ValidationErrorInfo("schema","Invalid JSON schema: ".concat(e.message),t,f.ValidationErrorType.Failure)]}}}},{key:"cleanValidationSyntax",value:function(e){var t=this;if(null==e)return e;if(Array.isArray(e))return e.map((function(e){return t.cleanValidationSyntax(e)}));if("object"!==c(e))return e;for(var r={},n=e,o=0,a=Object.entries(n);o<a.length;o++){var u=i(a[o],2),s=u[0],l=u[1],f=this.parseFieldKey(s),p=this.cleanValidationSyntax(l);r[f.fieldName]=p}return r}}],t&&s(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();t.JSONValidator=p},1215:(e,t)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function o(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function i(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectCache=t.ObjectCacheEntry=void 0;var u=o((function e(t,r){a(this,e),this.key=t,this.object=r}));t.ObjectCacheEntry=u;var c=function(){return o((function e(){a(this,e),this._entries=[]}),[{key:"Clear",value:function(){this._entries=[]}},{key:"Add",value:function(e,t){if(this._entries.findIndex((function(t){return t.key.trim().toLowerCase()===e.trim().toLowerCase()}))>=0)throw new Error("An object with the key ".concat(e," already exists in the cache. Remove it first before adding a new one."));var r=new u(e,t);this._entries.push(r)}},{key:"Replace",value:function(e,t){this.Remove(e),this.Add(e,t)}},{key:"Remove",value:function(e){var t=this._entries.findIndex((function(t){return t.key.trim().toLowerCase()===e.trim().toLowerCase()}));t>=0&&this._entries.splice(t,1)}},{key:"Find",value:function(e){var t=this._entries.findIndex((function(t){return t.key.trim().toLowerCase()===e.trim().toLowerCase()}));return t>=0?this._entries[t].object:null}}])}();t.ObjectCache=c},6471:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RegisterClass=void 0;var n=r(553);t.RegisterClass=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return function(a){n.MJGlobal.Instance.ClassFactory.Register(e,a,t,r,o,i)}}},8488:(e,t)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=i(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,a=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw a}}}}function i(e,t){if(e){if("string"==typeof e)return a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t,r){if(s())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&c(o,r.prototype),o}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,f(n.key),n)}}function f(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}Object.defineProperty(t,"__esModule",{value:!0}),t.defaultExpressionEvaluator=t.SafeExpressionEvaluator=void 0;var p=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,c=[{key:"evaluate",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=Date.now();try{var o=this.validateExpression(e);if(o)return{success:!1,error:o,diagnostics:r?{expression:e,context:t,evaluationTime:Date.now()-n}:void 0};var c=this.createSafeContext(t),s=Object.keys(c),l=s.map((function(e){return c[e]})),f='\n "use strict";\n try {\n return Boolean('.concat(e,");\n } catch (e) {\n throw new Error('Expression evaluation failed: ' + e.message);\n }\n "),p=u(Function,s.concat([f])).apply(void 0,function(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(l));return{success:!0,value:Boolean(p),diagnostics:r?{expression:e,context:t,evaluationTime:Date.now()-n}:void 0}}catch(o){return{success:!1,error:o instanceof Error?o.message:String(o),diagnostics:r?{expression:e,context:t,evaluationTime:Date.now()-n}:void 0}}}},{key:"validateExpression",value:function(t){if(!t||"string"!=typeof t)return"Expression must be a non-empty string";if(t.length>1e3)return"Expression exceeds maximum length of 1000 characters";var r,n=o(e.DANGEROUS_PATTERNS);try{for(n.s();!(r=n.n()).done;){var i=r.value;if(i.test(t))return"Expression contains forbidden construct: ".concat(i.source)}}catch(e){n.e(e)}finally{n.f()}var a,u=0,c=o(t);try{for(c.s();!(a=c.n()).done;){var s=a.value;if("("===s&&u++,")"===s&&u--,u<0)return"Unbalanced parentheses in expression"}}catch(e){c.e(e)}finally{c.f()}return 0!==u?"Unbalanced parentheses in expression":null}},{key:"createSafeContext",value:function(e){for(var t={},r=0,o=Object.entries(e);r<o.length;r++){var i=n(o[r],2),a=i[0],u=i[1];this.isDangerousPropertyName(a)||(t[a]=this.cloneValue(u))}return t}},{key:"isDangerousPropertyName",value:function(e){return["__proto__","constructor","prototype","eval","Function"].includes(e)}},{key:"cloneValue",value:function(e){var t=this;if(null==e)return e;var o=r(e);if("string"===o||"number"===o||"boolean"===o)return e;if(Array.isArray(e))return e.map((function(e){return t.cloneValue(e)}));if("object"===o&&e.constructor===Object){for(var i={},a=0,u=Object.entries(e);a<u.length;a++){var c=n(u[a],2),s=c[0],l=c[1];this.isDangerousPropertyName(s)||(i[s]=this.cloneValue(l))}return i}return e instanceof Date?new Date(e):String(e)}},{key:"evaluateMultiple",value:function(e,t){var r=this,n={};return e.forEach((function(e,o){var i=e.name||"expression_".concat(o);n[i]=r.evaluate(e.expression,t)})),n}}],c&&l(t.prototype,c),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,c}();t.SafeExpressionEvaluator=p,p.DANGEROUS_PATTERNS=[/\beval\s*\(/i,/\bnew\s+Function/i,/\bFunction\s*\(/i,/\bimport\s+/i,/\brequire\s*\(/i,/\bprocess\./i,/\bglobal\./i,/\bwindow\./i,/\bdocument\./i,/\b__proto__\b/i,/\bconstructor\b/i,/\bprototype\b/i,/\.\s*constructor/i,/\bthis\b/,/\bawait\b/i,/\basync\b/i,/\bclass\b/i,/\bextends\b/i,/\bthrow\b/i,/\btry\b/i,/\bcatch\b/i,/\bfinally\b/i,/;/,/{/,/}/,/`/,/\$\{/],p.SAFE_METHODS=["length","includes","startsWith","endsWith","indexOf","lastIndexOf","toLowerCase","toUpperCase","trim","trimStart","trimEnd","toString","valueOf","some","every","find","filter","map","reduce"],t.defaultExpressionEvaluator=new p},488:(e,t)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function o(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function i(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationResult=t.ValidationErrorInfo=t.ValidationErrorType=void 0,t.ValidationErrorType={Failure:"Failure",Warning:"Warning"};var u=o((function e(r,n,o){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.ValidationErrorType.Failure;a(this,e),this.Source=r,this.Message=n,this.Value=o,this.Type=i}));t.ValidationErrorInfo=u;var c=o((function e(){a(this,e),this.Success=!1,this.Errors=[]}));t.ValidationResult=c},5120:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=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.ClassRegistration=t.ClassFactory=void 0;var i=r(3504);Object.defineProperty(t,"ClassFactory",{enumerable:!0,get:function(){return i.ClassFactory}}),Object.defineProperty(t,"ClassRegistration",{enumerable:!0,get:function(){return i.ClassRegistration}}),o(r(5551),t),o(r(3514),t),o(r(1215),t),o(r(5946),t),o(r(1483),t),o(r(9207),t),o(r(214),t),o(r(488),t),o(r(2900),t),o(r(8488),t),o(r(553),t),o(r(6471),t)},5551:(e,t)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function o(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function i(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.MJEventType=t.MJEvent=t.MJGlobalProperty=void 0;var u=o((function e(){a(this,e)}));t.MJGlobalProperty=u;var c=o((function e(){a(this,e)}));t.MJEvent=c,t.MJEventType={ComponentRegistered:"ComponentRegistered",ComponentUnregistered:"ComponentUnregistered",ComponentEvent:"ComponentEvent",LoggedIn:"LoggedIn",LoggedOut:"LoggedOut",LoginFailed:"LoginFailed",LogoutFailed:"LogoutFailed",ManualResizeRequest:"ManualResizeRequest",DisplaySimpleNotificationRequest:"DisplaySimpleNotificationRequest"}},3514:(e,t,r)=>{"use strict";function n(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.ParseJSONRecursive=t.compareStringsByLine=t.uuidv4=t.InvokeManualResize=t.replaceAllSpaces=t.stripTrailingChars=t.adjustCasing=t.generatePluralName=t.getIrregularPlural=t.stripWhitespace=t.convertCamelCaseToHaveSpaces=t.ConvertMarkdownStringToHtmlList=t.SafeJSONParse=t.CleanJavaScript=t.CleanJSON=t.CleanAndParseJSON=t.CopyScalarsAndArrays=t.GetGlobalObjectStore=void 0;var a=r(5120),u=r(5551),c=r(7053);function s(e){if(!e)return null;var t=e.trim(),r=null;try{var n=JSON.parse(t);return JSON.stringify(n,null,2)}catch(e){if(r=e,t.endsWith("}")){var o=l(t.slice(0,-1));if(o)return JSON.stringify(o,null,2);var i=l(t+"}");if(i)return JSON.stringify(i,null,2)}}if((t=t.replace(/(?<!\\)\n/g,"").replace(/(?<!\\)\t/g,"")).includes("\\\\")||t.includes('\\"'))try{t=JSON.parse('"'+t+'"')}catch(e){t=t.replace(/\\\\n/g,"\n").replace(/\\\\t/g,"\t").replace(/\\\\r/g,"\r").replace(/\\\\"/g,'"').replace(/\\\\\\/g,"\\")}try{var a=JSON.parse(t);return JSON.stringify(a,null,2)}catch(e){}var u=Array.from(t.matchAll(/(?:```|\\`\\`\\`)(?:json|JSON)?\s*([\s\S]*?)(?:```|\\`\\`\\`)/gi));if(u.length>0)return s(u.map((function(e){return e[1].trim()})).join("\n"));var c=t.indexOf("["),f=t.indexOf("{"),p=-1,d=-1;if(-1!==c&&c<f||-1===f?(p=c,d=t.lastIndexOf("]")):-1!==f&&(p=f,d=t.lastIndexOf("}")),-1===p||-1===d||d<p)return console.warn("No JSON found in the input."),t;var y=t.substring(p,d+1);try{var h=JSON.parse(y);return JSON.stringify(h,null,2)}catch(e){var v;throw new Error("Failed to find a path to CleanJSON\n\n".concat(null===(v=r)||void 0===v?void 0:v.message))}}function l(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return null;try{return JSON.parse(e)}catch(e){return t&&console.error("Error parsing JSON string:",e),null}}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){var r={};return Object.keys(t).forEach((function(a){var u,c=t[a];null===c||"object"!==i(c)?r[a]=c:Array.isArray(c)?r[a]=function(e){if(Array.isArray(e))return o(e)}(u=c)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(u)||n(u)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}():"object"===i(c)&&c.constructor===Object&&(r[a]=e(c))})),r},t.CleanAndParseJSON=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?l(s(e),t):null},t.CleanJSON=s,t.CleanJavaScript=function(e){var t=Array.from(e.matchAll(/```(?:js|javascript)?\s*([\s\S]*?)```/gi));return t.length>0?t.map((function(e){return e[1].trim()})).join("\n"):e.trim()},t.SafeJSONParse=l,t.ConvertMarkdownStringToHtmlList=function(e,t){try{var r="Unordered"===e?"ul":"ol";if(!t.includes("\n"))return t;var n=t.split("\n").map((function(e){return"<li>".concat(e.trim().replace(/^-\s*/,""),"</li>")})).join("");return"<".concat(r,">").concat(n,"</").concat(r,">")}catch(e){return console.error("Error converting markdown string to HTML list:",e),null}},t.convertCamelCaseToHaveSpaces=function(e){for(var t="",r=0;r<e.length;++r)r>0&&(e[r]===e[r].toUpperCase()&&e[r-1]!==e[r-1].toUpperCase()||e[r]===e[r].toUpperCase()&&e[r-1]===e[r-1].toUpperCase()&&r+1<e.length&&e[r+1]!==e[r+1].toUpperCase())&&(t+=" "),t+=e[r];return t},t.stripWhitespace=function(e){return e?e.replace(/\s+/g,""):e};var f={child:"children",person:"people",mouse:"mice",foot:"feet",tooth:"teeth",goose:"geese",man:"men",woman:"women",ox:"oxen",cactus:"cacti",focus:"foci",fungus:"fungi",nucleus:"nuclei",syllabus:"syllabi",analysis:"analyses",diagnosis:"diagnoses",thesis:"theses",crisis:"crises",phenomenon:"phenomena",criterion:"criteria",datum:"data",appendix:"appendices",index:"indices",matrix:"matrices",vertex:"vertices",vortex:"vortices",radius:"radii",corpus:"corpora",genus:"genera",locus:"loci",alga:"algae",antenna:"antennae",formula:"formulae",nebula:"nebulae",vertebra:"vertebrae",memorandum:"memoranda",medium:"media",bacterium:"bacteria",curriculum:"curricula",referendum:"referenda",stimulus:"stimuli",automaton:"automata",beau:"beaux",bureau:"bureaux",tableau:"tableaux",cherub:"cherubim",seraph:"seraphim",elf:"elves",calf:"calves",half:"halves",knife:"knives",leaf:"leaves",life:"lives",loaf:"loaves",scarf:"scarves",self:"selves",sheaf:"sheaves",shelf:"shelves",thief:"thieves",wife:"wives",wolf:"wolves"};function p(e){return f[e.toLowerCase()]||null}function d(e,t){return e&&e.length>0&&t?t.capitalizeEntireWord?e.toUpperCase():t.capitalizeFirstLetterOnly?t.forceRestOfWordLowerCase?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():e.charAt(0).toUpperCase()+e.slice(1):e:e}function y(e,t,r,n){return r>=t.maxDepth?(t.debug&&console.warn("[ParseJSONRecursive] Maximum depth of ".concat(t.maxDepth," reached at path: ").concat(n)),e):null==e||"object"!==i(e)?e:h(e,t,r,n)}function h(e,t,r,n){if(t.debug&&console.log("[ParseJSONRecursive] Depth: ".concat(r,", Path: ").concat(n,", Type: ").concat(i(e)).concat(Array.isArray(e)?" (array)":"")),"string"==typeof e)return function(e,t,r,n){t.debug&&console.log("[ParseJSONRecursive] String preview: ".concat(e.substring(0,100)).concat(e.length>100?"...":""));var o=e.trim();if(0===o.length||"{"!==o[0]&&"["!==o[0]&&'"'!==o[0]){if(!t.extractInlineJson)return e}else try{var a=JSON.parse(e);return a===e?(t.debug&&console.log("[ParseJSONRecursive] JSON.parse returned same value at path: ".concat(n,", stopping")),e):a&&"object"===i(a)?(t.debug&&console.log("[ParseJSONRecursive] Successfully parsed JSON at path: ".concat(n)),y(a,t,r+1,"".concat(n,"[parsed-json]"))):a}catch(e){}if(null!=t&&t.extractInlineJson){var u=e.match(/```json\s*\n([\s\S]*?)\n```/);if(u)try{var c=JSON.parse(u[1]);return{text:e.replace(u[0],"").trim(),json:y(c,t,r+1,"".concat(n,"[embedded-json]"))}}catch(e){}var s=e.search(/[{\[]/);if(-1!==s){var l=e.substring(s);try{var f=JSON.parse(l);return{text:e.substring(0,s).trim()||void 0,json:y(f,t,r+1,"".concat(n,"[embedded-json]"))}}catch(e){}}}return e}(e,t,r,n);if(Array.isArray(e)){for(var o=new Array(e.length),a=0;a<e.length;a++)o[a]=h(e[a],t,r+1,"".concat(n,"[").concat(a,"]"));return o}if("object"===i(e)&&null!==e){for(var u={},c=0,s=Object.keys(e);c<s.length;c++){var l=s[c];t.debug&&console.log("[ParseJSONRecursive] Processing key: ".concat(l," at path: ").concat(n,".").concat(l)),u[l]=h(e[l],t,r+1,"".concat(n,".").concat(l))}return u}return e}t.getIrregularPlural=p,t.generatePluralName=function(e,t){var r,o,i,a=(o=(r=e).toLowerCase(),(i=Object.entries(f).find((function(e){var t,r,i=(r=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(t,r)||n(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());return i[0],i[1]===o})))?i[0]:o.endsWith("ies")?o.slice(0,-3)+"y":/(s|ch|sh|x|z)es$/.test(o)?o.slice(0,-2):o.endsWith("s")&&!o.endsWith("ss")?o.slice(0,-1):r);if(!a)return d(e,t);if(a.trim().toLowerCase()!==e.trim().toLowerCase())return d(e,t);var u=p(e);if(u)return d(u,t);if(e.endsWith("y")&&e.length>1){var c=e[e.length-2].toLowerCase();return"aeiou".includes(c)?d(e+"s",t):d(e.slice(0,-1)+"ies",t)}return/(s|ch|sh|x|z)$/.test(e)?d(e+"es",t):d(e+"s",t)},t.adjustCasing=d,t.stripTrailingChars=function(e,t,r){return e&&t&&e.endsWith(t)&&(!r||e!==t)?e.substring(0,e.length-t.length):e},t.replaceAllSpaces=function e(t){return t&&t.includes(" ")?e(t.replace(" ","")):t},t.InvokeManualResize=function(){var e=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;setTimeout((function(){a.MJGlobal.Instance.RaiseEvent({event:u.MJEventType.ManualResizeRequest,eventCode:"",args:null,component:t||e})}),arguments.length>0&&void 0!==arguments[0]?arguments[0]:50)},t.uuidv4=function(){return(0,c.v4)()},t.compareStringsByLine=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=e.split("\n"),o=t.split("\n"),i=Math.max(n.length,o.length),a=[];function u(e){r&&console.log(e),a.push(e)}n.length!==o.length&&u("Total lines: ".concat(n.length," vs ").concat(o.length));for(var c=0;c<i;c++){var s=n[c]||"",l=o[c]||"";if(s!==l){u("\n🔴 Difference at line ".concat(c+1,":")),u('Line 1: "'.concat(s,'"')),u('Line 2: "'.concat(l,'"'));for(var f=0;f<Math.max(s.length,l.length);f++)if(s[f]!==l[f]){u(" First diff at column ".concat(f+1,":")),u(' Char 1: "'.concat(s[f],'" (code: ').concat(s.charCodeAt(f)||"undefined",")")),u(' Char 2: "'.concat(l[f],'" (code: ').concat(l.charCodeAt(f)||"undefined",")")),u(' Context: "'.concat(s.substring(Math.max(0,f-10),f+10),'"'));break}if(c>5){u("\n... and ".concat(i-c-1," more lines with differences"));break}}}return a},t.ParseJSONRecursive=function(e){var t,r,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return y(e,{maxDepth:null!==(t=o.maxDepth)&&void 0!==t?t:100,extractInlineJson:null!==(r=o.extractInlineJson)&&void 0!==r&&r,debug:null!==(n=o.debug)&&void 0!==n&&n},0,"root")}},214:(e,t)=>{"use strict";function r(e){if(e.startsWith("/")){var t=e.lastIndexOf("/");if(t>0){var r=e.slice(1,t),n=e.slice(t+1);return new RegExp(r,n)}return new RegExp(e.slice(1),"i")}var o=e.replace(/[.+?^${}()|[\]\\]/g,"\\$&"),i=e.startsWith("*"),a=e.endsWith("*");return o=(o=o.replace(/^\*/,"").replace(/\*$/,"")).replace(/\*/g,".*"),i||(o="^"+o),a||(o+="$"),new RegExp(o,"i")}function n(e){return e instanceof RegExp?e:r(e)}function o(e){return e.map(n)}Object.defineProperty(t,"__esModule",{value:!0}),t.matchesAllPatterns=t.matchesAnyPattern=t.ensureRegExps=t.ensureRegExp=t.parsePatterns=t.parsePattern=void 0,t.parsePattern=r,t.parsePatterns=function(e){return e.map(r)},t.ensureRegExp=n,t.ensureRegExps=o,t.matchesAnyPattern=function(e,t){return o(t).some((function(t){return t.test(e)}))},t.matchesAllPatterns=function(e,t){return o(t).every((function(t){return t.test(e)}))}},5797:(e,t)=>{"use strict";function r(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}Object.defineProperty(t,"__esModule",{value:!0}),t.getJSXConfig=t.JSX_PRAGMAS=t.validateBabelPresets=t.getBabelConfig=t.DEVELOPMENT_CONFIG=t.PRODUCTION_CONFIG=t.DEFAULT_PLUGINS=t.DEFAULT_PRESETS=void 0,t.DEFAULT_PRESETS=["react"],t.DEFAULT_PLUGINS=[],t.PRODUCTION_CONFIG={presets:t.DEFAULT_PRESETS,plugins:r(t.DEFAULT_PLUGINS),minified:!0,comments:!1},t.DEVELOPMENT_CONFIG={presets:t.DEFAULT_PRESETS,plugins:r(t.DEFAULT_PLUGINS),sourceMaps:"inline",minified:!1,comments:!0},t.getBabelConfig=function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?t.PRODUCTION_CONFIG:t.DEVELOPMENT_CONFIG},t.validateBabelPresets=function(e){return!(!e||!e.availablePresets)&&"react"in e.availablePresets},t.JSX_PRAGMAS={classic:{pragma:"React.createElement",pragmaFrag:"React.Fragment"},automatic:{runtime:"automatic",importSource:"react"}},t.getJSXConfig=function(e){return e&&parseInt(e.split(".")[0])>=17?t.JSX_PRAGMAS.automatic:t.JSX_PRAGMAS.classic}},4107:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return t};var e,t={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),u=new L(n||[]);return a(i,"_invoke",{value:C(e,r,u)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var y="suspendedStart",h="suspendedYield",v="executing",m="completed",b={};function g(){}function w(){}function _(){}var O={};f(O,c,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(T([])));E&&E!==r&&i.call(E,c)&&(O=E);var P=_.prototype=g.prototype=Object.create(O);function j(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function r(o,a,u,c){var s=d(e[o],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&i.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,u,c)}),(function(e){r("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return r("throw",e,u,c)}))}c(s.arg)}var o;a(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function C(t,r,n){var o=y;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=k(u,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=d(t,r,n);if("normal"===s.type){if(o=n.done?m:h,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function T(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(i.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(n(t)+" is not iterable")}return w.prototype=_,a(P,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:w,configurable:!0}),w.displayName=f(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,f(e,l,"GeneratorFunction")),e.prototype=Object.create(P),e},t.awrap=function(e){return{__await:e}},j(x.prototype),f(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(p(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},j(P),f(P,l,"Generator"),f(P,c,(function(){return this})),f(P,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=T,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),s=i.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}function i(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function u(e){i(a,n,o,u,c,"next",e)}function c(e){i(a,n,o,u,c,"throw",e)}u(void 0)}))}}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return(t=f(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,f(n.key),n)}}function f(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentCompiler=void 0;var p=r(4324),d={babel:{presets:["react"],plugins:[]},minify:!1,sourceMaps:!1,cache:!0,maxCacheSize:100},y=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=c(c({},d),t),this.compilationCache=new Map},t=[{key:"setBabelInstance",value:function(e){this.babelInstance=e}},{key:"compile",value:(u=a(o().mark((function e(t){var r,n,i,a,u,c;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=Date.now(),e.prev=1,!this.config.cache){e.next=6;break}if(!(n=this.getCachedComponent(t.componentName,t.componentCode))){e.next=6;break}return e.abrupt("return",{success:!0,component:n,duration:Date.now()-r});case 6:return this.validateCompileOptions(t),e.next=9,this.loadRequiredLibraries(t.libraries,t.allLibraries);case 9:return i=e.sent,a=this.transpileComponent(t.componentCode,t.componentName,t),u=this.createComponentFactory(a,t.componentName,i),c={component:u,id:this.generateComponentId(t.componentName),name:t.componentName,compiledAt:new Date,warnings:[]},this.config.cache&&this.cacheComponent(c,t.componentCode),e.abrupt("return",{success:!0,component:c,duration:Date.now()-r,size:a.length});case 17:return e.prev=17,e.t0=e.catch(1),e.abrupt("return",{success:!1,error:this.createCompilationError(e.t0,t.componentName),duration:Date.now()-r});case 20:case"end":return e.stop()}}),e,this,[[1,17]])}))),function(e){return u.apply(this,arguments)})},{key:"transpileComponent",value:function(e,t,r){if(!this.babelInstance)throw new Error("Babel instance not set. Call setBabelInstance() first.");var n=this.wrapComponentCode(e,t,r.libraries);try{return this.babelInstance.transform(n,{presets:r.babelPresets||this.config.babel.presets,plugins:r.babelPlugins||this.config.babel.plugins,filename:"".concat(t,".jsx"),sourceMaps:this.config.sourceMaps,minified:this.config.minify}).code}catch(e){throw new Error("Transpilation failed: ".concat(e.message))}}},{key:"wrapComponentCode",value:function(e,t,r){var n=r&&r.length>0?r.filter((function(e){return e.globalVariable})).map((function(e){return"const ".concat(e.globalVariable," = libraries['").concat(e.globalVariable,"'];")})).join("\n "):"";return"\n function createComponent(\n React, ReactDOM, \n useState, useEffect, useCallback, useMemo, useRef, useContext, useReducer, useLayoutEffect,\n libraries, styles, console\n ) {\n ".concat(n?n+"\n ":"").concat(e,"\n \n // Ensure the component exists\n if (typeof ").concat(t," === 'undefined') {\n throw new Error('Component \"").concat(t,"\" is not defined in the provided code');\n }\n \n // Return the component with utilities\n return {\n component: ").concat(t,",\n print: function() { \n if (typeof window !== 'undefined' && window.print) {\n window.print(); \n }\n },\n refresh: function(data) { \n // Refresh functionality is handled by the host environment\n }\n };\n }\n ")}},{key:"loadRequiredLibraries",value:(i=a(o().mark((function e(t,r){var i,u,c=this;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=new Map,console.log("🔍 loadRequiredLibraries called with:",{librariesCount:(null==t?void 0:t.length)||0,libraries:null==t?void 0:t.map((function(e){return{name:e.name,version:e.version,globalVariable:e.globalVariable}}))}),t&&0!==t.length){e.next=5;break}return console.log("📚 No libraries to load, returning empty map"),e.abrupt("return",i);case 5:if("undefined"!=typeof window){e.next=8;break}return console.warn("Library loading is only supported in browser environments"),e.abrupt("return",i);case 8:if(!r){e.next=13;break}return e.next=11,p.LibraryRegistry.Config(!1,r);case 11:e.next=14;break;case 13:console.warn("⚠️ No componentLibraries provided for LibraryRegistry initialization");case 14:return u=t.map(function(){var e=a(o().mark((function e(t){var r,a,u,s,l,f;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("📦 Processing library: ".concat(t.name)),r=p.LibraryRegistry.isApproved(t.name),console.log(" ✓ Approved check for ".concat(t.name,": ").concat(r)),r){e.next=6;break}throw console.error(" ❌ Library '".concat(t.name,"' is not approved")),new Error("Library '".concat(t.name,"' is not approved. Only approved libraries can be used."));case 6:if(a=p.LibraryRegistry.getLibrary(t.name),console.log(" ✓ Library definition found for ".concat(t.name,": ").concat(!!a)),a){e.next=11;break}throw console.error(" ❌ Library '".concat(t.name,"' not found in registry")),new Error("Library '".concat(t.name,"' not found in registry"));case 11:if(u=p.LibraryRegistry.resolveVersion(t.name,t.version),console.log(" ✓ Resolved version for ".concat(t.name,": ").concat(u)),s=p.LibraryRegistry.getCdnUrl(t.name,u),console.log(" ✓ CDN URL for ".concat(t.name,": ").concat(s)),s){e.next=18;break}throw console.error(" ❌ No CDN URL found for library '".concat(t.name,"' version '").concat(t.version||"default","'")),new Error("No CDN URL found for library '".concat(t.name,"' version '").concat(t.version||"default","'"));case 18:if(!window[t.globalVariable]){e.next=22;break}return console.log(" ℹ️ Library ".concat(t.name," already loaded globally as ").concat(t.globalVariable)),i.set(t.globalVariable,window[t.globalVariable]),e.abrupt("return");case 22:if(null==(l=a.versions[u||a.defaultVersion])||!l.cssUrls){e.next=26;break}return e.next=26,c.loadStyles(l.cssUrls);case 26:return console.log(" 📥 Loading script from CDN for ".concat(t.name,"...")),e.next=29,c.loadScript(s,t.globalVariable);case 29:if(f=window[t.globalVariable],console.log(" ✓ Library ".concat(t.name," loaded successfully, global variable ").concat(t.globalVariable," is:"),n(f)),!f){e.next=36;break}i.set(t.globalVariable,f),console.log(" ✅ Added ".concat(t.name," to loaded libraries map")),e.next=38;break;case 36:throw console.error(" ❌ Library '".concat(t.name,"' failed to expose global variable '").concat(t.globalVariable,"'")),new Error("Library '".concat(t.name,"' failed to load or did not expose '").concat(t.globalVariable,"'"));case 38:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.next=17,Promise.all(u);case 17:return console.log("✅ All libraries loaded successfully. Total: ".concat(i.size)),console.log("📚 Loaded libraries map:",Array.from(i.keys())),e.abrupt("return",i);case 20:case"end":return e.stop()}}),e)}))),function(e,t){return i.apply(this,arguments)})},{key:"loadStyles",value:(r=a(o().mark((function e(t){var r;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.map((function(e){return new Promise((function(t){if(document.querySelector('link[href="'.concat(e,'"]')))t();else{var r=document.createElement("link");r.rel="stylesheet",r.href=e,document.head.appendChild(r),t()}}))})),e.next=3,Promise.all(r);case 3:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})},{key:"loadScript",value:function(e,t){return new Promise((function(r,n){if(document.querySelector('script[src="'.concat(e,'"]'))){var o=0;!function e(){window[t]?r():o>=50?n(new Error("".concat(t," not found after ").concat(5e3,"ms waiting for existing script"))):(o++,setTimeout(e,100))}()}else{var i=document.createElement("script");i.src=e,i.async=!0,i.onload=function(){var o=0;!function i(){window[t]?(console.log(" ✓ Global variable ".concat(t," found after ").concat(100*o,"ms")),r()):o>=20?(console.error(" ❌ ".concat(t," not found after ").concat(100*o,"ms")),console.log(" ℹ️ Window properties:",Object.keys(window).filter((function(e){return e.toLowerCase().includes(t.toLowerCase())}))),n(new Error("".concat(t," not found after loading script from ").concat(e)))):(o++,setTimeout(i,100))}()},i.onerror=function(){n(new Error("Failed to load script: ".concat(e)))},document.head.appendChild(i)}}))}},{key:"createComponentFactory",value:function(e,t,r){try{var n=new Function("React","ReactDOM","useState","useEffect","useCallback","useMemo","useRef","useContext","useReducer","useLayoutEffect","libraries","styles","console","".concat(e,"; return createComponent;"));return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=e.React,i=e.ReactDOM,a=e.libraries,u=c({},void 0===a?{}:a);return r.forEach((function(e,t){u[t]=e})),n(o,i,o.useState,o.useEffect,o.useCallback,o.useMemo,o.useRef,o.useContext,o.useReducer,o.useLayoutEffect,u,t,console)(o,i,o.useState,o.useEffect,o.useCallback,o.useMemo,o.useRef,o.useContext,o.useReducer,o.useLayoutEffect,u,t,console)}}catch(e){throw new Error("Failed to create component factory: ".concat(e.message))}}},{key:"validateCompileOptions",value:function(e){if(!e)throw new Error('Component compilation failed: No options provided.\nExpected an object with componentName and componentCode properties.\nExample: { componentName: "MyComponent", componentCode: "function MyComponent() { ... }" }');if(!e.componentName){var t=Object.keys(e).join(", ");throw new Error("Component compilation failed: Component name is required.\n"+"Received options with keys: [".concat(t,"]\n")+'Please ensure your component spec includes a "name" property.\nExample: { name: "MyComponent", code: "..." }')}if(!e.componentCode)throw new Error('Component compilation failed: Component code is required for "'.concat(e.componentName,'".\n')+'Please ensure your component spec includes a "code" property with the component source code.\nExample: { name: "MyComponent", code: "function MyComponent() { return <div>Hello</div>; }" }');if("string"!=typeof e.componentCode){var r=n(e.componentCode);throw new Error('Component compilation failed: Component code must be a string for "'.concat(e.componentName,'".\n')+"Received type: ".concat(r,"\n")+"Received value: ".concat(JSON.stringify(e.componentCode).substring(0,100),"...\n")+"Please ensure the code property contains a string of JavaScript/JSX code.")}if(0===e.componentCode.trim().length)throw new Error('Component compilation failed: Component code is empty for "'.concat(e.componentName,'".\n')+"The code property must contain valid JavaScript/JSX code defining a React component.");if(!e.componentCode.includes(e.componentName))throw new Error('Component compilation failed: Component code must define a component named "'.concat(e.componentName,'".\n')+"The function/component name in the code must match the componentName property.\n"+"Expected to find: function ".concat(e.componentName,"(...) or const ").concat(e.componentName," = ...\n")+"Code preview: "+e.componentCode.substring(0,200)+"...")}},{key:"generateComponentId",value:function(e){return"".concat(e,"_").concat(Date.now(),"_").concat(Math.random().toString(36).substr(2,9))}},{key:"getCachedComponent",value:function(e,t){var r=this.createCacheKey(e,t);return this.compilationCache.get(r)}},{key:"createCacheKey",value:function(e,t){for(var r=0,n=0;n<t.length;n++)r=(r<<5)-r+t.charCodeAt(n),r|=0;return"".concat(e,"_").concat(r.toString(36))}},{key:"cacheComponent",value:function(e,t){if(this.compilationCache.size>=this.config.maxCacheSize){var r=this.compilationCache.keys().next().value;r&&this.compilationCache.delete(r)}var n=this.createCacheKey(e.name,t);this.compilationCache.set(n,e)}},{key:"createCompilationError",value:function(e,t){return{message:e.message||"Unknown compilation error",stack:e.stack,componentName:t,phase:"compilation",details:e}}},{key:"clearCache",value:function(){this.compilationCache.clear()}},{key:"getCacheSize",value:function(){return this.compilationCache.size}},{key:"updateConfig",value:function(e){this.config=c(c({},this.config),e)}}],t&&l(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r,i,u}();t.ComponentCompiler=y},1462:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getJSXConfig=t.validateBabelPresets=t.getBabelConfig=t.DEVELOPMENT_CONFIG=t.PRODUCTION_CONFIG=t.DEFAULT_PLUGINS=t.DEFAULT_PRESETS=t.ComponentCompiler=void 0;var n=r(4107);Object.defineProperty(t,"ComponentCompiler",{enumerable:!0,get:function(){return n.ComponentCompiler}});var o=r(5797);Object.defineProperty(t,"DEFAULT_PRESETS",{enumerable:!0,get:function(){return o.DEFAULT_PRESETS}}),Object.defineProperty(t,"DEFAULT_PLUGINS",{enumerable:!0,get:function(){return o.DEFAULT_PLUGINS}}),Object.defineProperty(t,"PRODUCTION_CONFIG",{enumerable:!0,get:function(){return o.PRODUCTION_CONFIG}}),Object.defineProperty(t,"DEVELOPMENT_CONFIG",{enumerable:!0,get:function(){return o.DEVELOPMENT_CONFIG}}),Object.defineProperty(t,"getBabelConfig",{enumerable:!0,get:function(){return o.getBabelConfig}}),Object.defineProperty(t,"validateBabelPresets",{enumerable:!0,get:function(){return o.validateBabelPresets}}),Object.defineProperty(t,"getJSXConfig",{enumerable:!0,get:function(){return o.getJSXConfig}})},8478:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=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.createReactRuntime=t.DEFAULT_CONFIGS=t.VERSION=t.CacheManager=t.resourceManager=t.ResourceManager=t.ComponentErrorAnalyzer=t.LibraryRegistry=t.LibraryLoader=t.createStandardLibraries=t.StandardLibraryManager=t.createDefaultComponentStyles=t.SetupStyles=t.reactRootManager=t.ReactRootManager=t.countComponentsInHierarchy=t.flattenComponentHierarchy=t.validateComponentSpec=t.registerComponentHierarchy=t.ComponentHierarchyRegistrar=t.extractPropPaths=t.wrapCallbacksWithLogging=t.createPropsTransformer=t.mergeProps=t.validateComponentProps=t.normalizeStyles=t.normalizeCallbacks=t.buildComponentProps=t.createErrorLogger=t.formatComponentError=t.withErrorBoundary=t.createErrorBoundary=t.ComponentSpec=t.ComponentResolver=t.ComponentRegistry=t.getJSXConfig=t.validateBabelPresets=t.getBabelConfig=t.DEVELOPMENT_CONFIG=t.PRODUCTION_CONFIG=t.DEFAULT_PLUGINS=t.DEFAULT_PRESETS=t.ComponentCompiler=void 0;var i=r(1462),a=r(9072),u=r(9072);o(r(1676),t);var c=r(1462);Object.defineProperty(t,"ComponentCompiler",{enumerable:!0,get:function(){return c.ComponentCompiler}});var s=r(1462);Object.defineProperty(t,"DEFAULT_PRESETS",{enumerable:!0,get:function(){return s.DEFAULT_PRESETS}}),Object.defineProperty(t,"DEFAULT_PLUGINS",{enumerable:!0,get:function(){return s.DEFAULT_PLUGINS}}),Object.defineProperty(t,"PRODUCTION_CONFIG",{enumerable:!0,get:function(){return s.PRODUCTION_CONFIG}}),Object.defineProperty(t,"DEVELOPMENT_CONFIG",{enumerable:!0,get:function(){return s.DEVELOPMENT_CONFIG}}),Object.defineProperty(t,"getBabelConfig",{enumerable:!0,get:function(){return s.getBabelConfig}}),Object.defineProperty(t,"validateBabelPresets",{enumerable:!0,get:function(){return s.validateBabelPresets}}),Object.defineProperty(t,"getJSXConfig",{enumerable:!0,get:function(){return s.getJSXConfig}});var l=r(9072);Object.defineProperty(t,"ComponentRegistry",{enumerable:!0,get:function(){return l.ComponentRegistry}});var f=r(9072);Object.defineProperty(t,"ComponentResolver",{enumerable:!0,get:function(){return f.ComponentResolver}}),Object.defineProperty(t,"ComponentSpec",{enumerable:!0,get:function(){return f.ComponentSpec}});var p=r(2929);Object.defineProperty(t,"createErrorBoundary",{enumerable:!0,get:function(){return p.createErrorBoundary}}),Object.defineProperty(t,"withErrorBoundary",{enumerable:!0,get:function(){return p.withErrorBoundary}}),Object.defineProperty(t,"formatComponentError",{enumerable:!0,get:function(){return p.formatComponentError}}),Object.defineProperty(t,"createErrorLogger",{enumerable:!0,get:function(){return p.createErrorLogger}});var d=r(2929);Object.defineProperty(t,"buildComponentProps",{enumerable:!0,get:function(){return d.buildComponentProps}}),Object.defineProperty(t,"normalizeCallbacks",{enumerable:!0,get:function(){return d.normalizeCallbacks}}),Object.defineProperty(t,"normalizeStyles",{enumerable:!0,get:function(){return d.normalizeStyles}}),Object.defineProperty(t,"validateComponentProps",{enumerable:!0,get:function(){return d.validateComponentProps}}),Object.defineProperty(t,"mergeProps",{enumerable:!0,get:function(){return d.mergeProps}}),Object.defineProperty(t,"createPropsTransformer",{enumerable:!0,get:function(){return d.createPropsTransformer}}),Object.defineProperty(t,"wrapCallbacksWithLogging",{enumerable:!0,get:function(){return d.wrapCallbacksWithLogging}}),Object.defineProperty(t,"extractPropPaths",{enumerable:!0,get:function(){return d.extractPropPaths}});var y=r(2929);Object.defineProperty(t,"ComponentHierarchyRegistrar",{enumerable:!0,get:function(){return y.ComponentHierarchyRegistrar}}),Object.defineProperty(t,"registerComponentHierarchy",{enumerable:!0,get:function(){return y.registerComponentHierarchy}}),Object.defineProperty(t,"validateComponentSpec",{enumerable:!0,get:function(){return y.validateComponentSpec}}),Object.defineProperty(t,"flattenComponentHierarchy",{enumerable:!0,get:function(){return y.flattenComponentHierarchy}}),Object.defineProperty(t,"countComponentsInHierarchy",{enumerable:!0,get:function(){return y.countComponentsInHierarchy}});var h=r(2929);Object.defineProperty(t,"ReactRootManager",{enumerable:!0,get:function(){return h.ReactRootManager}}),Object.defineProperty(t,"reactRootManager",{enumerable:!0,get:function(){return h.reactRootManager}});var v=r(5329);Object.defineProperty(t,"SetupStyles",{enumerable:!0,get:function(){return v.SetupStyles}}),Object.defineProperty(t,"createDefaultComponentStyles",{enumerable:!0,get:function(){return v.createDefaultComponentStyles}});var m=r(5346);Object.defineProperty(t,"StandardLibraryManager",{enumerable:!0,get:function(){return m.StandardLibraryManager}}),Object.defineProperty(t,"createStandardLibraries",{enumerable:!0,get:function(){return m.createStandardLibraries}});var b=r(7448);Object.defineProperty(t,"LibraryLoader",{enumerable:!0,get:function(){return b.LibraryLoader}});var g=r(4324);Object.defineProperty(t,"LibraryRegistry",{enumerable:!0,get:function(){return g.LibraryRegistry}});var w=r(5408);Object.defineProperty(t,"ComponentErrorAnalyzer",{enumerable:!0,get:function(){return w.ComponentErrorAnalyzer}});var _=r(2859);Object.defineProperty(t,"ResourceManager",{enumerable:!0,get:function(){return _.ResourceManager}}),Object.defineProperty(t,"resourceManager",{enumerable:!0,get:function(){return _.resourceManager}});var O=r(5601);Object.defineProperty(t,"CacheManager",{enumerable:!0,get:function(){return O.CacheManager}}),t.VERSION="2.69.1",t.DEFAULT_CONFIGS={compiler:{babel:{presets:["react"],plugins:[]},minify:!1,sourceMaps:!1,cache:!0,maxCacheSize:100},registry:{maxComponents:1e3,cleanupInterval:6e4,useLRU:!0,enableNamespaces:!0}},t.createReactRuntime=function(e,r){var n=new i.ComponentCompiler(null==r?void 0:r.compiler);n.setBabelInstance(e);var o=new a.ComponentRegistry(null==r?void 0:r.registry);return{compiler:n,registry:o,resolver:new u.ComponentResolver(o),version:t.VERSION}}},8151:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=a(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,i=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw i}}}}function a(e,t){if(e){if("string"==typeof e)return u(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return(t=p(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,p(n.key),n)}}function p(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentRegistry=void 0;var d=r(2859),y={maxComponents:1e3,cleanupInterval:6e4,useLRU:!0,enableNamespaces:!0},h=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=s(s({},y),t),this.registry=new Map,this.registryId="component-registry-".concat(Date.now()),this.config.cleanupInterval>0&&this.startCleanupTimer()},t=[{key:"register",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Global",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"v1",o=arguments.length>4?arguments[4]:void 0,i=this.generateRegistryKey(e,r,n),a={id:i,name:e,version:n,namespace:r,registeredAt:new Date,tags:o},u={component:t,metadata:a,lastAccessed:new Date,refCount:0};return this.registry.size>=this.config.maxComponents&&this.config.useLRU&&this.evictLRU(),this.registry.set(i,u),a}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Global",r=arguments.length>2?arguments[2]:void 0,n=r?this.generateRegistryKey(e,t,r):this.findLatestVersion(e,t);if(n){var o=this.registry.get(n);return o?(o.lastAccessed=new Date,o.refCount++,o.component):void 0}}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Global",r=arguments.length>2?arguments[2]:void 0,n=r?this.generateRegistryKey(e,t,r):this.findLatestVersion(e,t);return!!n&&this.registry.has(n)}},{key:"unregister",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Global",r=arguments.length>2?arguments[2]:void 0,n=r?this.generateRegistryKey(e,t,r):this.findLatestVersion(e,t);return!!n&&this.registry.delete(n)}},{key:"getNamespace",value:function(e){var t,r=[],n=i(this.registry.values());try{for(n.s();!(t=n.n()).done;){var o=t.value;o.metadata.namespace===e&&r.push(o.metadata)}}catch(e){n.e(e)}finally{n.f()}return r}},{key:"getAll",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Global",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"v1",n={},o=i(this.registry.values());try{for(o.s();!(e=o.n()).done;){var a=e.value;a.metadata.namespace===t&&a.metadata.version===r&&(n[a.metadata.name]=a.component)}}catch(e){o.e(e)}finally{o.f()}return n}},{key:"getNamespaces",value:function(){var e,t=new Set,r=i(this.registry.values());try{for(r.s();!(e=r.n()).done;){var n=e.value;t.add(n.metadata.namespace)}}catch(e){r.e(e)}finally{r.f()}return Array.from(t)}},{key:"getByTags",value:function(e){var t,r=[],n=i(this.registry.values());try{for(n.s();!(t=n.n()).done;){var o,a=t.value;null!==(o=a.metadata.tags)&&void 0!==o&&o.some((function(t){return e.includes(t)}))&&r.push(a.metadata)}}catch(e){n.e(e)}finally{n.f()}return r}},{key:"release",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Global",r=arguments.length>2?arguments[2]:void 0,n=r?this.generateRegistryKey(e,t,r):this.findLatestVersion(e,t);if(n){var o=this.registry.get(n);o&&o.refCount>0&&o.refCount--}}},{key:"clear",value:function(){this.registry.clear()}},{key:"size",value:function(){return this.registry.size}},{key:"cleanup",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=[],n=Date.now(),a=i(this.registry);try{for(a.s();!(e=a.n()).done;){var u=o(e.value,2),c=u[0],s=u[1],l=n-s.lastAccessed.getTime(),f=0===s.refCount&&l>this.config.cleanupInterval;(t||f)&&r.push(c)}}catch(e){a.e(e)}finally{a.f()}for(var p=0,d=r;p<d.length;p++){var y=d[p];this.registry.delete(y)}return r.length}},{key:"getStats",value:function(){var e,t,r,n=0,o=i(this.registry.values());try{for(o.s();!(r=o.n()).done;){var a=r.value;n+=a.refCount,(!e||a.metadata.registeredAt<e)&&(e=a.metadata.registeredAt),(!t||a.metadata.registeredAt>t)&&(t=a.metadata.registeredAt)}}catch(e){o.e(e)}finally{o.f()}return{totalComponents:this.registry.size,namespaces:this.getNamespaces().length,totalRefCount:n,oldestComponent:e,newestComponent:t}}},{key:"destroy",value:function(){this.stopCleanupTimer(),this.clear(),d.resourceManager.cleanupComponent(this.registryId)}},{key:"generateRegistryKey",value:function(e,t,r){return this.config.enableNamespaces?"".concat(t,"::").concat(e,"@").concat(r):"".concat(e,"@").concat(r)}},{key:"findLatestVersion",value:function(e,t){var r,n,a,u=i(this.registry);try{for(u.s();!(a=u.n()).done;){var c=o(a.value,2),s=c[0],l=c[1];l.metadata.name===e&&l.metadata.namespace===t&&(!n||l.metadata.registeredAt>n)&&(n=l.metadata.registeredAt,r=s)}}catch(e){u.e(e)}finally{u.f()}return r}},{key:"evictLRU",value:function(){var e,t,r,n=i(this.registry);try{for(n.s();!(r=n.n()).done;){var a=o(r.value,2),u=a[0],c=a[1];c.refCount>0||(!t||c.lastAccessed<t)&&(t=c.lastAccessed,e=u)}}catch(e){n.e(e)}finally{n.f()}e&&this.registry.delete(e)}},{key:"startCleanupTimer",value:function(){var e=this;this.cleanupTimer=d.resourceManager.setInterval(this.registryId,(function(){e.cleanup()}),this.config.cleanupInterval,{purpose:"component-registry-cleanup"})}},{key:"stopCleanupTimer",value:function(){this.cleanupTimer&&(d.resourceManager.clearInterval(this.registryId,this.cleanupTimer),this.cleanupTimer=void 0)}}],t&&f(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();t.ComponentRegistry=h},6090:(e,t)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,a=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentResolver=void 0;var u=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.registry=t},t=[{key:"resolveComponents",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Global",r={};return this.resolveComponentHierarchy(e,r,t),r}},{key:"resolveComponentHierarchy",value:function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Set;if(o.has(e.name))console.warn("Circular dependency detected for component: ".concat(e.name));else{o.add(e.name);var i=this.registry.get(e.name,r);i&&(t[e.name]=i);var a,u=n(e.dependencies||[]);try{for(u.s();!(a=u.n()).done;){var c=a.value;this.resolveComponentHierarchy(c,t,r,o)}}catch(e){u.e(e)}finally{u.f()}}}},{key:"validateDependencies",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Global",r=[],n=new Set;return this.checkDependencies(e,t,r,n),r}},{key:"checkDependencies",value:function(e,t,r,o){if(!o.has(e.name)){o.add(e.name),this.registry.has(e.name,t)||r.push(e.name);var i,a=n(e.dependencies||[]);try{for(a.s();!(i=a.n()).done;){var u=i.value;this.checkDependencies(u,t,r,o)}}catch(e){a.e(e)}finally{a.f()}}}},{key:"getDependencyGraph",value:function(e){var t=new Map,r=new Set;return this.buildDependencyGraph(e,t,r),t}},{key:"buildDependencyGraph",value:function(e,t,r){if(!r.has(e.name)){r.add(e.name);var o=e.dependencies||[],i=o.map((function(e){return e.name}));t.set(e.name,i);var a,u=n(o);try{for(u.s();!(a=u.n()).done;){var c=a.value;this.buildDependencyGraph(c,t,r)}}catch(e){u.e(e)}finally{u.f()}}}},{key:"getLoadOrder",value:function(e){var t,r=this.getDependencyGraph(e),o=new Set,i=[],a=n(r.keys());try{for(a.s();!(t=a.n()).done;){var u=t.value;o.has(u)||this.topologicalSortDFS(u,r,o,i)}}catch(e){a.e(e)}finally{a.f()}return i.reverse()}},{key:"topologicalSortDFS",value:function(e,t,r,o){r.add(e);var i,a=n(t.get(e)||[]);try{for(a.s();!(i=a.n()).done;){var u=i.value;r.has(u)||this.topologicalSortDFS(u,t,r,o)}}catch(e){a.e(e)}finally{a.f()}o.push(e)}},{key:"resolveInOrder",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Global",o=[],i=n(this.getLoadOrder(e));try{for(i.s();!(t=i.n()).done;){var a=t.value,u=this.registry.get(a,r);u&&o.push({name:a,component:u})}}catch(e){i.e(e)}finally{i.f()}return o}},{key:"flattenComponentSpecs",value:function(e){var t=[],r=new Set;return this.collectComponentSpecs(e,t,r),t}},{key:"collectComponentSpecs",value:function(e,t,r){if(!r.has(e.name)){r.add(e.name),t.push(e);var o,i=n(e.dependencies||[]);try{for(i.s();!(o=i.n()).done;){var a=o.value;this.collectComponentSpecs(a,t,r)}}catch(e){i.e(e)}finally{i.f()}}}}],t&&i(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();t.ComponentResolver=u},9072:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentSpec=t.ComponentResolver=t.ComponentRegistry=void 0;var n=r(8151);Object.defineProperty(t,"ComponentRegistry",{enumerable:!0,get:function(){return n.ComponentRegistry}});var o=r(6090);Object.defineProperty(t,"ComponentResolver",{enumerable:!0,get:function(){return o.ComponentResolver}});var i=r(7890);Object.defineProperty(t,"ComponentSpec",{enumerable:!0,get:function(){return i.ComponentSpec}})},3812:(e,t)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=o(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,a=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw a}}}}function o(e,t){if(e){if("string"==typeof e)return i(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function a(){a=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),u=new L(n||[]);return i(a,"_invoke",{value:C(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var y="suspendedStart",h="suspendedYield",v="executing",m="completed",b={};function g(){}function w(){}function _(){}var O={};f(O,c,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(T([])));E&&E!==n&&o.call(E,c)&&(O=E);var P=_.prototype=g.prototype=Object.create(O);function j(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(i,a,u,c){var s=d(e[i],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==r(f)&&o.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,u,c)}),(function(e){n("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return n("throw",e,u,c)}))}c(s.arg)}var a;i(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function C(t,r,n){var o=y;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=k(u,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=d(t,r,n);if("normal"===s.type){if(o=n.done?m:h,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function T(t){if(t||""===t){var n=t[c];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(o.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return w.prototype=_,i(P,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:w,configurable:!0}),w.displayName=f(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,f(e,l,"GeneratorFunction")),e.prototype=Object.create(P),e},t.awrap=function(e){return{__await:e}},j(x.prototype),f(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(p(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},j(P),f(P,l,"Generator"),f(P,c,(function(){return this})),f(P,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=T,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),s=o.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}function u(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function c(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){u(i,n,o,a,c,"next",e)}function c(e){u(i,n,o,a,c,"throw",e)}a(void 0)}))}}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}Object.defineProperty(t,"__esModule",{value:!0}),t.countComponentsInHierarchy=t.flattenComponentHierarchy=t.validateComponentSpec=t.registerComponentHierarchy=t.ComponentHierarchyRegistrar=void 0;var f=function(){return e=function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.compiler=t,this.registry=r,this.runtimeContext=n},t=[{key:"registerHierarchy",value:(i=c(a().mark((function e(t,r){var n,o,i,u,c,s,l,f,p,d,y,h,v,m,b,g;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.styles,u=r.namespace,c=void 0===u?"Global":u,s=r.version,l=void 0===s?"v1":s,f=r.continueOnError,p=void 0===f||f,d=r.allowOverride,y=void 0===d||d,console.log("🌳 ComponentHierarchyRegistrar.registerHierarchy:",{rootComponent:t.name,hasLibraries:!!(t.libraries&&t.libraries.length>0),libraryCount:(null===(n=t.libraries)||void 0===n?void 0:n.length)||0,libraries:null===(o=t.libraries)||void 0===o?void 0:o.map((function(e){return e.name}))}),h=[],v=[],m=[],e.next=7,this.registerSingleComponent(t,{styles:i,namespace:c,version:l,allowOverride:y,allLibraries:r.allLibraries});case 7:if(!(b=e.sent).success){e.next=12;break}h.push(t.name),e.next=15;break;case 12:if(v.push(b.error),p){e.next=15;break}return e.abrupt("return",{success:!1,registeredComponents:h,errors:v,warnings:m});case 15:if(!((g=t.dependencies||[]).length>0)){e.next=20;break}return e.next=19,this.registerChildComponents(g,{styles:i,namespace:c,version:l,continueOnError:p,allowOverride:y,allLibraries:r.allLibraries},h,v,m);case 19:e.sent;case 20:return e.abrupt("return",{success:0===v.length,registeredComponents:h,errors:v,warnings:m});case 21:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"registerSingleComponent",value:(o=c(a().mark((function e(t,r){var n,o,i,u,c,s,l,f,p,d,y,h,v;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r.styles,o=r.namespace,i=void 0===o?"Global":o,u=r.version,c=void 0===u?"v1":u,s=r.allowOverride,l=void 0===s||s,e.prev=1,t.code){e.next=4;break}return e.abrupt("return",{success:!0,error:void 0});case 4:if(!this.registry.get(t.name,i,c)||l){e.next=7;break}return e.abrupt("return",{success:!1,error:{componentName:t.name,error:"Component already registered in ".concat(i,"/").concat(c),phase:"registration"}});case 7:return d={componentName:t.name,componentCode:t.code,styles:n,libraries:t.libraries,allLibraries:r.allLibraries},console.log("🔧 Compiling component ".concat(t.name," with libraries:"),{libraryCount:(null===(f=t.libraries)||void 0===f?void 0:f.length)||0,libraries:null===(p=t.libraries)||void 0===p?void 0:p.map((function(e){return{name:e.name,globalVariable:e.globalVariable}}))}),e.next=11,this.compiler.compile(d);case 11:if((y=e.sent).success){e.next=14;break}return e.abrupt("return",{success:!1,error:{componentName:t.name,error:(null===(h=y.error)||void 0===h?void 0:h.message)||"Unknown compilation error",phase:"compilation"}});case 14:return v=y.component.component(this.runtimeContext,n),this.registry.register(t.name,v.component,i,c),e.abrupt("return",{success:!0});case 19:return e.prev=19,e.t0=e.catch(1),e.abrupt("return",{success:!1,error:{componentName:t.name,error:e.t0 instanceof Error?e.t0.message:String(e.t0),phase:"registration"}});case 22:case"end":return e.stop()}}),e,this,[[1,19]])}))),function(e,t){return o.apply(this,arguments)})},{key:"registerChildComponents",value:(r=c(a().mark((function e(t,r,o,i,u){var c,s,l,f,p;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c=n(t),e.prev=1,c.s();case 3:if((s=c.n()).done){e.next=21;break}return l=s.value,e.next=7,this.registerSingleComponent(l,{styles:r.styles,namespace:r.namespace,version:r.version,allowOverride:r.allowOverride,allLibraries:r.allLibraries});case 7:if(!(f=e.sent).success){e.next=12;break}l.code&&o.push(l.name),e.next=15;break;case 12:if(i.push(f.error),r.continueOnError){e.next=15;break}return e.abrupt("return");case 15:if(!((p=l.dependencies||[]).length>0)){e.next=19;break}return e.next=19,this.registerChildComponents(p,r,o,i,u);case 19:e.next=3;break;case 21:e.next=26;break;case 23:e.prev=23,e.t0=e.catch(1),c.e(e.t0);case 26:return e.prev=26,c.f(),e.finish(26);case 29:case"end":return e.stop()}}),e,this,[[1,23,26,29]])}))),function(e,t,n,o,i){return r.apply(this,arguments)})}],t&&s(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r,o,i}();function p(){return(p=c(a().mark((function e(t,r,n,o,i){var u;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u=new f(r,n,o),e.abrupt("return",u.registerHierarchy(t,i));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}t.ComponentHierarchyRegistrar=f,t.registerComponentHierarchy=function(e,t,r,n,o){return p.apply(this,arguments)},t.validateComponentSpec=function e(t){var r=[];return t.name||r.push("Component specification must have a name"),t.code&&("string"!=typeof t.code&&r.push("Component code for ".concat(t.name," must be a string")),0===t.code.trim().length&&r.push("Component code for ".concat(t.name," cannot be empty"))),(t.dependencies||[]).forEach((function(t,n){e(t).forEach((function(e){r.push("Child ".concat(n," (").concat(t.name||"unnamed","): ").concat(e))}))})),r},t.flattenComponentHierarchy=function e(t){var r=[t];return(t.dependencies||[]).forEach((function(t){var n;r.push.apply(r,function(e){if(Array.isArray(e))return i(e)}(n=e(t))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||o(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())})),r},t.countComponentsInHierarchy=function e(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0;return(r||t.code)&&(n=1),(t.dependencies||[]).forEach((function(t){n+=e(t,r)})),n}},9654:(e,t)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}function i(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(i=function(){return!!e})()}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.onError,c=t.fallback,s=t.logErrors,l=void 0===s||s,f=t.recovery,p=void 0===f?"none":f;return function(t){function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=function(e,t,n){return t=a(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,i()?Reflect.construct(t,n||[],a(e).constructor):t.apply(e,n))}(this,s,[e])).handleRetry=function(){t.setState((function(e){return{hasError:!1,error:null,errorInfo:null,retryCount:e.retryCount+1}}))},t.handleReset=function(){t.setState({hasError:!1,error:null,errorInfo:null,retryCount:0})},t.state={hasError:!1,error:null,errorInfo:null,retryCount:0},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(s,t),f=s,y=[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0,error:e}}}],(d=[{key:"componentDidCatch",value:function(e,t){if(l&&(console.error("React Error Boundary caught error:",e),console.error("Error Info:",t)),o)try{o(e,t)}catch(e){console.error("Error in custom error handler:",e)}this.setState({errorInfo:t})}},{key:"render",value:function(){if(this.state.hasError){if(c)return"function"==typeof c?c({error:this.state.error,errorInfo:this.state.errorInfo,retry:this.handleRetry,reset:this.handleReset,retryCount:this.state.retryCount}):c;var t="retry"===p&&this.state.retryCount<3,r="reset"===p;return e.createElement("div",{style:{padding:"20px",backgroundColor:"#f8f8f8",border:"1px solid #ddd",borderRadius:"4px",margin:"10px"}},e.createElement("h2",{style:{color:"#d32f2f"}},"Component Error"),e.createElement("p",{style:{color:"#666"}},"An error occurred while rendering this component."),this.state.error&&e.createElement("details",{style:{marginTop:"10px"}},e.createElement("summary",{style:{cursor:"pointer",color:"#333"}},"Error Details"),e.createElement("pre",{style:{backgroundColor:"#f0f0f0",padding:"10px",marginTop:"10px",overflow:"auto",fontSize:"12px"}},this.state.error.toString(),"\n\n",this.state.error.stack)),(t||r)&&e.createElement("div",{style:{marginTop:"10px"}},t&&e.createElement("button",{onClick:this.handleRetry,style:{padding:"8px 16px",marginRight:"10px",backgroundColor:"#1976d2",color:"white",border:"none",borderRadius:"4px",cursor:"pointer"}},"Retry (".concat(3-this.state.retryCount," attempts left)")),r&&e.createElement("button",{onClick:this.handleReset,style:{padding:"8px 16px",backgroundColor:"#757575",color:"white",border:"none",borderRadius:"4px",cursor:"pointer"}},"Reset Component")))}return this.props.children}}])&&n(f.prototype,d),y&&n(f,y),Object.defineProperty(f,"prototype",{writable:!1}),f;var f,d,y}(e.Component)}Object.defineProperty(t,"__esModule",{value:!0}),t.createErrorLogger=t.formatComponentError=t.withErrorBoundary=t.createErrorBoundary=void 0,t.createErrorBoundary=c,t.withErrorBoundary=function(e,t){var r=c(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});return function(n){return e.createElement(r,null,e.createElement(t,n))}},t.formatComponentError=function(e,t,r){return{message:e.message||"Unknown error",stack:e.stack,componentName:t,phase:r,details:{name:e.name,timestamp:(new Date).toISOString()}}},t.createErrorLogger=function(e){return function(t,r){console.group("🚨 React Component Error: ".concat(e)),console.error("Error:",t),console.error("Component Stack:",r.componentStack),console.error("Props:",r.props),console.groupEnd()}}},2929:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reactRootManager=t.ReactRootManager=t.countComponentsInHierarchy=t.flattenComponentHierarchy=t.validateComponentSpec=t.registerComponentHierarchy=t.ComponentHierarchyRegistrar=t.extractPropPaths=t.wrapCallbacksWithLogging=t.createPropsTransformer=t.mergeProps=t.validateComponentProps=t.normalizeStyles=t.normalizeCallbacks=t.buildComponentProps=t.createErrorLogger=t.formatComponentError=t.withErrorBoundary=t.createErrorBoundary=void 0;var n=r(9654);Object.defineProperty(t,"createErrorBoundary",{enumerable:!0,get:function(){return n.createErrorBoundary}}),Object.defineProperty(t,"withErrorBoundary",{enumerable:!0,get:function(){return n.withErrorBoundary}}),Object.defineProperty(t,"formatComponentError",{enumerable:!0,get:function(){return n.formatComponentError}}),Object.defineProperty(t,"createErrorLogger",{enumerable:!0,get:function(){return n.createErrorLogger}});var o=r(7614);Object.defineProperty(t,"buildComponentProps",{enumerable:!0,get:function(){return o.buildComponentProps}}),Object.defineProperty(t,"normalizeCallbacks",{enumerable:!0,get:function(){return o.normalizeCallbacks}}),Object.defineProperty(t,"normalizeStyles",{enumerable:!0,get:function(){return o.normalizeStyles}}),Object.defineProperty(t,"validateComponentProps",{enumerable:!0,get:function(){return o.validateComponentProps}}),Object.defineProperty(t,"mergeProps",{enumerable:!0,get:function(){return o.mergeProps}}),Object.defineProperty(t,"createPropsTransformer",{enumerable:!0,get:function(){return o.createPropsTransformer}}),Object.defineProperty(t,"wrapCallbacksWithLogging",{enumerable:!0,get:function(){return o.wrapCallbacksWithLogging}}),Object.defineProperty(t,"extractPropPaths",{enumerable:!0,get:function(){return o.extractPropPaths}});var i=r(3812);Object.defineProperty(t,"ComponentHierarchyRegistrar",{enumerable:!0,get:function(){return i.ComponentHierarchyRegistrar}}),Object.defineProperty(t,"registerComponentHierarchy",{enumerable:!0,get:function(){return i.registerComponentHierarchy}}),Object.defineProperty(t,"validateComponentSpec",{enumerable:!0,get:function(){return i.validateComponentSpec}}),Object.defineProperty(t,"flattenComponentHierarchy",{enumerable:!0,get:function(){return i.flattenComponentHierarchy}}),Object.defineProperty(t,"countComponentsInHierarchy",{enumerable:!0,get:function(){return i.countComponentsInHierarchy}});var a=r(5705);Object.defineProperty(t,"ReactRootManager",{enumerable:!0,get:function(){return a.ReactRootManager}}),Object.defineProperty(t,"reactRootManager",{enumerable:!0,get:function(){return a.reactRootManager}})},7614:(e,t)=>{"use strict";function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){if(e){if("string"==typeof e)return u(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function s(e){var t={};return e.RefreshData&&"function"==typeof e.RefreshData&&(t.RefreshData=e.RefreshData),e.OpenEntityRecord&&"function"==typeof e.OpenEntityRecord&&(t.OpenEntityRecord=e.OpenEntityRecord),t}function l(e){if(null===e.data||void 0===e.data)throw new Error("Component props.data cannot be null or undefined");if(null===e.userState)throw new Error("Component props.userState cannot be null");if(null===e.utilities)throw new Error("Component props.utilities cannot be null");if(!e.callbacks||"object"!==c(e.callbacks))throw new Error("Component props.callbacks must be an object");for(var t=0,r=Object.entries(e.callbacks);t<r.length;t++){var n=i(r[t],2),o=n[0],a=n[1];if(void 0!==a&&"function"!=typeof a)throw new Error('Component callback "'.concat(o,'" must be a function'))}}Object.defineProperty(t,"__esModule",{value:!0}),t.extractPropPaths=t.wrapCallbacksWithLogging=t.createPropsTransformer=t.mergeProps=t.validateComponentProps=t.normalizeStyles=t.normalizeCallbacks=t.buildComponentProps=void 0,t.buildComponentProps=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},u=arguments.length>7?arguments[7]:void 0,c=a.validate,f=void 0===c||c,p=a.transformData,d=a.transformState,y=(a.debounceUpdateUserState,{data:p?p(e):e,userState:d?d(t):t,utilities:r,callbacks:s(n),components:o,styles:i,onStateChanged:u});return f&&l(y),y},new WeakMap,new WeakMap,new WeakMap,t.normalizeCallbacks=s,t.normalizeStyles=function(e){return e},t.validateComponentProps=l,t.mergeProps=function(){for(var e={data:{},userState:{},utilities:{},callbacks:{},components:{},styles:{}},t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];for(var i=0,a=r;i<a.length;i++){var u=a[i];u.data&&(e.data=n(n({},e.data),u.data)),u.userState&&(e.userState=n(n({},e.userState),u.userState)),u.utilities&&(e.utilities=n(n({},e.utilities),u.utilities)),u.callbacks&&(e.callbacks=n(n({},e.callbacks),u.callbacks)),u.components&&(e.components=n(n({},e.components),u.components)),u.styles&&(e.styles=n(n({},e.styles),u.styles))}return e},t.createPropsTransformer=function(e){return function(t){for(var r=n({},t),o=0,a=Object.entries(e);o<a.length;o++){for(var u=i(a[o],2),c=u[0],s=u[1],l=c.split("."),f=r,p=0;p<l.length-1;p++)f[l[p]]||(f[l[p]]={}),f=f[l[p]];var d=l[l.length-1];void 0!==f[d]&&(f[d]=s(f[d]))}return r}},t.wrapCallbacksWithLogging=function(e,t){var r={};return e.RefreshData&&(r.RefreshData=function(){console.log("[".concat(t,"] RefreshData called")),e.RefreshData()}),e.OpenEntityRecord&&(r.OpenEntityRecord=function(r,n){console.log("[".concat(t,"] OpenEntityRecord called:"),{entityName:r,key:n}),e.OpenEntityRecord(r,n)}),r},t.extractPropPaths=function(e){for(var t=[],r=0,n=[/props\.data\.(\w+)/g,/props\.userState\.(\w+)/g,/props\.utilities\.(\w+)/g,/props\.callbacks\.(\w+)/g];r<n.length;r++)for(var o=n[r],i=void 0;null!==(i=o.exec(e));)t.push(i[0]);return function(e){if(Array.isArray(e))return u(e)}(c=new Set(t))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(c)||a(c)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();var c}},5705:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return t};var e,t={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),u=new L(n||[]);return a(i,"_invoke",{value:C(e,r,u)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var y="suspendedStart",h="suspendedYield",v="executing",m="completed",b={};function g(){}function w(){}function _(){}var O={};f(O,c,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(T([])));E&&E!==r&&i.call(E,c)&&(O=E);var P=_.prototype=g.prototype=Object.create(O);function j(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function r(o,a,u,c){var s=d(e[o],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&i.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,u,c)}),(function(e){r("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return r("throw",e,u,c)}))}c(s.arg)}var o;a(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function C(t,r,n){var o=y;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=k(u,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=d(t,r,n);if("normal"===s.type){if(o=n.done?m:h,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function T(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(i.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(n(t)+" is not iterable")}return w.prototype=_,a(P,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:w,configurable:!0}),w.displayName=f(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,f(e,l,"GeneratorFunction")),e.prototype=Object.create(P),e},t.awrap=function(e){return{__await:e}},j(x.prototype),f(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(p(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},j(P),f(P,l,"Generator"),f(P,c,(function(){return this})),f(P,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=T,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),s=i.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(e,t)||u(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=u(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function u(e,t){if(e){if("string"==typeof e)return c(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function l(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){s(i,n,o,a,u,"next",e)}function u(e){s(i,n,o,a,u,"throw",e)}a(void 0)}))}}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,p(n.key),n)}}function p(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}Object.defineProperty(t,"__esModule",{value:!0}),t.reactRootManager=t.ReactRootManager=void 0;var d=r(2859),y=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.roots=new Map,this.renderingRoots=new Set,this.unmountQueue=new Map},t=[{key:"createRoot",value:function(e,t,r){var n=this,o="react-root-".concat(Date.now(),"-").concat(Math.random()),i=t(e),a={id:o,root:i,container:e,isRendering:!1,componentId:r};return this.roots.set(o,a),r&&d.resourceManager.registerReactRoot(r,i,(function(){return n.unmountRoot(o)})),o}},{key:"render",value:function(e,t,r){var n=this,o=this.roots.get(e);if(o)if(this.unmountQueue.has(e))console.warn("React root ".concat(e," is being unmounted, skipping render"));else{o.isRendering=!0,this.renderingRoots.add(e);try{o.root.render(t),o.lastRenderTime=new Date,Promise.resolve().then((function(){o.isRendering=!1,n.renderingRoots.delete(e);var t=n.unmountQueue.get(e);t&&(n.unmountQueue.delete(e),t()),r&&r()}))}catch(t){throw o.isRendering=!1,this.renderingRoots.delete(e),t}}else console.warn("React root ".concat(e," not found"))}},{key:"unmountRoot",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise((function(n){var o=t.roots.get(e);if(o){var i=function(){try{o.root.unmount(),t.roots.delete(e),t.renderingRoots.delete(e),o.container&&(delete o.container._reactRootContainer,o.container.innerHTML=""),n()}catch(r){console.error("Error unmounting React root ".concat(e,":"),r),t.roots.delete(e),t.renderingRoots.delete(e),n()}};!o.isRendering||r?i():t.unmountQueue.set(e,(function(){i()}))}else n()}))}},{key:"unmountComponentRoots",value:(n=l(o().mark((function e(t){var r,n,u,c,s,l=this;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=[],n=a(this.roots);try{for(n.s();!(u=n.n()).done;)c=i(u.value,2),s=c[0],c[1].componentId===t&&r.push(s)}catch(e){n.e(e)}finally{n.f()}return e.next=5,Promise.all(r.map((function(e){return l.unmountRoot(e)})));case 5:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"isRendering",value:function(e){return this.renderingRoots.has(e)}},{key:"getStats",value:function(){return{totalRoots:this.roots.size,renderingRoots:this.renderingRoots.size,pendingUnmounts:this.unmountQueue.size}}},{key:"cleanup",value:(r=l(o().mark((function e(){var t,r=this;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Array.from(this.roots.keys()),e.next=3,Promise.all(t.map((function(e){return r.unmountRoot(e,!0)})));case 3:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})}],t&&f(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r,n}();t.ReactRootManager=y,t.reactRootManager=new y},1676:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=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}),o(r(8722),t)},8722:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5601:(e,t)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=i(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,a=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw a}}}}function i(e,t){if(e){if("string"==typeof e)return a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function c(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}Object.defineProperty(t,"__esModule",{value:!0}),t.CacheManager=void 0;var s=function(){return e=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cache=new Map,this.memoryUsage=0,this.options={maxSize:t.maxSize||1e3,maxMemory:t.maxMemory||52428800,defaultTTL:t.defaultTTL||3e5,cleanupInterval:t.cleanupInterval||6e4},this.options.cleanupInterval>0&&this.startCleanupTimer()},(t=[{key:"set",value:function(e,t,r){var n=this,o=this.estimateSize(t),i={value:t,timestamp:Date.now(),size:o};this.cache.size>=this.options.maxSize&&this.evictLRU(),this.memoryUsage+o>this.options.maxMemory&&this.evictByMemory(o);var a=this.cache.get(e);if(a&&(this.memoryUsage-=a.size||0),this.cache.set(e,i),this.memoryUsage+=o,r||this.options.defaultTTL){var u=r||this.options.defaultTTL;setTimeout((function(){return n.delete(e)}),u)}}},{key:"get",value:function(e){var t=this.cache.get(e);if(t){if(!this.isExpired(t))return t.timestamp=Date.now(),t.value;this.delete(e)}}},{key:"has",value:function(e){var t=this.cache.get(e);return!(!t||this.isExpired(t)&&(this.delete(e),1))}},{key:"delete",value:function(e){var t=this.cache.get(e);return!!t&&(this.memoryUsage-=t.size||0,this.cache.delete(e))}},{key:"clear",value:function(){this.cache.clear(),this.memoryUsage=0}},{key:"getStats",value:function(){return{size:this.cache.size,memoryUsage:this.memoryUsage,maxSize:this.options.maxSize,maxMemory:this.options.maxMemory}}},{key:"cleanup",value:function(){var e,t=0,r=Date.now(),i=o(this.cache);try{for(i.s();!(e=i.n()).done;){var a=n(e.value,2),u=a[0],c=a[1];this.isExpired(c,r)&&(this.delete(u),t++)}}catch(e){i.e(e)}finally{i.f()}return t}},{key:"destroy",value:function(){this.stopCleanupTimer(),this.clear()}},{key:"isExpired",value:function(e,t){return!!this.options.defaultTTL&&(t||Date.now())-e.timestamp>this.options.defaultTTL}},{key:"evictLRU",value:function(){var e,t,r=1/0,i=o(this.cache);try{for(i.s();!(t=i.n()).done;){var a=n(t.value,2),u=a[0],c=a[1];c.timestamp<r&&(r=c.timestamp,e=u)}}catch(e){i.e(e)}finally{i.f()}e&&this.delete(e)}},{key:"evictByMemory",value:function(e){var t,r=0,i=o(Array.from(this.cache.entries()).sort((function(e,t){return e[1].timestamp-t[1].timestamp})));try{for(i.s();!(t=i.n()).done;){var a=n(t.value,2),u=a[0],c=a[1];if(r>=e)break;r+=c.size||0,this.delete(u)}}catch(e){i.e(e)}finally{i.f()}}},{key:"estimateSize",value:function(e){if("string"==typeof e)return 2*e.length;if("object"!==r(e)||null===e)return 8;try{return 2*JSON.stringify(e).length}catch(e){return 1024}}},{key:"startCleanupTimer",value:function(){var e=this;this.cleanupTimer=window.setInterval((function(){e.cleanup()}),this.options.cleanupInterval)}},{key:"stopCleanupTimer",value:function(){this.cleanupTimer&&(window.clearInterval(this.cleanupTimer),this.cleanupTimer=void 0)}}])&&u(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();t.CacheManager=s},5408:(e,t)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function n(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=i(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,a=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw a}}}}function i(e,t){if(e){if("string"==typeof e)return a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function c(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentErrorAnalyzer=void 0;var s=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"identifyFailedComponents",value:function(e){var t,r=new Set,n=o(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;this.extractComponentsFromError(i).forEach((function(e){return r.add(e)}))}}catch(e){n.e(e)}finally{n.f()}return Array.from(r)}},{key:"analyzeComponentErrors",value:function(e){var t,r=[],i=o(e);try{for(i.s();!(t=i.n()).done;){var a=t.value,u=this.analyzeError(a);r.push.apply(r,n(u))}}catch(e){i.e(e)}finally{i.f()}var c=new Map;return r.forEach((function(e){var t="".concat(e.componentName,"-").concat(e.errorType);c.has(t)||c.set(t,e)})),Array.from(c.values())}},{key:"extractComponentsFromError",value:function(e){var t,r=[],i=o(this.ERROR_PATTERNS);try{for(i.s();!(t=i.n()).done;){var a=t.value,u=e.match(a.pattern);if(u){var c=a.extractComponent(u);c&&this.isLikelyComponentName(c)&&r.push(c)}}}catch(e){i.e(e)}finally{i.f()}var s=this.extractComponentsFromStackTrace(e);return r.push.apply(r,n(s)),r}},{key:"analyzeError",value:function(e){var t,r=this,n=[],i=o(this.ERROR_PATTERNS);try{for(i.s();!(t=i.n()).done;){var a=t.value,u=e.match(a.pattern);if(u){var c=a.extractComponent(u);c&&this.isLikelyComponentName(c)&&n.push({componentName:c,errorType:a.errorType,errorMessage:e,lineNumber:this.extractLineNumber(e),context:this.extractContext(e)})}}}catch(e){i.e(e)}finally{i.f()}return 0===n.length&&this.extractComponentsFromStackTrace(e).forEach((function(t){n.push({componentName:t,errorType:"unknown",errorMessage:e,lineNumber:r.extractLineNumber(e)})})),n}},{key:"extractComponentsFromStackTrace",value:function(e){for(var t=[],r=0,o=[/at (\w+Component\w*)/g,/at (\w+)\s*\(/g,/in (\w+)\s*\(at/g,/in (\w+)\s*\(created by/g];r<o.length;r++)for(var i=o[r],a=void 0;null!==(a=i.exec(e));){var u=a[1];this.isLikelyComponentName(u)&&t.push(u)}return n(new Set(t))}},{key:"isLikelyComponentName",value:function(e){var t=new Set(["Object","Array","String","Number","Boolean","Function","Promise","Error","TypeError","ReferenceError","SyntaxError","undefined","null","console","window","document"]),r=new Set(["render","setState","forceUpdate","props","state","context","componentDidMount","componentWillUnmount","useEffect","useState"]);return e.length>0&&/^[A-Z]/.test(e)&&!t.has(e)&&!r.has(e)&&!/^use[A-Z]/.test(e)}},{key:"extractLineNumber",value:function(e){for(var t=0,r=[/:(\d+):\d+/,/line (\d+)/i,/Line (\d+)/];t<r.length;t++){var n=r[t],o=e.match(n);if(o)return parseInt(o[1],10)}}},{key:"extractContext",value:function(e){var t=e.match(/\(at ([^)]+)\)/);if(t)return t[1];var r=e.match(/created by (\w+)/);return r?"Created by ".concat(r[1]):void 0}},{key:"formatAnalysisResults",value:function(e){if(0===e.length)return"No component failures detected";var t="Detected ".concat(e.length," component failure(s):\n");return e.forEach((function(e,r){t+="\n".concat(r+1,". Component: ").concat(e.componentName,"\n"),t+=" Error Type: ".concat(e.errorType,"\n"),e.lineNumber&&(t+=" Line: ".concat(e.lineNumber,"\n")),e.context&&(t+=" Context: ".concat(e.context,"\n")),t+=" Message: ".concat(e.errorMessage.substring(0,200)).concat(e.errorMessage.length>200?"...":"","\n")})),t}}],null&&u(e.prototype,null),t&&u(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();t.ComponentErrorAnalyzer=s,s.ERROR_PATTERNS=[{pattern:/ReferenceError: (\w+) is not defined/,errorType:"not_defined",extractComponent:function(e){return e[1]}},{pattern:/Cannot read propert(?:y|ies) '(\w+)' of undefined/,errorType:"property_error",extractComponent:function(e){return e[1]}},{pattern:/(\w+)\(\.\.\.\): Nothing was returned from render/,errorType:"render_error",extractComponent:function(e){return e[1]}},{pattern:/at (\w+Component\w*)/,errorType:"stack_trace",extractComponent:function(e){return e[1]}},{pattern:/Error: Unable to find node on an unmounted component/,errorType:"unmounted_component",extractComponent:function(){return null}},{pattern:/Invalid hook call.*component (\w+)/,errorType:"invalid_hook",extractComponent:function(e){return e[1]}},{pattern:/TypeError:.*in (\w+) \(at/,errorType:"type_error",extractComponent:function(e){return e[1]}},{pattern:/Module not found: Error: Can't resolve '\.\/(\w+)'/,errorType:"missing_import",extractComponent:function(e){return e[1]}},{pattern:/(\w+) is not a function/,errorType:"not_a_function",extractComponent:function(e){return e[1]}},{pattern:/Minified React error[\s\S]*Visit[\s\S]*for the full message[\s\S]*component[: ](\w+)/,errorType:"react_error",extractComponent:function(e){return e[1]}}]},5329:(e,t)=>{"use strict";function r(){return{colors:{primary:"#5B4FE9",primaryHover:"#4940D4",primaryLight:"#E8E6FF",secondary:"#64748B",secondaryHover:"#475569",success:"#10B981",successLight:"#D1FAE5",warning:"#F59E0B",warningLight:"#FEF3C7",error:"#EF4444",errorLight:"#FEE2E2",info:"#3B82F6",infoLight:"#DBEAFE",background:"#FFFFFF",surface:"#F8FAFC",surfaceHover:"#F1F5F9",text:"#1E293B",textSecondary:"#64748B",textTertiary:"#94A3B8",textInverse:"#FFFFFF",border:"#E2E8F0",borderLight:"#F1F5F9",borderFocus:"#5B4FE9",shadow:"rgba(0, 0, 0, 0.05)",shadowMedium:"rgba(0, 0, 0, 0.1)",shadowLarge:"rgba(0, 0, 0, 0.15)"},spacing:{xs:"4px",sm:"8px",md:"16px",lg:"24px",xl:"32px",xxl:"48px",xxxl:"64px"},typography:{fontFamily:'-apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif',fontSize:{xs:"11px",sm:"12px",md:"14px",lg:"16px",xl:"20px",xxl:"24px",xxxl:"32px"},fontWeight:{light:"300",regular:"400",medium:"500",semibold:"600",bold:"700"},lineHeight:{tight:"1.25",normal:"1.5",relaxed:"1.75"}},borders:{radius:{sm:"6px",md:"8px",lg:"12px",xl:"16px",full:"9999px"},width:{thin:"1px",medium:"2px",thick:"3px"}},shadows:{sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)",inner:"inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)"},transitions:{fast:"150ms ease-in-out",normal:"250ms ease-in-out",slow:"350ms ease-in-out"},overflow:"auto"}}Object.defineProperty(t,"__esModule",{value:!0}),t.createDefaultComponentStyles=t.SetupStyles=void 0,t.SetupStyles=r,t.createDefaultComponentStyles=r},9296:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCoreRuntimeLibrary=t.getCoreRuntimeLibraries=t.CORE_RUNTIME_LIBRARIES=void 0,t.CORE_RUNTIME_LIBRARIES=[{id:"react",name:"react",displayName:"React",category:"runtime",globalVariable:"React",version:"18.2.0",cdnUrl:"https://unpkg.com/react@18.2.0/umd/react.production.min.js",description:"React core library",isEnabled:!0,isCore:!0,isRuntimeOnly:!0},{id:"react-dom",name:"react-dom",displayName:"ReactDOM",category:"runtime",globalVariable:"ReactDOM",version:"18.2.0",cdnUrl:"https://unpkg.com/react-dom@18.2.0/umd/react-dom.production.min.js",description:"React DOM library",isEnabled:!0,isCore:!0,isRuntimeOnly:!0},{id:"babel-standalone",name:"@babel/standalone",displayName:"Babel Standalone",category:"runtime",globalVariable:"Babel",version:"7.24.4",cdnUrl:"https://unpkg.com/@babel/standalone@7.24.4/babel.min.js",description:"Babel compiler for JSX transformation",isEnabled:!0,isCore:!0,isRuntimeOnly:!0}],t.getCoreRuntimeLibraries=function(){return t.CORE_RUNTIME_LIBRARIES},t.isCoreRuntimeLibrary=function(e){return t.CORE_RUNTIME_LIBRARIES.some((function(t){return t.id===e}))}},7448:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(){o=function(){return t};var e,t={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),u=new L(n||[]);return a(i,"_invoke",{value:C(e,r,u)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var y="suspendedStart",h="suspendedYield",v="executing",m="completed",b={};function g(){}function w(){}function _(){}var O={};f(O,c,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(T([])));E&&E!==r&&i.call(E,c)&&(O=E);var P=_.prototype=g.prototype=Object.create(O);function j(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function r(o,a,u,c){var s=d(e[o],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&i.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,u,c)}),(function(e){r("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return r("throw",e,u,c)}))}c(s.arg)}var o;a(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function C(t,r,n){var o=y;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=k(u,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=d(t,r,n);if("normal"===s.type){if(o=n.done?m:h,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function T(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(i.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(n(t)+" is not iterable")}return w.prototype=_,a(P,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:w,configurable:!0}),w.displayName=f(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,f(e,l,"GeneratorFunction")),e.prototype=Object.create(P),e},t.awrap=function(e){return{__await:e}},j(x.prototype),f(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(p(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},j(P),f(P,l,"Generator"),f(P,c,(function(){return this})),f(P,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=T,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),s=i.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return(t=d(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function f(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){l(i,n,o,a,u,"next",e)}function u(e){l(i,n,o,a,u,"throw",e)}a(void 0)}))}}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d(n.key),n)}}function d(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}Object.defineProperty(t,"__esModule",{value:!0}),t.LibraryLoader=void 0;var y=r(5346),h=r(9296),v=r(2859),m="mj-react-runtime-library-loader-singleton",b=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},null,t=[{key:"loadAllLibraries",value:(u=f(o().mark((function e(t,r){var n,i;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t&&y.StandardLibraryManager.setConfiguration(t),r&&r.length>0&&(n=y.StandardLibraryManager.getConfiguration(),i={libraries:[].concat(c(n.libraries),c(r)),metadata:a(a({},n.metadata),{},{lastUpdated:(new Date).toISOString()})},y.StandardLibraryManager.setConfiguration(i)),e.abrupt("return",this.loadLibrariesFromConfig());case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return u.apply(this,arguments)})},{key:"loadLibrariesFromConfig",value:(i=f(o().mark((function e(t){var r,n,i,a,u,c,s,l,f,p,d,v=this;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(0,h.getCoreRuntimeLibraries)(),n=r.map((function(e){return v.loadScript(e.cdnUrl,e.globalVariable)})),e.next=4,Promise.all(n);case 4:return i=e.sent,a=i.find((function(e,t){return"React"===r[t].globalVariable})),u=i.find((function(e,t){return"ReactDOM"===r[t].globalVariable})),c=i.find((function(e,t){return"Babel"===r[t].globalVariable})),"undefined"!=typeof window&&(a&&!window.React&&(window.React=a,console.log("✓ Exposed React as window.React for UMD compatibility")),u&&!window.ReactDOM&&(window.ReactDOM=u,console.log("✓ Exposed ReactDOM as window.ReactDOM for UMD compatibility")),window.PropTypes||(window.PropTypes={},console.log("✓ Exposed empty PropTypes as window.PropTypes for UMD compatibility"))),y.StandardLibraryManager.getConfiguration(),s=y.StandardLibraryManager.getEnabledLibraries(),l=s.filter((function(e){return!(0,h.isCoreRuntimeLibrary)(e.id)})),t&&(t.categories&&(l=l.filter((function(e){return t.categories.includes(e.category)}))),t.excludeRuntimeOnly&&(l=l.filter((function(e){return!e.isRuntimeOnly})))),l.forEach((function(e){e.cdnCssUrl&&v.loadCSS(e.cdnCssUrl)})),f=l.map((function(e){return v.loadScript(e.cdnUrl,e.globalVariable)})),e.next=17,Promise.all(f);case 17:return p=e.sent,d={},l.forEach((function(e,t){d[e.globalVariable]=p[t]})),e.abrupt("return",{React:a||window.React,ReactDOM:u||window.ReactDOM,Babel:c||window.Babel,libraries:d});case 21:case"end":return e.stop()}}),e)}))),function(e){return i.apply(this,arguments)})},{key:"loadLibraries",value:(n=f(o().mark((function e(t){var r,n,i,a,u,c,s,l,f,p,d=this;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.loadCore,n=void 0===r||r,i=t.loadUI,a=void 0===i||i,t.loadCSS,u=t.customLibraries,c=void 0===u?[]:u,s=["runtime"],n&&s.push("utility","charting"),a&&s.push("ui"),e.next=6,this.loadLibrariesFromConfig({categories:s});case 6:if(l=e.sent,!(c.length>0)){e.next=13;break}return f=c.map((function(e){var t=e.url,r=e.globalName;return d.loadScript(t,r)})),e.next=11,Promise.all(f);case 11:p=e.sent,c.forEach((function(e,t){var r=e.globalName;l.libraries[r]=p[t]}));case 13:return e.abrupt("return",l);case 14:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"loadScript",value:(r=f(o().mark((function e(t,r){var n,i,a=this;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=this.loadedResources.get(t))){e.next=3;break}return e.abrupt("return",n.promise);case 3:return i=new Promise((function(e,n){var o=window[r];if(o)e(o);else{var i=document.querySelector('script[src="'.concat(t,'"]'));if(i)a.waitForScriptLoad(i,r,e,n);else{var u=document.createElement("script");u.src=t,u.async=!0,u.crossOrigin="anonymous";var c=function(){u.removeEventListener("load",s),u.removeEventListener("error",l)},s=function(){c();var o=window[r];o?e(o):v.resourceManager.setTimeout(m,(function(){var t=window[r];t?e(t):n(new Error("".concat(r," not found after script load")))}),100,{url:t,globalName:r})},l=function(){c(),n(new Error("Failed to load script: ".concat(t)))};u.addEventListener("load",s),u.addEventListener("error",l),document.head.appendChild(u),v.resourceManager.registerDOMElement(m,u)}}})),this.loadedResources.set(t,{element:document.querySelector('script[src="'.concat(t,'"]')),promise:i}),e.abrupt("return",i);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"loadCSS",value:function(e){if(!this.loadedResources.has(e)&&!document.querySelector('link[href="'.concat(e,'"]'))){var t=document.createElement("link");t.rel="stylesheet",t.href=e,document.head.appendChild(t),v.resourceManager.registerDOMElement(m,t),this.loadedResources.set(e,{element:t,promise:Promise.resolve()})}}},{key:"waitForScriptLoad",value:function(e,t,r,n){var o=function(){var e=window[t];e?r(e):v.resourceManager.setTimeout(m,(function(){var e=window[t];e?r(e):n(new Error("".concat(t," not found after script load")))}),100,{context:"waitForScriptLoad",globalName:t})};e.complete||"complete"===e.readyState?o():v.resourceManager.addEventListener(m,e,"load",(function(){o()}),{once:!0})}},{key:"getLoadedResources",value:function(){return this.loadedResources}},{key:"clearCache",value:function(){this.loadedResources.forEach((function(e,t){e.element&&e.element.parentNode&&e.element.parentNode.removeChild(e.element)})),this.loadedResources.clear(),v.resourceManager.cleanupComponent(m)}}],t&&p(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r,n,i,u}();t.LibraryLoader=b,b.loadedResources=new Map},4324:(e,t)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function n(){n=function(){return t};var e,t={},o=Object.prototype,i=o.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),u=new L(n||[]);return a(i,"_invoke",{value:C(e,r,u)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var y="suspendedStart",h="suspendedYield",v="executing",m="completed",b={};function g(){}function w(){}function _(){}var O={};f(O,c,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(T([])));E&&E!==o&&i.call(E,c)&&(O=E);var P=_.prototype=g.prototype=Object.create(O);function j(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(o,a,u,c){var s=d(e[o],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==r(f)&&i.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,u,c)}),(function(e){n("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return n("throw",e,u,c)}))}c(s.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function C(t,r,n){var o=y;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=k(u,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=d(t,r,n);if("normal"===s.type){if(o=n.done?m:h,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function T(t){if(t||""===t){var n=t[c];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(i.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return w.prototype=_,a(P,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:w,configurable:!0}),w.displayName=f(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,f(e,l,"GeneratorFunction")),e.prototype=Object.create(P),e},t.awrap=function(e){return{__await:e}},j(x.prototype),f(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(p(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},j(P),f(P,l,"Generator"),f(P,c,(function(){return this})),f(P,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=T,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),s=i.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=a(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,i=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw i}}}}function a(e,t){if(e){if("string"==typeof e)return u(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}Object.defineProperty(t,"__esModule",{value:!0}),t.LibraryRegistry=void 0;var f=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},null,t=[{key:"Config",value:(r=n().mark((function e(){var t,r,a,u,c,s,l,f,p,d,y,h,v,m,b,g,w=arguments;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=w.length>0&&void 0!==w[0]&&w[0],r=w.length>1?w[1]:void 0,!this._configured||t){a=new Map,u=i(r);try{for(u.s();!(c=u.n()).done;)s=c.value,a.has(s.Name.toLowerCase())||a.set(s.Name.toLowerCase(),[]),a.get(s.Name.toLowerCase()).push(s)}catch(e){u.e(e)}finally{u.f()}l=i(a);try{for(l.s();!(f=l.n()).done;){p=o(f.value,2),d=p[0],y=p[1],h={name:d,globalVariable:y[0].GlobalVariable||"",category:y[0].Category||"",versions:{},defaultVersion:y[0].Version||""},v=i(y);try{for(v.s();!(m=v.n()).done;)g=m.value,h.versions[g.Version]={cdnUrl:g.CDNUrl||"",cssUrls:(null===(b=g.CDNCssUrl)||void 0===b?void 0:b.split(","))||[]}}catch(e){v.e(e)}finally{v.f()}this.libraries.set(d,h)}}catch(e){l.e(e)}finally{l.f()}this._configured=!0}case 3:case"end":return e.stop()}}),e,this)})),a=function(){var e=this,t=arguments;return new Promise((function(n,o){var i=r.apply(e,t);function a(e){c(i,n,o,a,u,"next",e)}function u(e){c(i,n,o,a,u,"throw",e)}a(void 0)}))},function(){return a.apply(this,arguments)})},{key:"getLibrary",value:function(e){if(!this._configured)throw new Error("LibraryRegistry is not configured, call LibraryRegistry.Config() before using!");return this.libraries.get(null==e?void 0:e.trim().toLowerCase())}},{key:"getCdnUrl",value:function(e,t){var r;if(!this._configured)throw new Error("LibraryRegistry is not configured, call LibraryRegistry.Config() before using!");var n=this.libraries.get(null==e?void 0:e.trim().toLowerCase());if(n){var o=t||n.defaultVersion;return null===(r=n.versions[o])||void 0===r?void 0:r.cdnUrl}}},{key:"isApproved",value:function(e){if(!this._configured)throw new Error("LibraryRegistry is not configured, call LibraryRegistry.Config() before using!");return this.libraries.has(null==e?void 0:e.trim().toLowerCase())}},{key:"resolveVersion",value:function(e,t){if(!this._configured)throw new Error("LibraryRegistry is not configured, call LibraryRegistry.Config() before using!");var r=this.libraries.get(null==e?void 0:e.trim().toLowerCase());if(r)return t&&r.versions[t]?t:r.defaultVersion}},{key:"registerLibrary",value:function(e){var t;if(!this._configured)throw new Error("LibraryRegistry is not configured, call LibraryRegistry.Config() before using!");this.libraries.set(null===(t=e.name)||void 0===t?void 0:t.trim().toLowerCase(),e)}}],t&&s(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r,a}();t.LibraryRegistry=f,f.libraries=new Map,f._configured=!1},2859:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return i(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,a=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function u(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}Object.defineProperty(t,"__esModule",{value:!0}),t.resourceManager=t.ResourceManager=void 0;var c=function(){var e,t;if("undefined"!=typeof window&&window.setTimeout)return{setTimeout:window.setTimeout.bind(window),clearTimeout:window.clearTimeout.bind(window),setInterval:window.setInterval.bind(window),clearInterval:window.clearInterval.bind(window),requestAnimationFrame:null===(e=window.requestAnimationFrame)||void 0===e?void 0:e.bind(window),cancelAnimationFrame:null===(t=window.cancelAnimationFrame)||void 0===t?void 0:t.bind(window)};if(void 0!==r.g&&r.g.setTimeout)return{setTimeout:r.g.setTimeout,clearTimeout:r.g.clearTimeout,setInterval:r.g.setInterval,clearInterval:r.g.clearInterval,requestAnimationFrame:void 0,cancelAnimationFrame:void 0};var n=function(){},o=function(){return 0};return{setTimeout:o,clearTimeout:n,setInterval:o,clearInterval:n,requestAnimationFrame:void 0,cancelAnimationFrame:void 0}}(),s=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resources=new Map,this.globalResources=new Set,this.cleanupCallbacks=new Map},(t=[{key:"setTimeout",value:function(e,t,r,n){var o=this,i=c.setTimeout((function(){o.removeResource(e,"timer",i),t()}),r);return this.addResource(e,{type:"timer",id:i,cleanup:function(){return c.clearTimeout(i)},metadata:n}),i}},{key:"setInterval",value:function(e,t,r,n){var o=c.setInterval(t,r);return this.addResource(e,{type:"interval",id:o,cleanup:function(){return c.clearInterval(o)},metadata:n}),o}},{key:"requestAnimationFrame",value:function(e,t,r){var n=this;if(!c.requestAnimationFrame)return this.setTimeout(e,(function(){return t(Date.now())}),16,r);var o=c.requestAnimationFrame((function(r){n.removeResource(e,"animationFrame",o),t(r)}));return this.addResource(e,{type:"animationFrame",id:o,cleanup:function(){var e;return null===(e=c.cancelAnimationFrame)||void 0===e?void 0:e.call(c,o)},metadata:r}),o}},{key:"clearTimeout",value:function(e,t){c.clearTimeout(t),this.removeResource(e,"timer",t)}},{key:"clearInterval",value:function(e,t){c.clearInterval(t),this.removeResource(e,"interval",t)}},{key:"cancelAnimationFrame",value:function(e,t){c.cancelAnimationFrame?c.cancelAnimationFrame(t):c.clearTimeout(t),this.removeResource(e,"animationFrame",t)}},{key:"addEventListener",value:function(e,t,r,n,o){if(t&&"function"==typeof t.addEventListener){t.addEventListener(r,n,o);var i="".concat(r,"-").concat(Date.now(),"-").concat(Math.random());this.addResource(e,{type:"eventListener",id:i,cleanup:function(){t&&"function"==typeof t.removeEventListener&&t.removeEventListener(r,n,o)},metadata:{target:t,type:r,options:o}})}}},{key:"registerDOMElement",value:function(e,t,r){if("undefined"!=typeof document&&t&&t.parentNode){var n="dom-".concat(Date.now(),"-").concat(Math.random());this.addResource(e,{type:"domElement",id:n,cleanup:function(){r&&r(),t&&t.parentNode&&"function"==typeof t.parentNode.removeChild&&t.parentNode.removeChild(t)},metadata:{element:t}})}}},{key:"registerReactRoot",value:function(e,t,r){this.addResource(e,{type:"reactRoot",id:"react-root-".concat(e),cleanup:r,metadata:{root:t}})}},{key:"registerCleanup",value:function(e,t){this.cleanupCallbacks.has(e)||this.cleanupCallbacks.set(e,[]),this.cleanupCallbacks.get(e).push(t)}},{key:"registerGlobalResource",value:function(e){this.globalResources.add(e)}},{key:"addResource",value:function(e,t){this.resources.has(e)||this.resources.set(e,new Set),this.resources.get(e).add(t)}},{key:"removeResource",value:function(e,t,r){var n=this.resources.get(e);if(n){var o=Array.from(n).find((function(e){return e.type===t&&e.id===r}));o&&n.delete(o)}}},{key:"cleanupComponent",value:function(e){var t=this.resources.get(e);t&&(t.forEach((function(e){try{e.cleanup()}catch(t){console.error("Error cleaning up ".concat(e.type," resource:"),t)}})),this.resources.delete(e));var r=this.cleanupCallbacks.get(e);r&&(r.forEach((function(e){try{e()}catch(e){console.error("Error executing cleanup callback:",e)}})),this.cleanupCallbacks.delete(e))}},{key:"cleanupGlobal",value:function(){this.globalResources.forEach((function(e){try{e.cleanup()}catch(t){console.error("Error cleaning up global ".concat(e.type," resource:"),t)}})),this.globalResources.clear()}},{key:"cleanupAll",value:function(){var e,t=o(this.resources.keys());try{for(t.s();!(e=t.n()).done;){var r=e.value;this.cleanupComponent(r)}}catch(e){t.e(e)}finally{t.f()}this.cleanupGlobal()}},{key:"getStats",value:function(){var e,t={},r=o(this.resources.values());try{for(r.s();!(e=r.n()).done;)e.value.forEach((function(e){t[e.type]=(t[e.type]||0)+1}))}catch(e){r.e(e)}finally{r.f()}return{componentCount:this.resources.size,resourceCounts:t,globalResourceCount:this.globalResources.size}}}])&&a(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();t.ResourceManager=s,t.resourceManager=new s},5346:(e,t)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}Object.defineProperty(t,"__esModule",{value:!0}),t.createStandardLibraries=t.StandardLibraryManager=void 0;var i={libraries:[],metadata:{version:"1.0.0",lastUpdated:(new Date).toISOString(),description:"Empty default configuration - libraries should be configured at runtime"}},a=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},t=[{key:"setConfiguration",value:function(e){this.configuration=e}},{key:"getConfiguration",value:function(){return this.configuration}},{key:"getEnabledLibraries",value:function(){return this.configuration.libraries.filter((function(e){return e.isEnabled}))}},{key:"getLibrariesByCategory",value:function(e){return this.configuration.libraries.filter((function(t){return t.category===e&&t.isEnabled}))}},{key:"getCoreLibraries",value:function(){return this.configuration.libraries.filter((function(e){return e.isCore&&e.isEnabled}))}},{key:"getComponentLibraries",value:function(){return this.configuration.libraries.filter((function(e){return!e.isRuntimeOnly&&e.isEnabled}))}},{key:"getLibraryById",value:function(e){return this.configuration.libraries.find((function(t){return t.id===e}))}},{key:"getLibraryUrls",value:function(){var e={};return this.configuration.libraries.filter((function(e){return e.isEnabled})).forEach((function(t){var r=t.id.replace(/-/g,"_").toUpperCase();e[r]=t.cdnUrl,t.cdnCssUrl&&(e["".concat(r,"_CSS")]=t.cdnCssUrl)})),e}},{key:"resetToDefault",value:function(){this.configuration=i}}],null&&n(e.prototype,null),t&&n(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();t.StandardLibraryManager=a,a.configuration=i,t.createStandardLibraries=function(){if("undefined"==typeof window)return{};var e={};return a.getComponentLibraries().forEach((function(t){var r=window[t.globalVariable];void 0!==r&&(e[t.globalVariable]=r)})),e}},637:function(e,t,r){var n;e=r.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",u="__lodash_placeholder__",c=32,s=128,l=1/0,f=9007199254740991,p=NaN,d=4294967295,y=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",c],["partialRight",64],["rearg",256]],h="[object Arguments]",v="[object Array]",m="[object Boolean]",b="[object Date]",g="[object Error]",w="[object Function]",_="[object GeneratorFunction]",O="[object Map]",S="[object Number]",E="[object Object]",P="[object Promise]",j="[object RegExp]",x="[object Set]",C="[object String]",k="[object Symbol]",A="[object WeakMap]",I="[object ArrayBuffer]",L="[object DataView]",T="[object Float32Array]",R="[object Float64Array]",F="[object Int8Array]",N="[object Int16Array]",M="[object Int32Array]",D="[object Uint8Array]",U="[object Uint8ClampedArray]",V="[object Uint16Array]",G="[object Uint32Array]",B=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,z=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,Q=RegExp(K.source),J=RegExp(q.source),H=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,$=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,re=RegExp(te.source),ne=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,se=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,ye=/^0b[01]+$/i,he=/^\[object .+?Constructor\]$/,ve=/^0o[0-7]+$/i,me=/^(?:0|[1-9]\d*)$/,be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ge=/($^)/,we=/['\n\r\u2028\u2029\\]/g,_e="\\ud800-\\udfff",Oe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="\\u2700-\\u27bf",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",Pe="A-Z\\xc0-\\xd6\\xd8-\\xde",je="\\ufe0e\\ufe0f",xe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ce="["+_e+"]",ke="["+xe+"]",Ae="["+Oe+"]",Ie="\\d+",Le="["+Se+"]",Te="["+Ee+"]",Re="[^"+_e+xe+Ie+Se+Ee+Pe+"]",Fe="\\ud83c[\\udffb-\\udfff]",Ne="[^"+_e+"]",Me="(?:\\ud83c[\\udde6-\\uddff]){2}",De="[\\ud800-\\udbff][\\udc00-\\udfff]",Ue="["+Pe+"]",Ve="\\u200d",Ge="(?:"+Te+"|"+Re+")",Be="(?:"+Ue+"|"+Re+")",We="(?:['’](?:d|ll|m|re|s|t|ve))?",ze="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+Ae+"|"+Fe+")?",qe="["+je+"]?",Qe=qe+Ke+"(?:"+Ve+"(?:"+[Ne,Me,De].join("|")+")"+qe+Ke+")*",Je="(?:"+[Le,Me,De].join("|")+")"+Qe,He="(?:"+[Ne+Ae+"?",Ae,Me,De,Ce].join("|")+")",Ye=RegExp("['’]","g"),$e=RegExp(Ae,"g"),Xe=RegExp(Fe+"(?="+Fe+")|"+He+Qe,"g"),Ze=RegExp([Ue+"?"+Te+"+"+We+"(?="+[ke,Ue,"$"].join("|")+")",Be+"+"+ze+"(?="+[ke,Ue+Ge,"$"].join("|")+")",Ue+"?"+Ge+"+"+We,Ue+"+"+ze,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ie,Je].join("|"),"g"),et=RegExp("["+Ve+_e+Oe+je+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],nt=-1,ot={};ot[T]=ot[R]=ot[F]=ot[N]=ot[M]=ot[D]=ot[U]=ot[V]=ot[G]=!0,ot[h]=ot[v]=ot[I]=ot[m]=ot[L]=ot[b]=ot[g]=ot[w]=ot[O]=ot[S]=ot[E]=ot[j]=ot[x]=ot[C]=ot[A]=!1;var it={};it[h]=it[v]=it[I]=it[L]=it[m]=it[b]=it[T]=it[R]=it[F]=it[N]=it[M]=it[O]=it[S]=it[E]=it[j]=it[x]=it[C]=it[k]=it[D]=it[U]=it[V]=it[G]=!0,it[g]=it[w]=it[A]=!1;var at={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ut=parseFloat,ct=parseInt,st="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,lt="object"==typeof self&&self&&self.Object===Object&&self,ft=st||lt||Function("return this")(),pt=t&&!t.nodeType&&t,dt=pt&&e&&!e.nodeType&&e,yt=dt&&dt.exports===pt,ht=yt&&st.process,vt=function(){try{return dt&&dt.require&&dt.require("util").types||ht&&ht.binding&&ht.binding("util")}catch(e){}}(),mt=vt&&vt.isArrayBuffer,bt=vt&&vt.isDate,gt=vt&&vt.isMap,wt=vt&&vt.isRegExp,_t=vt&&vt.isSet,Ot=vt&&vt.isTypedArray;function St(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Et(e,t,r,n){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(n,a,r(a),e)}return n}function Pt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function jt(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function xt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function Ct(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}function kt(e,t){return!(null==e||!e.length)&&Ut(e,t,0)>-1}function At(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}function It(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}function Lt(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}function Tt(e,t,r,n){var o=-1,i=null==e?0:e.length;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}function Rt(e,t,r,n){var o=null==e?0:e.length;for(n&&o&&(r=e[--o]);o--;)r=t(r,e[o],o,e);return r}function Ft(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var Nt=Wt("length");function Mt(e,t,r){var n;return r(e,(function(e,r,o){if(t(e,r,o))return n=r,!1})),n}function Dt(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Ut(e,t,r){return t==t?function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}(e,t,r):Dt(e,Gt,r)}function Vt(e,t,r,n){for(var o=r-1,i=e.length;++o<i;)if(n(e[o],t))return o;return-1}function Gt(e){return e!=e}function Bt(e,t){var r=null==e?0:e.length;return r?qt(e,t)/r:p}function Wt(e){return function(t){return null==t?o:t[e]}}function zt(e){return function(t){return null==e?o:e[t]}}function Kt(e,t,r,n,o){return o(e,(function(e,o,i){r=n?(n=!1,e):t(r,e,o,i)})),r}function qt(e,t){for(var r,n=-1,i=e.length;++n<i;){var a=t(e[n]);a!==o&&(r=r===o?a:r+a)}return r}function Qt(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Jt(e){return e?e.slice(0,fr(e)+1).replace(ne,""):e}function Ht(e){return function(t){return e(t)}}function Yt(e,t){return It(t,(function(t){return e[t]}))}function $t(e,t){return e.has(t)}function Xt(e,t){for(var r=-1,n=e.length;++r<n&&Ut(t,e[r],0)>-1;);return r}function Zt(e,t){for(var r=e.length;r--&&Ut(t,e[r],0)>-1;);return r}var er=zt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tr=zt({"&":"&","<":"<",">":">",'"':""","'":"'"});function rr(e){return"\\"+at[e]}function nr(e){return et.test(e)}function or(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function ir(e,t){return function(r){return e(t(r))}}function ar(e,t){for(var r=-1,n=e.length,o=0,i=[];++r<n;){var a=e[r];a!==t&&a!==u||(e[r]=u,i[o++]=r)}return i}function ur(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}function cr(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=[e,e]})),r}function sr(e){return nr(e)?function(e){for(var t=Xe.lastIndex=0;Xe.test(e);)++t;return t}(e):Nt(e)}function lr(e){return nr(e)?function(e){return e.match(Xe)||[]}(e):function(e){return e.split("")}(e)}function fr(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var pr=zt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),dr=function e(t){var r,n=(t=null==t?ft:dr.defaults(ft.Object(),t,dr.pick(ft,rt))).Array,oe=t.Date,_e=t.Error,Oe=t.Function,Se=t.Math,Ee=t.Object,Pe=t.RegExp,je=t.String,xe=t.TypeError,Ce=n.prototype,ke=Oe.prototype,Ae=Ee.prototype,Ie=t["__core-js_shared__"],Le=ke.toString,Te=Ae.hasOwnProperty,Re=0,Fe=(r=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Ne=Ae.toString,Me=Le.call(Ee),De=ft._,Ue=Pe("^"+Le.call(Te).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ve=yt?t.Buffer:o,Ge=t.Symbol,Be=t.Uint8Array,We=Ve?Ve.allocUnsafe:o,ze=ir(Ee.getPrototypeOf,Ee),Ke=Ee.create,qe=Ae.propertyIsEnumerable,Qe=Ce.splice,Je=Ge?Ge.isConcatSpreadable:o,He=Ge?Ge.iterator:o,Xe=Ge?Ge.toStringTag:o,et=function(){try{var e=si(Ee,"defineProperty");return e({},"",{}),e}catch(e){}}(),at=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,st=oe&&oe.now!==ft.Date.now&&oe.now,lt=t.setTimeout!==ft.setTimeout&&t.setTimeout,pt=Se.ceil,dt=Se.floor,ht=Ee.getOwnPropertySymbols,vt=Ve?Ve.isBuffer:o,Nt=t.isFinite,zt=Ce.join,yr=ir(Ee.keys,Ee),hr=Se.max,vr=Se.min,mr=oe.now,br=t.parseInt,gr=Se.random,wr=Ce.reverse,_r=si(t,"DataView"),Or=si(t,"Map"),Sr=si(t,"Promise"),Er=si(t,"Set"),Pr=si(t,"WeakMap"),jr=si(Ee,"create"),xr=Pr&&new Pr,Cr={},kr=Mi(_r),Ar=Mi(Or),Ir=Mi(Sr),Lr=Mi(Er),Tr=Mi(Pr),Rr=Ge?Ge.prototype:o,Fr=Rr?Rr.valueOf:o,Nr=Rr?Rr.toString:o;function Mr(e){if(eu(e)&&!Wa(e)&&!(e instanceof Gr)){if(e instanceof Vr)return e;if(Te.call(e,"__wrapped__"))return Di(e)}return new Vr(e)}var Dr=function(){function e(){}return function(t){if(!Za(t))return{};if(Ke)return Ke(t);e.prototype=t;var r=new e;return e.prototype=o,r}}();function Ur(){}function Vr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Gr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Br(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Wr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function zr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Kr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new zr;++t<r;)this.add(e[t])}function qr(e){var t=this.__data__=new Wr(e);this.size=t.size}function Qr(e,t){var r=Wa(e),n=!r&&Ba(e),o=!r&&!n&&Qa(e),i=!r&&!n&&!o&&cu(e),a=r||n||o||i,u=a?Qt(e.length,je):[],c=u.length;for(var s in e)!t&&!Te.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||vi(s,c))||u.push(s);return u}function Jr(e){var t=e.length;return t?e[Kn(0,t-1)]:o}function Hr(e,t){return Li(xo(e),on(t,0,e.length))}function Yr(e){return Li(xo(e))}function $r(e,t,r){(r!==o&&!Ua(e[t],r)||r===o&&!(t in e))&&rn(e,t,r)}function Xr(e,t,r){var n=e[t];Te.call(e,t)&&Ua(n,r)&&(r!==o||t in e)||rn(e,t,r)}function Zr(e,t){for(var r=e.length;r--;)if(Ua(e[r][0],t))return r;return-1}function en(e,t,r,n){return ln(e,(function(e,o,i){t(n,e,r(e),i)})),n}function tn(e,t){return e&&Co(t,Au(t),e)}function rn(e,t,r){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function nn(e,t){for(var r=-1,i=t.length,a=n(i),u=null==e;++r<i;)a[r]=u?o:Pu(e,t[r]);return a}function on(e,t,r){return e==e&&(r!==o&&(e=e<=r?e:r),t!==o&&(e=e>=t?e:t)),e}function an(e,t,r,n,i,a){var u,c=1&t,s=2&t,l=4&t;if(r&&(u=i?r(e,n,i,a):r(e)),u!==o)return u;if(!Za(e))return e;var f=Wa(e);if(f){if(u=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Te.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!c)return xo(e,u)}else{var p=pi(e),d=p==w||p==_;if(Qa(e))return _o(e,c);if(p==E||p==h||d&&!i){if(u=s||d?{}:yi(e),!c)return s?function(e,t){return Co(e,fi(e),t)}(e,function(e,t){return e&&Co(t,Iu(t),e)}(u,e)):function(e,t){return Co(e,li(e),t)}(e,tn(u,e))}else{if(!it[p])return i?e:{};u=function(e,t,r){var n,o=e.constructor;switch(t){case I:return Oo(e);case m:case b:return new o(+e);case L:return function(e,t){var r=t?Oo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case T:case R:case F:case N:case M:case D:case U:case V:case G:return So(e,r);case O:return new o;case S:case C:return new o(e);case j:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case x:return new o;case k:return n=e,Fr?Ee(Fr.call(n)):{}}}(e,p,c)}}a||(a=new qr);var y=a.get(e);if(y)return y;a.set(e,u),iu(e)?e.forEach((function(n){u.add(an(n,t,r,n,e,a))})):tu(e)&&e.forEach((function(n,o){u.set(o,an(n,t,r,o,e,a))}));var v=f?o:(l?s?ri:ti:s?Iu:Au)(e);return Pt(v||e,(function(n,o){v&&(n=e[o=n]),Xr(u,o,an(n,t,r,o,e,a))})),u}function un(e,t,r){var n=r.length;if(null==e)return!n;for(e=Ee(e);n--;){var i=r[n],a=t[i],u=e[i];if(u===o&&!(i in e)||!a(u))return!1}return!0}function cn(e,t,r){if("function"!=typeof e)throw new xe(i);return Ci((function(){e.apply(o,r)}),t)}function sn(e,t,r,n){var o=-1,i=kt,a=!0,u=e.length,c=[],s=t.length;if(!u)return c;r&&(t=It(t,Ht(r))),n?(i=At,a=!1):t.length>=200&&(i=$t,a=!1,t=new Kr(t));e:for(;++o<u;){var l=e[o],f=null==r?l:r(l);if(l=n||0!==l?l:0,a&&f==f){for(var p=s;p--;)if(t[p]===f)continue e;c.push(l)}else i(t,f,n)||c.push(l)}return c}Mr.templateSettings={escape:H,evaluate:Y,interpolate:$,variable:"",imports:{_:Mr}},Mr.prototype=Ur.prototype,Mr.prototype.constructor=Mr,Vr.prototype=Dr(Ur.prototype),Vr.prototype.constructor=Vr,Gr.prototype=Dr(Ur.prototype),Gr.prototype.constructor=Gr,Br.prototype.clear=function(){this.__data__=jr?jr(null):{},this.size=0},Br.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Br.prototype.get=function(e){var t=this.__data__;if(jr){var r=t[e];return r===a?o:r}return Te.call(t,e)?t[e]:o},Br.prototype.has=function(e){var t=this.__data__;return jr?t[e]!==o:Te.call(t,e)},Br.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=jr&&t===o?a:t,this},Wr.prototype.clear=function(){this.__data__=[],this.size=0},Wr.prototype.delete=function(e){var t=this.__data__,r=Zr(t,e);return!(r<0||(r==t.length-1?t.pop():Qe.call(t,r,1),--this.size,0))},Wr.prototype.get=function(e){var t=this.__data__,r=Zr(t,e);return r<0?o:t[r][1]},Wr.prototype.has=function(e){return Zr(this.__data__,e)>-1},Wr.prototype.set=function(e,t){var r=this.__data__,n=Zr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},zr.prototype.clear=function(){this.size=0,this.__data__={hash:new Br,map:new(Or||Wr),string:new Br}},zr.prototype.delete=function(e){var t=ui(this,e).delete(e);return this.size-=t?1:0,t},zr.prototype.get=function(e){return ui(this,e).get(e)},zr.prototype.has=function(e){return ui(this,e).has(e)},zr.prototype.set=function(e,t){var r=ui(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Kr.prototype.add=Kr.prototype.push=function(e){return this.__data__.set(e,a),this},Kr.prototype.has=function(e){return this.__data__.has(e)},qr.prototype.clear=function(){this.__data__=new Wr,this.size=0},qr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},qr.prototype.get=function(e){return this.__data__.get(e)},qr.prototype.has=function(e){return this.__data__.has(e)},qr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Wr){var n=r.__data__;if(!Or||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new zr(n)}return r.set(e,t),this.size=r.size,this};var ln=Io(bn),fn=Io(gn,!0);function pn(e,t){var r=!0;return ln(e,(function(e,n,o){return r=!!t(e,n,o)})),r}function dn(e,t,r){for(var n=-1,i=e.length;++n<i;){var a=e[n],u=t(a);if(null!=u&&(c===o?u==u&&!uu(u):r(u,c)))var c=u,s=a}return s}function yn(e,t){var r=[];return ln(e,(function(e,n,o){t(e,n,o)&&r.push(e)})),r}function hn(e,t,r,n,o){var i=-1,a=e.length;for(r||(r=hi),o||(o=[]);++i<a;){var u=e[i];t>0&&r(u)?t>1?hn(u,t-1,r,n,o):Lt(o,u):n||(o[o.length]=u)}return o}var vn=Lo(),mn=Lo(!0);function bn(e,t){return e&&vn(e,t,Au)}function gn(e,t){return e&&mn(e,t,Au)}function wn(e,t){return Ct(t,(function(t){return Ya(e[t])}))}function _n(e,t){for(var r=0,n=(t=mo(t,e)).length;null!=e&&r<n;)e=e[Ni(t[r++])];return r&&r==n?e:o}function On(e,t,r){var n=t(e);return Wa(e)?n:Lt(n,r(e))}function Sn(e){return null==e?e===o?"[object Undefined]":"[object Null]":Xe&&Xe in Ee(e)?function(e){var t=Te.call(e,Xe),r=e[Xe];try{e[Xe]=o;var n=!0}catch(e){}var i=Ne.call(e);return n&&(t?e[Xe]=r:delete e[Xe]),i}(e):function(e){return Ne.call(e)}(e)}function En(e,t){return e>t}function Pn(e,t){return null!=e&&Te.call(e,t)}function jn(e,t){return null!=e&&t in Ee(e)}function xn(e,t,r){for(var i=r?At:kt,a=e[0].length,u=e.length,c=u,s=n(u),l=1/0,f=[];c--;){var p=e[c];c&&t&&(p=It(p,Ht(t))),l=vr(p.length,l),s[c]=!r&&(t||a>=120&&p.length>=120)?new Kr(c&&p):o}p=e[0];var d=-1,y=s[0];e:for(;++d<a&&f.length<l;){var h=p[d],v=t?t(h):h;if(h=r||0!==h?h:0,!(y?$t(y,v):i(f,v,r))){for(c=u;--c;){var m=s[c];if(!(m?$t(m,v):i(e[c],v,r)))continue e}y&&y.push(v),f.push(h)}}return f}function Cn(e,t,r){var n=null==(e=Pi(e,t=mo(t,e)))?e:e[Ni(Hi(t))];return null==n?o:St(n,e,r)}function kn(e){return eu(e)&&Sn(e)==h}function An(e,t,r,n,i){return e===t||(null==e||null==t||!eu(e)&&!eu(t)?e!=e&&t!=t:function(e,t,r,n,i,a){var u=Wa(e),c=Wa(t),s=u?v:pi(e),l=c?v:pi(t),f=(s=s==h?E:s)==E,p=(l=l==h?E:l)==E,d=s==l;if(d&&Qa(e)){if(!Qa(t))return!1;u=!0,f=!1}if(d&&!f)return a||(a=new qr),u||cu(e)?Zo(e,t,r,n,i,a):function(e,t,r,n,o,i,a){switch(r){case L:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case I:return!(e.byteLength!=t.byteLength||!i(new Be(e),new Be(t)));case m:case b:case S:return Ua(+e,+t);case g:return e.name==t.name&&e.message==t.message;case j:case C:return e==t+"";case O:var u=or;case x:var c=1&n;if(u||(u=ur),e.size!=t.size&&!c)return!1;var s=a.get(e);if(s)return s==t;n|=2,a.set(e,t);var l=Zo(u(e),u(t),n,o,i,a);return a.delete(e),l;case k:if(Fr)return Fr.call(e)==Fr.call(t)}return!1}(e,t,s,r,n,i,a);if(!(1&r)){var y=f&&Te.call(e,"__wrapped__"),w=p&&Te.call(t,"__wrapped__");if(y||w){var _=y?e.value():e,P=w?t.value():t;return a||(a=new qr),i(_,P,r,n,a)}}return!!d&&(a||(a=new qr),function(e,t,r,n,i,a){var u=1&r,c=ti(e),s=c.length;if(s!=ti(t).length&&!u)return!1;for(var l=s;l--;){var f=c[l];if(!(u?f in t:Te.call(t,f)))return!1}var p=a.get(e),d=a.get(t);if(p&&d)return p==t&&d==e;var y=!0;a.set(e,t),a.set(t,e);for(var h=u;++l<s;){var v=e[f=c[l]],m=t[f];if(n)var b=u?n(m,v,f,t,e,a):n(v,m,f,e,t,a);if(!(b===o?v===m||i(v,m,r,n,a):b)){y=!1;break}h||(h="constructor"==f)}if(y&&!h){var g=e.constructor,w=t.constructor;g==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof w&&w instanceof w||(y=!1)}return a.delete(e),a.delete(t),y}(e,t,r,n,i,a))}(e,t,r,n,An,i))}function In(e,t,r,n){var i=r.length,a=i,u=!n;if(null==e)return!a;for(e=Ee(e);i--;){var c=r[i];if(u&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<a;){var s=(c=r[i])[0],l=e[s],f=c[1];if(u&&c[2]){if(l===o&&!(s in e))return!1}else{var p=new qr;if(n)var d=n(l,f,s,e,t,p);if(!(d===o?An(f,l,3,n,p):d))return!1}}return!0}function Ln(e){return!(!Za(e)||(t=e,Fe&&Fe in t))&&(Ya(e)?Ue:he).test(Mi(e));var t}function Tn(e){return"function"==typeof e?e:null==e?rc:"object"==typeof e?Wa(e)?Dn(e[0],e[1]):Mn(e):fc(e)}function Rn(e){if(!_i(e))return yr(e);var t=[];for(var r in Ee(e))Te.call(e,r)&&"constructor"!=r&&t.push(r);return t}function Fn(e,t){return e<t}function Nn(e,t){var r=-1,o=Ka(e)?n(e.length):[];return ln(e,(function(e,n,i){o[++r]=t(e,n,i)})),o}function Mn(e){var t=ci(e);return 1==t.length&&t[0][2]?Si(t[0][0],t[0][1]):function(r){return r===e||In(r,e,t)}}function Dn(e,t){return bi(e)&&Oi(t)?Si(Ni(e),t):function(r){var n=Pu(r,e);return n===o&&n===t?ju(r,e):An(t,n,3)}}function Un(e,t,r,n,i){e!==t&&vn(t,(function(a,u){if(i||(i=new qr),Za(a))!function(e,t,r,n,i,a,u){var c=ji(e,r),s=ji(t,r),l=u.get(s);if(l)$r(e,r,l);else{var f=a?a(c,s,r+"",e,t,u):o,p=f===o;if(p){var d=Wa(s),y=!d&&Qa(s),h=!d&&!y&&cu(s);f=s,d||y||h?Wa(c)?f=c:qa(c)?f=xo(c):y?(p=!1,f=_o(s,!0)):h?(p=!1,f=So(s,!0)):f=[]:nu(s)||Ba(s)?(f=c,Ba(c)?f=vu(c):Za(c)&&!Ya(c)||(f=yi(s))):p=!1}p&&(u.set(s,f),i(f,s,n,a,u),u.delete(s)),$r(e,r,f)}}(e,t,u,r,Un,n,i);else{var c=n?n(ji(e,u),a,u+"",e,t,i):o;c===o&&(c=a),$r(e,u,c)}}),Iu)}function Vn(e,t){var r=e.length;if(r)return vi(t+=t<0?r:0,r)?e[t]:o}function Gn(e,t,r){t=t.length?It(t,(function(e){return Wa(e)?function(t){return _n(t,1===e.length?e[0]:e)}:e})):[rc];var n=-1;t=It(t,Ht(ai()));var o=Nn(e,(function(e,r,o){var i=It(t,(function(t){return t(e)}));return{criteria:i,index:++n,value:e}}));return function(e,t){var n=e.length;for(e.sort((function(e,t){return function(e,t,r){for(var n=-1,o=e.criteria,i=t.criteria,a=o.length,u=r.length;++n<a;){var c=Eo(o[n],i[n]);if(c)return n>=u?c:c*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}));n--;)e[n]=e[n].value;return e}(o)}function Bn(e,t,r){for(var n=-1,o=t.length,i={};++n<o;){var a=t[n],u=_n(e,a);r(u,a)&&Yn(i,mo(a,e),u)}return i}function Wn(e,t,r,n){var o=n?Vt:Ut,i=-1,a=t.length,u=e;for(e===t&&(t=xo(t)),r&&(u=It(e,Ht(r)));++i<a;)for(var c=0,s=t[i],l=r?r(s):s;(c=o(u,l,c,n))>-1;)u!==e&&Qe.call(u,c,1),Qe.call(e,c,1);return e}function zn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var o=t[r];if(r==n||o!==i){var i=o;vi(o)?Qe.call(e,o,1):co(e,o)}}return e}function Kn(e,t){return e+dt(gr()*(t-e+1))}function qn(e,t){var r="";if(!e||t<1||t>f)return r;do{t%2&&(r+=e),(t=dt(t/2))&&(e+=e)}while(t);return r}function Qn(e,t){return ki(Ei(e,t,rc),e+"")}function Jn(e){return Jr(Uu(e))}function Hn(e,t){var r=Uu(e);return Li(r,on(t,0,r.length))}function Yn(e,t,r,n){if(!Za(e))return e;for(var i=-1,a=(t=mo(t,e)).length,u=a-1,c=e;null!=c&&++i<a;){var s=Ni(t[i]),l=r;if("__proto__"===s||"constructor"===s||"prototype"===s)return e;if(i!=u){var f=c[s];(l=n?n(f,s,c):o)===o&&(l=Za(f)?f:vi(t[i+1])?[]:{})}Xr(c,s,l),c=c[s]}return e}var $n=xr?function(e,t){return xr.set(e,t),e}:rc,Xn=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Zu(t),writable:!0})}:rc;function Zn(e){return Li(Uu(e))}function eo(e,t,r){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=n(i);++o<i;)a[o]=e[o+t];return a}function to(e,t){var r;return ln(e,(function(e,n,o){return!(r=t(e,n,o))})),!!r}function ro(e,t,r){var n=0,o=null==e?n:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;n<o;){var i=n+o>>>1,a=e[i];null!==a&&!uu(a)&&(r?a<=t:a<t)?n=i+1:o=i}return o}return no(e,t,rc,r)}function no(e,t,r,n){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var u=(t=r(t))!=t,c=null===t,s=uu(t),l=t===o;i<a;){var f=dt((i+a)/2),p=r(e[f]),d=p!==o,y=null===p,h=p==p,v=uu(p);if(u)var m=n||h;else m=l?h&&(n||d):c?h&&d&&(n||!y):s?h&&d&&!y&&(n||!v):!y&&!v&&(n?p<=t:p<t);m?i=f+1:a=f}return vr(a,4294967294)}function oo(e,t){for(var r=-1,n=e.length,o=0,i=[];++r<n;){var a=e[r],u=t?t(a):a;if(!r||!Ua(u,c)){var c=u;i[o++]=0===a?0:a}}return i}function io(e){return"number"==typeof e?e:uu(e)?p:+e}function ao(e){if("string"==typeof e)return e;if(Wa(e))return It(e,ao)+"";if(uu(e))return Nr?Nr.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function uo(e,t,r){var n=-1,o=kt,i=e.length,a=!0,u=[],c=u;if(r)a=!1,o=At;else if(i>=200){var s=t?null:Qo(e);if(s)return ur(s);a=!1,o=$t,c=new Kr}else c=t?[]:u;e:for(;++n<i;){var l=e[n],f=t?t(l):l;if(l=r||0!==l?l:0,a&&f==f){for(var p=c.length;p--;)if(c[p]===f)continue e;t&&c.push(f),u.push(l)}else o(c,f,r)||(c!==u&&c.push(f),u.push(l))}return u}function co(e,t){return null==(e=Pi(e,t=mo(t,e)))||delete e[Ni(Hi(t))]}function so(e,t,r,n){return Yn(e,t,r(_n(e,t)),n)}function lo(e,t,r,n){for(var o=e.length,i=n?o:-1;(n?i--:++i<o)&&t(e[i],i,e););return r?eo(e,n?0:i,n?i+1:o):eo(e,n?i+1:0,n?o:i)}function fo(e,t){var r=e;return r instanceof Gr&&(r=r.value()),Tt(t,(function(e,t){return t.func.apply(t.thisArg,Lt([e],t.args))}),r)}function po(e,t,r){var o=e.length;if(o<2)return o?uo(e[0]):[];for(var i=-1,a=n(o);++i<o;)for(var u=e[i],c=-1;++c<o;)c!=i&&(a[i]=sn(a[i]||u,e[c],t,r));return uo(hn(a,1),t,r)}function yo(e,t,r){for(var n=-1,i=e.length,a=t.length,u={};++n<i;){var c=n<a?t[n]:o;r(u,e[n],c)}return u}function ho(e){return qa(e)?e:[]}function vo(e){return"function"==typeof e?e:rc}function mo(e,t){return Wa(e)?e:bi(e,t)?[e]:Fi(mu(e))}var bo=Qn;function go(e,t,r){var n=e.length;return r=r===o?n:r,!t&&r>=n?e:eo(e,t,r)}var wo=at||function(e){return ft.clearTimeout(e)};function _o(e,t){if(t)return e.slice();var r=e.length,n=We?We(r):new e.constructor(r);return e.copy(n),n}function Oo(e){var t=new e.constructor(e.byteLength);return new Be(t).set(new Be(e)),t}function So(e,t){var r=t?Oo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Eo(e,t){if(e!==t){var r=e!==o,n=null===e,i=e==e,a=uu(e),u=t!==o,c=null===t,s=t==t,l=uu(t);if(!c&&!l&&!a&&e>t||a&&u&&s&&!c&&!l||n&&u&&s||!r&&s||!i)return 1;if(!n&&!a&&!l&&e<t||l&&r&&i&&!n&&!a||c&&r&&i||!u&&i||!s)return-1}return 0}function Po(e,t,r,o){for(var i=-1,a=e.length,u=r.length,c=-1,s=t.length,l=hr(a-u,0),f=n(s+l),p=!o;++c<s;)f[c]=t[c];for(;++i<u;)(p||i<a)&&(f[r[i]]=e[i]);for(;l--;)f[c++]=e[i++];return f}function jo(e,t,r,o){for(var i=-1,a=e.length,u=-1,c=r.length,s=-1,l=t.length,f=hr(a-c,0),p=n(f+l),d=!o;++i<f;)p[i]=e[i];for(var y=i;++s<l;)p[y+s]=t[s];for(;++u<c;)(d||i<a)&&(p[y+r[u]]=e[i++]);return p}function xo(e,t){var r=-1,o=e.length;for(t||(t=n(o));++r<o;)t[r]=e[r];return t}function Co(e,t,r,n){var i=!r;r||(r={});for(var a=-1,u=t.length;++a<u;){var c=t[a],s=n?n(r[c],e[c],c,r,e):o;s===o&&(s=e[c]),i?rn(r,c,s):Xr(r,c,s)}return r}function ko(e,t){return function(r,n){var o=Wa(r)?Et:en,i=t?t():{};return o(r,e,ai(n,2),i)}}function Ao(e){return Qn((function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:o,u=i>2?r[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,u&&mi(r[0],r[1],u)&&(a=i<3?o:a,i=1),t=Ee(t);++n<i;){var c=r[n];c&&e(t,c,n,a)}return t}))}function Io(e,t){return function(r,n){if(null==r)return r;if(!Ka(r))return e(r,n);for(var o=r.length,i=t?o:-1,a=Ee(r);(t?i--:++i<o)&&!1!==n(a[i],i,a););return r}}function Lo(e){return function(t,r,n){for(var o=-1,i=Ee(t),a=n(t),u=a.length;u--;){var c=a[e?u:++o];if(!1===r(i[c],c,i))break}return t}}function To(e){return function(t){var r=nr(t=mu(t))?lr(t):o,n=r?r[0]:t.charAt(0),i=r?go(r,1).join(""):t.slice(1);return n[e]()+i}}function Ro(e){return function(t){return Tt(Yu(Bu(t).replace(Ye,"")),e,"")}}function Fo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Dr(e.prototype),n=e.apply(r,t);return Za(n)?n:r}}function No(e){return function(t,r,n){var i=Ee(t);if(!Ka(t)){var a=ai(r,3);t=Au(t),r=function(e){return a(i[e],e,i)}}var u=e(t,r,n);return u>-1?i[a?t[u]:u]:o}}function Mo(e){return ei((function(t){var r=t.length,n=r,a=Vr.prototype.thru;for(e&&t.reverse();n--;){var u=t[n];if("function"!=typeof u)throw new xe(i);if(a&&!c&&"wrapper"==oi(u))var c=new Vr([],!0)}for(n=c?n:r;++n<r;){var s=oi(u=t[n]),l="wrapper"==s?ni(u):o;c=l&&gi(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?c[oi(l[0])].apply(c,l[3]):1==u.length&&gi(u)?c[s]():c.thru(u)}return function(){var e=arguments,n=e[0];if(c&&1==e.length&&Wa(n))return c.plant(n).value();for(var o=0,i=r?t[o].apply(this,e):n;++o<r;)i=t[o].call(this,i);return i}}))}function Do(e,t,r,i,a,u,c,l,f,p){var d=t&s,y=1&t,h=2&t,v=24&t,m=512&t,b=h?o:Fo(e);return function s(){for(var g=arguments.length,w=n(g),_=g;_--;)w[_]=arguments[_];if(v)var O=ii(s),S=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(w,O);if(i&&(w=Po(w,i,a,v)),u&&(w=jo(w,u,c,v)),g-=S,v&&g<p){var E=ar(w,O);return Ko(e,t,Do,s.placeholder,r,w,E,l,f,p-g)}var P=y?r:this,j=h?P[e]:e;return g=w.length,l?w=function(e,t){for(var r=e.length,n=vr(t.length,r),i=xo(e);n--;){var a=t[n];e[n]=vi(a,r)?i[a]:o}return e}(w,l):m&&g>1&&w.reverse(),d&&f<g&&(w.length=f),this&&this!==ft&&this instanceof s&&(j=b||Fo(j)),j.apply(P,w)}}function Uo(e,t){return function(r,n){return function(e,t,r,n){return bn(e,(function(e,o,i){t(n,r(e),o,i)})),n}(r,e,t(n),{})}}function Vo(e,t){return function(r,n){var i;if(r===o&&n===o)return t;if(r!==o&&(i=r),n!==o){if(i===o)return n;"string"==typeof r||"string"==typeof n?(r=ao(r),n=ao(n)):(r=io(r),n=io(n)),i=e(r,n)}return i}}function Go(e){return ei((function(t){return t=It(t,Ht(ai())),Qn((function(r){var n=this;return e(t,(function(e){return St(e,n,r)}))}))}))}function Bo(e,t){var r=(t=t===o?" ":ao(t)).length;if(r<2)return r?qn(t,e):t;var n=qn(t,pt(e/sr(t)));return nr(t)?go(lr(n),0,e).join(""):n.slice(0,e)}function Wo(e){return function(t,r,i){return i&&"number"!=typeof i&&mi(t,r,i)&&(r=i=o),t=pu(t),r===o?(r=t,t=0):r=pu(r),function(e,t,r,o){for(var i=-1,a=hr(pt((t-e)/(r||1)),0),u=n(a);a--;)u[o?a:++i]=e,e+=r;return u}(t,r,i=i===o?t<r?1:-1:pu(i),e)}}function zo(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=hu(t),r=hu(r)),e(t,r)}}function Ko(e,t,r,n,i,a,u,s,l,f){var p=8&t;t|=p?c:64,4&(t&=~(p?64:c))||(t&=-4);var d=[e,t,i,p?a:o,p?u:o,p?o:a,p?o:u,s,l,f],y=r.apply(o,d);return gi(e)&&xi(y,d),y.placeholder=n,Ai(y,e,t)}function qo(e){var t=Se[e];return function(e,r){if(e=hu(e),(r=null==r?0:vr(du(r),292))&&Nt(e)){var n=(mu(e)+"e").split("e");return+((n=(mu(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var Qo=Er&&1/ur(new Er([,-0]))[1]==l?function(e){return new Er(e)}:uc;function Jo(e){return function(t){var r=pi(t);return r==O?or(t):r==x?cr(t):function(e,t){return It(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Ho(e,t,r,a,l,f,p,d){var y=2&t;if(!y&&"function"!=typeof e)throw new xe(i);var h=a?a.length:0;if(h||(t&=-97,a=l=o),p=p===o?p:hr(du(p),0),d=d===o?d:du(d),h-=l?l.length:0,64&t){var v=a,m=l;a=l=o}var b=y?o:ni(e),g=[e,t,r,a,l,v,m,f,p,d];if(b&&function(e,t){var r=e[1],n=t[1],o=r|n,i=o<131,a=n==s&&8==r||n==s&&256==r&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(!i&&!a)return e;1&n&&(e[2]=t[2],o|=1&r?0:4);var c=t[3];if(c){var l=e[3];e[3]=l?Po(l,c,t[4]):c,e[4]=l?ar(e[3],u):t[4]}(c=t[5])&&(l=e[5],e[5]=l?jo(l,c,t[6]):c,e[6]=l?ar(e[5],u):t[6]),(c=t[7])&&(e[7]=c),n&s&&(e[8]=null==e[8]?t[8]:vr(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(g,b),e=g[0],t=g[1],r=g[2],a=g[3],l=g[4],!(d=g[9]=g[9]===o?y?0:e.length:hr(g[9]-h,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||16==t?function(e,t,r){var i=Fo(e);return function a(){for(var u=arguments.length,c=n(u),s=u,l=ii(a);s--;)c[s]=arguments[s];var f=u<3&&c[0]!==l&&c[u-1]!==l?[]:ar(c,l);return(u-=f.length)<r?Ko(e,t,Do,a.placeholder,o,c,f,o,o,r-u):St(this&&this!==ft&&this instanceof a?i:e,this,c)}}(e,t,d):t!=c&&33!=t||l.length?Do.apply(o,g):function(e,t,r,o){var i=1&t,a=Fo(e);return function t(){for(var u=-1,c=arguments.length,s=-1,l=o.length,f=n(l+c),p=this&&this!==ft&&this instanceof t?a:e;++s<l;)f[s]=o[s];for(;c--;)f[s++]=arguments[++u];return St(p,i?r:this,f)}}(e,t,r,a);else var w=function(e,t,r){var n=1&t,o=Fo(e);return function t(){return(this&&this!==ft&&this instanceof t?o:e).apply(n?r:this,arguments)}}(e,t,r);return Ai((b?$n:xi)(w,g),e,t)}function Yo(e,t,r,n){return e===o||Ua(e,Ae[r])&&!Te.call(n,r)?t:e}function $o(e,t,r,n,i,a){return Za(e)&&Za(t)&&(a.set(t,e),Un(e,t,o,$o,a),a.delete(t)),e}function Xo(e){return nu(e)?o:e}function Zo(e,t,r,n,i,a){var u=1&r,c=e.length,s=t.length;if(c!=s&&!(u&&s>c))return!1;var l=a.get(e),f=a.get(t);if(l&&f)return l==t&&f==e;var p=-1,d=!0,y=2&r?new Kr:o;for(a.set(e,t),a.set(t,e);++p<c;){var h=e[p],v=t[p];if(n)var m=u?n(v,h,p,t,e,a):n(h,v,p,e,t,a);if(m!==o){if(m)continue;d=!1;break}if(y){if(!Ft(t,(function(e,t){if(!$t(y,t)&&(h===e||i(h,e,r,n,a)))return y.push(t)}))){d=!1;break}}else if(h!==v&&!i(h,v,r,n,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function ei(e){return ki(Ei(e,o,zi),e+"")}function ti(e){return On(e,Au,li)}function ri(e){return On(e,Iu,fi)}var ni=xr?function(e){return xr.get(e)}:uc;function oi(e){for(var t=e.name+"",r=Cr[t],n=Te.call(Cr,t)?r.length:0;n--;){var o=r[n],i=o.func;if(null==i||i==e)return o.name}return t}function ii(e){return(Te.call(Mr,"placeholder")?Mr:e).placeholder}function ai(){var e=Mr.iteratee||nc;return e=e===nc?Tn:e,arguments.length?e(arguments[0],arguments[1]):e}function ui(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function ci(e){for(var t=Au(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,Oi(o)]}return t}function si(e,t){var r=function(e,t){return null==e?o:e[t]}(e,t);return Ln(r)?r:o}var li=ht?function(e){return null==e?[]:(e=Ee(e),Ct(ht(e),(function(t){return qe.call(e,t)})))}:yc,fi=ht?function(e){for(var t=[];e;)Lt(t,li(e)),e=ze(e);return t}:yc,pi=Sn;function di(e,t,r){for(var n=-1,o=(t=mo(t,e)).length,i=!1;++n<o;){var a=Ni(t[n]);if(!(i=null!=e&&r(e,a)))break;e=e[a]}return i||++n!=o?i:!!(o=null==e?0:e.length)&&Xa(o)&&vi(a,o)&&(Wa(e)||Ba(e))}function yi(e){return"function"!=typeof e.constructor||_i(e)?{}:Dr(ze(e))}function hi(e){return Wa(e)||Ba(e)||!!(Je&&e&&e[Je])}function vi(e,t){var r=typeof e;return!!(t=null==t?f:t)&&("number"==r||"symbol"!=r&&me.test(e))&&e>-1&&e%1==0&&e<t}function mi(e,t,r){if(!Za(r))return!1;var n=typeof t;return!!("number"==n?Ka(r)&&vi(t,r.length):"string"==n&&t in r)&&Ua(r[t],e)}function bi(e,t){if(Wa(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!uu(e))||Z.test(e)||!X.test(e)||null!=t&&e in Ee(t)}function gi(e){var t=oi(e),r=Mr[t];if("function"!=typeof r||!(t in Gr.prototype))return!1;if(e===r)return!0;var n=ni(r);return!!n&&e===n[0]}(_r&&pi(new _r(new ArrayBuffer(1)))!=L||Or&&pi(new Or)!=O||Sr&&pi(Sr.resolve())!=P||Er&&pi(new Er)!=x||Pr&&pi(new Pr)!=A)&&(pi=function(e){var t=Sn(e),r=t==E?e.constructor:o,n=r?Mi(r):"";if(n)switch(n){case kr:return L;case Ar:return O;case Ir:return P;case Lr:return x;case Tr:return A}return t});var wi=Ie?Ya:hc;function _i(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ae)}function Oi(e){return e==e&&!Za(e)}function Si(e,t){return function(r){return null!=r&&r[e]===t&&(t!==o||e in Ee(r))}}function Ei(e,t,r){return t=hr(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=hr(o.length-t,0),u=n(a);++i<a;)u[i]=o[t+i];i=-1;for(var c=n(t+1);++i<t;)c[i]=o[i];return c[t]=r(u),St(e,this,c)}}function Pi(e,t){return t.length<2?e:_n(e,eo(t,0,-1))}function ji(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var xi=Ii($n),Ci=lt||function(e,t){return ft.setTimeout(e,t)},ki=Ii(Xn);function Ai(e,t,r){var n=t+"";return ki(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return Pt(y,(function(r){var n="_."+r[0];t&r[1]&&!kt(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(ue):[]}(n),r)))}function Ii(e){var t=0,r=0;return function(){var n=mr(),i=16-(n-r);if(r=n,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Li(e,t){var r=-1,n=e.length,i=n-1;for(t=t===o?n:t;++r<t;){var a=Kn(r,i),u=e[a];e[a]=e[r],e[r]=u}return e.length=t,e}var Ti,Ri,Fi=(Ti=Ta((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,r,n,o){t.push(n?o.replace(le,"$1"):r||e)})),t}),(function(e){return 500===Ri.size&&Ri.clear(),e})),Ri=Ti.cache,Ti);function Ni(e){if("string"==typeof e||uu(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Mi(e){if(null!=e){try{return Le.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Di(e){if(e instanceof Gr)return e.clone();var t=new Vr(e.__wrapped__,e.__chain__);return t.__actions__=xo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ui=Qn((function(e,t){return qa(e)?sn(e,hn(t,1,qa,!0)):[]})),Vi=Qn((function(e,t){var r=Hi(t);return qa(r)&&(r=o),qa(e)?sn(e,hn(t,1,qa,!0),ai(r,2)):[]})),Gi=Qn((function(e,t){var r=Hi(t);return qa(r)&&(r=o),qa(e)?sn(e,hn(t,1,qa,!0),o,r):[]}));function Bi(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:du(r);return o<0&&(o=hr(n+o,0)),Dt(e,ai(t,3),o)}function Wi(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=n-1;return r!==o&&(i=du(r),i=r<0?hr(n+i,0):vr(i,n-1)),Dt(e,ai(t,3),i,!0)}function zi(e){return null!=e&&e.length?hn(e,1):[]}function Ki(e){return e&&e.length?e[0]:o}var qi=Qn((function(e){var t=It(e,ho);return t.length&&t[0]===e[0]?xn(t):[]})),Qi=Qn((function(e){var t=Hi(e),r=It(e,ho);return t===Hi(r)?t=o:r.pop(),r.length&&r[0]===e[0]?xn(r,ai(t,2)):[]})),Ji=Qn((function(e){var t=Hi(e),r=It(e,ho);return(t="function"==typeof t?t:o)&&r.pop(),r.length&&r[0]===e[0]?xn(r,o,t):[]}));function Hi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Yi=Qn($i);function $i(e,t){return e&&e.length&&t&&t.length?Wn(e,t):e}var Xi=ei((function(e,t){var r=null==e?0:e.length,n=nn(e,t);return zn(e,It(t,(function(e){return vi(e,r)?+e:e})).sort(Eo)),n}));function Zi(e){return null==e?e:wr.call(e)}var ea=Qn((function(e){return uo(hn(e,1,qa,!0))})),ta=Qn((function(e){var t=Hi(e);return qa(t)&&(t=o),uo(hn(e,1,qa,!0),ai(t,2))})),ra=Qn((function(e){var t=Hi(e);return t="function"==typeof t?t:o,uo(hn(e,1,qa,!0),o,t)}));function na(e){if(!e||!e.length)return[];var t=0;return e=Ct(e,(function(e){if(qa(e))return t=hr(e.length,t),!0})),Qt(t,(function(t){return It(e,Wt(t))}))}function oa(e,t){if(!e||!e.length)return[];var r=na(e);return null==t?r:It(r,(function(e){return St(t,o,e)}))}var ia=Qn((function(e,t){return qa(e)?sn(e,t):[]})),aa=Qn((function(e){return po(Ct(e,qa))})),ua=Qn((function(e){var t=Hi(e);return qa(t)&&(t=o),po(Ct(e,qa),ai(t,2))})),ca=Qn((function(e){var t=Hi(e);return t="function"==typeof t?t:o,po(Ct(e,qa),o,t)})),sa=Qn(na),la=Qn((function(e){var t=e.length,r=t>1?e[t-1]:o;return r="function"==typeof r?(e.pop(),r):o,oa(e,r)}));function fa(e){var t=Mr(e);return t.__chain__=!0,t}function pa(e,t){return t(e)}var da=ei((function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,i=function(t){return nn(t,e)};return!(t>1||this.__actions__.length)&&n instanceof Gr&&vi(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:pa,args:[i],thisArg:o}),new Vr(n,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)})),ya=ko((function(e,t,r){Te.call(e,r)?++e[r]:rn(e,r,1)})),ha=No(Bi),va=No(Wi);function ma(e,t){return(Wa(e)?Pt:ln)(e,ai(t,3))}function ba(e,t){return(Wa(e)?jt:fn)(e,ai(t,3))}var ga=ko((function(e,t,r){Te.call(e,r)?e[r].push(t):rn(e,r,[t])})),wa=Qn((function(e,t,r){var o=-1,i="function"==typeof t,a=Ka(e)?n(e.length):[];return ln(e,(function(e){a[++o]=i?St(t,e,r):Cn(e,t,r)})),a})),_a=ko((function(e,t,r){rn(e,r,t)}));function Oa(e,t){return(Wa(e)?It:Nn)(e,ai(t,3))}var Sa=ko((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]})),Ea=Qn((function(e,t){if(null==e)return[];var r=t.length;return r>1&&mi(e,t[0],t[1])?t=[]:r>2&&mi(t[0],t[1],t[2])&&(t=[t[0]]),Gn(e,hn(t,1),[])})),Pa=st||function(){return ft.Date.now()};function ja(e,t,r){return t=r?o:t,t=e&&null==t?e.length:t,Ho(e,s,o,o,o,o,t)}function xa(e,t){var r;if("function"!=typeof t)throw new xe(i);return e=du(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=o),r}}var Ca=Qn((function(e,t,r){var n=1;if(r.length){var o=ar(r,ii(Ca));n|=c}return Ho(e,n,t,r,o)})),ka=Qn((function(e,t,r){var n=3;if(r.length){var o=ar(r,ii(ka));n|=c}return Ho(t,n,e,r,o)}));function Aa(e,t,r){var n,a,u,c,s,l,f=0,p=!1,d=!1,y=!0;if("function"!=typeof e)throw new xe(i);function h(t){var r=n,i=a;return n=a=o,f=t,c=e.apply(i,r)}function v(e){var r=e-l;return l===o||r>=t||r<0||d&&e-f>=u}function m(){var e=Pa();if(v(e))return b(e);s=Ci(m,function(e){var r=t-(e-l);return d?vr(r,u-(e-f)):r}(e))}function b(e){return s=o,y&&n?h(e):(n=a=o,c)}function g(){var e=Pa(),r=v(e);if(n=arguments,a=this,l=e,r){if(s===o)return function(e){return f=e,s=Ci(m,t),p?h(e):c}(l);if(d)return wo(s),s=Ci(m,t),h(l)}return s===o&&(s=Ci(m,t)),c}return t=hu(t)||0,Za(r)&&(p=!!r.leading,u=(d="maxWait"in r)?hr(hu(r.maxWait)||0,t):u,y="trailing"in r?!!r.trailing:y),g.cancel=function(){s!==o&&wo(s),f=0,n=l=a=s=o},g.flush=function(){return s===o?c:b(Pa())},g}var Ia=Qn((function(e,t){return cn(e,1,t)})),La=Qn((function(e,t,r){return cn(e,hu(t)||0,r)}));function Ta(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new xe(i);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(Ta.Cache||zr),r}function Ra(e){if("function"!=typeof e)throw new xe(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ta.Cache=zr;var Fa=bo((function(e,t){var r=(t=1==t.length&&Wa(t[0])?It(t[0],Ht(ai())):It(hn(t,1),Ht(ai()))).length;return Qn((function(n){for(var o=-1,i=vr(n.length,r);++o<i;)n[o]=t[o].call(this,n[o]);return St(e,this,n)}))})),Na=Qn((function(e,t){var r=ar(t,ii(Na));return Ho(e,c,o,t,r)})),Ma=Qn((function(e,t){var r=ar(t,ii(Ma));return Ho(e,64,o,t,r)})),Da=ei((function(e,t){return Ho(e,256,o,o,o,t)}));function Ua(e,t){return e===t||e!=e&&t!=t}var Va=zo(En),Ga=zo((function(e,t){return e>=t})),Ba=kn(function(){return arguments}())?kn:function(e){return eu(e)&&Te.call(e,"callee")&&!qe.call(e,"callee")},Wa=n.isArray,za=mt?Ht(mt):function(e){return eu(e)&&Sn(e)==I};function Ka(e){return null!=e&&Xa(e.length)&&!Ya(e)}function qa(e){return eu(e)&&Ka(e)}var Qa=vt||hc,Ja=bt?Ht(bt):function(e){return eu(e)&&Sn(e)==b};function Ha(e){if(!eu(e))return!1;var t=Sn(e);return t==g||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!nu(e)}function Ya(e){if(!Za(e))return!1;var t=Sn(e);return t==w||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function $a(e){return"number"==typeof e&&e==du(e)}function Xa(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function Za(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eu(e){return null!=e&&"object"==typeof e}var tu=gt?Ht(gt):function(e){return eu(e)&&pi(e)==O};function ru(e){return"number"==typeof e||eu(e)&&Sn(e)==S}function nu(e){if(!eu(e)||Sn(e)!=E)return!1;var t=ze(e);if(null===t)return!0;var r=Te.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Le.call(r)==Me}var ou=wt?Ht(wt):function(e){return eu(e)&&Sn(e)==j},iu=_t?Ht(_t):function(e){return eu(e)&&pi(e)==x};function au(e){return"string"==typeof e||!Wa(e)&&eu(e)&&Sn(e)==C}function uu(e){return"symbol"==typeof e||eu(e)&&Sn(e)==k}var cu=Ot?Ht(Ot):function(e){return eu(e)&&Xa(e.length)&&!!ot[Sn(e)]},su=zo(Fn),lu=zo((function(e,t){return e<=t}));function fu(e){if(!e)return[];if(Ka(e))return au(e)?lr(e):xo(e);if(He&&e[He])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[He]());var t=pi(e);return(t==O?or:t==x?ur:Uu)(e)}function pu(e){return e?(e=hu(e))===l||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function du(e){var t=pu(e),r=t%1;return t==t?r?t-r:t:0}function yu(e){return e?on(du(e),0,d):0}function hu(e){if("number"==typeof e)return e;if(uu(e))return p;if(Za(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Za(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var r=ye.test(e);return r||ve.test(e)?ct(e.slice(2),r?2:8):de.test(e)?p:+e}function vu(e){return Co(e,Iu(e))}function mu(e){return null==e?"":ao(e)}var bu=Ao((function(e,t){if(_i(t)||Ka(t))Co(t,Au(t),e);else for(var r in t)Te.call(t,r)&&Xr(e,r,t[r])})),gu=Ao((function(e,t){Co(t,Iu(t),e)})),wu=Ao((function(e,t,r,n){Co(t,Iu(t),e,n)})),_u=Ao((function(e,t,r,n){Co(t,Au(t),e,n)})),Ou=ei(nn),Su=Qn((function(e,t){e=Ee(e);var r=-1,n=t.length,i=n>2?t[2]:o;for(i&&mi(t[0],t[1],i)&&(n=1);++r<n;)for(var a=t[r],u=Iu(a),c=-1,s=u.length;++c<s;){var l=u[c],f=e[l];(f===o||Ua(f,Ae[l])&&!Te.call(e,l))&&(e[l]=a[l])}return e})),Eu=Qn((function(e){return e.push(o,$o),St(Tu,o,e)}));function Pu(e,t,r){var n=null==e?o:_n(e,t);return n===o?r:n}function ju(e,t){return null!=e&&di(e,t,jn)}var xu=Uo((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),e[t]=r}),Zu(rc)),Cu=Uo((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),Te.call(e,t)?e[t].push(r):e[t]=[r]}),ai),ku=Qn(Cn);function Au(e){return Ka(e)?Qr(e):Rn(e)}function Iu(e){return Ka(e)?Qr(e,!0):function(e){if(!Za(e))return function(e){var t=[];if(null!=e)for(var r in Ee(e))t.push(r);return t}(e);var t=_i(e),r=[];for(var n in e)("constructor"!=n||!t&&Te.call(e,n))&&r.push(n);return r}(e)}var Lu=Ao((function(e,t,r){Un(e,t,r)})),Tu=Ao((function(e,t,r,n){Un(e,t,r,n)})),Ru=ei((function(e,t){var r={};if(null==e)return r;var n=!1;t=It(t,(function(t){return t=mo(t,e),n||(n=t.length>1),t})),Co(e,ri(e),r),n&&(r=an(r,7,Xo));for(var o=t.length;o--;)co(r,t[o]);return r})),Fu=ei((function(e,t){return null==e?{}:function(e,t){return Bn(e,t,(function(t,r){return ju(e,r)}))}(e,t)}));function Nu(e,t){if(null==e)return{};var r=It(ri(e),(function(e){return[e]}));return t=ai(t),Bn(e,r,(function(e,r){return t(e,r[0])}))}var Mu=Jo(Au),Du=Jo(Iu);function Uu(e){return null==e?[]:Yt(e,Au(e))}var Vu=Ro((function(e,t,r){return t=t.toLowerCase(),e+(r?Gu(t):t)}));function Gu(e){return Hu(mu(e).toLowerCase())}function Bu(e){return(e=mu(e))&&e.replace(be,er).replace($e,"")}var Wu=Ro((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),zu=Ro((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Ku=To("toLowerCase"),qu=Ro((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()})),Qu=Ro((function(e,t,r){return e+(r?" ":"")+Hu(t)})),Ju=Ro((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Hu=To("toUpperCase");function Yu(e,t,r){return e=mu(e),(t=r?o:t)===o?function(e){return tt.test(e)}(e)?function(e){return e.match(Ze)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var $u=Qn((function(e,t){try{return St(e,o,t)}catch(e){return Ha(e)?e:new _e(e)}})),Xu=ei((function(e,t){return Pt(t,(function(t){t=Ni(t),rn(e,t,Ca(e[t],e))})),e}));function Zu(e){return function(){return e}}var ec=Mo(),tc=Mo(!0);function rc(e){return e}function nc(e){return Tn("function"==typeof e?e:an(e,1))}var oc=Qn((function(e,t){return function(r){return Cn(r,e,t)}})),ic=Qn((function(e,t){return function(r){return Cn(e,r,t)}}));function ac(e,t,r){var n=Au(t),o=wn(t,n);null!=r||Za(t)&&(o.length||!n.length)||(r=t,t=e,e=this,o=wn(t,Au(t)));var i=!(Za(r)&&"chain"in r&&!r.chain),a=Ya(e);return Pt(o,(function(r){var n=t[r];e[r]=n,a&&(e.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=e(this.__wrapped__);return(r.__actions__=xo(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,Lt([this.value()],arguments))})})),e}function uc(){}var cc=Go(It),sc=Go(xt),lc=Go(Ft);function fc(e){return bi(e)?Wt(Ni(e)):function(e){return function(t){return _n(t,e)}}(e)}var pc=Wo(),dc=Wo(!0);function yc(){return[]}function hc(){return!1}var vc,mc=Vo((function(e,t){return e+t}),0),bc=qo("ceil"),gc=Vo((function(e,t){return e/t}),1),wc=qo("floor"),_c=Vo((function(e,t){return e*t}),1),Oc=qo("round"),Sc=Vo((function(e,t){return e-t}),0);return Mr.after=function(e,t){if("function"!=typeof t)throw new xe(i);return e=du(e),function(){if(--e<1)return t.apply(this,arguments)}},Mr.ary=ja,Mr.assign=bu,Mr.assignIn=gu,Mr.assignInWith=wu,Mr.assignWith=_u,Mr.at=Ou,Mr.before=xa,Mr.bind=Ca,Mr.bindAll=Xu,Mr.bindKey=ka,Mr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Wa(e)?e:[e]},Mr.chain=fa,Mr.chunk=function(e,t,r){t=(r?mi(e,t,r):t===o)?1:hr(du(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,u=0,c=n(pt(i/t));a<i;)c[u++]=eo(e,a,a+=t);return c},Mr.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,o=[];++t<r;){var i=e[t];i&&(o[n++]=i)}return o},Mr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Lt(Wa(r)?xo(r):[r],hn(t,1))},Mr.cond=function(e){var t=null==e?0:e.length,r=ai();return e=t?It(e,(function(e){if("function"!=typeof e[1])throw new xe(i);return[r(e[0]),e[1]]})):[],Qn((function(r){for(var n=-1;++n<t;){var o=e[n];if(St(o[0],this,r))return St(o[1],this,r)}}))},Mr.conforms=function(e){return function(e){var t=Au(e);return function(r){return un(r,e,t)}}(an(e,1))},Mr.constant=Zu,Mr.countBy=ya,Mr.create=function(e,t){var r=Dr(e);return null==t?r:tn(r,t)},Mr.curry=function e(t,r,n){var i=Ho(t,8,o,o,o,o,o,r=n?o:r);return i.placeholder=e.placeholder,i},Mr.curryRight=function e(t,r,n){var i=Ho(t,16,o,o,o,o,o,r=n?o:r);return i.placeholder=e.placeholder,i},Mr.debounce=Aa,Mr.defaults=Su,Mr.defaultsDeep=Eu,Mr.defer=Ia,Mr.delay=La,Mr.difference=Ui,Mr.differenceBy=Vi,Mr.differenceWith=Gi,Mr.drop=function(e,t,r){var n=null==e?0:e.length;return n?eo(e,(t=r||t===o?1:du(t))<0?0:t,n):[]},Mr.dropRight=function(e,t,r){var n=null==e?0:e.length;return n?eo(e,0,(t=n-(t=r||t===o?1:du(t)))<0?0:t):[]},Mr.dropRightWhile=function(e,t){return e&&e.length?lo(e,ai(t,3),!0,!0):[]},Mr.dropWhile=function(e,t){return e&&e.length?lo(e,ai(t,3),!0):[]},Mr.fill=function(e,t,r,n){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&mi(e,t,r)&&(r=0,n=i),function(e,t,r,n){var i=e.length;for((r=du(r))<0&&(r=-r>i?0:i+r),(n=n===o||n>i?i:du(n))<0&&(n+=i),n=r>n?0:yu(n);r<n;)e[r++]=t;return e}(e,t,r,n)):[]},Mr.filter=function(e,t){return(Wa(e)?Ct:yn)(e,ai(t,3))},Mr.flatMap=function(e,t){return hn(Oa(e,t),1)},Mr.flatMapDeep=function(e,t){return hn(Oa(e,t),l)},Mr.flatMapDepth=function(e,t,r){return r=r===o?1:du(r),hn(Oa(e,t),r)},Mr.flatten=zi,Mr.flattenDeep=function(e){return null!=e&&e.length?hn(e,l):[]},Mr.flattenDepth=function(e,t){return null!=e&&e.length?hn(e,t=t===o?1:du(t)):[]},Mr.flip=function(e){return Ho(e,512)},Mr.flow=ec,Mr.flowRight=tc,Mr.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var o=e[t];n[o[0]]=o[1]}return n},Mr.functions=function(e){return null==e?[]:wn(e,Au(e))},Mr.functionsIn=function(e){return null==e?[]:wn(e,Iu(e))},Mr.groupBy=ga,Mr.initial=function(e){return null!=e&&e.length?eo(e,0,-1):[]},Mr.intersection=qi,Mr.intersectionBy=Qi,Mr.intersectionWith=Ji,Mr.invert=xu,Mr.invertBy=Cu,Mr.invokeMap=wa,Mr.iteratee=nc,Mr.keyBy=_a,Mr.keys=Au,Mr.keysIn=Iu,Mr.map=Oa,Mr.mapKeys=function(e,t){var r={};return t=ai(t,3),bn(e,(function(e,n,o){rn(r,t(e,n,o),e)})),r},Mr.mapValues=function(e,t){var r={};return t=ai(t,3),bn(e,(function(e,n,o){rn(r,n,t(e,n,o))})),r},Mr.matches=function(e){return Mn(an(e,1))},Mr.matchesProperty=function(e,t){return Dn(e,an(t,1))},Mr.memoize=Ta,Mr.merge=Lu,Mr.mergeWith=Tu,Mr.method=oc,Mr.methodOf=ic,Mr.mixin=ac,Mr.negate=Ra,Mr.nthArg=function(e){return e=du(e),Qn((function(t){return Vn(t,e)}))},Mr.omit=Ru,Mr.omitBy=function(e,t){return Nu(e,Ra(ai(t)))},Mr.once=function(e){return xa(2,e)},Mr.orderBy=function(e,t,r,n){return null==e?[]:(Wa(t)||(t=null==t?[]:[t]),Wa(r=n?o:r)||(r=null==r?[]:[r]),Gn(e,t,r))},Mr.over=cc,Mr.overArgs=Fa,Mr.overEvery=sc,Mr.overSome=lc,Mr.partial=Na,Mr.partialRight=Ma,Mr.partition=Sa,Mr.pick=Fu,Mr.pickBy=Nu,Mr.property=fc,Mr.propertyOf=function(e){return function(t){return null==e?o:_n(e,t)}},Mr.pull=Yi,Mr.pullAll=$i,Mr.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?Wn(e,t,ai(r,2)):e},Mr.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Wn(e,t,o,r):e},Mr.pullAt=Xi,Mr.range=pc,Mr.rangeRight=dc,Mr.rearg=Da,Mr.reject=function(e,t){return(Wa(e)?Ct:yn)(e,Ra(ai(t,3)))},Mr.remove=function(e,t){var r=[];if(!e||!e.length)return r;var n=-1,o=[],i=e.length;for(t=ai(t,3);++n<i;){var a=e[n];t(a,n,e)&&(r.push(a),o.push(n))}return zn(e,o),r},Mr.rest=function(e,t){if("function"!=typeof e)throw new xe(i);return Qn(e,t=t===o?t:du(t))},Mr.reverse=Zi,Mr.sampleSize=function(e,t,r){return t=(r?mi(e,t,r):t===o)?1:du(t),(Wa(e)?Hr:Hn)(e,t)},Mr.set=function(e,t,r){return null==e?e:Yn(e,t,r)},Mr.setWith=function(e,t,r,n){return n="function"==typeof n?n:o,null==e?e:Yn(e,t,r,n)},Mr.shuffle=function(e){return(Wa(e)?Yr:Zn)(e)},Mr.slice=function(e,t,r){var n=null==e?0:e.length;return n?(r&&"number"!=typeof r&&mi(e,t,r)?(t=0,r=n):(t=null==t?0:du(t),r=r===o?n:du(r)),eo(e,t,r)):[]},Mr.sortBy=Ea,Mr.sortedUniq=function(e){return e&&e.length?oo(e):[]},Mr.sortedUniqBy=function(e,t){return e&&e.length?oo(e,ai(t,2)):[]},Mr.split=function(e,t,r){return r&&"number"!=typeof r&&mi(e,t,r)&&(t=r=o),(r=r===o?d:r>>>0)?(e=mu(e))&&("string"==typeof t||null!=t&&!ou(t))&&!(t=ao(t))&&nr(e)?go(lr(e),0,r):e.split(t,r):[]},Mr.spread=function(e,t){if("function"!=typeof e)throw new xe(i);return t=null==t?0:hr(du(t),0),Qn((function(r){var n=r[t],o=go(r,0,t);return n&&Lt(o,n),St(e,this,o)}))},Mr.tail=function(e){var t=null==e?0:e.length;return t?eo(e,1,t):[]},Mr.take=function(e,t,r){return e&&e.length?eo(e,0,(t=r||t===o?1:du(t))<0?0:t):[]},Mr.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?eo(e,(t=n-(t=r||t===o?1:du(t)))<0?0:t,n):[]},Mr.takeRightWhile=function(e,t){return e&&e.length?lo(e,ai(t,3),!1,!0):[]},Mr.takeWhile=function(e,t){return e&&e.length?lo(e,ai(t,3)):[]},Mr.tap=function(e,t){return t(e),e},Mr.throttle=function(e,t,r){var n=!0,o=!0;if("function"!=typeof e)throw new xe(i);return Za(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Aa(e,t,{leading:n,maxWait:t,trailing:o})},Mr.thru=pa,Mr.toArray=fu,Mr.toPairs=Mu,Mr.toPairsIn=Du,Mr.toPath=function(e){return Wa(e)?It(e,Ni):uu(e)?[e]:xo(Fi(mu(e)))},Mr.toPlainObject=vu,Mr.transform=function(e,t,r){var n=Wa(e),o=n||Qa(e)||cu(e);if(t=ai(t,4),null==r){var i=e&&e.constructor;r=o?n?new i:[]:Za(e)&&Ya(i)?Dr(ze(e)):{}}return(o?Pt:bn)(e,(function(e,n,o){return t(r,e,n,o)})),r},Mr.unary=function(e){return ja(e,1)},Mr.union=ea,Mr.unionBy=ta,Mr.unionWith=ra,Mr.uniq=function(e){return e&&e.length?uo(e):[]},Mr.uniqBy=function(e,t){return e&&e.length?uo(e,ai(t,2)):[]},Mr.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?uo(e,o,t):[]},Mr.unset=function(e,t){return null==e||co(e,t)},Mr.unzip=na,Mr.unzipWith=oa,Mr.update=function(e,t,r){return null==e?e:so(e,t,vo(r))},Mr.updateWith=function(e,t,r,n){return n="function"==typeof n?n:o,null==e?e:so(e,t,vo(r),n)},Mr.values=Uu,Mr.valuesIn=function(e){return null==e?[]:Yt(e,Iu(e))},Mr.without=ia,Mr.words=Yu,Mr.wrap=function(e,t){return Na(vo(t),e)},Mr.xor=aa,Mr.xorBy=ua,Mr.xorWith=ca,Mr.zip=sa,Mr.zipObject=function(e,t){return yo(e||[],t||[],Xr)},Mr.zipObjectDeep=function(e,t){return yo(e||[],t||[],Yn)},Mr.zipWith=la,Mr.entries=Mu,Mr.entriesIn=Du,Mr.extend=gu,Mr.extendWith=wu,ac(Mr,Mr),Mr.add=mc,Mr.attempt=$u,Mr.camelCase=Vu,Mr.capitalize=Gu,Mr.ceil=bc,Mr.clamp=function(e,t,r){return r===o&&(r=t,t=o),r!==o&&(r=(r=hu(r))==r?r:0),t!==o&&(t=(t=hu(t))==t?t:0),on(hu(e),t,r)},Mr.clone=function(e){return an(e,4)},Mr.cloneDeep=function(e){return an(e,5)},Mr.cloneDeepWith=function(e,t){return an(e,5,t="function"==typeof t?t:o)},Mr.cloneWith=function(e,t){return an(e,4,t="function"==typeof t?t:o)},Mr.conformsTo=function(e,t){return null==t||un(e,t,Au(t))},Mr.deburr=Bu,Mr.defaultTo=function(e,t){return null==e||e!=e?t:e},Mr.divide=gc,Mr.endsWith=function(e,t,r){e=mu(e),t=ao(t);var n=e.length,i=r=r===o?n:on(du(r),0,n);return(r-=t.length)>=0&&e.slice(r,i)==t},Mr.eq=Ua,Mr.escape=function(e){return(e=mu(e))&&J.test(e)?e.replace(q,tr):e},Mr.escapeRegExp=function(e){return(e=mu(e))&&re.test(e)?e.replace(te,"\\$&"):e},Mr.every=function(e,t,r){var n=Wa(e)?xt:pn;return r&&mi(e,t,r)&&(t=o),n(e,ai(t,3))},Mr.find=ha,Mr.findIndex=Bi,Mr.findKey=function(e,t){return Mt(e,ai(t,3),bn)},Mr.findLast=va,Mr.findLastIndex=Wi,Mr.findLastKey=function(e,t){return Mt(e,ai(t,3),gn)},Mr.floor=wc,Mr.forEach=ma,Mr.forEachRight=ba,Mr.forIn=function(e,t){return null==e?e:vn(e,ai(t,3),Iu)},Mr.forInRight=function(e,t){return null==e?e:mn(e,ai(t,3),Iu)},Mr.forOwn=function(e,t){return e&&bn(e,ai(t,3))},Mr.forOwnRight=function(e,t){return e&&gn(e,ai(t,3))},Mr.get=Pu,Mr.gt=Va,Mr.gte=Ga,Mr.has=function(e,t){return null!=e&&di(e,t,Pn)},Mr.hasIn=ju,Mr.head=Ki,Mr.identity=rc,Mr.includes=function(e,t,r,n){e=Ka(e)?e:Uu(e),r=r&&!n?du(r):0;var o=e.length;return r<0&&(r=hr(o+r,0)),au(e)?r<=o&&e.indexOf(t,r)>-1:!!o&&Ut(e,t,r)>-1},Mr.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:du(r);return o<0&&(o=hr(n+o,0)),Ut(e,t,o)},Mr.inRange=function(e,t,r){return t=pu(t),r===o?(r=t,t=0):r=pu(r),function(e,t,r){return e>=vr(t,r)&&e<hr(t,r)}(e=hu(e),t,r)},Mr.invoke=ku,Mr.isArguments=Ba,Mr.isArray=Wa,Mr.isArrayBuffer=za,Mr.isArrayLike=Ka,Mr.isArrayLikeObject=qa,Mr.isBoolean=function(e){return!0===e||!1===e||eu(e)&&Sn(e)==m},Mr.isBuffer=Qa,Mr.isDate=Ja,Mr.isElement=function(e){return eu(e)&&1===e.nodeType&&!nu(e)},Mr.isEmpty=function(e){if(null==e)return!0;if(Ka(e)&&(Wa(e)||"string"==typeof e||"function"==typeof e.splice||Qa(e)||cu(e)||Ba(e)))return!e.length;var t=pi(e);if(t==O||t==x)return!e.size;if(_i(e))return!Rn(e).length;for(var r in e)if(Te.call(e,r))return!1;return!0},Mr.isEqual=function(e,t){return An(e,t)},Mr.isEqualWith=function(e,t,r){var n=(r="function"==typeof r?r:o)?r(e,t):o;return n===o?An(e,t,o,r):!!n},Mr.isError=Ha,Mr.isFinite=function(e){return"number"==typeof e&&Nt(e)},Mr.isFunction=Ya,Mr.isInteger=$a,Mr.isLength=Xa,Mr.isMap=tu,Mr.isMatch=function(e,t){return e===t||In(e,t,ci(t))},Mr.isMatchWith=function(e,t,r){return r="function"==typeof r?r:o,In(e,t,ci(t),r)},Mr.isNaN=function(e){return ru(e)&&e!=+e},Mr.isNative=function(e){if(wi(e))throw new _e("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ln(e)},Mr.isNil=function(e){return null==e},Mr.isNull=function(e){return null===e},Mr.isNumber=ru,Mr.isObject=Za,Mr.isObjectLike=eu,Mr.isPlainObject=nu,Mr.isRegExp=ou,Mr.isSafeInteger=function(e){return $a(e)&&e>=-9007199254740991&&e<=f},Mr.isSet=iu,Mr.isString=au,Mr.isSymbol=uu,Mr.isTypedArray=cu,Mr.isUndefined=function(e){return e===o},Mr.isWeakMap=function(e){return eu(e)&&pi(e)==A},Mr.isWeakSet=function(e){return eu(e)&&"[object WeakSet]"==Sn(e)},Mr.join=function(e,t){return null==e?"":zt.call(e,t)},Mr.kebabCase=Wu,Mr.last=Hi,Mr.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=n;return r!==o&&(i=(i=du(r))<0?hr(n+i,0):vr(i,n-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,i):Dt(e,Gt,i,!0)},Mr.lowerCase=zu,Mr.lowerFirst=Ku,Mr.lt=su,Mr.lte=lu,Mr.max=function(e){return e&&e.length?dn(e,rc,En):o},Mr.maxBy=function(e,t){return e&&e.length?dn(e,ai(t,2),En):o},Mr.mean=function(e){return Bt(e,rc)},Mr.meanBy=function(e,t){return Bt(e,ai(t,2))},Mr.min=function(e){return e&&e.length?dn(e,rc,Fn):o},Mr.minBy=function(e,t){return e&&e.length?dn(e,ai(t,2),Fn):o},Mr.stubArray=yc,Mr.stubFalse=hc,Mr.stubObject=function(){return{}},Mr.stubString=function(){return""},Mr.stubTrue=function(){return!0},Mr.multiply=_c,Mr.nth=function(e,t){return e&&e.length?Vn(e,du(t)):o},Mr.noConflict=function(){return ft._===this&&(ft._=De),this},Mr.noop=uc,Mr.now=Pa,Mr.pad=function(e,t,r){e=mu(e);var n=(t=du(t))?sr(e):0;if(!t||n>=t)return e;var o=(t-n)/2;return Bo(dt(o),r)+e+Bo(pt(o),r)},Mr.padEnd=function(e,t,r){e=mu(e);var n=(t=du(t))?sr(e):0;return t&&n<t?e+Bo(t-n,r):e},Mr.padStart=function(e,t,r){e=mu(e);var n=(t=du(t))?sr(e):0;return t&&n<t?Bo(t-n,r)+e:e},Mr.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),br(mu(e).replace(ne,""),t||0)},Mr.random=function(e,t,r){if(r&&"boolean"!=typeof r&&mi(e,t,r)&&(t=r=o),r===o&&("boolean"==typeof t?(r=t,t=o):"boolean"==typeof e&&(r=e,e=o)),e===o&&t===o?(e=0,t=1):(e=pu(e),t===o?(t=e,e=0):t=pu(t)),e>t){var n=e;e=t,t=n}if(r||e%1||t%1){var i=gr();return vr(e+i*(t-e+ut("1e-"+((i+"").length-1))),t)}return Kn(e,t)},Mr.reduce=function(e,t,r){var n=Wa(e)?Tt:Kt,o=arguments.length<3;return n(e,ai(t,4),r,o,ln)},Mr.reduceRight=function(e,t,r){var n=Wa(e)?Rt:Kt,o=arguments.length<3;return n(e,ai(t,4),r,o,fn)},Mr.repeat=function(e,t,r){return t=(r?mi(e,t,r):t===o)?1:du(t),qn(mu(e),t)},Mr.replace=function(){var e=arguments,t=mu(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Mr.result=function(e,t,r){var n=-1,i=(t=mo(t,e)).length;for(i||(i=1,e=o);++n<i;){var a=null==e?o:e[Ni(t[n])];a===o&&(n=i,a=r),e=Ya(a)?a.call(e):a}return e},Mr.round=Oc,Mr.runInContext=e,Mr.sample=function(e){return(Wa(e)?Jr:Jn)(e)},Mr.size=function(e){if(null==e)return 0;if(Ka(e))return au(e)?sr(e):e.length;var t=pi(e);return t==O||t==x?e.size:Rn(e).length},Mr.snakeCase=qu,Mr.some=function(e,t,r){var n=Wa(e)?Ft:to;return r&&mi(e,t,r)&&(t=o),n(e,ai(t,3))},Mr.sortedIndex=function(e,t){return ro(e,t)},Mr.sortedIndexBy=function(e,t,r){return no(e,t,ai(r,2))},Mr.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=ro(e,t);if(n<r&&Ua(e[n],t))return n}return-1},Mr.sortedLastIndex=function(e,t){return ro(e,t,!0)},Mr.sortedLastIndexBy=function(e,t,r){return no(e,t,ai(r,2),!0)},Mr.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var r=ro(e,t,!0)-1;if(Ua(e[r],t))return r}return-1},Mr.startCase=Qu,Mr.startsWith=function(e,t,r){return e=mu(e),r=null==r?0:on(du(r),0,e.length),t=ao(t),e.slice(r,r+t.length)==t},Mr.subtract=Sc,Mr.sum=function(e){return e&&e.length?qt(e,rc):0},Mr.sumBy=function(e,t){return e&&e.length?qt(e,ai(t,2)):0},Mr.template=function(e,t,r){var n=Mr.templateSettings;r&&mi(e,t,r)&&(t=o),e=mu(e),t=wu({},t,n,Yo);var i,a,u=wu({},t.imports,n.imports,Yo),c=Au(u),s=Yt(u,c),l=0,f=t.interpolate||ge,p="__p += '",d=Pe((t.escape||ge).source+"|"+f.source+"|"+(f===$?fe:ge).source+"|"+(t.evaluate||ge).source+"|$","g"),y="//# sourceURL="+(Te.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++nt+"]")+"\n";e.replace(d,(function(t,r,n,o,u,c){return n||(n=o),p+=e.slice(l,c).replace(we,rr),r&&(i=!0,p+="' +\n__e("+r+") +\n'"),u&&(a=!0,p+="';\n"+u+";\n__p += '"),n&&(p+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),l=c+t.length,t})),p+="';\n";var h=Te.call(t,"variable")&&t.variable;if(h){if(se.test(h))throw new _e("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(B,""):p).replace(W,"$1").replace(z,"$1;"),p="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var v=$u((function(){return Oe(c,y+"return "+p).apply(o,s)}));if(v.source=p,Ha(v))throw v;return v},Mr.times=function(e,t){if((e=du(e))<1||e>f)return[];var r=d,n=vr(e,d);t=ai(t),e-=d;for(var o=Qt(n,t);++r<e;)t(r);return o},Mr.toFinite=pu,Mr.toInteger=du,Mr.toLength=yu,Mr.toLower=function(e){return mu(e).toLowerCase()},Mr.toNumber=hu,Mr.toSafeInteger=function(e){return e?on(du(e),-9007199254740991,f):0===e?e:0},Mr.toString=mu,Mr.toUpper=function(e){return mu(e).toUpperCase()},Mr.trim=function(e,t,r){if((e=mu(e))&&(r||t===o))return Jt(e);if(!e||!(t=ao(t)))return e;var n=lr(e),i=lr(t);return go(n,Xt(n,i),Zt(n,i)+1).join("")},Mr.trimEnd=function(e,t,r){if((e=mu(e))&&(r||t===o))return e.slice(0,fr(e)+1);if(!e||!(t=ao(t)))return e;var n=lr(e);return go(n,0,Zt(n,lr(t))+1).join("")},Mr.trimStart=function(e,t,r){if((e=mu(e))&&(r||t===o))return e.replace(ne,"");if(!e||!(t=ao(t)))return e;var n=lr(e);return go(n,Xt(n,lr(t))).join("")},Mr.truncate=function(e,t){var r=30,n="...";if(Za(t)){var i="separator"in t?t.separator:i;r="length"in t?du(t.length):r,n="omission"in t?ao(t.omission):n}var a=(e=mu(e)).length;if(nr(e)){var u=lr(e);a=u.length}if(r>=a)return e;var c=r-sr(n);if(c<1)return n;var s=u?go(u,0,c).join(""):e.slice(0,c);if(i===o)return s+n;if(u&&(c+=s.length-c),ou(i)){if(e.slice(c).search(i)){var l,f=s;for(i.global||(i=Pe(i.source,mu(pe.exec(i))+"g")),i.lastIndex=0;l=i.exec(f);)var p=l.index;s=s.slice(0,p===o?c:p)}}else if(e.indexOf(ao(i),c)!=c){var d=s.lastIndexOf(i);d>-1&&(s=s.slice(0,d))}return s+n},Mr.unescape=function(e){return(e=mu(e))&&Q.test(e)?e.replace(K,pr):e},Mr.uniqueId=function(e){var t=++Re;return mu(e)+t},Mr.upperCase=Ju,Mr.upperFirst=Hu,Mr.each=ma,Mr.eachRight=ba,Mr.first=Ki,ac(Mr,(vc={},bn(Mr,(function(e,t){Te.call(Mr.prototype,t)||(vc[t]=e)})),vc),{chain:!1}),Mr.VERSION="4.17.21",Pt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Mr[e].placeholder=Mr})),Pt(["drop","take"],(function(e,t){Gr.prototype[e]=function(r){r=r===o?1:hr(du(r),0);var n=this.__filtered__&&!t?new Gr(this):this.clone();return n.__filtered__?n.__takeCount__=vr(r,n.__takeCount__):n.__views__.push({size:vr(r,d),type:e+(n.__dir__<0?"Right":"")}),n},Gr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Pt(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;Gr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ai(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),Pt(["head","last"],(function(e,t){var r="take"+(t?"Right":"");Gr.prototype[e]=function(){return this[r](1).value()[0]}})),Pt(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");Gr.prototype[e]=function(){return this.__filtered__?new Gr(this):this[r](1)}})),Gr.prototype.compact=function(){return this.filter(rc)},Gr.prototype.find=function(e){return this.filter(e).head()},Gr.prototype.findLast=function(e){return this.reverse().find(e)},Gr.prototype.invokeMap=Qn((function(e,t){return"function"==typeof e?new Gr(this):this.map((function(r){return Cn(r,e,t)}))})),Gr.prototype.reject=function(e){return this.filter(Ra(ai(e)))},Gr.prototype.slice=function(e,t){e=du(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Gr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==o&&(r=(t=du(t))<0?r.dropRight(-t):r.take(t-e)),r)},Gr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Gr.prototype.toArray=function(){return this.take(d)},bn(Gr.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),i=Mr[n?"take"+("last"==t?"Right":""):t],a=n||/^find/.test(t);i&&(Mr.prototype[t]=function(){var t=this.__wrapped__,u=n?[1]:arguments,c=t instanceof Gr,s=u[0],l=c||Wa(t),f=function(e){var t=i.apply(Mr,Lt([e],u));return n&&p?t[0]:t};l&&r&&"function"==typeof s&&1!=s.length&&(c=l=!1);var p=this.__chain__,d=!!this.__actions__.length,y=a&&!p,h=c&&!d;if(!a&&l){t=h?t:new Gr(this);var v=e.apply(t,u);return v.__actions__.push({func:pa,args:[f],thisArg:o}),new Vr(v,p)}return y&&h?e.apply(this,u):(v=this.thru(f),y?n?v.value()[0]:v.value():v)})})),Pt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ce[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Mr.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var o=this.value();return t.apply(Wa(o)?o:[],e)}return this[r]((function(r){return t.apply(Wa(r)?r:[],e)}))}})),bn(Gr.prototype,(function(e,t){var r=Mr[t];if(r){var n=r.name+"";Te.call(Cr,n)||(Cr[n]=[]),Cr[n].push({name:t,func:r})}})),Cr[Do(o,2).name]=[{name:"wrapper",func:o}],Gr.prototype.clone=function(){var e=new Gr(this.__wrapped__);return e.__actions__=xo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=xo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=xo(this.__views__),e},Gr.prototype.reverse=function(){if(this.__filtered__){var e=new Gr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Gr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=Wa(e),n=t<0,o=r?e.length:0,i=function(e,t,r){for(var n=-1,o=r.length;++n<o;){var i=r[n],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=vr(t,e+a);break;case"takeRight":e=hr(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,u=i.end,c=u-a,s=n?u:a-1,l=this.__iteratees__,f=l.length,p=0,d=vr(c,this.__takeCount__);if(!r||!n&&o==c&&d==c)return fo(e,this.__actions__);var y=[];e:for(;c--&&p<d;){for(var h=-1,v=e[s+=t];++h<f;){var m=l[h],b=m.iteratee,g=m.type,w=b(v);if(2==g)v=w;else if(!w){if(1==g)continue e;break e}}y[p++]=v}return y},Mr.prototype.at=da,Mr.prototype.chain=function(){return fa(this)},Mr.prototype.commit=function(){return new Vr(this.value(),this.__chain__)},Mr.prototype.next=function(){this.__values__===o&&(this.__values__=fu(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Mr.prototype.plant=function(e){for(var t,r=this;r instanceof Ur;){var n=Di(r);n.__index__=0,n.__values__=o,t?i.__wrapped__=n:t=n;var i=n;r=r.__wrapped__}return i.__wrapped__=e,t},Mr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Gr){var t=e;return this.__actions__.length&&(t=new Gr(this)),(t=t.reverse()).__actions__.push({func:pa,args:[Zi],thisArg:o}),new Vr(t,this.__chain__)}return this.thru(Zi)},Mr.prototype.toJSON=Mr.prototype.valueOf=Mr.prototype.value=function(){return fo(this.__wrapped__,this.__actions__)},Mr.prototype.first=Mr.prototype.head,He&&(Mr.prototype[He]=function(){return this}),Mr}();ft._=dr,(n=function(){return dr}.call(t,r,t,e))===o||(e.exports=n)}.call(this)},4802: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]}),o=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 i=r(997);Object.defineProperty(t,"Observable",{enumerable:!0,get:function(){return i.Observable}});var a=r(7101);Object.defineProperty(t,"ConnectableObservable",{enumerable:!0,get:function(){return a.ConnectableObservable}});var u=r(4466);Object.defineProperty(t,"observable",{enumerable:!0,get:function(){return u.observable}});var c=r(8265);Object.defineProperty(t,"animationFrames",{enumerable:!0,get:function(){return c.animationFrames}});var s=r(8270);Object.defineProperty(t,"Subject",{enumerable:!0,get:function(){return s.Subject}});var l=r(5152);Object.defineProperty(t,"BehaviorSubject",{enumerable:!0,get:function(){return l.BehaviorSubject}});var f=r(4735);Object.defineProperty(t,"ReplaySubject",{enumerable:!0,get:function(){return f.ReplaySubject}});var p=r(6288);Object.defineProperty(t,"AsyncSubject",{enumerable:!0,get:function(){return p.AsyncSubject}});var d=r(1335);Object.defineProperty(t,"asap",{enumerable:!0,get:function(){return d.asap}}),Object.defineProperty(t,"asapScheduler",{enumerable:!0,get:function(){return d.asapScheduler}});var y=r(2048);Object.defineProperty(t,"async",{enumerable:!0,get:function(){return y.async}}),Object.defineProperty(t,"asyncScheduler",{enumerable:!0,get:function(){return y.asyncScheduler}});var h=r(3099);Object.defineProperty(t,"queue",{enumerable:!0,get:function(){return h.queue}}),Object.defineProperty(t,"queueScheduler",{enumerable:!0,get:function(){return h.queueScheduler}});var v=r(4941);Object.defineProperty(t,"animationFrame",{enumerable:!0,get:function(){return v.animationFrame}}),Object.defineProperty(t,"animationFrameScheduler",{enumerable:!0,get:function(){return v.animationFrameScheduler}});var m=r(6105);Object.defineProperty(t,"VirtualTimeScheduler",{enumerable:!0,get:function(){return m.VirtualTimeScheduler}}),Object.defineProperty(t,"VirtualAction",{enumerable:!0,get:function(){return m.VirtualAction}});var b=r(7979);Object.defineProperty(t,"Scheduler",{enumerable:!0,get:function(){return b.Scheduler}});var g=r(309);Object.defineProperty(t,"Subscription",{enumerable:!0,get:function(){return g.Subscription}});var w=r(3346);Object.defineProperty(t,"Subscriber",{enumerable:!0,get:function(){return w.Subscriber}});var _=r(3495);Object.defineProperty(t,"Notification",{enumerable:!0,get:function(){return _.Notification}}),Object.defineProperty(t,"NotificationKind",{enumerable:!0,get:function(){return _.NotificationKind}});var O=r(175);Object.defineProperty(t,"pipe",{enumerable:!0,get:function(){return O.pipe}});var S=r(1067);Object.defineProperty(t,"noop",{enumerable:!0,get:function(){return S.noop}});var E=r(2609);Object.defineProperty(t,"identity",{enumerable:!0,get:function(){return E.identity}});var P=r(5758);Object.defineProperty(t,"isObservable",{enumerable:!0,get:function(){return P.isObservable}});var j=r(5491);Object.defineProperty(t,"lastValueFrom",{enumerable:!0,get:function(){return j.lastValueFrom}});var x=r(4015);Object.defineProperty(t,"firstValueFrom",{enumerable:!0,get:function(){return x.firstValueFrom}});var C=r(3434);Object.defineProperty(t,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return C.ArgumentOutOfRangeError}});var k=r(8898);Object.defineProperty(t,"EmptyError",{enumerable:!0,get:function(){return k.EmptyError}});var A=r(7060);Object.defineProperty(t,"NotFoundError",{enumerable:!0,get:function(){return A.NotFoundError}});var I=r(9737);Object.defineProperty(t,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return I.ObjectUnsubscribedError}});var L=r(1342);Object.defineProperty(t,"SequenceError",{enumerable:!0,get:function(){return L.SequenceError}});var T=r(467);Object.defineProperty(t,"TimeoutError",{enumerable:!0,get:function(){return T.TimeoutError}});var R=r(6251);Object.defineProperty(t,"UnsubscriptionError",{enumerable:!0,get:function(){return R.UnsubscriptionError}});var F=r(8512);Object.defineProperty(t,"bindCallback",{enumerable:!0,get:function(){return F.bindCallback}});var N=r(8884);Object.defineProperty(t,"bindNodeCallback",{enumerable:!0,get:function(){return N.bindNodeCallback}});var M=r(8219);Object.defineProperty(t,"combineLatest",{enumerable:!0,get:function(){return M.combineLatest}});var D=r(5148);Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return D.concat}});var U=r(5876);Object.defineProperty(t,"connectable",{enumerable:!0,get:function(){return U.connectable}});var V=r(6850);Object.defineProperty(t,"defer",{enumerable:!0,get:function(){return V.defer}});var G=r(6603);Object.defineProperty(t,"empty",{enumerable:!0,get:function(){return G.empty}});var B=r(672);Object.defineProperty(t,"forkJoin",{enumerable:!0,get:function(){return B.forkJoin}});var W=r(7704);Object.defineProperty(t,"from",{enumerable:!0,get:function(){return W.from}});var z=r(1994);Object.defineProperty(t,"fromEvent",{enumerable:!0,get:function(){return z.fromEvent}});var K=r(8038);Object.defineProperty(t,"fromEventPattern",{enumerable:!0,get:function(){return K.fromEventPattern}});var q=r(3279);Object.defineProperty(t,"generate",{enumerable:!0,get:function(){return q.generate}});var Q=r(2094);Object.defineProperty(t,"iif",{enumerable:!0,get:function(){return Q.iif}});var J=r(9225);Object.defineProperty(t,"interval",{enumerable:!0,get:function(){return J.interval}});var H=r(3830);Object.defineProperty(t,"merge",{enumerable:!0,get:function(){return H.merge}});var Y=r(7088);Object.defineProperty(t,"never",{enumerable:!0,get:function(){return Y.never}});var $=r(1549);Object.defineProperty(t,"of",{enumerable:!0,get:function(){return $.of}});var X=r(9777);Object.defineProperty(t,"onErrorResumeNext",{enumerable:!0,get:function(){return X.onErrorResumeNext}});var Z=r(9771);Object.defineProperty(t,"pairs",{enumerable:!0,get:function(){return Z.pairs}});var ee=r(7840);Object.defineProperty(t,"partition",{enumerable:!0,get:function(){return ee.partition}});var te=r(2101);Object.defineProperty(t,"race",{enumerable:!0,get:function(){return te.race}});var re=r(627);Object.defineProperty(t,"range",{enumerable:!0,get:function(){return re.range}});var ne=r(6694);Object.defineProperty(t,"throwError",{enumerable:!0,get:function(){return ne.throwError}});var oe=r(7987);Object.defineProperty(t,"timer",{enumerable:!0,get:function(){return oe.timer}});var ie=r(290);Object.defineProperty(t,"using",{enumerable:!0,get:function(){return ie.using}});var ae=r(6017);Object.defineProperty(t,"zip",{enumerable:!0,get:function(){return ae.zip}});var ue=r(3645);Object.defineProperty(t,"scheduled",{enumerable:!0,get:function(){return ue.scheduled}});var ce=r(6603);Object.defineProperty(t,"EMPTY",{enumerable:!0,get:function(){return ce.EMPTY}});var se=r(7088);Object.defineProperty(t,"NEVER",{enumerable:!0,get:function(){return se.NEVER}}),o(r(1035),t);var le=r(366);Object.defineProperty(t,"config",{enumerable:!0,get:function(){return le.config}});var fe=r(4867);Object.defineProperty(t,"audit",{enumerable:!0,get:function(){return fe.audit}});var pe=r(4790);Object.defineProperty(t,"auditTime",{enumerable:!0,get:function(){return pe.auditTime}});var de=r(7036);Object.defineProperty(t,"buffer",{enumerable:!0,get:function(){return de.buffer}});var ye=r(4153);Object.defineProperty(t,"bufferCount",{enumerable:!0,get:function(){return ye.bufferCount}});var he=r(9073);Object.defineProperty(t,"bufferTime",{enumerable:!0,get:function(){return he.bufferTime}});var ve=r(5032);Object.defineProperty(t,"bufferToggle",{enumerable:!0,get:function(){return ve.bufferToggle}});var me=r(4256);Object.defineProperty(t,"bufferWhen",{enumerable:!0,get:function(){return me.bufferWhen}});var be=r(7129);Object.defineProperty(t,"catchError",{enumerable:!0,get:function(){return be.catchError}});var ge=r(6070);Object.defineProperty(t,"combineAll",{enumerable:!0,get:function(){return ge.combineAll}});var we=r(595);Object.defineProperty(t,"combineLatestAll",{enumerable:!0,get:function(){return we.combineLatestAll}});var _e=r(770);Object.defineProperty(t,"combineLatestWith",{enumerable:!0,get:function(){return _e.combineLatestWith}});var Oe=r(9311);Object.defineProperty(t,"concatAll",{enumerable:!0,get:function(){return Oe.concatAll}});var Se=r(6478);Object.defineProperty(t,"concatMap",{enumerable:!0,get:function(){return Se.concatMap}});var Ee=r(7603);Object.defineProperty(t,"concatMapTo",{enumerable:!0,get:function(){return Ee.concatMapTo}});var Pe=r(8198);Object.defineProperty(t,"concatWith",{enumerable:!0,get:function(){return Pe.concatWith}});var je=r(1038);Object.defineProperty(t,"connect",{enumerable:!0,get:function(){return je.connect}});var xe=r(3735);Object.defineProperty(t,"count",{enumerable:!0,get:function(){return xe.count}});var Ce=r(33);Object.defineProperty(t,"debounce",{enumerable:!0,get:function(){return Ce.debounce}});var ke=r(4052);Object.defineProperty(t,"debounceTime",{enumerable:!0,get:function(){return ke.debounceTime}});var Ae=r(5585);Object.defineProperty(t,"defaultIfEmpty",{enumerable:!0,get:function(){return Ae.defaultIfEmpty}});var Ie=r(6931);Object.defineProperty(t,"delay",{enumerable:!0,get:function(){return Ie.delay}});var Le=r(1051);Object.defineProperty(t,"delayWhen",{enumerable:!0,get:function(){return Le.delayWhen}});var Te=r(248);Object.defineProperty(t,"dematerialize",{enumerable:!0,get:function(){return Te.dematerialize}});var Re=r(2954);Object.defineProperty(t,"distinct",{enumerable:!0,get:function(){return Re.distinct}});var Fe=r(9586);Object.defineProperty(t,"distinctUntilChanged",{enumerable:!0,get:function(){return Fe.distinctUntilChanged}});var Ne=r(9590);Object.defineProperty(t,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return Ne.distinctUntilKeyChanged}});var Me=r(3969);Object.defineProperty(t,"elementAt",{enumerable:!0,get:function(){return Me.elementAt}});var De=r(3181);Object.defineProperty(t,"endWith",{enumerable:!0,get:function(){return De.endWith}});var Ue=r(7495);Object.defineProperty(t,"every",{enumerable:!0,get:function(){return Ue.every}});var Ve=r(802);Object.defineProperty(t,"exhaust",{enumerable:!0,get:function(){return Ve.exhaust}});var Ge=r(3719);Object.defineProperty(t,"exhaustAll",{enumerable:!0,get:function(){return Ge.exhaustAll}});var Be=r(5990);Object.defineProperty(t,"exhaustMap",{enumerable:!0,get:function(){return Be.exhaustMap}});var We=r(7190);Object.defineProperty(t,"expand",{enumerable:!0,get:function(){return We.expand}});var ze=r(3616);Object.defineProperty(t,"filter",{enumerable:!0,get:function(){return ze.filter}});var Ke=r(6344);Object.defineProperty(t,"finalize",{enumerable:!0,get:function(){return Ke.finalize}});var qe=r(665);Object.defineProperty(t,"find",{enumerable:!0,get:function(){return qe.find}});var Qe=r(2773);Object.defineProperty(t,"findIndex",{enumerable:!0,get:function(){return Qe.findIndex}});var Je=r(5350);Object.defineProperty(t,"first",{enumerable:!0,get:function(){return Je.first}});var He=r(7342);Object.defineProperty(t,"groupBy",{enumerable:!0,get:function(){return He.groupBy}});var Ye=r(3329);Object.defineProperty(t,"ignoreElements",{enumerable:!0,get:function(){return Ye.ignoreElements}});var $e=r(7077);Object.defineProperty(t,"isEmpty",{enumerable:!0,get:function(){return $e.isEmpty}});var Xe=r(3086);Object.defineProperty(t,"last",{enumerable:!0,get:function(){return Xe.last}});var Ze=r(3910);Object.defineProperty(t,"map",{enumerable:!0,get:function(){return Ze.map}});var et=r(6203);Object.defineProperty(t,"mapTo",{enumerable:!0,get:function(){return et.mapTo}});var tt=r(9569);Object.defineProperty(t,"materialize",{enumerable:!0,get:function(){return tt.materialize}});var rt=r(6366);Object.defineProperty(t,"max",{enumerable:!0,get:function(){return rt.max}});var nt=r(6593);Object.defineProperty(t,"mergeAll",{enumerable:!0,get:function(){return nt.mergeAll}});var ot=r(4343);Object.defineProperty(t,"flatMap",{enumerable:!0,get:function(){return ot.flatMap}});var it=r(7600);Object.defineProperty(t,"mergeMap",{enumerable:!0,get:function(){return it.mergeMap}});var at=r(2993);Object.defineProperty(t,"mergeMapTo",{enumerable:!0,get:function(){return at.mergeMapTo}});var ut=r(8469);Object.defineProperty(t,"mergeScan",{enumerable:!0,get:function(){return ut.mergeScan}});var ct=r(5768);Object.defineProperty(t,"mergeWith",{enumerable:!0,get:function(){return ct.mergeWith}});var st=r(1936);Object.defineProperty(t,"min",{enumerable:!0,get:function(){return st.min}});var lt=r(8886);Object.defineProperty(t,"multicast",{enumerable:!0,get:function(){return lt.multicast}});var ft=r(7209);Object.defineProperty(t,"observeOn",{enumerable:!0,get:function(){return ft.observeOn}});var pt=r(3975);Object.defineProperty(t,"onErrorResumeNextWith",{enumerable:!0,get:function(){return pt.onErrorResumeNextWith}});var dt=r(3838);Object.defineProperty(t,"pairwise",{enumerable:!0,get:function(){return dt.pairwise}});var yt=r(6921);Object.defineProperty(t,"pluck",{enumerable:!0,get:function(){return yt.pluck}});var ht=r(7072);Object.defineProperty(t,"publish",{enumerable:!0,get:function(){return ht.publish}});var vt=r(3297);Object.defineProperty(t,"publishBehavior",{enumerable:!0,get:function(){return vt.publishBehavior}});var mt=r(9187);Object.defineProperty(t,"publishLast",{enumerable:!0,get:function(){return mt.publishLast}});var bt=r(464);Object.defineProperty(t,"publishReplay",{enumerable:!0,get:function(){return bt.publishReplay}});var gt=r(9627);Object.defineProperty(t,"raceWith",{enumerable:!0,get:function(){return gt.raceWith}});var wt=r(8320);Object.defineProperty(t,"reduce",{enumerable:!0,get:function(){return wt.reduce}});var _t=r(7257);Object.defineProperty(t,"repeat",{enumerable:!0,get:function(){return _t.repeat}});var Ot=r(2625);Object.defineProperty(t,"repeatWhen",{enumerable:!0,get:function(){return Ot.repeatWhen}});var St=r(2542);Object.defineProperty(t,"retry",{enumerable:!0,get:function(){return St.retry}});var Et=r(7970);Object.defineProperty(t,"retryWhen",{enumerable:!0,get:function(){return Et.retryWhen}});var Pt=r(1278);Object.defineProperty(t,"refCount",{enumerable:!0,get:function(){return Pt.refCount}});var jt=r(1552);Object.defineProperty(t,"sample",{enumerable:!0,get:function(){return jt.sample}});var xt=r(4605);Object.defineProperty(t,"sampleTime",{enumerable:!0,get:function(){return xt.sampleTime}});var Ct=r(8947);Object.defineProperty(t,"scan",{enumerable:!0,get:function(){return Ct.scan}});var kt=r(7323);Object.defineProperty(t,"sequenceEqual",{enumerable:!0,get:function(){return kt.sequenceEqual}});var At=r(6723);Object.defineProperty(t,"share",{enumerable:!0,get:function(){return At.share}});var It=r(2016);Object.defineProperty(t,"shareReplay",{enumerable:!0,get:function(){return It.shareReplay}});var Lt=r(7630);Object.defineProperty(t,"single",{enumerable:!0,get:function(){return Lt.single}});var Tt=r(7585);Object.defineProperty(t,"skip",{enumerable:!0,get:function(){return Tt.skip}});var Rt=r(5917);Object.defineProperty(t,"skipLast",{enumerable:!0,get:function(){return Rt.skipLast}});var Ft=r(5337);Object.defineProperty(t,"skipUntil",{enumerable:!0,get:function(){return Ft.skipUntil}});var Nt=r(3072);Object.defineProperty(t,"skipWhile",{enumerable:!0,get:function(){return Nt.skipWhile}});var Mt=r(6336);Object.defineProperty(t,"startWith",{enumerable:!0,get:function(){return Mt.startWith}});var Dt=r(6597);Object.defineProperty(t,"subscribeOn",{enumerable:!0,get:function(){return Dt.subscribeOn}});var Ut=r(5747);Object.defineProperty(t,"switchAll",{enumerable:!0,get:function(){return Ut.switchAll}});var Vt=r(5962);Object.defineProperty(t,"switchMap",{enumerable:!0,get:function(){return Vt.switchMap}});var Gt=r(7455);Object.defineProperty(t,"switchMapTo",{enumerable:!0,get:function(){return Gt.switchMapTo}});var Bt=r(991);Object.defineProperty(t,"switchScan",{enumerable:!0,get:function(){return Bt.switchScan}});var Wt=r(109);Object.defineProperty(t,"take",{enumerable:!0,get:function(){return Wt.take}});var zt=r(3449);Object.defineProperty(t,"takeLast",{enumerable:!0,get:function(){return zt.takeLast}});var Kt=r(7149);Object.defineProperty(t,"takeUntil",{enumerable:!0,get:function(){return Kt.takeUntil}});var qt=r(5964);Object.defineProperty(t,"takeWhile",{enumerable:!0,get:function(){return qt.takeWhile}});var Qt=r(4881);Object.defineProperty(t,"tap",{enumerable:!0,get:function(){return Qt.tap}});var Jt=r(3450);Object.defineProperty(t,"throttle",{enumerable:!0,get:function(){return Jt.throttle}});var Ht=r(6959);Object.defineProperty(t,"throttleTime",{enumerable:!0,get:function(){return Ht.throttleTime}});var Yt=r(3085);Object.defineProperty(t,"throwIfEmpty",{enumerable:!0,get:function(){return Yt.throwIfEmpty}});var $t=r(3682);Object.defineProperty(t,"timeInterval",{enumerable:!0,get:function(){return $t.timeInterval}});var Xt=r(467);Object.defineProperty(t,"timeout",{enumerable:!0,get:function(){return Xt.timeout}});var Zt=r(6155);Object.defineProperty(t,"timeoutWith",{enumerable:!0,get:function(){return Zt.timeoutWith}});var er=r(5460);Object.defineProperty(t,"timestamp",{enumerable:!0,get:function(){return er.timestamp}});var tr=r(6558);Object.defineProperty(t,"toArray",{enumerable:!0,get:function(){return tr.toArray}});var rr=r(9002);Object.defineProperty(t,"window",{enumerable:!0,get:function(){return rr.window}});var nr=r(7471);Object.defineProperty(t,"windowCount",{enumerable:!0,get:function(){return nr.windowCount}});var or=r(2831);Object.defineProperty(t,"windowTime",{enumerable:!0,get:function(){return or.windowTime}});var ir=r(7898);Object.defineProperty(t,"windowToggle",{enumerable:!0,get:function(){return ir.windowToggle}});var ar=r(8294);Object.defineProperty(t,"windowWhen",{enumerable:!0,get:function(){return ar.windowWhen}});var ur=r(53);Object.defineProperty(t,"withLatestFrom",{enumerable:!0,get:function(){return ur.withLatestFrom}});var cr=r(568);Object.defineProperty(t,"zipAll",{enumerable:!0,get:function(){return cr.zipAll}});var sr=r(3807);Object.defineProperty(t,"zipWith",{enumerable:!0,get:function(){return sr.zipWith}})},6288:function(e,t,r){"use strict";var n,o=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 i=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 o(t,e),t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t._hasValue,o=t._value,i=t.thrownError,a=t.isStopped,u=t._isComplete;r?e.error(i):(a||u)&&(n&&e.next(o),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(8270).Subject);t.AsyncSubject=i},5152:function(e,t,r){"use strict";var n,o=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 i=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return o(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(8270).Subject);t.BehaviorSubject=i},3495:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observeNotification=t.Notification=t.NotificationKind=void 0;var n,o=r(6603),i=r(1549),a=r(6694),u=r(4539);(n=t.NotificationKind||(t.NotificationKind={})).NEXT="N",n.ERROR="E",n.COMPLETE="C";var c=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 s(this,e)},e.prototype.do=function(e,t,r){var n=this,o=n.kind,i=n.value,a=n.error;return"N"===o?null==e?void 0:e(i):"E"===o?null==t?void 0:t(a):null==r?void 0:r()},e.prototype.accept=function(e,t,r){var n;return u.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,u="N"===t?i.of(r):"E"===t?a.throwError((function(){return n})):"C"===t?o.EMPTY:0;if(!u)throw new TypeError("Unexpected notification kind "+t);return u},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 s(e,t){var r,n,o,i=e,a=i.kind,u=i.value,c=i.error;if("string"!=typeof a)throw new TypeError('Invalid notification, missing "kind"');"N"===a?null===(r=t.next)||void 0===r||r.call(t,u):"E"===a?null===(n=t.error)||void 0===n||n.call(t,c):null===(o=t.complete)||void 0===o||o.call(t)}t.Notification=c,t.observeNotification=s},9745:(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},997:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Observable=void 0;var n=r(3346),o=r(309),i=r(4466),a=r(175),u=r(366),c=r(4539),s=r(9942),l=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 i,a=this,u=(i=e)&&i instanceof n.Subscriber||function(e){return e&&c.isFunction(e.next)&&c.isFunction(e.error)&&c.isFunction(e.complete)}(i)&&o.isSubscription(i)?e:new n.SafeSubscriber(e,t,r);return s.errorContext((function(){var e=a,t=e.operator,r=e.source;u.add(t?t.call(u,r):r?a._subscribe(u):a._trySubscribe(u))})),u},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=f(t))((function(t,o){var i=new n.SafeSubscriber({next:function(t){try{e(t)}catch(e){o(e),i.unsubscribe()}},error:o,complete:t});r.subscribe(i)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[i.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a.pipeFromArray(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=f(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 f(e){var t;return null!==(t=null!=e?e:u.config.Promise)&&void 0!==t?t:Promise}t.Observable=l},4735:function(e,t,r){"use strict";var n,o=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 i=r(8270),a=r(6757),u=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=a.dateTimestampProvider);var o=e.call(this)||this;return o._bufferSize=t,o._windowTime=r,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,t),o._windowTime=Math.max(1,r),o}return o(t,e),t.prototype.next=function(t){var r=this,n=r.isStopped,o=r._buffer,i=r._infiniteTimeWindow,a=r._timestampProvider,u=r._windowTime;n||(o.push(t),!i&&o.push(a.now()+u)),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(),o=0;o<n.length&&!e.closed;o+=r?1:2)e.next(n[o]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,r=e._timestampProvider,n=e._buffer,o=e._infiniteTimeWindow,i=(o?1:2)*t;if(t<1/0&&i<n.length&&n.splice(0,n.length-i),!o){for(var a=r.now(),u=0,c=1;c<n.length&&n[c]<=a;c+=2)u=c;u&&n.splice(0,u+1)}},t}(i.Subject);t.ReplaySubject=u},7979:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Scheduler=void 0;var n=r(6757),o=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=o},8270:function(e,t,r){"use strict";var n,o=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)}),i=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 a=r(997),u=r(309),c=r(9737),s=r(760),l=r(9942),f=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 o(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 c.ObjectUnsubscribedError},t.prototype.next=function(e){var t=this;l.errorContext((function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=i(t.currentObservers),a=o.next();!a.done;a=o.next())a.value.next(e)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}}))},t.prototype.error=function(e){var t=this;l.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;l.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,o=r.isStopped,i=r.observers;return n||o?u.EMPTY_SUBSCRIPTION:(this.currentObservers=null,i.push(e),new u.Subscription((function(){t.currentObservers=null,s.arrRemove(i,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,o=t.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new a.Observable;return e.source=this,e},t.create=function(e,t){return new p(e,t)},t}(a.Observable);t.Subject=f;var p=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return o(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:u.EMPTY_SUBSCRIPTION},t}(f);t.AnonymousSubject=p},3346:function(e,t,r){"use strict";var n,o=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 i=r(4539),a=r(309),u=r(366),c=r(506),s=r(1067),l=r(9745),f=r(1578),p=r(9942),d=function(e){function r(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,a.isSubscription(r)&&r.add(n)):n.destination=t.EMPTY_OBSERVER,n}return o(r,e),r.create=function(e,t,r){return new m(e,t,r)},r.prototype.next=function(e){this.isStopped?g(l.nextNotification(e),this):this._next(e)},r.prototype.error=function(e){this.isStopped?g(l.errorNotification(e),this):(this.isStopped=!0,this._error(e))},r.prototype.complete=function(){this.isStopped?g(l.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}(a.Subscription);t.Subscriber=d;var y=Function.prototype.bind;function h(e,t){return y.call(e,t)}var v=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){b(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){b(e)}else b(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){b(e)}},e}(),m=function(e){function t(t,r,n){var o,a,c=e.call(this)||this;return i.isFunction(t)||!t?o={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:c&&u.config.useDeprecatedNextContext?((a=Object.create(t)).unsubscribe=function(){return c.unsubscribe()},o={next:t.next&&h(t.next,a),error:t.error&&h(t.error,a),complete:t.complete&&h(t.complete,a)}):o=t,c.destination=new v(o),c}return o(t,e),t}(d);function b(e){u.config.useDeprecatedSynchronousErrorHandling?p.captureError(e):c.reportUnhandledError(e)}function g(e,t){var r=u.config.onStoppedNotification;r&&f.timeoutProvider.setTimeout((function(){return r(e,t)}))}t.SafeSubscriber=m,t.EMPTY_OBSERVER={closed:!0,next:s.noop,error:function(e){throw e},complete:s.noop}},309: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.")},o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.isSubscription=t.EMPTY_SUBSCRIPTION=t.Subscription=void 0;var a=r(4539),u=r(6251),c=r(760),s=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,c,s;if(!this.closed){this.closed=!0;var f=this._parentage;if(f)if(this._parentage=null,Array.isArray(f))try{for(var p=n(f),d=p.next();!d.done;d=p.next())d.value.remove(this)}catch(t){e={error:t}}finally{try{d&&!d.done&&(t=p.return)&&t.call(p)}finally{if(e)throw e.error}}else f.remove(this);var y=this.initialTeardown;if(a.isFunction(y))try{y()}catch(e){s=e instanceof u.UnsubscriptionError?e.errors:[e]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var v=n(h),m=v.next();!m.done;m=v.next()){var b=m.value;try{l(b)}catch(e){s=null!=s?s:[],e instanceof u.UnsubscriptionError?s=i(i([],o(s)),o(e.errors)):s.push(e)}}}catch(e){r={error:e}}finally{try{m&&!m.done&&(c=v.return)&&c.call(v)}finally{if(r)throw r.error}}}if(s)throw new u.UnsubscriptionError(s)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)l(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)&&c.arrRemove(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&c.arrRemove(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}();function l(e){a.isFunction(e)?e():e.unsubscribe()}t.Subscription=s,t.EMPTY_SUBSCRIPTION=s.EMPTY,t.isSubscription=function(e){return e instanceof s||e&&"closed"in e&&a.isFunction(e.remove)&&a.isFunction(e.add)&&a.isFunction(e.unsubscribe)}},366:(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}},4015:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.firstValueFrom=void 0;var n=r(8898),o=r(3346);t.firstValueFrom=function(e,t){var r="object"==typeof t;return new Promise((function(i,a){var u=new o.SafeSubscriber({next:function(e){i(e),u.unsubscribe()},error:a,complete:function(){r?i(t.defaultValue):a(new n.EmptyError)}});e.subscribe(u)}))}},5491:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lastValueFrom=void 0;var n=r(8898);t.lastValueFrom=function(e,t){var r="object"==typeof t;return new Promise((function(o,i){var a,u=!1;e.subscribe({next:function(e){a=e,u=!0},error:i,complete:function(){u?o(a):r?o(t.defaultValue):i(new n.EmptyError)}})}))}},7101:function(e,t,r){"use strict";var n,o=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 i=r(997),a=r(309),u=r(1278),c=r(6044),s=r(3426),l=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,s.hasLift(t)&&(n.lift=t.lift),n}return o(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 a.Subscription;var r=this.getSubject();t.add(this.source.subscribe(c.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=a.Subscription.EMPTY)}return t},t.prototype.refCount=function(){return u.refCount()(this)},t}(i.Observable);t.ConnectableObservable=l},8512:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bindCallback=void 0;var n=r(9344);t.bindCallback=function(e,t,r){return n.bindCallbackInternals(!1,e,t,r)}},9344: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,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.bindCallbackInternals=void 0;var i=r(3810),a=r(997),u=r(6597),c=r(4854),s=r(7209),l=r(6288);t.bindCallbackInternals=function e(t,r,f,p){if(f){if(!i.isScheduler(f))return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return e(t,r,p).apply(this,n).pipe(c.mapOneOrManyArgs(f))};p=f}return p?function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return e(t,r).apply(this,n).pipe(u.subscribeOn(p),s.observeOn(p))}:function(){for(var e=this,i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];var c=new l.AsyncSubject,s=!0;return new a.Observable((function(a){var u=c.subscribe(a);if(s){s=!1;var l=!1,f=!1;r.apply(e,o(o([],n(i)),[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 c.error(n)}c.next(1<e.length?e:e[0]),f=!0,l&&c.complete()}])),f&&c.complete(),l=!0}return u}))}}},8884:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bindNodeCallback=void 0;var n=r(9344);t.bindNodeCallback=function(e,t,r){return n.bindCallbackInternals(!0,e,t,r)}},8219:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestInit=t.combineLatest=void 0;var n=r(997),o=r(6965),i=r(7704),a=r(2609),u=r(4854),c=r(7178),s=r(3284),l=r(6044),f=r(2853);function p(e,t,r){return void 0===r&&(r=a.identity),function(n){d(t,(function(){for(var o=e.length,a=new Array(o),u=o,c=o,s=function(o){d(t,(function(){var s=i.from(e[o],t),f=!1;s.subscribe(l.createOperatorSubscriber(n,(function(e){a[o]=e,f||(f=!0,c--),c||n.next(r(a.slice()))}),(function(){--u||n.complete()})))}),n)},f=0;f<o;f++)s(f)}),n)}}function d(e,t,r){e?f.executeSchedule(r,e,t):t()}t.combineLatest=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=c.popScheduler(e),l=c.popResultSelector(e),f=o.argsArgArrayOrObject(e),d=f.args,y=f.keys;if(0===d.length)return i.from([],r);var h=new n.Observable(p(d,r,y?function(e){return s.createObject(y,e)}:a.identity));return l?h.pipe(u.mapOneOrManyArgs(l)):h},t.combineLatestInit=p},5148:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concat=void 0;var n=r(9311),o=r(7178),i=r(7704);t.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.concatAll()(i.from(e,o.popScheduler(e)))}},5876:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.connectable=void 0;var n=r(8270),o=r(997),i=r(6850),a={connector:function(){return new n.Subject},resetOnDisconnect:!0};t.connectable=function(e,t){void 0===t&&(t=a);var r=null,n=t.connector,u=t.resetOnDisconnect,c=void 0===u||u,s=n(),l=new o.Observable((function(e){return s.subscribe(e)}));return l.connect=function(){return r&&!r.closed||(r=i.defer((function(){return e})).subscribe(s),c&&r.add((function(){return s=n()}))),r},l}},6850:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defer=void 0;var n=r(997),o=r(8666);t.defer=function(e){return new n.Observable((function(t){o.innerFrom(e()).subscribe(t)}))}},8265:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.animationFrames=void 0;var n=r(997),o=r(281),i=r(6276);function a(e){return new n.Observable((function(t){var r=e||o.performanceTimestampProvider,n=r.now(),a=0,u=function(){t.closed||(a=i.animationFrameProvider.requestAnimationFrame((function(o){a=0;var i=r.now();t.next({timestamp:e?i:o,elapsed:i-n}),u()})))};return u(),function(){a&&i.animationFrameProvider.cancelAnimationFrame(a)}}))}t.animationFrames=function(e){return e?a(e):u};var u=a()},6603:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.empty=t.EMPTY=void 0;var n=r(997);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}},672:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.forkJoin=void 0;var n=r(997),o=r(6965),i=r(8666),a=r(7178),u=r(6044),c=r(4854),s=r(3284);t.forkJoin=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=a.popResultSelector(e),l=o.argsArgArrayOrObject(e),f=l.args,p=l.keys,d=new n.Observable((function(e){var t=f.length;if(t)for(var r=new Array(t),n=t,o=t,a=function(t){var a=!1;i.innerFrom(f[t]).subscribe(u.createOperatorSubscriber(e,(function(e){a||(a=!0,o--),r[t]=e}),(function(){return n--}),void 0,(function(){n&&a||(o||e.next(p?s.createObject(p,r):r),e.complete())})))},c=0;c<t;c++)a(c);else e.complete()}));return r?d.pipe(c.mapOneOrManyArgs(r)):d}},7704:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.from=void 0;var n=r(3645),o=r(8666);t.from=function(e,t){return t?n.scheduled(e,t):o.innerFrom(e)}},1994: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,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.fromEvent=void 0;var o=r(8666),i=r(997),a=r(7600),u=r(8221),c=r(4539),s=r(4854),l=["addListener","removeListener"],f=["addEventListener","removeEventListener"],p=["on","off"];function d(e,t){return function(r){return function(n){return e[r](t,n)}}}t.fromEvent=function e(t,r,y,h){if(c.isFunction(y)&&(h=y,y=void 0),h)return e(t,r,y).pipe(s.mapOneOrManyArgs(h));var v=n(function(e){return c.isFunction(e.addEventListener)&&c.isFunction(e.removeEventListener)}(t)?f.map((function(e){return function(n){return t[e](r,n,y)}})):function(e){return c.isFunction(e.addListener)&&c.isFunction(e.removeListener)}(t)?l.map(d(t,r)):function(e){return c.isFunction(e.on)&&c.isFunction(e.off)}(t)?p.map(d(t,r)):[],2),m=v[0],b=v[1];if(!m&&u.isArrayLike(t))return a.mergeMap((function(t){return e(t,r,y)}))(o.innerFrom(t));if(!m)throw new TypeError("Invalid event target");return new i.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 m(t),function(){return b(t)}}))}},8038:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromEventPattern=void 0;var n=r(997),o=r(4539),i=r(4854);t.fromEventPattern=function e(t,r,a){return a?e(t,r).pipe(i.mapOneOrManyArgs(a)):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)},i=t(n);return o.isFunction(r)?function(){return r(n,i)}:void 0}))}},8398:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromSubscribable=void 0;var n=r(997);t.fromSubscribable=function(e){return new n.Observable((function(t){return e.subscribe(t)}))}},3279:function(e,t,r){"use strict";var n=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.generate=void 0;var o=r(2609),i=r(3810),a=r(6850),u=r(6123);t.generate=function(e,t,r,c,s){var l,f,p,d;function y(){var e;return n(this,(function(n){switch(n.label){case 0:e=d,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?(d=(l=e).initialState,t=l.condition,r=l.iterate,f=l.resultSelector,p=void 0===f?o.identity:f,s=l.scheduler):(d=e,!c||i.isScheduler(c)?(p=o.identity,s=c):p=c),a.defer(s?function(){return u.scheduleIterable(y(),s)}:y)}},2094:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iif=void 0;var n=r(6850);t.iif=function(e,t,r){return n.defer((function(){return e()?t:r}))}},8666:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},i=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 a?a(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,o){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,o,(t=e[r](t)).done,t.value)}))}}},a=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 u=r(8221),c=r(8854),s=r(997),l=r(2451),f=r(8741),p=r(4691),d=r(6457),y=r(5016),h=r(4539),v=r(506),m=r(4466);function b(e){return new s.Observable((function(t){var r=e[m.observable]();if(h.isFunction(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")}))}function g(e){return new s.Observable((function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()}))}function w(e){return new s.Observable((function(t){e.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,v.reportUnhandledError)}))}function _(e){return new s.Observable((function(t){var r,n;try{for(var o=a(e),i=o.next();!i.done;i=o.next()){var u=i.value;if(t.next(u),t.closed)return}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}t.complete()}))}function O(e){return new s.Observable((function(t){(function(e,t){var r,a,u,c;return n(this,void 0,void 0,(function(){var n,s;return o(this,(function(o){switch(o.label){case 0:o.trys.push([0,5,6,11]),r=i(e),o.label=1;case 1:return[4,r.next()];case 2:if((a=o.sent()).done)return[3,4];if(n=a.value,t.next(n),t.closed)return[2];o.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=o.sent(),u={error:s},[3,11];case 6:return o.trys.push([6,,9,10]),a&&!a.done&&(c=r.return)?[4,c.call(r)]:[3,8];case 7:o.sent(),o.label=8;case 8:return[3,10];case 9:if(u)throw u.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 O(y.readableStreamLikeToAsyncGenerator(e))}t.innerFrom=function(e){if(e instanceof s.Observable)return e;if(null!=e){if(l.isInteropObservable(e))return b(e);if(u.isArrayLike(e))return g(e);if(c.isPromise(e))return w(e);if(f.isAsyncIterable(e))return O(e);if(d.isIterable(e))return _(e);if(y.isReadableStreamLike(e))return S(e)}throw p.createInvalidObservableTypeError(e)},t.fromInteropObservable=b,t.fromArrayLike=g,t.fromPromise=w,t.fromIterable=_,t.fromAsyncIterable=O,t.fromReadableStreamLike=S},9225:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.interval=void 0;var n=r(2048),o=r(7987);t.interval=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=n.asyncScheduler),e<0&&(e=0),o.timer(e,e,t)}},3830:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.merge=void 0;var n=r(6593),o=r(8666),i=r(6603),a=r(7178),u=r(7704);t.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=a.popScheduler(e),c=a.popNumber(e,1/0),s=e;return s.length?1===s.length?o.innerFrom(s[0]):n.mergeAll(c)(u.from(s,r)):i.EMPTY}},7088:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.never=t.NEVER=void 0;var n=r(997),o=r(1067);t.NEVER=new n.Observable(o.noop),t.never=function(){return t.NEVER}},1549:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.of=void 0;var n=r(7178),o=r(7704);t.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=n.popScheduler(e);return o.from(e,r)}},9777:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onErrorResumeNext=void 0;var n=r(997),o=r(5266),i=r(6044),a=r(1067),u=r(8666);t.onErrorResumeNext=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=o.argsOrArgArray(e);return new n.Observable((function(e){var t=0,n=function(){if(t<r.length){var o=void 0;try{o=u.innerFrom(r[t++])}catch(e){return void n()}var c=new i.OperatorSubscriber(e,void 0,a.noop,a.noop);o.subscribe(c),c.add(n)}else e.complete()};n()}))}},9771:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pairs=void 0;var n=r(7704);t.pairs=function(e,t){return n.from(Object.entries(e),t)}},7840:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.partition=void 0;var n=r(8582),o=r(3616),i=r(8666);t.partition=function(e,t,r){return[o.filter(t,r)(i.innerFrom(e)),o.filter(n.not(t,r))(i.innerFrom(e))]}},2101:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.raceInit=t.race=void 0;var n=r(997),o=r(8666),i=r(5266),a=r(6044);function u(e){return function(t){for(var r=[],n=function(n){r.push(o.innerFrom(e[n]).subscribe(a.createOperatorSubscriber(t,(function(e){if(r){for(var o=0;o<r.length;o++)o!==n&&r[o].unsubscribe();r=null}t.next(e)}))))},i=0;r&&!t.closed&&i<e.length;i++)n(i)}}t.race=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===(e=i.argsOrArgArray(e)).length?o.innerFrom(e[0]):new n.Observable(u(e))},t.raceInit=u},627:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.range=void 0;var n=r(997),o=r(6603);t.range=function(e,t,r){if(null==t&&(t=e,e=0),t<=0)return o.EMPTY;var i=t+e;return new n.Observable(r?function(t){var n=e;return r.schedule((function(){n<i?(t.next(n++),this.schedule()):t.complete()}))}:function(t){for(var r=e;r<i&&!t.closed;)t.next(r++);t.complete()})}},6694:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwError=void 0;var n=r(997),o=r(4539);t.throwError=function(e,t){var r=o.isFunction(e)?e:function(){return e},i=function(e){return e.error(r())};return new n.Observable(t?function(e){return t.schedule(i,0,e)}:i)}},7987:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timer=void 0;var n=r(997),o=r(2048),i=r(3810),a=r(9199);t.timer=function(e,t,r){void 0===e&&(e=0),void 0===r&&(r=o.async);var u=-1;return null!=t&&(i.isScheduler(t)?r=t:u=t),new n.Observable((function(t){var n=a.isValidDate(e)?+e-r.now():e;n<0&&(n=0);var o=0;return r.schedule((function(){t.closed||(t.next(o++),0<=u?this.schedule(void 0,u):t.complete())}),n)}))}},290:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.using=void 0;var n=r(997),o=r(8666),i=r(6603);t.using=function(e,t){return new n.Observable((function(r){var n=e(),a=t(n);return(a?o.innerFrom(a):i.EMPTY).subscribe(r),function(){n&&n.unsubscribe()}}))}},6017: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,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.zip=void 0;var i=r(997),a=r(8666),u=r(5266),c=r(6603),s=r(6044),l=r(7178);t.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=l.popResultSelector(e),f=u.argsOrArgArray(e);return f.length?new i.Observable((function(e){var t=f.map((function(){return[]})),i=f.map((function(){return!1}));e.add((function(){t=i=null}));for(var u=function(u){a.innerFrom(f[u]).subscribe(s.createOperatorSubscriber(e,(function(a){if(t[u].push(a),t.every((function(e){return e.length}))){var c=t.map((function(e){return e.shift()}));e.next(r?r.apply(void 0,o([],n(c))):c),t.some((function(e,t){return!e.length&&i[t]}))&&e.complete()}}),(function(){i[u]=!0,!t[u].length&&e.complete()})))},c=0;!e.closed&&c<f.length;c++)u(c);return function(){t=i=null}})):c.EMPTY}},6044:function(e,t,r){"use strict";var n,o=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 i=r(3346);t.createOperatorSubscriber=function(e,t,r,n,o){return new a(e,t,r,n,o)};var a=function(e){function t(t,r,n,o,i,a){var u=e.call(this,t)||this;return u.onFinalize=i,u.shouldUnsubscribe=a,u._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,u._error=o?function(e){try{o(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,u._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,u}return o(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}(i.Subscriber);t.OperatorSubscriber=a},4867:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.audit=void 0;var n=r(3426),o=r(8666),i=r(6044);t.audit=function(e){return n.operate((function(t,r){var n=!1,a=null,u=null,c=!1,s=function(){if(null==u||u.unsubscribe(),u=null,n){n=!1;var e=a;a=null,r.next(e)}c&&r.complete()},l=function(){u=null,c&&r.complete()};t.subscribe(i.createOperatorSubscriber(r,(function(t){n=!0,a=t,u||o.innerFrom(e(t)).subscribe(u=i.createOperatorSubscriber(r,s,l))}),(function(){c=!0,(!n||!u||u.closed)&&r.complete()})))}))}},4790:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.auditTime=void 0;var n=r(2048),o=r(4867),i=r(7987);t.auditTime=function(e,t){return void 0===t&&(t=n.asyncScheduler),o.audit((function(){return i.timer(e,t)}))}},7036:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buffer=void 0;var n=r(3426),o=r(1067),i=r(6044),a=r(8666);t.buffer=function(e){return n.operate((function(t,r){var n=[];return t.subscribe(i.createOperatorSubscriber(r,(function(e){return n.push(e)}),(function(){r.next(n),r.complete()}))),a.innerFrom(e).subscribe(i.createOperatorSubscriber(r,(function(){var e=n;n=[],r.next(e)}),o.noop)),function(){n=null}}))}},4153: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 o=r(3426),i=r(6044),a=r(760);t.bufferCount=function(e,t){return void 0===t&&(t=null),t=null!=t?t:e,o.operate((function(r,o){var u=[],c=0;r.subscribe(i.createOperatorSubscriber(o,(function(r){var i,s,l,f,p=null;c++%t==0&&u.push([]);try{for(var d=n(u),y=d.next();!y.done;y=d.next())(m=y.value).push(r),e<=m.length&&(p=null!=p?p:[]).push(m)}catch(e){i={error:e}}finally{try{y&&!y.done&&(s=d.return)&&s.call(d)}finally{if(i)throw i.error}}if(p)try{for(var h=n(p),v=h.next();!v.done;v=h.next()){var m=v.value;a.arrRemove(u,m),o.next(m)}}catch(e){l={error:e}}finally{try{v&&!v.done&&(f=h.return)&&f.call(h)}finally{if(l)throw l.error}}}),(function(){var e,t;try{for(var r=n(u),i=r.next();!i.done;i=r.next()){var a=i.value;o.next(a)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}o.complete()}),void 0,(function(){u=null})))}))}},9073: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 o=r(309),i=r(3426),a=r(6044),u=r(760),c=r(2048),s=r(7178),l=r(2853);t.bufferTime=function(e){for(var t,r,f=[],p=1;p<arguments.length;p++)f[p-1]=arguments[p];var d=null!==(t=s.popScheduler(f))&&void 0!==t?t:c.asyncScheduler,y=null!==(r=f[0])&&void 0!==r?r:null,h=f[1]||1/0;return i.operate((function(t,r){var i=[],c=!1,s=function(e){var t=e.buffer;e.subs.unsubscribe(),u.arrRemove(i,e),r.next(t),c&&f()},f=function(){if(i){var t=new o.Subscription;r.add(t);var n={buffer:[],subs:t};i.push(n),l.executeSchedule(t,d,(function(){return s(n)}),e)}};null!==y&&y>=0?l.executeSchedule(r,d,f,y,!0):c=!0,f();var p=a.createOperatorSubscriber(r,(function(e){var t,r,o=i.slice();try{for(var a=n(o),u=a.next();!u.done;u=a.next()){var c=u.value,l=c.buffer;l.push(e),h<=l.length&&s(c)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}}),(function(){for(;null==i?void 0:i.length;)r.next(i.shift().buffer);null==p||p.unsubscribe(),r.complete(),r.unsubscribe()}),void 0,(function(){return i=null}));t.subscribe(p)}))}},5032: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 o=r(309),i=r(3426),a=r(8666),u=r(6044),c=r(1067),s=r(760);t.bufferToggle=function(e,t){return i.operate((function(r,i){var l=[];a.innerFrom(e).subscribe(u.createOperatorSubscriber(i,(function(e){var r=[];l.push(r);var n=new o.Subscription;n.add(a.innerFrom(t(e)).subscribe(u.createOperatorSubscriber(i,(function(){s.arrRemove(l,r),i.next(r),n.unsubscribe()}),c.noop)))}),c.noop)),r.subscribe(u.createOperatorSubscriber(i,(function(e){var t,r;try{for(var o=n(l),i=o.next();!i.done;i=o.next())i.value.push(e)}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}}),(function(){for(;l.length>0;)i.next(l.shift());i.complete()})))}))}},4256:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bufferWhen=void 0;var n=r(3426),o=r(1067),i=r(6044),a=r(8666);t.bufferWhen=function(e){return n.operate((function(t,r){var n=null,u=null,c=function(){null==u||u.unsubscribe();var t=n;n=[],t&&r.next(t),a.innerFrom(e()).subscribe(u=i.createOperatorSubscriber(r,c,o.noop))};c(),t.subscribe(i.createOperatorSubscriber(r,(function(e){return null==n?void 0:n.push(e)}),(function(){n&&r.next(n),r.complete()}),void 0,(function(){return n=u=null})))}))}},7129:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.catchError=void 0;var n=r(8666),o=r(6044),i=r(3426);t.catchError=function e(t){return i.operate((function(r,i){var a,u=null,c=!1;u=r.subscribe(o.createOperatorSubscriber(i,void 0,void 0,(function(o){a=n.innerFrom(t(o,e(t)(r))),u?(u.unsubscribe(),u=null,a.subscribe(i)):c=!0}))),c&&(u.unsubscribe(),u=null,a.subscribe(i))}))}},6070:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineAll=void 0;var n=r(595);t.combineAll=n.combineLatestAll},4694: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,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatest=void 0;var i=r(8219),a=r(3426),u=r(5266),c=r(4854),s=r(175),l=r(7178);t.combineLatest=function e(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var f=l.popResultSelector(t);return f?s.pipe(e.apply(void 0,o([],n(t))),c.mapOneOrManyArgs(f)):a.operate((function(e,r){i.combineLatestInit(o([e],n(u.argsOrArgArray(t))))(r)}))}},595:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestAll=void 0;var n=r(8219),o=r(4221);t.combineLatestAll=function(e){return o.joinAllInternals(n.combineLatest,e)}},770: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,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestWith=void 0;var i=r(4694);t.combineLatestWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.combineLatest.apply(void 0,o([],n(e)))}},2986: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,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.concat=void 0;var i=r(3426),a=r(9311),u=r(7178),c=r(7704);t.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=u.popScheduler(e);return i.operate((function(t,i){a.concatAll()(c.from(o([t],n(e)),r)).subscribe(i)}))}},9311:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatAll=void 0;var n=r(6593);t.concatAll=function(){return n.mergeAll(1)}},6478:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatMap=void 0;var n=r(7600),o=r(4539);t.concatMap=function(e,t){return o.isFunction(t)?n.mergeMap(e,t,1):n.mergeMap(e,1)}},7603:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatMapTo=void 0;var n=r(6478),o=r(4539);t.concatMapTo=function(e,t){return o.isFunction(t)?n.concatMap((function(){return e}),t):n.concatMap((function(){return e}))}},8198: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,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.concatWith=void 0;var i=r(2986);t.concatWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.concat.apply(void 0,o([],n(e)))}},1038:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.connect=void 0;var n=r(8270),o=r(8666),i=r(3426),a=r(8398),u={connector:function(){return new n.Subject}};t.connect=function(e,t){void 0===t&&(t=u);var r=t.connector;return i.operate((function(t,n){var i=r();o.innerFrom(e(a.fromSubscribable(i))).subscribe(n),n.add(t.subscribe(i))}))}},3735:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.count=void 0;var n=r(8320);t.count=function(e){return n.reduce((function(t,r,n){return!e||e(r,n)?t+1:t}),0)}},33:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=void 0;var n=r(3426),o=r(1067),i=r(6044),a=r(8666);t.debounce=function(e){return n.operate((function(t,r){var n=!1,u=null,c=null,s=function(){if(null==c||c.unsubscribe(),c=null,n){n=!1;var e=u;u=null,r.next(e)}};t.subscribe(i.createOperatorSubscriber(r,(function(t){null==c||c.unsubscribe(),n=!0,u=t,c=i.createOperatorSubscriber(r,s,o.noop),a.innerFrom(e(t)).subscribe(c)}),(function(){s(),r.complete()}),void 0,(function(){u=c=null})))}))}},4052:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounceTime=void 0;var n=r(2048),o=r(3426),i=r(6044);t.debounceTime=function(e,t){return void 0===t&&(t=n.asyncScheduler),o.operate((function(r,n){var o=null,a=null,u=null,c=function(){if(o){o.unsubscribe(),o=null;var e=a;a=null,n.next(e)}};function s(){var r=u+e,i=t.now();if(i<r)return o=this.schedule(void 0,r-i),void n.add(o);c()}r.subscribe(i.createOperatorSubscriber(n,(function(r){a=r,u=t.now(),o||(o=t.schedule(s,e),n.add(o))}),(function(){c(),n.complete()}),void 0,(function(){a=o=null})))}))}},5585:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultIfEmpty=void 0;var n=r(3426),o=r(6044);t.defaultIfEmpty=function(e){return n.operate((function(t,r){var n=!1;t.subscribe(o.createOperatorSubscriber(r,(function(e){n=!0,r.next(e)}),(function(){n||r.next(e),r.complete()})))}))}},6931:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delay=void 0;var n=r(2048),o=r(1051),i=r(7987);t.delay=function(e,t){void 0===t&&(t=n.asyncScheduler);var r=i.timer(e,t);return o.delayWhen((function(){return r}))}},1051:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delayWhen=void 0;var n=r(5148),o=r(109),i=r(3329),a=r(6203),u=r(7600),c=r(8666);t.delayWhen=function e(t,r){return r?function(a){return n.concat(r.pipe(o.take(1),i.ignoreElements()),a.pipe(e(t)))}:u.mergeMap((function(e,r){return c.innerFrom(t(e,r)).pipe(o.take(1),a.mapTo(e))}))}},248:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dematerialize=void 0;var n=r(3495),o=r(3426),i=r(6044);t.dematerialize=function(){return o.operate((function(e,t){e.subscribe(i.createOperatorSubscriber(t,(function(e){return n.observeNotification(e,t)})))}))}},2954:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinct=void 0;var n=r(3426),o=r(6044),i=r(1067),a=r(8666);t.distinct=function(e,t){return n.operate((function(r,n){var u=new Set;r.subscribe(o.createOperatorSubscriber(n,(function(t){var r=e?e(t):t;u.has(r)||(u.add(r),n.next(t))}))),t&&a.innerFrom(t).subscribe(o.createOperatorSubscriber(n,(function(){return u.clear()}),i.noop))}))}},9586:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinctUntilChanged=void 0;var n=r(2609),o=r(3426),i=r(6044);function a(e,t){return e===t}t.distinctUntilChanged=function(e,t){return void 0===t&&(t=n.identity),e=null!=e?e:a,o.operate((function(r,n){var o,a=!0;r.subscribe(i.createOperatorSubscriber(n,(function(r){var i=t(r);!a&&e(o,i)||(a=!1,o=i,n.next(r))})))}))}},9590:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinctUntilKeyChanged=void 0;var n=r(9586);t.distinctUntilKeyChanged=function(e,t){return n.distinctUntilChanged((function(r,n){return t?t(r[e],n[e]):r[e]===n[e]}))}},3969:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.elementAt=void 0;var n=r(3434),o=r(3616),i=r(3085),a=r(5585),u=r(109);t.elementAt=function(e,t){if(e<0)throw new n.ArgumentOutOfRangeError;var r=arguments.length>=2;return function(c){return c.pipe(o.filter((function(t,r){return r===e})),u.take(1),r?a.defaultIfEmpty(t):i.throwIfEmpty((function(){return new n.ArgumentOutOfRangeError})))}}},3181: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,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.endWith=void 0;var i=r(5148),a=r(1549);t.endWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return i.concat(t,a.of.apply(void 0,o([],n(e))))}}},7495:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.every=void 0;var n=r(3426),o=r(6044);t.every=function(e,t){return n.operate((function(r,n){var i=0;r.subscribe(o.createOperatorSubscriber(n,(function(o){e.call(t,o,i++,r)||(n.next(!1),n.complete())}),(function(){n.next(!0),n.complete()})))}))}},802:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaust=void 0;var n=r(3719);t.exhaust=n.exhaustAll},3719:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaustAll=void 0;var n=r(5990),o=r(2609);t.exhaustAll=function(){return n.exhaustMap(o.identity)}},5990:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaustMap=void 0;var n=r(3910),o=r(8666),i=r(3426),a=r(6044);t.exhaustMap=function e(t,r){return r?function(i){return i.pipe(e((function(e,i){return o.innerFrom(t(e,i)).pipe(n.map((function(t,n){return r(e,t,i,n)})))})))}:i.operate((function(e,r){var n=0,i=null,u=!1;e.subscribe(a.createOperatorSubscriber(r,(function(e){i||(i=a.createOperatorSubscriber(r,void 0,(function(){i=null,u&&r.complete()})),o.innerFrom(t(e,n++)).subscribe(i))}),(function(){u=!0,!i&&r.complete()})))}))}},7190:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expand=void 0;var n=r(3426),o=r(6352);t.expand=function(e,t,r){return void 0===t&&(t=1/0),t=(t||0)<1?1/0:t,n.operate((function(n,i){return o.mergeInternals(n,i,e,t,void 0,!0,r)}))}},3616:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filter=void 0;var n=r(3426),o=r(6044);t.filter=function(e,t){return n.operate((function(r,n){var i=0;r.subscribe(o.createOperatorSubscriber(n,(function(r){return e.call(t,r,i++)&&n.next(r)})))}))}},6344:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.finalize=void 0;var n=r(3426);t.finalize=function(e){return n.operate((function(t,r){try{t.subscribe(r)}finally{r.add(e)}}))}},665:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFind=t.find=void 0;var n=r(3426),o=r(6044);function i(e,t,r){var n="index"===r;return function(r,i){var a=0;r.subscribe(o.createOperatorSubscriber(i,(function(o){var u=a++;e.call(t,o,u,r)&&(i.next(n?u:o),i.complete())}),(function(){i.next(n?-1:void 0),i.complete()})))}}t.find=function(e,t){return n.operate(i(e,t,"value"))},t.createFind=i},2773:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findIndex=void 0;var n=r(3426),o=r(665);t.findIndex=function(e,t){return n.operate(o.createFind(e,t,"index"))}},5350:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.first=void 0;var n=r(8898),o=r(3616),i=r(109),a=r(5585),u=r(3085),c=r(2609);t.first=function(e,t){var r=arguments.length>=2;return function(s){return s.pipe(e?o.filter((function(t,r){return e(t,r,s)})):c.identity,i.take(1),r?a.defaultIfEmpty(t):u.throwIfEmpty((function(){return new n.EmptyError})))}}},4343:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flatMap=void 0;var n=r(7600);t.flatMap=n.mergeMap},7342:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.groupBy=void 0;var n=r(997),o=r(8666),i=r(8270),a=r(3426),u=r(6044);t.groupBy=function(e,t,r,c){return a.operate((function(a,s){var l;t&&"function"!=typeof t?(r=t.duration,l=t.element,c=t.connector):l=t;var f=new Map,p=function(e){f.forEach(e),e(s)},d=function(e){return p((function(t){return t.error(e)}))},y=0,h=!1,v=new u.OperatorSubscriber(s,(function(t){try{var a=e(t),p=f.get(a);if(!p){f.set(a,p=c?c():new i.Subject);var m=(g=a,w=p,(_=new n.Observable((function(e){y++;var t=w.subscribe(e);return function(){t.unsubscribe(),0==--y&&h&&v.unsubscribe()}}))).key=g,_);if(s.next(m),r){var b=u.createOperatorSubscriber(p,(function(){p.complete(),null==b||b.unsubscribe()}),void 0,void 0,(function(){return f.delete(a)}));v.add(o.innerFrom(r(m)).subscribe(b))}}p.next(l?l(t):t)}catch(e){d(e)}var g,w,_}),(function(){return p((function(e){return e.complete()}))}),d,(function(){return f.clear()}),(function(){return h=!0,0===y}));a.subscribe(v)}))}},3329:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ignoreElements=void 0;var n=r(3426),o=r(6044),i=r(1067);t.ignoreElements=function(){return n.operate((function(e,t){e.subscribe(o.createOperatorSubscriber(t,i.noop))}))}},7077:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=void 0;var n=r(3426),o=r(6044);t.isEmpty=function(){return n.operate((function(e,t){e.subscribe(o.createOperatorSubscriber(t,(function(){t.next(!1),t.complete()}),(function(){t.next(!0),t.complete()})))}))}},4221:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.joinAllInternals=void 0;var n=r(2609),o=r(4854),i=r(175),a=r(7600),u=r(6558);t.joinAllInternals=function(e,t){return i.pipe(u.toArray(),a.mergeMap((function(t){return e(t)})),t?o.mapOneOrManyArgs(t):n.identity)}},3086:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.last=void 0;var n=r(8898),o=r(3616),i=r(3449),a=r(3085),u=r(5585),c=r(2609);t.last=function(e,t){var r=arguments.length>=2;return function(s){return s.pipe(e?o.filter((function(t,r){return e(t,r,s)})):c.identity,i.takeLast(1),r?u.defaultIfEmpty(t):a.throwIfEmpty((function(){return new n.EmptyError})))}}},3910:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.map=void 0;var n=r(3426),o=r(6044);t.map=function(e,t){return n.operate((function(r,n){var i=0;r.subscribe(o.createOperatorSubscriber(n,(function(r){n.next(e.call(t,r,i++))})))}))}},6203:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapTo=void 0;var n=r(3910);t.mapTo=function(e){return n.map((function(){return e}))}},9569:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.materialize=void 0;var n=r(3495),o=r(3426),i=r(6044);t.materialize=function(){return o.operate((function(e,t){e.subscribe(i.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()})))}))}},6366:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.max=void 0;var n=r(8320),o=r(4539);t.max=function(e){return n.reduce(o.isFunction(e)?function(t,r){return e(t,r)>0?t:r}:function(e,t){return e>t?e:t})}},6864: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,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.merge=void 0;var i=r(3426),a=r(5266),u=r(6593),c=r(7178),s=r(7704);t.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=c.popScheduler(e),l=c.popNumber(e,1/0);return e=a.argsOrArgArray(e),i.operate((function(t,i){u.mergeAll(l)(s.from(o([t],n(e)),r)).subscribe(i)}))}},6593:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeAll=void 0;var n=r(7600),o=r(2609);t.mergeAll=function(e){return void 0===e&&(e=1/0),n.mergeMap(o.identity,e)}},6352:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeInternals=void 0;var n=r(8666),o=r(2853),i=r(6044);t.mergeInternals=function(e,t,r,a,u,c,s,l){var f=[],p=0,d=0,y=!1,h=function(){!y||f.length||p||t.complete()},v=function(e){return p<a?m(e):f.push(e)},m=function(e){c&&t.next(e),p++;var l=!1;n.innerFrom(r(e,d++)).subscribe(i.createOperatorSubscriber(t,(function(e){null==u||u(e),c?v(e):t.next(e)}),(function(){l=!0}),void 0,(function(){if(l)try{p--;for(var e=function(){var e=f.shift();s?o.executeSchedule(t,s,(function(){return m(e)})):m(e)};f.length&&p<a;)e();h()}catch(e){t.error(e)}})))};return e.subscribe(i.createOperatorSubscriber(t,v,(function(){y=!0,h()}))),function(){null==l||l()}}},7600:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMap=void 0;var n=r(3910),o=r(8666),i=r(3426),a=r(6352),u=r(4539);t.mergeMap=function e(t,r,c){return void 0===c&&(c=1/0),u.isFunction(r)?e((function(e,i){return n.map((function(t,n){return r(e,t,i,n)}))(o.innerFrom(t(e,i)))}),c):("number"==typeof r&&(c=r),i.operate((function(e,r){return a.mergeInternals(e,r,t,c)})))}},2993:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMapTo=void 0;var n=r(7600),o=r(4539);t.mergeMapTo=function(e,t,r){return void 0===r&&(r=1/0),o.isFunction(t)?n.mergeMap((function(){return e}),t,r):("number"==typeof t&&(r=t),n.mergeMap((function(){return e}),r))}},8469:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeScan=void 0;var n=r(3426),o=r(6352);t.mergeScan=function(e,t,r){return void 0===r&&(r=1/0),n.operate((function(n,i){var a=t;return o.mergeInternals(n,i,(function(t,r){return e(a,t,r)}),r,(function(e){a=e}),!1,void 0,(function(){return a=null}))}))}},5768: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,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.mergeWith=void 0;var i=r(6864);t.mergeWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.merge.apply(void 0,o([],n(e)))}},1936:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.min=void 0;var n=r(8320),o=r(4539);t.min=function(e){return n.reduce(o.isFunction(e)?function(t,r){return e(t,r)<0?t:r}:function(e,t){return e<t?e:t})}},8886:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multicast=void 0;var n=r(7101),o=r(4539),i=r(1038);t.multicast=function(e,t){var r=o.isFunction(e)?e:function(){return e};return o.isFunction(t)?i.connect(t,{connector:r}):function(e){return new n.ConnectableObservable(e,r)}}},7209:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observeOn=void 0;var n=r(2853),o=r(3426),i=r(6044);t.observeOn=function(e,t){return void 0===t&&(t=0),o.operate((function(r,o){r.subscribe(i.createOperatorSubscriber(o,(function(r){return n.executeSchedule(o,e,(function(){return o.next(r)}),t)}),(function(){return n.executeSchedule(o,e,(function(){return o.complete()}),t)}),(function(r){return n.executeSchedule(o,e,(function(){return o.error(r)}),t)})))}))}},3975: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,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.onErrorResumeNext=t.onErrorResumeNextWith=void 0;var i=r(5266),a=r(9777);function u(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=i.argsOrArgArray(e);return function(e){return a.onErrorResumeNext.apply(void 0,o([e],n(r)))}}t.onErrorResumeNextWith=u,t.onErrorResumeNext=u},3838:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pairwise=void 0;var n=r(3426),o=r(6044);t.pairwise=function(){return n.operate((function(e,t){var r,n=!1;e.subscribe(o.createOperatorSubscriber(t,(function(e){var o=r;r=e,n&&t.next([o,e]),n=!0})))}))}},9374:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.partition=void 0;var n=r(8582),o=r(3616);t.partition=function(e,t){return function(r){return[o.filter(e,t)(r),o.filter(n.not(e,t))(r)]}}},6921:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pluck=void 0;var n=r(3910);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,o=0;o<r;o++){var i=null==n?void 0:n[e[o]];if(void 0===i)return;n=i}return n}))}},7072:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publish=void 0;var n=r(8270),o=r(8886),i=r(1038);t.publish=function(e){return e?function(t){return i.connect(e)(t)}:function(e){return o.multicast(new n.Subject)(e)}}},3297:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishBehavior=void 0;var n=r(5152),o=r(7101);t.publishBehavior=function(e){return function(t){var r=new n.BehaviorSubject(e);return new o.ConnectableObservable(t,(function(){return r}))}}},9187:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishLast=void 0;var n=r(6288),o=r(7101);t.publishLast=function(){return function(e){var t=new n.AsyncSubject;return new o.ConnectableObservable(e,(function(){return t}))}}},464:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishReplay=void 0;var n=r(4735),o=r(8886),i=r(4539);t.publishReplay=function(e,t,r,a){r&&!i.isFunction(r)&&(a=r);var u=i.isFunction(r)?r:void 0;return function(r){return o.multicast(new n.ReplaySubject(e,t,a),u)(r)}}},3523: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,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.race=void 0;var i=r(5266),a=r(9627);t.race=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a.raceWith.apply(void 0,o([],n(i.argsOrArgArray(e))))}},9627: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,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.raceWith=void 0;var i=r(2101),a=r(3426),u=r(2609);t.raceWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length?a.operate((function(t,r){i.raceInit(o([t],n(e)))(r)})):u.identity}},8320:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reduce=void 0;var n=r(4469),o=r(3426);t.reduce=function(e,t){return o.operate(n.scanInternals(e,t,arguments.length>=2,!1,!0))}},1278:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.refCount=void 0;var n=r(3426),o=r(6044);t.refCount=function(){return n.operate((function(e,t){var r=null;e._refCount++;var n=o.createOperatorSubscriber(t,void 0,void 0,void 0,(function(){if(!e||e._refCount<=0||0<--e._refCount)r=null;else{var n=e._connection,o=r;r=null,!n||o&&n!==o||n.unsubscribe(),t.unsubscribe()}}));e.subscribe(n),n.closed||(r=e.connect())}))}},7257:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.repeat=void 0;var n=r(6603),o=r(3426),i=r(6044),a=r(8666),u=r(7987);t.repeat=function(e){var t,r,c=1/0;return null!=e&&("object"==typeof e?(t=e.count,c=void 0===t?1/0:t,r=e.delay):c=e),c<=0?function(){return n.EMPTY}:o.operate((function(e,t){var n,o=0,s=function(){if(null==n||n.unsubscribe(),n=null,null!=r){var e="number"==typeof r?u.timer(r):a.innerFrom(r(o)),c=i.createOperatorSubscriber(t,(function(){c.unsubscribe(),l()}));e.subscribe(c)}else l()},l=function(){var r=!1;n=e.subscribe(i.createOperatorSubscriber(t,void 0,(function(){++o<c?n?s():r=!0:t.complete()}))),r&&s()};l()}))}},2625:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.repeatWhen=void 0;var n=r(8666),o=r(8270),i=r(3426),a=r(6044);t.repeatWhen=function(e){return i.operate((function(t,r){var i,u,c=!1,s=!1,l=!1,f=function(){return l&&s&&(r.complete(),!0)},p=function(){l=!1,i=t.subscribe(a.createOperatorSubscriber(r,void 0,(function(){l=!0,!f()&&(u||(u=new o.Subject,n.innerFrom(e(u)).subscribe(a.createOperatorSubscriber(r,(function(){i?p():c=!0}),(function(){s=!0,f()})))),u).next()}))),c&&(i.unsubscribe(),i=null,c=!1,p())};p()}))}},2542:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.retry=void 0;var n=r(3426),o=r(6044),i=r(2609),a=r(7987),u=r(8666);t.retry=function(e){var t;void 0===e&&(e=1/0);var r=(t=e&&"object"==typeof e?e:{count:e}).count,c=void 0===r?1/0:r,s=t.delay,l=t.resetOnSuccess,f=void 0!==l&&l;return c<=0?i.identity:n.operate((function(e,t){var r,n=0,i=function(){var l=!1;r=e.subscribe(o.createOperatorSubscriber(t,(function(e){f&&(n=0),t.next(e)}),void 0,(function(e){if(n++<c){var f=function(){r?(r.unsubscribe(),r=null,i()):l=!0};if(null!=s){var p="number"==typeof s?a.timer(s):u.innerFrom(s(e,n)),d=o.createOperatorSubscriber(t,(function(){d.unsubscribe(),f()}),(function(){t.complete()}));p.subscribe(d)}else f()}else t.error(e)}))),l&&(r.unsubscribe(),r=null,i())};i()}))}},7970:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.retryWhen=void 0;var n=r(8666),o=r(8270),i=r(3426),a=r(6044);t.retryWhen=function(e){return i.operate((function(t,r){var i,u,c=!1,s=function(){i=t.subscribe(a.createOperatorSubscriber(r,void 0,void 0,(function(t){u||(u=new o.Subject,n.innerFrom(e(u)).subscribe(a.createOperatorSubscriber(r,(function(){return i?s():c=!0})))),u&&u.next(t)}))),c&&(i.unsubscribe(),i=null,c=!1,s())};s()}))}},1552:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sample=void 0;var n=r(8666),o=r(3426),i=r(1067),a=r(6044);t.sample=function(e){return o.operate((function(t,r){var o=!1,u=null;t.subscribe(a.createOperatorSubscriber(r,(function(e){o=!0,u=e}))),n.innerFrom(e).subscribe(a.createOperatorSubscriber(r,(function(){if(o){o=!1;var e=u;u=null,r.next(e)}}),i.noop))}))}},4605:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sampleTime=void 0;var n=r(2048),o=r(1552),i=r(9225);t.sampleTime=function(e,t){return void 0===t&&(t=n.asyncScheduler),o.sample(i.interval(e,t))}},8947:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scan=void 0;var n=r(3426),o=r(4469);t.scan=function(e,t){return n.operate(o.scanInternals(e,t,arguments.length>=2,!0))}},4469:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scanInternals=void 0;var n=r(6044);t.scanInternals=function(e,t,r,o,i){return function(a,u){var c=r,s=t,l=0;a.subscribe(n.createOperatorSubscriber(u,(function(t){var r=l++;s=c?e(s,t,r):(c=!0,t),o&&u.next(s)}),i&&function(){c&&u.next(s),u.complete()}))}}},7323:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sequenceEqual=void 0;var n=r(3426),o=r(6044),i=r(8666);t.sequenceEqual=function(e,t){return void 0===t&&(t=function(e,t){return e===t}),n.operate((function(r,n){var a={buffer:[],complete:!1},u={buffer:[],complete:!1},c=function(e){n.next(e),n.complete()},s=function(e,r){var i=o.createOperatorSubscriber(n,(function(n){var o=r.buffer,i=r.complete;0===o.length?i?c(!1):e.buffer.push(n):!t(n,o.shift())&&c(!1)}),(function(){e.complete=!0;var t=r.complete,n=r.buffer;t&&c(0===n.length),null==i||i.unsubscribe()}));return i};r.subscribe(s(a,u)),i.innerFrom(e).subscribe(s(u,a))}))}},6723: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,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.share=void 0;var i=r(8666),a=r(8270),u=r(3346),c=r(3426);function s(e,t){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];if(!0!==t){if(!1!==t){var c=new u.SafeSubscriber({next:function(){c.unsubscribe(),e()}});return i.innerFrom(t.apply(void 0,o([],n(r)))).subscribe(c)}}else e()}t.share=function(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new a.Subject}:t,n=e.resetOnError,o=void 0===n||n,l=e.resetOnComplete,f=void 0===l||l,p=e.resetOnRefCountZero,d=void 0===p||p;return function(e){var t,n,a,l=0,p=!1,y=!1,h=function(){null==n||n.unsubscribe(),n=void 0},v=function(){h(),t=a=void 0,p=y=!1},m=function(){var e=t;v(),null==e||e.unsubscribe()};return c.operate((function(e,c){l++,y||p||h();var b=a=null!=a?a:r();c.add((function(){0!=--l||y||p||(n=s(m,d))})),b.subscribe(c),!t&&l>0&&(t=new u.SafeSubscriber({next:function(e){return b.next(e)},error:function(e){y=!0,h(),n=s(v,o,e),b.error(e)},complete:function(){p=!0,h(),n=s(v,f),b.complete()}}),i.innerFrom(e).subscribe(t))}))(e)}}},2016:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shareReplay=void 0;var n=r(4735),o=r(6723);t.shareReplay=function(e,t,r){var i,a,u,c,s=!1;return e&&"object"==typeof e?(i=e.bufferSize,c=void 0===i?1/0:i,a=e.windowTime,t=void 0===a?1/0:a,s=void 0!==(u=e.refCount)&&u,r=e.scheduler):c=null!=e?e:1/0,o.share({connector:function(){return new n.ReplaySubject(c,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:s})}},7630:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.single=void 0;var n=r(8898),o=r(1342),i=r(7060),a=r(3426),u=r(6044);t.single=function(e){return a.operate((function(t,r){var a,c=!1,s=!1,l=0;t.subscribe(u.createOperatorSubscriber(r,(function(n){s=!0,e&&!e(n,l++,t)||(c&&r.error(new o.SequenceError("Too many matching values")),c=!0,a=n)}),(function(){c?(r.next(a),r.complete()):r.error(s?new i.NotFoundError("No matching values"):new n.EmptyError)})))}))}},7585:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skip=void 0;var n=r(3616);t.skip=function(e){return n.filter((function(t,r){return e<=r}))}},5917:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipLast=void 0;var n=r(2609),o=r(3426),i=r(6044);t.skipLast=function(e){return e<=0?n.identity:o.operate((function(t,r){var n=new Array(e),o=0;return t.subscribe(i.createOperatorSubscriber(r,(function(t){var i=o++;if(i<e)n[i]=t;else{var a=i%e,u=n[a];n[a]=t,r.next(u)}}))),function(){n=null}}))}},5337:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipUntil=void 0;var n=r(3426),o=r(6044),i=r(8666),a=r(1067);t.skipUntil=function(e){return n.operate((function(t,r){var n=!1,u=o.createOperatorSubscriber(r,(function(){null==u||u.unsubscribe(),n=!0}),a.noop);i.innerFrom(e).subscribe(u),t.subscribe(o.createOperatorSubscriber(r,(function(e){return n&&r.next(e)})))}))}},3072:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipWhile=void 0;var n=r(3426),o=r(6044);t.skipWhile=function(e){return n.operate((function(t,r){var n=!1,i=0;t.subscribe(o.createOperatorSubscriber(r,(function(t){return(n||(n=!e(t,i++)))&&r.next(t)})))}))}},6336:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.startWith=void 0;var n=r(5148),o=r(7178),i=r(3426);t.startWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=o.popScheduler(e);return i.operate((function(t,o){(r?n.concat(e,t,r):n.concat(e,t)).subscribe(o)}))}},6597:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribeOn=void 0;var n=r(3426);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))}))}},5747:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchAll=void 0;var n=r(5962),o=r(2609);t.switchAll=function(){return n.switchMap(o.identity)}},5962:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchMap=void 0;var n=r(8666),o=r(3426),i=r(6044);t.switchMap=function(e,t){return o.operate((function(r,o){var a=null,u=0,c=!1,s=function(){return c&&!a&&o.complete()};r.subscribe(i.createOperatorSubscriber(o,(function(r){null==a||a.unsubscribe();var c=0,l=u++;n.innerFrom(e(r,l)).subscribe(a=i.createOperatorSubscriber(o,(function(e){return o.next(t?t(r,e,l,c++):e)}),(function(){a=null,s()})))}),(function(){c=!0,s()})))}))}},7455:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchMapTo=void 0;var n=r(5962),o=r(4539);t.switchMapTo=function(e,t){return o.isFunction(t)?n.switchMap((function(){return e}),t):n.switchMap((function(){return e}))}},991:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchScan=void 0;var n=r(5962),o=r(3426);t.switchScan=function(e,t){return o.operate((function(r,o){var i=t;return n.switchMap((function(t,r){return e(i,t,r)}),(function(e,t){return i=t,t}))(r).subscribe(o),function(){i=null}}))}},109:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.take=void 0;var n=r(6603),o=r(3426),i=r(6044);t.take=function(e){return e<=0?function(){return n.EMPTY}:o.operate((function(t,r){var n=0;t.subscribe(i.createOperatorSubscriber(r,(function(t){++n<=e&&(r.next(t),e<=n&&r.complete())})))}))}},3449: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 o=r(6603),i=r(3426),a=r(6044);t.takeLast=function(e){return e<=0?function(){return o.EMPTY}:i.operate((function(t,r){var o=[];t.subscribe(a.createOperatorSubscriber(r,(function(t){o.push(t),e<o.length&&o.shift()}),(function(){var e,t;try{for(var i=n(o),a=i.next();!a.done;a=i.next()){var u=a.value;r.next(u)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}r.complete()}),void 0,(function(){o=null})))}))}},7149:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.takeUntil=void 0;var n=r(3426),o=r(6044),i=r(8666),a=r(1067);t.takeUntil=function(e){return n.operate((function(t,r){i.innerFrom(e).subscribe(o.createOperatorSubscriber(r,(function(){return r.complete()}),a.noop)),!r.closed&&t.subscribe(r)}))}},5964:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.takeWhile=void 0;var n=r(3426),o=r(6044);t.takeWhile=function(e,t){return void 0===t&&(t=!1),n.operate((function(r,n){var i=0;r.subscribe(o.createOperatorSubscriber(n,(function(r){var o=e(r,i++);(o||t)&&n.next(r),!o&&n.complete()})))}))}},4881:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tap=void 0;var n=r(4539),o=r(3426),i=r(6044),a=r(2609);t.tap=function(e,t,r){var u=n.isFunction(e)||t||r?{next:e,error:t,complete:r}:e;return u?o.operate((function(e,t){var r;null===(r=u.subscribe)||void 0===r||r.call(u);var n=!0;e.subscribe(i.createOperatorSubscriber(t,(function(e){var r;null===(r=u.next)||void 0===r||r.call(u,e),t.next(e)}),(function(){var e;n=!1,null===(e=u.complete)||void 0===e||e.call(u),t.complete()}),(function(e){var r;n=!1,null===(r=u.error)||void 0===r||r.call(u,e),t.error(e)}),(function(){var e,t;n&&(null===(e=u.unsubscribe)||void 0===e||e.call(u)),null===(t=u.finalize)||void 0===t||t.call(u)})))})):a.identity}},3450:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throttle=void 0;var n=r(3426),o=r(6044),i=r(8666);t.throttle=function(e,t){return n.operate((function(r,n){var a=null!=t?t:{},u=a.leading,c=void 0===u||u,s=a.trailing,l=void 0!==s&&s,f=!1,p=null,d=null,y=!1,h=function(){null==d||d.unsubscribe(),d=null,l&&(b(),y&&n.complete())},v=function(){d=null,y&&n.complete()},m=function(t){return d=i.innerFrom(e(t)).subscribe(o.createOperatorSubscriber(n,h,v))},b=function(){if(f){f=!1;var e=p;p=null,n.next(e),!y&&m(e)}};r.subscribe(o.createOperatorSubscriber(n,(function(e){f=!0,p=e,(!d||d.closed)&&(c?b():m(e))}),(function(){y=!0,(!(l&&f&&d)||d.closed)&&n.complete()})))}))}},6959:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throttleTime=void 0;var n=r(2048),o=r(3450),i=r(7987);t.throttleTime=function(e,t,r){void 0===t&&(t=n.asyncScheduler);var a=i.timer(e,t);return o.throttle((function(){return a}),r)}},3085:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwIfEmpty=void 0;var n=r(8898),o=r(3426),i=r(6044);function a(){return new n.EmptyError}t.throwIfEmpty=function(e){return void 0===e&&(e=a),o.operate((function(t,r){var n=!1;t.subscribe(i.createOperatorSubscriber(r,(function(e){n=!0,r.next(e)}),(function(){return n?r.complete():r.error(e())})))}))}},3682:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeInterval=t.timeInterval=void 0;var n=r(2048),o=r(3426),i=r(6044);t.timeInterval=function(e){return void 0===e&&(e=n.asyncScheduler),o.operate((function(t,r){var n=e.now();t.subscribe(i.createOperatorSubscriber(r,(function(t){var o=e.now(),i=o-n;n=o,r.next(new a(t,i))})))}))};var a=function(e,t){this.value=e,this.interval=t};t.TimeInterval=a},467:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeout=t.TimeoutError=void 0;var n=r(2048),o=r(9199),i=r(3426),a=r(8666),u=r(849),c=r(6044),s=r(2853);function l(e){throw new t.TimeoutError(e)}t.TimeoutError=u.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=o.isValidDate(e)?{first:e}:"number"==typeof e?{each:e}:e,u=r.first,f=r.each,p=r.with,d=void 0===p?l:p,y=r.scheduler,h=void 0===y?null!=t?t:n.asyncScheduler:y,v=r.meta,m=void 0===v?null:v;if(null==u&&null==f)throw new TypeError("No timeout provided.");return i.operate((function(e,t){var r,n,o=null,i=0,l=function(e){n=s.executeSchedule(t,h,(function(){try{r.unsubscribe(),a.innerFrom(d({meta:m,lastValue:o,seen:i})).subscribe(t)}catch(e){t.error(e)}}),e)};r=e.subscribe(c.createOperatorSubscriber(t,(function(e){null==n||n.unsubscribe(),i++,t.next(o=e),f>0&&l(f)}),void 0,void 0,(function(){(null==n?void 0:n.closed)||null==n||n.unsubscribe(),o=null}))),!i&&l(null!=u?"number"==typeof u?u:+u-h.now():f)}))}},6155:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeoutWith=void 0;var n=r(2048),o=r(9199),i=r(467);t.timeoutWith=function(e,t,r){var a,u,c;if(r=null!=r?r:n.async,o.isValidDate(e)?a=e:"number"==typeof e&&(u=e),!t)throw new TypeError("No observable provided to switch to");if(c=function(){return t},null==a&&null==u)throw new TypeError("No timeout provided.");return i.timeout({first:a,each:u,scheduler:r,with:c})}},5460:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timestamp=void 0;var n=r(6757),o=r(3910);t.timestamp=function(e){return void 0===e&&(e=n.dateTimestampProvider),o.map((function(t){return{value:t,timestamp:e.now()}}))}},6558:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toArray=void 0;var n=r(8320),o=r(3426),i=function(e,t){return e.push(t),e};t.toArray=function(){return o.operate((function(e,t){n.reduce(i,[])(e).subscribe(t)}))}},9002:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.window=void 0;var n=r(8270),o=r(3426),i=r(6044),a=r(1067),u=r(8666);t.window=function(e){return o.operate((function(t,r){var o=new n.Subject;r.next(o.asObservable());var c=function(e){o.error(e),r.error(e)};return t.subscribe(i.createOperatorSubscriber(r,(function(e){return null==o?void 0:o.next(e)}),(function(){o.complete(),r.complete()}),c)),u.innerFrom(e).subscribe(i.createOperatorSubscriber(r,(function(){o.complete(),r.next(o=new n.Subject)}),a.noop,c)),function(){null==o||o.unsubscribe(),o=null}}))}},7471: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 o=r(8270),i=r(3426),a=r(6044);t.windowCount=function(e,t){void 0===t&&(t=0);var r=t>0?t:e;return i.operate((function(t,i){var u=[new o.Subject],c=0;i.next(u[0].asObservable()),t.subscribe(a.createOperatorSubscriber(i,(function(t){var a,s;try{for(var l=n(u),f=l.next();!f.done;f=l.next())f.value.next(t)}catch(e){a={error:e}}finally{try{f&&!f.done&&(s=l.return)&&s.call(l)}finally{if(a)throw a.error}}var p=c-e+1;if(p>=0&&p%r==0&&u.shift().complete(),++c%r==0){var d=new o.Subject;u.push(d),i.next(d.asObservable())}}),(function(){for(;u.length>0;)u.shift().complete();i.complete()}),(function(e){for(;u.length>0;)u.shift().error(e);i.error(e)}),(function(){u=null})))}))}},2831:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.windowTime=void 0;var n=r(8270),o=r(2048),i=r(309),a=r(3426),u=r(6044),c=r(760),s=r(7178),l=r(2853);t.windowTime=function(e){for(var t,r,f=[],p=1;p<arguments.length;p++)f[p-1]=arguments[p];var d=null!==(t=s.popScheduler(f))&&void 0!==t?t:o.asyncScheduler,y=null!==(r=f[0])&&void 0!==r?r:null,h=f[1]||1/0;return a.operate((function(t,r){var o=[],a=!1,s=function(e){var t=e.window,r=e.subs;t.complete(),r.unsubscribe(),c.arrRemove(o,e),a&&f()},f=function(){if(o){var t=new i.Subscription;r.add(t);var a=new n.Subject,u={window:a,subs:t,seen:0};o.push(u),r.next(a.asObservable()),l.executeSchedule(t,d,(function(){return s(u)}),e)}};null!==y&&y>=0?l.executeSchedule(r,d,f,y,!0):a=!0,f();var p=function(e){return o.slice().forEach(e)},v=function(e){p((function(t){var r=t.window;return e(r)})),e(r),r.unsubscribe()};return t.subscribe(u.createOperatorSubscriber(r,(function(e){p((function(t){t.window.next(e),h<=++t.seen&&s(t)}))}),(function(){return v((function(e){return e.complete()}))}),(function(e){return v((function(t){return t.error(e)}))}))),function(){o=null}}))}},7898: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 o=r(8270),i=r(309),a=r(3426),u=r(8666),c=r(6044),s=r(1067),l=r(760);t.windowToggle=function(e,t){return a.operate((function(r,a){var f=[],p=function(e){for(;0<f.length;)f.shift().error(e);a.error(e)};u.innerFrom(e).subscribe(c.createOperatorSubscriber(a,(function(e){var r=new o.Subject;f.push(r);var n,d=new i.Subscription;try{n=u.innerFrom(t(e))}catch(e){return void p(e)}a.next(r.asObservable()),d.add(n.subscribe(c.createOperatorSubscriber(a,(function(){l.arrRemove(f,r),r.complete(),d.unsubscribe()}),s.noop,p)))}),s.noop)),r.subscribe(c.createOperatorSubscriber(a,(function(e){var t,r,o=f.slice();try{for(var i=n(o),a=i.next();!a.done;a=i.next())a.value.next(e)}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}}),(function(){for(;0<f.length;)f.shift().complete();a.complete()}),p,(function(){for(;0<f.length;)f.shift().unsubscribe()})))}))}},8294:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.windowWhen=void 0;var n=r(8270),o=r(3426),i=r(6044),a=r(8666);t.windowWhen=function(e){return o.operate((function(t,r){var o,u,c=function(e){o.error(e),r.error(e)},s=function(){var t;null==u||u.unsubscribe(),null==o||o.complete(),o=new n.Subject,r.next(o.asObservable());try{t=a.innerFrom(e())}catch(e){return void c(e)}t.subscribe(u=i.createOperatorSubscriber(r,s,s,c))};s(),t.subscribe(i.createOperatorSubscriber(r,(function(e){return o.next(e)}),(function(){o.complete(),r.complete()}),c,(function(){null==u||u.unsubscribe(),o=null})))}))}},53: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,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.withLatestFrom=void 0;var i=r(3426),a=r(6044),u=r(8666),c=r(2609),s=r(1067),l=r(7178);t.withLatestFrom=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=l.popResultSelector(e);return i.operate((function(t,i){for(var l=e.length,f=new Array(l),p=e.map((function(){return!1})),d=!1,y=function(t){u.innerFrom(e[t]).subscribe(a.createOperatorSubscriber(i,(function(e){f[t]=e,d||p[t]||(p[t]=!0,(d=p.every(c.identity))&&(p=null))}),s.noop))},h=0;h<l;h++)y(h);t.subscribe(a.createOperatorSubscriber(i,(function(e){if(d){var t=o([e],n(f));i.next(r?r.apply(void 0,o([],n(t))):t)}})))}))}},2151: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,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.zip=void 0;var i=r(6017),a=r(3426);t.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a.operate((function(t,r){i.zip.apply(void 0,o([t],n(e))).subscribe(r)}))}},568:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zipAll=void 0;var n=r(6017),o=r(4221);t.zipAll=function(e){return o.joinAllInternals(n.zip,e)}},3807: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,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.zipWith=void 0;var i=r(2151);t.zipWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.zip.apply(void 0,o([],n(e)))}},3816:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleArray=void 0;var n=r(997);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())}))}))}},5175:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleAsyncIterable=void 0;var n=r(997),o=r(2853);t.scheduleAsyncIterable=function(e,t){if(!e)throw new Error("Iterable cannot be null");return new n.Observable((function(r){o.executeSchedule(r,t,(function(){var n=e[Symbol.asyncIterator]();o.executeSchedule(r,t,(function(){n.next().then((function(e){e.done?r.complete():r.next(e.value)}))}),0,!0)}))}))}},6123:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleIterable=void 0;var n=r(997),o=r(5165),i=r(4539),a=r(2853);t.scheduleIterable=function(e,t){return new n.Observable((function(r){var n;return a.executeSchedule(r,t,(function(){n=e[o.iterator](),a.executeSchedule(r,t,(function(){var e,t,o;try{t=(e=n.next()).value,o=e.done}catch(e){return void r.error(e)}o?r.complete():r.next(t)}),0,!0)})),function(){return i.isFunction(null==n?void 0:n.return)&&n.return()}}))}},3136:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleObservable=void 0;var n=r(8666),o=r(7209),i=r(6597);t.scheduleObservable=function(e,t){return n.innerFrom(e).pipe(i.subscribeOn(t),o.observeOn(t))}},1952:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.schedulePromise=void 0;var n=r(8666),o=r(7209),i=r(6597);t.schedulePromise=function(e,t){return n.innerFrom(e).pipe(i.subscribeOn(t),o.observeOn(t))}},8646:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleReadableStreamLike=void 0;var n=r(5175),o=r(5016);t.scheduleReadableStreamLike=function(e,t){return n.scheduleAsyncIterable(o.readableStreamLikeToAsyncGenerator(e),t)}},3645:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduled=void 0;var n=r(3136),o=r(1952),i=r(3816),a=r(6123),u=r(5175),c=r(2451),s=r(8854),l=r(8221),f=r(6457),p=r(8741),d=r(4691),y=r(5016),h=r(8646);t.scheduled=function(e,t){if(null!=e){if(c.isInteropObservable(e))return n.scheduleObservable(e,t);if(l.isArrayLike(e))return i.scheduleArray(e,t);if(s.isPromise(e))return o.schedulePromise(e,t);if(p.isAsyncIterable(e))return u.scheduleAsyncIterable(e,t);if(f.isIterable(e))return a.scheduleIterable(e,t);if(y.isReadableStreamLike(e))return h.scheduleReadableStreamLike(e,t)}throw d.createInvalidObservableTypeError(e)}},9504:function(e,t,r){"use strict";var n,o=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 i=function(e){function t(t,r){return e.call(this)||this}return o(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(r(309).Subscription);t.Action=i},1983:function(e,t,r){"use strict";var n,o=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 i=r(5466),a=r(6276),u=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return o(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=a.animationFrameProvider.requestAnimationFrame((function(){return t.flush(void 0)}))))},t.prototype.recycleAsyncId=function(t,r,n){var o;if(void 0===n&&(n=0),null!=n?n>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);var i=t.actions;null!=r&&(null===(o=i[i.length-1])||void 0===o?void 0:o.id)!==r&&(a.animationFrameProvider.cancelAnimationFrame(r),t._scheduled=void 0)},t}(i.AsyncAction);t.AnimationFrameAction=u},3972:function(e,t,r){"use strict";var n,o=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 i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(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(1343).AsyncScheduler);t.AnimationFrameScheduler=i},4589:function(e,t,r){"use strict";var n,o=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 i=r(5466),a=r(5848),u=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return o(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=a.immediateProvider.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,r,n){var o;if(void 0===n&&(n=0),null!=n?n>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);var i=t.actions;null!=r&&(null===(o=i[i.length-1])||void 0===o?void 0:o.id)!==r&&(a.immediateProvider.clearImmediate(r),t._scheduled===r&&(t._scheduled=void 0))},t}(i.AsyncAction);t.AsapAction=u},7046:function(e,t,r){"use strict";var n,o=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 i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(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(1343).AsyncScheduler);t.AsapScheduler=i},5466:function(e,t,r){"use strict";var n,o=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 i=r(9504),a=r(826),u=r(760),c=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 o(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,o=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(o,n,t)),this.pending=!0,this.delay=t,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(o,this.id,t),this},t.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),a.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&&a.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,u.arrRemove(n,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(i.Action);t.AsyncAction=c},1343:function(e,t,r){"use strict";var n,o=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 i=r(7979),a=function(e){function t(t,r){void 0===r&&(r=i.Scheduler.now);var n=e.call(this,t,r)||this;return n.actions=[],n._active=!1,n}return o(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}(i.Scheduler);t.AsyncScheduler=a},8601:function(e,t,r){"use strict";var n,o=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 i=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return o(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(5466).AsyncAction);t.QueueAction=i},250:function(e,t,r){"use strict";var n,o=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 i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(r(1343).AsyncScheduler);t.QueueScheduler=i},6105:function(e,t,r){"use strict";var n,o=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 i=r(5466),a=r(309),u=function(e){function t(t,r){void 0===t&&(t=c),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 o(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(1343).AsyncScheduler);t.VirtualTimeScheduler=u;var c=function(e){function t(t,r,n){void 0===n&&(n=t.index+=1);var o=e.call(this,t,r)||this;return o.scheduler=t,o.work=r,o.index=n,o.active=!0,o.index=t.index=n,o}return o(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 o=new t(this.scheduler,this.work);return this.add(o),o.schedule(r,n)}return a.Subscription.EMPTY},t.prototype.requestAsyncId=function(e,r,n){void 0===n&&(n=0),this.delay=e.frame+n;var o=e.actions;return o.push(this),o.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}(i.AsyncAction);t.VirtualAction=c},4941:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.animationFrame=t.animationFrameScheduler=void 0;var n=r(1983),o=r(3972);t.animationFrameScheduler=new o.AnimationFrameScheduler(n.AnimationFrameAction),t.animationFrame=t.animationFrameScheduler},6276: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,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.animationFrameProvider=void 0;var i=r(309);t.animationFrameProvider={schedule:function(e){var r=requestAnimationFrame,n=cancelAnimationFrame,o=t.animationFrameProvider.delegate;o&&(r=o.requestAnimationFrame,n=o.cancelAnimationFrame);var a=r((function(t){n=void 0,e(t)}));return new i.Subscription((function(){return null==n?void 0:n(a)}))},requestAnimationFrame:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var i=t.animationFrameProvider.delegate;return((null==i?void 0:i.requestAnimationFrame)||requestAnimationFrame).apply(void 0,o([],n(e)))},cancelAnimationFrame:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var i=t.animationFrameProvider.delegate;return((null==i?void 0:i.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,o([],n(e)))},delegate:void 0}},1335:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.asap=t.asapScheduler=void 0;var n=r(4589),o=r(7046);t.asapScheduler=new o.AsapScheduler(n.AsapAction),t.asap=t.asapScheduler},2048:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.async=t.asyncScheduler=void 0;var n=r(5466),o=r(1343);t.asyncScheduler=new o.AsyncScheduler(n.AsyncAction),t.async=t.asyncScheduler},6757:(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}},5848: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,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.immediateProvider=void 0;var i=r(5698),a=i.Immediate.setImmediate,u=i.Immediate.clearImmediate;t.immediateProvider={setImmediate:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var i=t.immediateProvider.delegate;return((null==i?void 0:i.setImmediate)||a).apply(void 0,o([],n(e)))},clearImmediate:function(e){var r=t.immediateProvider.delegate;return((null==r?void 0:r.clearImmediate)||u)(e)},delegate:void 0}},826: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,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},n=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.intervalProvider=void 0,t.intervalProvider={setInterval:function(e,o){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var u=t.intervalProvider.delegate;return(null==u?void 0:u.setInterval)?u.setInterval.apply(u,n([e,o],r(i))):setInterval.apply(void 0,n([e,o],r(i)))},clearInterval:function(e){var r=t.intervalProvider.delegate;return((null==r?void 0:r.clearInterval)||clearInterval)(e)},delegate:void 0}},281:(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}},3099:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.queue=t.queueScheduler=void 0;var n=r(8601),o=r(250);t.queueScheduler=new o.QueueScheduler(n.QueueAction),t.queue=t.queueScheduler},1578: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,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},n=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.timeoutProvider=void 0,t.timeoutProvider={setTimeout:function(e,o){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var u=t.timeoutProvider.delegate;return(null==u?void 0:u.setTimeout)?u.setTimeout.apply(u,n([e,o],r(i))):setTimeout.apply(void 0,n([e,o],r(i)))},clearTimeout:function(e){var r=t.timeoutProvider.delegate;return((null==r?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:void 0}},5165:(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()},4466:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observable=void 0,t.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"},1035:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3434:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentOutOfRangeError=void 0;var n=r(849);t.ArgumentOutOfRangeError=n.createErrorClass((function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}}))},8898:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyError=void 0;var n=r(849);t.EmptyError=n.createErrorClass((function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}}))},5698:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TestTools=t.Immediate=void 0;var r,n=1,o={};function i(e){return e in o&&(delete o[e],!0)}t.Immediate={setImmediate:function(e){var t=n++;return o[t]=!0,r||(r=Promise.resolve()),r.then((function(){return i(t)&&e()})),t},clearImmediate:function(e){i(e)}},t.TestTools={pending:function(){return Object.keys(o).length}}},7060:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotFoundError=void 0;var n=r(849);t.NotFoundError=n.createErrorClass((function(e){return function(t){e(this),this.name="NotFoundError",this.message=t}}))},9737:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectUnsubscribedError=void 0;var n=r(849);t.ObjectUnsubscribedError=n.createErrorClass((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}))},1342:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SequenceError=void 0;var n=r(849);t.SequenceError=n.createErrorClass((function(e){return function(t){e(this),this.name="SequenceError",this.message=t}}))},6251:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnsubscriptionError=void 0;var n=r(849);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}}))},7178:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.popNumber=t.popScheduler=t.popResultSelector=void 0;var n=r(4539),o=r(3810);function i(e){return e[e.length-1]}t.popResultSelector=function(e){return n.isFunction(i(e))?e.pop():void 0},t.popScheduler=function(e){return o.isScheduler(i(e))?e.pop():void 0},t.popNumber=function(e,t){return"number"==typeof i(e)?e.pop():t}},6965:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.argsArgArrayOrObject=void 0;var r=Array.isArray,n=Object.getPrototypeOf,o=Object.prototype,i=Object.keys;t.argsArgArrayOrObject=function(e){if(1===e.length){var t=e[0];if(r(t))return{args:t,keys:null};if((u=t)&&"object"==typeof u&&n(u)===o){var a=i(t);return{args:a.map((function(e){return t[e]})),keys:a}}}var u;return{args:e,keys:null}}},5266:(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}},760:(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)}}},849:(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}},3284:(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}),{})}},9942:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.captureError=t.errorContext=void 0;var n=r(366),o=null;t.errorContext=function(e){if(n.config.useDeprecatedSynchronousErrorHandling){var t=!o;if(t&&(o={errorThrown:!1,error:null}),e(),t){var r=o,i=r.errorThrown,a=r.error;if(o=null,i)throw a}}else e()},t.captureError=function(e){n.config.useDeprecatedSynchronousErrorHandling&&o&&(o.errorThrown=!0,o.error=e)}},2853:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.executeSchedule=void 0,t.executeSchedule=function(e,t,r,n,o){void 0===n&&(n=0),void 0===o&&(o=!1);var i=t.schedule((function(){r(),o?e.add(this.schedule(null,n)):this.unsubscribe()}),n);if(e.add(i),!o)return i}},2609:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.identity=void 0,t.identity=function(e){return e}},8221:(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}},8741:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAsyncIterable=void 0;var n=r(4539);t.isAsyncIterable=function(e){return Symbol.asyncIterator&&n.isFunction(null==e?void 0:e[Symbol.asyncIterator])}},9199:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidDate=void 0,t.isValidDate=function(e){return e instanceof Date&&!isNaN(e)}},4539:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFunction=void 0,t.isFunction=function(e){return"function"==typeof e}},2451:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInteropObservable=void 0;var n=r(4466),o=r(4539);t.isInteropObservable=function(e){return o.isFunction(e[n.observable])}},6457:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIterable=void 0;var n=r(5165),o=r(4539);t.isIterable=function(e){return o.isFunction(null==e?void 0:e[n.iterator])}},5758:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObservable=void 0;var n=r(997),o=r(4539);t.isObservable=function(e){return!!e&&(e instanceof n.Observable||o.isFunction(e.lift)&&o.isFunction(e.subscribe))}},8854:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=void 0;var n=r(4539);t.isPromise=function(e){return n.isFunction(null==e?void 0:e.then)}},5016:function(e,t,r){"use strict";var n=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}},o=this&&this.__await||function(e){return this instanceof o?(this.v=e,this):new o(e)},i=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||[]),a=[];return n={},u("next"),u("throw"),u("return"),n[Symbol.asyncIterator]=function(){return this},n;function u(e){i[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||c(e,t)}))})}function c(e,t){try{(r=i[e](t)).value instanceof o?Promise.resolve(r.value.v).then(s,l):f(a[0][2],r)}catch(e){f(a[0][3],e)}var r}function s(e){c("next",e)}function l(e){c("throw",e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}};Object.defineProperty(t,"__esModule",{value:!0}),t.isReadableStreamLike=t.readableStreamLikeToAsyncGenerator=void 0;var a=r(4539);t.readableStreamLikeToAsyncGenerator=function(e){return i(this,arguments,(function(){var t,r,i;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,o(t.read())];case 3:return r=n.sent(),i=r.value,r.done?[4,o(void 0)]:[3,5];case 4:return[2,n.sent()];case 5:return[4,o(i)];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 a.isFunction(null==e?void 0:e.getReader)}},3810:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isScheduler=void 0;var n=r(4539);t.isScheduler=function(e){return e&&n.isFunction(e.schedule)}},3426:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.operate=t.hasLift=void 0;var n=r(4539);function o(e){return n.isFunction(null==e?void 0:e.lift)}t.hasLift=o,t.operate=function(e){return function(t){if(o(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")}}},4854: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,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.mapOneOrManyArgs=void 0;var i=r(3910),a=Array.isArray;t.mapOneOrManyArgs=function(e){return i.map((function(t){return function(e,t){return a(t)?e.apply(void 0,o([],n(t))):e(t)}(e,t)}))}},1067:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noop=void 0,t.noop=function(){}},8582:(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)}}},175:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pipeFromArray=t.pipe=void 0;var n=r(2609);function o(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 o(e)},t.pipeFromArray=o},506:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportUnhandledError=void 0;var n=r(366),o=r(1578);t.reportUnhandledError=function(e){o.timeoutProvider.setTimeout((function(){var t=n.config.onUnhandledError;if(!t)throw e;t(e)}))}},4691:(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.")}},3664:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeAll=t.merge=t.max=t.materialize=t.mapTo=t.map=t.last=t.isEmpty=t.ignoreElements=t.groupBy=t.first=t.findIndex=t.find=t.finalize=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.concat=t.combineLatestWith=t.combineLatest=t.combineLatestAll=t.combineAll=t.catchError=t.bufferWhen=t.bufferToggle=t.bufferTime=t.bufferCount=t.buffer=t.auditTime=t.audit=void 0,t.timeInterval=t.throwIfEmpty=t.throttleTime=t.throttle=t.tap=t.takeWhile=t.takeUntil=t.takeLast=t.take=t.switchScan=t.switchMapTo=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.race=t.publishReplay=t.publishLast=t.publishBehavior=t.publish=t.pluck=t.partition=t.pairwise=t.onErrorResumeNext=t.observeOn=t.multicast=t.min=t.mergeWith=t.mergeScan=t.mergeMapTo=t.mergeMap=t.flatMap=void 0,t.zipWith=t.zipAll=t.zip=t.withLatestFrom=t.windowWhen=t.windowToggle=t.windowTime=t.windowCount=t.window=t.toArray=t.timestamp=t.timeoutWith=t.timeout=void 0;var n=r(4867);Object.defineProperty(t,"audit",{enumerable:!0,get:function(){return n.audit}});var o=r(4790);Object.defineProperty(t,"auditTime",{enumerable:!0,get:function(){return o.auditTime}});var i=r(7036);Object.defineProperty(t,"buffer",{enumerable:!0,get:function(){return i.buffer}});var a=r(4153);Object.defineProperty(t,"bufferCount",{enumerable:!0,get:function(){return a.bufferCount}});var u=r(9073);Object.defineProperty(t,"bufferTime",{enumerable:!0,get:function(){return u.bufferTime}});var c=r(5032);Object.defineProperty(t,"bufferToggle",{enumerable:!0,get:function(){return c.bufferToggle}});var s=r(4256);Object.defineProperty(t,"bufferWhen",{enumerable:!0,get:function(){return s.bufferWhen}});var l=r(7129);Object.defineProperty(t,"catchError",{enumerable:!0,get:function(){return l.catchError}});var f=r(6070);Object.defineProperty(t,"combineAll",{enumerable:!0,get:function(){return f.combineAll}});var p=r(595);Object.defineProperty(t,"combineLatestAll",{enumerable:!0,get:function(){return p.combineLatestAll}});var d=r(4694);Object.defineProperty(t,"combineLatest",{enumerable:!0,get:function(){return d.combineLatest}});var y=r(770);Object.defineProperty(t,"combineLatestWith",{enumerable:!0,get:function(){return y.combineLatestWith}});var h=r(2986);Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return h.concat}});var v=r(9311);Object.defineProperty(t,"concatAll",{enumerable:!0,get:function(){return v.concatAll}});var m=r(6478);Object.defineProperty(t,"concatMap",{enumerable:!0,get:function(){return m.concatMap}});var b=r(7603);Object.defineProperty(t,"concatMapTo",{enumerable:!0,get:function(){return b.concatMapTo}});var g=r(8198);Object.defineProperty(t,"concatWith",{enumerable:!0,get:function(){return g.concatWith}});var w=r(1038);Object.defineProperty(t,"connect",{enumerable:!0,get:function(){return w.connect}});var _=r(3735);Object.defineProperty(t,"count",{enumerable:!0,get:function(){return _.count}});var O=r(33);Object.defineProperty(t,"debounce",{enumerable:!0,get:function(){return O.debounce}});var S=r(4052);Object.defineProperty(t,"debounceTime",{enumerable:!0,get:function(){return S.debounceTime}});var E=r(5585);Object.defineProperty(t,"defaultIfEmpty",{enumerable:!0,get:function(){return E.defaultIfEmpty}});var P=r(6931);Object.defineProperty(t,"delay",{enumerable:!0,get:function(){return P.delay}});var j=r(1051);Object.defineProperty(t,"delayWhen",{enumerable:!0,get:function(){return j.delayWhen}});var x=r(248);Object.defineProperty(t,"dematerialize",{enumerable:!0,get:function(){return x.dematerialize}});var C=r(2954);Object.defineProperty(t,"distinct",{enumerable:!0,get:function(){return C.distinct}});var k=r(9586);Object.defineProperty(t,"distinctUntilChanged",{enumerable:!0,get:function(){return k.distinctUntilChanged}});var A=r(9590);Object.defineProperty(t,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return A.distinctUntilKeyChanged}});var I=r(3969);Object.defineProperty(t,"elementAt",{enumerable:!0,get:function(){return I.elementAt}});var L=r(3181);Object.defineProperty(t,"endWith",{enumerable:!0,get:function(){return L.endWith}});var T=r(7495);Object.defineProperty(t,"every",{enumerable:!0,get:function(){return T.every}});var R=r(802);Object.defineProperty(t,"exhaust",{enumerable:!0,get:function(){return R.exhaust}});var F=r(3719);Object.defineProperty(t,"exhaustAll",{enumerable:!0,get:function(){return F.exhaustAll}});var N=r(5990);Object.defineProperty(t,"exhaustMap",{enumerable:!0,get:function(){return N.exhaustMap}});var M=r(7190);Object.defineProperty(t,"expand",{enumerable:!0,get:function(){return M.expand}});var D=r(3616);Object.defineProperty(t,"filter",{enumerable:!0,get:function(){return D.filter}});var U=r(6344);Object.defineProperty(t,"finalize",{enumerable:!0,get:function(){return U.finalize}});var V=r(665);Object.defineProperty(t,"find",{enumerable:!0,get:function(){return V.find}});var G=r(2773);Object.defineProperty(t,"findIndex",{enumerable:!0,get:function(){return G.findIndex}});var B=r(5350);Object.defineProperty(t,"first",{enumerable:!0,get:function(){return B.first}});var W=r(7342);Object.defineProperty(t,"groupBy",{enumerable:!0,get:function(){return W.groupBy}});var z=r(3329);Object.defineProperty(t,"ignoreElements",{enumerable:!0,get:function(){return z.ignoreElements}});var K=r(7077);Object.defineProperty(t,"isEmpty",{enumerable:!0,get:function(){return K.isEmpty}});var q=r(3086);Object.defineProperty(t,"last",{enumerable:!0,get:function(){return q.last}});var Q=r(3910);Object.defineProperty(t,"map",{enumerable:!0,get:function(){return Q.map}});var J=r(6203);Object.defineProperty(t,"mapTo",{enumerable:!0,get:function(){return J.mapTo}});var H=r(9569);Object.defineProperty(t,"materialize",{enumerable:!0,get:function(){return H.materialize}});var Y=r(6366);Object.defineProperty(t,"max",{enumerable:!0,get:function(){return Y.max}});var $=r(6864);Object.defineProperty(t,"merge",{enumerable:!0,get:function(){return $.merge}});var X=r(6593);Object.defineProperty(t,"mergeAll",{enumerable:!0,get:function(){return X.mergeAll}});var Z=r(4343);Object.defineProperty(t,"flatMap",{enumerable:!0,get:function(){return Z.flatMap}});var ee=r(7600);Object.defineProperty(t,"mergeMap",{enumerable:!0,get:function(){return ee.mergeMap}});var te=r(2993);Object.defineProperty(t,"mergeMapTo",{enumerable:!0,get:function(){return te.mergeMapTo}});var re=r(8469);Object.defineProperty(t,"mergeScan",{enumerable:!0,get:function(){return re.mergeScan}});var ne=r(5768);Object.defineProperty(t,"mergeWith",{enumerable:!0,get:function(){return ne.mergeWith}});var oe=r(1936);Object.defineProperty(t,"min",{enumerable:!0,get:function(){return oe.min}});var ie=r(8886);Object.defineProperty(t,"multicast",{enumerable:!0,get:function(){return ie.multicast}});var ae=r(7209);Object.defineProperty(t,"observeOn",{enumerable:!0,get:function(){return ae.observeOn}});var ue=r(3975);Object.defineProperty(t,"onErrorResumeNext",{enumerable:!0,get:function(){return ue.onErrorResumeNext}});var ce=r(3838);Object.defineProperty(t,"pairwise",{enumerable:!0,get:function(){return ce.pairwise}});var se=r(9374);Object.defineProperty(t,"partition",{enumerable:!0,get:function(){return se.partition}});var le=r(6921);Object.defineProperty(t,"pluck",{enumerable:!0,get:function(){return le.pluck}});var fe=r(7072);Object.defineProperty(t,"publish",{enumerable:!0,get:function(){return fe.publish}});var pe=r(3297);Object.defineProperty(t,"publishBehavior",{enumerable:!0,get:function(){return pe.publishBehavior}});var de=r(9187);Object.defineProperty(t,"publishLast",{enumerable:!0,get:function(){return de.publishLast}});var ye=r(464);Object.defineProperty(t,"publishReplay",{enumerable:!0,get:function(){return ye.publishReplay}});var he=r(3523);Object.defineProperty(t,"race",{enumerable:!0,get:function(){return he.race}});var ve=r(9627);Object.defineProperty(t,"raceWith",{enumerable:!0,get:function(){return ve.raceWith}});var me=r(8320);Object.defineProperty(t,"reduce",{enumerable:!0,get:function(){return me.reduce}});var be=r(7257);Object.defineProperty(t,"repeat",{enumerable:!0,get:function(){return be.repeat}});var ge=r(2625);Object.defineProperty(t,"repeatWhen",{enumerable:!0,get:function(){return ge.repeatWhen}});var we=r(2542);Object.defineProperty(t,"retry",{enumerable:!0,get:function(){return we.retry}});var _e=r(7970);Object.defineProperty(t,"retryWhen",{enumerable:!0,get:function(){return _e.retryWhen}});var Oe=r(1278);Object.defineProperty(t,"refCount",{enumerable:!0,get:function(){return Oe.refCount}});var Se=r(1552);Object.defineProperty(t,"sample",{enumerable:!0,get:function(){return Se.sample}});var Ee=r(4605);Object.defineProperty(t,"sampleTime",{enumerable:!0,get:function(){return Ee.sampleTime}});var Pe=r(8947);Object.defineProperty(t,"scan",{enumerable:!0,get:function(){return Pe.scan}});var je=r(7323);Object.defineProperty(t,"sequenceEqual",{enumerable:!0,get:function(){return je.sequenceEqual}});var xe=r(6723);Object.defineProperty(t,"share",{enumerable:!0,get:function(){return xe.share}});var Ce=r(2016);Object.defineProperty(t,"shareReplay",{enumerable:!0,get:function(){return Ce.shareReplay}});var ke=r(7630);Object.defineProperty(t,"single",{enumerable:!0,get:function(){return ke.single}});var Ae=r(7585);Object.defineProperty(t,"skip",{enumerable:!0,get:function(){return Ae.skip}});var Ie=r(5917);Object.defineProperty(t,"skipLast",{enumerable:!0,get:function(){return Ie.skipLast}});var Le=r(5337);Object.defineProperty(t,"skipUntil",{enumerable:!0,get:function(){return Le.skipUntil}});var Te=r(3072);Object.defineProperty(t,"skipWhile",{enumerable:!0,get:function(){return Te.skipWhile}});var Re=r(6336);Object.defineProperty(t,"startWith",{enumerable:!0,get:function(){return Re.startWith}});var Fe=r(6597);Object.defineProperty(t,"subscribeOn",{enumerable:!0,get:function(){return Fe.subscribeOn}});var Ne=r(5747);Object.defineProperty(t,"switchAll",{enumerable:!0,get:function(){return Ne.switchAll}});var Me=r(5962);Object.defineProperty(t,"switchMap",{enumerable:!0,get:function(){return Me.switchMap}});var De=r(7455);Object.defineProperty(t,"switchMapTo",{enumerable:!0,get:function(){return De.switchMapTo}});var Ue=r(991);Object.defineProperty(t,"switchScan",{enumerable:!0,get:function(){return Ue.switchScan}});var Ve=r(109);Object.defineProperty(t,"take",{enumerable:!0,get:function(){return Ve.take}});var Ge=r(3449);Object.defineProperty(t,"takeLast",{enumerable:!0,get:function(){return Ge.takeLast}});var Be=r(7149);Object.defineProperty(t,"takeUntil",{enumerable:!0,get:function(){return Be.takeUntil}});var We=r(5964);Object.defineProperty(t,"takeWhile",{enumerable:!0,get:function(){return We.takeWhile}});var ze=r(4881);Object.defineProperty(t,"tap",{enumerable:!0,get:function(){return ze.tap}});var Ke=r(3450);Object.defineProperty(t,"throttle",{enumerable:!0,get:function(){return Ke.throttle}});var qe=r(6959);Object.defineProperty(t,"throttleTime",{enumerable:!0,get:function(){return qe.throttleTime}});var Qe=r(3085);Object.defineProperty(t,"throwIfEmpty",{enumerable:!0,get:function(){return Qe.throwIfEmpty}});var Je=r(3682);Object.defineProperty(t,"timeInterval",{enumerable:!0,get:function(){return Je.timeInterval}});var He=r(467);Object.defineProperty(t,"timeout",{enumerable:!0,get:function(){return He.timeout}});var Ye=r(6155);Object.defineProperty(t,"timeoutWith",{enumerable:!0,get:function(){return Ye.timeoutWith}});var $e=r(5460);Object.defineProperty(t,"timestamp",{enumerable:!0,get:function(){return $e.timestamp}});var Xe=r(6558);Object.defineProperty(t,"toArray",{enumerable:!0,get:function(){return Xe.toArray}});var Ze=r(9002);Object.defineProperty(t,"window",{enumerable:!0,get:function(){return Ze.window}});var et=r(7471);Object.defineProperty(t,"windowCount",{enumerable:!0,get:function(){return et.windowCount}});var tt=r(2831);Object.defineProperty(t,"windowTime",{enumerable:!0,get:function(){return tt.windowTime}});var rt=r(7898);Object.defineProperty(t,"windowToggle",{enumerable:!0,get:function(){return rt.windowToggle}});var nt=r(8294);Object.defineProperty(t,"windowWhen",{enumerable:!0,get:function(){return nt.windowWhen}});var ot=r(53);Object.defineProperty(t,"withLatestFrom",{enumerable:!0,get:function(){return ot.withLatestFrom}});var it=r(2151);Object.defineProperty(t,"zip",{enumerable:!0,get:function(){return it.zip}});var at=r(568);Object.defineProperty(t,"zipAll",{enumerable:!0,get:function(){return at.zipAll}});var ut=r(3807);Object.defineProperty(t,"zipWith",{enumerable:!0,get:function(){return ut.zipWith}})},6419:(e,t,r)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(o=n))})),t.splice(o,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(3678)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},3678:(e,t,r)=>{e.exports=function(e){function t(e){let r,o,i,a=null;function u(...e){if(!u.enabled)return;const n=u,o=Number(new Date),i=o-(r||o);n.diff=i,n.prev=r,n.curr=o,r=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,o)=>{if("%%"===r)return"%";a++;const i=t.formatters[o];if("function"==typeof i){const t=e[a];r=i.call(n,t),e.splice(a,1),a--}return r})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return u.namespace=e,u.useColors=t.useColors(),u.color=t.selectColor(e),u.extend=n,u.destroy=t.destroy,Object.defineProperty(u,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(o!==t.namespaces&&(o=t.namespaces,i=t.enabled(e)),i),set:e=>{a=e}}),"function"==typeof t.init&&t.init(u),u}function n(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function o(e,t){let r=0,n=0,o=-1,i=0;for(;r<e.length;)if(n<t.length&&(t[n]===e[r]||"*"===t[n]))"*"===t[n]?(o=n,i=r,n++):(r++,n++);else{if(-1===o)return!1;n=o+1,i++,r=i}for(;n<t.length&&"*"===t[n];)n++;return n===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names,...t.skips.map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").trim().replace(" ",",").split(",").filter(Boolean);for(const e of r)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const r of t.skips)if(o(e,r))return!1;for(const r of t.names)if(o(e,r))return!0;return!1},t.humanize=r(5759),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((r=>{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},5759:e=>{var t=1e3,r=60*t,n=60*r,o=24*n,i=7*o;function a(e,t,r,n){var o=t>=1.5*r;return Math.round(e/r)+" "+n+(o?"s":"")}e.exports=function(e,u){u=u||{};var c,s,l=typeof e;if("string"===l&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(a){var u=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*u;case"weeks":case"week":case"w":return u*i;case"days":case"day":case"d":return u*o;case"hours":case"hour":case"hrs":case"hr":case"h":return u*n;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}}}(e);if("number"===l&&isFinite(e))return u.long?(c=e,(s=Math.abs(c))>=o?a(c,s,o,"day"):s>=n?a(c,s,n,"hour"):s>=r?a(c,s,r,"minute"):s>=t?a(c,s,t,"second"):c+" ms"):function(e){var i=Math.abs(e);return i>=o?Math.round(e/o)+"d":i>=n?Math.round(e/n)+"h":i>=r?Math.round(e/r)+"m":i>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},7053:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"MAX",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"v1ToV6",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"v6",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"v6ToV1",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"v7",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return v.default}});var n=m(r(3847)),o=m(r(3430)),i=m(r(8562)),a=m(r(7564)),u=m(r(512)),c=m(r(9301)),s=m(r(938)),l=m(r(8451)),f=m(r(2988)),p=m(r(9077)),d=m(r(3673)),y=m(r(4982)),h=m(r(8959)),v=m(r(5157));function m(e){return e&&e.__esModule?e:{default:e}}},3847:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="ffffffff-ffff-ffff-ffff-ffffffffffff"},3705:(e,t)=>{"use strict";function r(e){return 14+(e+64>>>9<<4)+1}function n(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function o(e,t,r,o,i,a){return n((u=n(n(t,e),n(o,a)))<<(c=i)|u>>>32-c,r);var u,c}function i(e,t,r,n,i,a,u){return o(t&r|~t&n,e,t,i,a,u)}function a(e,t,r,n,i,a,u){return o(t&n|r&~n,e,t,i,a,u)}function u(e,t,r,n,i,a,u){return o(t^r^n,e,t,i,a,u)}function c(e,t,r,n,i,a,u){return o(r^(t|~n),e,t,i,a,u)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var o=0;o<t.length;++o)e[o]=t.charCodeAt(o)}return function(e){for(var t=[],r=32*e.length,n="0123456789abcdef",o=0;o<r;o+=8){var i=e[o>>5]>>>o%32&255,a=parseInt(n.charAt(i>>>4&15)+n.charAt(15&i),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[r(t)-1]=t;for(var o=1732584193,s=-271733879,l=-1732584194,f=271733878,p=0;p<e.length;p+=16){var d=o,y=s,h=l,v=f;o=i(o,s,l,f,e[p],7,-680876936),f=i(f,o,s,l,e[p+1],12,-389564586),l=i(l,f,o,s,e[p+2],17,606105819),s=i(s,l,f,o,e[p+3],22,-1044525330),o=i(o,s,l,f,e[p+4],7,-176418897),f=i(f,o,s,l,e[p+5],12,1200080426),l=i(l,f,o,s,e[p+6],17,-1473231341),s=i(s,l,f,o,e[p+7],22,-45705983),o=i(o,s,l,f,e[p+8],7,1770035416),f=i(f,o,s,l,e[p+9],12,-1958414417),l=i(l,f,o,s,e[p+10],17,-42063),s=i(s,l,f,o,e[p+11],22,-1990404162),o=i(o,s,l,f,e[p+12],7,1804603682),f=i(f,o,s,l,e[p+13],12,-40341101),l=i(l,f,o,s,e[p+14],17,-1502002290),o=a(o,s=i(s,l,f,o,e[p+15],22,1236535329),l,f,e[p+1],5,-165796510),f=a(f,o,s,l,e[p+6],9,-1069501632),l=a(l,f,o,s,e[p+11],14,643717713),s=a(s,l,f,o,e[p],20,-373897302),o=a(o,s,l,f,e[p+5],5,-701558691),f=a(f,o,s,l,e[p+10],9,38016083),l=a(l,f,o,s,e[p+15],14,-660478335),s=a(s,l,f,o,e[p+4],20,-405537848),o=a(o,s,l,f,e[p+9],5,568446438),f=a(f,o,s,l,e[p+14],9,-1019803690),l=a(l,f,o,s,e[p+3],14,-187363961),s=a(s,l,f,o,e[p+8],20,1163531501),o=a(o,s,l,f,e[p+13],5,-1444681467),f=a(f,o,s,l,e[p+2],9,-51403784),l=a(l,f,o,s,e[p+7],14,1735328473),o=u(o,s=a(s,l,f,o,e[p+12],20,-1926607734),l,f,e[p+5],4,-378558),f=u(f,o,s,l,e[p+8],11,-2022574463),l=u(l,f,o,s,e[p+11],16,1839030562),s=u(s,l,f,o,e[p+14],23,-35309556),o=u(o,s,l,f,e[p+1],4,-1530992060),f=u(f,o,s,l,e[p+4],11,1272893353),l=u(l,f,o,s,e[p+7],16,-155497632),s=u(s,l,f,o,e[p+10],23,-1094730640),o=u(o,s,l,f,e[p+13],4,681279174),f=u(f,o,s,l,e[p],11,-358537222),l=u(l,f,o,s,e[p+3],16,-722521979),s=u(s,l,f,o,e[p+6],23,76029189),o=u(o,s,l,f,e[p+9],4,-640364487),f=u(f,o,s,l,e[p+12],11,-421815835),l=u(l,f,o,s,e[p+15],16,530742520),o=c(o,s=u(s,l,f,o,e[p+2],23,-995338651),l,f,e[p],6,-198630844),f=c(f,o,s,l,e[p+7],10,1126891415),l=c(l,f,o,s,e[p+14],15,-1416354905),s=c(s,l,f,o,e[p+5],21,-57434055),o=c(o,s,l,f,e[p+12],6,1700485571),f=c(f,o,s,l,e[p+3],10,-1894986606),l=c(l,f,o,s,e[p+10],15,-1051523),s=c(s,l,f,o,e[p+1],21,-2054922799),o=c(o,s,l,f,e[p+8],6,1873313359),f=c(f,o,s,l,e[p+15],10,-30611744),l=c(l,f,o,s,e[p+6],15,-1560198380),s=c(s,l,f,o,e[p+13],21,1309151649),o=c(o,s,l,f,e[p+4],6,-145523070),f=c(f,o,s,l,e[p+11],10,-1120210379),l=c(l,f,o,s,e[p+2],15,718787259),s=c(s,l,f,o,e[p+9],21,-343485551),o=n(o,d),s=n(s,y),l=n(l,h),f=n(f,v)}return[o,s,l,f]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(r(t)),o=0;o<t;o+=8)n[o>>5]|=(255&e[o/8])<<o%32;return n}(e),8*e.length))}},3034:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);t.default={randomUUID:r}},3430:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},8562:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(8959))&&n.__esModule?n:{default:n};t.default=function(e){if(!(0,o.default)(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r}},186:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i},7648:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(n)};var n=new Uint8Array(16)},7988:(e,t)=>{"use strict";function r(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function n(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){var t=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var i=unescape(encodeURIComponent(e));e=[];for(var a=0;a<i.length;++a)e.push(i.charCodeAt(a))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var u=e.length/4+2,c=Math.ceil(u/16),s=new Array(c),l=0;l<c;++l){for(var f=new Uint32Array(16),p=0;p<16;++p)f[p]=e[64*l+4*p]<<24|e[64*l+4*p+1]<<16|e[64*l+4*p+2]<<8|e[64*l+4*p+3];s[l]=f}s[c-1][14]=8*(e.length-1)/Math.pow(2,32),s[c-1][14]=Math.floor(s[c-1][14]),s[c-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<c;++d){for(var y=new Uint32Array(80),h=0;h<16;++h)y[h]=s[d][h];for(var v=16;v<80;++v)y[v]=n(y[v-3]^y[v-8]^y[v-14]^y[v-16],1);for(var m=o[0],b=o[1],g=o[2],w=o[3],_=o[4],O=0;O<80;++O){var S=Math.floor(O/20),E=n(m,5)+r(S,b,g,w)+_+t[S]+y[O]>>>0;_=w,w=g,g=n(b,30)>>>0,b=m,m=E}o[0]=o[0]+m>>>0,o[1]=o[1]+b>>>0,o[2]=o[2]+g>>>0,o[3]=o[3]+w>>>0,o[4]=o[4]+_>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,255&o[0],o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,255&o[1],o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,255&o[2],o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,255&o[3],o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,255&o[4]]}},7564:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=u;for(var n,o=(n=r(8959))&&n.__esModule?n:{default:n},i=[],a=0;a<256;++a)i.push((a+256).toString(16).slice(1));function u(e,t=0){return(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase()}t.default=function(e,t=0){var r=u(e,t);if(!(0,o.default)(r))throw TypeError("Stringified UUID is invalid");return r}},512:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o,i,a=(n=r(7648))&&n.__esModule?n:{default:n},u=r(7564),c=0,s=0;t.default=function(e,t,r){var n=t&&r||0,l=t||new Array(16),f=(e=e||{}).node,p=e.clockseq;if(e._v6||(f||(f=o),null==p&&(p=i)),null==f||null==p){var d=e.random||(e.rng||a.default)();null==f&&(f=[d[0],d[1],d[2],d[3],d[4],d[5]],o||e._v6||(f[0]|=1,o=f)),null==p&&(p=16383&(d[6]<<8|d[7]),void 0!==i||e._v6||(i=p))}var y=void 0!==e.msecs?e.msecs:Date.now(),h=void 0!==e.nsecs?e.nsecs:s+1,v=y-c+(h-s)/1e4;if(v<0&&void 0===e.clockseq&&(p=p+1&16383),(v<0||y>c)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");c=y,s=h,i=p;var m=(1e4*(268435455&(y+=122192928e5))+h)%4294967296;l[n++]=m>>>24&255,l[n++]=m>>>16&255,l[n++]=m>>>8&255,l[n++]=255&m;var b=y/4294967296*1e4&268435455;l[n++]=b>>>8&255,l[n++]=255&b,l[n++]=b>>>24&15|16,l[n++]=b>>>16&255,l[n++]=p>>>8|128,l[n++]=255&p;for(var g=0;g<6;++g)l[n+g]=f[g];return t||(0,u.unsafeStringify)(l)}},9301:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,r=(t="string"==typeof e?(0,o.default)(e):e,Uint8Array.of((15&t[6])<<4|t[7]>>4&15,(15&t[7])<<4|(240&t[4])>>4,(15&t[4])<<4|(240&t[5])>>4,(15&t[5])<<4|(240&t[0])>>4,(15&t[0])<<4|(240&t[1])>>4,(15&t[1])<<4|(240&t[2])>>4,96|15&t[2],t[3],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]));return"string"==typeof e?(0,i.unsafeStringify)(r):r};var n,o=(n=r(8562))&&n.__esModule?n:{default:n},i=r(7564)},938:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(r(8883)),o=i(r(3705));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,n.default)("v3",48,o.default);t.default=a},8883:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,r){function n(e,n,a,u){var c;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof n&&(n=(0,i.default)(n)),16!==(null===(c=n)||void 0===c?void 0:c.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var s=new Uint8Array(16+e.length);if(s.set(n),s.set(e,n.length),(s=r(s))[6]=15&s[6]|t,s[8]=63&s[8]|128,a){u=u||0;for(var l=0;l<16;++l)a[u+l]=s[l];return a}return(0,o.unsafeStringify)(s)}try{n.name=e}catch(e){}return n.DNS=a,n.URL=u,n};var n,o=r(7564),i=(n=r(8562))&&n.__esModule?n:{default:n},a=t.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",u=t.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8"},8451:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(3034)),o=a(r(7648)),i=r(7564);function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,r){if(n.default.randomUUID&&!t&&!e)return n.default.randomUUID();var a=(e=e||{}).random||(e.rng||o.default)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){r=r||0;for(var u=0;u<16;++u)t[r+u]=a[u];return t}return(0,i.unsafeStringify)(a)}},2988:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(r(8883)),o=i(r(7988));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,n.default)("v5",80,o.default);t.default=a},9077:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e={},t,r=0){var a=(0,o.default)(c(c({},e),{},{_v6:!0}),new Uint8Array(16));if(a=(0,i.default)(a),t){for(var u=0;u<16;u++)t[r+u]=a[u];return t}return(0,n.unsafeStringify)(a)};var n=r(7564),o=a(r(512)),i=a(r(9301));function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},3673:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,r=(t="string"==typeof e?(0,o.default)(e):e,Uint8Array.of((15&t[3])<<4|t[4]>>4&15,(15&t[4])<<4|(240&t[5])>>4,(15&t[5])<<4|15&t[6],t[7],(15&t[1])<<4|(240&t[2])>>4,(15&t[2])<<4|(240&t[3])>>4,16|(240&t[0])>>4,(15&t[0])<<4|(240&t[1])>>4,t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]));return"string"==typeof e?(0,i.unsafeStringify)(r):r};var n,o=(n=r(8562))&&n.__esModule?n:{default:n},i=r(7564)},4982:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(7648))&&n.__esModule?n:{default:n},i=r(7564),a=null,u=null,c=0;t.default=function(e,t,r){e=e||{};var n=t&&r||0,s=t||new Uint8Array(16),l=e.random||(e.rng||o.default)(),f=void 0!==e.msecs?e.msecs:Date.now(),p=void 0!==e.seq?e.seq:null,d=u,y=a;return f>c&&void 0===e.msecs&&(c=f,null!==p&&(d=null,y=null)),null!==p&&(p>2147483647&&(p=2147483647),d=p>>>19&4095,y=524287&p),null!==d&&null!==y||(d=(d=127&l[6])<<8|l[7],y=(y=(y=63&l[8])<<8|l[9])<<5|l[10]>>>3),f+1e4>c&&null===p?++y>524287&&(y=0,++d>4095&&(d=0,c++)):c=f,u=d,a=y,s[n++]=c/1099511627776&255,s[n++]=c/4294967296&255,s[n++]=c/16777216&255,s[n++]=c/65536&255,s[n++]=c/256&255,s[n++]=255&c,s[n++]=d>>>4&15|112,s[n++]=255&d,s[n++]=y>>>13&63|128,s[n++]=y>>>5&255,s[n++]=y<<3&255|7&l[10],s[n++]=l[11],s[n++]=l[12],s[n++]=l[13],s[n++]=l[14],s[n++]=l[15],t||(0,i.unsafeStringify)(s)}},8959:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(186))&&n.__esModule?n:{default:n};t.default=function(e){return"string"==typeof e&&o.default.test(e)}},5157:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(8959))&&n.__esModule?n:{default:n};t.default=function(e){if(!(0,o.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}}},__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]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__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__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var __webpack_exports__=__webpack_require__(8478);return __webpack_exports__})()));
|