@elliemae/pui-app-sdk 5.32.1 → 5.32.3
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/demo/{8164.0fa9b706.iframe.bundle.js → 4194.b43aef1e.iframe.bundle.js} +3 -3
- package/demo/4194.b43aef1e.iframe.bundle.js.br +0 -0
- package/demo/4194.b43aef1e.iframe.bundle.js.gz +0 -0
- package/demo/docs/{8164.0fa9b706.iframe.bundle.js → 4194.b43aef1e.iframe.bundle.js} +3 -3
- package/demo/docs/4194.b43aef1e.iframe.bundle.js.br +0 -0
- package/demo/docs/4194.b43aef1e.iframe.bundle.js.gz +0 -0
- package/demo/docs/iframe.html +1 -1
- package/demo/docs/index.html +1 -1
- package/demo/docs/{main.c2bae8da70736160a15b.manager.bundle.js → main.98d57bde8df29856ba54.manager.bundle.js} +1 -1
- package/demo/docs/{main.c2bae8da70736160a15b.manager.bundle.js.br → main.98d57bde8df29856ba54.manager.bundle.js.br} +0 -0
- package/demo/docs/{main.c2bae8da70736160a15b.manager.bundle.js.gz → main.98d57bde8df29856ba54.manager.bundle.js.gz} +0 -0
- package/demo/docs/main.d330d1f5.iframe.bundle.js +5 -0
- package/demo/docs/main.d330d1f5.iframe.bundle.js.br +0 -0
- package/demo/docs/main.d330d1f5.iframe.bundle.js.gz +0 -0
- package/demo/docs/project.json +1 -1
- package/demo/iframe.html +1 -1
- package/demo/index.html +1 -1
- package/demo/{main.c2bae8da70736160a15b.manager.bundle.js → main.98d57bde8df29856ba54.manager.bundle.js} +1 -1
- package/demo/{main.c2bae8da70736160a15b.manager.bundle.js.br → main.98d57bde8df29856ba54.manager.bundle.js.br} +0 -0
- package/demo/{main.c2bae8da70736160a15b.manager.bundle.js.gz → main.98d57bde8df29856ba54.manager.bundle.js.gz} +0 -0
- package/demo/main.d330d1f5.iframe.bundle.js +5 -0
- package/demo/main.d330d1f5.iframe.bundle.js.br +0 -0
- package/demo/main.d330d1f5.iframe.bundle.js.gz +0 -0
- package/demo/project.json +1 -1
- package/dist/cjs/utils/logrocket.js +2 -7
- package/dist/cjs/utils/micro-frontend/guest.js +0 -7
- package/dist/cjs/utils/micro-frontend/host.js +0 -7
- package/dist/cjs/view/guest-microapp.js +10 -4
- package/dist/cjs/view/tests/scriptingObjects/loan.js +4 -0
- package/dist/esm/utils/logrocket.js +2 -7
- package/dist/esm/utils/micro-frontend/guest.js +0 -7
- package/dist/esm/utils/micro-frontend/host.js +0 -7
- package/dist/esm/view/guest-microapp.js +10 -4
- package/dist/esm/view/tests/scriptingObjects/loan.js +4 -0
- package/dist/types/lib/utils/logrocket.d.ts +1 -2
- package/dist/types/lib/utils/micro-frontend/guest.d.ts +0 -2
- package/dist/types/lib/utils/micro-frontend/host.d.ts +0 -2
- package/dist/types/lib/view/guest-microapp.d.ts +17 -0
- package/dist/types/lib/view/tests/scriptingObjects/loan.d.ts +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -7
- package/demo/8164.0fa9b706.iframe.bundle.js.br +0 -0
- package/demo/8164.0fa9b706.iframe.bundle.js.gz +0 -0
- package/demo/docs/8164.0fa9b706.iframe.bundle.js.br +0 -0
- package/demo/docs/8164.0fa9b706.iframe.bundle.js.gz +0 -0
- package/demo/docs/main.c24f5941.iframe.bundle.js +0 -5
- package/demo/docs/main.c24f5941.iframe.bundle.js.br +0 -0
- package/demo/docs/main.c24f5941.iframe.bundle.js.gz +0 -0
- package/demo/main.c24f5941.iframe.bundle.js +0 -5
- package/demo/main.c24f5941.iframe.bundle.js.br +0 -0
- package/demo/main.c24f5941.iframe.bundle.js.gz +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(globalThis.webpackChunk_elliemae_pui_app_sdk=globalThis.webpackChunk_elliemae_pui_app_sdk||[]).push([[
|
|
1
|
+
(globalThis.webpackChunk_elliemae_pui_app_sdk=globalThis.webpackChunk_elliemae_pui_app_sdk||[]).push([[4194],{"./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/arrayLikeToArray.js":u=>{function m(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,o=Array(r);n<r;n++)o[n]=e[n];return o}u.exports=m,u.exports.__esModule=!0,u.exports.default=u.exports},"./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/arrayWithHoles.js":u=>{function m(e){if(Array.isArray(e))return e}u.exports=m,u.exports.__esModule=!0,u.exports.default=u.exports},"./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js":(u,m,e)=>{var r=e("./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/arrayLikeToArray.js");function n(o){if(Array.isArray(o))return r(o)}u.exports=n,u.exports.__esModule=!0,u.exports.default=u.exports},"./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/assertThisInitialized.js":u=>{function m(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}u.exports=m,u.exports.__esModule=!0,u.exports.default=u.exports},"./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/classCallCheck.js":u=>{function m(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}u.exports=m,u.exports.__esModule=!0,u.exports.default=u.exports},"./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js":u=>{function m(e,r){if(!{}.hasOwnProperty.call(e,r))throw new TypeError("attempted to use private field on non-instance");return e}u.exports=m,u.exports.__esModule=!0,u.exports.default=u.exports},"./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js":u=>{var m=0;function e(r){return"__private_"+m+++"_"+r}u.exports=e,u.exports.__esModule=!0,u.exports.default=u.exports},"./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/createClass.js":(u,m,e)=>{var r=e("./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/toPropertyKey.js");function n(t,i){for(var c=0;c<i.length;c++){var l=i[c];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(t,r(l.key),l)}}function o(t,i,c){return i&&n(t.prototype,i),c&&n(t,c),Object.defineProperty(t,"prototype",{writable:!1}),t}u.exports=o,u.exports.__esModule=!0,u.exports.default=u.exports},"./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/defineProperty.js":(u,m,e)=>{"use strict";e.d(m,{A:()=>n});var r=e("./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js");function n(o,t,i){return(t=(0,r.A)(t))in o?Object.defineProperty(o,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[t]=i,o}},"./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/extends.js":(u,m,e)=>{"use strict";e.r(m),e.d(m,{default:()=>r});function r(){return r=Object.assign?Object.assign.bind():function(n){for(var o=1;o<arguments.length;o++){var t=arguments[o];for(var i in t)({}).hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},r.apply(null,arguments)}},"./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js":(u,m,e)=>{"use strict";e.d(m,{A:()=>n});var r=e("./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js");function n(o,t){o.prototype=Object.create(t.prototype),o.prototype.constructor=o,(0,r.A)(o,t)}},"./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js":(u,m,e)=>{"use strict";e.r(m),e.d(m,{default:()=>r});function r(n,o){if(n==null)return{};var t={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(o.indexOf(i)!==-1)continue;t[i]=n[i]}return t}},"./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js":(u,m,e)=>{"use strict";e.d(m,{A:()=>r});function r(n,o){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,i){return t.__proto__=i,t},r(n,o)}},"./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js":(u,m,e)=>{"use strict";e.d(m,{A:()=>o});var r=e("./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/typeof.js");function n(t,i){if((0,r.A)(t)!="object"||!t)return t;var c=t[Symbol.toPrimitive];if(c!==void 0){var l=c.call(t,i||"default");if((0,r.A)(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(t)}function o(t){var i=n(t,"string");return(0,r.A)(i)=="symbol"?i:i+""}},"./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/esm/typeof.js":(u,m,e)=>{"use strict";e.d(m,{A:()=>r});function r(n){return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},r(n)}},"./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/get.js":(u,m,e)=>{var r=e("./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/superPropBase.js");function n(){return u.exports=n=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(o,t,i){var c=r(o,t);if(c){var l=Object.getOwnPropertyDescriptor(c,t);return l.get?l.get.call(arguments.length<3?o:i):l.value}},u.exports.__esModule=!0,u.exports.default=u.exports,n.apply(null,arguments)}u.exports=n,u.exports.__esModule=!0,u.exports.default=u.exports},"./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/getPrototypeOf.js":u=>{function m(e){return u.exports=m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},u.exports.__esModule=!0,u.exports.default=u.exports,m(e)}u.exports=m,u.exports.__esModule=!0,u.exports.default=u.exports},"./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/inherits.js":(u,m,e)=>{var r=e("./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/setPrototypeOf.js");function n(o,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(t&&t.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),t&&r(o,t)}u.exports=n,u.exports.__esModule=!0,u.exports.default=u.exports},"./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/iterableToArray.js":u=>{function m(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}u.exports=m,u.exports.__esModule=!0,u.exports.default=u.exports},"./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":u=>{function m(e,r){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var o,t,i,c,l=[],h=!0,g=!1;try{if(i=(n=n.call(e)).next,r===0){if(Object(n)!==n)return;h=!1}else for(;!(h=(o=i.call(n)).done)&&(l.push(o.value),l.length!==r);h=!0);}catch(v){g=!0,t=v}finally{try{if(!h&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(g)throw t}}return l}}u.exports=m,u.exports.__esModule=!0,u.exports.default=u.exports},"./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/jsx.js":u=>{var m;function e(r,n,o,t){m||(m=typeof Symbol=="function"&&Symbol.for&&Symbol.for("react.element")||60103);var i=r&&r.defaultProps,c=arguments.length-3;if(n||c===0||(n={children:void 0}),c===1)n.children=t;else if(c>1){for(var l=Array(c),h=0;h<c;h++)l[h]=arguments[h+3];n.children=l}if(n&&i)for(var g in i)n[g]===void 0&&(n[g]=i[g]);else n||(n=i||{});return{$$typeof:m,type:r,key:o===void 0?null:""+o,ref:null,props:n,_owner:null}}u.exports=e,u.exports.__esModule=!0,u.exports.default=u.exports},"./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/nonIterableRest.js":u=>{function m(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}u.exports=m,u.exports.__esModule=!0,u.exports.default=u.exports},"./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/nonIterableSpread.js":u=>{function m(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}u.exports=m,u.exports.__esModule=!0,u.exports.default=u.exports},"./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/objectWithoutProperties.js":(u,m,e)=>{var r=e("./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js");function n(o,t){if(o==null)return{};var i,c,l=r(o,t);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(o);for(c=0;c<h.length;c++)i=h[c],t.indexOf(i)===-1&&{}.propertyIsEnumerable.call(o,i)&&(l[i]=o[i])}return l}u.exports=n,u.exports.__esModule=!0,u.exports.default=u.exports},"./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js":u=>{function m(e,r){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(r.indexOf(o)!==-1)continue;n[o]=e[o]}return n}u.exports=m,u.exports.__esModule=!0,u.exports.default=u.exports},"./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":(u,m,e)=>{var r=e("./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/typeof.js").default,n=e("./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/assertThisInitialized.js");function o(t,i){if(i&&(r(i)=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return n(t)}u.exports=o,u.exports.__esModule=!0,u.exports.default=u.exports},"./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/readOnlyError.js":u=>{function m(e){throw new TypeError('"'+e+'" is read-only')}u.exports=m,u.exports.__esModule=!0,u.exports.default=u.exports},"./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/setPrototypeOf.js":u=>{function m(e,r){return u.exports=m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},u.exports.__esModule=!0,u.exports.default=u.exports,m(e,r)}u.exports=m,u.exports.__esModule=!0,u.exports.default=u.exports},"./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/slicedToArray.js":(u,m,e)=>{var r=e("./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/arrayWithHoles.js"),n=e("./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"),o=e("./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),t=e("./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/nonIterableRest.js");function i(c,l){return r(c)||n(c,l)||o(c,l)||t()}u.exports=i,u.exports.__esModule=!0,u.exports.default=u.exports},"./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/superPropBase.js":(u,m,e)=>{var r=e("./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/getPrototypeOf.js");function n(o,t){for(;!{}.hasOwnProperty.call(o,t)&&(o=r(o))!==null;);return o}u.exports=n,u.exports.__esModule=!0,u.exports.default=u.exports},"./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/toConsumableArray.js":(u,m,e)=>{var r=e("./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"),n=e("./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/iterableToArray.js"),o=e("./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),t=e("./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/nonIterableSpread.js");function i(c){return r(c)||n(c)||o(c)||t()}u.exports=i,u.exports.__esModule=!0,u.exports.default=u.exports},"./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/toPrimitive.js":(u,m,e)=>{var r=e("./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/typeof.js").default;function n(o,t){if(r(o)!="object"||!o)return o;var i=o[Symbol.toPrimitive];if(i!==void 0){var c=i.call(o,t||"default");if(r(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(o)}u.exports=n,u.exports.__esModule=!0,u.exports.default=u.exports},"./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/toPropertyKey.js":(u,m,e)=>{var r=e("./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/typeof.js").default,n=e("./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/toPrimitive.js");function o(t){var i=n(t,"string");return r(i)=="symbol"?i:i+""}u.exports=o,u.exports.__esModule=!0,u.exports.default=u.exports},"./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/typeof.js":u=>{function m(e){return u.exports=m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},u.exports.__esModule=!0,u.exports.default=u.exports,m(e)}u.exports=m,u.exports.__esModule=!0,u.exports.default=u.exports},"./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":(u,m,e)=>{var r=e("./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/arrayLikeToArray.js");function n(o,t){if(o){if(typeof o=="string")return r(o,t);var i={}.toString.call(o).slice(8,-1);return i==="Object"&&o.constructor&&(i=o.constructor.name),i==="Map"||i==="Set"?Array.from(o):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?r(o,t):void 0}}u.exports=n,u.exports.__esModule=!0,u.exports.default=u.exports},"./node_modules/.pnpm/@base2+pretty-print-object@1.0.1/node_modules/@base2/pretty-print-object/dist/index.js":function(u,m){"use strict";var e=this&&this.__assign||function(){return e=Object.assign||function(l){for(var h,g=1,v=arguments.length;g<v;g++){h=arguments[g];for(var j in h)Object.prototype.hasOwnProperty.call(h,j)&&(l[j]=h[j])}return l},e.apply(this,arguments)},r=this&&this.__spreadArrays||function(){for(var l=0,h=0,g=arguments.length;h<g;h++)l+=arguments[h].length;for(var v=Array(l),j=0,h=0;h<g;h++)for(var P=arguments[h],E=0,C=P.length;E<C;E++,j++)v[j]=P[E];return v};Object.defineProperty(m,"__esModule",{value:!0});var n=[];function o(l){var h=typeof l;return l!==null&&(h==="object"||h==="function")}function t(l){return Object.prototype.toString.call(l)==="[object RegExp]"}function i(l){return Object.getOwnPropertySymbols(l).filter(function(h){return Object.prototype.propertyIsEnumerable.call(l,h)})}function c(l,h,g){g===void 0&&(g="");var v={indent:" ",singleQuotes:!0},j=e(e({},v),h),P;j.inlineCharacterLimit===void 0?P={newLine:`
|
|
4
4
|
`,newLineOrSpace:`
|
|
@@ -1406,11 +1406,11 @@ ${ie}`;console.warn(V),I.warned=!0}return A(ne,k,H,...N)};return Object.definePr
|
|
|
1406
1406
|
}
|
|
1407
1407
|
}
|
|
1408
1408
|
${c.L1}
|
|
1409
|
-
`},"./node_modules/.pnpm/@elliemae+ds-toast@3.54.6_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/react-desc-prop-types.js":(u,m,e)=>{"use strict";e.d(m,{AS:()=>j,Gs:()=>c,x7:()=>h});var r=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),n=e("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.54.6_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/propTypes/PropTypes.js"),o=e("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.54.6_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/propsPerSlot/getPropsPerSlotPropTypes.js"),t=e("./node_modules/.pnpm/@elliemae+ds-toast@3.54.6_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/constants.js"),i=e("./node_modules/.pnpm/@elliemae+ds-toast@3.54.6_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/DSToastDefinitions.js");const c={containerProps:{},position:"bottom-left",autoClose:5e3,showProgressBar:!1,closeOnClick:!1,enableMultiContainer:!1},l={},h={containerProps:n.A.object.description("inject props to wrapper").defaultValue({}),position:n.A.oneOf(t.Jl).description("Position on the screen to show the toast").defaultValue("bottom-left"),autoClose:n.A.oneOfType([n.A.number,n.A.oneOf([!1])]).description("ms to autoclose the toast, false if you don't want to automatically close").defaultValue(5e3),showProgressBar:n.A.bool.description("Whether to show a progress bar indicating when the toast is going to be closed").defaultValue(!1),closeOnClick:n.A.bool.description("Close toast handler").defaultValue(!1),enableMultiContainer:n.A.bool.description("Allows instantiating multiple Toast containers").defaultValue(!1),containerId:n.A.oneOfType([n.A.string,n.A.number]).description("unique id for multi container"),...(0,o.Y)(i.GM,i.UJ),closeButtonRef:n.A.oneOfType([n.A.object,n.A.func]).description("Close button ref")},g={children:n.A.node.isRequired.description("link text")},v={children:n.A.node.description("DSToastActionLink component or text string"),onClick:n.A.func.description("click handler"),onKeyDown:n.A.func.description("key down handler")},j={type:n.A.oneOf(t.Rm).description("Type of toast").defaultValue("default"),messageTitle:n.A.string.description("Toast message title").defaultValue(""),messageText:n.A.string.description("Toast message text").defaultValue(""),messageComponent:n.A.node.description("Toast message component")}},"./node_modules/.pnpm/@elliemae+ds-toast@3.54.6_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/toast.js":(u,m,e)=>{"use strict";e.d(m,{o:()=>E});var r=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),n=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js"),o=e("./node_modules/.pnpm/react-toastify@6.2.0/node_modules/react-toastify/dist/react-toastify.esm.js"),t=e("./node_modules/.pnpm/@elliemae+ds-toast@3.54.6_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/react-desc-prop-types.js"),i=e("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.54.6_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/propTypes/describe.js"),c=e("./node_modules/.pnpm/@elliemae+ds-toast@3.54.6_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/parts/styled.js"),l=e("./node_modules/.pnpm/@elliemae+ds-toast@3.54.6_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/constants.js"),h=e("./node_modules/.pnpm/@elliemae+ds-toast@3.54.6_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/DSToastDefinitions.js");const g=C=>l.lA[C],v=C=>l.JC[C],j=({type:C=l.Ck.DEFAULT,messageTitle:T="",messageText:D="",messageComponent:O})=>{const M=g(C),w=v(C);return(0,n.jsxs)(c.rf,{"data-testid":"ds-toast-render",className:"em-ds-toast-content",children:[(0,n.jsx)(c.G3,{className:"em-ds-toast-content__icon-container",children:(0,n.jsx)(M,{size:"m",className:"em-ds-toast-content__icon-message",color:w})}),(0,n.jsxs)(c.KZ,{className:"em-ds-toast-content__message-content",children:[(0,n.jsx)(c.Az,{className:"em-ds-toast-content__message-header",children:T}),(0,n.jsx)(c.uP,{className:"em-ds-toast-content__message-text",children:O||D})]})]})};j.displayName=h.VR;const P=(0,i.A)(j);P.propTypes=t.AS;const E=Object.assign(({type:C,messageTitle:T,messageText:D,messageComponent:O,...M},w)=>(0,o.oR)((0,n.jsx)(j,{messageText:D,messageComponent:O,messageTitle:T,type:C}),{...M,...w,type:C}),{...o.oR,isActive:C=>o.oR.isActive(C)})},"./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.2_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js":(u,m,e)=>{"use strict";e.d(m,{Jh:()=>r,_s:()=>t,b3:()=>n,xH:()=>o});class r{name;objectId;id;constructor(c){const{name:l,objectId:h}=c;if(!l)throw new Error("Event name is required");if(!h)throw new Error("Scripting object id is required");this.objectId=h,this.name=l,this.id=`${this.objectId}.${this.name}`.toLowerCase()}}class n{static[Symbol.hasInstance](c){return c.getType?.()==="ProxyEvent"}#n;objectId;name;id;getType(){return"ProxyEvent"}constructor(c){const{name:l,objectId:h,eventSrc:g}=c;this.objectId=h,this.name=l,this.#n=g,this.id=`${this.objectId}.${this.name}`.toLowerCase()}subscribe=c=>this.#n.subscribe({eventId:this.id,callback:c});unsubscribe=c=>{this.#n.unsubscribe({eventId:this.id,token:c})}}const o=i=>i instanceof r,t=(i,c)=>`${i.toLowerCase()}.${c.toLowerCase()}`},"./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.2_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/messageType.js":(u,m,e)=>{"use strict";e.d(m,{G:()=>r});var r=(n=>(n.GuestClose="guest:close",n.GuestEventSubscribe="guest:eventSubscribe",n.GuestEventUnsubscribe="guest:eventUnsubscribe",n.GuestFocus="guest:focus",n.GuestReady="guest:ready",n.GuestReadyComplete="guest:readyComplete",n.GuestResize="guest:resize",n.HandShake="handshake",n.HandShakeAck="handshake:ack",n.HostClose="host:close",n.HostConfig="host:config",n.ListObjects="list:objects",n.ObjectEvent="object:event",n.ObjectGet="object:get",n.ObjectInvoke="object:invoke",n))(r||{})},"./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.2_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js":(u,m,e)=>{"use strict";e.d(m,{V:()=>r,h:()=>n});class r{__TYPE__="Proxy";id;objectType;constructor(t,i){this.id=t,this.objectType=i}}const n=o=>o?.constructor?.name==="Proxy"||o?.constructor?.name==="ScriptingObjectProxy"||o?.__TYPE__==="Proxy"},"./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.2_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/remoting.js":(u,m,e)=>{"use strict";e.d(m,{K:()=>l,_:()=>c});var r=e("./node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js");const n="elli:remoting",o="elli:remoting:response",t="elli:remoting:exception",i=({messageType:h,messageBody:g,onewayMsg:v=!1})=>({requestId:v?null:(0,r.A)(),source:n,type:h,body:g}),c=h=>{const{targetWin:g,targetOrigin:v,messageType:j,messageBody:P}=h,E=i({messageType:j,messageBody:P});g.postMessage(E,v)};class l{#n;#e;#t=new Map;#o=new Map;#r=null;#s=new Map;constructor(g,v){if(!g)throw new Error("logger is required");if(!v)throw new Error("correlationId is required");this.#n=v,this.#e=g}#a=()=>{const g=Date.now(),v=[];this.#o.forEach((j,P)=>{const{requestId:E,cancelTime:C}=j;this.#e.debug(`Checking response timeout for requestId: ${E}) @ ${C??""}`),j.cancelTime&&j.cancelTime<g&&(this.#e.debug(`Detected response timeout for requestId: ${E}...`),v.push(P),j.resolve(),this.#e.debug(`Aborted waiting for response to requestid: ${E})`))}),v.forEach(j=>{this.#e.debug(`removing invocations with requestId ${j} from cache since response time has expired`),this.#o.delete(j)}),this.#o.size===0&&(this.#e.debug("stopping response monitor"),this.#i())};#m=()=>{this.#r===null&&(this.#e.debug("Staring response timeout evaluator"),this.#r=window.setInterval(this.#a,200))};#i=()=>{this.#r!==null&&(window.clearInterval(this.#r),this.#r=null,this.#e.debug("Stopped response timeout evaluator"))};#u=g=>{const v=this.#o.get(g);return this.#e.debug(`serving requestId: ${g}`),this.#o.delete(g),v};#l=g=>{const{requestId:v}=g;this.#e.debug(`Response received for invocation requestId: ${v}`);const j=this.#u(v);return j?(j.resolve(g.body),!0):(this.#e.debug(`Received response to stale/invalid request with requestId: ${v}`),!1)};#c=g=>{this.#e.debug(`Exception received for invocation (requestId = ${g.requestId})`);const v=this.#u(g.requestId);return v?(v.reject(new Error(g.body)),!0):(this.#e.warn(`Received exception for stale/invalid request (requestId = ${g.requestId})`),!1)};#g=({sourceWin:g,sourceOrigin:v,message:j})=>{this.#e.debug(`Received message of type "${j.type}"`);const P=this.#t.get(j.type);return P?(P.forEach(E=>{this.#e.debug(`Invoking message handler ${E.name}`),E({sourceWin:g,sourceOrigin:v,requestId:j.requestId,type:j.type,body:j.body})}),!0):!1};#d=g=>{if(this.#e.debug(`Remoting: Received message ${JSON.stringify(g.data)}`),this.#s.size===0||!g.source)return!1;const v=this.#s.get(g.source);return!v||g?.data?.source!==n?!1:(g.data.type===o?this.#l(g.data):g.data.type===t?this.#c(g.data):this.#g({sourceWin:g.source,sourceOrigin:v,message:g.data}),!0)};addSender=g=>{const{origin:v,window:j}=g;if(!v)throw new Error("origin is required");if(!j)throw new Error("window is required");this.#s.set(j,v)};initialize=g=>{g.removeEventListener("message",this.#d),g.addEventListener("message",this.#d),this.#e.debug(`initialized remoting id: ${this.#n}`)};close=()=>{window.removeEventListener("message",this.#d),this.#e.debug(`closed remoting id: ${this.#n}`)};invoke=g=>{const{targetWin:v,targetOrigin:j,messageType:P,messageBody:E,responseTimeoutMs:C}=g;return new Promise((T,D)=>{const O=i({messageType:P,messageBody:E});this.#o.set(O.requestId,{requestId:O.requestId,resolve:T,reject:D,cancelTime:C?Date.now()+Number.parseInt(C,10):null}),v.postMessage(O,j);const{requestId:M}=O;this.#e.debug(`Posted invocation message of type ${P} requestId: ${M||""}`),C&&(this.#e.debug(`starting response monitor for requestId: ${M||""} for ${C} ms`),this.#m())})};listen=g=>{const{messageType:v,callback:j}=g,P=this.#t.get(v)||[];P.push(j),this.#t.set(v,P)};send=g=>{const{targetWin:v,targetOrigin:j,messageType:P,messageBody:E}=g,C=i({messageType:P,messageBody:E,onewayMsg:!0});v.postMessage(C,j),this.#e.debug(`Posted one-way message of type "${P}"`)};removeSender=g=>{const{window:v}=g;v&&this.#s.delete(v)};respond=g=>{const{targetWin:v,targetOrigin:j,requestId:P,response:E}=g,C=i({messageType:o,messageBody:E});C.requestId=P,v.postMessage(C,j),this.#e.debug(`Response sent to caller for invocation requestId: ${P}`)};raiseException=g=>{const{targetWin:v,targetOrigin:j,requestId:P,ex:E}=g,C=i({messageType:t,messageBody:E});C.requestId=P,v.postMessage(C,j),this.#e.debug(`Exception sent to caller for invocation. requestId: ${P}`)}}},"./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.2_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js":(u,m,e)=>{"use strict";e.d(m,{P:()=>t,Q:()=>o});var r=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.2_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js");const n="function",o=(i,c)=>typeof i===n&&!!c&&!c.startsWith("_");class t{#n;#e="Object";constructor(c,l){this.#n=c,this.#e=l||this.#e}get id(){return this.#n}get objectType(){return this.#e}_toJSON=()=>{const c=[],l=[];return Object.keys(this).forEach(h=>{const g=this[h];(0,r.xH)(g)?l.push(h):o(g,h)&&c.push(h)}),{objectId:this.#n,objectType:this.#e,functions:c,events:l}};_dispose=()=>{};dispose=()=>{}}},"./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.2_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObjectManager.js":(u,m,e)=>{"use strict";e.d(m,{qE:()=>o});const r="module";var n=(t=>(t.USER="USER",t.PARTNER="PARTNER",t))(n||{});class o{#n=new Map;#e=new Map;#t=i=>{const{so:c,guestId:l}=i,h=c.id.toLowerCase(),g=this.#e.get(l);if(!g)this.#e.set(l,new Map([[h,i]]));else{if(g.has(h))throw new Error(`Scripting Object ${c.id} already exists for guest ${l}`);g.set(h,i)}};#o=({so:i})=>{i._dispose&&typeof i._dispose=="function"&&i._dispose()};#r=({objectId:i,guestId:c})=>{if(i===r&&!c)for(const[,h]of this.#e){const g=h.get(i);if(g)return g}const l=c?this.#e.get(c):null;return l?l.get(i)??null:null};#s=({objectId:i,guestId:c}={})=>{if(c){if(!i){const h=this.#e.get(c);h&&h.forEach(this.#o),this.#e.delete(c);return}const l=this.#e.get(c);if(l){const h=l.get(i);h&&this.#o(h),l.delete(i)}}else i&&this.#e.forEach(l=>{const h=l.get(i);h&&this.#o(h),l.delete(i)})};addScriptingObject=(i,c)=>{const{guestId:l}=c||{};if(!i?.id||!i?._toJSON)throw new Error("Object is not derived from ScriptingObject");const h=i.id.toLowerCase();if(h.trim().toLowerCase()===r&&!l)throw new Error("Guest id is required to add Module scripting object");if(l){this.#t({so:i,...c,guestId:l});return}if(this.#n.has(h))throw new Error(`Scripting Object ${i.id} already exists`);this.#n.set(h,{so:i,...c})};getObject=(i,c)=>{const l=i.trim().toLowerCase();let h=this.#r({objectId:l,guestId:c?.id});h=h??this.#n.get(l)??null;const{so:g}=h||{};return g||null};has=(i,c)=>this.getObject(i,c)!==null;listScriptingObjects=i=>{let c=Array.from(this.#n.keys());const l=this.#e.get(i);return c=l?c.concat(Array.from(l.keys())):c,Array.from(new Set(c))};removeScriptingObject=(i,c)=>{const l=i.toLowerCase();if(c)this.#s({objectId:l,guestId:c});else{this.#s({objectId:l});const h=this.#n.get(l);h&&this.#o(h),this.#n.delete(l)}};removeAllScriptingObjects=i=>{i?this.#s({guestId:i}):(this.#n.forEach(this.#o),this.#n.clear())}}},"./node_modules/.pnpm/@elliemae+pui-analytics-so@1.1.1/node_modules/@elliemae/pui-analytics-so/dist/esm/analytics.js":(u,m,e)=>{"use strict";e.d(m,{j0:()=>C,QS:()=>P,nE:()=>E});var r=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.2_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js");const n=T=>typeof T!="number"||Number.isNaN(T)?0:T>=1?1:T<=0?0:T,o=T=>Math.round(n(T)*100/5)*5,t=T=>{const O=o(T),M=100,w=(x,R)=>R===0?x:w(R,x%R),y=w(O,M);return{numerator:O/y,denominator:M/y}};class i{#n=0;#e=0;#t=0;constructor(D){const O=t(D);this.#n=O.numerator,this.#e=O.denominator}shouldSample=()=>(this.#t+=1,this.#t<=this.#n?!0:(this.#t===this.#e&&(this.#t=0),!1))}class c{#n={};#e={};#t=new i(.25);constructor(D={}){Object.keys(D).forEach(O=>{this.#n[O]=new i(D[O]),this.#e[O]=D[O]})}shouldSample(D){return this.#n[D]?this.#n[D].shouldSample():this.#t.shouldSample()}setRatio(D,O){this.#n[D]=new i(O),this.#e[D]=O}deleteRatio(D){delete this.#n[D],delete this.#e[D]}getRatio(D){return this.#e[D]}getAllRatios(){return{...this.#e}}}const l=()=>window.emui?.logRocket,h=()=>{try{return window.parent.document,window.parent}catch{return window}},g=()=>({envName:sessionStorage.getItem("envName")||"localhost",appId:window.emui?.appId||"",instanceId:sessionStorage.getItem("instanceId")||"",userId:sessionStorage.getItem("userId")||""}),v=()=>{const T=h(),{title:D}=T.document,{title:O}=document,M=T?.emui?.appId??"",w=T?.emui?.version??"",y=window?.emui?.appId??"",{pathname:x,href:R}=T.location,{pathname:A,href:I}=window.location;return{productId:M,productPath:x,productUrl:R,productPageTitle:D,version:w,appId:y,appPath:A,appUrl:I,appPageTitle:O}};let j={};const P=()=>({...g(),...j}),E=T=>{j={...j,...T}};class C extends r.P{#n;#e;constructor(D){super("analytics"),this.#n=D.logger,this.#e=new c(D.timingEventSamplingRatios??D.samplingRatios),this.#t()}#t=()=>{try{new PerformanceObserver(O=>{for(const M of O.getEntries())switch(M.entryType){case"measure":{if(!this.#e.shouldSample(M.name))return;const w=M.detail??{},y=M.duration.toString(),x=new Date(performance.timeOrigin+M.startTime).toISOString();this.sendBAEvent({event:"timing",name:M.name,duration:y,startTime:x,...P(),...w}).catch(()=>{}),this.#n.info({message:"timing",event:M.name,duration:y,startTime:x,detail:w});break}default:break}}).observe({type:"measure",buffered:!0})}catch(D){this.#n.error({message:"Error while recording performance",exception:D})}};setTimingEventSamplingRatio=D=>{Object.entries(D).forEach(([O,M])=>{this.#e.setRatio(O,M)})};getTimingEventSamplingRatio=D=>{const O={};return D.forEach(M=>{O[M]=this.#e.getRatio(M)}),O};deleteTimingEventSamplingRatio=D=>{D.forEach(O=>{this.#e.deleteRatio(O)})};getAllTimingEventSamplingRatios=()=>this.#e.getAllRatios();sendBAEvent=D=>{const{event:O,...M}=D??{};if(!O)return Promise.resolve();const w={...P(),...v(),...M};window.gtmDataLayer=window.gtmDataLayer||[],window.gtmDataLayer.push({...w,event:O});const y=l();return y&&y.track(O,w),Promise.resolve()};startTiming=(D,O)=>{if(!D)throw new Error("parameter mark is required");if(!O||!O?.appId||!O?.appUrl)throw new Error("parameter options is required");const M=performance.mark(D,{detail:O});return Promise.resolve({name:M?.name,startTime:M?.startTime})};endTiming=(D,O)=>{if(!D)throw new Error("parameter start is required");if(!O||!O?.appId||!O?.appUrl)throw new Error("parameter options is required");const M=D?.name??D,w=performance.getEntriesByName(M,"mark")?.[0],y={startAppId:w?.detail?.appId??O.appId,startAppUrl:w?.detail?.appUrl??O.appUrl,endAppId:O.appId,endAppUrl:O.appUrl};return w?(typeof D=="string"?performance.measure(M,{detail:y,start:M}):performance.measure(M,{detail:y,start:D.startTime}),performance.clearMarks(M)):performance.measure(M,{detail:y,end:performance.now()}),Promise.resolve()}}},"./node_modules/.pnpm/@elliemae+pui-app-bridge@2.21.3_@elliemae+pui-diagnostics@3.11.2_@elliemae+pui-logrocket@1.1._6egj74i7fkr7g53guw5zpfhk3e/node_modules/@elliemae/pui-app-bridge/dist/esm/appBridge.js":(u,m,e)=>{"use strict";e.d(m,{o:()=>Xe});var r=e("./node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js"),n=e("./node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js"),o=(Ue=>(Ue.Analytics="analytics",Ue.Application="application",Ue.Auth="auth",Ue.Form="form",Ue.Global="global",Ue.Http="http",Ue.Loan="loan",Ue.LoanV2="loanV2",Ue.MemStorage="memstorage",Ue.Module="module",Ue.Service="service",Ue.Session="session",Ue.Transaction="transaction",Ue.TransactionTemplate="transactiontemplate",Ue))(o||{}),t=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.2_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObjectManager.js"),i=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.2_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"),c=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.2_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"),l=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.2_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js");const h=(Ue,Ne=[])=>{const le=Ne||[];return Ue&&Ue.forEach?Ue.forEach(he=>{h(he,le)}):typeof Ue<"u"&&le.push(Ue),le};class g{#n=new Map;#e=(Ne,le)=>{const he=new Promise(We=>{setTimeout(()=>{We()},le)});return Promise.race([Ne,he])};#t=Ne=>{const{eventName:le,scriptingObject:he,eventParams:We,listeners:mn}=Ne;mn.map(async Be=>{if(!(Be.criteria&&!(We&&this.#r(We,Be.criteria))))try{await Be.callback({obj:he,eventName:le,eventParams:We})}catch{}})};#o=async({eventId:Ne,eventName:le,scriptingObject:he,eventParams:We,feedbackWaitTime:mn})=>{const vn=(this.#n.get(Ne)||[]).map($n=>$n.criteria&&!(We?this.#r(We,$n.criteria):!1)?Promise.resolve():this.#e($n.callback({obj:he,eventName:le,eventParams:We}),mn)),Cn=await Promise.all(vn);return h(Cn)};#r(Ne,le){return Object.entries(le).every(([he,We])=>{const mn=Ne[he];if("eq"in We)return mn===We.eq;if("in"in We)return Array.isArray(We.in)&&We.in.includes(mn);if("includes"in We)return Array.isArray(mn)&&mn.includes(We.includes);if("gt"in We){const Be=typeof mn=="number"?mn:Number(mn);return!Number.isNaN(Be)&&Be>We.gt}if("lt"in We){const Be=typeof mn=="number"?mn:Number(mn);return!Number.isNaN(Be)&&Be<We.lt}if("regex"in We)try{const Be=new RegExp(We.regex);return typeof mn=="string"&&Be.test(mn)}catch{return!1}return!1})}dispatchEvent=async(Ne,le)=>{const{event:{id:he,name:We},eventParams:mn,eventOptions:Be}=le,{timeout:vn}=Be??{};if(!he)throw new Error("Event Id is required");const Cn=this.#n.get(he)||[];return!vn||vn<=0?(this.#t({eventName:We,scriptingObject:Ne,eventParams:mn,listeners:Cn}),Promise.resolve()):this.#o({eventId:he,eventName:We,scriptingObject:Ne,eventParams:mn,feedbackWaitTime:vn})};subscribe=Ne=>{const{eventId:le,callback:he,criteria:We}=Ne;if(!le)throw new Error("eventId is required");if(!he)throw new Error("Callback is required");const mn=this.#n.get(le)||[],Be=(0,n.A)();return mn.push({token:Be,criteria:We,callback:he}),this.#n.set(le,mn),Be};unsubscribe=Ne=>{const{eventId:le,token:he}=Ne;if(!le)throw new Error("eventId id is required");if(he){const We=this.#n.get(le)||[],mn=We.findIndex(Be=>Be.token===he);mn>-1&&(We.splice(mn,1),this.#n.set(le,We))}else this.#n.delete(le)};unsubscribeAll=()=>{this.#n.clear()}}const v=e.p+"671d9de68be598da64ca.html?resource",j="pui-app-container-",P=({id:Ue,instanceId:Ne,manifestPath:le,hostUrl:he,options:We})=>new Promise((mn,Be)=>{const vn=document.createElement("div");vn.setAttribute("style","display: flex;width: 100%;height: 100%;flex-direction: column;overflow: hidden;");const Cn=document.createElement("iframe");Cn.setAttribute("id",Ne),Cn.setAttribute("data-testid",Ue),Cn.setAttribute("title",We.title),Cn.setAttribute("allowfullscreen","true"),Cn.setAttribute("allowtransparency","true"),We.permissionPolicy&&Cn.setAttribute("allow",We.permissionPolicy),We.sandbox&&Cn.setAttribute("sandbox",We.sandbox),Cn.setAttribute("style",We.style??"flex-grow: 1;border: none;margin: 0;padding: 0;display: block;min-width: 100%;height: 100%;");const $n=We.src??v.default??v,ze=We.queryParams?`${$n}${$n.includes("?")?"&":"?"}${We.queryParams}`:$n;Cn.setAttribute("src",ze),Cn.addEventListener("load",()=>{if(!Cn.contentDocument){Be(new Error("Frame content window is null"));return}const Hn=Cn.contentDocument,Pn=Hn.getElementById(j);Pn&&(Pn.id=`${Pn.id}${Ue}`);let B=Hn.getElementsByTagName("base")?.[0];B?B.href=new URL(le,he).href:(B=Hn.createElement("base"),B.href=new URL(le,he).href,Hn.getElementsByTagName("head")[0].appendChild(B)),mn(Cn)}),vn.appendChild(Cn);const{containerId:on}=We;(document.getElementById(on??"")??document.body).appendChild(vn)}),E=Ue=>document.getElementById(Ue),T={create:P,remove:Ue=>{const Ne=E(Ue);Ne&&Ne.remove()},get:E};var D=e("./node_modules/.pnpm/@elliemae+pui-theme@2.13.0_react-dom@18.3.1/node_modules/@elliemae/pui-theme/dist/esm/utils.js");const O=()=>{try{return window.parent.document,window.parent}catch{return window}},M=()=>({width:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}),w=Ue=>Number(Ue.replace("px","")),y=()=>{const{width:Ue}=M(),{breakpoints:Ne}=(0,D.x)();return Ue<=w(Ne.small)?"small":Ue<=w(Ne.medium)?"medium":"large"};var x=e("./node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/clone.js"),R=e("./node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/get.js"),A=e("./node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/set.js"),I=e("./node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/has.js"),$=e("./node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/merge.js");const ne=JSON.parse('{"appId":"microfe","activeEnv":"localhost","googleTagManager":true,"sessionTimeoutWarnInterval":"7200000","sessionTimeoutInterval":"9000000","microFrontendApps":{"loanapp":{"name":"Loan","hostUrl":"./loan","development":{"files":["index.js"]},"production":{"files":["index.js"]}},"taskapp":{"name":"Task","hostUrl":"./task","mode":"development","development":{"files":["index.dev.js"]},"production":{"files":["index.js"]}},"travelhub":{"name":"TravelHub","hostUrl":"./travelhub","development":{"files":["app.js","landing.js","app.css","landing.css"]},"production":{"files":["app.js","landing.js","app.css","landing.css"]}},"flights":{"name":"Flights","hostUrl":"./flights","development":{"files":["app.js","app.css"]},"production":{"files":["app.js","app.css"]}},"hotels":{"name":"Hotels","hostUrl":"./hotels","development":{"files":["app.js","app.css"]},"production":{"files":["app.js","app.css"]}},"ssfapp":{"name":"SSF App","hostUrl":"./ssf-app","microappManager":"ssf"}},"serviceEndpoints":{"api":"","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"},"env":{"localhost":{"serviceEndpoints":{"api":"","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"dev":{"serviceEndpoints":{"api":"https://dev.api.puiservice.rd.elliemae.io","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"dev2":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"qa":{"serviceEndpoints":{"api":"https://dev.api.puiservice.rd.elliemae.io","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"qa2":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"qa3":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"int":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-osb1":{"serviceEndpoints":{"api":"https://encompass-peg-api.elliemae.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-osb2":{"serviceEndpoints":{"api":"https://encompass-peg2-api.elliemae.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg":{"serviceEndpoints":{"api":"https://peg2-west.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-oapi-west":{"serviceEndpoints":{"api":"https://peg2-west.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-oapi-east":{"serviceEndpoints":{"api":"https://peg2-east.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg2-oapi-east":{"serviceEndpoints":{"api":"https://peg2-east.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg3":{"serviceEndpoints":{"api":"https://pel1.api.ellielabs.com","idp":"https://peg3.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"stage":{"serviceEndpoints":{"api":"https://stg.api.elliemae.com","idp":"https://stg.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"beta":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"demo":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"epc":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"prod":{"serviceEndpoints":{"api":"https://api.elliemae.com","idp":"https://idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}}}}'),k="latest",H=12e4,N=null,Y=Ue=>Ue.replace(/([^:]\/)\/+/g,"$1"),ie=Ue=>{const Ne=document.createElement("a");return Ne.href=Ue,Ne.href},V=Ue=>Ue?.replace?.(/\/?$/,"/"),U=(Ue,Ne)=>`${Ue.replace(/\/+$/,"")}/${Ne.replace(/^\/+/,"")}`,G=()=>window.navigator.userAgent.includes("jsdom"),q=({appObj:Ue,logger:Ne})=>{if(!Ue){Ne.warn("Application object not available to send keep alive");return}const le=throttle(async()=>{try{await Ue.keepSessionAlive()}catch(he){Ne.error(`Error keeping session alive. ${he.message}`)}},H,{leading:!1});N.forEach(he=>{document.addEventListener(he,le)})};var re=(Ue=>(Ue.DEVELOPMENT="development",Ue.PRODUCTION="production",Ue))(re||{}),ee=(Ue=>(Ue.SSF="ssf",Ue.APPSDK="appsdk",Ue))(ee||{});class de{#n=ne;#e;#t;constructor(Ne){this.#e=Ne?.version||k,this.#t=V(Ne?.baseUrl||"")}#o=Ne=>{const{activeEnv:le}=Ne,he=Ne.env[le]||{};Ne.env&&delete Ne.env,this.#n=$(Ne,he)};get=(Ne="",le=null)=>x(R(this.#n,Ne,le));set=(Ne,le)=>A(this.#n,Ne,le);has=(Ne="")=>I(this.#n,Ne);#r=()=>{if(!/(?:\/)(\d+\.\d+|latest)(?:\/?)?$/.test(this.#t)){const le=this.#e.match(/^(?:\d+\.\d+)*/g);return V(`${this.#t}${le?.[0]||k}`)}return this.#t};load=async Ne=>{const le=Ne??`${this.#r()}app.config.json`,he=await fetch(le);if(he.ok)try{const We=await he.json();this.#o(We)}catch(We){if(!Ne&&this.#e!==k)await this.load(`${this.#t}latest/app.config.json`);else throw new Error("Failed to parse app config",{cause:We})}else{if(!Ne&&this.#e!==k){await this.load(`${this.#t}latest/app.config.json`);return}throw new Error("Failed to load app config")}}}var Ae=(Ue=>(Ue.USER="USER",Ue.PARTNER="PARTNER",Ue))(Ae||{}),be=e("./node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");const Ce="microFrontendApps",qe=()=>be.env.CI==="true",je=Ue=>qe()?!0:String(Ue).toLowerCase()===re.PRODUCTION.toLowerCase(),Ge=Ue=>Ue?new URL(Ue).pathname:"",un=Ue=>{const Ne=document.createElement("a");return Ne.href=Ue,Ne.href},cn=(Ue,Ne)=>{const le=Ne.match(/^(?:\d+\.\d+)*/g);return Ue.replace(/{SYSTEM_VERSION}/,le&&le[0]||k)},Ln=Ue=>!Ue||!Ue.length?!1:Ue.every(Ne=>typeof Ne=="string"),Nn=(Ue,Ne)=>{const{mode:le=re.PRODUCTION}=Ne;if(String(le).toLowerCase()!==re.PRODUCTION.toLowerCase()&&String(le).toLowerCase()!==re.DEVELOPMENT.toLowerCase())throw new Error(`invalid mode '${String(le)}' for ${Ue}`);const{production:he,development:We,microappManager:mn=ee.APPSDK}=Ne;if(String(mn).toLowerCase()===ee.APPSDK.toLowerCase()){if(String(le).toLowerCase()===re.PRODUCTION.toLowerCase()){if(!he)throw new Error(`microFrontendApps.${Ue} is missing production section in app.config.json`);if(!Ln(he.files))throw new Error("invalid value for production.files")}if(String(le).toLowerCase()===re.DEVELOPMENT.toLowerCase()){if(!We)throw new Error(`microFrontendApps.${Ue} is missing development section in app.config.json`);if(!Ln(We.files))throw new Error("invalid value for development.files")}}},In=({id:Ue,config:Ne,version:le="latest"})=>{const{mode:he=re.PRODUCTION}=Ne,We=je(he)?Ne.production:Ne.development;Ne.production&&delete Ne.production,Ne.development&&delete Ne.development;const mn=$({id:Ue},{name:Ue,mode:re.PRODUCTION,manifestPath:"./{SYSTEM_VERSION}/",securityContext:Ae.USER,isJsModule:!0},Ne,We);return mn.hostUrl=V(un(mn.hostUrl||"")),mn.homeRoute=V(mn.homeRoute)||Ge(mn.hostUrl),mn.manifestPath=V(cn(mn.manifestPath,le)),mn};class qn{#n=[];init=({version:Ne,appConfig:le})=>{const he=le.get(Ce);he&&(this.#n=Object.keys(he).map(We=>(Nn(We,he[We]),In({id:We,config:he[We],version:Ne}))))};getConfigById=Ne=>this.#n.find(le=>le.id===Ne)}const jn="ice-script-";class ht{#n;constructor(Ne){this.#n=Ne}add=({name:Ne,hostUrl:le,documentEle:he,fileName:We,index:mn,isJsModule:Be=!0})=>new Promise((vn,Cn)=>{const $n=new URL(We,le),ze=he.createElement("script");ze.id=`${jn}${Ne.toLowerCase()}-${mn}`,ze.src=Y($n.href),ze.nonce="__CSP_NONCE__",!G()&&Be?ze.type="module":ze.async=!1,ze.onload=vn.bind(null,ze.id),ze.onerror=on=>{Cn(new Error(`Unable to load script ${ze.src}`,{cause:new Error(on)}))},he.head.appendChild(ze)});remove=(Ne="",le=document)=>new Promise(he=>{const We=le.getElementById(Ne);We||(this.#n.warn(`script with id ${Ne} not found`),he()),We.remove(),he()});removeDynamicImportedScripts=(Ne,le)=>{const he=new RegExp(Ne,"i"),We=le.getElementsByTagName("script");for(let mn=We.length-1;mn>=0;mn-=1){const Be=We[mn],{src:vn}=Be;he.test(vn)&&Be.remove()}};removePrefetchLinks=(Ne,le)=>{const he=new RegExp(Ne,"i"),We=le.querySelectorAll('[rel="prefetch"]');for(let mn=We.length-1;mn>=0;mn-=1){const Be=We[mn],{href:vn}=Be;he.test(vn)&&Be.remove()}}}const wn="ice-style-";class st{#n;constructor(Ne){this.#n=Ne}add=({name:Ne,hostUrl:le,documentEle:he,fileName:We,index:mn})=>new Promise((Be,vn)=>{const Cn=he.createElement("link");Cn.id=`${wn}${Ne.toLowerCase()}-${mn}`,Cn.nonce="__CSP_NONCE__",Cn.rel="stylesheet";const $n=new URL(We,le);Cn.href=Y($n.href),Cn.onload=Be.bind(null,Cn.id),Cn.onerror=ze=>{vn(new Error(`Unable to load stylesheet ${Cn.href}`,{cause:new Error(ze)}))},he.head.appendChild(Cn)});remove=(Ne="",le=document)=>new Promise(he=>{const We=le.getElementById(Ne);We||(this.#n.warn(`style with id ${Ne} not found`),he()),We.remove(),he()});removeDynamicImportedStyles=(Ne,le)=>{const he=new RegExp(Ne,"i"),We=le.querySelectorAll('[rel="stylesheet"]');for(let mn=We.length-1;mn>=0;mn-=1){const Be=We[mn],{href:vn}=Be;he.test(vn)&&Be.remove()}}}const Ze=Ue=>Ue.replace(/\/\d+\.\d+/,"/latest"),rt=Ue=>{let Ne;try{Ne=new URL(Ue)}catch{return!1}return Ne.protocol==="http:"||Ne.protocol==="https:"},At=async({hostUrl:Ue,manifestPath:Ne})=>{const le=new URL(`${Ne}manifest.json`,Ue),he=await fetch(Y(le.href));if(he.ok){const{headers:mn}=he;if((mn?.get?.("content-type")??"").includes("application/json"))return await he.json();throw new Error(`manifest ${le.href} is not a valid json`)}const We=Ze(Ne);if(Ne!==We)return At({hostUrl:Ue,manifestPath:Ze(Ne)});throw new Error(`unable to get manifest ${le.href}`)},Bn={get:At,getFullFileNameofAssets:(Ue,Ne=[])=>Ne.reduce((le,he)=>{const We=Ue[he];if(We)le.push(We);else if(rt(he))le.push(he);else throw new Error(`unable to locate ${he} in manifest`);return le},[])};class wt{#n;#e;#t;#o;#r;#s;constructor(Ne){this.#t=Ne.guest,this.#n=Ne.logger,this.#e=Ne.containerId,this.#o=Ne?.version||k,this.#r=Ne.soManager,this.#s=Ne.eventManager}get version(){return this.#o}getObject=Ne=>{const le=this.#r.getObject(Ne,this.#t);if(le){const he=new c.V(le.id,le.objectType);return Object.keys(le).forEach(We=>{const mn=le[We];mn instanceof i.Jh?Object.defineProperty(he,We,{value:new i.Jh({name:We,objectId:le.id}),enumerable:!0}):(0,l.Q)(mn,We)&&Object.defineProperty(he,We,{value:(...Be)=>(Object.defineProperty(mn,"callContext",{value:{guest:this.#t},configurable:!0,enumerable:!0,writable:!0}),le[We](...Be)),enumerable:!0})}),Promise.resolve(he)}return Promise.resolve(null)};setAppWindowSize=Ne=>{if(!this.#e)return;const{size:le}=Ne,he=document.getElementById(this.#e);he&&(he.style.height=`${le.height}px`)};subscribe=Ne=>this.#s.subscribe(Ne);unsubscribe=Ne=>{this.#s.unsubscribe(Ne)}}class an{constructor(){window.emui||(window.emui={}),window.emui.registerApp=this.#n}#n=({appId:Ne,app:le})=>{if(!le?.uuid)throw new Error("application uuid is required");if(window.emui[Ne]=window.emui[Ne]||[],Array.isArray(window.emui[Ne])){const he=window.emui[Ne].findIndex(We=>We.uuid===le.uuid);he>-1?window.emui[Ne][he]=le:window.emui[Ne].push(le)}else{let he=window.emui[Ne];he?.uuid===le.uuid?(he={...he,...le},window.emui[Ne]=[he]):typeof he.init===void 0?window.emui[Ne]=[{...he,...le}]:window.emui[Ne]=[window.emui[Ne],le]}};get=({id:Ne,instanceId:le})=>{const he=window.emui?.[Ne];return Array.isArray(he)?he.find(mn=>mn.uuid===le)??null:he?.uuid===le?he:null};add=({id:Ne,instanceId:le,documentEle:he})=>{const We={uuid:le,init:null,mount:null,unmount:null},mn=window.emui[Ne];if(mn){if(!le)throw new Error(`Application ${Ne} is already loaded. uuid is required to load multiple instances of the same app`);Array.isArray(mn)?mn.push(We):window.emui[Ne]=[mn,We]}else window.emui[Ne]=[We];he.defaultView&&(he.defaultView.emui=he.defaultView.emui??{},he.defaultView.emui.uuid=le)};delete=({id:Ne,instanceId:le})=>{if(Array.isArray(window.emui[Ne])){const he=window.emui[Ne].findIndex(We=>We.uuid===le);he>-1&&window.emui[Ne].splice(he,1)}else delete window.emui[Ne]}}const En=12e4,ft=["click","scroll","keypress","touchstart"],tn=/\.css$/,te=Ue=>tn.test(Ue);class Xe{#n;#e;#t;#o;#r;#s=new qn;#a;#m;#i=new Map;#u=new an;#l=!0;constructor(Ne){const{logger:le}=Ne;if(!le)throw new Error("logger is required");this.#n=Ne.logger,this.#e=Ne.version,this.#l=Ne.extendSession??!0,this.#r=new de({version:Ne.version,baseUrl:Ne.appConfigBaseUrl}),this.#t=new ht(le),this.#o=new st(le),this.#a=new t.qE,this.#m=new g}#c(Ne){return typeof Ne=="function"}#g=Ne=>Ne instanceof i.b3||typeof Ne?.subscribe=="function";#d=(Ne,le)=>`Application ${Ne} with instance id ${le} is not found. Most probably the appId property of app.config.json is not set to ${Ne}`;#h=(Ne,le=document)=>{const{elementIds:he}=this.#i.get(Ne)||{};he&&he.forEach(We=>{const mn=le.getElementById(We);mn&&mn.remove()})};#p=({id:Ne,instanceId:le,documentEle:he},We)=>{const mn=this.#u.get({id:Ne,instanceId:le});if(!mn)throw new Error(this.#d(Ne,le));this.#i.set(le,{id:Ne,instanceId:le,elementIds:We,guest:{guestWindow:he?.defaultView,...mn}})};#_=(Ne,le)=>{const{id:he,instanceId:We,containerId:mn,name:Be,hostUrl:vn,manifestPath:Cn,homeRoute:$n,initialRoute:ze,history:on,theme:fn,documentEle:Hn}=Ne;return Promise.all(le).then(this.#p.bind(null,{id:he,instanceId:We,documentEle:Hn})).then(this.#x.bind(null,{id:he,instanceId:We,containerId:mn,name:Be,hostUrl:vn,manifestPath:Cn,homeRoute:$n,initialRoute:ze,history:on,theme:fn})).catch(Pn=>{const B=`Application load failed. Unable to load one or more resources for ${Ne.id} with instance id ${We}. ${Pn.message}`;throw this.#n.error({message:B,appId:he,exception:Pn}),new Error(B)})};#x=async({id:Ne,instanceId:le,containerId:he,hostUrl:We,manifestPath:mn,homeRoute:Be,initialRoute:vn,history:Cn,theme:$n})=>{const ze=this.#u.get({id:Ne,instanceId:le});if(!ze)throw new Error(`Application ${Ne} with instance id ${le} is not found. Most probably the appId property of app.config.json is not set to ${Ne}`);if(!ze.init||typeof ze.init!="function")throw new Error(`Application ${Ne} with instance id ${le} doesn't expose init method`);const on=new wt({guest:{id:Ne},version:this.#e,containerId:he,logger:this.#n,soManager:this.#a,eventManager:this.#m});return ze.init({host:on,hostUrl:We,manifestPath:mn,homeRoute:Be,initialRoute:vn,prevState:null,history:Cn,theme:$n,hostBreakpoint:y(),hostViewportSize:M(),logger:this.#n})};#y=async Ne=>{const{id:le,instanceId:he,files:We,name:mn,hostUrl:Be,documentEle:vn,isJsModule:Cn}=Ne;this.#n.debug(`Application ${le} with instance id ${he} is loading...`);let $n=We;const ze=await Bn.get(Ne);$n=Bn.getFullFileNameofAssets(ze,We);let on=0;const fn=$n.map(Hn=>{on+=1;const Pn={name:mn,hostUrl:Be,documentEle:vn,fileName:Hn,index:on,isJsModule:Cn};return te(Hn)?this.#o.add(Pn):this.#t.add(Pn)});await this.#_(Ne,fn),this.#n.audit(`Application ${le} with instance id ${he} loaded`)};#v=({id:Ne,instanceId:le,hostUrl:he,documentEle:We})=>{this.#n.debug(`Application ${Ne} with instance id ${le} unloading...`),this.#u.get({id:Ne,instanceId:le})&&(this.#h(le,We),this.#t.removeDynamicImportedScripts(he,We),this.#t.removePrefetchLinks(he,We),this.#o.removeDynamicImportedStyles(he,We),this.#u.delete({id:Ne,instanceId:le}),this.#n.audit(`Application ${Ne} with instance id ${le} unloaded`))};#f=async({id:Ne,instanceId:le})=>{const he=this.#u.get({id:Ne,instanceId:le});if(!he?.mount||typeof he?.mount!="function")throw new Error(`Application ${Ne} with instance id ${le} doesn't expose mount method`);return he.mount({containerId:`${j}${Ne}`,hostBreakpoint:y(),hostViewportSize:M()})};#b=({id:Ne,instanceId:le})=>{const he=this.#u.get({id:Ne,instanceId:le});if(!he?.unmount)return null;if(typeof he.unmount!="function")throw new Error(`Application ${Ne} with instance id ${le} doesn't expose unmount method`);return he.unmount({containerId:`${j}${Ne}`})};#j=({id:Ne,instanceId:le})=>{if(this.#l)try{const he=this.#a.getObject(o.Application);if(!he){this.#n.warn({message:`Application scripting object not available for ${Ne} to manage session`});return}const We=this.#i.get(le);if(!We)return;We.keepAlive=(0,r.throttle)(async()=>{try{await he.keepSessionAlive()}catch(Be){this.#n.error(`Error keeping session alive. ${Be.message}`)}},En);const mn=T.get(le);ft.forEach(Be=>{mn?.contentDocument?.addEventListener(Be,We.keepAlive)})}catch(he){this.#n.warn({message:`Application scripting object not available for ${Ne} to manage session`,exception:he})}};#w=Ne=>{if(!this.#l||!Ne)return;const{keepAlive:le}=Ne;le&&(ft.forEach(he=>{document.removeEventListener(he,le)}),Ne.keepAlive?.cancel())};addScriptingObject=(Ne,le)=>{if((0,c.h)(Ne)){const he=this.cloneScriptingObject(Ne);this.#a.addScriptingObject(he,le)}else this.#a.addScriptingObject(Ne,le)};cloneScriptingObject=Ne=>{if(!Ne)throw new Error("proxy is required");const le=new l.P(Ne.id,Ne.objectType);let he=[];return Object.keys(Ne).forEach(We=>{const mn=Ne[We];if(this.#g(mn)){const Be=new i.Jh({name:mn.name||We,objectId:le.id});Object.defineProperty(le,We,{value:Be,enumerable:!0});const vn=({eventParams:$n,eventOptions:ze})=>this.dispatchEvent({event:Be,eventParams:$n,eventOptions:ze}),Cn=mn.subscribe(vn);he.push(()=>{mn.unsubscribe(Cn)})}else if(this.#c(mn)&&(Object.defineProperty(le,We,{value:async(...Be)=>{const vn=await mn(...Be);return(0,c.h)(vn)?this.cloneScriptingObject(vn):vn},enumerable:!0}),We==="dispose")){const Be=le.dispose;Object.defineProperty(le,We,{value:()=>(le._dispose(),Be.apply(le)),enumerable:!0})}}),le._dispose=()=>{he.forEach(We=>{We?.()}),he=[]},le};closeAllApps=async()=>{await Promise.all([...this.#i.keys()].map(this.closeApp))};closeApp=async Ne=>{if(!Ne)throw new Error("instanceId is required");const le=this.#i.get(Ne);if(!le){this.#n.warn(`Application with instance id ${Ne} is not found`);return}this.#i.delete(Ne);const{id:he}=le,We=this.#s.getConfigById(he),{hostUrl:mn}=We;try{this.#w(le),await this.#b({id:he,instanceId:Ne})}finally{const Be=T.get(Ne);Be?.contentDocument&&this.#v({id:he,instanceId:Ne,hostUrl:mn,documentEle:Be.contentDocument}),T.remove(Ne)}};dispatchEvent=async Ne=>{const{event:{id:le,name:he},eventOptions:We={}}=Ne,{guestId:mn}=We;if(!le)throw new Error("Event Id is required");const Be=le.split(".")?.[0],vn=mn?this.#a.getObject(Be,{id:mn}):this.#a.getObject(Be);return vn?this.#m.dispatchEvent(vn,Ne):(this.#n.warn(`Attempt to dispatch event ${he} on unknown object ${Be}`),Promise.resolve())};getApp=Ne=>this.#i.get(Ne)?.guest;getApps=()=>[...this.#i.values()].map(Ne=>Ne.guest);init=async()=>{await this.#r.load(),this.#s.init({version:this.#e,appConfig:this.#r})};mountApp=async Ne=>{if(!Ne)throw new Error("instanceId is required");const{id:le}=this.#i.get(Ne)||{};if(!le)throw new Error(`Application with instance id ${Ne} is not found`);const he=this.#s.getConfigById(le);if(!he)throw new Error(`Application with id ${le} is not found`);await this.#f({...he,instanceId:Ne})};openApp=async Ne=>{const{id:le,frameOptions:he,history:We,theme:mn,homeRoute:Be,initialRoute:vn}=Ne,Cn=(0,n.A)(),$n=this.#s.getConfigById(le);if(!$n)throw new Error(`Application ${le} is not found in app config`);const ze=await T.create({id:le,instanceId:Cn,manifestPath:$n.manifestPath,hostUrl:$n.hostUrl,options:{title:$n.name,...he}});if(!ze?.contentDocument)throw new Error("unable to create iframe for the microapp");try{return this.#u.add({id:le,instanceId:Cn,documentEle:ze.contentDocument}),await this.#y({instanceId:Cn,history:We,theme:mn,documentEle:ze.contentDocument,containerId:he?.containerId,...$n,homeRoute:Be??$n.homeRoute,initialRoute:vn}),await this.#f({instanceId:Cn,...$n}),this.#j({id:le,instanceId:Cn}),Cn}catch(on){throw this.#v({id:le,instanceId:Cn,hostUrl:$n.hostUrl,documentEle:ze.contentDocument}),T.remove(Cn),on}};removeAllEventSubscriptions=()=>{this.#m.unsubscribeAll()};removeAllScriptingObjects=Ne=>{this.#a.removeAllScriptingObjects(Ne)};removeScriptingObject=(Ne,le)=>{this.#a.removeScriptingObject(Ne,le)};unmountApp=async Ne=>{if(!Ne)throw new Error("instanceId is required");const{id:le}=this.#i.get(Ne)||{};if(!le)throw new Error(`Application with instance id ${Ne} is not found`);const he=this.#s.getConfigById(le);if(!he)throw new Error(`Application with id ${le} is not found`);await this.#b({...he,instanceId:Ne})}}},"./node_modules/.pnpm/@elliemae+pui-theme@2.13.0_react-dom@18.3.1/node_modules/@elliemae/pui-theme/dist/esm/utils.js":(u,m,e)=>{"use strict";e.d(m,{x:()=>c});const r=()=>({breakpoints:["512px","768px","1024px","350px"],spaces:["0","4px","8px","12px","16px","32px","48px","56px","64px","72px"],fontSizes:["0.8461rem","0.9230rem","1rem","1.0769rem","1.2307rem","1.3846rem","1.8461rem","2.7692rem"],fontWeights:[100,200,300,400,500,600,700,800,900],lineHeights:["1rem","1.15rem","1.25rem","1.5rem"],letterSpacings:["normal","0.1rem","-0.05rem","0.25rem"],fonts:["proxima-nova, Arial, sans-serif"],colors:{neutral:["#FFFFFF","#F6F7F9","#EBEDF0","#E0E3E8","#CBCFD7","#B0B9C8","#8C93A6","#697489","#464F5C","#353C46","#25292F"],brand:["#F6FBFF","#EBF6FF","#A3D6FF","#52A6EC","#1394E5","#1E79C2","#006AA9","#005181","#C9E7FF"],success:["#E1F4ED","#E1F4ED","#289F6B","#207E56","#185D44"],warning:["#FFEFD8","#E06C29","#B25119","#853C12"],danger:["#FBEBED","#FBEBED","#ED5A64","#C64252","#A11B2B"]},shadows:["0 1px 5px 0 rgba(0, 0, 0, 0.13), 0 2px 4px 0 rgba(0, 0, 0, 0.2)","0 6px 20px 0 rgba(0, 0, 0, 0.24), 0 8px 17px 0 rgba(0, 0, 0, 0.19)","0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19)","0 16px 28px 0 rgba(0, 0, 0, 0.24), 0 25px 55px 0 rgba(0, 0, 0, 0.19)","0 27px 24px 0 rgba(0, 0, 0, 0.24), 0 40px 77px 0 rgba(0, 0, 0, 0.19)"],zIndex:[1e3,2e3,3e3,500,4e3],states:[null,"@media (prefers-reduced-motion: no-preference)","@media (prefers-reduced-motion: reduce)","&:first-child","&:last-child","&:odd","&:even","&:visited","&:checked","&:focus-within","&:hover","&:focus","&:focus-visible","&:active","&:disabled, &[aria-disabled=true]","&::placeholder"]});var n=e("./node_modules/.pnpm/styled-components@5.3.11_react-dom@18.3.1_react@18.3.1/node_modules/styled-components/dist/styled-components.browser.esm.js");const o=l=>Object.keys(l).reduce((h,g)=>(h[g]=(v,...j)=>(0,n.AH)`
|
|
1409
|
+
`},"./node_modules/.pnpm/@elliemae+ds-toast@3.54.6_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/react-desc-prop-types.js":(u,m,e)=>{"use strict";e.d(m,{AS:()=>j,Gs:()=>c,x7:()=>h});var r=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),n=e("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.54.6_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/propTypes/PropTypes.js"),o=e("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.54.6_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/propsPerSlot/getPropsPerSlotPropTypes.js"),t=e("./node_modules/.pnpm/@elliemae+ds-toast@3.54.6_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/constants.js"),i=e("./node_modules/.pnpm/@elliemae+ds-toast@3.54.6_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/DSToastDefinitions.js");const c={containerProps:{},position:"bottom-left",autoClose:5e3,showProgressBar:!1,closeOnClick:!1,enableMultiContainer:!1},l={},h={containerProps:n.A.object.description("inject props to wrapper").defaultValue({}),position:n.A.oneOf(t.Jl).description("Position on the screen to show the toast").defaultValue("bottom-left"),autoClose:n.A.oneOfType([n.A.number,n.A.oneOf([!1])]).description("ms to autoclose the toast, false if you don't want to automatically close").defaultValue(5e3),showProgressBar:n.A.bool.description("Whether to show a progress bar indicating when the toast is going to be closed").defaultValue(!1),closeOnClick:n.A.bool.description("Close toast handler").defaultValue(!1),enableMultiContainer:n.A.bool.description("Allows instantiating multiple Toast containers").defaultValue(!1),containerId:n.A.oneOfType([n.A.string,n.A.number]).description("unique id for multi container"),...(0,o.Y)(i.GM,i.UJ),closeButtonRef:n.A.oneOfType([n.A.object,n.A.func]).description("Close button ref")},g={children:n.A.node.isRequired.description("link text")},v={children:n.A.node.description("DSToastActionLink component or text string"),onClick:n.A.func.description("click handler"),onKeyDown:n.A.func.description("key down handler")},j={type:n.A.oneOf(t.Rm).description("Type of toast").defaultValue("default"),messageTitle:n.A.string.description("Toast message title").defaultValue(""),messageText:n.A.string.description("Toast message text").defaultValue(""),messageComponent:n.A.node.description("Toast message component")}},"./node_modules/.pnpm/@elliemae+ds-toast@3.54.6_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/toast.js":(u,m,e)=>{"use strict";e.d(m,{o:()=>E});var r=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),n=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js"),o=e("./node_modules/.pnpm/react-toastify@6.2.0/node_modules/react-toastify/dist/react-toastify.esm.js"),t=e("./node_modules/.pnpm/@elliemae+ds-toast@3.54.6_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/react-desc-prop-types.js"),i=e("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.54.6_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-props-helpers/dist/esm/propTypes/describe.js"),c=e("./node_modules/.pnpm/@elliemae+ds-toast@3.54.6_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/parts/styled.js"),l=e("./node_modules/.pnpm/@elliemae+ds-toast@3.54.6_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/constants.js"),h=e("./node_modules/.pnpm/@elliemae+ds-toast@3.54.6_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/DSToastDefinitions.js");const g=C=>l.lA[C],v=C=>l.JC[C],j=({type:C=l.Ck.DEFAULT,messageTitle:T="",messageText:D="",messageComponent:O})=>{const M=g(C),w=v(C);return(0,n.jsxs)(c.rf,{"data-testid":"ds-toast-render",className:"em-ds-toast-content",children:[(0,n.jsx)(c.G3,{className:"em-ds-toast-content__icon-container",children:(0,n.jsx)(M,{size:"m",className:"em-ds-toast-content__icon-message",color:w})}),(0,n.jsxs)(c.KZ,{className:"em-ds-toast-content__message-content",children:[(0,n.jsx)(c.Az,{className:"em-ds-toast-content__message-header",children:T}),(0,n.jsx)(c.uP,{className:"em-ds-toast-content__message-text",children:O||D})]})]})};j.displayName=h.VR;const P=(0,i.A)(j);P.propTypes=t.AS;const E=Object.assign(({type:C,messageTitle:T,messageText:D,messageComponent:O,...M},w)=>(0,o.oR)((0,n.jsx)(j,{messageText:D,messageComponent:O,messageTitle:T,type:C}),{...M,...w,type:C}),{...o.oR,isActive:C=>o.oR.isActive(C)})},"./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js":(u,m,e)=>{"use strict";e.d(m,{Jh:()=>r,_s:()=>t,b3:()=>n,xH:()=>o});class r{name;objectId;id;constructor(c){const{name:l,objectId:h}=c;if(!l)throw new Error("Event name is required");if(!h)throw new Error("Scripting object id is required");this.objectId=h,this.name=l,this.id=`${this.objectId}.${this.name}`.toLowerCase()}}class n{static[Symbol.hasInstance](c){return c.getType?.()==="ProxyEvent"}#n;objectId;name;id;getType(){return"ProxyEvent"}constructor(c){const{name:l,objectId:h,eventSrc:g}=c;this.objectId=h,this.name=l,this.#n=g,this.id=`${this.objectId}.${this.name}`.toLowerCase()}subscribe=c=>this.#n.subscribe({eventId:this.id,callback:c});unsubscribe=c=>{this.#n.unsubscribe({eventId:this.id,token:c})}}const o=i=>i instanceof r,t=(i,c)=>`${i.toLowerCase()}.${c.toLowerCase()}`},"./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/messageType.js":(u,m,e)=>{"use strict";e.d(m,{G:()=>r});var r=(n=>(n.GuestClose="guest:close",n.GuestEventSubscribe="guest:eventSubscribe",n.GuestEventUnsubscribe="guest:eventUnsubscribe",n.GuestFocus="guest:focus",n.GuestReady="guest:ready",n.GuestReadyComplete="guest:readyComplete",n.GuestResize="guest:resize",n.HandShake="handshake",n.HandShakeAck="handshake:ack",n.HostClose="host:close",n.HostConfig="host:config",n.ListObjects="list:objects",n.ObjectEvent="object:event",n.ObjectGet="object:get",n.ObjectInvoke="object:invoke",n))(r||{})},"./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js":(u,m,e)=>{"use strict";e.d(m,{V:()=>r,h:()=>n});class r{__TYPE__="Proxy";id;objectType;constructor(t,i){this.id=t,this.objectType=i}}const n=o=>o?.constructor?.name==="Proxy"||o?.constructor?.name==="ScriptingObjectProxy"||o?.__TYPE__==="Proxy"},"./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/remoting.js":(u,m,e)=>{"use strict";e.d(m,{K:()=>l,_:()=>c});var r=e("./node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js");const n="elli:remoting",o="elli:remoting:response",t="elli:remoting:exception",i=({messageType:h,messageBody:g,onewayMsg:v=!1})=>({requestId:v?null:(0,r.A)(),source:n,type:h,body:g}),c=h=>{const{targetWin:g,targetOrigin:v,messageType:j,messageBody:P}=h,E=i({messageType:j,messageBody:P});g.postMessage(E,v)};class l{#n;#e;#t=new Map;#o=new Map;#r=null;#s=new Map;constructor(g,v){if(!g)throw new Error("logger is required");if(!v)throw new Error("correlationId is required");this.#n=v,this.#e=g}#a=()=>{const g=Date.now(),v=[];this.#o.forEach((j,P)=>{const{requestId:E,cancelTime:C}=j;this.#e.debug(`Checking response timeout for requestId: ${E}) @ ${C??""}`),j.cancelTime&&j.cancelTime<g&&(this.#e.debug(`Detected response timeout for requestId: ${E}...`),v.push(P),j.resolve(),this.#e.debug(`Aborted waiting for response to requestid: ${E})`))}),v.forEach(j=>{this.#e.debug(`removing invocations with requestId ${j} from cache since response time has expired`),this.#o.delete(j)}),this.#o.size===0&&(this.#e.debug("stopping response monitor"),this.#i())};#m=()=>{this.#r===null&&(this.#e.debug("Staring response timeout evaluator"),this.#r=window.setInterval(this.#a,200))};#i=()=>{this.#r!==null&&(window.clearInterval(this.#r),this.#r=null,this.#e.debug("Stopped response timeout evaluator"))};#u=g=>{const v=this.#o.get(g);return this.#e.debug(`serving requestId: ${g}`),this.#o.delete(g),v};#l=g=>{const{requestId:v}=g;this.#e.debug(`Response received for invocation requestId: ${v}`);const j=this.#u(v);return j?(j.resolve(g.body),!0):(this.#e.debug(`Received response to stale/invalid request with requestId: ${v}`),!1)};#c=g=>{this.#e.debug(`Exception received for invocation (requestId = ${g.requestId})`);const v=this.#u(g.requestId);return v?(v.reject(new Error(g.body)),!0):(this.#e.warn(`Received exception for stale/invalid request (requestId = ${g.requestId})`),!1)};#g=({sourceWin:g,sourceOrigin:v,message:j})=>{this.#e.debug(`Received message of type "${j.type}"`);const P=this.#t.get(j.type);return P?(P.forEach(E=>{this.#e.debug(`Invoking message handler ${E.name}`),E({sourceWin:g,sourceOrigin:v,requestId:j.requestId,type:j.type,body:j.body})}),!0):!1};#d=g=>{if(this.#e.debug(`Remoting: Received message ${JSON.stringify(g.data)}`),this.#s.size===0||!g.source)return!1;const v=this.#s.get(g.source);return!v||g?.data?.source!==n?!1:(g.data.type===o?this.#l(g.data):g.data.type===t?this.#c(g.data):this.#g({sourceWin:g.source,sourceOrigin:v,message:g.data}),!0)};addSender=g=>{const{origin:v,window:j}=g;if(!v)throw new Error("origin is required");if(!j)throw new Error("window is required");this.#s.set(j,v)};initialize=g=>{g.removeEventListener("message",this.#d),g.addEventListener("message",this.#d),this.#e.debug(`initialized remoting id: ${this.#n}`)};close=()=>{window.removeEventListener("message",this.#d),this.#e.debug(`closed remoting id: ${this.#n}`)};invoke=g=>{const{targetWin:v,targetOrigin:j,messageType:P,messageBody:E,responseTimeoutMs:C}=g;return new Promise((T,D)=>{const O=i({messageType:P,messageBody:E});this.#o.set(O.requestId,{requestId:O.requestId,resolve:T,reject:D,cancelTime:C?Date.now()+Number.parseInt(C,10):null}),v.postMessage(O,j);const{requestId:M}=O;this.#e.debug(`Posted invocation message of type ${P} requestId: ${M||""}`),C&&(this.#e.debug(`starting response monitor for requestId: ${M||""} for ${C} ms`),this.#m())})};listen=g=>{const{messageType:v,callback:j}=g,P=this.#t.get(v)||[];P.push(j),this.#t.set(v,P)};send=g=>{const{targetWin:v,targetOrigin:j,messageType:P,messageBody:E}=g,C=i({messageType:P,messageBody:E,onewayMsg:!0});v.postMessage(C,j),this.#e.debug(`Posted one-way message of type "${P}"`)};removeSender=g=>{const{window:v}=g;v&&this.#s.delete(v)};respond=g=>{const{targetWin:v,targetOrigin:j,requestId:P,response:E}=g,C=i({messageType:o,messageBody:E});C.requestId=P,v.postMessage(C,j),this.#e.debug(`Response sent to caller for invocation requestId: ${P}`)};raiseException=g=>{const{targetWin:v,targetOrigin:j,requestId:P,ex:E}=g,C=i({messageType:t,messageBody:E});C.requestId=P,v.postMessage(C,j),this.#e.debug(`Exception sent to caller for invocation. requestId: ${P}`)}}},"./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js":(u,m,e)=>{"use strict";e.d(m,{P:()=>t,Q:()=>o});var r=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js");const n="function",o=(i,c)=>typeof i===n&&!!c&&!c.startsWith("_");class t{#n;#e="Object";constructor(c,l){this.#n=c,this.#e=l||this.#e}get id(){return this.#n}get objectType(){return this.#e}_toJSON=()=>{const c=[],l=[];return Object.keys(this).forEach(h=>{const g=this[h];(0,r.xH)(g)?l.push(h):o(g,h)&&c.push(h)}),{objectId:this.#n,objectType:this.#e,functions:c,events:l}};_dispose=()=>{};dispose=()=>{}}},"./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObjectManager.js":(u,m,e)=>{"use strict";e.d(m,{qE:()=>o});const r="module";var n=(t=>(t.USER="USER",t.PARTNER="PARTNER",t))(n||{});class o{#n=new Map;#e=new Map;#t=i=>{const{so:c,guestId:l}=i,h=c.id.toLowerCase(),g=this.#e.get(l);if(!g)this.#e.set(l,new Map([[h,i]]));else{if(g.has(h))throw new Error(`Scripting Object ${c.id} already exists for guest ${l}`);g.set(h,i)}};#o=({so:i})=>{i._dispose&&typeof i._dispose=="function"&&i._dispose()};#r=({objectId:i,guestId:c})=>{if(i===r&&!c)for(const[,h]of this.#e){const g=h.get(i);if(g)return g}const l=c?this.#e.get(c):null;return l?l.get(i)??null:null};#s=({objectId:i,guestId:c}={})=>{if(c){if(!i){const h=this.#e.get(c);h&&h.forEach(this.#o),this.#e.delete(c);return}const l=this.#e.get(c);if(l){const h=l.get(i);h&&this.#o(h),l.delete(i)}}else i&&this.#e.forEach(l=>{const h=l.get(i);h&&this.#o(h),l.delete(i)})};addScriptingObject=(i,c)=>{const{guestId:l}=c||{};if(!i?.id||!i?._toJSON)throw new Error("Object is not derived from ScriptingObject");const h=i.id.toLowerCase();if(h.trim().toLowerCase()===r&&!l)throw new Error("Guest id is required to add Module scripting object");if(l){this.#t({so:i,...c,guestId:l});return}if(this.#n.has(h))throw new Error(`Scripting Object ${i.id} already exists`);this.#n.set(h,{so:i,...c})};getObject=(i,c)=>{const l=i.trim().toLowerCase();let h=this.#r({objectId:l,guestId:c?.id});h=h??this.#n.get(l)??null;const{so:g}=h||{};return g||null};has=(i,c)=>this.getObject(i,c)!==null;listScriptingObjects=i=>{let c=Array.from(this.#n.keys());const l=this.#e.get(i);return c=l?c.concat(Array.from(l.keys())):c,Array.from(new Set(c))};removeScriptingObject=(i,c)=>{const l=i.toLowerCase();if(c)this.#s({objectId:l,guestId:c});else{this.#s({objectId:l});const h=this.#n.get(l);h&&this.#o(h),this.#n.delete(l)}};removeAllScriptingObjects=i=>{i?this.#s({guestId:i}):(this.#n.forEach(this.#o),this.#n.clear())}}},"./node_modules/.pnpm/@elliemae+pui-analytics-so@1.1.1/node_modules/@elliemae/pui-analytics-so/dist/esm/analytics.js":(u,m,e)=>{"use strict";e.d(m,{j0:()=>C,QS:()=>P,nE:()=>E});var r=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js");const n=T=>typeof T!="number"||Number.isNaN(T)?0:T>=1?1:T<=0?0:T,o=T=>Math.round(n(T)*100/5)*5,t=T=>{const O=o(T),M=100,w=(x,R)=>R===0?x:w(R,x%R),y=w(O,M);return{numerator:O/y,denominator:M/y}};class i{#n=0;#e=0;#t=0;constructor(D){const O=t(D);this.#n=O.numerator,this.#e=O.denominator}shouldSample=()=>(this.#t+=1,this.#t<=this.#n?!0:(this.#t===this.#e&&(this.#t=0),!1))}class c{#n={};#e={};#t=new i(.25);constructor(D={}){Object.keys(D).forEach(O=>{this.#n[O]=new i(D[O]),this.#e[O]=D[O]})}shouldSample(D){return this.#n[D]?this.#n[D].shouldSample():this.#t.shouldSample()}setRatio(D,O){this.#n[D]=new i(O),this.#e[D]=O}deleteRatio(D){delete this.#n[D],delete this.#e[D]}getRatio(D){return this.#e[D]}getAllRatios(){return{...this.#e}}}const l=()=>window.emui?.logRocket,h=()=>{try{return window.parent.document,window.parent}catch{return window}},g=()=>({envName:sessionStorage.getItem("envName")||"localhost",appId:window.emui?.appId||"",instanceId:sessionStorage.getItem("instanceId")||"",userId:sessionStorage.getItem("userId")||""}),v=()=>{const T=h(),{title:D}=T.document,{title:O}=document,M=T?.emui?.appId??"",w=T?.emui?.version??"",y=window?.emui?.appId??"",{pathname:x,href:R}=T.location,{pathname:A,href:I}=window.location;return{productId:M,productPath:x,productUrl:R,productPageTitle:D,version:w,appId:y,appPath:A,appUrl:I,appPageTitle:O}};let j={};const P=()=>({...g(),...j}),E=T=>{j={...j,...T}};class C extends r.P{#n;#e;constructor(D){super("analytics"),this.#n=D.logger,this.#e=new c(D.timingEventSamplingRatios??D.samplingRatios),this.#t()}#t=()=>{try{new PerformanceObserver(O=>{for(const M of O.getEntries())switch(M.entryType){case"measure":{if(!this.#e.shouldSample(M.name))return;const w=M.detail??{},y=M.duration.toString(),x=new Date(performance.timeOrigin+M.startTime).toISOString();this.sendBAEvent({event:"timing",name:M.name,duration:y,startTime:x,...P(),...w}).catch(()=>{}),this.#n.info({message:"timing",event:M.name,duration:y,startTime:x,detail:w});break}default:break}}).observe({type:"measure",buffered:!0})}catch(D){this.#n.error({message:"Error while recording performance",exception:D})}};setTimingEventSamplingRatio=D=>{Object.entries(D).forEach(([O,M])=>{this.#e.setRatio(O,M)})};getTimingEventSamplingRatio=D=>{const O={};return D.forEach(M=>{O[M]=this.#e.getRatio(M)}),O};deleteTimingEventSamplingRatio=D=>{D.forEach(O=>{this.#e.deleteRatio(O)})};getAllTimingEventSamplingRatios=()=>this.#e.getAllRatios();sendBAEvent=D=>{const{event:O,...M}=D??{};if(!O)return Promise.resolve();const w={...P(),...v(),...M};window.gtmDataLayer=window.gtmDataLayer||[],window.gtmDataLayer.push({...w,event:O});const y=l();return y&&y.track(O,w),Promise.resolve()};startTiming=(D,O)=>{if(!D)throw new Error("parameter mark is required");if(!O||!O?.appId||!O?.appUrl)throw new Error("parameter options is required");const M=performance.mark(D,{detail:O});return Promise.resolve({name:M?.name,startTime:M?.startTime})};endTiming=(D,O)=>{if(!D)throw new Error("parameter start is required");if(!O||!O?.appId||!O?.appUrl)throw new Error("parameter options is required");const M=D?.name??D,w=performance.getEntriesByName(M,"mark")?.[0],y={startAppId:w?.detail?.appId??O.appId,startAppUrl:w?.detail?.appUrl??O.appUrl,endAppId:O.appId,endAppUrl:O.appUrl};return w?(typeof D=="string"?performance.measure(M,{detail:y,start:M}):performance.measure(M,{detail:y,start:D.startTime}),performance.clearMarks(M)):performance.measure(M,{detail:y,end:performance.now()}),Promise.resolve()}}},"./node_modules/.pnpm/@elliemae+pui-app-bridge@2.21.3_@elliemae+pui-diagnostics@3.11.3_@elliemae+pui-logrocket@1.1._u5nlfyiyprgyloz7ciy7sse7zm/node_modules/@elliemae/pui-app-bridge/dist/esm/appBridge.js":(u,m,e)=>{"use strict";e.d(m,{o:()=>Xe});var r=e("./node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js"),n=e("./node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js"),o=(Ue=>(Ue.Analytics="analytics",Ue.Application="application",Ue.Auth="auth",Ue.Form="form",Ue.Global="global",Ue.Http="http",Ue.Loan="loan",Ue.LoanV2="loanV2",Ue.MemStorage="memstorage",Ue.Module="module",Ue.Service="service",Ue.Session="session",Ue.Styling="styling",Ue.Transaction="transaction",Ue.TransactionTemplate="transactiontemplate",Ue))(o||{}),t=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObjectManager.js"),i=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"),c=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"),l=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js");const h=(Ue,Ne=[])=>{const le=Ne||[];return Ue&&Ue.forEach?Ue.forEach(he=>{h(he,le)}):typeof Ue<"u"&&le.push(Ue),le};class g{#n=new Map;#e=(Ne,le)=>{const he=new Promise(We=>{setTimeout(()=>{We()},le)});return Promise.race([Ne,he])};#t=Ne=>{const{eventName:le,scriptingObject:he,eventParams:We,listeners:mn}=Ne;mn.map(async Be=>{if(!(Be.criteria&&!(We&&this.#r(We,Be.criteria))))try{await Be.callback({obj:he,eventName:le,eventParams:We})}catch{}})};#o=async({eventId:Ne,eventName:le,scriptingObject:he,eventParams:We,feedbackWaitTime:mn})=>{const vn=(this.#n.get(Ne)||[]).map($n=>$n.criteria&&!(We?this.#r(We,$n.criteria):!1)?Promise.resolve():this.#e($n.callback({obj:he,eventName:le,eventParams:We}),mn)),Cn=await Promise.all(vn);return h(Cn)};#r(Ne,le){return Object.entries(le).every(([he,We])=>{const mn=Ne[he];if("eq"in We)return mn===We.eq;if("in"in We)return Array.isArray(We.in)&&We.in.includes(mn);if("includes"in We)return Array.isArray(mn)&&mn.includes(We.includes);if("gt"in We){const Be=typeof mn=="number"?mn:Number(mn);return!Number.isNaN(Be)&&Be>We.gt}if("lt"in We){const Be=typeof mn=="number"?mn:Number(mn);return!Number.isNaN(Be)&&Be<We.lt}if("regex"in We)try{const Be=new RegExp(We.regex);return typeof mn=="string"&&Be.test(mn)}catch{return!1}return!1})}dispatchEvent=async(Ne,le)=>{const{event:{id:he,name:We},eventParams:mn,eventOptions:Be}=le,{timeout:vn}=Be??{};if(!he)throw new Error("Event Id is required");const Cn=this.#n.get(he)||[];return!vn||vn<=0?(this.#t({eventName:We,scriptingObject:Ne,eventParams:mn,listeners:Cn}),Promise.resolve()):this.#o({eventId:he,eventName:We,scriptingObject:Ne,eventParams:mn,feedbackWaitTime:vn})};subscribe=Ne=>{const{eventId:le,callback:he,criteria:We}=Ne;if(!le)throw new Error("eventId is required");if(!he)throw new Error("Callback is required");const mn=this.#n.get(le)||[],Be=(0,n.A)();return mn.push({token:Be,criteria:We,callback:he}),this.#n.set(le,mn),Be};unsubscribe=Ne=>{const{eventId:le,token:he}=Ne;if(!le)throw new Error("eventId id is required");if(he){const We=this.#n.get(le)||[],mn=We.findIndex(Be=>Be.token===he);mn>-1&&(We.splice(mn,1),this.#n.set(le,We))}else this.#n.delete(le)};unsubscribeAll=()=>{this.#n.clear()}}const v=e.p+"671d9de68be598da64ca.html?resource",j="pui-app-container-",P=({id:Ue,instanceId:Ne,manifestPath:le,hostUrl:he,options:We})=>new Promise((mn,Be)=>{const vn=document.createElement("div");vn.setAttribute("style","display: flex;width: 100%;height: 100%;flex-direction: column;overflow: hidden;");const Cn=document.createElement("iframe");Cn.setAttribute("id",Ne),Cn.setAttribute("data-testid",Ue),Cn.setAttribute("title",We.title),Cn.setAttribute("allowfullscreen","true"),Cn.setAttribute("allowtransparency","true"),We.permissionPolicy&&Cn.setAttribute("allow",We.permissionPolicy),We.sandbox&&Cn.setAttribute("sandbox",We.sandbox),Cn.setAttribute("style",We.style??"flex-grow: 1;border: none;margin: 0;padding: 0;display: block;min-width: 100%;height: 100%;");const $n=We.src??v.default??v,ze=We.queryParams?`${$n}${$n.includes("?")?"&":"?"}${We.queryParams}`:$n;Cn.setAttribute("src",ze),Cn.addEventListener("load",()=>{if(!Cn.contentDocument){Be(new Error("Frame content window is null"));return}const Hn=Cn.contentDocument,Pn=Hn.getElementById(j);Pn&&(Pn.id=`${Pn.id}${Ue}`);let B=Hn.getElementsByTagName("base")?.[0];B?B.href=new URL(le,he).href:(B=Hn.createElement("base"),B.href=new URL(le,he).href,Hn.getElementsByTagName("head")[0].appendChild(B)),mn(Cn)}),vn.appendChild(Cn);const{containerId:on}=We;(document.getElementById(on??"")??document.body).appendChild(vn)}),E=Ue=>document.getElementById(Ue),T={create:P,remove:Ue=>{const Ne=E(Ue);Ne&&Ne.remove()},get:E};var D=e("./node_modules/.pnpm/@elliemae+pui-theme@2.13.0_react-dom@18.3.1/node_modules/@elliemae/pui-theme/dist/esm/utils.js");const O=()=>{try{return window.parent.document,window.parent}catch{return window}},M=()=>({width:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}),w=Ue=>Number(Ue.replace("px","")),y=()=>{const{width:Ue}=M(),{breakpoints:Ne}=(0,D.x)();return Ue<=w(Ne.small)?"small":Ue<=w(Ne.medium)?"medium":"large"};var x=e("./node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/clone.js"),R=e("./node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/get.js"),A=e("./node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/set.js"),I=e("./node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/has.js"),$=e("./node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/merge.js");const ne=JSON.parse('{"appId":"microfe","activeEnv":"localhost","googleTagManager":true,"sessionTimeoutWarnInterval":"7200000","sessionTimeoutInterval":"9000000","microFrontendApps":{"loanapp":{"name":"Loan","hostUrl":"./loan","development":{"files":["index.js"]},"production":{"files":["index.js"]}},"taskapp":{"name":"Task","hostUrl":"./task","mode":"development","development":{"files":["index.dev.js"]},"production":{"files":["index.js"]}},"travelhub":{"name":"TravelHub","hostUrl":"./travelhub","development":{"files":["app.js","landing.js","app.css","landing.css"]},"production":{"files":["app.js","landing.js","app.css","landing.css"]}},"flights":{"name":"Flights","hostUrl":"./flights","development":{"files":["app.js","app.css"]},"production":{"files":["app.js","app.css"]}},"hotels":{"name":"Hotels","hostUrl":"./hotels","development":{"files":["app.js","app.css"]},"production":{"files":["app.js","app.css"]}},"ssfapp":{"name":"SSF App","hostUrl":"./ssf-app","microappManager":"ssf"}},"serviceEndpoints":{"api":"","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"},"env":{"localhost":{"serviceEndpoints":{"api":"","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"dev":{"serviceEndpoints":{"api":"https://dev.api.puiservice.rd.elliemae.io","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"dev2":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"qa":{"serviceEndpoints":{"api":"https://dev.api.puiservice.rd.elliemae.io","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"qa2":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"qa3":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"int":{"serviceEndpoints":{"api":"https://int.api.ellielabs.com","idp":"https://int.idp.ellielabs.com","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-osb1":{"serviceEndpoints":{"api":"https://encompass-peg-api.elliemae.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-osb2":{"serviceEndpoints":{"api":"https://encompass-peg2-api.elliemae.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg":{"serviceEndpoints":{"api":"https://peg2-west.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-oapi-west":{"serviceEndpoints":{"api":"https://peg2-west.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg-oapi-east":{"serviceEndpoints":{"api":"https://peg2-east.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg2-oapi-east":{"serviceEndpoints":{"api":"https://peg2-east.api.ellielabs.com","idp":"https://peg.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"peg3":{"serviceEndpoints":{"api":"https://pel1.api.ellielabs.com","idp":"https://peg3.idp.ellielabs.com/authorize","logger":"https://int.api.ellielabs.com/diagnostics/v2/logging"}},"stage":{"serviceEndpoints":{"api":"https://stg.api.elliemae.com","idp":"https://stg.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"beta":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"demo":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"epc":{"serviceEndpoints":{"api":"https://concept.api.elliemae.com","idp":"https://concept.idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}},"prod":{"serviceEndpoints":{"api":"https://api.elliemae.com","idp":"https://idp.elliemae.com/authorize","logger":"https://api.ellielabs.com/diagnostics/v2/logging"}}}}'),k="latest",H=12e4,N=null,Y=Ue=>Ue.replace(/([^:]\/)\/+/g,"$1"),ie=Ue=>{const Ne=document.createElement("a");return Ne.href=Ue,Ne.href},V=Ue=>Ue?.replace?.(/\/?$/,"/"),U=(Ue,Ne)=>`${Ue.replace(/\/+$/,"")}/${Ne.replace(/^\/+/,"")}`,G=()=>window.navigator.userAgent.includes("jsdom"),q=({appObj:Ue,logger:Ne})=>{if(!Ue){Ne.warn("Application object not available to send keep alive");return}const le=throttle(async()=>{try{await Ue.keepSessionAlive()}catch(he){Ne.error(`Error keeping session alive. ${he.message}`)}},H,{leading:!1});N.forEach(he=>{document.addEventListener(he,le)})};var re=(Ue=>(Ue.DEVELOPMENT="development",Ue.PRODUCTION="production",Ue))(re||{}),ee=(Ue=>(Ue.SSF="ssf",Ue.APPSDK="appsdk",Ue))(ee||{});class de{#n=ne;#e;#t;constructor(Ne){this.#e=Ne?.version||k,this.#t=V(Ne?.baseUrl||"")}#o=Ne=>{const{activeEnv:le}=Ne,he=Ne.env[le]||{};Ne.env&&delete Ne.env,this.#n=$(Ne,he)};get=(Ne="",le=null)=>x(R(this.#n,Ne,le));set=(Ne,le)=>A(this.#n,Ne,le);has=(Ne="")=>I(this.#n,Ne);#r=()=>{if(!/(?:\/)(\d+\.\d+|latest)(?:\/?)?$/.test(this.#t)){const le=this.#e.match(/^(?:\d+\.\d+)*/g);return V(`${this.#t}${le?.[0]||k}`)}return this.#t};load=async Ne=>{const le=Ne??`${this.#r()}app.config.json`,he=await fetch(le);if(he.ok)try{const We=await he.json();this.#o(We)}catch(We){if(!Ne&&this.#e!==k)await this.load(`${this.#t}latest/app.config.json`);else throw new Error("Failed to parse app config",{cause:We})}else{if(!Ne&&this.#e!==k){await this.load(`${this.#t}latest/app.config.json`);return}throw new Error("Failed to load app config")}}}var Ae=(Ue=>(Ue.USER="USER",Ue.PARTNER="PARTNER",Ue))(Ae||{}),be=e("./node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");const Ce="microFrontendApps",qe=()=>be.env.CI==="true",je=Ue=>qe()?!0:String(Ue).toLowerCase()===re.PRODUCTION.toLowerCase(),Ge=Ue=>Ue?new URL(Ue).pathname:"",un=Ue=>{const Ne=document.createElement("a");return Ne.href=Ue,Ne.href},cn=(Ue,Ne)=>{const le=Ne.match(/^(?:\d+\.\d+)*/g);return Ue.replace(/{SYSTEM_VERSION}/,le&&le[0]||k)},Ln=Ue=>!Ue||!Ue.length?!1:Ue.every(Ne=>typeof Ne=="string"),Nn=(Ue,Ne)=>{const{mode:le=re.PRODUCTION}=Ne;if(String(le).toLowerCase()!==re.PRODUCTION.toLowerCase()&&String(le).toLowerCase()!==re.DEVELOPMENT.toLowerCase())throw new Error(`invalid mode '${String(le)}' for ${Ue}`);const{production:he,development:We,microappManager:mn=ee.APPSDK}=Ne;if(String(mn).toLowerCase()===ee.APPSDK.toLowerCase()){if(String(le).toLowerCase()===re.PRODUCTION.toLowerCase()){if(!he)throw new Error(`microFrontendApps.${Ue} is missing production section in app.config.json`);if(!Ln(he.files))throw new Error("invalid value for production.files")}if(String(le).toLowerCase()===re.DEVELOPMENT.toLowerCase()){if(!We)throw new Error(`microFrontendApps.${Ue} is missing development section in app.config.json`);if(!Ln(We.files))throw new Error("invalid value for development.files")}}},In=({id:Ue,config:Ne,version:le="latest"})=>{const{mode:he=re.PRODUCTION}=Ne,We=je(he)?Ne.production:Ne.development;Ne.production&&delete Ne.production,Ne.development&&delete Ne.development;const mn=$({id:Ue},{name:Ue,mode:re.PRODUCTION,manifestPath:"./{SYSTEM_VERSION}/",securityContext:Ae.USER,isJsModule:!0},Ne,We);return mn.hostUrl=V(un(mn.hostUrl||"")),mn.homeRoute=V(mn.homeRoute)||Ge(mn.hostUrl),mn.manifestPath=V(cn(mn.manifestPath,le)),mn};class qn{#n=[];init=({version:Ne,appConfig:le})=>{const he=le.get(Ce);he&&(this.#n=Object.keys(he).map(We=>(Nn(We,he[We]),In({id:We,config:he[We],version:Ne}))))};getConfigById=Ne=>this.#n.find(le=>le.id===Ne)}const jn="ice-script-";class ht{#n;constructor(Ne){this.#n=Ne}add=({name:Ne,hostUrl:le,documentEle:he,fileName:We,index:mn,isJsModule:Be=!0})=>new Promise((vn,Cn)=>{const $n=new URL(We,le),ze=he.createElement("script");ze.id=`${jn}${Ne.toLowerCase()}-${mn}`,ze.src=Y($n.href),ze.nonce="__CSP_NONCE__",!G()&&Be?ze.type="module":ze.async=!1,ze.onload=vn.bind(null,ze.id),ze.onerror=on=>{Cn(new Error(`Unable to load script ${ze.src}`,{cause:new Error(on)}))},he.head.appendChild(ze)});remove=(Ne="",le=document)=>new Promise(he=>{const We=le.getElementById(Ne);We||(this.#n.warn(`script with id ${Ne} not found`),he()),We.remove(),he()});removeDynamicImportedScripts=(Ne,le)=>{const he=new RegExp(Ne,"i"),We=le.getElementsByTagName("script");for(let mn=We.length-1;mn>=0;mn-=1){const Be=We[mn],{src:vn}=Be;he.test(vn)&&Be.remove()}};removePrefetchLinks=(Ne,le)=>{const he=new RegExp(Ne,"i"),We=le.querySelectorAll('[rel="prefetch"]');for(let mn=We.length-1;mn>=0;mn-=1){const Be=We[mn],{href:vn}=Be;he.test(vn)&&Be.remove()}}}const wn="ice-style-";class st{#n;constructor(Ne){this.#n=Ne}add=({name:Ne,hostUrl:le,documentEle:he,fileName:We,index:mn})=>new Promise((Be,vn)=>{const Cn=he.createElement("link");Cn.id=`${wn}${Ne.toLowerCase()}-${mn}`,Cn.nonce="__CSP_NONCE__",Cn.rel="stylesheet";const $n=new URL(We,le);Cn.href=Y($n.href),Cn.onload=Be.bind(null,Cn.id),Cn.onerror=ze=>{vn(new Error(`Unable to load stylesheet ${Cn.href}`,{cause:new Error(ze)}))},he.head.appendChild(Cn)});remove=(Ne="",le=document)=>new Promise(he=>{const We=le.getElementById(Ne);We||(this.#n.warn(`style with id ${Ne} not found`),he()),We.remove(),he()});removeDynamicImportedStyles=(Ne,le)=>{const he=new RegExp(Ne,"i"),We=le.querySelectorAll('[rel="stylesheet"]');for(let mn=We.length-1;mn>=0;mn-=1){const Be=We[mn],{href:vn}=Be;he.test(vn)&&Be.remove()}}}const Ze=Ue=>Ue.replace(/\/\d+\.\d+/,"/latest"),rt=Ue=>{let Ne;try{Ne=new URL(Ue)}catch{return!1}return Ne.protocol==="http:"||Ne.protocol==="https:"},At=async({hostUrl:Ue,manifestPath:Ne})=>{const le=new URL(`${Ne}manifest.json`,Ue),he=await fetch(Y(le.href));if(he.ok){const{headers:mn}=he;if((mn?.get?.("content-type")??"").includes("application/json"))return await he.json();throw new Error(`manifest ${le.href} is not a valid json`)}const We=Ze(Ne);if(Ne!==We)return At({hostUrl:Ue,manifestPath:Ze(Ne)});throw new Error(`unable to get manifest ${le.href}`)},Bn={get:At,getFullFileNameofAssets:(Ue,Ne=[])=>Ne.reduce((le,he)=>{const We=Ue[he];if(We)le.push(We);else if(rt(he))le.push(he);else throw new Error(`unable to locate ${he} in manifest`);return le},[])};class wt{#n;#e;#t;#o;#r;#s;constructor(Ne){this.#t=Ne.guest,this.#n=Ne.logger,this.#e=Ne.containerId,this.#o=Ne?.version||k,this.#r=Ne.soManager,this.#s=Ne.eventManager}get version(){return this.#o}getObject=Ne=>{const le=this.#r.getObject(Ne,this.#t);if(le){const he=new c.V(le.id,le.objectType);return Object.keys(le).forEach(We=>{const mn=le[We];mn instanceof i.Jh?Object.defineProperty(he,We,{value:new i.Jh({name:We,objectId:le.id}),enumerable:!0}):(0,l.Q)(mn,We)&&Object.defineProperty(he,We,{value:(...Be)=>(Object.defineProperty(mn,"callContext",{value:{guest:this.#t},configurable:!0,enumerable:!0,writable:!0}),le[We](...Be)),enumerable:!0})}),Promise.resolve(he)}return Promise.resolve(null)};setAppWindowSize=Ne=>{if(!this.#e)return;const{size:le}=Ne,he=document.getElementById(this.#e);he&&(he.style.height=`${le.height}px`)};subscribe=Ne=>this.#s.subscribe(Ne);unsubscribe=Ne=>{this.#s.unsubscribe(Ne)}}class an{constructor(){window.emui||(window.emui={}),window.emui.registerApp=this.#n}#n=({appId:Ne,app:le})=>{if(!le?.uuid)throw new Error("application uuid is required");if(window.emui[Ne]=window.emui[Ne]||[],Array.isArray(window.emui[Ne])){const he=window.emui[Ne].findIndex(We=>We.uuid===le.uuid);he>-1?window.emui[Ne][he]=le:window.emui[Ne].push(le)}else{let he=window.emui[Ne];he?.uuid===le.uuid?(he={...he,...le},window.emui[Ne]=[he]):typeof he.init===void 0?window.emui[Ne]=[{...he,...le}]:window.emui[Ne]=[window.emui[Ne],le]}};get=({id:Ne,instanceId:le})=>{const he=window.emui?.[Ne];return Array.isArray(he)?he.find(mn=>mn.uuid===le)??null:he?.uuid===le?he:null};add=({id:Ne,instanceId:le,documentEle:he})=>{const We={uuid:le,init:null,mount:null,unmount:null},mn=window.emui[Ne];if(mn){if(!le)throw new Error(`Application ${Ne} is already loaded. uuid is required to load multiple instances of the same app`);Array.isArray(mn)?mn.push(We):window.emui[Ne]=[mn,We]}else window.emui[Ne]=[We];he.defaultView&&(he.defaultView.emui=he.defaultView.emui??{},he.defaultView.emui.uuid=le)};delete=({id:Ne,instanceId:le})=>{if(Array.isArray(window.emui[Ne])){const he=window.emui[Ne].findIndex(We=>We.uuid===le);he>-1&&window.emui[Ne].splice(he,1)}else delete window.emui[Ne]}}const En=12e4,ft=["click","scroll","keypress","touchstart"],tn=/\.css$/,te=Ue=>tn.test(Ue);class Xe{#n;#e;#t;#o;#r;#s=new qn;#a;#m;#i=new Map;#u=new an;#l=!0;constructor(Ne){const{logger:le}=Ne;if(!le)throw new Error("logger is required");this.#n=Ne.logger,this.#e=Ne.version,this.#l=Ne.extendSession??!0,this.#r=new de({version:Ne.version,baseUrl:Ne.appConfigBaseUrl}),this.#t=new ht(le),this.#o=new st(le),this.#a=new t.qE,this.#m=new g}#c(Ne){return typeof Ne=="function"}#g=Ne=>Ne instanceof i.b3||typeof Ne?.subscribe=="function";#d=(Ne,le)=>`Application ${Ne} with instance id ${le} is not found. Most probably the appId property of app.config.json is not set to ${Ne}`;#h=(Ne,le=document)=>{const{elementIds:he}=this.#i.get(Ne)||{};he&&he.forEach(We=>{const mn=le.getElementById(We);mn&&mn.remove()})};#p=({id:Ne,instanceId:le,documentEle:he},We)=>{const mn=this.#u.get({id:Ne,instanceId:le});if(!mn)throw new Error(this.#d(Ne,le));this.#i.set(le,{id:Ne,instanceId:le,elementIds:We,guest:{guestWindow:he?.defaultView,...mn}})};#_=(Ne,le)=>{const{id:he,instanceId:We,containerId:mn,name:Be,hostUrl:vn,manifestPath:Cn,homeRoute:$n,initialRoute:ze,history:on,theme:fn,documentEle:Hn}=Ne;return Promise.all(le).then(this.#p.bind(null,{id:he,instanceId:We,documentEle:Hn})).then(this.#x.bind(null,{id:he,instanceId:We,containerId:mn,name:Be,hostUrl:vn,manifestPath:Cn,homeRoute:$n,initialRoute:ze,history:on,theme:fn})).catch(Pn=>{const B=`Application load failed. Unable to load one or more resources for ${Ne.id} with instance id ${We}. ${Pn.message}`;throw this.#n.error({message:B,appId:he,exception:Pn}),new Error(B)})};#x=async({id:Ne,instanceId:le,containerId:he,hostUrl:We,manifestPath:mn,homeRoute:Be,initialRoute:vn,history:Cn,theme:$n})=>{const ze=this.#u.get({id:Ne,instanceId:le});if(!ze)throw new Error(`Application ${Ne} with instance id ${le} is not found. Most probably the appId property of app.config.json is not set to ${Ne}`);if(!ze.init||typeof ze.init!="function")throw new Error(`Application ${Ne} with instance id ${le} doesn't expose init method`);const on=new wt({guest:{id:Ne},version:this.#e,containerId:he,logger:this.#n,soManager:this.#a,eventManager:this.#m});return ze.init({host:on,hostUrl:We,manifestPath:mn,homeRoute:Be,initialRoute:vn,prevState:null,history:Cn,theme:$n,hostBreakpoint:y(),hostViewportSize:M(),logger:this.#n})};#y=async Ne=>{const{id:le,instanceId:he,files:We,name:mn,hostUrl:Be,documentEle:vn,isJsModule:Cn}=Ne;this.#n.debug(`Application ${le} with instance id ${he} is loading...`);let $n=We;const ze=await Bn.get(Ne);$n=Bn.getFullFileNameofAssets(ze,We);let on=0;const fn=$n.map(Hn=>{on+=1;const Pn={name:mn,hostUrl:Be,documentEle:vn,fileName:Hn,index:on,isJsModule:Cn};return te(Hn)?this.#o.add(Pn):this.#t.add(Pn)});await this.#_(Ne,fn),this.#n.audit(`Application ${le} with instance id ${he} loaded`)};#v=({id:Ne,instanceId:le,hostUrl:he,documentEle:We})=>{this.#n.debug(`Application ${Ne} with instance id ${le} unloading...`),this.#u.get({id:Ne,instanceId:le})&&(this.#h(le,We),this.#t.removeDynamicImportedScripts(he,We),this.#t.removePrefetchLinks(he,We),this.#o.removeDynamicImportedStyles(he,We),this.#u.delete({id:Ne,instanceId:le}),this.#n.audit(`Application ${Ne} with instance id ${le} unloaded`))};#f=async({id:Ne,instanceId:le})=>{const he=this.#u.get({id:Ne,instanceId:le});if(!he?.mount||typeof he?.mount!="function")throw new Error(`Application ${Ne} with instance id ${le} doesn't expose mount method`);return he.mount({containerId:`${j}${Ne}`,hostBreakpoint:y(),hostViewportSize:M()})};#b=({id:Ne,instanceId:le})=>{const he=this.#u.get({id:Ne,instanceId:le});if(!he?.unmount)return null;if(typeof he.unmount!="function")throw new Error(`Application ${Ne} with instance id ${le} doesn't expose unmount method`);return he.unmount({containerId:`${j}${Ne}`})};#j=({id:Ne,instanceId:le})=>{if(this.#l)try{const he=this.#a.getObject(o.Application);if(!he){this.#n.warn({message:`Application scripting object not available for ${Ne} to manage session`});return}const We=this.#i.get(le);if(!We)return;We.keepAlive=(0,r.throttle)(async()=>{try{await he.keepSessionAlive()}catch(Be){this.#n.error(`Error keeping session alive. ${Be.message}`)}},En);const mn=T.get(le);ft.forEach(Be=>{mn?.contentDocument?.addEventListener(Be,We.keepAlive)})}catch(he){this.#n.warn({message:`Application scripting object not available for ${Ne} to manage session`,exception:he})}};#w=Ne=>{if(!this.#l||!Ne)return;const{keepAlive:le}=Ne;le&&(ft.forEach(he=>{document.removeEventListener(he,le)}),Ne.keepAlive?.cancel())};addScriptingObject=(Ne,le)=>{if((0,c.h)(Ne)){const he=this.cloneScriptingObject(Ne);this.#a.addScriptingObject(he,le)}else this.#a.addScriptingObject(Ne,le)};cloneScriptingObject=Ne=>{if(!Ne)throw new Error("proxy is required");const le=new l.P(Ne.id,Ne.objectType);let he=[];return Object.keys(Ne).forEach(We=>{const mn=Ne[We];if(this.#g(mn)){const Be=new i.Jh({name:mn.name||We,objectId:le.id});Object.defineProperty(le,We,{value:Be,enumerable:!0});const vn=({eventParams:$n,eventOptions:ze})=>this.dispatchEvent({event:Be,eventParams:$n,eventOptions:ze}),Cn=mn.subscribe(vn);he.push(()=>{mn.unsubscribe(Cn)})}else if(this.#c(mn)&&(Object.defineProperty(le,We,{value:async(...Be)=>{const vn=await mn(...Be);return(0,c.h)(vn)?this.cloneScriptingObject(vn):vn},enumerable:!0}),We==="dispose")){const Be=le.dispose;Object.defineProperty(le,We,{value:()=>(le._dispose(),Be.apply(le)),enumerable:!0})}}),le._dispose=()=>{he.forEach(We=>{We?.()}),he=[]},le};closeAllApps=async()=>{await Promise.all([...this.#i.keys()].map(this.closeApp))};closeApp=async Ne=>{if(!Ne)throw new Error("instanceId is required");const le=this.#i.get(Ne);if(!le){this.#n.warn(`Application with instance id ${Ne} is not found`);return}this.#i.delete(Ne);const{id:he}=le,We=this.#s.getConfigById(he),{hostUrl:mn}=We;try{this.#w(le),await this.#b({id:he,instanceId:Ne})}finally{const Be=T.get(Ne);Be?.contentDocument&&this.#v({id:he,instanceId:Ne,hostUrl:mn,documentEle:Be.contentDocument}),T.remove(Ne)}};dispatchEvent=async Ne=>{const{event:{id:le,name:he},eventOptions:We={}}=Ne,{guestId:mn}=We;if(!le)throw new Error("Event Id is required");const Be=le.split(".")?.[0],vn=mn?this.#a.getObject(Be,{id:mn}):this.#a.getObject(Be);return vn?this.#m.dispatchEvent(vn,Ne):(this.#n.warn(`Attempt to dispatch event ${he} on unknown object ${Be}`),Promise.resolve())};getApp=Ne=>this.#i.get(Ne)?.guest;getApps=()=>[...this.#i.values()].map(Ne=>Ne.guest);init=async()=>{await this.#r.load(),this.#s.init({version:this.#e,appConfig:this.#r})};mountApp=async Ne=>{if(!Ne)throw new Error("instanceId is required");const{id:le}=this.#i.get(Ne)||{};if(!le)throw new Error(`Application with instance id ${Ne} is not found`);const he=this.#s.getConfigById(le);if(!he)throw new Error(`Application with id ${le} is not found`);await this.#f({...he,instanceId:Ne})};openApp=async Ne=>{const{id:le,frameOptions:he,history:We,theme:mn,homeRoute:Be,initialRoute:vn}=Ne,Cn=(0,n.A)(),$n=this.#s.getConfigById(le);if(!$n)throw new Error(`Application ${le} is not found in app config`);const ze=await T.create({id:le,instanceId:Cn,manifestPath:$n.manifestPath,hostUrl:$n.hostUrl,options:{title:$n.name,...he}});if(!ze?.contentDocument)throw new Error("unable to create iframe for the microapp");try{return this.#u.add({id:le,instanceId:Cn,documentEle:ze.contentDocument}),await this.#y({instanceId:Cn,history:We,theme:mn,documentEle:ze.contentDocument,containerId:he?.containerId,...$n,homeRoute:Be??$n.homeRoute,initialRoute:vn}),await this.#f({instanceId:Cn,...$n}),this.#j({id:le,instanceId:Cn}),Cn}catch(on){throw this.#v({id:le,instanceId:Cn,hostUrl:$n.hostUrl,documentEle:ze.contentDocument}),T.remove(Cn),on}};removeAllEventSubscriptions=()=>{this.#m.unsubscribeAll()};removeAllScriptingObjects=Ne=>{this.#a.removeAllScriptingObjects(Ne)};removeScriptingObject=(Ne,le)=>{this.#a.removeScriptingObject(Ne,le)};unmountApp=async Ne=>{if(!Ne)throw new Error("instanceId is required");const{id:le}=this.#i.get(Ne)||{};if(!le)throw new Error(`Application with instance id ${Ne} is not found`);const he=this.#s.getConfigById(le);if(!he)throw new Error(`Application with id ${le} is not found`);await this.#b({...he,instanceId:Ne})}}},"./node_modules/.pnpm/@elliemae+pui-theme@2.13.0_react-dom@18.3.1/node_modules/@elliemae/pui-theme/dist/esm/utils.js":(u,m,e)=>{"use strict";e.d(m,{x:()=>c});const r=()=>({breakpoints:["512px","768px","1024px","350px"],spaces:["0","4px","8px","12px","16px","32px","48px","56px","64px","72px"],fontSizes:["0.8461rem","0.9230rem","1rem","1.0769rem","1.2307rem","1.3846rem","1.8461rem","2.7692rem"],fontWeights:[100,200,300,400,500,600,700,800,900],lineHeights:["1rem","1.15rem","1.25rem","1.5rem"],letterSpacings:["normal","0.1rem","-0.05rem","0.25rem"],fonts:["proxima-nova, Arial, sans-serif"],colors:{neutral:["#FFFFFF","#F6F7F9","#EBEDF0","#E0E3E8","#CBCFD7","#B0B9C8","#8C93A6","#697489","#464F5C","#353C46","#25292F"],brand:["#F6FBFF","#EBF6FF","#A3D6FF","#52A6EC","#1394E5","#1E79C2","#006AA9","#005181","#C9E7FF"],success:["#E1F4ED","#E1F4ED","#289F6B","#207E56","#185D44"],warning:["#FFEFD8","#E06C29","#B25119","#853C12"],danger:["#FBEBED","#FBEBED","#ED5A64","#C64252","#A11B2B"]},shadows:["0 1px 5px 0 rgba(0, 0, 0, 0.13), 0 2px 4px 0 rgba(0, 0, 0, 0.2)","0 6px 20px 0 rgba(0, 0, 0, 0.24), 0 8px 17px 0 rgba(0, 0, 0, 0.19)","0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19)","0 16px 28px 0 rgba(0, 0, 0, 0.24), 0 25px 55px 0 rgba(0, 0, 0, 0.19)","0 27px 24px 0 rgba(0, 0, 0, 0.24), 0 40px 77px 0 rgba(0, 0, 0, 0.19)"],zIndex:[1e3,2e3,3e3,500,4e3],states:[null,"@media (prefers-reduced-motion: no-preference)","@media (prefers-reduced-motion: reduce)","&:first-child","&:last-child","&:odd","&:even","&:visited","&:checked","&:focus-within","&:hover","&:focus","&:focus-visible","&:active","&:disabled, &[aria-disabled=true]","&::placeholder"]});var n=e("./node_modules/.pnpm/styled-components@5.3.11_react-dom@18.3.1_react@18.3.1/node_modules/styled-components/dist/styled-components.browser.esm.js");const o=l=>Object.keys(l).reduce((h,g)=>(h[g]=(v,...j)=>(0,n.AH)`
|
|
1410
1410
|
@media (max-width: ${l[g]}) {
|
|
1411
1411
|
${(0,n.AH)(v,...j)};
|
|
1412
1412
|
}
|
|
1413
|
-
`,h),{}),t=l=>({space:{...l.spaces,xxxs:l.spaces[1],xxs:l.spaces[2],xxs2:l.spaces[3],xs:l.spaces[4],s:l.spaces[5],m:l.spaces[6],l:l.spaces[7],xl:l.spaces[8],xxl:l.spaces[9]},fontSizes:{...l.fontSizes,title:{500:l.fontSizes[3],600:l.fontSizes[4],700:l.fontSizes[5],800:l.fontSizes[6],900:l.fontSizes[7]},subTitle:{300:l.fontSizes[1],400:l.fontSizes[2]},label:{200:l.fontSizes[0],300:l.fontSizes[1],400:l.fontSizes[2]},value:{300:l.fontSizes[1],400:l.fontSizes[2],500:l.fontSizes[3],600:l.fontSizes[4]},hyperlink:{200:l.fontSizes[0],300:l.fontSizes[1],400:l.fontSizes[2]},microText:{200:l.fontSizes[0]}},fontWeights:{...l.fontWeights,thin:l.fontWeights[0],light:l.fontWeights[1],regular:l.fontWeights[3],semibold:l.fontWeights[5],bold:l.fontWeights[8]},lineHeights:{...l.lineHeights,r:l.lineHeights[0],m:l.lineHeights[1],l:l.lineHeights[2],xl:l.lineHeights[3]},letterSpacings:{normal:l.letterSpacings[0],tracked:l.letterSpacings[1],tight:l.letterSpacings[2],mega:l.letterSpacings[3]},fonts:{...l.fonts,default:l.fonts[0]},colors:{neutral:{"000":l.colors.neutral[0],"050":l.colors.neutral[1],"080":l.colors.neutral[2],100:l.colors.neutral[3],200:l.colors.neutral[4],300:l.colors.neutral[5],400:l.colors.neutral[6],500:l.colors.neutral[7],600:l.colors.neutral[8],700:l.colors.neutral[9],800:l.colors.neutral[10]},brand:{100:l.colors.brand[0],200:l.colors.brand[1],250:l.colors.brand[8],300:l.colors.brand[2],400:l.colors.brand[3],500:l.colors.brand[4],600:l.colors.brand[5],700:l.colors.brand[6],800:l.colors.brand[7]},success:{300:l.colors.success[0],400:l.colors.success[1],600:l.colors.success[2],900:l.colors.success[3],950:l.colors.success[4]},warning:{400:l.colors.warning[0],500:l.colors.warning[1],600:l.colors.warning[1],900:l.colors.warning[2],950:l.colors.warning[3]},danger:{200:l.colors.danger[0],400:l.colors.danger[1],600:l.colors.danger[2],900:l.colors.danger[3],950:l.colors.danger[4]}},shadows:{xs:l.shadows[0],s:l.shadows[1],m:l.shadows[2],l:l.shadows[3],xl:l.shadows[4]},breakpoints:{...l.breakpoints,xsmall:l.breakpoints[3],small:l.breakpoints[0],medium:l.breakpoints[1],large:l.breakpoints[2]},media:o({xsmall:l.breakpoints[3],small:l.breakpoints[0],medium:l.breakpoints[1],large:l.breakpoints[2]}),zIndex:{dialog:l.zIndex[0],popper:l.zIndex[1],tooltip:l.zIndex[2],backdrop:l.zIndex[3],loader:l.zIndex[4]},states:{_:l.states[0],motionSafe:l.states[1],motionReduce:l.states[2],first:l.states[3],last:l.states[4],odd:l.states[5],even:l.states[6],visited:l.states[7],checked:l.states[8],focusWithin:l.states[9],hover:l.states[10],focus:l.states[11],focusVisible:l.states[12],active:l.states[13],disabled:l.states[14],placeholder:l.states[15]}}),c=((l=r())=>()=>t(l))()},"./node_modules/.pnpm/@elliemae+ssf-guest@2.21.3_@elliemae+pui-logrocket@1.1.14/node_modules/@elliemae/ssf-guest/dist/esm/guest.js":(u,m,e)=>{"use strict";e.d(m,{p:()=>$});var r=e("./node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js"),n=e("./node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js"),o=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.2_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/remoting.js"),t=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.2_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/messageType.js"),i=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.2_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"),c=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.2_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"),l=e("@elliemae/pui-diagnostics");const h=()=>{const{parent:ne}=window;try{return ne?.location?.href}catch{return null}},g=ne=>{if(!ne||ne==="about:blank")return"*";try{const{origin:k}=new URL(ne);return k==="null"||!k?ne:k}catch{const{origin:H}=new URL(ne,document.baseURI);return H}},v=()=>window.self!==window.parent,j=(ne,k)=>{const H=k||document.body,N=document.defaultView?.getComputedStyle?.(H,null),Y=N?N[ne]:"0";return parseInt(Y,10)},P=new RegExp("^https?://(.*.elliemae.io|.*.ellielabs.com|.*.ellieservices.com|.*.encompassloconnect.com|.*.ice.com|localhost:[0-9]+)","i"),E="elli:remoting",C=()=>new Promise(ne=>{if(v())ne({origin:g(document.referrer||h()),window:window.parent});else{const k=window,H=N=>{if(P.test(N.origin)){const{source:Y,type:ie}=N.data||{};if(Y===E&&ie===t.G.HandShake){const{origin:V}=N,U=N.source;(0,o._)({targetWin:U,targetOrigin:V,messageType:t.G.HandShakeAck,messageBody:{}}),k.removeEventListener("message",H),ne({origin:V,window:U})}}};k.addEventListener("message",H)}});let T=!1;const D=ne=>{T=ne},O=(ne=null)=>{let k=ne;const H=()=>{if(!k&&(k=window.ice?.guest?.SSFGuest?new window.ice.guest.SSFGuest:null,!k))throw new Error("Guest definition not found");return k};window.elli=window.elli??{},window.elli.script={guest:{create:async(N,Y)=>H().addScript(N,Y)},connect:async N=>(console.warn("elli.script.connect is deprecated. Please use connect method of SSFGuest class instead, const guest = new ice.guest.SSFGuest(); await guest.connect(params);"),H().connect(N)),getObject:async N=>(T||console.warn("elli.script.getObject is deprecated. Please use getObject method of SSFGuest class instead, const guest = new ice.guest.SSFGuest(); await guest.getObject(objectName);"),H().getObject(N)),setLogLevel:N=>(T||console.warn("elli.script.setLogLevel is deprecated. Please use setLogLevel method of SSFGuest class instead, const guest = new ice.guest.SSFGuest(); guest.setLogLevel(level);"),H().setLogLevel(N)),subscribe:(N,Y,ie)=>(T||console.warn("elli.script.subscribe is deprecated. Please use subscribe method of SSFGuest class instead, const guest = new ice.guest.SSFGuest(); guest.subscribe({ eventId: `${objectId}.${eventName}`, callback: (event) => { console.log(event); });"),H().subscribe({eventId:`${N}.${Y}`,callback:V=>ie(V?.obj,V?.eventParams,V?.eventOptions)})),unsubscribe:(N,Y,ie)=>(T||console.warn("elli.script.unsubscribe is deprecated. Please use unsubscribe method of SSFGuest class instead, const guest = new ice.guest.SSFGuest(); guest.unsubscribe({ eventId: `${objectId}.${eventName}`, token });"),H().unsubscribe({eventId:`${N}.${Y}`,token:ie}))}};O();var M=(ne=>(ne.OBJECT="object",ne.VALUE="value",ne))(M||{});const w=12e4,y={eventFeedback:!0},x=()=>{const{document:ne}=window,k=ne.body,H=ne.documentElement,Y={height:k.offsetHeight+j("marginTop")+j("marginBottom"),width:Math.max(k.scrollWidth,H.scrollWidth)};(0,o._)({targetWin:window.parent,targetOrigin:g(ne.referrer||h()),messageType:t.G.GuestResize,messageBody:Y}),window.removeEventListener("load",x)};v()&&window.addEventListener("load",x);const R={"cdn.ice.com":"https://api.elliemae.com/diagnostics/v2/logging","cdn.np.ice.com":"https://stg.api.elliemae.com/diagnostics/v2/logging","cdn.uat.ice.com":"https://concept.api.elliemae.com/diagnostics/v2/logging","cdn.pt1.ice.com":"https://pel1.api.ellielabs.com/diagnostics/v2/logging","cdn.qa1.ice.com":"https://int.api.ellielabs.com/diagnostics/v2/logging","cdn.dev1.ice.com":"https://int.api.ellielabs.com/diagnostics/v2/logging","cdn.mortgagetech.ice.com":"https://api.elliemae.com/diagnostics/v2/logging","cdn.mortgagetech.s1.ice.com":"https://stg.api.elliemae.com/diagnostics/v2/logging","cdn.mortgagetech.uat1.ice.com":"https://concept.api.elliemae.com/diagnostics/v2/logging","cdn.mortgagetech.pl1.ice.com":"https://pel1.api.ellielabs.com/diagnostics/v2/logging","cdn.mortgagetech.q1.ice.com":"https://int.api.ellielabs.com/diagnostics/v2/logging","cdn.mortgagetech.d1.ice.com":"https://int.api.ellielabs.com/diagnostics/v2/logging",localhost:"https://int.api.ellielabs.com/diagnostics/v2/logging"},A=["click","scroll","keypress","touchstart"],I=()=>{const ne=document.currentScript?.src||"file:///opt/jenkins/workspace/UIPlatform_app-sdk_master/540/node_modules/.pnpm/@elliemae+ssf-guest@2.21.3_@elliemae+pui-logrocket@1.1.14/node_modules/@elliemae/ssf-guest/dist/esm/guest.js",k=ne?new URL(ne).hostname:"localhost";return R[k]||R["cdn.qa1.ice.com"]};class ${#n;#e;#t;#o=!1;#r=null;#s=!1;#a=new Map;#m=null;#i=null;#u=null;#l=null;#c=null;#g=!1;#d=null;#h=null;#p=null;#_=!0;#x=w;#y;#v=null;constructor(k){const{console:H=!1,url:N=window.__ICE__?.diagnosticsUrl||I(),index:Y="ssf-guest-v2",team:ie="ICE",appName:V="SSF Guest V2 Application"}=k?.logger??{};this.#y=k?.logger,this.#g=k?.usesDevConnectAPI??!1,this.#_=k?.keepAlive??!0,this.#x=k?.keepAliveInterval??w;const U=H?(0,l.Console)():(0,l.http)(N);this.#e=k?.appLogger??(0,l.logger)({transport:U,index:Y,team:ie,appName:V}),(0,l.webvitals)(this.#e),(0,l.logUnhandledErrors)(this.#e),this.#n=(0,r.A)(),this.#t=new o.K(this.#e,this.#n),O(this),this.#e.audit({message:"Guest created",guestUrl:window.location.href,correlationId:this.#n})}#f=()=>({guestId:this.#m,guestTitle:this.#i,guestUrl:this.#u});#b=k=>{if(!k||!k.objectId)throw this.#e.error("Deserialization of scripting object failed. Object does not have an Object ID."),new Error("Cannot deserialize object JSON into proxy.");const H=new i.V(k.objectId,k.objectType);return k.functions&&k.functions.forEach(N=>{Object.defineProperty(H,N,{value:async(...Y)=>this.#j({objectId:H.id,functionName:N,functionParams:[].slice.call(Y)}),enumerable:!0})}),k.events&&k.events.forEach(N=>{Object.defineProperty(H,N,{value:new c.b3({objectId:H.id,name:N,eventSrc:this}),enumerable:!0})}),this.#e.debug(`Created guest proxy for scripting object (id = "${H.id}")`),H};#j=async({objectId:k,functionName:H,functionParams:N})=>{this.#e.debug(`Invoking scripting object method ${k}.${H}()...`);const Y=[];if(N)for(let U=0;U<N.length;U+=1){const G=N[U];G instanceof Promise&&Y.push(G.then(q=>{N[U]=q}))}await Promise.all(Y);const ie=await this.#t.invoke({targetWin:this.#c,targetOrigin:this.#l,messageType:t.G.ObjectInvoke,messageBody:{objectId:k,functionName:H,functionParams:N}}),V=this.#E(ie);return this.#e.audit({message:"Guest proxy invoked Scripting Object method",scriptingObject:k,scriptingMethod:H,...this.#f()}),V};#w(k,H){return Object.entries(H).every(([N,Y])=>{const ie=k[N];if("eq"in Y)return ie===Y.eq;if("in"in Y)return Array.isArray(Y.in)&&Y.in.includes(ie);if("includes"in Y)return Array.isArray(ie)&&ie.includes(Y.includes);if("gt"in Y){const V=typeof ie=="number"?ie:Number(ie);return!Number.isNaN(V)&&V>Y.gt}if("lt"in Y){const V=typeof ie=="number"?ie:Number(ie);return!Number.isNaN(V)&&V<Y.lt}if("regex"in Y)try{const V=new RegExp(Y.regex);return typeof ie=="string"&&V.test(ie)}catch{return!1}return!1})}#E=k=>k?.type==="object"&&"object"in k?this.#b(k.object):k?.type==="value"?k.value:k;#A=({body:k})=>{k?.logLevel&&(this.#e.setLogLevel(k.logLevel),this.#e.debug(`Log level changed by host to ${k.logLevel}`)),this.#m=k?.guestId??null,this.#i=k?.guestTitle??null,this.#u=k?.guestUrl??null,this.#e.audit({message:"Received configuration from Host",...this.#f()})};#S=()=>{window.focus()};#C=async()=>{await this.close(),window.close()};#O=()=>{v()||setInterval(()=>{this.#c?.closed&&this.close().then(()=>{window.close()}).catch(()=>{})},1e3)};#T=async({sourceWin:k,sourceOrigin:H,requestId:N,body:Y})=>{const ie=this.#b(Y.object);if(ie){const V=(0,c._s)(ie.id,Y.eventName);this.#e.debug(`Received event "${V}" from host`);let U;Y.eventHandler?U=[{callback:window[Y.eventHandler],token:(0,r.A)()}]:U=this.#a.get(V)||[];const G=[];if(U.forEach(q=>{if(q?.callback){if(q.criteria&&!(Y.eventParams?this.#w(Y.eventParams,q.criteria):!1)){this.#e.debug(`Event ${V} did not match criteria for subscriber ${q.callback.name}`);return}this.#e.debug(`Invoking event subscriber ${q.callback.name} for event ${V}`);const re=q.callback({obj:ie,eventName:Y.eventName,eventParams:Y.eventParams,eventOptions:Y.eventOptions});re instanceof Promise?G.push(re):typeof re<"u"&&G.push(Promise.resolve(re))}}),N){const q=await Promise.all(G);this.#t.respond({targetWin:k,targetOrigin:H,requestId:N,response:q}),this.#e.audit({message:"Guest proxy processed event from host and responded",scriptingEventId:V,scriptingObject:ie.id,...this.#f()})}else this.#e.audit({message:"Guest proxy processed event from host",scriptingEventId:V,scriptingObject:ie.id,...this.#f()})}};#P=async()=>{!this.#d||!this.#h||!this.#p||await fetch(`${this.#p}/oauth2/v1/token/introspection?${new URLSearchParams({token:this.#d,client_id:this.#h}).toString()}`,{headers:{"content-type":"application/x-www-form-urlencoded;charset=UTF-8"},method:"POST"})};#D=async()=>{if(this.#d&&this.#h&&this.#p)try{await fetch(`${this.#p}/oauth2/v1/token/revocation?${new URLSearchParams({token:this.#d,client_id:this.#h}).toString()}`,{method:"POST"})}catch(k){this.#e.error(`Error revoking token. ${k.message}`)}finally{this.#d=null,this.#h=null}};#R=async()=>{if(this.#_)try{const k=await this.getObject("application");k?(this.#v=(0,n.throttle)(async()=>{try{await k.keepSessionAlive(),await this.#P()}catch(H){this.#e.error(`Error keeping session alive. ${H.message}`)}},this.#x,{leading:!1}),A.forEach(H=>{document.addEventListener(H,this.#v)})):this.#e.warn("Application object not available to send keep alive")}catch(k){this.#e.error(`Error getting application object. ${k.message}`)}};#k=async()=>{try{const k=await this.getObject("module");if(k?.log&&!this.#y.console){const{index:H="",team:N="",appName:Y=""}=this.#y||{};if(!H||!N||!Y)throw new Error("Missing one of required logger options: index, team, appName");this.#e=(0,l.logger)({transport:(0,l.parentApp)(k),index:H,team:N,appName:Y})}}catch(k){this.#e.info(`Module object not exposed from hosting application. using local logger instance. ${k.message}`)}};addScript=async(k,H)=>{if(!this.#o&&k){await this.connect();const N=document.createElement("script");N.setAttribute("src",k),N.setAttribute("type","module"),await new Promise(Y=>{const ie=()=>{N?.removeEventListener?.("load",ie),this.#o=!0,D(!0),Y()};N.addEventListener("load",ie),this.#r=H.appendChild(N)})}};close=async()=>{this.#s&&(this.#t.send({targetWin:this.#c,targetOrigin:this.#l,messageType:t.G.GuestClose,messageBody:{}}),this.#t.removeSender({origin:this.#l,window:this.#c}),this.#t.close(),this.#v&&A.forEach(k=>{document.removeEventListener(k,this.#v)}),await this.#D(),window.removeEventListener("beforeunload",this.close),this.#s=!1,this.#e.audit({message:"Guest disconnected from host",...this.#f()}),this.#m=null,this.#u=null,this.#i=null)};connect=async k=>{if(!this.#s){let H=window,N={...y};if(k){H=k.window||H;const ie={...k};delete ie.window,N=Object.assign(N,ie)}const Y=await C();this.#l=Y.origin,this.#c=Y.window,this.#t.initialize(H),this.#t.addSender({origin:this.#l,window:this.#c}),this.#t.listen({messageType:t.G.ObjectEvent,callback:this.#T.bind(this)}),this.#t.listen({messageType:t.G.HostConfig,callback:this.#A.bind(this)}),this.#t.listen({messageType:t.G.GuestFocus,callback:this.#S.bind(this)}),this.#t.listen({messageType:t.G.HostClose,callback:this.#C.bind(this)}),this.#t.send({targetWin:this.#c,targetOrigin:this.#l,messageType:t.G.GuestReady,messageBody:N}),this.#s=!0,this.#O(),this.#g&&await this.getAuthToken(),await this.#R(),window.addEventListener("beforeunload",this.close),this.#e.audit({message:"Guest connected to host",guestUrl:window.location.href})}};getAuthToken=async()=>{if(!this.#d&&this.#s)try{const k=await this.getObject("auth");if(k){const H=await k.getAccessToken();this.#d=H?.access_token,this.#p=H?.host_name,this.#h=H?.client_id}else this.#e.warn("Auth object not available to get access token from host")}catch(k){this.#e.error(`Error getting access token from auth object. ${k.message}`)}return this.#d};getObject=async k=>{if(this.#e.debug(`Retrieving scripting object "${k}" from host...`),!this.#s)throw new Error("Not connected to host");const H=await this.#t.invoke({targetWin:this.#c,targetOrigin:this.#l,messageType:t.G.ObjectGet,messageBody:{objectId:k}}),N=this.#b(H.object);return this.#e.audit({message:"Received scripting object from host",scriptingObject:k,...this.#f()}),N};listObjects=async()=>{if(this.#e.debug("Retrieving names of scripting objects exposed by host..."),!this.#s)throw new Error("Not connected to host");const k=await this.#t.invoke({targetWin:this.#c,targetOrigin:this.#l,messageType:t.G.ListObjects,messageBody:{}});return this.#e.audit({message:"Received names of all scripting objects exposed by host",objects:k,...this.#f()}),k};removeScript=()=>{if(this.#o&&this.#r){const{parentNode:k}=this.#r;k?.removeChild?.(this.#r)}};setLogLevel=k=>{this.#e.setLogLevel(k),this.#e.debug(`Log level changed by guest to ${k}`)};subscribe=k=>{const{eventId:H,criteria:N,callback:Y}=k;this.#e.debug(`Registering subscription for event ${H}`);const ie=this.#a.get(H.toLowerCase())||[],V=(0,r.A)();return ie.push({callback:Y,token:V,criteria:N}),this.#a.set(H.toLowerCase(),ie),this.#t.send({targetWin:this.#c,targetOrigin:this.#l,messageType:t.G.GuestEventSubscribe,messageBody:{eventId:H,criteria:N,token:V}}),this.#e.debug(`Subscribed to event ${H} with token ${V}`),V};unsubscribe=k=>{const{eventId:H,token:N}=k,Y=this.#a.get(H.toLowerCase());if(Y){const ie=Y.length,V=Y.filter(U=>U.token!==N);V.length<ie&&(this.#a.set(H.toLowerCase(),V),this.#t.send({targetWin:this.#c,targetOrigin:this.#l,messageType:t.G.GuestEventUnsubscribe,messageBody:{eventId:H,token:N}}),this.#e.debug(`Unsubscribed from event ${H}`))}}}},"./node_modules/.pnpm/@elliemae+ssf-host@2.21.3_@elliemae+pui-diagnostics@3.11.2/node_modules/@elliemae/ssf-host/dist/esm/host.js":(u,m,e)=>{"use strict";e.d(m,{P:()=>O});var r=e("./node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js"),n=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.2_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/remoting.js"),o=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.2_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObjectManager.js"),t=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.2_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/messageType.js"),i=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.2_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"),c=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.2_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"),l=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.2_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js"),h=(M=>(M.Popup="popup",M.Embed="embed",M))(h||{}),g=(M=>(M.AllowDownloadsWithoutUserActivation="allow-downloads-without-user-activation",M.AllowDownloads="allow-downloads",M.AllowForms="allow-forms",M.AllowModals="allow-modals",M.AllowOrientationLock="allow-orientation-lock",M.AllowPointerLock="allow-pointer-lock",M.AllowPopups="allow-popups",M.AllowPopupsToEscapeSandbox="allow-popups-to-escape-sandbox",M.AllowPresentation="allow-presentation",M.AllowSameOrigin="allow-same-origin",M.AllowScripts="allow-scripts",M.AllowStorageAccessByUserActivation="allow-storage-access-by-user-activation",M.AllowTopNavigation="allow-top-navigation",M.AllowTopNavigationByUserActivation="allow-top-navigation-by-user-activation",M))(g||{});const v=M=>{if(M==="about:blank")return"*";try{const{origin:w}=new URL(M);return w==="null"||!w?M:w}catch{const{origin:y}=new URL(M,document.baseURI);return y}},j=(M,w=[])=>{const y=w||[];return M&&M.forEach?M.forEach(x=>{j(x,y)}):typeof M<"u"&&y.push(M),y},P=M=>typeof M?._toJSON=="function";function E(M){return typeof M=="function"}const C=M=>M?.id??M;class T{id;title;url;searchParams;domElement;window;openMode;origin;initialized=!1;ready=!1;capabilities;#n;#e;constructor(w){const{guestId:y,domElement:x=null,title:R,url:A,window:I,searchParams:$={},openMode:ne=h.Embed,remoting:k,analyticsObj:H}=w;this.id=y,this.title=R,this.url=A,this.origin=v(A),this.searchParams=$,this.domElement=x,this.window=I,this.openMode=ne,this.capabilities={},this.#e=H,this.#n=k}dispose=()=>{if(this.openMode===h.Popup&&!this.window.closed)try{this.window.document,this.window.close()}catch{this.#n.send({targetWin:this.window,targetOrigin:this.origin,messageType:t.G.HostClose,messageBody:{}})}else this.domElement?.remove?.();this.#n.removeSender({origin:this.origin,window:this.window})};getInfo=()=>({guestId:this.id,guestTitle:this.title,guestUrl:this.url});handShake=()=>new Promise(w=>{let y=0;const x=5,R=setInterval(()=>{y>=x?(clearInterval(R),w(!1)):(this.#n.send({targetWin:this.window,targetOrigin:this.origin,messageType:t.G.HandShake,messageBody:{}}),y+=1)},1e3);this.#n.listen({messageType:t.G.HandShakeAck,callback:()=>{clearInterval(R),w(!0)}})});init=()=>{this.#n.addSender({origin:this.origin,window:this.window}),this.openMode===h.Popup&&this.handShake().catch(()=>{})};dispatchEvent=(w,y)=>(this.#e.startTiming(`ScriptingObject.Event.${w.object.objectId}.${w.eventName}`,{appId:this.id,appUrl:this.url}).catch(()=>{}),this.#n.invoke({targetWin:this.window,targetOrigin:this.origin,messageType:t.G.ObjectEvent,messageBody:w,responseTimeoutMs:y}).finally(()=>{this.#e.endTiming(`ScriptingObject.Event.${w.object.objectId}.${w.eventName}`,{appId:this.id,appUrl:this.url}).catch(()=>{})}));send=w=>{this.#n.send({targetWin:this.window,targetOrigin:this.origin,...w})}}const D=[g.AllowScripts,g.AllowPopups,g.AllowModals,g.AllowForms,g.AllowDownloads,g.AllowSameOrigin];class O{hostId;#n;#e;#t;#o;#r=new Map;#s=new Map;#a;#m=null;#i=null;#u=null;#l=null;constructor(w,y){if(this.hostId=w,!y?.logger)throw new Error("Logger is required");if(!y?.analyticsObj)throw new Error("Analytics object is required");if(this.#t=y.logger,this.#o=y.analyticsObj,this.#e=(0,r.A)(),this.#n=new n.K(this.#t,this.#e),y?.readyStateCallback&&typeof y?.readyStateCallback!="function")throw new Error("readyStateCallback must be a function");this.#m=y?.readyStateCallback||null,this.#u=y?.onGuestEventSubscribe||null,this.#l=y?.onGuestEventUnsubscribe||null,this.#a=new o.qE,this.#n.initialize(window),this.#R(),window.addEventListener("beforeunload",this.#h),this.#F(),this.#t.debug(`host is initialized. hostId: ${this.hostId}, correlationId: ${this.#e}`)}#c=(w,y)=>{const x={event:w,...y};this.#o.sendBAEvent(x).catch(()=>{})};#g=(w,y)=>{this.#o.startTiming(w,y).catch(()=>{})};#d=(w,y)=>{this.#o.endTiming(w,y).catch(()=>{})};#h=()=>{for(const w of this.#r.values())w.openMode===h.Popup&&this.unloadGuest(w.id)};#p=w=>Array.from(this.#r.values()).find(y=>y.window===w);#_=w=>{for(const y of this.#r.values())if(y.url===w)return y;return null};#x=w=>typeof w?._toJSON=="function";#y=(w,y)=>this.#x(w)?(this.#a.has(w?.id,y)||this.#a.addScriptingObject(w,y?{guestId:y?.id}:{}),{type:"object",object:w._toJSON()}):{type:"value",value:w};#v=w=>typeof w=="string"?w:w instanceof Error?w.message:"An unexpected error occurred in the host application";#f=w=>{w.ready&&this.#n.send({targetWin:w.window,targetOrigin:w.origin,messageType:t.G.HostConfig,messageBody:{logLevel:this.#t.getLogLevel(),...w.getInfo()}})};#b=({guest:w,obj:y,functionName:x,functionParams:R})=>{const A=y[x];return E(A)?(this.#t.debug(`Invoking host implementation of ${y.id}.${String(x)}()`),new Promise(I=>{Object.defineProperty(A,"callContext",{value:{guest:w},configurable:!0,enumerable:!0,writable:!0}),I(A(...R))})):(this.#t.warn(`Attempt to call invalid function on object type ${y.objectType}: ${String(x)}`),Promise.reject(new Error(`Method '${x}' not found in Scripting Object '${y.id}'`)))};#j=({sourceWin:w,sourceOrigin:y,requestId:x})=>{const R=this.#p(w);if(!R){this.#t.warn(`Received ready event for unknown guest. requestId: ${x}`);return}if(!R.initialized){this.#t.warn("Guest must be initialized before it is marked as ready"),this.#n.raiseException({targetWin:w,targetOrigin:y,requestId:x,ex:"Guest must be initialized before it is marked as ready"});return}if(!R.ready){R.ready=!0;const A=R.getInfo();this.#d("SSF.Guest.Load",{appId:A.guestId,appUrl:A.guestUrl}),this.#f(R),this.#m?.(R),this.#t.audit({message:"Guest is ready",...A})}};#w=({sourceWin:w,sourceOrigin:y,requestId:x,body:R})=>{const A=this.#p(w);if(!A){this.#t.warn(`Received ready event for unknown guest. requestid = ${x}`);return}A.initialized||(A.initialized=!0,A.capabilities=R||{},this.#t.audit({message:"Guest is initialized",...A.getInfo()})),(!R||!R.onReady)&&this.#j({sourceWin:w,sourceOrigin:y,requestId:x,type:"",body:null})};#E=async({sourceWin:w})=>{if(w?.window){const y=this.#I(w);y&&!await y.handShake()&&this.unloadGuest(w)}};#A=({sourceWin:w,sourceOrigin:y,requestId:x})=>{this.#t.debug(`Processing listObjects request. requestId = ${x}`);const R=this.#p(w);if(!R)return this.#t.warn("Rejected object request from unknown guest window"),!1;const A=this.#a.listScriptingObjects(R.id);return this.#n.respond({targetWin:w,targetOrigin:y,requestId:x,response:A}),this.#t.audit({message:"name of scripting objects returned",requestId:x,objects:A,...R.getInfo()}),!0};#S=({sourceWin:w,sourceOrigin:y,requestId:x,body:R})=>{const{objectId:A}=R;this.#t.debug(`Processing getObject request for object ${A}. requestId = ${x}`);const I=this.#p(w);if(!I)return this.#t.warn("Rejected object request from unknown guest window"),!1;const $=this.getScriptingObject(A,{guest:I});return $?(this.#n.respond({targetWin:w,targetOrigin:y,requestId:x,response:this.#y($,I)}),this.#t.audit({message:"Scripting Object returned",requestId:x,scriptingObject:A,...I.getInfo()}),!0):(this.#t.warn(`unknown or unauthorized object ${A} from guest ${I.id}`),this.#n.raiseException({targetWin:w,targetOrigin:y,requestId:x,ex:`The requested object (${A}) is not available`}),!1)};#C=({sourceWin:w,requestId:y,body:x})=>{const{eventId:R,criteria:A,token:I}=x;this.#t.debug(`Processing guest event subscribe request for event ${R}. requestId = ${y}`);const $=this.#p(w);if(!$){this.#t.warn("Rejected event subscribe request from unknown guest window");return}setTimeout(()=>{try{this.#u?.({guestId:$.id,eventId:R,criteria:A,token:I})}catch{}},0)};#O=({sourceWin:w,requestId:y,body:x})=>{const{eventId:R,token:A}=x;this.#t.debug(`Processing guest event unsubscribe request for event ${R}. requestId = ${y}`);const I=this.#p(w);if(!I){this.#t.warn("Rejected event unsubscribe request from unknown guest window");return}setTimeout(()=>{try{this.#l?.({guestId:I.id,eventId:R,token:A})}catch{}},0)};#T=({sourceWin:w,requestId:y,body:x})=>{const R=this.#p(w);if(!R){this.#t.warn(`Received resize event from unknown guest. requestid = ${y}`);return}R.domElement&&(R.domElement.style.height=`${x.height}px`),this.#t.debug(`Guest ${R.id} resized to ${x.width}x${x.height}`)};#P=({sourceWin:w,sourceOrigin:y,requestId:x,body:R})=>{const{objectId:A}=R,I=this.#p(w);if(!I)return this.#t.warn("Rejected method invocation request from unknown guest window"),!1;this.#t.debug(`Function ${A}.${String(R.functionName)}() called from guest "${I.id}" (requestId = ${x})`);const $=this.getScriptingObject(A,{guest:I});if(!$)return this.#t.warn(`Invocation of unknown or unauthorized object ${A} from guest ${I.id}`),this.#n.raiseException({targetWin:w,targetOrigin:y,requestId:x,ex:`The requested object (${A}) is not available`}),!1;const ne=I.getInfo();return this.#g(`ScriptingObject.API.${A}.${R.functionName}`,{appId:ne.guestId,appUrl:ne.guestUrl}),this.#b({guest:I,obj:$,functionName:R.functionName,functionParams:R.functionParams}).then(k=>{this.#n.respond({targetWin:w,targetOrigin:y,requestId:x,response:this.#y(k,I)}),this.#t.audit({message:"Value returned for Scripting Object method call",requestId:x,scriptingObject:A,scriptingMethod:R.functionName,...ne})}).catch(k=>{this.#n.raiseException({targetWin:w,targetOrigin:I.origin,requestId:x,ex:k}),this.#t.audit({message:"Exception thrown for Scripting Object method call",requestId:x,scriptingObject:A,scriptingMethod:R.functionName,...ne})}).finally(()=>{this.#d(`ScriptingObject.API.${A}.${R.functionName}`,{appId:ne.guestId,appUrl:ne.guestUrl})}),!0};#D=()=>{this.#n.listen({messageType:t.G.GuestResize,callback:this.#T})};#R=()=>{this.#n.listen({messageType:t.G.GuestReady,callback:this.#w}),this.#n.listen({messageType:t.G.GuestReadyComplete,callback:this.#j}),this.#n.listen({messageType:t.G.GuestClose,callback:this.#E}),this.#n.listen({messageType:t.G.ListObjects,callback:this.#A}),this.#n.listen({messageType:t.G.ObjectGet,callback:this.#S}),this.#n.listen({messageType:t.G.ObjectInvoke,callback:this.#P}),this.#n.listen({messageType:t.G.GuestEventSubscribe,callback:this.#C}),this.#n.listen({messageType:t.G.GuestEventUnsubscribe,callback:this.#O})};#k=w=>w instanceof i.b3||typeof w?.subscribe=="function";#M=w=>{const y=new T({...w,remoting:this.#n,analyticsObj:this.#o});return y.init(),this.#r.set(w.guestId,y),y};#I=w=>{let y=typeof w=="string"?this.#r.get(w):null;return y||(y=Array.from(this.#r.values()).find(x=>x.window===w||x.domElement===w)),y};#F=()=>{this.#i=setInterval(()=>{const w=[];this.#r.forEach(y=>{y.openMode===h.Popup&&y.window.closed&&w.push(y)}),w.forEach(y=>{const{id:x}=y;this.unloadGuest(x),this.#s.get(x)?.forEach(A=>{A({id:x}).catch(()=>{})})})},1e3)};#L=w=>{const{url:y,title:x,popupWindowFeatures:R={},searchParams:A,guestId:I,onLoad:$,onError:ne}=w,{width:k=800,height:H=600,top:N=100,left:Y=100}=R;let ie=this.#_(y);if(ie)ie.window.closed||ie.send({messageType:t.G.GuestFocus,messageBody:{}});else{const V=[{key:"width",value:k},{key:"height",value:H},{key:"top",value:N},{key:"left",value:Y}].reduce((G,q,re)=>(re>0&&q.value&&(G+=","),q.value?`${G}${q.key}=${q.value}`:G),""),U=window.open(y,x,`popup, ${V}`);if(U)try{setTimeout(()=>{$?.(I)},0)}catch(G){this.#t.debug(`Error occurred in onLoad for guest with id '${I}': ${G.message}`)}else{try{setTimeout(()=>{ne?.(I)},0)}catch(G){this.#t.debug(`Error occurred in onError for guest with id '${I}': ${G.message}`)}throw new Error("Failed to open guest application in popup window")}U.opener=null,ie=this.#M({guestId:I,window:U,title:x,url:y,searchParams:A,openMode:h.Popup})}return ie};#N=w=>{const{url:y,title:x,targetElement:R,searchParams:A,guestId:I,onLoad:$,onError:ne,options:k={}}=w,H=R.ownerDocument??document,{fitToContent:N=!1,disableSandbox:Y=!1,sandboxValues:ie=[],customSandboxValues:V=[],style:U="",permissionPolicy:G=""}=k;if(!x)throw new Error("title is required");N&&this.#D();const q=H.createElement("iframe");q.setAttribute("id",I);const re=()=>{setTimeout(()=>{try{$?.(I)}catch(Ae){this.#t.debug(`Error occurred in onLoad for guest with id '${I}': ${Ae.message}`)}},0),this.#t.debug(`frame loaded for guest with id '${I}'`),q.removeEventListener("load",re)},ee=()=>{setTimeout(()=>{try{ne?.(I)}catch(Ae){this.#t.debug(`Error occurred in onError for guest with id '${I}': ${Ae.message}`)}},0),this.#t.error(`frame load failed for guest with id '${I}'`),q.removeEventListener("error",ee)};q.addEventListener("load",re),q.addEventListener("error",ee),q.setAttribute("style",`min-width: 100%; height: 100%; border: 0px; ${U}`),Y||q.setAttribute("sandbox",V.length>0?V.join(" "):[...D,...ie].join(" ")),q.setAttribute("title",x),q.setAttribute("src",y),G&&q.setAttribute("allow",G),R.appendChild(q);const de=H.getElementById(I);return this.#M({guestId:I,domElement:de,window:de.contentWindow,title:x,url:y,searchParams:A,openMode:h.Embed})};#B=(w,y)=>{let x="";return Object.keys(y).forEach(R=>{x+=`${(x.length?"&":"")+encodeURIComponent(R)}=${encodeURIComponent(y[R])}`}),w+(x?(w.indexOf("?")>=0?"&":"?")+x:"")};addScriptingObject=(w,y)=>{if((0,c.h)(w)){const x=this.cloneScriptingObject(w);this.#a.addScriptingObject(x,y)}else this.#a.addScriptingObject(w,y)};cloneScriptingObject=w=>{if(!w)throw new Error("proxy is required");const y=new l.P(w.id,w.objectType);let x=[];return Object.keys(w).forEach(R=>{const A=w[R];if(this.#k(A)){const I=new i.Jh({name:A.name||R,objectId:y.id});if(Object.defineProperty(y,R,{value:I,enumerable:!0}),A instanceof i.b3){const $=({eventParams:k,eventOptions:H})=>this.dispatchEvent({event:I,eventParams:k,eventOptions:H}),ne=A.subscribe($);x.push(()=>{A.unsubscribe(ne)})}else{const $=A.subscribe?.((ne,k,H)=>this.dispatchEvent({event:I,eventParams:k,eventOptions:H}));x.push(()=>{A.unsubscribe?.($)})}}else if(E(A)&&(Object.defineProperty(y,R,{value:async(...I)=>{const $=await A(...I);return(0,c.h)($)?this.cloneScriptingObject($):$},enumerable:!0}),R==="dispose")){const I=y.dispose;Object.defineProperty(y,R,{value:()=>(y._dispose(),I.apply(y)),enumerable:!0})}}),y._dispose=()=>{x.forEach(R=>{R?.()}),x=[]},y};close=()=>{clearInterval(this.#i),this.#h(),this.#n.close(),window.removeEventListener("beforeunload",this.#h),this.#t.debug(`host is closed. hostId: ${this.hostId}, correlationId: ${this.#e}`)};dispatchEvent=async w=>{const{event:{id:y,name:x},eventParams:R,eventOptions:A={}}=w,{eventHandler:I=null,timeout:$=null,window:ne=null,guestId:k}=A,H=y.split(".")[0],N=k||ne,Y=N?this.#I(N):null,ie=Y?this.getScriptingObject(H,{guest:Y}):this.getScriptingObject(H);if(!ie)return this.#t.warn(`Attempt to dispatch event ${x} on unknown object ${H}`),Promise.resolve([]);const V={object:ie._toJSON(),eventName:x,eventParams:R,eventHandler:I,eventOptions:{allowsFeedback:!1}};$&&!Number.isNaN($)&&(V.eventOptions={allowsFeedback:!0,timeout:Number($)});const U=[];let G=!1;return this.#r.forEach(re=>{const ee=re.getInfo();(!ne||ne===re.window)&&($&&re?.capabilities?.eventFeedback?(U.push(re.dispatchEvent(V,$)),G||(this.#g(`ScriptingObject.Event.${ie.id}.${x}`,{appId:this.hostId,appUrl:window.location.href}),G=!0),this.#t.audit({message:"Event dispatched and awaiting feedback",scriptingEventId:y,...ee})):(re.send({messageType:t.G.ObjectEvent,messageBody:V}),this.#t.audit({message:"Event dispatched",scriptingEventId:y,...ee})))}),await Promise.all(U).then(re=>(this.#t.audit({message:"Event feedback received",scriptingEventId:y}),j(re))).catch(re=>{throw this.#t.error({message:"Error processing event",eventId:y,exception:re}),re}).finally(()=>{G&&this.#d(`ScriptingObject.Event.${ie.id}.${x}`,{appId:this.hostId,appUrl:window.location.href})})};getGuests=()=>{const w=[];return this.#r.forEach(y=>{w.push(y)}),w};getScriptingObject=(w,y)=>this.#a.getObject(w,y?.guest);loadGuest=w=>{const{id:y,url:x,targetElement:R,title:A,searchParams:I={},onLoad:$,onError:ne,options:k={}}=w;if(!y)throw new Error("id for guest application is required");const{openMode:H=h.Embed,popupWindowFeatures:N={}}=k,Y=this.#B(x,I);let ie=null;if(this.#g("SSF.Guest.Load",{appId:y,appUrl:Y}),H===h.Popup)ie=this.#L({guestId:y,url:Y,title:A,searchParams:I,popupWindowFeatures:N,onLoad:$,onError:ne});else if(H===h.Embed)ie=this.#N({guestId:y,url:Y,title:A,targetElement:R,searchParams:I,onLoad:$,onError:ne,options:k});else throw new Error(`Invalid openMode: ${H}`);return this.#t.audit({message:"Guest loaded",...ie.getInfo()}),ie};loadGuests=w=>{const{id:y,url:x,targetElement:R,title:A,searchParamsList:I=[],options:$={}}=w;I.forEach((ne,k)=>{this.loadGuest({id:`${y}-${k}`,url:x,title:A,targetElement:R,searchParams:ne,options:$})},this)};removeAllScriptingObjects=w=>{this.#a.removeAllScriptingObjects(w)};removeScriptingObject=(w,y)=>{this.#a.removeScriptingObject(w,y)};setLogLevel=w=>{this.#t.setLogLevel(w),this.#r.forEach(this.#f),this.#t.debug("Dispatched config events to all guests")};unloadGuest=w=>{const y=this.#I(w);y&&(y.dispose(),this.#r.delete(y.id),this.#t.audit({message:"Guest is removed from host",...y.getInfo()}))};onGuestClose=w=>{const{id:y,guestCloseCallback:x}=w,R=this.#s.get(y)||[];R.push(x),this.#s.set(y,R)}}},"./node_modules/.pnpm/@emotion+memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js":(u,m,e)=>{"use strict";e.d(m,{A:()=>r});function r(n){var o=Object.create(null);return function(t){return o[t]===void 0&&(o[t]=n(t)),o[t]}}},"./node_modules/.pnpm/@reduxjs+toolkit@1.9.7_react-redux@8.1.3_react@18.3.1/node_modules/@reduxjs/toolkit/dist/query/rtk-query.esm.js":(u,m,e)=>{"use strict";e.d(m,{$k:()=>Ze});var r=e("./node_modules/.pnpm/@reduxjs+toolkit@1.9.7_react-redux@8.1.3_react@18.3.1/node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js"),n=e("./node_modules/.pnpm/immer@9.0.21/node_modules/immer/dist/immer.esm.js"),o="NOT_FOUND";function t(Qe){var Xn;return{get:function(ln){return Xn&&Qe(Xn.key,ln)?Xn.value:o},put:function(ln,Jn){Xn={key:ln,value:Jn}},getEntries:function(){return Xn?[Xn]:[]},clear:function(){Xn=void 0}}}function i(Qe,Xn){var Yn=[];function ln(Rt){var at=Yn.findIndex(function(Wt){return Xn(Rt,Wt.key)});if(at>-1){var Bt=Yn[at];return at>0&&(Yn.splice(at,1),Yn.unshift(Bt)),Bt.value}return o}function Jn(Rt,at){ln(Rt)===o&&(Yn.unshift({key:Rt,value:at}),Yn.length>Qe&&Yn.pop())}function bn(){return Yn}function Zn(){Yn=[]}return{get:ln,put:Jn,getEntries:bn,clear:Zn}}var c=function(Xn,Yn){return Xn===Yn};function l(Qe){return function(Yn,ln){if(Yn===null||ln===null||Yn.length!==ln.length)return!1;for(var Jn=Yn.length,bn=0;bn<Jn;bn++)if(!Qe(Yn[bn],ln[bn]))return!1;return!0}}function h(Qe,Xn){var Yn=typeof Xn=="object"?Xn:{equalityCheck:Xn},ln=Yn.equalityCheck,Jn=ln===void 0?c:ln,bn=Yn.maxSize,Zn=bn===void 0?1:bn,Rt=Yn.resultEqualityCheck,at=l(Jn),Bt=Zn===1?t(at):i(Zn,at);function Wt(){var b=Bt.get(arguments);if(b===o){if(b=Qe.apply(null,arguments),Rt){var J=Bt.getEntries(),we=J.find(function(Ie){return Rt(Ie.value,b)});we&&(b=we.value)}Bt.put(arguments,b)}return b}return Wt.clearCache=function(){return Bt.clear()},Wt}function g(Qe){var Xn=Array.isArray(Qe[0])?Qe[0]:Qe;if(!Xn.every(function(ln){return typeof ln=="function"})){var Yn=Xn.map(function(ln){return typeof ln=="function"?"function "+(ln.name||"unnamed")+"()":typeof ln}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+Yn+"]")}return Xn}function v(Qe){for(var Xn=arguments.length,Yn=new Array(Xn>1?Xn-1:0),ln=1;ln<Xn;ln++)Yn[ln-1]=arguments[ln];var Jn=function(){for(var Zn=arguments.length,Rt=new Array(Zn),at=0;at<Zn;at++)Rt[at]=arguments[at];var Bt=0,Wt,b={memoizeOptions:void 0},J=Rt.pop();if(typeof J=="object"&&(b=J,J=Rt.pop()),typeof J!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof J+"]");var we=b,Ie=we.memoizeOptions,On=Ie===void 0?Yn:Ie,dn=Array.isArray(On)?On:[On],Q=g(Rt),pe=Qe.apply(void 0,[function(){return Bt++,J.apply(null,arguments)}].concat(dn)),ge=Qe(function(){for(var ke=[],Je=Q.length,Mn=0;Mn<Je;Mn++)ke.push(Q[Mn].apply(null,arguments));return Wt=pe.apply(null,ke),Wt});return Object.assign(ge,{resultFunc:J,memoizedResultFunc:pe,dependencies:Q,lastResult:function(){return Wt},recomputations:function(){return Bt},resetRecomputations:function(){return Bt=0}}),ge};return Jn}var j=v(h),P=function(Xn,Yn){if(Yn===void 0&&(Yn=j),typeof Xn!="object")throw new Error("createStructuredSelector expects first argument to be an object "+("where each property is a selector, instead received a "+typeof Xn));var ln=Object.keys(Xn),Jn=Yn(ln.map(function(bn){return Xn[bn]}),function(){for(var bn=arguments.length,Zn=new Array(bn),Rt=0;Rt<bn;Rt++)Zn[Rt]=arguments[Rt];return Zn.reduce(function(at,Bt,Wt){return at[ln[Wt]]=Bt,at},{})});return Jn},E=e("./node_modules/.pnpm/redux@4.2.1/node_modules/redux/es/redux.js"),C=e("./node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js"),T=function(Qe,Xn){var Yn={label:0,sent:function(){if(bn[0]&1)throw bn[1];return bn[1]},trys:[],ops:[]},ln,Jn,bn,Zn;return Zn={next:Rt(0),throw:Rt(1),return:Rt(2)},typeof Symbol=="function"&&(Zn[Symbol.iterator]=function(){return this}),Zn;function Rt(Bt){return function(Wt){return at([Bt,Wt])}}function at(Bt){if(ln)throw new TypeError("Generator is already executing.");for(;Yn;)try{if(ln=1,Jn&&(bn=Bt[0]&2?Jn.return:Bt[0]?Jn.throw||((bn=Jn.return)&&bn.call(Jn),0):Jn.next)&&!(bn=bn.call(Jn,Bt[1])).done)return bn;switch(Jn=0,bn&&(Bt=[Bt[0]&2,bn.value]),Bt[0]){case 0:case 1:bn=Bt;break;case 4:return Yn.label++,{value:Bt[1],done:!1};case 5:Yn.label++,Jn=Bt[1],Bt=[0];continue;case 7:Bt=Yn.ops.pop(),Yn.trys.pop();continue;default:if(bn=Yn.trys,!(bn=bn.length>0&&bn[bn.length-1])&&(Bt[0]===6||Bt[0]===2)){Yn=0;continue}if(Bt[0]===3&&(!bn||Bt[1]>bn[0]&&Bt[1]<bn[3])){Yn.label=Bt[1];break}if(Bt[0]===6&&Yn.label<bn[1]){Yn.label=bn[1],bn=Bt;break}if(bn&&Yn.label<bn[2]){Yn.label=bn[2],Yn.ops.push(Bt);break}bn[2]&&Yn.ops.pop(),Yn.trys.pop();continue}Bt=Xn.call(Qe,Yn)}catch(Wt){Bt=[6,Wt],Jn=0}finally{ln=bn=0}if(Bt[0]&5)throw Bt[1];return{value:Bt[0]?Bt[1]:void 0,done:!0}}},D=function(Qe,Xn){for(var Yn=0,ln=Xn.length,Jn=Qe.length;Yn<ln;Yn++,Jn++)Qe[Jn]=Xn[Yn];return Qe},O=Object.defineProperty,M=Object.defineProperties,w=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,A=function(Qe,Xn,Yn){return Xn in Qe?O(Qe,Xn,{enumerable:!0,configurable:!0,writable:!0,value:Yn}):Qe[Xn]=Yn},I=function(Qe,Xn){for(var Yn in Xn||(Xn={}))x.call(Xn,Yn)&&A(Qe,Yn,Xn[Yn]);if(y)for(var ln=0,Jn=y(Xn);ln<Jn.length;ln++){var Yn=Jn[ln];R.call(Xn,Yn)&&A(Qe,Yn,Xn[Yn])}return Qe},$=function(Qe,Xn){return M(Qe,w(Xn))},ne=function(Qe,Xn){var Yn={};for(var ln in Qe)x.call(Qe,ln)&&Xn.indexOf(ln)<0&&(Yn[ln]=Qe[ln]);if(Qe!=null&&y)for(var Jn=0,bn=y(Qe);Jn<bn.length;Jn++){var ln=bn[Jn];Xn.indexOf(ln)<0&&R.call(Qe,ln)&&(Yn[ln]=Qe[ln])}return Yn},k=function(Qe,Xn,Yn){return new Promise(function(ln,Jn){var bn=function(at){try{Rt(Yn.next(at))}catch(Bt){Jn(Bt)}},Zn=function(at){try{Rt(Yn.throw(at))}catch(Bt){Jn(Bt)}},Rt=function(at){return at.done?ln(at.value):Promise.resolve(at.value).then(bn,Zn)};Rt((Yn=Yn.apply(Qe,Xn)).next())})},H;(function(Qe){Qe.uninitialized="uninitialized",Qe.pending="pending",Qe.fulfilled="fulfilled",Qe.rejected="rejected"})(H||(H={}));function N(Qe){return{status:Qe,isUninitialized:Qe===H.uninitialized,isLoading:Qe===H.pending,isSuccess:Qe===H.fulfilled,isError:Qe===H.rejected}}function Y(Qe){return new RegExp("(^|:)//").test(Qe)}var ie=function(Qe){return Qe.replace(/\/$/,"")},V=function(Qe){return Qe.replace(/^\//,"")};function U(Qe,Xn){if(!Qe)return Xn;if(!Xn)return Qe;if(Y(Xn))return Xn;var Yn=Qe.endsWith("/")||!Xn.startsWith("?")?"/":"";return Qe=ie(Qe),Xn=V(Xn),""+Qe+Yn+Xn}var G=function(Qe){return[].concat.apply([],Qe)};function q(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}function re(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var ee=r.Qd;function de(Qe,Xn){if(Qe===Xn||!(ee(Qe)&&ee(Xn)||Array.isArray(Qe)&&Array.isArray(Xn)))return Xn;for(var Yn=Object.keys(Xn),ln=Object.keys(Qe),Jn=Yn.length===ln.length,bn=Array.isArray(Xn)?[]:{},Zn=0,Rt=Yn;Zn<Rt.length;Zn++){var at=Rt[Zn];bn[at]=de(Qe[at],Xn[at]),Jn&&(Jn=Qe[at]===bn[at])}return Jn?Qe:bn}var Ae=function(){for(var Qe=[],Xn=0;Xn<arguments.length;Xn++)Qe[Xn]=arguments[Xn];return fetch.apply(void 0,Qe)},be=function(Qe){return Qe.status>=200&&Qe.status<=299},Ce=function(Qe){return/ion\/(vnd\.api\+)?json/.test(Qe.get("content-type")||"")};function qe(Qe){if(!isPlainObject2(Qe))return Qe;for(var Xn=I({},Qe),Yn=0,ln=Object.entries(Xn);Yn<ln.length;Yn++){var Jn=ln[Yn],bn=Jn[0],Zn=Jn[1];Zn===void 0&&delete Xn[bn]}return Xn}function je(Qe){var Xn=this;Qe===void 0&&(Qe={});var Yn=Qe,ln=Yn.baseUrl,Jn=Yn.prepareHeaders,bn=Jn===void 0?function(ge){return ge}:Jn,Zn=Yn.fetchFn,Rt=Zn===void 0?Ae:Zn,at=Yn.paramsSerializer,Bt=Yn.isJsonContentType,Wt=Bt===void 0?Ce:Bt,b=Yn.jsonContentType,J=b===void 0?"application/json":b,we=Yn.jsonReplacer,Ie=Yn.timeout,On=Yn.responseHandler,dn=Yn.validateStatus,Q=ne(Yn,["baseUrl","prepareHeaders","fetchFn","paramsSerializer","isJsonContentType","jsonContentType","jsonReplacer","timeout","responseHandler","validateStatus"]);return typeof fetch>"u"&&Rt===Ae&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(ge,De){return k(Xn,null,function(){var ke,Je,Mn,Kn,An,Wn,nt,mt,$t,Xt,Fe,yn,Dn,Qn,It,Ct,St,ir,Cr,cr,Yt,nr,jr,wr,gt,hr,ur,Ur,vr,Lr,Ar,xo,Jr,Gr,Yr,oo;return T(this,function(Ao){switch(Ao.label){case 0:return ke=De.signal,Je=De.getState,Mn=De.extra,Kn=De.endpoint,An=De.forced,Wn=De.type,mt=typeof ge=="string"?{url:ge}:ge,$t=mt.url,Xt=mt.headers,Fe=Xt===void 0?new Headers(Q.headers):Xt,yn=mt.params,Dn=yn===void 0?void 0:yn,Qn=mt.responseHandler,It=Qn===void 0?On??"json":Qn,Ct=mt.validateStatus,St=Ct===void 0?dn??be:Ct,ir=mt.timeout,Cr=ir===void 0?Ie:ir,cr=ne(mt,["url","headers","params","responseHandler","validateStatus","timeout"]),Yt=I($(I({},Q),{signal:ke}),cr),Fe=new Headers(qe(Fe)),nr=Yt,[4,bn(Fe,{getState:Je,extra:Mn,endpoint:Kn,forced:An,type:Wn})];case 1:nr.headers=Ao.sent()||Fe,jr=function(ss){return typeof ss=="object"&&(isPlainObject2(ss)||Array.isArray(ss)||typeof ss.toJSON=="function")},!Yt.headers.has("content-type")&&jr(Yt.body)&&Yt.headers.set("content-type",J),jr(Yt.body)&&Wt(Yt.headers)&&(Yt.body=JSON.stringify(Yt.body,we)),Dn&&(wr=~$t.indexOf("?")?"&":"?",gt=at?at(Dn):new URLSearchParams(qe(Dn)),$t+=wr+gt),$t=U(ln,$t),hr=new Request($t,Yt),ur=new Request($t,Yt),nt={request:ur},vr=!1,Lr=Cr&&setTimeout(function(){vr=!0,De.abort()},Cr),Ao.label=2;case 2:return Ao.trys.push([2,4,5,6]),[4,Rt(hr)];case 3:return Ur=Ao.sent(),[3,6];case 4:return Ar=Ao.sent(),[2,{error:{status:vr?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(Ar)},meta:nt}];case 5:return Lr&&clearTimeout(Lr),[7];case 6:xo=Ur.clone(),nt.response=xo,Gr="",Ao.label=7;case 7:return Ao.trys.push([7,9,,10]),[4,Promise.all([pe(Ur,It).then(function(ss){return Jr=ss},function(ss){return Yr=ss}),xo.text().then(function(ss){return Gr=ss},function(){})])];case 8:if(Ao.sent(),Yr)throw Yr;return[3,10];case 9:return oo=Ao.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:Ur.status,data:Gr,error:String(oo)},meta:nt}];case 10:return[2,St(Ur,Jr)?{data:Jr,meta:nt}:{error:{status:Ur.status,data:Jr},meta:nt}]}})})};function pe(ge,De){return k(this,null,function(){var ke;return T(this,function(Je){switch(Je.label){case 0:return typeof De=="function"?[2,De(ge)]:(De==="content-type"&&(De=Wt(ge.headers)?"json":"text"),De!=="json"?[3,2]:[4,ge.text()]);case 1:return ke=Je.sent(),[2,ke.length?JSON.parse(ke):null];case 2:return[2,ge.text()]}})})}}var Ge=function(){function Qe(Xn,Yn){Yn===void 0&&(Yn=void 0),this.value=Xn,this.meta=Yn}return Qe}();function un(Qe,Xn){return Qe===void 0&&(Qe=0),Xn===void 0&&(Xn=5),k(this,null,function(){var Yn,ln;return T(this,function(Jn){switch(Jn.label){case 0:return Yn=Math.min(Qe,Xn),ln=~~((Math.random()+.4)*(300<<Yn)),[4,new Promise(function(bn){return setTimeout(function(Zn){return bn(Zn)},ln)})];case 1:return Jn.sent(),[2]}})})}function cn(Qe){throw Object.assign(new Ge({error:Qe}),{throwImmediately:!0})}var Ln={},Nn=function(Qe,Xn){return function(Yn,ln,Jn){return k(void 0,null,function(){var bn,Zn,Rt,at,Bt,Wt,b;return T(this,function(J){switch(J.label){case 0:bn=[5,(Xn||Ln).maxRetries,(Jn||Ln).maxRetries].filter(function(we){return we!==void 0}),Zn=bn.slice(-1)[0],Rt=function(we,Ie,On){var dn=On.attempt;return dn<=Zn},at=I(I({maxRetries:Zn,backoff:un,retryCondition:Rt},Xn),Jn),Bt=0,J.label=1;case 1:J.label=2;case 2:return J.trys.push([2,4,,6]),[4,Qe(Yn,ln,Jn)];case 3:if(Wt=J.sent(),Wt.error)throw new Ge(Wt);return[2,Wt];case 4:if(b=J.sent(),Bt++,b.throwImmediately){if(b instanceof Ge)return[2,b.value];throw b}return b instanceof Ge&&!at.retryCondition(b.value.error,Yn,{attempt:Bt,baseQueryApi:ln,extraOptions:Jn})?[2,b.value]:[4,at.backoff(Bt,at.maxRetries)];case 5:return J.sent(),[3,6];case 6:return[3,1];case 7:return[2]}})})}},In=Object.assign(Nn,{fail:cn}),qn=(0,r.VP)("__rtkq/focused"),jn=(0,r.VP)("__rtkq/unfocused"),ht=(0,r.VP)("__rtkq/online"),wn=(0,r.VP)("__rtkq/offline"),st=!1;function Ze(Qe,Xn){function Yn(){var ln=function(){return Qe(qn())},Jn=function(){return Qe(jn())},bn=function(){return Qe(ht())},Zn=function(){return Qe(wn())},Rt=function(){window.document.visibilityState==="visible"?ln():Jn()};st||typeof window<"u"&&window.addEventListener&&(window.addEventListener("visibilitychange",Rt,!1),window.addEventListener("focus",ln,!1),window.addEventListener("online",bn,!1),window.addEventListener("offline",Zn,!1),st=!0);var at=function(){window.removeEventListener("focus",ln),window.removeEventListener("visibilitychange",Rt),window.removeEventListener("online",bn),window.removeEventListener("offline",Zn),st=!1};return at}return Xn?Xn(Qe,{onFocus:qn,onFocusLost:jn,onOffline:wn,onOnline:ht}):Yn()}var rt;(function(Qe){Qe.query="query",Qe.mutation="mutation"})(rt||(rt={}));function At(Qe){return Qe.type===rt.query}function yt(Qe){return Qe.type===rt.mutation}function Bn(Qe,Xn,Yn,ln,Jn,bn){return wt(Qe)?Qe(Xn,Yn,ln,Jn).map(an).map(bn):Array.isArray(Qe)?Qe.map(an).map(bn):[]}function wt(Qe){return typeof Qe=="function"}function an(Qe){return typeof Qe=="string"?{type:Qe}:Qe}function En(Qe){return Qe!=null}var ft=Symbol("forceQueryFn"),tn=function(Qe){return typeof Qe[ft]=="function"};function te(Qe){var Xn=Qe.serializeQueryArgs,Yn=Qe.queryThunk,ln=Qe.mutationThunk,Jn=Qe.api,bn=Qe.context,Zn=new Map,Rt=new Map,at=Jn.internalActions,Bt=at.unsubscribeQueryResult,Wt=at.removeMutationResult,b=at.updateSubscriptionOptions;return{buildInitiateQuery:ge,buildInitiateMutation:De,getRunningQueryThunk:Ie,getRunningMutationThunk:On,getRunningQueriesThunk:dn,getRunningMutationsThunk:Q,getRunningOperationPromises:we,removalWarning:J};function J(){throw new Error(`This method had to be removed due to a conceptual bug in RTK.
|
|
1413
|
+
`,h),{}),t=l=>({space:{...l.spaces,xxxs:l.spaces[1],xxs:l.spaces[2],xxs2:l.spaces[3],xs:l.spaces[4],s:l.spaces[5],m:l.spaces[6],l:l.spaces[7],xl:l.spaces[8],xxl:l.spaces[9]},fontSizes:{...l.fontSizes,title:{500:l.fontSizes[3],600:l.fontSizes[4],700:l.fontSizes[5],800:l.fontSizes[6],900:l.fontSizes[7]},subTitle:{300:l.fontSizes[1],400:l.fontSizes[2]},label:{200:l.fontSizes[0],300:l.fontSizes[1],400:l.fontSizes[2]},value:{300:l.fontSizes[1],400:l.fontSizes[2],500:l.fontSizes[3],600:l.fontSizes[4]},hyperlink:{200:l.fontSizes[0],300:l.fontSizes[1],400:l.fontSizes[2]},microText:{200:l.fontSizes[0]}},fontWeights:{...l.fontWeights,thin:l.fontWeights[0],light:l.fontWeights[1],regular:l.fontWeights[3],semibold:l.fontWeights[5],bold:l.fontWeights[8]},lineHeights:{...l.lineHeights,r:l.lineHeights[0],m:l.lineHeights[1],l:l.lineHeights[2],xl:l.lineHeights[3]},letterSpacings:{normal:l.letterSpacings[0],tracked:l.letterSpacings[1],tight:l.letterSpacings[2],mega:l.letterSpacings[3]},fonts:{...l.fonts,default:l.fonts[0]},colors:{neutral:{"000":l.colors.neutral[0],"050":l.colors.neutral[1],"080":l.colors.neutral[2],100:l.colors.neutral[3],200:l.colors.neutral[4],300:l.colors.neutral[5],400:l.colors.neutral[6],500:l.colors.neutral[7],600:l.colors.neutral[8],700:l.colors.neutral[9],800:l.colors.neutral[10]},brand:{100:l.colors.brand[0],200:l.colors.brand[1],250:l.colors.brand[8],300:l.colors.brand[2],400:l.colors.brand[3],500:l.colors.brand[4],600:l.colors.brand[5],700:l.colors.brand[6],800:l.colors.brand[7]},success:{300:l.colors.success[0],400:l.colors.success[1],600:l.colors.success[2],900:l.colors.success[3],950:l.colors.success[4]},warning:{400:l.colors.warning[0],500:l.colors.warning[1],600:l.colors.warning[1],900:l.colors.warning[2],950:l.colors.warning[3]},danger:{200:l.colors.danger[0],400:l.colors.danger[1],600:l.colors.danger[2],900:l.colors.danger[3],950:l.colors.danger[4]}},shadows:{xs:l.shadows[0],s:l.shadows[1],m:l.shadows[2],l:l.shadows[3],xl:l.shadows[4]},breakpoints:{...l.breakpoints,xsmall:l.breakpoints[3],small:l.breakpoints[0],medium:l.breakpoints[1],large:l.breakpoints[2]},media:o({xsmall:l.breakpoints[3],small:l.breakpoints[0],medium:l.breakpoints[1],large:l.breakpoints[2]}),zIndex:{dialog:l.zIndex[0],popper:l.zIndex[1],tooltip:l.zIndex[2],backdrop:l.zIndex[3],loader:l.zIndex[4]},states:{_:l.states[0],motionSafe:l.states[1],motionReduce:l.states[2],first:l.states[3],last:l.states[4],odd:l.states[5],even:l.states[6],visited:l.states[7],checked:l.states[8],focusWithin:l.states[9],hover:l.states[10],focus:l.states[11],focusVisible:l.states[12],active:l.states[13],disabled:l.states[14],placeholder:l.states[15]}}),c=((l=r())=>()=>t(l))()},"./node_modules/.pnpm/@elliemae+ssf-guest@2.21.3_@elliemae+pui-logrocket@1.1.16/node_modules/@elliemae/ssf-guest/dist/esm/guest.js":(u,m,e)=>{"use strict";e.d(m,{p:()=>$});var r=e("./node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js"),n=e("./node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js"),o=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/remoting.js"),t=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/messageType.js"),i=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"),c=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"),l=e("@elliemae/pui-diagnostics");const h=()=>{const{parent:ne}=window;try{return ne?.location?.href}catch{return null}},g=ne=>{if(!ne||ne==="about:blank")return"*";try{const{origin:k}=new URL(ne);return k==="null"||!k?ne:k}catch{const{origin:H}=new URL(ne,document.baseURI);return H}},v=()=>window.self!==window.parent,j=(ne,k)=>{const H=k||document.body,N=document.defaultView?.getComputedStyle?.(H,null),Y=N?N[ne]:"0";return parseInt(Y,10)},P=new RegExp("^https?://(.*.elliemae.io|.*.ellielabs.com|.*.ellieservices.com|.*.encompassloconnect.com|.*.ice.com|localhost:[0-9]+)","i"),E="elli:remoting",C=()=>new Promise(ne=>{if(v())ne({origin:g(document.referrer||h()),window:window.parent});else{const k=window,H=N=>{if(P.test(N.origin)){const{source:Y,type:ie}=N.data||{};if(Y===E&&ie===t.G.HandShake){const{origin:V}=N,U=N.source;(0,o._)({targetWin:U,targetOrigin:V,messageType:t.G.HandShakeAck,messageBody:{}}),k.removeEventListener("message",H),ne({origin:V,window:U})}}};k.addEventListener("message",H)}});let T=!1;const D=ne=>{T=ne},O=(ne=null)=>{let k=ne;const H=()=>{if(!k&&(k=window.ice?.guest?.SSFGuest?new window.ice.guest.SSFGuest:null,!k))throw new Error("Guest definition not found");return k};window.elli=window.elli??{},window.elli.script={guest:{create:async(N,Y)=>H().addScript(N,Y)},connect:async N=>(console.warn("elli.script.connect is deprecated. Please use connect method of SSFGuest class instead, const guest = new ice.guest.SSFGuest(); await guest.connect(params);"),H().connect(N)),getObject:async N=>(T||console.warn("elli.script.getObject is deprecated. Please use getObject method of SSFGuest class instead, const guest = new ice.guest.SSFGuest(); await guest.getObject(objectName);"),H().getObject(N)),setLogLevel:N=>(T||console.warn("elli.script.setLogLevel is deprecated. Please use setLogLevel method of SSFGuest class instead, const guest = new ice.guest.SSFGuest(); guest.setLogLevel(level);"),H().setLogLevel(N)),subscribe:(N,Y,ie)=>(T||console.warn("elli.script.subscribe is deprecated. Please use subscribe method of SSFGuest class instead, const guest = new ice.guest.SSFGuest(); guest.subscribe({ eventId: `${objectId}.${eventName}`, callback: (event) => { console.log(event); });"),H().subscribe({eventId:`${N}.${Y}`,callback:V=>ie(V?.obj,V?.eventParams,V?.eventOptions)})),unsubscribe:(N,Y,ie)=>(T||console.warn("elli.script.unsubscribe is deprecated. Please use unsubscribe method of SSFGuest class instead, const guest = new ice.guest.SSFGuest(); guest.unsubscribe({ eventId: `${objectId}.${eventName}`, token });"),H().unsubscribe({eventId:`${N}.${Y}`,token:ie}))}};O();var M=(ne=>(ne.OBJECT="object",ne.VALUE="value",ne))(M||{});const w=12e4,y={eventFeedback:!0},x=()=>{const{document:ne}=window,k=ne.body,H=ne.documentElement,Y={height:k.offsetHeight+j("marginTop")+j("marginBottom"),width:Math.max(k.scrollWidth,H.scrollWidth)};(0,o._)({targetWin:window.parent,targetOrigin:g(ne.referrer||h()),messageType:t.G.GuestResize,messageBody:Y}),window.removeEventListener("load",x)};v()&&window.addEventListener("load",x);const R={"cdn.ice.com":"https://api.elliemae.com/diagnostics/v2/logging","cdn.np.ice.com":"https://stg.api.elliemae.com/diagnostics/v2/logging","cdn.uat.ice.com":"https://concept.api.elliemae.com/diagnostics/v2/logging","cdn.pt1.ice.com":"https://pel1.api.ellielabs.com/diagnostics/v2/logging","cdn.qa1.ice.com":"https://int.api.ellielabs.com/diagnostics/v2/logging","cdn.dev1.ice.com":"https://int.api.ellielabs.com/diagnostics/v2/logging","cdn.mortgagetech.ice.com":"https://api.elliemae.com/diagnostics/v2/logging","cdn.mortgagetech.s1.ice.com":"https://stg.api.elliemae.com/diagnostics/v2/logging","cdn.mortgagetech.uat1.ice.com":"https://concept.api.elliemae.com/diagnostics/v2/logging","cdn.mortgagetech.pl1.ice.com":"https://pel1.api.ellielabs.com/diagnostics/v2/logging","cdn.mortgagetech.q1.ice.com":"https://int.api.ellielabs.com/diagnostics/v2/logging","cdn.mortgagetech.d1.ice.com":"https://int.api.ellielabs.com/diagnostics/v2/logging",localhost:"https://int.api.ellielabs.com/diagnostics/v2/logging"},A=["click","scroll","keypress","touchstart"],I=()=>{const ne=document.currentScript?.src||"file:///opt/jenkins/workspace/UIPlatform_app-sdk_master/542/node_modules/.pnpm/@elliemae+ssf-guest@2.21.3_@elliemae+pui-logrocket@1.1.16/node_modules/@elliemae/ssf-guest/dist/esm/guest.js",k=ne?new URL(ne).hostname:"localhost";return R[k]||R["cdn.qa1.ice.com"]};class ${#n;#e;#t;#o=!1;#r=null;#s=!1;#a=new Map;#m=null;#i=null;#u=null;#l=null;#c=null;#g=!1;#d=null;#h=null;#p=null;#_=!0;#x=w;#y;#v=null;constructor(k){const{console:H=!1,url:N=window.__ICE__?.diagnosticsUrl||I(),index:Y="ssf-guest-v2",team:ie="ICE",appName:V="SSF Guest V2 Application"}=k?.logger??{};this.#y=k?.logger,this.#g=k?.usesDevConnectAPI??!1,this.#_=k?.keepAlive??!0,this.#x=k?.keepAliveInterval??w;const U=H?(0,l.Console)():(0,l.http)(N);this.#e=k?.appLogger??(0,l.logger)({transport:U,index:Y,team:ie,appName:V}),(0,l.webvitals)(this.#e),(0,l.logUnhandledErrors)(this.#e),this.#n=(0,r.A)(),this.#t=new o.K(this.#e,this.#n),O(this),this.#e.audit({message:"Guest created",guestUrl:window.location.href,correlationId:this.#n})}#f=()=>({guestId:this.#m,guestTitle:this.#i,guestUrl:this.#u});#b=k=>{if(!k||!k.objectId)throw this.#e.error("Deserialization of scripting object failed. Object does not have an Object ID."),new Error("Cannot deserialize object JSON into proxy.");const H=new i.V(k.objectId,k.objectType);return k.functions&&k.functions.forEach(N=>{Object.defineProperty(H,N,{value:async(...Y)=>this.#j({objectId:H.id,functionName:N,functionParams:[].slice.call(Y)}),enumerable:!0})}),k.events&&k.events.forEach(N=>{Object.defineProperty(H,N,{value:new c.b3({objectId:H.id,name:N,eventSrc:this}),enumerable:!0})}),this.#e.debug(`Created guest proxy for scripting object (id = "${H.id}")`),H};#j=async({objectId:k,functionName:H,functionParams:N})=>{this.#e.debug(`Invoking scripting object method ${k}.${H}()...`);const Y=[];if(N)for(let U=0;U<N.length;U+=1){const G=N[U];G instanceof Promise&&Y.push(G.then(q=>{N[U]=q}))}await Promise.all(Y);const ie=await this.#t.invoke({targetWin:this.#c,targetOrigin:this.#l,messageType:t.G.ObjectInvoke,messageBody:{objectId:k,functionName:H,functionParams:N}}),V=this.#E(ie);return this.#e.audit({message:"Guest proxy invoked Scripting Object method",scriptingObject:k,scriptingMethod:H,...this.#f()}),V};#w(k,H){return Object.entries(H).every(([N,Y])=>{const ie=k[N];if("eq"in Y)return ie===Y.eq;if("in"in Y)return Array.isArray(Y.in)&&Y.in.includes(ie);if("includes"in Y)return Array.isArray(ie)&&ie.includes(Y.includes);if("gt"in Y){const V=typeof ie=="number"?ie:Number(ie);return!Number.isNaN(V)&&V>Y.gt}if("lt"in Y){const V=typeof ie=="number"?ie:Number(ie);return!Number.isNaN(V)&&V<Y.lt}if("regex"in Y)try{const V=new RegExp(Y.regex);return typeof ie=="string"&&V.test(ie)}catch{return!1}return!1})}#E=k=>k?.type==="object"&&"object"in k?this.#b(k.object):k?.type==="value"?k.value:k;#A=({body:k})=>{k?.logLevel&&(this.#e.setLogLevel(k.logLevel),this.#e.debug(`Log level changed by host to ${k.logLevel}`)),this.#m=k?.guestId??null,this.#i=k?.guestTitle??null,this.#u=k?.guestUrl??null,this.#e.audit({message:"Received configuration from Host",...this.#f()})};#S=()=>{window.focus()};#C=async()=>{await this.close(),window.close()};#O=()=>{v()||setInterval(()=>{this.#c?.closed&&this.close().then(()=>{window.close()}).catch(()=>{})},1e3)};#T=async({sourceWin:k,sourceOrigin:H,requestId:N,body:Y})=>{const ie=this.#b(Y.object);if(ie){const V=(0,c._s)(ie.id,Y.eventName);this.#e.debug(`Received event "${V}" from host`);let U;Y.eventHandler?U=[{callback:window[Y.eventHandler],token:(0,r.A)()}]:U=this.#a.get(V)||[];const G=[];if(U.forEach(q=>{if(q?.callback){if(q.criteria&&!(Y.eventParams?this.#w(Y.eventParams,q.criteria):!1)){this.#e.debug(`Event ${V} did not match criteria for subscriber ${q.callback.name}`);return}this.#e.debug(`Invoking event subscriber ${q.callback.name} for event ${V}`);const re=q.callback({obj:ie,eventName:Y.eventName,eventParams:Y.eventParams,eventOptions:Y.eventOptions});re instanceof Promise?G.push(re):typeof re<"u"&&G.push(Promise.resolve(re))}}),N){const q=await Promise.all(G);this.#t.respond({targetWin:k,targetOrigin:H,requestId:N,response:q}),this.#e.audit({message:"Guest proxy processed event from host and responded",scriptingEventId:V,scriptingObject:ie.id,...this.#f()})}else this.#e.audit({message:"Guest proxy processed event from host",scriptingEventId:V,scriptingObject:ie.id,...this.#f()})}};#P=async()=>{!this.#d||!this.#h||!this.#p||await fetch(`${this.#p}/oauth2/v1/token/introspection?${new URLSearchParams({token:this.#d,client_id:this.#h}).toString()}`,{headers:{"content-type":"application/x-www-form-urlencoded;charset=UTF-8"},method:"POST"})};#D=async()=>{if(this.#d&&this.#h&&this.#p)try{await fetch(`${this.#p}/oauth2/v1/token/revocation?${new URLSearchParams({token:this.#d,client_id:this.#h}).toString()}`,{method:"POST"})}catch(k){this.#e.error(`Error revoking token. ${k.message}`)}finally{this.#d=null,this.#h=null}};#R=async()=>{if(this.#_)try{const k=await this.getObject("application");k?(this.#v=(0,n.throttle)(async()=>{try{await k.keepSessionAlive(),await this.#P()}catch(H){this.#e.error(`Error keeping session alive. ${H.message}`)}},this.#x,{leading:!1}),A.forEach(H=>{document.addEventListener(H,this.#v)})):this.#e.warn("Application object not available to send keep alive")}catch(k){this.#e.error(`Error getting application object. ${k.message}`)}};#k=async()=>{try{const k=await this.getObject("module");if(k?.log&&!this.#y.console){const{index:H="",team:N="",appName:Y=""}=this.#y||{};if(!H||!N||!Y)throw new Error("Missing one of required logger options: index, team, appName");this.#e=(0,l.logger)({transport:(0,l.parentApp)(k),index:H,team:N,appName:Y})}}catch(k){this.#e.info(`Module object not exposed from hosting application. using local logger instance. ${k.message}`)}};addScript=async(k,H)=>{if(!this.#o&&k){await this.connect();const N=document.createElement("script");N.setAttribute("src",k),N.setAttribute("type","module"),await new Promise(Y=>{const ie=()=>{N?.removeEventListener?.("load",ie),this.#o=!0,D(!0),Y()};N.addEventListener("load",ie),this.#r=H.appendChild(N)})}};close=async()=>{this.#s&&(this.#t.send({targetWin:this.#c,targetOrigin:this.#l,messageType:t.G.GuestClose,messageBody:{}}),this.#t.removeSender({origin:this.#l,window:this.#c}),this.#t.close(),this.#v&&A.forEach(k=>{document.removeEventListener(k,this.#v)}),await this.#D(),window.removeEventListener("beforeunload",this.close),this.#s=!1,this.#e.audit({message:"Guest disconnected from host",...this.#f()}),this.#m=null,this.#u=null,this.#i=null)};connect=async k=>{if(!this.#s){let H=window,N={...y};if(k){H=k.window||H;const ie={...k};delete ie.window,N=Object.assign(N,ie)}const Y=await C();this.#l=Y.origin,this.#c=Y.window,this.#t.initialize(H),this.#t.addSender({origin:this.#l,window:this.#c}),this.#t.listen({messageType:t.G.ObjectEvent,callback:this.#T.bind(this)}),this.#t.listen({messageType:t.G.HostConfig,callback:this.#A.bind(this)}),this.#t.listen({messageType:t.G.GuestFocus,callback:this.#S.bind(this)}),this.#t.listen({messageType:t.G.HostClose,callback:this.#C.bind(this)}),this.#t.send({targetWin:this.#c,targetOrigin:this.#l,messageType:t.G.GuestReady,messageBody:N}),this.#s=!0,this.#O(),this.#g&&await this.getAuthToken(),await this.#R(),window.addEventListener("beforeunload",this.close),this.#e.audit({message:"Guest connected to host",guestUrl:window.location.href})}};getAuthToken=async()=>{if(!this.#d&&this.#s)try{const k=await this.getObject("auth");if(k){const H=await k.getAccessToken();this.#d=H?.access_token,this.#p=H?.host_name,this.#h=H?.client_id}else this.#e.warn("Auth object not available to get access token from host")}catch(k){this.#e.error(`Error getting access token from auth object. ${k.message}`)}return this.#d};getObject=async k=>{if(this.#e.debug(`Retrieving scripting object "${k}" from host...`),!this.#s)throw new Error("Not connected to host");const H=await this.#t.invoke({targetWin:this.#c,targetOrigin:this.#l,messageType:t.G.ObjectGet,messageBody:{objectId:k}}),N=this.#b(H.object);return this.#e.audit({message:"Received scripting object from host",scriptingObject:k,...this.#f()}),N};listObjects=async()=>{if(this.#e.debug("Retrieving names of scripting objects exposed by host..."),!this.#s)throw new Error("Not connected to host");const k=await this.#t.invoke({targetWin:this.#c,targetOrigin:this.#l,messageType:t.G.ListObjects,messageBody:{}});return this.#e.audit({message:"Received names of all scripting objects exposed by host",objects:k,...this.#f()}),k};removeScript=()=>{if(this.#o&&this.#r){const{parentNode:k}=this.#r;k?.removeChild?.(this.#r)}};setLogLevel=k=>{this.#e.setLogLevel(k),this.#e.debug(`Log level changed by guest to ${k}`)};subscribe=k=>{const{eventId:H,criteria:N,callback:Y}=k;this.#e.debug(`Registering subscription for event ${H}`);const ie=this.#a.get(H.toLowerCase())||[],V=(0,r.A)();return ie.push({callback:Y,token:V,criteria:N}),this.#a.set(H.toLowerCase(),ie),this.#t.send({targetWin:this.#c,targetOrigin:this.#l,messageType:t.G.GuestEventSubscribe,messageBody:{eventId:H,criteria:N,token:V}}),this.#e.debug(`Subscribed to event ${H} with token ${V}`),V};unsubscribe=k=>{const{eventId:H,token:N}=k,Y=this.#a.get(H.toLowerCase());if(Y){const ie=Y.length,V=Y.filter(U=>U.token!==N);V.length<ie&&(this.#a.set(H.toLowerCase(),V),this.#t.send({targetWin:this.#c,targetOrigin:this.#l,messageType:t.G.GuestEventUnsubscribe,messageBody:{eventId:H,token:N}}),this.#e.debug(`Unsubscribed from event ${H}`))}}}},"./node_modules/.pnpm/@elliemae+ssf-host@2.21.3_@elliemae+pui-diagnostics@3.11.3/node_modules/@elliemae/ssf-host/dist/esm/host.js":(u,m,e)=>{"use strict";e.d(m,{P:()=>O});var r=e("./node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js"),n=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/remoting.js"),o=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObjectManager.js"),t=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/messageType.js"),i=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"),c=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"),l=e("./node_modules/.pnpm/@elliemae+microfe-common@2.21.3_@elliemae+pui-diagnostics@3.11.3_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js"),h=(M=>(M.Popup="popup",M.Embed="embed",M))(h||{}),g=(M=>(M.AllowDownloadsWithoutUserActivation="allow-downloads-without-user-activation",M.AllowDownloads="allow-downloads",M.AllowForms="allow-forms",M.AllowModals="allow-modals",M.AllowOrientationLock="allow-orientation-lock",M.AllowPointerLock="allow-pointer-lock",M.AllowPopups="allow-popups",M.AllowPopupsToEscapeSandbox="allow-popups-to-escape-sandbox",M.AllowPresentation="allow-presentation",M.AllowSameOrigin="allow-same-origin",M.AllowScripts="allow-scripts",M.AllowStorageAccessByUserActivation="allow-storage-access-by-user-activation",M.AllowTopNavigation="allow-top-navigation",M.AllowTopNavigationByUserActivation="allow-top-navigation-by-user-activation",M))(g||{});const v=M=>{if(M==="about:blank")return"*";try{const{origin:w}=new URL(M);return w==="null"||!w?M:w}catch{const{origin:y}=new URL(M,document.baseURI);return y}},j=(M,w=[])=>{const y=w||[];return M&&M.forEach?M.forEach(x=>{j(x,y)}):typeof M<"u"&&y.push(M),y},P=M=>typeof M?._toJSON=="function";function E(M){return typeof M=="function"}const C=M=>M?.id??M;class T{id;title;url;searchParams;domElement;window;openMode;origin;initialized=!1;ready=!1;capabilities;#n;#e;constructor(w){const{guestId:y,domElement:x=null,title:R,url:A,window:I,searchParams:$={},openMode:ne=h.Embed,remoting:k,analyticsObj:H}=w;this.id=y,this.title=R,this.url=A,this.origin=v(A),this.searchParams=$,this.domElement=x,this.window=I,this.openMode=ne,this.capabilities={},this.#e=H,this.#n=k}dispose=()=>{if(this.openMode===h.Popup&&!this.window.closed)try{this.window.document,this.window.close()}catch{this.#n.send({targetWin:this.window,targetOrigin:this.origin,messageType:t.G.HostClose,messageBody:{}})}else this.domElement?.remove?.();this.#n.removeSender({origin:this.origin,window:this.window})};getInfo=()=>({guestId:this.id,guestTitle:this.title,guestUrl:this.url});handShake=()=>new Promise(w=>{let y=0;const x=5,R=setInterval(()=>{y>=x?(clearInterval(R),w(!1)):(this.#n.send({targetWin:this.window,targetOrigin:this.origin,messageType:t.G.HandShake,messageBody:{}}),y+=1)},1e3);this.#n.listen({messageType:t.G.HandShakeAck,callback:()=>{clearInterval(R),w(!0)}})});init=()=>{this.#n.addSender({origin:this.origin,window:this.window}),this.openMode===h.Popup&&this.handShake().catch(()=>{})};dispatchEvent=(w,y)=>(this.#e.startTiming(`ScriptingObject.Event.${w.object.objectId}.${w.eventName}`,{appId:this.id,appUrl:this.url}).catch(()=>{}),this.#n.invoke({targetWin:this.window,targetOrigin:this.origin,messageType:t.G.ObjectEvent,messageBody:w,responseTimeoutMs:y}).finally(()=>{this.#e.endTiming(`ScriptingObject.Event.${w.object.objectId}.${w.eventName}`,{appId:this.id,appUrl:this.url}).catch(()=>{})}));send=w=>{this.#n.send({targetWin:this.window,targetOrigin:this.origin,...w})}}const D=[g.AllowScripts,g.AllowPopups,g.AllowModals,g.AllowForms,g.AllowDownloads,g.AllowSameOrigin];class O{hostId;#n;#e;#t;#o;#r=new Map;#s=new Map;#a;#m=null;#i=null;#u=null;#l=null;constructor(w,y){if(this.hostId=w,!y?.logger)throw new Error("Logger is required");if(!y?.analyticsObj)throw new Error("Analytics object is required");if(this.#t=y.logger,this.#o=y.analyticsObj,this.#e=(0,r.A)(),this.#n=new n.K(this.#t,this.#e),y?.readyStateCallback&&typeof y?.readyStateCallback!="function")throw new Error("readyStateCallback must be a function");this.#m=y?.readyStateCallback||null,this.#u=y?.onGuestEventSubscribe||null,this.#l=y?.onGuestEventUnsubscribe||null,this.#a=new o.qE,this.#n.initialize(window),this.#R(),window.addEventListener("beforeunload",this.#h),this.#F(),this.#t.debug(`host is initialized. hostId: ${this.hostId}, correlationId: ${this.#e}`)}#c=(w,y)=>{const x={event:w,...y};this.#o.sendBAEvent(x).catch(()=>{})};#g=(w,y)=>{this.#o.startTiming(w,y).catch(()=>{})};#d=(w,y)=>{this.#o.endTiming(w,y).catch(()=>{})};#h=()=>{for(const w of this.#r.values())w.openMode===h.Popup&&this.unloadGuest(w.id)};#p=w=>Array.from(this.#r.values()).find(y=>y.window===w);#_=w=>{for(const y of this.#r.values())if(y.url===w)return y;return null};#x=w=>typeof w?._toJSON=="function";#y=(w,y)=>this.#x(w)?(this.#a.has(w?.id,y)||this.#a.addScriptingObject(w,y?{guestId:y?.id}:{}),{type:"object",object:w._toJSON()}):{type:"value",value:w};#v=w=>typeof w=="string"?w:w instanceof Error?w.message:"An unexpected error occurred in the host application";#f=w=>{w.ready&&this.#n.send({targetWin:w.window,targetOrigin:w.origin,messageType:t.G.HostConfig,messageBody:{logLevel:this.#t.getLogLevel(),...w.getInfo()}})};#b=({guest:w,obj:y,functionName:x,functionParams:R})=>{const A=y[x];return E(A)?(this.#t.debug(`Invoking host implementation of ${y.id}.${String(x)}()`),new Promise(I=>{Object.defineProperty(A,"callContext",{value:{guest:w},configurable:!0,enumerable:!0,writable:!0}),I(A(...R))})):(this.#t.warn(`Attempt to call invalid function on object type ${y.objectType}: ${String(x)}`),Promise.reject(new Error(`Method '${x}' not found in Scripting Object '${y.id}'`)))};#j=({sourceWin:w,sourceOrigin:y,requestId:x})=>{const R=this.#p(w);if(!R){this.#t.warn(`Received ready event for unknown guest. requestId: ${x}`);return}if(!R.initialized){this.#t.warn("Guest must be initialized before it is marked as ready"),this.#n.raiseException({targetWin:w,targetOrigin:y,requestId:x,ex:"Guest must be initialized before it is marked as ready"});return}if(!R.ready){R.ready=!0;const A=R.getInfo();this.#d("SSF.Guest.Load",{appId:A.guestId,appUrl:A.guestUrl}),this.#f(R),this.#m?.(R),this.#t.audit({message:"Guest is ready",...A})}};#w=({sourceWin:w,sourceOrigin:y,requestId:x,body:R})=>{const A=this.#p(w);if(!A){this.#t.warn(`Received ready event for unknown guest. requestid = ${x}`);return}A.initialized||(A.initialized=!0,A.capabilities=R||{},this.#t.audit({message:"Guest is initialized",...A.getInfo()})),(!R||!R.onReady)&&this.#j({sourceWin:w,sourceOrigin:y,requestId:x,type:"",body:null})};#E=async({sourceWin:w})=>{if(w?.window){const y=this.#I(w);y&&!await y.handShake()&&this.unloadGuest(w)}};#A=({sourceWin:w,sourceOrigin:y,requestId:x})=>{this.#t.debug(`Processing listObjects request. requestId = ${x}`);const R=this.#p(w);if(!R)return this.#t.warn("Rejected object request from unknown guest window"),!1;const A=this.#a.listScriptingObjects(R.id);return this.#n.respond({targetWin:w,targetOrigin:y,requestId:x,response:A}),this.#t.audit({message:"name of scripting objects returned",requestId:x,objects:A,...R.getInfo()}),!0};#S=({sourceWin:w,sourceOrigin:y,requestId:x,body:R})=>{const{objectId:A}=R;this.#t.debug(`Processing getObject request for object ${A}. requestId = ${x}`);const I=this.#p(w);if(!I)return this.#t.warn("Rejected object request from unknown guest window"),!1;const $=this.getScriptingObject(A,{guest:I});return $?(this.#n.respond({targetWin:w,targetOrigin:y,requestId:x,response:this.#y($,I)}),this.#t.audit({message:"Scripting Object returned",requestId:x,scriptingObject:A,...I.getInfo()}),!0):(this.#t.warn(`unknown or unauthorized object ${A} from guest ${I.id}`),this.#n.raiseException({targetWin:w,targetOrigin:y,requestId:x,ex:`The requested object (${A}) is not available`}),!1)};#C=({sourceWin:w,requestId:y,body:x})=>{const{eventId:R,criteria:A,token:I}=x;this.#t.debug(`Processing guest event subscribe request for event ${R}. requestId = ${y}`);const $=this.#p(w);if(!$){this.#t.warn("Rejected event subscribe request from unknown guest window");return}setTimeout(()=>{try{this.#u?.({guestId:$.id,eventId:R,criteria:A,token:I})}catch{}},0)};#O=({sourceWin:w,requestId:y,body:x})=>{const{eventId:R,token:A}=x;this.#t.debug(`Processing guest event unsubscribe request for event ${R}. requestId = ${y}`);const I=this.#p(w);if(!I){this.#t.warn("Rejected event unsubscribe request from unknown guest window");return}setTimeout(()=>{try{this.#l?.({guestId:I.id,eventId:R,token:A})}catch{}},0)};#T=({sourceWin:w,requestId:y,body:x})=>{const R=this.#p(w);if(!R){this.#t.warn(`Received resize event from unknown guest. requestid = ${y}`);return}R.domElement&&(R.domElement.style.height=`${x.height}px`),this.#t.debug(`Guest ${R.id} resized to ${x.width}x${x.height}`)};#P=({sourceWin:w,sourceOrigin:y,requestId:x,body:R})=>{const{objectId:A}=R,I=this.#p(w);if(!I)return this.#t.warn("Rejected method invocation request from unknown guest window"),!1;this.#t.debug(`Function ${A}.${String(R.functionName)}() called from guest "${I.id}" (requestId = ${x})`);const $=this.getScriptingObject(A,{guest:I});if(!$)return this.#t.warn(`Invocation of unknown or unauthorized object ${A} from guest ${I.id}`),this.#n.raiseException({targetWin:w,targetOrigin:y,requestId:x,ex:`The requested object (${A}) is not available`}),!1;const ne=I.getInfo();return this.#g(`ScriptingObject.API.${A}.${R.functionName}`,{appId:ne.guestId,appUrl:ne.guestUrl}),this.#b({guest:I,obj:$,functionName:R.functionName,functionParams:R.functionParams}).then(k=>{this.#n.respond({targetWin:w,targetOrigin:y,requestId:x,response:this.#y(k,I)}),this.#t.audit({message:"Value returned for Scripting Object method call",requestId:x,scriptingObject:A,scriptingMethod:R.functionName,...ne})}).catch(k=>{this.#n.raiseException({targetWin:w,targetOrigin:I.origin,requestId:x,ex:k}),this.#t.audit({message:"Exception thrown for Scripting Object method call",requestId:x,scriptingObject:A,scriptingMethod:R.functionName,...ne})}).finally(()=>{this.#d(`ScriptingObject.API.${A}.${R.functionName}`,{appId:ne.guestId,appUrl:ne.guestUrl})}),!0};#D=()=>{this.#n.listen({messageType:t.G.GuestResize,callback:this.#T})};#R=()=>{this.#n.listen({messageType:t.G.GuestReady,callback:this.#w}),this.#n.listen({messageType:t.G.GuestReadyComplete,callback:this.#j}),this.#n.listen({messageType:t.G.GuestClose,callback:this.#E}),this.#n.listen({messageType:t.G.ListObjects,callback:this.#A}),this.#n.listen({messageType:t.G.ObjectGet,callback:this.#S}),this.#n.listen({messageType:t.G.ObjectInvoke,callback:this.#P}),this.#n.listen({messageType:t.G.GuestEventSubscribe,callback:this.#C}),this.#n.listen({messageType:t.G.GuestEventUnsubscribe,callback:this.#O})};#k=w=>w instanceof i.b3||typeof w?.subscribe=="function";#M=w=>{const y=new T({...w,remoting:this.#n,analyticsObj:this.#o});return y.init(),this.#r.set(w.guestId,y),y};#I=w=>{let y=typeof w=="string"?this.#r.get(w):null;return y||(y=Array.from(this.#r.values()).find(x=>x.window===w||x.domElement===w)),y};#F=()=>{this.#i=setInterval(()=>{const w=[];this.#r.forEach(y=>{y.openMode===h.Popup&&y.window.closed&&w.push(y)}),w.forEach(y=>{const{id:x}=y;this.unloadGuest(x),this.#s.get(x)?.forEach(A=>{A({id:x}).catch(()=>{})})})},1e3)};#L=w=>{const{url:y,title:x,popupWindowFeatures:R={},searchParams:A,guestId:I,onLoad:$,onError:ne}=w,{width:k=800,height:H=600,top:N=100,left:Y=100}=R;let ie=this.#_(y);if(ie)ie.window.closed||ie.send({messageType:t.G.GuestFocus,messageBody:{}});else{const V=[{key:"width",value:k},{key:"height",value:H},{key:"top",value:N},{key:"left",value:Y}].reduce((G,q,re)=>(re>0&&q.value&&(G+=","),q.value?`${G}${q.key}=${q.value}`:G),""),U=window.open(y,x,`popup, ${V}`);if(U)try{setTimeout(()=>{$?.(I)},0)}catch(G){this.#t.debug(`Error occurred in onLoad for guest with id '${I}': ${G.message}`)}else{try{setTimeout(()=>{ne?.(I)},0)}catch(G){this.#t.debug(`Error occurred in onError for guest with id '${I}': ${G.message}`)}throw new Error("Failed to open guest application in popup window")}U.opener=null,ie=this.#M({guestId:I,window:U,title:x,url:y,searchParams:A,openMode:h.Popup})}return ie};#N=w=>{const{url:y,title:x,targetElement:R,searchParams:A,guestId:I,onLoad:$,onError:ne,options:k={}}=w,H=R.ownerDocument??document,{fitToContent:N=!1,disableSandbox:Y=!1,sandboxValues:ie=[],customSandboxValues:V=[],style:U="",permissionPolicy:G=""}=k;if(!x)throw new Error("title is required");N&&this.#D();const q=H.createElement("iframe");q.setAttribute("id",I);const re=()=>{setTimeout(()=>{try{$?.(I)}catch(Ae){this.#t.debug(`Error occurred in onLoad for guest with id '${I}': ${Ae.message}`)}},0),this.#t.debug(`frame loaded for guest with id '${I}'`),q.removeEventListener("load",re)},ee=()=>{setTimeout(()=>{try{ne?.(I)}catch(Ae){this.#t.debug(`Error occurred in onError for guest with id '${I}': ${Ae.message}`)}},0),this.#t.error(`frame load failed for guest with id '${I}'`),q.removeEventListener("error",ee)};q.addEventListener("load",re),q.addEventListener("error",ee),q.setAttribute("style",`min-width: 100%; height: 100%; border: 0px; ${U}`),Y||q.setAttribute("sandbox",V.length>0?V.join(" "):[...D,...ie].join(" ")),q.setAttribute("title",x),q.setAttribute("src",y),G&&q.setAttribute("allow",G),R.appendChild(q);const de=H.getElementById(I);return this.#M({guestId:I,domElement:de,window:de.contentWindow,title:x,url:y,searchParams:A,openMode:h.Embed})};#B=(w,y)=>{let x="";return Object.keys(y).forEach(R=>{x+=`${(x.length?"&":"")+encodeURIComponent(R)}=${encodeURIComponent(y[R])}`}),w+(x?(w.indexOf("?")>=0?"&":"?")+x:"")};addScriptingObject=(w,y)=>{if((0,c.h)(w)){const x=this.cloneScriptingObject(w);this.#a.addScriptingObject(x,y)}else this.#a.addScriptingObject(w,y)};cloneScriptingObject=w=>{if(!w)throw new Error("proxy is required");const y=new l.P(w.id,w.objectType);let x=[];return Object.keys(w).forEach(R=>{const A=w[R];if(this.#k(A)){const I=new i.Jh({name:A.name||R,objectId:y.id});if(Object.defineProperty(y,R,{value:I,enumerable:!0}),A instanceof i.b3){const $=({eventParams:k,eventOptions:H})=>this.dispatchEvent({event:I,eventParams:k,eventOptions:H}),ne=A.subscribe($);x.push(()=>{A.unsubscribe(ne)})}else{const $=A.subscribe?.((ne,k,H)=>this.dispatchEvent({event:I,eventParams:k,eventOptions:H}));x.push(()=>{A.unsubscribe?.($)})}}else if(E(A)&&(Object.defineProperty(y,R,{value:async(...I)=>{const $=await A(...I);return(0,c.h)($)?this.cloneScriptingObject($):$},enumerable:!0}),R==="dispose")){const I=y.dispose;Object.defineProperty(y,R,{value:()=>(y._dispose(),I.apply(y)),enumerable:!0})}}),y._dispose=()=>{x.forEach(R=>{R?.()}),x=[]},y};close=()=>{clearInterval(this.#i),this.#h(),this.#n.close(),window.removeEventListener("beforeunload",this.#h),this.#t.debug(`host is closed. hostId: ${this.hostId}, correlationId: ${this.#e}`)};dispatchEvent=async w=>{const{event:{id:y,name:x},eventParams:R,eventOptions:A={}}=w,{eventHandler:I=null,timeout:$=null,window:ne=null,guestId:k}=A,H=y.split(".")[0],N=k||ne,Y=N?this.#I(N):null,ie=Y?this.getScriptingObject(H,{guest:Y}):this.getScriptingObject(H);if(!ie)return this.#t.warn(`Attempt to dispatch event ${x} on unknown object ${H}`),Promise.resolve([]);const V={object:ie._toJSON(),eventName:x,eventParams:R,eventHandler:I,eventOptions:{allowsFeedback:!1}};$&&!Number.isNaN($)&&(V.eventOptions={allowsFeedback:!0,timeout:Number($)});const U=[];let G=!1;return this.#r.forEach(re=>{const ee=re.getInfo();(!ne||ne===re.window)&&($&&re?.capabilities?.eventFeedback?(U.push(re.dispatchEvent(V,$)),G||(this.#g(`ScriptingObject.Event.${ie.id}.${x}`,{appId:this.hostId,appUrl:window.location.href}),G=!0),this.#t.audit({message:"Event dispatched and awaiting feedback",scriptingEventId:y,...ee})):(re.send({messageType:t.G.ObjectEvent,messageBody:V}),this.#t.audit({message:"Event dispatched",scriptingEventId:y,...ee})))}),await Promise.all(U).then(re=>(this.#t.audit({message:"Event feedback received",scriptingEventId:y}),j(re))).catch(re=>{throw this.#t.error({message:"Error processing event",eventId:y,exception:re}),re}).finally(()=>{G&&this.#d(`ScriptingObject.Event.${ie.id}.${x}`,{appId:this.hostId,appUrl:window.location.href})})};getGuests=()=>{const w=[];return this.#r.forEach(y=>{w.push(y)}),w};getScriptingObject=(w,y)=>this.#a.getObject(w,y?.guest);loadGuest=w=>{const{id:y,url:x,targetElement:R,title:A,searchParams:I={},onLoad:$,onError:ne,options:k={}}=w;if(!y)throw new Error("id for guest application is required");const{openMode:H=h.Embed,popupWindowFeatures:N={}}=k,Y=this.#B(x,I);let ie=null;if(this.#g("SSF.Guest.Load",{appId:y,appUrl:Y}),H===h.Popup)ie=this.#L({guestId:y,url:Y,title:A,searchParams:I,popupWindowFeatures:N,onLoad:$,onError:ne});else if(H===h.Embed)ie=this.#N({guestId:y,url:Y,title:A,targetElement:R,searchParams:I,onLoad:$,onError:ne,options:k});else throw new Error(`Invalid openMode: ${H}`);return this.#t.audit({message:"Guest loaded",...ie.getInfo()}),ie};loadGuests=w=>{const{id:y,url:x,targetElement:R,title:A,searchParamsList:I=[],options:$={}}=w;I.forEach((ne,k)=>{this.loadGuest({id:`${y}-${k}`,url:x,title:A,targetElement:R,searchParams:ne,options:$})},this)};removeAllScriptingObjects=w=>{this.#a.removeAllScriptingObjects(w)};removeScriptingObject=(w,y)=>{this.#a.removeScriptingObject(w,y)};setLogLevel=w=>{this.#t.setLogLevel(w),this.#r.forEach(this.#f),this.#t.debug("Dispatched config events to all guests")};unloadGuest=w=>{const y=this.#I(w);y&&(y.dispose(),this.#r.delete(y.id),this.#t.audit({message:"Guest is removed from host",...y.getInfo()}))};onGuestClose=w=>{const{id:y,guestCloseCallback:x}=w,R=this.#s.get(y)||[];R.push(x),this.#s.set(y,R)}}},"./node_modules/.pnpm/@emotion+memoize@0.9.0/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js":(u,m,e)=>{"use strict";e.d(m,{A:()=>r});function r(n){var o=Object.create(null);return function(t){return o[t]===void 0&&(o[t]=n(t)),o[t]}}},"./node_modules/.pnpm/@reduxjs+toolkit@1.9.7_react-redux@8.1.3_react@18.3.1/node_modules/@reduxjs/toolkit/dist/query/rtk-query.esm.js":(u,m,e)=>{"use strict";e.d(m,{$k:()=>Ze});var r=e("./node_modules/.pnpm/@reduxjs+toolkit@1.9.7_react-redux@8.1.3_react@18.3.1/node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js"),n=e("./node_modules/.pnpm/immer@9.0.21/node_modules/immer/dist/immer.esm.js"),o="NOT_FOUND";function t(Qe){var Xn;return{get:function(ln){return Xn&&Qe(Xn.key,ln)?Xn.value:o},put:function(ln,Jn){Xn={key:ln,value:Jn}},getEntries:function(){return Xn?[Xn]:[]},clear:function(){Xn=void 0}}}function i(Qe,Xn){var Yn=[];function ln(Rt){var at=Yn.findIndex(function(Wt){return Xn(Rt,Wt.key)});if(at>-1){var Bt=Yn[at];return at>0&&(Yn.splice(at,1),Yn.unshift(Bt)),Bt.value}return o}function Jn(Rt,at){ln(Rt)===o&&(Yn.unshift({key:Rt,value:at}),Yn.length>Qe&&Yn.pop())}function bn(){return Yn}function Zn(){Yn=[]}return{get:ln,put:Jn,getEntries:bn,clear:Zn}}var c=function(Xn,Yn){return Xn===Yn};function l(Qe){return function(Yn,ln){if(Yn===null||ln===null||Yn.length!==ln.length)return!1;for(var Jn=Yn.length,bn=0;bn<Jn;bn++)if(!Qe(Yn[bn],ln[bn]))return!1;return!0}}function h(Qe,Xn){var Yn=typeof Xn=="object"?Xn:{equalityCheck:Xn},ln=Yn.equalityCheck,Jn=ln===void 0?c:ln,bn=Yn.maxSize,Zn=bn===void 0?1:bn,Rt=Yn.resultEqualityCheck,at=l(Jn),Bt=Zn===1?t(at):i(Zn,at);function Wt(){var b=Bt.get(arguments);if(b===o){if(b=Qe.apply(null,arguments),Rt){var J=Bt.getEntries(),we=J.find(function(Ie){return Rt(Ie.value,b)});we&&(b=we.value)}Bt.put(arguments,b)}return b}return Wt.clearCache=function(){return Bt.clear()},Wt}function g(Qe){var Xn=Array.isArray(Qe[0])?Qe[0]:Qe;if(!Xn.every(function(ln){return typeof ln=="function"})){var Yn=Xn.map(function(ln){return typeof ln=="function"?"function "+(ln.name||"unnamed")+"()":typeof ln}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+Yn+"]")}return Xn}function v(Qe){for(var Xn=arguments.length,Yn=new Array(Xn>1?Xn-1:0),ln=1;ln<Xn;ln++)Yn[ln-1]=arguments[ln];var Jn=function(){for(var Zn=arguments.length,Rt=new Array(Zn),at=0;at<Zn;at++)Rt[at]=arguments[at];var Bt=0,Wt,b={memoizeOptions:void 0},J=Rt.pop();if(typeof J=="object"&&(b=J,J=Rt.pop()),typeof J!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof J+"]");var we=b,Ie=we.memoizeOptions,On=Ie===void 0?Yn:Ie,dn=Array.isArray(On)?On:[On],Q=g(Rt),pe=Qe.apply(void 0,[function(){return Bt++,J.apply(null,arguments)}].concat(dn)),ge=Qe(function(){for(var ke=[],Je=Q.length,Mn=0;Mn<Je;Mn++)ke.push(Q[Mn].apply(null,arguments));return Wt=pe.apply(null,ke),Wt});return Object.assign(ge,{resultFunc:J,memoizedResultFunc:pe,dependencies:Q,lastResult:function(){return Wt},recomputations:function(){return Bt},resetRecomputations:function(){return Bt=0}}),ge};return Jn}var j=v(h),P=function(Xn,Yn){if(Yn===void 0&&(Yn=j),typeof Xn!="object")throw new Error("createStructuredSelector expects first argument to be an object "+("where each property is a selector, instead received a "+typeof Xn));var ln=Object.keys(Xn),Jn=Yn(ln.map(function(bn){return Xn[bn]}),function(){for(var bn=arguments.length,Zn=new Array(bn),Rt=0;Rt<bn;Rt++)Zn[Rt]=arguments[Rt];return Zn.reduce(function(at,Bt,Wt){return at[ln[Wt]]=Bt,at},{})});return Jn},E=e("./node_modules/.pnpm/redux@4.2.1/node_modules/redux/es/redux.js"),C=e("./node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js"),T=function(Qe,Xn){var Yn={label:0,sent:function(){if(bn[0]&1)throw bn[1];return bn[1]},trys:[],ops:[]},ln,Jn,bn,Zn;return Zn={next:Rt(0),throw:Rt(1),return:Rt(2)},typeof Symbol=="function"&&(Zn[Symbol.iterator]=function(){return this}),Zn;function Rt(Bt){return function(Wt){return at([Bt,Wt])}}function at(Bt){if(ln)throw new TypeError("Generator is already executing.");for(;Yn;)try{if(ln=1,Jn&&(bn=Bt[0]&2?Jn.return:Bt[0]?Jn.throw||((bn=Jn.return)&&bn.call(Jn),0):Jn.next)&&!(bn=bn.call(Jn,Bt[1])).done)return bn;switch(Jn=0,bn&&(Bt=[Bt[0]&2,bn.value]),Bt[0]){case 0:case 1:bn=Bt;break;case 4:return Yn.label++,{value:Bt[1],done:!1};case 5:Yn.label++,Jn=Bt[1],Bt=[0];continue;case 7:Bt=Yn.ops.pop(),Yn.trys.pop();continue;default:if(bn=Yn.trys,!(bn=bn.length>0&&bn[bn.length-1])&&(Bt[0]===6||Bt[0]===2)){Yn=0;continue}if(Bt[0]===3&&(!bn||Bt[1]>bn[0]&&Bt[1]<bn[3])){Yn.label=Bt[1];break}if(Bt[0]===6&&Yn.label<bn[1]){Yn.label=bn[1],bn=Bt;break}if(bn&&Yn.label<bn[2]){Yn.label=bn[2],Yn.ops.push(Bt);break}bn[2]&&Yn.ops.pop(),Yn.trys.pop();continue}Bt=Xn.call(Qe,Yn)}catch(Wt){Bt=[6,Wt],Jn=0}finally{ln=bn=0}if(Bt[0]&5)throw Bt[1];return{value:Bt[0]?Bt[1]:void 0,done:!0}}},D=function(Qe,Xn){for(var Yn=0,ln=Xn.length,Jn=Qe.length;Yn<ln;Yn++,Jn++)Qe[Jn]=Xn[Yn];return Qe},O=Object.defineProperty,M=Object.defineProperties,w=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,A=function(Qe,Xn,Yn){return Xn in Qe?O(Qe,Xn,{enumerable:!0,configurable:!0,writable:!0,value:Yn}):Qe[Xn]=Yn},I=function(Qe,Xn){for(var Yn in Xn||(Xn={}))x.call(Xn,Yn)&&A(Qe,Yn,Xn[Yn]);if(y)for(var ln=0,Jn=y(Xn);ln<Jn.length;ln++){var Yn=Jn[ln];R.call(Xn,Yn)&&A(Qe,Yn,Xn[Yn])}return Qe},$=function(Qe,Xn){return M(Qe,w(Xn))},ne=function(Qe,Xn){var Yn={};for(var ln in Qe)x.call(Qe,ln)&&Xn.indexOf(ln)<0&&(Yn[ln]=Qe[ln]);if(Qe!=null&&y)for(var Jn=0,bn=y(Qe);Jn<bn.length;Jn++){var ln=bn[Jn];Xn.indexOf(ln)<0&&R.call(Qe,ln)&&(Yn[ln]=Qe[ln])}return Yn},k=function(Qe,Xn,Yn){return new Promise(function(ln,Jn){var bn=function(at){try{Rt(Yn.next(at))}catch(Bt){Jn(Bt)}},Zn=function(at){try{Rt(Yn.throw(at))}catch(Bt){Jn(Bt)}},Rt=function(at){return at.done?ln(at.value):Promise.resolve(at.value).then(bn,Zn)};Rt((Yn=Yn.apply(Qe,Xn)).next())})},H;(function(Qe){Qe.uninitialized="uninitialized",Qe.pending="pending",Qe.fulfilled="fulfilled",Qe.rejected="rejected"})(H||(H={}));function N(Qe){return{status:Qe,isUninitialized:Qe===H.uninitialized,isLoading:Qe===H.pending,isSuccess:Qe===H.fulfilled,isError:Qe===H.rejected}}function Y(Qe){return new RegExp("(^|:)//").test(Qe)}var ie=function(Qe){return Qe.replace(/\/$/,"")},V=function(Qe){return Qe.replace(/^\//,"")};function U(Qe,Xn){if(!Qe)return Xn;if(!Xn)return Qe;if(Y(Xn))return Xn;var Yn=Qe.endsWith("/")||!Xn.startsWith("?")?"/":"";return Qe=ie(Qe),Xn=V(Xn),""+Qe+Yn+Xn}var G=function(Qe){return[].concat.apply([],Qe)};function q(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}function re(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var ee=r.Qd;function de(Qe,Xn){if(Qe===Xn||!(ee(Qe)&&ee(Xn)||Array.isArray(Qe)&&Array.isArray(Xn)))return Xn;for(var Yn=Object.keys(Xn),ln=Object.keys(Qe),Jn=Yn.length===ln.length,bn=Array.isArray(Xn)?[]:{},Zn=0,Rt=Yn;Zn<Rt.length;Zn++){var at=Rt[Zn];bn[at]=de(Qe[at],Xn[at]),Jn&&(Jn=Qe[at]===bn[at])}return Jn?Qe:bn}var Ae=function(){for(var Qe=[],Xn=0;Xn<arguments.length;Xn++)Qe[Xn]=arguments[Xn];return fetch.apply(void 0,Qe)},be=function(Qe){return Qe.status>=200&&Qe.status<=299},Ce=function(Qe){return/ion\/(vnd\.api\+)?json/.test(Qe.get("content-type")||"")};function qe(Qe){if(!isPlainObject2(Qe))return Qe;for(var Xn=I({},Qe),Yn=0,ln=Object.entries(Xn);Yn<ln.length;Yn++){var Jn=ln[Yn],bn=Jn[0],Zn=Jn[1];Zn===void 0&&delete Xn[bn]}return Xn}function je(Qe){var Xn=this;Qe===void 0&&(Qe={});var Yn=Qe,ln=Yn.baseUrl,Jn=Yn.prepareHeaders,bn=Jn===void 0?function(ge){return ge}:Jn,Zn=Yn.fetchFn,Rt=Zn===void 0?Ae:Zn,at=Yn.paramsSerializer,Bt=Yn.isJsonContentType,Wt=Bt===void 0?Ce:Bt,b=Yn.jsonContentType,J=b===void 0?"application/json":b,we=Yn.jsonReplacer,Ie=Yn.timeout,On=Yn.responseHandler,dn=Yn.validateStatus,Q=ne(Yn,["baseUrl","prepareHeaders","fetchFn","paramsSerializer","isJsonContentType","jsonContentType","jsonReplacer","timeout","responseHandler","validateStatus"]);return typeof fetch>"u"&&Rt===Ae&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(ge,De){return k(Xn,null,function(){var ke,Je,Mn,Kn,An,Wn,nt,mt,$t,Xt,Fe,yn,Dn,Qn,It,Ct,St,ir,Cr,cr,Yt,nr,jr,wr,gt,hr,ur,Ur,vr,Lr,Ar,xo,Jr,Gr,Yr,oo;return T(this,function(Ao){switch(Ao.label){case 0:return ke=De.signal,Je=De.getState,Mn=De.extra,Kn=De.endpoint,An=De.forced,Wn=De.type,mt=typeof ge=="string"?{url:ge}:ge,$t=mt.url,Xt=mt.headers,Fe=Xt===void 0?new Headers(Q.headers):Xt,yn=mt.params,Dn=yn===void 0?void 0:yn,Qn=mt.responseHandler,It=Qn===void 0?On??"json":Qn,Ct=mt.validateStatus,St=Ct===void 0?dn??be:Ct,ir=mt.timeout,Cr=ir===void 0?Ie:ir,cr=ne(mt,["url","headers","params","responseHandler","validateStatus","timeout"]),Yt=I($(I({},Q),{signal:ke}),cr),Fe=new Headers(qe(Fe)),nr=Yt,[4,bn(Fe,{getState:Je,extra:Mn,endpoint:Kn,forced:An,type:Wn})];case 1:nr.headers=Ao.sent()||Fe,jr=function(ss){return typeof ss=="object"&&(isPlainObject2(ss)||Array.isArray(ss)||typeof ss.toJSON=="function")},!Yt.headers.has("content-type")&&jr(Yt.body)&&Yt.headers.set("content-type",J),jr(Yt.body)&&Wt(Yt.headers)&&(Yt.body=JSON.stringify(Yt.body,we)),Dn&&(wr=~$t.indexOf("?")?"&":"?",gt=at?at(Dn):new URLSearchParams(qe(Dn)),$t+=wr+gt),$t=U(ln,$t),hr=new Request($t,Yt),ur=new Request($t,Yt),nt={request:ur},vr=!1,Lr=Cr&&setTimeout(function(){vr=!0,De.abort()},Cr),Ao.label=2;case 2:return Ao.trys.push([2,4,5,6]),[4,Rt(hr)];case 3:return Ur=Ao.sent(),[3,6];case 4:return Ar=Ao.sent(),[2,{error:{status:vr?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(Ar)},meta:nt}];case 5:return Lr&&clearTimeout(Lr),[7];case 6:xo=Ur.clone(),nt.response=xo,Gr="",Ao.label=7;case 7:return Ao.trys.push([7,9,,10]),[4,Promise.all([pe(Ur,It).then(function(ss){return Jr=ss},function(ss){return Yr=ss}),xo.text().then(function(ss){return Gr=ss},function(){})])];case 8:if(Ao.sent(),Yr)throw Yr;return[3,10];case 9:return oo=Ao.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:Ur.status,data:Gr,error:String(oo)},meta:nt}];case 10:return[2,St(Ur,Jr)?{data:Jr,meta:nt}:{error:{status:Ur.status,data:Jr},meta:nt}]}})})};function pe(ge,De){return k(this,null,function(){var ke;return T(this,function(Je){switch(Je.label){case 0:return typeof De=="function"?[2,De(ge)]:(De==="content-type"&&(De=Wt(ge.headers)?"json":"text"),De!=="json"?[3,2]:[4,ge.text()]);case 1:return ke=Je.sent(),[2,ke.length?JSON.parse(ke):null];case 2:return[2,ge.text()]}})})}}var Ge=function(){function Qe(Xn,Yn){Yn===void 0&&(Yn=void 0),this.value=Xn,this.meta=Yn}return Qe}();function un(Qe,Xn){return Qe===void 0&&(Qe=0),Xn===void 0&&(Xn=5),k(this,null,function(){var Yn,ln;return T(this,function(Jn){switch(Jn.label){case 0:return Yn=Math.min(Qe,Xn),ln=~~((Math.random()+.4)*(300<<Yn)),[4,new Promise(function(bn){return setTimeout(function(Zn){return bn(Zn)},ln)})];case 1:return Jn.sent(),[2]}})})}function cn(Qe){throw Object.assign(new Ge({error:Qe}),{throwImmediately:!0})}var Ln={},Nn=function(Qe,Xn){return function(Yn,ln,Jn){return k(void 0,null,function(){var bn,Zn,Rt,at,Bt,Wt,b;return T(this,function(J){switch(J.label){case 0:bn=[5,(Xn||Ln).maxRetries,(Jn||Ln).maxRetries].filter(function(we){return we!==void 0}),Zn=bn.slice(-1)[0],Rt=function(we,Ie,On){var dn=On.attempt;return dn<=Zn},at=I(I({maxRetries:Zn,backoff:un,retryCondition:Rt},Xn),Jn),Bt=0,J.label=1;case 1:J.label=2;case 2:return J.trys.push([2,4,,6]),[4,Qe(Yn,ln,Jn)];case 3:if(Wt=J.sent(),Wt.error)throw new Ge(Wt);return[2,Wt];case 4:if(b=J.sent(),Bt++,b.throwImmediately){if(b instanceof Ge)return[2,b.value];throw b}return b instanceof Ge&&!at.retryCondition(b.value.error,Yn,{attempt:Bt,baseQueryApi:ln,extraOptions:Jn})?[2,b.value]:[4,at.backoff(Bt,at.maxRetries)];case 5:return J.sent(),[3,6];case 6:return[3,1];case 7:return[2]}})})}},In=Object.assign(Nn,{fail:cn}),qn=(0,r.VP)("__rtkq/focused"),jn=(0,r.VP)("__rtkq/unfocused"),ht=(0,r.VP)("__rtkq/online"),wn=(0,r.VP)("__rtkq/offline"),st=!1;function Ze(Qe,Xn){function Yn(){var ln=function(){return Qe(qn())},Jn=function(){return Qe(jn())},bn=function(){return Qe(ht())},Zn=function(){return Qe(wn())},Rt=function(){window.document.visibilityState==="visible"?ln():Jn()};st||typeof window<"u"&&window.addEventListener&&(window.addEventListener("visibilitychange",Rt,!1),window.addEventListener("focus",ln,!1),window.addEventListener("online",bn,!1),window.addEventListener("offline",Zn,!1),st=!0);var at=function(){window.removeEventListener("focus",ln),window.removeEventListener("visibilitychange",Rt),window.removeEventListener("online",bn),window.removeEventListener("offline",Zn),st=!1};return at}return Xn?Xn(Qe,{onFocus:qn,onFocusLost:jn,onOffline:wn,onOnline:ht}):Yn()}var rt;(function(Qe){Qe.query="query",Qe.mutation="mutation"})(rt||(rt={}));function At(Qe){return Qe.type===rt.query}function yt(Qe){return Qe.type===rt.mutation}function Bn(Qe,Xn,Yn,ln,Jn,bn){return wt(Qe)?Qe(Xn,Yn,ln,Jn).map(an).map(bn):Array.isArray(Qe)?Qe.map(an).map(bn):[]}function wt(Qe){return typeof Qe=="function"}function an(Qe){return typeof Qe=="string"?{type:Qe}:Qe}function En(Qe){return Qe!=null}var ft=Symbol("forceQueryFn"),tn=function(Qe){return typeof Qe[ft]=="function"};function te(Qe){var Xn=Qe.serializeQueryArgs,Yn=Qe.queryThunk,ln=Qe.mutationThunk,Jn=Qe.api,bn=Qe.context,Zn=new Map,Rt=new Map,at=Jn.internalActions,Bt=at.unsubscribeQueryResult,Wt=at.removeMutationResult,b=at.updateSubscriptionOptions;return{buildInitiateQuery:ge,buildInitiateMutation:De,getRunningQueryThunk:Ie,getRunningMutationThunk:On,getRunningQueriesThunk:dn,getRunningMutationsThunk:Q,getRunningOperationPromises:we,removalWarning:J};function J(){throw new Error(`This method had to be removed due to a conceptual bug in RTK.
|
|
1414
1414
|
Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details.
|
|
1415
1415
|
See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}function we(){typeof C<"u";var ke=function(Je){return Array.from(Je.values()).flatMap(function(Mn){return Mn?Object.values(Mn):[]})};return D(D([],ke(Zn)),ke(Rt)).filter(En)}function Ie(ke,Je){return function(Mn){var Kn,An=bn.endpointDefinitions[ke],Wn=Xn({queryArgs:Je,endpointDefinition:An,endpointName:ke});return(Kn=Zn.get(Mn))==null?void 0:Kn[Wn]}}function On(ke,Je){return function(Mn){var Kn;return(Kn=Rt.get(Mn))==null?void 0:Kn[Je]}}function dn(){return function(ke){return Object.values(Zn.get(ke)||{}).filter(En)}}function Q(){return function(ke){return Object.values(Rt.get(ke)||{}).filter(En)}}function pe(ke){if(!1)var Je}function ge(ke,Je){var Mn=function(Kn,An){var Wn=An===void 0?{}:An,nt=Wn.subscribe,mt=nt===void 0?!0:nt,$t=Wn.forceRefetch,Xt=Wn.subscriptionOptions,Fe=ft,yn=Wn[Fe];return function(Dn,Qn){var It,Ct,St=Xn({queryArgs:Kn,endpointDefinition:Je,endpointName:ke}),ir=Yn((It={type:"query",subscribe:mt,forceRefetch:$t,subscriptionOptions:Xt,endpointName:ke,originalArgs:Kn,queryCacheKey:St},It[ft]=yn,It)),Cr=Jn.endpoints[ke].select(Kn),cr=Dn(ir),Yt=Cr(Qn());pe(Dn);var nr=cr.requestId,jr=cr.abort,wr=Yt.requestId!==nr,gt=(Ct=Zn.get(Dn))==null?void 0:Ct[St],hr=function(){return Cr(Qn())},ur=Object.assign(yn?cr.then(hr):wr&&!gt?Promise.resolve(Yt):Promise.all([gt,cr]).then(hr),{arg:Kn,requestId:nr,subscriptionOptions:Xt,queryCacheKey:St,abort:jr,unwrap:function(){return k(this,null,function(){var vr;return T(this,function(Lr){switch(Lr.label){case 0:return[4,ur];case 1:if(vr=Lr.sent(),vr.isError)throw vr.error;return[2,vr.data]}})})},refetch:function(){return Dn(Mn(Kn,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){mt&&Dn(Bt({queryCacheKey:St,requestId:nr}))},updateSubscriptionOptions:function(vr){ur.subscriptionOptions=vr,Dn(b({endpointName:ke,requestId:nr,queryCacheKey:St,options:vr}))}});if(!gt&&!wr&&!yn){var Ur=Zn.get(Dn)||{};Ur[St]=ur,Zn.set(Dn,Ur),ur.then(function(){delete Ur[St],Object.keys(Ur).length||Zn.delete(Dn)})}return ur}};return Mn}function De(ke){return function(Je,Mn){var Kn=Mn===void 0?{}:Mn,An=Kn.track,Wn=An===void 0?!0:An,nt=Kn.fixedCacheKey;return function(mt,$t){var Xt=ln({type:"mutation",endpointName:ke,originalArgs:Je,track:Wn,fixedCacheKey:nt}),Fe=mt(Xt);pe(mt);var yn=Fe.requestId,Dn=Fe.abort,Qn=Fe.unwrap,It=Fe.unwrap().then(function(Cr){return{data:Cr}}).catch(function(Cr){return{error:Cr}}),Ct=function(){mt(Wt({requestId:yn,fixedCacheKey:nt}))},St=Object.assign(It,{arg:Fe.arg,requestId:yn,abort:Dn,unwrap:Qn,unsubscribe:Ct,reset:Ct}),ir=Rt.get(mt)||{};return Rt.set(mt,ir),ir[yn]=St,St.then(function(){delete ir[yn],Object.keys(ir).length||Rt.delete(mt)}),nt&&(ir[nt]=St,St.then(function(){ir[nt]===St&&(delete ir[nt],Object.keys(ir).length||Rt.delete(mt))})),St}}}}function Xe(Qe){return Qe}function Ue(Qe){var Xn=this,Yn=Qe.reducerPath,ln=Qe.baseQuery,Jn=Qe.context.endpointDefinitions,bn=Qe.serializeQueryArgs,Zn=Qe.api,Rt=Qe.assertTagType,at=function(De,ke,Je,Mn){return function(Kn,An){var Wn=Jn[De],nt=bn({queryArgs:ke,endpointDefinition:Wn,endpointName:De});if(Kn(Zn.internalActions.queryResultPatched({queryCacheKey:nt,patches:Je})),!!Mn){var mt=Zn.endpoints[De].select(ke)(An()),$t=Bn(Wn.providesTags,mt.data,void 0,ke,{},Rt);Kn(Zn.internalActions.updateProvidedBy({queryCacheKey:nt,providedTags:$t}))}}},Bt=function(De,ke,Je,Mn){return Mn===void 0&&(Mn=!0),function(Kn,An){var Wn,nt,mt=Zn.endpoints[De],$t=mt.select(ke)(An()),Xt={patches:[],inversePatches:[],undo:function(){return Kn(Zn.util.patchQueryData(De,ke,Xt.inversePatches,Mn))}};if($t.status===H.uninitialized)return Xt;var Fe;if("data"in $t)if((0,n.a6)($t.data)){var yn=(0,n.vI)($t.data,Je),Dn=yn[0],Qn=yn[1],It=yn[2];(Wn=Xt.patches).push.apply(Wn,Qn),(nt=Xt.inversePatches).push.apply(nt,It),Fe=Dn}else Fe=Je($t.data),Xt.patches.push({op:"replace",path:[],value:Fe}),Xt.inversePatches.push({op:"replace",path:[],value:$t.data});return Kn(Zn.util.patchQueryData(De,ke,Xt.patches,Mn)),Xt}},Wt=function(De,ke,Je){return function(Mn){var Kn;return Mn(Zn.endpoints[De].initiate(ke,(Kn={subscribe:!1,forceRefetch:!0},Kn[ft]=function(){return{data:Je}},Kn)))}},b=function(De,ke){return k(Xn,[De,ke],function(Je,Mn){var Kn,An,Wn,nt,mt,$t,Xt,Fe,yn,Dn,Qn,It,Ct,St,ir,Cr,cr,Yt,nr=Mn.signal,jr=Mn.abort,wr=Mn.rejectWithValue,gt=Mn.fulfillWithValue,hr=Mn.dispatch,ur=Mn.getState,Ur=Mn.extra;return T(this,function(vr){switch(vr.label){case 0:Kn=Jn[Je.endpointName],vr.label=1;case 1:return vr.trys.push([1,8,,13]),An=Xe,Wn=void 0,nt={signal:nr,abort:jr,dispatch:hr,getState:ur,extra:Ur,endpoint:Je.endpointName,type:Je.type,forced:Je.type==="query"?J(Je,ur()):void 0},mt=Je.type==="query"?Je[ft]:void 0,mt?(Wn=mt(),[3,6]):[3,2];case 2:return Kn.query?[4,ln(Kn.query(Je.originalArgs),nt,Kn.extraOptions)]:[3,4];case 3:return Wn=vr.sent(),Kn.transformResponse&&(An=Kn.transformResponse),[3,6];case 4:return[4,Kn.queryFn(Je.originalArgs,nt,Kn.extraOptions,function(Lr){return ln(Lr,nt,Kn.extraOptions)})];case 5:Wn=vr.sent(),vr.label=6;case 6:if(typeof C<"u",Wn.error)throw new Ge(Wn.error,Wn.meta);return Qn=gt,[4,An(Wn.data,Wn.meta,Je.originalArgs)];case 7:return[2,Qn.apply(void 0,[vr.sent(),(cr={fulfilledTimeStamp:Date.now(),baseQueryMeta:Wn.meta},cr[r.cN]=!0,cr)])];case 8:if(It=vr.sent(),Ct=It,!(Ct instanceof Ge))return[3,12];St=Xe,Kn.query&&Kn.transformErrorResponse&&(St=Kn.transformErrorResponse),vr.label=9;case 9:return vr.trys.push([9,11,,12]),ir=wr,[4,St(Ct.value,Ct.meta,Je.originalArgs)];case 10:return[2,ir.apply(void 0,[vr.sent(),(Yt={baseQueryMeta:Ct.meta},Yt[r.cN]=!0,Yt)])];case 11:return Cr=vr.sent(),Ct=Cr,[3,12];case 12:throw typeof C<"u",console.error(Ct),Ct;case 13:return[2]}})})};function J(De,ke){var Je,Mn,Kn,An,Wn=(Mn=(Je=ke[Yn])==null?void 0:Je.queries)==null?void 0:Mn[De.queryCacheKey],nt=(Kn=ke[Yn])==null?void 0:Kn.config.refetchOnMountOrArgChange,mt=Wn?.fulfilledTimeStamp,$t=(An=De.forceRefetch)!=null?An:De.subscribe&&nt;return $t?$t===!0||(Number(new Date)-Number(mt))/1e3>=$t:!1}var we=(0,r.zD)(Yn+"/executeQuery",b,{getPendingMeta:function(){var De;return De={startedTimeStamp:Date.now()},De[r.cN]=!0,De},condition:function(De,ke){var Je=ke.getState,Mn,Kn,An,Wn=Je(),nt=(Kn=(Mn=Wn[Yn])==null?void 0:Mn.queries)==null?void 0:Kn[De.queryCacheKey],mt=nt?.fulfilledTimeStamp,$t=De.originalArgs,Xt=nt?.originalArgs,Fe=Jn[De.endpointName];return tn(De)?!0:nt?.status==="pending"?!1:J(De,Wn)||At(Fe)&&((An=Fe?.forceRefetch)!=null&&An.call(Fe,{currentArg:$t,previousArg:Xt,endpointState:nt,state:Wn}))?!0:!mt},dispatchConditionRejection:!0}),Ie=(0,r.zD)(Yn+"/executeMutation",b,{getPendingMeta:function(){var De;return De={startedTimeStamp:Date.now()},De[r.cN]=!0,De}}),On=function(De){return"force"in De},dn=function(De){return"ifOlderThan"in De},Q=function(De,ke,Je){return function(Mn,Kn){var An=On(Je)&&Je.force,Wn=dn(Je)&&Je.ifOlderThan,nt=function(Fe){return Fe===void 0&&(Fe=!0),Zn.endpoints[De].initiate(ke,{forceRefetch:Fe})},mt=Zn.endpoints[De].select(ke)(Kn());if(An)Mn(nt());else if(Wn){var $t=mt?.fulfilledTimeStamp;if(!$t){Mn(nt());return}var Xt=(Number(new Date)-Number(new Date($t)))/1e3>=Wn;Xt&&Mn(nt())}else Mn(nt(!1))}};function pe(De){return function(ke){var Je,Mn;return((Mn=(Je=ke?.meta)==null?void 0:Je.arg)==null?void 0:Mn.endpointName)===De}}function ge(De,ke){return{matchPending:(0,r.f$)((0,r.mm)(De),pe(ke)),matchFulfilled:(0,r.f$)((0,r.sf)(De),pe(ke)),matchRejected:(0,r.f$)((0,r.TK)(De),pe(ke))}}return{queryThunk:we,mutationThunk:Ie,prefetch:Q,updateQueryData:Bt,upsertQueryData:Wt,patchQueryData:at,buildMatchThunkActions:ge}}function Ne(Qe,Xn,Yn,ln){return Bn(Yn[Qe.meta.arg.endpointName][Xn],(0,r.sf)(Qe)?Qe.payload:void 0,(0,r.WA)(Qe)?Qe.payload:void 0,Qe.meta.arg.originalArgs,"baseQueryMeta"in Qe.meta?Qe.meta.baseQueryMeta:void 0,ln)}function le(Qe,Xn,Yn){var ln=Qe[Xn];ln&&Yn(ln)}function he(Qe){var Xn;return(Xn="arg"in Qe?Qe.arg.fixedCacheKey:Qe.fixedCacheKey)!=null?Xn:Qe.requestId}function We(Qe,Xn,Yn){var ln=Qe[he(Xn)];ln&&Yn(ln)}var mn={};function Be(Qe){var Xn=Qe.reducerPath,Yn=Qe.queryThunk,ln=Qe.mutationThunk,Jn=Qe.context,bn=Jn.endpointDefinitions,Zn=Jn.apiUid,Rt=Jn.extractRehydrationInfo,at=Jn.hasRehydrationInfo,Bt=Qe.assertTagType,Wt=Qe.config,b=(0,r.VP)(Xn+"/resetApiState"),J=(0,r.Z0)({name:Xn+"/queries",initialState:mn,reducers:{removeQueryResult:{reducer:function(ke,Je){var Mn=Je.payload.queryCacheKey;delete ke[Mn]},prepare:(0,r.aA)()},queryResultPatched:{reducer:function(ke,Je){var Mn=Je.payload,Kn=Mn.queryCacheKey,An=Mn.patches;le(ke,Kn,function(Wn){Wn.data=(0,n.$i)(Wn.data,An.concat())})},prepare:(0,r.aA)()}},extraReducers:function(ke){ke.addCase(Yn.pending,function(Je,Mn){var Kn=Mn.meta,An=Mn.meta.arg,Wn,nt,mt=tn(An);(An.subscribe||mt)&&((nt=Je[Wn=An.queryCacheKey])!=null||(Je[Wn]={status:H.uninitialized,endpointName:An.endpointName})),le(Je,An.queryCacheKey,function($t){$t.status=H.pending,$t.requestId=mt&&$t.requestId?$t.requestId:Kn.requestId,An.originalArgs!==void 0&&($t.originalArgs=An.originalArgs),$t.startedTimeStamp=Kn.startedTimeStamp})}).addCase(Yn.fulfilled,function(Je,Mn){var Kn=Mn.meta,An=Mn.payload;le(Je,Kn.arg.queryCacheKey,function(Wn){var nt;if(!(Wn.requestId!==Kn.requestId&&!tn(Kn.arg))){var mt=bn[Kn.arg.endpointName].merge;if(Wn.status=H.fulfilled,mt)if(Wn.data!==void 0){var $t=Kn.fulfilledTimeStamp,Xt=Kn.arg,Fe=Kn.baseQueryMeta,yn=Kn.requestId,Dn=(0,n.Ay)(Wn.data,function(Qn){return mt(Qn,An,{arg:Xt.originalArgs,baseQueryMeta:Fe,fulfilledTimeStamp:$t,requestId:yn})});Wn.data=Dn}else Wn.data=An;else Wn.data=(nt=bn[Kn.arg.endpointName].structuralSharing)==null||nt?de((0,n.Qx)(Wn.data)?(0,n.c2)(Wn.data):Wn.data,An):An;delete Wn.error,Wn.fulfilledTimeStamp=Kn.fulfilledTimeStamp}})}).addCase(Yn.rejected,function(Je,Mn){var Kn=Mn.meta,An=Kn.condition,Wn=Kn.arg,nt=Kn.requestId,mt=Mn.error,$t=Mn.payload;le(Je,Wn.queryCacheKey,function(Xt){if(!An){if(Xt.requestId!==nt)return;Xt.status=H.rejected,Xt.error=$t??mt}})}).addMatcher(at,function(Je,Mn){for(var Kn=Rt(Mn).queries,An=0,Wn=Object.entries(Kn);An<Wn.length;An++){var nt=Wn[An],mt=nt[0],$t=nt[1];($t?.status===H.fulfilled||$t?.status===H.rejected)&&(Je[mt]=$t)}})}}),we=(0,r.Z0)({name:Xn+"/mutations",initialState:mn,reducers:{removeMutationResult:{reducer:function(ke,Je){var Mn=Je.payload,Kn=he(Mn);Kn in ke&&delete ke[Kn]},prepare:(0,r.aA)()}},extraReducers:function(ke){ke.addCase(ln.pending,function(Je,Mn){var Kn=Mn.meta,An=Mn.meta,Wn=An.requestId,nt=An.arg,mt=An.startedTimeStamp;nt.track&&(Je[he(Kn)]={requestId:Wn,status:H.pending,endpointName:nt.endpointName,startedTimeStamp:mt})}).addCase(ln.fulfilled,function(Je,Mn){var Kn=Mn.payload,An=Mn.meta;An.arg.track&&We(Je,An,function(Wn){Wn.requestId===An.requestId&&(Wn.status=H.fulfilled,Wn.data=Kn,Wn.fulfilledTimeStamp=An.fulfilledTimeStamp)})}).addCase(ln.rejected,function(Je,Mn){var Kn=Mn.payload,An=Mn.error,Wn=Mn.meta;Wn.arg.track&&We(Je,Wn,function(nt){nt.requestId===Wn.requestId&&(nt.status=H.rejected,nt.error=Kn??An)})}).addMatcher(at,function(Je,Mn){for(var Kn=Rt(Mn).mutations,An=0,Wn=Object.entries(Kn);An<Wn.length;An++){var nt=Wn[An],mt=nt[0],$t=nt[1];($t?.status===H.fulfilled||$t?.status===H.rejected)&&mt!==$t?.requestId&&(Je[mt]=$t)}})}}),Ie=(0,r.Z0)({name:Xn+"/invalidation",initialState:mn,reducers:{updateProvidedBy:{reducer:function(ke,Je){for(var Mn,Kn,An,Wn,nt=Je.payload,mt=nt.queryCacheKey,$t=nt.providedTags,Xt=0,Fe=Object.values(ke);Xt<Fe.length;Xt++)for(var yn=Fe[Xt],Dn=0,Qn=Object.values(yn);Dn<Qn.length;Dn++){var It=Qn[Dn],Ct=It.indexOf(mt);Ct!==-1&&It.splice(Ct,1)}for(var St=0,ir=$t;St<ir.length;St++){var Cr=ir[St],cr=Cr.type,Yt=Cr.id,nr=(Wn=(Kn=(Mn=ke[cr])!=null?Mn:ke[cr]={})[An=Yt||"__internal_without_id"])!=null?Wn:Kn[An]=[],jr=nr.includes(mt);jr||nr.push(mt)}},prepare:(0,r.aA)()}},extraReducers:function(ke){ke.addCase(J.actions.removeQueryResult,function(Je,Mn){for(var Kn=Mn.payload.queryCacheKey,An=0,Wn=Object.values(Je);An<Wn.length;An++)for(var nt=Wn[An],mt=0,$t=Object.values(nt);mt<$t.length;mt++){var Xt=$t[mt],Fe=Xt.indexOf(Kn);Fe!==-1&&Xt.splice(Fe,1)}}).addMatcher(at,function(Je,Mn){for(var Kn,An,Wn,nt,mt=Rt(Mn).provided,$t=0,Xt=Object.entries(mt);$t<Xt.length;$t++)for(var Fe=Xt[$t],yn=Fe[0],Dn=Fe[1],Qn=0,It=Object.entries(Dn);Qn<It.length;Qn++)for(var Ct=It[Qn],St=Ct[0],ir=Ct[1],Cr=(nt=(An=(Kn=Je[yn])!=null?Kn:Je[yn]={})[Wn=St||"__internal_without_id"])!=null?nt:An[Wn]=[],cr=0,Yt=ir;cr<Yt.length;cr++){var nr=Yt[cr],jr=Cr.includes(nr);jr||Cr.push(nr)}}).addMatcher((0,r.i0)((0,r.sf)(Yn),(0,r.WA)(Yn)),function(Je,Mn){var Kn=Ne(Mn,"providesTags",bn,Bt),An=Mn.meta.arg.queryCacheKey;Ie.caseReducers.updateProvidedBy(Je,Ie.actions.updateProvidedBy({queryCacheKey:An,providedTags:Kn}))})}}),On=(0,r.Z0)({name:Xn+"/subscriptions",initialState:mn,reducers:{updateSubscriptionOptions:function(ke,Je){},unsubscribeQueryResult:function(ke,Je){},internal_probeSubscription:function(ke,Je){}}}),dn=(0,r.Z0)({name:Xn+"/internalSubscriptions",initialState:mn,reducers:{subscriptionsUpdated:{reducer:function(ke,Je){return(0,n.$i)(ke,Je.payload)},prepare:(0,r.aA)()}}}),Q=(0,r.Z0)({name:Xn+"/config",initialState:I({online:q(),focused:re(),middlewareRegistered:!1},Wt),reducers:{middlewareRegistered:function(ke,Je){var Mn=Je.payload;ke.middlewareRegistered=ke.middlewareRegistered==="conflict"||Zn!==Mn?"conflict":!0}},extraReducers:function(ke){ke.addCase(ht,function(Je){Je.online=!0}).addCase(wn,function(Je){Je.online=!1}).addCase(qn,function(Je){Je.focused=!0}).addCase(jn,function(Je){Je.focused=!1}).addMatcher(at,function(Je){return I({},Je)})}}),pe=(0,E.HY)({queries:J.reducer,mutations:we.reducer,provided:Ie.reducer,subscriptions:dn.reducer,config:Q.reducer}),ge=function(ke,Je){return pe(b.match(Je)?void 0:ke,Je)},De=$(I(I(I(I(I(I({},Q.actions),J.actions),On.actions),dn.actions),we.actions),Ie.actions),{unsubscribeMutationResult:we.actions.removeMutationResult,resetApiState:b});return{reducer:ge,actions:De}}var vn=Symbol.for("RTKQ/skipToken"),Cn=null,$n={status:H.uninitialized},ze=(0,n.Ay)($n,function(){}),on=(0,n.Ay)($n,function(){});function fn(Qe){var Xn=Qe.serializeQueryArgs,Yn=Qe.reducerPath,ln=function(Wt){return ze},Jn=function(Wt){return on};return{buildQuerySelector:Rt,buildMutationSelector:at,selectInvalidatedBy:Bt};function bn(Wt){return I(I({},Wt),N(Wt.status))}function Zn(Wt){var b=Wt[Yn];return b}function Rt(Wt,b){return function(J){var we=Xn({queryArgs:J,endpointDefinition:b,endpointName:Wt}),Ie=function(dn){var Q,pe,ge;return(ge=(pe=(Q=Zn(dn))==null?void 0:Q.queries)==null?void 0:pe[we])!=null?ge:ze},On=J===vn?ln:Ie;return j(On,bn)}}function at(){return function(Wt){var b,J;typeof Wt=="object"?J=(b=he(Wt))!=null?b:vn:J=Wt;var we=function(On){var dn,Q,pe;return(pe=(Q=(dn=Zn(On))==null?void 0:dn.mutations)==null?void 0:Q[J])!=null?pe:on},Ie=J===vn?Jn:we;return j(Ie,bn)}}function Bt(Wt,b){for(var J,we=Wt[Yn],Ie=new Set,On=0,dn=b.map(an);On<dn.length;On++){var Q=dn[On],pe=we.provided[Q.type];if(pe)for(var ge=(J=Q.id!==void 0?pe[Q.id]:G(Object.values(pe)))!=null?J:[],De=0,ke=ge;De<ke.length;De++){var Je=ke[De];Ie.add(Je)}}return G(Array.from(Ie.values()).map(function(Mn){var Kn=we.queries[Mn];return Kn?[{queryCacheKey:Mn,endpointName:Kn.endpointName,originalArgs:Kn.originalArgs}]:[]}))}}var Hn=WeakMap?new WeakMap:void 0,Pn=function(Qe){var Xn=Qe.endpointName,Yn=Qe.queryArgs,ln="",Jn=Hn?.get(Yn);if(typeof Jn=="string")ln=Jn;else{var bn=JSON.stringify(Yn,function(Zn,Rt){return(0,r.Qd)(Rt)?Object.keys(Rt).sort().reduce(function(at,Bt){return at[Bt]=Rt[Bt],at},{}):Rt});(0,r.Qd)(Yn)&&Hn?.set(Yn,bn),ln=bn}return Xn+"("+ln+")"};function B(){for(var Qe=[],Xn=0;Xn<arguments.length;Xn++)Qe[Xn]=arguments[Xn];return function(ln){var Jn=h(function(Wt){var b,J;return(J=ln.extractRehydrationInfo)==null?void 0:J.call(ln,Wt,{reducerPath:(b=ln.reducerPath)!=null?b:"api"})}),bn=$(I({reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1},ln),{extractRehydrationInfo:Jn,serializeQueryArgs:function(Wt){var b=Pn;if("serializeQueryArgs"in Wt.endpointDefinition){var J=Wt.endpointDefinition.serializeQueryArgs;b=function(we){var Ie=J(we);return typeof Ie=="string"?Ie:Pn($(I({},we),{queryArgs:Ie}))}}else ln.serializeQueryArgs&&(b=ln.serializeQueryArgs);return b(Wt)},tagTypes:D([],ln.tagTypes||[])}),Zn={endpointDefinitions:{},batch:function(Wt){Wt()},apiUid:(0,r.Ak)(),extractRehydrationInfo:Jn,hasRehydrationInfo:h(function(Wt){return Jn(Wt)!=null})},Rt={injectEndpoints:Bt,enhanceEndpoints:function(Wt){var b=Wt.addTagTypes,J=Wt.endpoints;if(b)for(var we=0,Ie=b;we<Ie.length;we++){var On=Ie[we];bn.tagTypes.includes(On)||bn.tagTypes.push(On)}if(J)for(var dn=0,Q=Object.entries(J);dn<Q.length;dn++){var pe=Q[dn],ge=pe[0],De=pe[1];typeof De=="function"?De(Zn.endpointDefinitions[ge]):Object.assign(Zn.endpointDefinitions[ge]||{},De)}return Rt}},at=Qe.map(function(Wt){return Wt.init(Rt,bn,Zn)});function Bt(Wt){for(var b=Wt.endpoints({query:function(De){return $(I({},De),{type:rt.query})},mutation:function(De){return $(I({},De),{type:rt.mutation})}}),J=0,we=Object.entries(b);J<we.length;J++){var Ie=we[J],On=Ie[0],dn=Ie[1];if(!Wt.overrideExisting&&On in Zn.endpointDefinitions){typeof C<"u";continue}Zn.endpointDefinitions[On]=dn;for(var Q=0,pe=at;Q<pe.length;Q++){var ge=pe[Q];ge.injectEndpoint(On,dn)}}return Rt}return Rt.injectEndpoints({endpoints:ln.endpoints})}}function ce(){return function(){throw new Error("When using `fakeBaseQuery`, all queries & mutations must use the `queryFn` definition syntax.")}}function oe(Qe){for(var Xn in Qe)return!1;return!0}var W=2147483647/1e3-1,ae=function(Qe){var Xn=Qe.reducerPath,Yn=Qe.api,ln=Qe.context,Jn=Qe.internalState,bn=Yn.internalActions,Zn=bn.removeQueryResult,Rt=bn.unsubscribeQueryResult;function at(J){var we=Jn.currentSubscriptions[J];return!!we&&!oe(we)}var Bt={},Wt=function(J,we,Ie){var On;if(Rt.match(J)){var dn=we.getState()[Xn],Q=J.payload.queryCacheKey;b(Q,(On=dn.queries[Q])==null?void 0:On.endpointName,we,dn.config)}if(Yn.util.resetApiState.match(J))for(var pe=0,ge=Object.entries(Bt);pe<ge.length;pe++){var De=ge[pe],ke=De[0],Je=De[1];Je&&clearTimeout(Je),delete Bt[ke]}if(ln.hasRehydrationInfo(J))for(var dn=we.getState()[Xn],Mn=ln.extractRehydrationInfo(J).queries,Kn=0,An=Object.entries(Mn);Kn<An.length;Kn++){var Wn=An[Kn],Q=Wn[0],nt=Wn[1];b(Q,nt?.endpointName,we,dn.config)}};function b(J,we,Ie,On){var dn,Q=ln.endpointDefinitions[we],pe=(dn=Q?.keepUnusedDataFor)!=null?dn:On.keepUnusedDataFor;if(pe!==1/0){var ge=Math.max(0,Math.min(pe,W));if(!at(J)){var De=Bt[J];De&&clearTimeout(De),Bt[J]=setTimeout(function(){at(J)||Ie.dispatch(Zn({queryCacheKey:J})),delete Bt[J]},ge*1e3)}}}return Wt},fe=function(Qe){var Xn=Qe.reducerPath,Yn=Qe.context,ln=Qe.context.endpointDefinitions,Jn=Qe.mutationThunk,bn=Qe.api,Zn=Qe.assertTagType,Rt=Qe.refetchQuery,at=bn.internalActions.removeQueryResult,Bt=(0,r.i0)((0,r.sf)(Jn),(0,r.WA)(Jn)),Wt=function(J,we){Bt(J)&&b(Ne(J,"invalidatesTags",ln,Zn),we),bn.util.invalidateTags.match(J)&&b(Bn(J.payload,void 0,void 0,void 0,void 0,Zn),we)};function b(J,we){var Ie=we.getState(),On=Ie[Xn],dn=bn.util.selectInvalidatedBy(Ie,J);Yn.batch(function(){for(var Q,pe=Array.from(dn.values()),ge=0,De=pe;ge<De.length;ge++){var ke=De[ge].queryCacheKey,Je=On.queries[ke],Mn=(Q=On.subscriptions[ke])!=null?Q:{};Je&&(Object.keys(Mn).length===0?we.dispatch(at({queryCacheKey:ke})):Je.status!==H.uninitialized&&we.dispatch(Rt(Je,ke)))}})}return Wt},Me=function(Qe){var Xn=Qe.reducerPath,Yn=Qe.queryThunk,ln=Qe.api,Jn=Qe.refetchQuery,bn=Qe.internalState,Zn={},Rt=function(we,Ie){(ln.internalActions.updateSubscriptionOptions.match(we)||ln.internalActions.unsubscribeQueryResult.match(we))&&Bt(we.payload,Ie),(Yn.pending.match(we)||Yn.rejected.match(we)&&we.meta.condition)&&Bt(we.meta.arg,Ie),(Yn.fulfilled.match(we)||Yn.rejected.match(we)&&!we.meta.condition)&&at(we.meta.arg,Ie),ln.util.resetApiState.match(we)&&b()};function at(we,Ie){var On=we.queryCacheKey,dn=Ie.getState()[Xn],Q=dn.queries[On],pe=bn.currentSubscriptions[On];if(!(!Q||Q.status===H.uninitialized)){var ge=J(pe);if(Number.isFinite(ge)){var De=Zn[On];De?.timeout&&(clearTimeout(De.timeout),De.timeout=void 0);var ke=Date.now()+ge,Je=Zn[On]={nextPollTimestamp:ke,pollingInterval:ge,timeout:setTimeout(function(){Je.timeout=void 0,Ie.dispatch(Jn(Q,On))},ge)}}}}function Bt(we,Ie){var On=we.queryCacheKey,dn=Ie.getState()[Xn],Q=dn.queries[On],pe=bn.currentSubscriptions[On];if(!(!Q||Q.status===H.uninitialized)){var ge=J(pe);if(!Number.isFinite(ge)){Wt(On);return}var De=Zn[On],ke=Date.now()+ge;(!De||ke<De.nextPollTimestamp)&&at({queryCacheKey:On},Ie)}}function Wt(we){var Ie=Zn[we];Ie?.timeout&&clearTimeout(Ie.timeout),delete Zn[we]}function b(){for(var we=0,Ie=Object.keys(Zn);we<Ie.length;we++){var On=Ie[we];Wt(On)}}function J(we){we===void 0&&(we={});var Ie=Number.POSITIVE_INFINITY;for(var On in we)we[On].pollingInterval&&(Ie=Math.min(we[On].pollingInterval,Ie));return Ie}return Rt},Ke=function(Qe){var Xn=Qe.reducerPath,Yn=Qe.context,ln=Qe.api,Jn=Qe.refetchQuery,bn=Qe.internalState,Zn=ln.internalActions.removeQueryResult,Rt=function(Bt,Wt){qn.match(Bt)&&at(Wt,"refetchOnFocus"),ht.match(Bt)&&at(Wt,"refetchOnReconnect")};function at(Bt,Wt){var b=Bt.getState()[Xn],J=b.queries,we=bn.currentSubscriptions;Yn.batch(function(){for(var Ie=0,On=Object.keys(we);Ie<On.length;Ie++){var dn=On[Ie],Q=J[dn],pe=we[dn];if(!(!pe||!Q)){var ge=Object.values(pe).some(function(De){return De[Wt]===!0})||Object.values(pe).every(function(De){return De[Wt]===void 0})&&b.config[Wt];ge&&(Object.keys(pe).length===0?Bt.dispatch(Zn({queryCacheKey:dn})):Q.status!==H.uninitialized&&Bt.dispatch(Jn(Q,dn)))}}})}return Rt},Vn=new Error("Promise never resolved before cacheEntryRemoved."),ut=function(Qe){var Xn=Qe.api,Yn=Qe.reducerPath,ln=Qe.context,Jn=Qe.queryThunk,bn=Qe.mutationThunk,Zn=Qe.internalState,Rt=(0,r.$S)(Jn),at=(0,r.$S)(bn),Bt=(0,r.sf)(Jn,bn),Wt={},b=function(Ie,On,dn){var Q=J(Ie);if(Jn.pending.match(Ie)){var pe=dn[Yn].queries[Q],ge=On.getState()[Yn].queries[Q];!pe&&ge&&we(Ie.meta.arg.endpointName,Ie.meta.arg.originalArgs,Q,On,Ie.meta.requestId)}else if(bn.pending.match(Ie)){var ge=On.getState()[Yn].mutations[Q];ge&&we(Ie.meta.arg.endpointName,Ie.meta.arg.originalArgs,Q,On,Ie.meta.requestId)}else if(Bt(Ie)){var De=Wt[Q];De?.valueResolved&&(De.valueResolved({data:Ie.payload,meta:Ie.meta.baseQueryMeta}),delete De.valueResolved)}else if(Xn.internalActions.removeQueryResult.match(Ie)||Xn.internalActions.removeMutationResult.match(Ie)){var De=Wt[Q];De&&(delete Wt[Q],De.cacheEntryRemoved())}else if(Xn.util.resetApiState.match(Ie))for(var ke=0,Je=Object.entries(Wt);ke<Je.length;ke++){var Mn=Je[ke],Kn=Mn[0],De=Mn[1];delete Wt[Kn],De.cacheEntryRemoved()}};function J(Ie){return Rt(Ie)?Ie.meta.arg.queryCacheKey:at(Ie)?Ie.meta.requestId:Xn.internalActions.removeQueryResult.match(Ie)?Ie.payload.queryCacheKey:Xn.internalActions.removeMutationResult.match(Ie)?he(Ie.payload):""}function we(Ie,On,dn,Q,pe){var ge=ln.endpointDefinitions[Ie],De=ge?.onCacheEntryAdded;if(De){var ke={},Je=new Promise(function(mt){ke.cacheEntryRemoved=mt}),Mn=Promise.race([new Promise(function(mt){ke.valueResolved=mt}),Je.then(function(){throw Vn})]);Mn.catch(function(){}),Wt[dn]=ke;var Kn=Xn.endpoints[Ie].select(ge.type===rt.query?On:dn),An=Q.dispatch(function(mt,$t,Xt){return Xt}),Wn=$(I({},Q),{getCacheEntry:function(){return Kn(Q.getState())},requestId:pe,extra:An,updateCachedData:ge.type===rt.query?function(mt){return Q.dispatch(Xn.util.updateQueryData(Ie,On,mt))}:void 0,cacheDataLoaded:Mn,cacheEntryRemoved:Je}),nt=De(On,Wn);Promise.resolve(nt).catch(function(mt){if(mt!==Vn)throw mt})}}return b},_t=function(Qe){var Xn=Qe.api,Yn=Qe.context,ln=Qe.queryThunk,Jn=Qe.mutationThunk,bn=(0,r.mm)(ln,Jn),Zn=(0,r.TK)(ln,Jn),Rt=(0,r.sf)(ln,Jn),at={},Bt=function(Wt,b){var J,we,Ie;if(bn(Wt)){var On=Wt.meta,dn=On.requestId,Q=On.arg,pe=Q.endpointName,ge=Q.originalArgs,De=Yn.endpointDefinitions[pe],ke=De?.onQueryStarted;if(ke){var Je={},Mn=new Promise(function(Fe,yn){Je.resolve=Fe,Je.reject=yn});Mn.catch(function(){}),at[dn]=Je;var Kn=Xn.endpoints[pe].select(De.type===rt.query?ge:dn),An=b.dispatch(function(Fe,yn,Dn){return Dn}),Wn=$(I({},b),{getCacheEntry:function(){return Kn(b.getState())},requestId:dn,extra:An,updateCachedData:De.type===rt.query?function(Fe){return b.dispatch(Xn.util.updateQueryData(pe,ge,Fe))}:void 0,queryFulfilled:Mn});ke(ge,Wn)}}else if(Rt(Wt)){var nt=Wt.meta,dn=nt.requestId,mt=nt.baseQueryMeta;(J=at[dn])==null||J.resolve({data:Wt.payload,meta:mt}),delete at[dn]}else if(Zn(Wt)){var $t=Wt.meta,dn=$t.requestId,Xt=$t.rejectedWithValue,mt=$t.baseQueryMeta;(Ie=at[dn])==null||Ie.reject({error:(we=Wt.payload)!=null?we:Wt.error,isUnhandledError:!Xt,meta:mt}),delete at[dn]}};return Bt},lr=function(Qe){var Xn=Qe.api,Yn=Qe.context.apiUid,ln=Qe.reducerPath;return function(Jn,bn){var Zn,Rt;Xn.util.resetApiState.match(Jn)&&bn.dispatch(Xn.internalActions.middlewareRegistered(Yn)),typeof C<"u"}},xr,pr=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof e.g<"u"?e.g:globalThis):function(Qe){return(xr||(xr=Promise.resolve())).then(Qe).catch(function(Xn){return setTimeout(function(){throw Xn},0)})},gr=function(Qe){var Xn=Qe.api,Yn=Qe.queryThunk,ln=Qe.internalState,Jn=Xn.reducerPath+"/subscriptions",bn=null,Zn=!1,Rt=Xn.internalActions,at=Rt.updateSubscriptionOptions,Bt=Rt.unsubscribeQueryResult,Wt=function(b,J){var we,Ie,On,dn,Q,pe,ge,De,ke;if(at.match(J)){var Je=J.payload,Mn=Je.queryCacheKey,Kn=Je.requestId,An=Je.options;return(we=b?.[Mn])!=null&&we[Kn]&&(b[Mn][Kn]=An),!0}if(Bt.match(J)){var Wn=J.payload,Mn=Wn.queryCacheKey,Kn=Wn.requestId;return b[Mn]&&delete b[Mn][Kn],!0}if(Xn.internalActions.removeQueryResult.match(J))return delete b[J.payload.queryCacheKey],!0;if(Yn.pending.match(J)){var nt=J.meta,mt=nt.arg,Kn=nt.requestId;if(mt.subscribe){var $t=(On=b[Ie=mt.queryCacheKey])!=null?On:b[Ie]={};return $t[Kn]=(Q=(dn=mt.subscriptionOptions)!=null?dn:$t[Kn])!=null?Q:{},!0}}if(Yn.rejected.match(J)){var Xt=J.meta,Fe=Xt.condition,mt=Xt.arg,Kn=Xt.requestId;if(Fe&&mt.subscribe){var $t=(ge=b[pe=mt.queryCacheKey])!=null?ge:b[pe]={};return $t[Kn]=(ke=(De=mt.subscriptionOptions)!=null?De:$t[Kn])!=null?ke:{},!0}}return!1};return function(b,J){var we,Ie;if(bn||(bn=JSON.parse(JSON.stringify(ln.currentSubscriptions))),Xn.util.resetApiState.match(b))return bn=ln.currentSubscriptions={},[!0,!1];if(Xn.internalActions.internal_probeSubscription.match(b)){var On=b.payload,dn=On.queryCacheKey,Q=On.requestId,pe=!!((we=ln.currentSubscriptions[dn])!=null&&we[Q]);return[!1,pe]}var ge=Wt(ln.currentSubscriptions,b);if(ge){Zn||(pr(function(){var Mn=JSON.parse(JSON.stringify(ln.currentSubscriptions)),Kn=(0,n.vI)(bn,function(){return Mn}),An=Kn[1];J.next(Xn.internalActions.subscriptionsUpdated(An)),bn=Mn,Zn=!1}),Zn=!0);var De=!!((Ie=b.type)!=null&&Ie.startsWith(Jn)),ke=Yn.rejected.match(b)&&b.meta.condition&&!!b.meta.arg.subscribe,Je=!De&&!ke;return[Je,!1]}return[!0,!1]}};function Or(Qe){var Xn=Qe.reducerPath,Yn=Qe.queryThunk,ln=Qe.api,Jn=Qe.context,bn=Jn.apiUid,Zn={invalidateTags:(0,r.VP)(Xn+"/invalidateTags")},Rt=function(b){return!!b&&typeof b.type=="string"&&b.type.startsWith(Xn+"/")},at=[lr,ae,fe,Me,ut,_t],Bt=function(b){var J=!1,we={currentSubscriptions:{}},Ie=$(I({},Qe),{internalState:we,refetchQuery:Wt}),On=at.map(function(pe){return pe(Ie)}),dn=gr(Ie),Q=Ke(Ie);return function(pe){return function(ge){J||(J=!0,b.dispatch(ln.internalActions.middlewareRegistered(bn)));var De=$(I({},b),{next:pe}),ke=b.getState(),Je=dn(ge,De,ke),Mn=Je[0],Kn=Je[1],An;if(Mn?An=pe(ge):An=Kn,b.getState()[Xn]&&(Q(ge,De,ke),Rt(ge)||Jn.hasRehydrationInfo(ge)))for(var Wn=0,nt=On;Wn<nt.length;Wn++){var mt=nt[Wn];mt(ge,De,ke)}return An}}};return{middleware:Bt,actions:Zn};function Wt(b,J,we){return we===void 0&&(we={}),Yn(I({type:"query",endpointName:b.endpointName,originalArgs:b.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:J},we))}}function Dr(Qe){}function Rr(Qe){for(var Xn=[],Yn=1;Yn<arguments.length;Yn++)Xn[Yn-1]=arguments[Yn];Object.assign.apply(Object,D([Qe],Xn))}var kt=Symbol(),fr=function(){return{name:kt,init:function(Qe,Xn,Yn){var ln=Xn.baseQuery,Jn=Xn.tagTypes,bn=Xn.reducerPath,Zn=Xn.serializeQueryArgs,Rt=Xn.keepUnusedDataFor,at=Xn.refetchOnMountOrArgChange,Bt=Xn.refetchOnFocus,Wt=Xn.refetchOnReconnect;(0,n.YT)();var b=function(Cr){return typeof C<"u",Cr};Object.assign(Qe,{reducerPath:bn,endpoints:{},internalActions:{onOnline:ht,onOffline:wn,onFocus:qn,onFocusLost:jn},util:{}});var J=Ue({baseQuery:ln,reducerPath:bn,context:Yn,api:Qe,serializeQueryArgs:Zn,assertTagType:b}),we=J.queryThunk,Ie=J.mutationThunk,On=J.patchQueryData,dn=J.updateQueryData,Q=J.upsertQueryData,pe=J.prefetch,ge=J.buildMatchThunkActions,De=Be({context:Yn,queryThunk:we,mutationThunk:Ie,reducerPath:bn,assertTagType:b,config:{refetchOnFocus:Bt,refetchOnReconnect:Wt,refetchOnMountOrArgChange:at,keepUnusedDataFor:Rt,reducerPath:bn}}),ke=De.reducer,Je=De.actions;Rr(Qe.util,{patchQueryData:On,updateQueryData:dn,upsertQueryData:Q,prefetch:pe,resetApiState:Je.resetApiState}),Rr(Qe.internalActions,Je);var Mn=Or({reducerPath:bn,context:Yn,queryThunk:we,mutationThunk:Ie,api:Qe,assertTagType:b}),Kn=Mn.middleware,An=Mn.actions;Rr(Qe.util,An),Rr(Qe,{reducer:ke,middleware:Kn});var Wn=fn({serializeQueryArgs:Zn,reducerPath:bn}),nt=Wn.buildQuerySelector,mt=Wn.buildMutationSelector,$t=Wn.selectInvalidatedBy;Rr(Qe.util,{selectInvalidatedBy:$t});var Xt=te({queryThunk:we,mutationThunk:Ie,api:Qe,serializeQueryArgs:Zn,context:Yn}),Fe=Xt.buildInitiateQuery,yn=Xt.buildInitiateMutation,Dn=Xt.getRunningMutationThunk,Qn=Xt.getRunningMutationsThunk,It=Xt.getRunningQueriesThunk,Ct=Xt.getRunningQueryThunk,St=Xt.getRunningOperationPromises,ir=Xt.removalWarning;return Rr(Qe.util,{getRunningOperationPromises:St,getRunningOperationPromise:ir,getRunningMutationThunk:Dn,getRunningMutationsThunk:Qn,getRunningQueryThunk:Ct,getRunningQueriesThunk:It}),{name:kt,injectEndpoint:function(Cr,cr){var Yt,nr,jr=Qe;(nr=(Yt=jr.endpoints)[Cr])!=null||(Yt[Cr]={}),At(cr)?Rr(jr.endpoints[Cr],{name:Cr,select:nt(Cr,cr),initiate:Fe(Cr,cr)},ge(we,Cr)):yt(cr)&&Rr(jr.endpoints[Cr],{name:Cr,select:mt(),initiate:yn(Cr)},ge(Ie,Cr))}}}}},zt=B(fr())},"./node_modules/.pnpm/@reduxjs+toolkit@1.9.7_react-redux@8.1.3_react@18.3.1/node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js":(u,m,e)=>{"use strict";e.d(m,{cN:()=>Kn,U1:()=>Ze,VP:()=>$,zD:()=>Hn,Nc:()=>Mn,Z0:()=>En,f$:()=>W,i0:()=>oe,$S:()=>_t,sf:()=>ut,mm:()=>Me,Qd:()=>A,TK:()=>Ke,WA:()=>Vn,Ak:()=>Cn,aA:()=>An});var r=e("./node_modules/.pnpm/immer@9.0.21/node_modules/immer/dist/immer.esm.js"),n=e("./node_modules/.pnpm/redux@4.2.1/node_modules/redux/es/redux.js");function o(Fe){var yn=function(Qn){var It=Qn.dispatch,Ct=Qn.getState;return function(St){return function(ir){return typeof ir=="function"?ir(It,Ct,Fe):St(ir)}}};return yn}var t=o();t.withExtraArgument=o;const i=t;var c=e("./node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js"),l=function(){var Fe=function(yn,Dn){return Fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Qn,It){Qn.__proto__=It}||function(Qn,It){for(var Ct in It)Object.prototype.hasOwnProperty.call(It,Ct)&&(Qn[Ct]=It[Ct])},Fe(yn,Dn)};return function(yn,Dn){if(typeof Dn!="function"&&Dn!==null)throw new TypeError("Class extends value "+String(Dn)+" is not a constructor or null");Fe(yn,Dn);function Qn(){this.constructor=yn}yn.prototype=Dn===null?Object.create(Dn):(Qn.prototype=Dn.prototype,new Qn)}}(),h=function(Fe,yn){var Dn={label:0,sent:function(){if(Ct[0]&1)throw Ct[1];return Ct[1]},trys:[],ops:[]},Qn,It,Ct,St;return St={next:ir(0),throw:ir(1),return:ir(2)},typeof Symbol=="function"&&(St[Symbol.iterator]=function(){return this}),St;function ir(cr){return function(Yt){return Cr([cr,Yt])}}function Cr(cr){if(Qn)throw new TypeError("Generator is already executing.");for(;Dn;)try{if(Qn=1,It&&(Ct=cr[0]&2?It.return:cr[0]?It.throw||((Ct=It.return)&&Ct.call(It),0):It.next)&&!(Ct=Ct.call(It,cr[1])).done)return Ct;switch(It=0,Ct&&(cr=[cr[0]&2,Ct.value]),cr[0]){case 0:case 1:Ct=cr;break;case 4:return Dn.label++,{value:cr[1],done:!1};case 5:Dn.label++,It=cr[1],cr=[0];continue;case 7:cr=Dn.ops.pop(),Dn.trys.pop();continue;default:if(Ct=Dn.trys,!(Ct=Ct.length>0&&Ct[Ct.length-1])&&(cr[0]===6||cr[0]===2)){Dn=0;continue}if(cr[0]===3&&(!Ct||cr[1]>Ct[0]&&cr[1]<Ct[3])){Dn.label=cr[1];break}if(cr[0]===6&&Dn.label<Ct[1]){Dn.label=Ct[1],Ct=cr;break}if(Ct&&Dn.label<Ct[2]){Dn.label=Ct[2],Dn.ops.push(cr);break}Ct[2]&&Dn.ops.pop(),Dn.trys.pop();continue}cr=yn.call(Fe,Dn)}catch(Yt){cr=[6,Yt],It=0}finally{Qn=Ct=0}if(cr[0]&5)throw cr[1];return{value:cr[0]?cr[1]:void 0,done:!0}}},g=function(Fe,yn){for(var Dn=0,Qn=yn.length,It=Fe.length;Dn<Qn;Dn++,It++)Fe[It]=yn[Dn];return Fe},v=Object.defineProperty,j=Object.defineProperties,P=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,D=function(Fe,yn,Dn){return yn in Fe?v(Fe,yn,{enumerable:!0,configurable:!0,writable:!0,value:Dn}):Fe[yn]=Dn},O=function(Fe,yn){for(var Dn in yn||(yn={}))C.call(yn,Dn)&&D(Fe,Dn,yn[Dn]);if(E)for(var Qn=0,It=E(yn);Qn<It.length;Qn++){var Dn=It[Qn];T.call(yn,Dn)&&D(Fe,Dn,yn[Dn])}return Fe},M=function(Fe,yn){return j(Fe,P(yn))},w=function(Fe,yn,Dn){return new Promise(function(Qn,It){var Ct=function(Cr){try{ir(Dn.next(Cr))}catch(cr){It(cr)}},St=function(Cr){try{ir(Dn.throw(Cr))}catch(cr){It(cr)}},ir=function(Cr){return Cr.done?Qn(Cr.value):Promise.resolve(Cr.value).then(Ct,St)};ir((Dn=Dn.apply(Fe,yn)).next())})},y=function(){for(var Fe=[],yn=0;yn<arguments.length;yn++)Fe[yn]=arguments[yn];var Dn=createSelector.apply(void 0,Fe),Qn=function(It){for(var Ct=[],St=1;St<arguments.length;St++)Ct[St-1]=arguments[St];return Dn.apply(void 0,g([isDraft(It)?current(It):It],Ct))};return Qn},x=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?n.Zz:n.Zz.apply(null,arguments)},R=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(Fe){return Fe}};function A(Fe){if(typeof Fe!="object"||Fe===null)return!1;var yn=Object.getPrototypeOf(Fe);if(yn===null)return!0;for(var Dn=yn;Object.getPrototypeOf(Dn)!==null;)Dn=Object.getPrototypeOf(Dn);return yn===Dn}var I=function(Fe){return Fe&&typeof Fe.match=="function"};function $(Fe,yn){function Dn(){for(var Qn=[],It=0;It<arguments.length;It++)Qn[It]=arguments[It];if(yn){var Ct=yn.apply(void 0,Qn);if(!Ct)throw new Error("prepareAction did not return an object");return O(O({type:Fe,payload:Ct.payload},"meta"in Ct&&{meta:Ct.meta}),"error"in Ct&&{error:Ct.error})}return{type:Fe,payload:Qn[0]}}return Dn.toString=function(){return""+Fe},Dn.type=Fe,Dn.match=function(Qn){return Qn.type===Fe},Dn}function ne(Fe){return A(Fe)&&"type"in Fe}function k(Fe){return typeof Fe=="function"&&"type"in Fe&&I(Fe)}function H(Fe){return ne(Fe)&&typeof Fe.type=="string"&&Object.keys(Fe).every(N)}function N(Fe){return["type","payload","error","meta"].indexOf(Fe)>-1}function Y(Fe){return""+Fe}function ie(Fe){var yn=Fe?(""+Fe).split("/"):[],Dn=yn[yn.length-1]||"actionCreator";return'Detected an action creator with type "'+(Fe||"unknown")+`" being dispatched.
|
|
1416
1416
|
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(`+Dn+"())` instead of `dispatch("+Dn+")`. This is necessary even if the action has no payload."}function V(Fe){return Fe===void 0&&(Fe={}),function(){return function(Qn){return function(It){return Qn(It)}}};var yn,Dn}function U(Fe,yn){var Dn=0;return{measureTime:function(Qn){var It=Date.now();try{return Qn()}finally{var Ct=Date.now();Dn+=Ct-It}},warnIfExceeded:function(){Dn>Fe&&console.warn(yn+" took "+Dn+"ms, which is more than the warning threshold of "+Fe+`ms.
|