@elliemae/pui-app-sdk 5.41.2 → 5.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/docs/404.html +2 -2
- package/build/docs/api/classes/Analytics/index.html +2 -2
- package/build/docs/api/classes/CMicroAppGuest/index.html +2 -2
- package/build/docs/api/classes/CMicroAppHost/index.html +2 -2
- package/build/docs/api/classes/ErrorBoundary/index.html +2 -2
- package/build/docs/api/classes/GuestModule/index.html +2 -2
- package/build/docs/api/functions/AppRoot/index.html +2 -2
- package/build/docs/api/functions/Autocomplete/index.html +2 -2
- package/build/docs/api/functions/CheckBox/index.html +2 -2
- package/build/docs/api/functions/ComboBox/index.html +2 -2
- package/build/docs/api/functions/ComboBoxV3/index.html +2 -2
- package/build/docs/api/functions/ConnectForm/index.html +2 -2
- package/build/docs/api/functions/DateInput/index.html +2 -2
- package/build/docs/api/functions/DatePicker/index.html +2 -2
- package/build/docs/api/functions/DateRangePicker/index.html +2 -2
- package/build/docs/api/functions/DateTimePicker/index.html +2 -2
- package/build/docs/api/functions/Form/index.html +2 -2
- package/build/docs/api/functions/FormItemLayout/index.html +2 -2
- package/build/docs/api/functions/FormLayoutBlockItem/index.html +2 -2
- package/build/docs/api/functions/FormSubmitButton/index.html +2 -2
- package/build/docs/api/functions/InputMask/index.html +2 -2
- package/build/docs/api/functions/InputText/index.html +2 -2
- package/build/docs/api/functions/LargeTextBox/index.html +2 -2
- package/build/docs/api/functions/MaskedInputText/index.html +2 -2
- package/build/docs/api/functions/Page/index.html +2 -2
- package/build/docs/api/functions/Radio/index.html +2 -2
- package/build/docs/api/functions/RadioGroup/index.html +2 -2
- package/build/docs/api/functions/RegisterService/index.html +2 -2
- package/build/docs/api/functions/RenderWithStateAddOns/index.html +2 -2
- package/build/docs/api/functions/RequireAuth/index.html +2 -2
- package/build/docs/api/functions/SessionTimeout/index.html +2 -2
- package/build/docs/api/functions/TextBox/index.html +2 -2
- package/build/docs/api/functions/Toggle/index.html +2 -2
- package/build/docs/api/functions/authSaga/index.html +2 -2
- package/build/docs/api/functions/authorize/index.html +2 -2
- package/build/docs/api/functions/buildModuleParams/index.html +2 -2
- package/build/docs/api/functions/cleanup/index.html +2 -2
- package/build/docs/api/functions/configureStore/index.html +2 -2
- package/build/docs/api/functions/createGuestModule/index.html +2 -2
- package/build/docs/api/functions/createManager/index.html +2 -2
- package/build/docs/api/functions/enableReactAppForHostIntegration/index.html +2 -2
- package/build/docs/api/functions/fetchHostAppData/index.html +2 -2
- package/build/docs/api/functions/fetchUserSettings/index.html +2 -2
- package/build/docs/api/functions/getApiActionCreator/index.html +2 -2
- package/build/docs/api/functions/getAppConfig/index.html +2 -2
- package/build/docs/api/functions/getAppConfigValue/index.html +2 -2
- package/build/docs/api/functions/getAuthHTTPClient/index.html +2 -2
- package/build/docs/api/functions/getAuthorizationHeader/index.html +2 -2
- package/build/docs/api/functions/getHTTPClient/index.html +2 -2
- package/build/docs/api/functions/getHostAppDataByKey/index.html +2 -2
- package/build/docs/api/functions/getLogger/index.html +2 -2
- package/build/docs/api/functions/getMicroFrontEndAppConfig/index.html +2 -2
- package/build/docs/api/functions/getNavigationLinks/index.html +2 -2
- package/build/docs/api/functions/getRedirectUrl/index.html +2 -2
- package/build/docs/api/functions/getSelectField/index.html +2 -2
- package/build/docs/api/functions/getStore/index.html +2 -2
- package/build/docs/api/functions/initServiceWorker/index.html +2 -2
- package/build/docs/api/functions/isCIBuild/index.html +2 -2
- package/build/docs/api/functions/isProd/index.html +2 -2
- package/build/docs/api/functions/isUserAuthorized/index.html +2 -2
- package/build/docs/api/functions/listenStorageEvents/index.html +2 -2
- package/build/docs/api/functions/loadAppConfig/index.html +2 -2
- package/build/docs/api/functions/loadable/index.html +2 -2
- package/build/docs/api/functions/login/index.html +2 -2
- package/build/docs/api/functions/notifyGuestUnloadComplete/index.html +2 -2
- package/build/docs/api/functions/onAuthorizationFailure/index.html +2 -2
- package/build/docs/api/functions/onGuestUnloadStart/index.html +2 -2
- package/build/docs/api/functions/redactPii/index.html +2 -2
- package/build/docs/api/functions/removeDoubleSlash/index.html +2 -2
- package/build/docs/api/functions/removeStorageEvents/index.html +2 -2
- package/build/docs/api/functions/render/index.html +2 -2
- package/build/docs/api/functions/renderHook/index.html +2 -2
- package/build/docs/api/functions/renderWithHostData/index.html +2 -2
- package/build/docs/api/functions/renderWithRedux/index.html +2 -2
- package/build/docs/api/functions/renderWithRouter/index.html +2 -2
- package/build/docs/api/functions/renderWithRouterRedux/index.html +2 -2
- package/build/docs/api/functions/sdkBaseQuery/index.html +2 -2
- package/build/docs/api/functions/sendBAEvent/index.html +2 -2
- package/build/docs/api/functions/sendMessageToHost/index.html +2 -2
- package/build/docs/api/functions/setAppConfig/index.html +2 -2
- package/build/docs/api/functions/setAppConfigValue/index.html +2 -2
- package/build/docs/api/functions/setHostAppData/index.html +2 -2
- package/build/docs/api/functions/setLoginParams/index.html +2 -2
- package/build/docs/api/functions/subscribeToResetSession/index.html +2 -2
- package/build/docs/api/functions/subscribeToSessionExpiry/index.html +2 -2
- package/build/docs/api/functions/subscribeToSessionExpiryWarning/index.html +2 -2
- package/build/docs/api/functions/trackActivity/index.html +2 -2
- package/build/docs/api/functions/useAppDispatch/index.html +2 -2
- package/build/docs/api/functions/useAppMiddleware/index.html +2 -2
- package/build/docs/api/functions/useInjectQuery/index.html +2 -2
- package/build/docs/api/functions/useInjectReducer/index.html +2 -2
- package/build/docs/api/functions/useInjectSaga/index.html +2 -2
- package/build/docs/api/functions/useInjectSideEffect/index.html +2 -2
- package/build/docs/api/functions/useMediaQueryList/index.html +2 -2
- package/build/docs/api/functions/useStateSelector/index.html +2 -2
- package/build/docs/api/functions/useStateSelectorShallow/index.html +2 -2
- package/build/docs/api/functions/waitFor/index.html +2 -2
- package/build/docs/api/functions/waitForElementToBeRemoved/index.html +2 -2
- package/build/docs/api/functions/withAppDecorator/index.html +2 -2
- package/build/docs/api/index.html +2 -2
- package/build/docs/api/interfaces/AppConfig/index.html +2 -2
- package/build/docs/api/interfaces/GuestProps/index.html +2 -2
- package/build/docs/api/interfaces/UseStateSelectorOptions/index.html +2 -2
- package/build/docs/api/type-aliases/AppDispatch/index.html +2 -2
- package/build/docs/api/type-aliases/AppStore/index.html +2 -2
- package/build/docs/api/type-aliases/Await/index.html +2 -2
- package/build/docs/api/type-aliases/EMUI/index.html +2 -2
- package/build/docs/api/type-aliases/HostOptions/index.html +2 -2
- package/build/docs/api/type-aliases/HostProvidedParams/index.html +2 -2
- package/build/docs/api/type-aliases/ModuleOverrides/index.html +2 -2
- package/build/docs/api/type-aliases/OnHostInitCallback/index.html +2 -2
- package/build/docs/api/type-aliases/OnInitCallback/index.html +2 -2
- package/build/docs/api/type-aliases/OnMountCallback/index.html +2 -2
- package/build/docs/api/type-aliases/OnUnMountCallback/index.html +2 -2
- package/build/docs/api/type-aliases/RootState/index.html +2 -2
- package/build/docs/api/type-aliases/SelectStateFieldFunction/index.html +2 -2
- package/build/docs/api/variables/ErrorToast/index.html +2 -2
- package/build/docs/api/variables/FormPropsContext/index.html +2 -2
- package/build/docs/api/variables/GuestMicroApp/index.html +2 -2
- package/build/docs/api/variables/MASK_PIPES/index.html +2 -2
- package/build/docs/api/variables/MASK_TYPES/index.html +2 -2
- package/build/docs/api/variables/MicroApp/index.html +2 -2
- package/build/docs/api/variables/MicroIFrameApp/index.html +2 -2
- package/build/docs/api/variables/NavigationPrompt/index.html +2 -2
- package/build/docs/api/variables/NavigationPromptActions/index.html +2 -2
- package/build/docs/api/variables/Themes/index.html +2 -2
- package/build/docs/api/variables/VisuallyHidden/index.html +2 -2
- package/build/docs/api/variables/WaitMessage/index.html +2 -2
- package/build/docs/api/variables/act/index.html +2 -2
- package/build/docs/api/variables/ariaLive/index.html +2 -2
- package/build/docs/api/variables/auth/index.html +2 -2
- package/build/docs/api/variables/authReducer/index.html +2 -2
- package/build/docs/api/variables/clearSideEffects/index.html +2 -2
- package/build/docs/api/variables/createSideEffect/index.html +2 -2
- package/build/docs/api/variables/decorators/index.html +30 -5
- package/build/docs/api/variables/endSession/index.html +2 -2
- package/build/docs/api/variables/error/index.html +2 -2
- package/build/docs/api/variables/errorMiddleware/index.html +2 -2
- package/build/docs/api/variables/fireEvent/index.html +2 -2
- package/build/docs/api/variables/globalConstants/index.html +2 -2
- package/build/docs/api/variables/history/index.html +2 -2
- package/build/docs/api/variables/httpClientProps/index.html +2 -2
- package/build/docs/api/variables/logout/index.html +2 -2
- package/build/docs/api/variables/memoryHistory/index.html +2 -2
- package/build/docs/api/variables/removeSideEffect/index.html +2 -2
- package/build/docs/api/variables/resetUserIdleTime/index.html +2 -2
- package/build/docs/api/variables/screen/index.html +2 -2
- package/build/docs/api/variables/startSideEffect/index.html +2 -2
- package/build/docs/api/variables/updateBAEventParameters/index.html +2 -2
- package/build/docs/api/variables/useAppSelector/index.html +2 -2
- package/build/docs/api/variables/waitMessageAction/index.html +2 -2
- package/build/docs/api/variables/within/index.html +2 -2
- package/build/docs/assets/js/1ad86f56.2b384b4e.js +1 -0
- package/build/docs/assets/js/{main.a36c7b43.js → main.af1ae617.js} +2 -2
- package/build/docs/assets/js/{runtime~main.e278d925.js → runtime~main.dc6c8988.js} +1 -1
- package/build/docs/index.html +2 -2
- package/build/docs/usage-guide/index.html +2 -2
- package/demo/{8807.e36e5461.iframe.bundle.js → 8807.7f66e486.iframe.bundle.js} +1 -1
- package/demo/8807.7f66e486.iframe.bundle.js.br +0 -0
- package/demo/{docs/8807.e36e5461.iframe.bundle.js.gz → 8807.7f66e486.iframe.bundle.js.gz} +0 -0
- package/demo/docs/{8807.e36e5461.iframe.bundle.js → 8807.7f66e486.iframe.bundle.js} +1 -1
- package/demo/docs/8807.7f66e486.iframe.bundle.js.br +0 -0
- package/demo/{8807.e36e5461.iframe.bundle.js.gz → docs/8807.7f66e486.iframe.bundle.js.gz} +0 -0
- package/demo/docs/iframe.html +1 -1
- package/demo/docs/index.html +1 -1
- package/demo/docs/{main.3727c192f66965863109.manager.bundle.js → main.66215924563be71d1c25.manager.bundle.js} +1 -1
- package/demo/docs/main.66215924563be71d1c25.manager.bundle.js.br +0 -0
- package/demo/docs/main.66215924563be71d1c25.manager.bundle.js.gz +0 -0
- package/demo/docs/{main.a85d80c3.iframe.bundle.js → main.d9ce4638.iframe.bundle.js} +1 -1
- package/demo/docs/main.d9ce4638.iframe.bundle.js.br +0 -0
- package/demo/{main.a85d80c3.iframe.bundle.js.gz → docs/main.d9ce4638.iframe.bundle.js.gz} +0 -0
- package/demo/docs/project.json +1 -1
- package/demo/docs/{runtime~main.e8805059.iframe.bundle.js → runtime~main.d927f324.iframe.bundle.js} +2 -2
- package/demo/docs/runtime~main.d927f324.iframe.bundle.js.br +0 -0
- package/demo/docs/runtime~main.d927f324.iframe.bundle.js.gz +0 -0
- package/demo/iframe.html +1 -1
- package/demo/index.html +1 -1
- package/demo/{main.3727c192f66965863109.manager.bundle.js → main.66215924563be71d1c25.manager.bundle.js} +1 -1
- package/demo/main.66215924563be71d1c25.manager.bundle.js.br +0 -0
- package/demo/main.66215924563be71d1c25.manager.bundle.js.gz +0 -0
- package/demo/{main.a85d80c3.iframe.bundle.js → main.d9ce4638.iframe.bundle.js} +1 -1
- package/demo/main.d9ce4638.iframe.bundle.js.br +0 -0
- package/demo/{docs/main.a85d80c3.iframe.bundle.js.gz → main.d9ce4638.iframe.bundle.js.gz} +0 -0
- package/demo/project.json +1 -1
- package/demo/{runtime~main.e8805059.iframe.bundle.js → runtime~main.d927f324.iframe.bundle.js} +2 -2
- package/demo/runtime~main.d927f324.iframe.bundle.js.br +0 -0
- package/demo/runtime~main.d927f324.iframe.bundle.js.gz +0 -0
- package/dist/cjs/utils/decorators/index.js +4 -0
- package/dist/cjs/utils/decorators/propertyDecorators.js +41 -0
- package/dist/esm/utils/decorators/index.js +4 -0
- package/dist/esm/utils/decorators/propertyDecorators.js +21 -0
- package/dist/types/lib/utils/decorators/index.d.ts +4 -0
- package/dist/types/lib/utils/decorators/propertyDecorators.d.ts +22 -0
- package/dist/types/lib/utils/decorators/tests/propertyDecorators.test.d.ts +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/build/docs/assets/js/1ad86f56.f102fd5e.js +0 -1
- package/demo/8807.e36e5461.iframe.bundle.js.br +0 -0
- package/demo/docs/8807.e36e5461.iframe.bundle.js.br +0 -0
- package/demo/docs/main.3727c192f66965863109.manager.bundle.js.br +0 -0
- package/demo/docs/main.3727c192f66965863109.manager.bundle.js.gz +0 -0
- package/demo/docs/main.a85d80c3.iframe.bundle.js.br +0 -0
- package/demo/docs/runtime~main.e8805059.iframe.bundle.js.br +0 -0
- package/demo/docs/runtime~main.e8805059.iframe.bundle.js.gz +0 -0
- package/demo/main.3727c192f66965863109.manager.bundle.js.br +0 -0
- package/demo/main.3727c192f66965863109.manager.bundle.js.gz +0 -0
- package/demo/main.a85d80c3.iframe.bundle.js.br +0 -0
- package/demo/runtime~main.e8805059.iframe.bundle.js.br +0 -0
- package/demo/runtime~main.e8805059.iframe.bundle.js.gz +0 -0
- /package/build/docs/assets/js/{main.a36c7b43.js.LICENSE.txt → main.af1ae617.js.LICENSE.txt} +0 -0
|
@@ -18397,7 +18397,7 @@ ${H}`;console.warn(N),I.warned=!0}return T(z,k,F,...L)};return Object.defineProp
|
|
|
18397
18397
|
}
|
|
18398
18398
|
}
|
|
18399
18399
|
${d.L1}
|
|
18400
|
-
`;e.d(o,["Az",0,v,"G3",0,h,"KZ",0,b,"OV",0,j,"_W",0,c,"f7",0,S,"rf",0,p,"uP",0,g])},"./node_modules/.pnpm/@elliemae+ds-toast@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/react-desc-prop-types.js"(u,o,e){"use strict";var t=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),n=e("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.61.8_@elliemae+pui-theme@2.13.0_lodash-es@4.18.1/node_modules/@elliemae/ds-props-helpers/dist/esm/propTypes/PropTypes.js"),r=e("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.61.8_@elliemae+pui-theme@2.13.0_lodash-es@4.18.1/node_modules/@elliemae/ds-props-helpers/dist/esm/propsPerSlot/getPropsPerSlotPropTypes.js"),s=e("./node_modules/.pnpm/@elliemae+ds-toast@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/constants.js"),a=e("./node_modules/.pnpm/@elliemae+ds-toast@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/DSToastDefinitions.js");const d={containerProps:{},position:"bottom-left",autoClose:5e3,showProgressBar:!1,closeOnClick:!1,enableMultiContainer:!1},i=null,c={containerProps:n.A.object.description("inject props to wrapper").defaultValue({}),position:n.A.oneOf(s.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,r.Y)(a.GM,a.UJ),closeButtonRef:n.A.oneOfType([n.A.object,n.A.func]).description("Close button ref")},m={children:n.A.node.isRequired.description("link text")},p={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")},h={type:n.A.oneOf(s.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")};e.d(o,["AS",0,h,"Gs",0,d,"x7",0,c])},"./node_modules/.pnpm/@elliemae+ds-toast@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/toast.js"(u,o,e){"use strict";e.d(o,{o:()=>v});var t=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"),r=e("./node_modules/.pnpm/react-toastify@6.2.0/node_modules/react-toastify/dist/react-toastify.cjs.production.min.js"),s=e("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.61.8_@elliemae+pui-theme@2.13.0_lodash-es@4.18.1/node_modules/@elliemae/ds-props-helpers/dist/esm/propTypes/describe.js"),a=e("./node_modules/.pnpm/@elliemae+ds-toast@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/react-desc-prop-types.js"),d=e("./node_modules/.pnpm/@elliemae+ds-toast@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/parts/styled.js"),i=e("./node_modules/.pnpm/@elliemae+ds-toast@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/constants.js"),c=e("./node_modules/.pnpm/@elliemae+ds-toast@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/DSToastDefinitions.js");const m=g=>i.lA[g],p=g=>i.JC[g],h=({type:g=i.Ck.DEFAULT,messageTitle:x="",messageText:j="",messageComponent:S})=>{const P=m(g),w=p(g);return(0,n.jsxs)(d.rf,{"data-testid":"ds-toast-render",className:"em-ds-toast-content",children:[(0,n.jsx)(d.G3,{className:"em-ds-toast-content__icon-container",children:(0,n.jsx)(P,{size:"m",className:"em-ds-toast-content__icon-message",color:w})}),(0,n.jsxs)(d.KZ,{className:"em-ds-toast-content__message-content",children:[(0,n.jsx)(d.Az,{className:"em-ds-toast-content__message-header",children:x}),(0,n.jsx)(d.uP,{className:"em-ds-toast-content__message-text",children:S||j})]})]})};h.displayName=c.VR;const b=(0,s.A)(h);b.propTypes=a.AS;const v=Object.assign(({type:g,messageTitle:x,messageText:j,messageComponent:S,...P},w)=>(0,r.oR)((0,n.jsx)(h,{messageText:j,messageComponent:S,messageTitle:x,type:g}),{...P,...w,type:g}),{...r.oR,isActive:g=>r.oR.isActive(g)})},"./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"(u,o,e){"use strict";e.d(o,{Jh:()=>t,b3:()=>n});class t{name;objectId;id;constructor(d){const{name:i,objectId:c}=d;if(!i)throw new Error("Event name is required");if(!c)throw new Error("Scripting object id is required");this.objectId=c,this.name=i,this.id=`${this.objectId}.${this.name}`.toLowerCase()}}class n{static[Symbol.hasInstance](d){return typeof d=="object"&&d!==null&&"getType"in d&&typeof d.getType=="function"&&d.getType()==="ProxyEvent"}#e;objectId;name;id;getType(){return"ProxyEvent"}constructor(d){const{name:i,objectId:c,eventSrc:m}=d;if(!i)throw new Error("Event name is required");if(!c)throw new Error("Scripting object id is required");if(!m)throw new Error("Event source is required");this.objectId=c,this.name=i,this.#e=m,this.id=`${this.objectId}.${this.name}`.toLowerCase()}subscribe=d=>this.#e.subscribe({eventId:this.id,callback:d});unsubscribe=d=>{this.#e.unsubscribe({eventId:this.id,token:d})}}const r=a=>a instanceof t,s=(a,d)=>`${a.toLowerCase()}.${d.toLowerCase()}`;e.d(o,["_s",0,s,"xH",0,r])},"./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/filterCriteria.js"(u,o,e){"use strict";e.d(o,{of:()=>s,ts:()=>a});const t=new Map;function n(d){return typeof d=="object"&&d!==null&&("eq"in d||"in"in d||"includes"in d||"gt"in d||"lt"in d||"regex"in d)}function r(d,i,c){if("eq"in i)return d===i.eq;if("in"in i)return Array.isArray(i.in)&&i.in.includes(d);if("includes"in i)return Array.isArray(d)&&d.includes(i.includes);if("gt"in i){const m=typeof d=="number"?d:Number(d);return!Number.isNaN(m)&&m>i.gt}if("lt"in i){const m=typeof d=="number"?d:Number(d);return!Number.isNaN(m)&&m<i.lt}if("regex"in i){const m=c??t;let p=m.get(i.regex);if(p===void 0){try{p=new RegExp(i.regex)}catch{p=null}m.set(i.regex,p)}return p!==null&&typeof d=="string"&&p.test(d)}return!1}function s(d){return d!=null&&Object.keys(d).length>0}function a(d,i,c){return Object.entries(i).every(([m,p])=>r(d[m],p,c?.regexCache))}},"./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/messageType.js"(u,o,e){"use strict";e.d(o,{G:()=>t});var t=(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))(t||{})},"./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"(u,o,e){"use strict";e.d(o,{V:()=>t});class t{__TYPE__="Proxy";id;objectType;constructor(s,a){this.id=s,this.objectType=a}}const n=r=>r?.constructor?.name==="Proxy"||r?.constructor?.name==="ScriptingObjectProxy"||r?.__TYPE__==="Proxy";e.d(o,["h",0,n])},"./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/remoting.js"(u,o,e){"use strict";e.d(o,{K:()=>i});var t=e("./node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js");const n="elli:remoting",r="elli:remoting:response",s="elli:remoting:exception",a=({messageType:c,messageBody:m,requestId:p,onewayMsg:h=!1})=>({requestId:p??(h?null:(0,t.A)()),source:n,type:c,body:m}),d=c=>{const{targetWin:m,targetOrigin:p,messageType:h,messageBody:b}=c,v=a({messageType:h,messageBody:b});m.postMessage(v,p)};class i{#e;#t;#n=new Map;#o=new Map;#r=null;#i=null;#s=new Map;constructor(m,p){if(!m)throw new Error("logger is required");if(!p)throw new Error("correlationId is required");this.#e=p,this.#t=m}#c=()=>{this.#r=null;const m=Date.now(),p=[];let h=null;if(this.#o.forEach((b,v)=>{const{requestId:g,cancelTime:x}=b;x&&x<=m?(this.#t.debug(`Detected response timeout for requestId: ${g}...`),p.push(v),b.resolve(void 0)):x&&(h=h===null?x:Math.min(h,x))}),p.forEach(b=>{this.#o.delete(b)}),h!==null){const b=Math.max(h-Date.now(),0);this.#a(b)}};#a=m=>{this.#r===null&&(this.#r=window.setTimeout(this.#c,m))};#p=()=>{this.#r!==null&&(window.clearTimeout(this.#r),this.#r=null)};#l=m=>{const p=this.#o.get(m);return this.#t.debug(`serving requestId: ${m}`),this.#o.delete(m),p};#u=m=>{const{requestId:p}=m;this.#t.debug(`Response received for invocation requestId: ${p}`);const h=this.#l(p);return h?(h.resolve(m.body),!0):(this.#t.debug(`Received response to stale/invalid request with requestId: ${p}`),!1)};#h=m=>{this.#t.debug(`Exception received for invocation (requestId = ${m.requestId})`);const p=this.#l(m.requestId);return p?(p.reject(new Error(m.body)),!0):(this.#t.warn(`Received exception for stale/invalid request (requestId = ${m.requestId})`),!1)};#b=({sourceWin:m,sourceOrigin:p,message:h})=>{this.#t.debug(`Received message of type "${h.type}"`);const b=this.#n.get(h.type);return b?(b.forEach(v=>{this.#t.debug(`Invoking message handler ${v.name}`),v({sourceWin:m,sourceOrigin:p,requestId:h.requestId,type:h.type,body:h.body})}),!0):!1};#d=m=>{if(this.#s.size===0||!m.source)return!1;const p=this.#s.get(m.source);return!p||m?.data?.source!==n?!1:(this.#t.debug(`Remoting: Received message of type "${m.data.type}"`),m.data.type===r?this.#u(m.data):m.data.type===s?this.#h(m.data):this.#b({sourceWin:m.source,sourceOrigin:p,message:m.data}),!0)};addSender=m=>{const{origin:p,window:h}=m;if(!p)throw new Error("origin is required");if(!h)throw new Error("window is required");this.#s.set(h,p)};initialize=m=>{this.#i&&this.#i.removeEventListener("message",this.#d),m.addEventListener("message",this.#d),this.#i=m,this.#t.debug(`initialized remoting id: ${this.#e}`)};close=()=>{this.#i&&(this.#i.removeEventListener("message",this.#d),this.#i=null),this.#p(),this.#t.debug(`closed remoting id: ${this.#e}`)};invoke=m=>{const{targetWin:p,targetOrigin:h,messageType:b,messageBody:v,responseTimeoutMs:g}=m;return new Promise((x,j)=>{const S=a({messageType:b,messageBody:v});this.#o.set(S.requestId,{requestId:S.requestId,resolve:x,reject:j,cancelTime:g?Date.now()+g:null}),p.postMessage(S,h);const{requestId:P}=S;this.#t.debug(`Posted invocation message of type ${b} requestId: ${P||""}`),g&&(this.#t.debug(`scheduling timeout check for requestId: ${P||""} in ${g} ms`),this.#a(g))})};listen=m=>{const{messageType:p,callback:h}=m,b=this.#n.get(p)||[];b.push(h),this.#n.set(p,b)};unlisten=m=>{const{messageType:p,callback:h}=m,b=this.#n.get(p);if(!b)return;const v=b.indexOf(h);v!==-1&&b.splice(v,1)};send=m=>{const{targetWin:p,targetOrigin:h,messageType:b,messageBody:v}=m,g=a({messageType:b,messageBody:v,onewayMsg:!0});p.postMessage(g,h),this.#t.debug(`Posted one-way message of type "${b}"`)};removeSender=m=>{const{window:p}=m;p&&this.#s.delete(p)};respond=m=>{const{targetWin:p,targetOrigin:h,requestId:b,response:v}=m,g=a({messageType:r,messageBody:v,requestId:b});p.postMessage(g,h),this.#t.debug(`Response sent to caller for invocation requestId: ${b}`)};raiseException=m=>{const{targetWin:p,targetOrigin:h,requestId:b,ex:v}=m,g=v instanceof Error?v.message:v,x=a({messageType:s,messageBody:g,requestId:b});p.postMessage(x,h),this.#t.debug(`Exception sent to caller for invocation. requestId: ${b}`)}}e.d(o,["_",0,d])},"./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js"(u,o,e){"use strict";e.d(o,{P:()=>s});var t=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js");const n="function",r=(a,d)=>typeof a===n&&!!d&&!d.startsWith("_");class s{#e;#t="Object";constructor(d,i){this.#e=d,this.#t=i||this.#t}get id(){return this.#e}get objectType(){return this.#t}_toJSON=()=>{const d=[],i=[];return Object.keys(this).forEach(c=>{const m=this[c];(0,t.xH)(m)?i.push(c):r(m,c)&&d.push(c)}),{objectId:this.#e,objectType:this.#t,functions:d,events:i}};_dispose=()=>{};dispose=()=>{}}e.d(o,["Q",0,r])},"./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObjectManager.js"(u,o,e){"use strict";e.d(o,{qE:()=>s});const t="module";var n=null,r=null;class s{#e=d=>d.trim().toLowerCase();#t=new Map;#n=new Map;#o=d=>{const{so:i,guestId:c,onDuplicate:m="throw",securityContext:p}=d,h=this.#e(i.id),b={so:i,guestId:c,securityContext:p},v=this.#n.get(c);if(!v){this.#n.set(c,new Map([[h,b]]));return}if(v.has(h)){if(m==="ignore")return;throw new Error(`Scripting Object ${i.id} already exists for guest ${c}`)}v.set(h,b)};#r=({so:d})=>{if(d._dispose&&typeof d._dispose=="function")try{d._dispose()}catch{}};#i=({objectId:d,guestId:i})=>{if(d===t&&!i)for(const[,m]of this.#n){const p=m.get(d);if(p)return p}const c=i?this.#n.get(i):null;return c?c.get(d)??null:null};#s=({objectId:d,guestId:i}={})=>{if(i){if(!d){const m=this.#n.get(i);m&&m.forEach(this.#r),this.#n.delete(i);return}const c=this.#n.get(i);if(c){const m=c.get(d);m&&this.#r(m),c.delete(d)}}else d&&this.#n.forEach(c=>{const m=c.get(d);m&&this.#r(m),c.delete(d)})};addScriptingObject=(d,i)=>{const{guestId:c,onDuplicate:m="throw",securityContext:p}=i||{};if(!d?.id||!d?._toJSON)throw new Error("Object is not derived from ScriptingObject");const h=this.#e(d.id);if(h===t&&!c)throw new Error("Guest id is required to add Module scripting object");if(c){this.#o({so:d,...i,guestId:c,onDuplicate:m});return}if(this.#t.has(h)){if(m==="ignore")return;throw new Error(`Scripting Object ${d.id} already exists`)}this.#t.set(h,{so:d,guestId:c,securityContext:p})};getObject=(d,i)=>{const c=this.#e(d);let m=this.#i({objectId:c,guestId:i?.id});m=m??this.#t.get(c)??null;const{so:p}=m||{};return p||null};has=(d,i)=>this.getObject(d,i)!==null;listScriptingObjects=d=>{const i=new Set(this.#t.keys()),c=this.#n.get(d);if(c)for(const m of c.keys())i.add(m);return Array.from(i)};removeScriptingObject=(d,i)=>{const c=this.#e(d);if(i)this.#s({objectId:c,guestId:i});else{this.#s({objectId:c});const m=this.#t.get(c);m&&this.#r(m),this.#t.delete(c)}};removeAllScriptingObjects=d=>{d?this.#s({guestId:d}):(this.#t.forEach(this.#r),this.#t.clear())}}},"./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.1/node_modules/@elliemae/pui-analytics-so/dist/esm/analytics.js"(u,o,e){"use strict";e.d(o,{j:()=>h});var t=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js");const n=b=>typeof b!="number"||Number.isNaN(b)?0:b>=1?1:b<=0?0:b,r=b=>Math.round(n(b)*100/5)*5,s=b=>{const g=r(b),x=100,j=(P,w)=>w===0?P:j(w,P%w),S=j(g,x);return{numerator:g/S,denominator:x/S}};class a{#e=0;#t=0;#n=0;constructor(v){const g=s(v);this.#e=g.numerator,this.#t=g.denominator}shouldSample=()=>(this.#n+=1,this.#n<=this.#e?!0:(this.#n===this.#t&&(this.#n=0),!1))}class d{#e={};#t={};#n=new a(.25);constructor(v={}){Object.keys(v).forEach(g=>{this.#e[g]=new a(v[g]),this.#t[g]=v[g]})}shouldSample(v){return this.#e[v]?this.#e[v].shouldSample():this.#n.shouldSample()}setRatio(v,g){this.#e[v]=new a(g),this.#t[v]=g}deleteRatio(v){delete this.#e[v],delete this.#t[v]}getRatio(v){return this.#t[v]}getAllRatios(){return{...this.#t}}}var i=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.1/node_modules/@elliemae/pui-analytics-so/dist/esm/logrocket.js"),c=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.1/node_modules/@elliemae/pui-analytics-so/dist/esm/baEventParameters.js");const m=Promise.resolve(),p=/^(?:GTM-|G-)[A-Z0-9-]+(?::\S*)?$/;class h extends t.P{#e;#t;constructor(v){super("analytics"),this.#e=v.logger,this.#t=new d(v.timingEventSamplingRatios??v.samplingRatios),this.#n()}#n=()=>{try{new PerformanceObserver(g=>{const x=g.getEntries();queueMicrotask(()=>{this.#o(x)})}).observe({type:"measure",buffered:!0})}catch(v){this.#e.error({message:"Error while recording performance",exception:v})}};#o=v=>{for(const g of v)if(g.entryType==="measure"&&!p.test(g.name)&&this.#t.shouldSample(g.name)){const x=g.detail??{},j=g.duration.toString(),S=new Date(performance.timeOrigin+g.startTime).toISOString();this.#e.info({message:"timing",event:g.name,duration:j,startTime:S,detail:x}),this.#r(g.name,{...x,duration:j,startTime:S})}};#r=(v,g)=>{const x=`timing:${v}`;window.gtmDataLayer=window.gtmDataLayer||[],window.gtmDataLayer.push({...(0,c.QS)(),...(0,c.np)(),...g,event:x})};setTimingEventSamplingRatio=v=>{Object.entries(v).forEach(([g,x])=>{this.#t.setRatio(g,x)})};getTimingEventSamplingRatio=v=>{const g={};return v.forEach(x=>{g[x]=this.#t.getRatio(x)}),g};deleteTimingEventSamplingRatio=v=>{v.forEach(g=>{this.#t.deleteRatio(g)})};getAllTimingEventSamplingRatios=()=>this.#t.getAllRatios();sendBAEvent=v=>{const{event:g,...x}=v??{};return g&&(window.gtmDataLayer=window.gtmDataLayer||[],window.gtmDataLayer.push({...(0,c.QS)(),...(0,c.np)(),...x,event:g}),(0,i.As)(g,x)),m};startTiming=(v,g)=>{if(!v)throw new Error("parameter mark is required");if(!g||!g?.appId||!g?.appUrl)throw new Error("parameter options is required");const x=performance.mark(v,{detail:g});return m.then(()=>({name:x?.name,startTime:x?.startTime}))};endTiming=(v,g)=>{if(!v)throw new Error("parameter start is required");if(!g||!g?.appId||!g?.appUrl)throw new Error("parameter options is required");const x=v?.name??v,j=performance.getEntriesByName(x,"mark")?.[0],S={startAppId:j?.detail?.appId??g.appId,startAppUrl:j?.detail?.appUrl??g.appUrl,endAppId:g.appId,endAppUrl:g.appUrl};return j?(typeof v=="string"?performance.measure(x,{detail:S,start:x}):performance.measure(x,{detail:S,start:v.startTime}),performance.clearMarks(x)):performance.measure(x,{detail:S,end:performance.now()}),m}}},"./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.1/node_modules/@elliemae/pui-analytics-so/dist/esm/baEventParameters.js"(u,o,e){"use strict";const t=(()=>{try{return window.parent.document,window.parent}catch{return window}})(),n=()=>({envName:sessionStorage.getItem("envName")||"localhost",appId:window.emui?.appId||"",instanceId:sessionStorage.getItem("instanceId")||"",userId:sessionStorage.getItem("userId")||""}),r=()=>{},s=()=>({productId:t?.emui?.appId??"",productPath:t.location.pathname,productUrl:t.location.href,productPageTitle:t.document.title,version:t?.emui?.version??"",appId:window?.emui?.appId??"",appPath:window.location.pathname,appUrl:window.location.href,appPageTitle:document.title});let a={};const d=()=>({...n(),...a}),i=c=>{a={...a,...c}};e.d(o,["QS",0,d,"nE",0,i,"np",0,s])},"./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.1/node_modules/@elliemae/pui-analytics-so/dist/esm/logrocket.js"(u,o,e){"use strict";const t=()=>window.emui?.logRocket,a=new Map,d=P=>{a.size<50||a.forEach((w,E)=>{P-w.windowStart>=1e3&&a.delete(E)})},i=2,c=(P,w)=>{let E=P;for(const A of Object.keys(w))E+=`|${A}:${String(w[A])}`;return E},m=20,p=[];let h="";const b=()=>{const P=t();if(!P)return;const w=sessionStorage.getItem("user");if(w)try{const E=JSON.parse(w),A=E.user_key;if(!A||A===h)return;const D=E.user_name||sessionStorage.getItem("userId")||"",T=E.encompass_instance_id||sessionStorage.getItem("instanceId")||"";P.identify(A,{name:D,instanceId:T}),h=A}catch{}},v=P=>{h=P},g=()=>{h="",p.length=0},x=(P,w,E)=>{const A=c(w,E),D=Date.now(),T=a.get(A);if(T&&D-T.windowStart<1e3){if(T.count>=3)return;T.count+=1}else d(D),a.set(A,{windowStart:D,count:1});const I=Object.keys(E).length;I>i&&console.warn(`[analytics] lrTrack "${w}" has ${I} properties. Keep it to ${i} or fewer to stay within LogRocket's 2,000 total-property session budget.`,E),P.track(w,E)},j=P=>{for(;p.length>0;){const w=p.shift();w&&x(P,w.event,w.eventEx)}},S=(P,w)=>{const E=t();if(!E){p.length<m&&p.push({event:P,eventEx:w});return}b(),j(E),x(E,P,w)};e.d(o,["As",0,S,"E3",0,g])},"./node_modules/.pnpm/@elliemae+pui-app-bridge@2.28.6_@elliemae+pui-diagnostics@3.12.4_@elliemae+pui-logrocket@1.3._2zw4df6uo7f2qtv5656zvnp6x4/node_modules/@elliemae/pui-app-bridge/dist/esm/appBridge.js"(u,o,e){"use strict";e.d(o,{o:()=>Rn});var t=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/throttle.js"),n=e("./node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js"),r=(Ce=>(Ce.Analytics="analytics",Ce.Application="application",Ce.Auth="auth",Ce.Form="form",Ce.Global="global",Ce.Http="http",Ce.Loan="loan",Ce.LoanV2="loanV2",Ce.MemStorage="memstorage",Ce.Module="module",Ce.Service="service",Ce.Session="session",Ce.Styling="styling",Ce.Transaction="transaction",Ce.TransactionTemplate="transactiontemplate",Ce.WebSocket="websocket",Ce))(r||{}),s=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObjectManager.js"),a=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"),d=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"),i=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js");class c{#e=new Map;#t=new WeakMap;#n;constructor(de){this.#n=de}#o=(de,Ee)=>{const Xe=new Promise(gn=>{setTimeout(()=>{gn()},Ee)});return Promise.race([de,Xe])};#r=de=>{const{eventName:Ee,scriptingObject:Xe,eventParams:gn,listeners:V}=de;V.forEach(ie=>{ie.criteria&&!(gn&&this.#s(gn,ie.criteria))||Promise.resolve(ie.callback({obj:Xe,eventName:Ee,eventParams:gn})).catch(le=>{this.#n?.warn(`Error in event listener for "${Ee}": ${le.message}`)})})};#i=async({eventId:de,eventName:Ee,scriptingObject:Xe,eventParams:gn,feedbackWaitTime:V})=>{const le=(this.#e.get(de)||[]).map(Qe=>Qe.criteria&&!(gn?this.#s(gn,Qe.criteria):!1)?Promise.resolve():this.#o(Qe.callback({obj:Xe,eventName:Ee,eventParams:gn}),V));return(await Promise.all(le)).flat(1/0).filter(Qe=>Qe!==void 0)};#s(de,Ee){return Object.entries(Ee).every(([Xe,gn])=>{const V=de[Xe];if("eq"in gn)return V===gn.eq;if("in"in gn)return Array.isArray(gn.in)&&gn.in.includes(V);if("includes"in gn)return Array.isArray(V)&&V.includes(gn.includes);if("gt"in gn){const ie=typeof V=="number"?V:Number(V);return!Number.isNaN(ie)&&ie>gn.gt}if("lt"in gn){const ie=typeof V=="number"?V:Number(V);return!Number.isNaN(ie)&&ie<gn.lt}if("regex"in gn){let ie=this.#t.get(gn);if(ie===void 0){try{ie=new RegExp(gn.regex)}catch{ie=null}this.#t.set(gn,ie)}return ie!==null&&typeof V=="string"&&ie.test(V)}return!1})}dispatchEvent=async(de,Ee)=>{const{event:{id:Xe,name:gn},eventParams:V,eventOptions:ie}=Ee,{timeout:le}=ie??{};if(!Xe)throw new Error("Event Id is required");const Te=this.#e.get(Xe)||[];return!le||le<=0?(this.#r({eventName:gn,scriptingObject:de,eventParams:V,listeners:Te}),Promise.resolve()):this.#i({eventId:Xe,eventName:gn,scriptingObject:de,eventParams:V,feedbackWaitTime:le})};subscribe=de=>{const{eventId:Ee,callback:Xe,criteria:gn}=de;if(!Ee)throw new Error("eventId is required");if(!Xe)throw new Error("Callback is required");const V=this.#e.get(Ee)||[],ie=(0,n.A)();return V.push({token:ie,criteria:gn,callback:Xe}),this.#e.set(Ee,V),ie};unsubscribe=de=>{const{eventId:Ee,token:Xe}=de;if(!Ee)throw new Error("eventId id is required");if(Xe){const gn=this.#e.get(Ee)||[],V=gn.findIndex(ie=>ie.token===Xe);V>-1&&(gn.splice(V,1),this.#e.set(Ee,gn))}else this.#e.delete(Ee)};unsubscribeAll=()=>{this.#e.clear()}}const m=e.p+"4cbbcfa9ded96b660559.html?resource",p=Ce=>Ce.replace(/([^:]\/)\/+/g,"$1"),h=Ce=>{const de=document.createElement("a");return de.href=Ce,de.href},b=Ce=>Ce?.replace?.(/\/?$/,"/"),v=(Ce,de)=>`${Ce.replace(/\/+$/,"")}/${de.replace(/^\/+/,"")}`,g=Ce=>/^(\/|https?:\/\/)/.test(Ce),x=(Ce,de)=>{const Ee=b(de);if(g(Ee)){const{origin:Xe}=new URL(Ce,window.location.href);return p(new URL(Ee,Xe).href)}return p(new URL(Ee,b(Ce)).href)},j=(Ce,de)=>p(new URL("manifest.json",x(Ce,de)).href),S=()=>window.navigator.userAgent.includes("jsdom"),P=Ce=>Ce.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),w=Ce=>{try{if(new URL(Ce,window.location.href).origin===window.location.origin)return Ce;const Ee=window.location.hostname==="localhost"?"latest":window.emui?.version?.match(/^(\d+\.\d+)/)?.[1]??"latest";return`${window.location.origin}/${Ee}/frame.html`}catch{return Ce}},E="pui-app-container-",A=Ce=>{const de=Ce.src??m.default??m,Ee=w(de);if(!Ce.queryParams)return Ee;const Xe=Ce.queryParams.replace(/[^a-zA-Z0-9&=_.~%+-]/g,"");return`${Ee}${Ee.includes("?")?"&":"?"}${Xe}`},D=({documentEle:Ce,hostUrl:de,manifestPath:Ee,guestId:Xe})=>{const gn=Ce.getElementById(E);gn&&(gn.id=`${gn.id}${Xe}`);const V=x(de,Ee);let ie=Ce.getElementsByTagName("base")?.[0];if(ie){ie.href=V;return}ie=Ce.createElement("base"),ie.href=V,Ce.getElementsByTagName("head")[0].appendChild(ie)},T=({id:Ce,instanceId:de,manifestPath:Ee,hostUrl:Xe,options:gn})=>new Promise((V,ie)=>{const{signal:le}=gn;if(le?.aborted){ie(new DOMException("iframe creation aborted","AbortError"));return}const Te=document.createElement("div");Te.setAttribute("style","display: flex;width: 100%;height: 100%;flex-direction: column;overflow: hidden;");const Qe=document.createElement("iframe");Qe.setAttribute("id",de),Qe.setAttribute("data-testid",Ce),Qe.setAttribute("title",gn.title),Qe.setAttribute("allowfullscreen","true"),Qe.setAttribute("allowtransparency","true"),gn.permissionPolicy&&Qe.setAttribute("allow",gn.permissionPolicy),gn.sandbox&&Qe.setAttribute("sandbox",gn.sandbox),Qe.setAttribute("style",gn.style??"flex-grow: 1;border: none;margin: 0;padding: 0;display: block;min-width: 100%;height: 100%;"),Qe.setAttribute("src",A(gn));const zn=1e4;let it=!1,Jn,$t;const rr=()=>{clearTimeout(Jn),le?.removeEventListener("abort",$t)},fr=()=>le?.aborted?(it||(it=!0,rr(),Te.remove(),ie(new DOMException("iframe creation aborted","AbortError"))),!0):!1;if($t=()=>{fr()},fr())return;le?.addEventListener("abort",$t),Jn=setTimeout(()=>{it||(it=!0,rr(),Te.remove(),ie(new Error(`iframe for ${Ce} failed to load within ${zn}ms`)))},zn),Qe.addEventListener("error",()=>{it||(it=!0,rr(),Te.remove(),ie(new Error(`iframe for ${Ce} failed to load`)))}),Qe.addEventListener("load",()=>{it||fr()||Qe.contentDocument&&(it=!0,rr(),D({documentEle:Qe.contentDocument,hostUrl:Xe,manifestPath:Ee,guestId:Ce}),V(Qe))}),Te.appendChild(Qe);const{containerId:Br}=gn;(document.getElementById(Br??"")??document.body).appendChild(Te)}),I=Ce=>document.getElementById(Ce),z={create:T,remove:Ce=>{const de=I(Ce);de&&de.parentElement?.remove()},get:I};var k=e("./node_modules/.pnpm/@elliemae+pui-theme@2.13.0/node_modules/@elliemae/pui-theme/dist/cjs/index.js");const F=()=>{try{return window.parent.document,window.parent}catch{return window}},L=()=>({width:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}),W=Ce=>Number(Ce.replace("px","")),H=()=>{const{width:Ce}=L(),{breakpoints:de}=(0,k.getDefaultTheme)();return Ce<=W(de.small)?"small":Ce<=W(de.medium)?"medium":"large"};var N=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/cloneDeep.js"),M=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/get.js"),B=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/set.js"),$=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/has.js"),X=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/merge.js");const G=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"}}}}');var Z=(Ce=>(Ce.DEVELOPMENT="development",Ce.PRODUCTION="production",Ce))(Z||{}),K=(Ce=>(Ce.SSF="ssf",Ce.APPSDK="appsdk",Ce))(K||{});class q{#e=G;#t;#n;constructor(de){this.#t=de?.version||"latest",this.#n=b(de?.baseUrl||"")}#o=de=>{const{activeEnv:Ee,env:Xe,...gn}=de,V=Xe[Ee]||{};this.#e=X({},gn,V)};get=(de="",Ee=null)=>N(M(this.#e,de,Ee));set=(de,Ee)=>{B(this.#e,de,Ee)};has=(de="")=>$(this.#e,de);setPreloadedConfig=de=>{this.#e=de};#r=()=>{if(!/(?:\/)(\d+\.\d+|latest)(?:\/?)?$/.test(this.#n)){const Ee=this.#t.match(/^(?:\d+\.\d+)*/g);return b(`${this.#n}${Ee?.[0]||"latest"}`)}return this.#n};load=async de=>{const Ee=de??`${this.#r()}app.config.json`;let Xe;try{Xe=await fetch(Ee)}catch(gn){if(!de&&this.#t!=="latest"){await this.load(`${this.#n}latest/app.config.json`);return}throw new Error("Failed to fetch app config",{cause:gn})}if(Xe.ok)try{const gn=await Xe.json();this.#o(gn)}catch(gn){if(!de&&this.#t!=="latest")await this.load(`${this.#n}latest/app.config.json`);else throw new Error("Failed to parse app config",{cause:gn})}else{if(!de&&this.#t!=="latest"){await this.load(`${this.#n}latest/app.config.json`);return}throw new Error("Failed to load app config")}}}var te=(Ce=>(Ce.USER="USER",Ce.PARTNER="PARTNER",Ce))(te||{}),fe=e("./node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");const oe="microFrontendApps",me=()=>fe.env.CI==="true",ne=Ce=>me()?!0:String(Ce).toLowerCase()===Z.PRODUCTION.toLowerCase(),re=Ce=>Ce?new URL(Ce).pathname:"",ge=Ce=>{const de=document.createElement("a");return de.href=Ce,de.href},ee=(Ce,de)=>{const Ee=de.match(/^(?:\d+\.\d+)*/g);return Ce.replace(/{SYSTEM_VERSION}/,Ee&&Ee[0]||"latest")},ve=Ce=>!Ce||!Ce.length?!1:Ce.every(de=>typeof de=="string"),We=(Ce,de)=>{const{mode:Ee=Z.PRODUCTION}=de;if(String(Ee).toLowerCase()!==Z.PRODUCTION.toLowerCase()&&String(Ee).toLowerCase()!==Z.DEVELOPMENT.toLowerCase())throw new Error(`invalid mode '${String(Ee)}' for ${Ce}`);const{production:Xe,development:gn,microappManager:V=K.APPSDK}=de;if(String(V).toLowerCase()===K.APPSDK.toLowerCase()){if(String(Ee).toLowerCase()===Z.PRODUCTION.toLowerCase()){if(!Xe)throw new Error(`microFrontendApps.${Ce} is missing production section in app.config.json`);if(!ve(Xe.files))throw new Error("invalid value for production.files")}if(String(Ee).toLowerCase()===Z.DEVELOPMENT.toLowerCase()){if(!gn)throw new Error(`microFrontendApps.${Ce} is missing development section in app.config.json`);if(!ve(gn.files))throw new Error("invalid value for development.files")}}},qe=({id:Ce,config:de,version:Ee="latest"})=>{const{mode:Xe=Z.PRODUCTION,production:gn,development:V,...ie}=de,le=ne(Xe)?gn:V,Te=X({id:Ce},{name:Ce,mode:Z.PRODUCTION,manifestPath:"./{SYSTEM_VERSION}/",securityContext:te.USER,isJsModule:!0},ie,{mode:Xe},le);return Te.hostUrl=b(ge(Te.hostUrl||"")),Te.homeRoute=b(Te.homeRoute)||re(Te.hostUrl),Te.manifestPath=b(ee(Te.manifestPath,Ee)),Te};class nn{#e=[];init=({version:de,appConfig:Ee})=>{const Xe=Ee.get(oe);Xe&&(this.#e=Object.keys(Xe).map(gn=>(We(gn,Xe[gn]),qe({id:gn,config:Xe[gn],version:de}))))};getConfigById=de=>this.#e.find(Ee=>Ee.id===de)}const ye=/^https?:\/\//i,ce=(Ce,de)=>{if(!ye.test(Ce))return!1;try{return!Ce.startsWith(new URL(de).href)}catch{return!0}},Pe=(Ce,de)=>{const Ee=[],Xe=[];return Ce.forEach(gn=>{ce(gn.href,de)?Ee.push(gn):Xe.push(gn)}),{external:Ee,local:Xe}},Be=Ce=>{if(!Ce)return;const de=Ce,Ee=de.emui?._ASSET_PATH;Ee&&(de.__webpack_public_path__=new URL("../",Ee).href)},De=(Ce,de)=>{if(!(!Ce||!de))try{const Ee=Ce;Ee.__webpack_public_path__=new URL("./",de).href}catch{}},Ye=(Ce,de)=>{if(!Ce)return;if(Ce.emui?._ASSET_PATH){Be(Ce);return}De(Ce,de)},He="ice-script-";class sn{#e;constructor(de){this.#e=de}#t=({href:de,isESMModule:Ee=!0,documentEle:Xe})=>{const gn=Xe.createElement("link");gn.rel=Ee?"modulepreload":"preload",gn.href=de,gn.crossOrigin="anonymous",Ee||(gn.as="script"),Xe.head.appendChild(gn)};#n=({id:de,href:Ee,documentEle:Xe,isESMModule:gn=!0})=>new Promise((V,ie)=>{const le=Xe.createElement("script");le.id=de,le.src=p(Ee),le.crossOrigin="anonymous",le.nonce="__CSP_NONCE__",!S()&&gn?le.type="module":le.async=!1,le.onload=V.bind(null,le.id),le.onerror=Te=>{this.#e.error({message:`Error loading script ${le.src}`,exception:new Error(Te)}),ie(new Error(`Unable to load script ${le.src}`,{cause:new Error(Te)}))},Xe.head.appendChild(le)});#o=async(de,Ee,Xe)=>{if(de.length===0)return;const gn=de.map(({id:V,href:ie})=>this.#n({id:V,href:ie,documentEle:Ee,isESMModule:Xe}));await Promise.all(gn)};#r=async({scripts:de,documentEle:Ee,isESMModule:Xe,hostUrl:gn})=>{if(de.length===0)return;if(!gn){await this.#o(de,Ee,Xe);return}const{external:V,local:ie}=Pe(de,gn);await this.#o(V,Ee,Xe),Ye(Ee.defaultView,gn),await this.#o(ie,Ee,Xe)};load=async(de,Ee)=>{const{documentEle:Xe,isESMModule:gn}=Ee,V=/^https?:\/\//i,ie=de.map((le,Te)=>{const Qe=`${He}${Ee.name.toLowerCase()}-${Te}`,zn=V.test(le)?le:new URL(le,Ee.hostUrl).href;return this.#t({href:zn,documentEle:Xe,isESMModule:gn}),{id:Qe,href:zn}});return await this.#r({scripts:ie,documentEle:Xe,isESMModule:gn,hostUrl:Ee.hostUrl}),Ye(Xe.defaultView,Ee.hostUrl),ie.map(le=>le.id)};remove=(de="",Ee=document)=>new Promise(Xe=>{const gn=Ee.getElementById(de);if(!gn){this.#e.warn(`script with id ${de} not found`),Xe();return}gn.remove(),Xe()});removeDynamicImportedScripts=(de,Ee)=>{const Xe=new RegExp(P(de),"i"),gn=Ee.getElementsByTagName("script");for(let V=gn.length-1;V>=0;V-=1){const ie=gn[V],{src:le}=ie;Xe.test(le)&&ie.remove()}};removePrefetchLinks=(de,Ee)=>{const Xe=new RegExp(P(de),"i"),gn=Ee.querySelectorAll('[rel="prefetch"]');for(let V=gn.length-1;V>=0;V-=1){const ie=gn[V],{href:le}=ie;Xe.test(le)&&ie.remove()}}}const tn="ice-style-";class vn{#e;constructor(de){this.#e=de}#t=({id:de,href:Ee,documentEle:Xe})=>new Promise((gn,V)=>{const ie=Xe.createElement("link");ie.id=de,ie.nonce="__CSP_NONCE__",ie.rel="stylesheet",ie.href=p(Ee),ie.onload=gn.bind(null,ie.id),ie.onerror=le=>{this.#e.error({message:`Error loading stylesheet ${ie.href}`,exception:new Error(le)}),V(new Error(`Unable to load stylesheet ${ie.href}`,{cause:new Error(le)}))},Xe.head.appendChild(ie)});load=async(de,Ee)=>{const Xe=[],gn=de.map((V,ie)=>{const le=new URL(V,Ee.hostUrl),Te=`${tn}${Ee.name.toLowerCase()}-${ie}`;return Xe.push(Te),this.#t({id:Te,href:le.href,documentEle:Ee.documentEle})});return await Promise.all(gn),Xe};remove=(de="",Ee=document)=>new Promise(Xe=>{const gn=Ee.getElementById(de);if(!gn){this.#e.warn(`style with id ${de} not found`),Xe();return}gn.remove(),Xe()});removeDynamicImportedStyles=(de,Ee)=>{const Xe=new RegExp(P(de),"i"),gn=Ee.querySelectorAll('[rel="stylesheet"]');for(let V=gn.length-1;V>=0;V-=1){const ie=gn[V],{href:le}=ie;Xe.test(le)&&ie.remove()}}}const Le=Ce=>Ce.replace(/\/\d+\.\d+/,"/latest"),ue=Ce=>{let de;try{de=new URL(Ce)}catch{return!1}return de.protocol==="http:"||de.protocol==="https:"},xe=new Map,Ie={get:async({hostUrl:Ce,manifestPath:de})=>{const Ee=j(Ce,de),Xe=xe.get(Ee);if(Xe)return Xe;const gn=async V=>{const ie=await fetch(V);if(!ie.ok)throw new Error(`unable to get manifest ${V}`);if(!(ie.headers?.get?.("content-type")??"").includes("application/json"))throw new Error(`manifest ${V} is not a valid json`);const Te=await ie.json();return xe.set(V,Te),Te};try{return await gn(Ee)}catch(V){const ie=Le(de);if(de!==ie){const le=j(Ce,ie);return await gn(le)}throw V}},getFullFileNameofAssets:(Ce,de=[])=>de.reduce((Ee,Xe)=>{const gn=Ce[Xe];if(gn)Ee.push(gn);else if(ue(Xe))Ee.push(Xe);else throw new Error(`unable to locate ${Xe} in manifest`);return Ee},[]),clearCache:()=>xe.clear()};class ze{#e;#t;#n;#o;#r;constructor(de){this.#t=de.guest,this.#e=de.containerId,this.#n=de?.version||"latest",this.#o=de.soManager,this.#r=de.eventManager}get version(){return this.#n}getObject=de=>{try{const Ee=this.#o.getObject(de,this.#t);if(!Ee)return Promise.resolve(null);const Xe=new d.V(Ee.id,Ee.objectType);return Object.keys(Ee).forEach(gn=>{const V=Ee[gn];V instanceof a.Jh?Object.defineProperty(Xe,gn,{value:new a.Jh({name:gn,objectId:Ee.id}),enumerable:!0}):(0,i.Q)(V,gn)&&Object.defineProperty(Xe,gn,{value:(...ie)=>{const le=Xe[gn]?.callContext?.callChain;return Object.defineProperty(V,"callContext",{value:{guest:this.#t,...le?.length?{callChain:le}:{}},configurable:!0,enumerable:!0,writable:!0}),Ee[gn](...ie)},enumerable:!0})}),Promise.resolve(Xe)}catch(Ee){return Promise.reject(Ee)}};setAppWindowSize=de=>{if(!this.#e)return;const{size:Ee}=de,Xe=document.getElementById(this.#e);Xe&&(Xe.style.height=`${Ee.height}px`,Xe.style.width=`${Ee.width}px`)};subscribe=de=>this.#r.subscribe(de);unsubscribe=de=>{this.#r.unsubscribe(de)}}class be{constructor(){window.emui||(window.emui={}),window.emui.registerApp=this.#e}#e=({appId:de,app:Ee})=>{if(!de)throw new Error("appId is required");if(de==="__proto__"||de==="constructor"||de==="prototype")throw new Error(`Invalid appId: ${de}`);if(!Ee?.uuid)throw new Error("application uuid is required");if(window.emui[de]=window.emui[de]||[],Array.isArray(window.emui[de])){const Xe=window.emui[de].findIndex(gn=>gn.uuid===Ee.uuid);Xe>-1?window.emui[de][Xe]=Ee:window.emui[de].push(Ee)}else{let Xe=window.emui[de];Xe?.uuid===Ee.uuid?(Xe={...Xe,...Ee},window.emui[de]=[Xe]):typeof Xe.init>"u"?window.emui[de]=[{...Xe,...Ee}]:window.emui[de]=[window.emui[de],Ee]}};get=({id:de,instanceId:Ee})=>{const Xe=window.emui?.[de];return Array.isArray(Xe)?Xe.find(V=>V.uuid===Ee)??null:Xe?.uuid===Ee?Xe:null};add=({id:de,instanceId:Ee,documentEle:Xe})=>{if(!Ee)throw new Error(`instanceId (uuid) is required to register application ${de}`);const gn={uuid:Ee,init:null,mount:null,unmount:null},V=window.emui[de];V?Array.isArray(V)?V.push(gn):window.emui[de]=[V,gn]:window.emui[de]=[gn],Xe.defaultView&&(Xe.defaultView.emui=Xe.defaultView.emui??{},Xe.defaultView.emui.uuid=Ee)};delete=({id:de,instanceId:Ee})=>{if(Array.isArray(window.emui[de])){const Xe=window.emui[de].findIndex(gn=>gn.uuid===Ee);Xe>-1&&window.emui[de].splice(Xe,1),window.emui[de].length===0&&delete window.emui[de]}else delete window.emui[de]}}const un=12e4,Ne=["click","scroll","keypress","touchstart"],yn=/\.css$/,Cn=Ce=>yn.test(Ce);class Rn{#e;#t;#n;#o;#r;#i=new nn;#s;#c;#a=new Map;#p=new Map;#l=new be;#u=!0;constructor(de){const{logger:Ee}=de;if(!Ee)throw new Error("logger is required");this.#e=de.logger,this.#t=de.version,this.#u=de.extendSession??!0,this.#r=new q({version:de.version,baseUrl:de.appConfigBaseUrl}),this.#n=new sn(Ee),this.#o=new vn(Ee),this.#s=new s.qE,this.#c=new c(this.#e)}#h(de){return typeof de=="function"}#b=de=>de instanceof a.b3||typeof de?.subscribe=="function";#d=(de,Ee)=>`Application ${de} with instance id ${Ee} is not found. Most probably the appId property of app.config.json is not set to ${de}`;#j=(de,Ee=document)=>{const{elementIds:Xe}=this.#a.get(de)||{};Xe&&Xe.forEach(gn=>{const V=Ee.getElementById(gn);V&&V.remove()})};#g=({id:de,instanceId:Ee,documentEle:Xe,elementIds:gn,microFEHost:V})=>{const ie=this.#l.get({id:de,instanceId:Ee});if(!ie)throw new Error(this.#d(de,Ee));this.#a.set(Ee,{id:de,instanceId:Ee,elementIds:gn,guest:{guestWindow:Xe?.defaultView,...ie},microFEHost:V})};#f=async({id:de,instanceId:Ee,containerId:Xe,hostUrl:gn,manifestPath:V,homeRoute:ie,initialRoute:le,history:Te,theme:Qe,microFEHost:zn})=>{const it=this.#l.get({id:de,instanceId:Ee});if(!it)throw new Error(`Application ${de} with instance id ${Ee} is not found. Most probably the appId property of app.config.json is not set to ${de}`);if(!it.init||typeof it.init!="function")throw new Error(`Application ${de} with instance id ${Ee} doesn't expose init method`);const Jn=zn??new ze({guest:{id:de},version:this.#t,containerId:Xe,logger:this.#e,soManager:this.#s,eventManager:this.#c});return it.init({host:Jn,hostUrl:gn,manifestPath:V,homeRoute:ie,initialRoute:le,prevState:null,history:Te,theme:Qe,hostBreakpoint:H(),hostViewportSize:L(),logger:this.#e})};#m=async de=>{try{const{id:Ee,instanceId:Xe,files:gn,name:V,hostUrl:ie,documentEle:le,isJsModule:Te}=de;this.#e.debug(`Application ${Ee} with instance id ${Xe} is loading...`);let Qe=gn;const zn=de.manifest??await Ie.get(de);Qe=Ie.getFullFileNameofAssets(zn,gn);const it=Qe.filter(Br=>Cn(Br)),Jn=Qe.filter(Br=>!Cn(Br)),$t={name:V,hostUrl:ie,documentEle:le,isESMModule:Te},[rr,fr]=await Promise.all([this.#o.load(it,$t),this.#n.load(Jn,$t)]);this.#g({id:Ee,instanceId:Xe,documentEle:le,elementIds:[...rr,...fr],microFEHost:de.microFEHost}),de.selfInitialize||await this.#f(de),this.#e.audit(`Application ${Ee} with instance id ${Xe} loaded`)}catch(Ee){const Xe=`Application load failed. Unable to load one or more resources for ${de.id} with instance id ${de.instanceId}. ${Ee.message}`;throw this.#e.error({message:Xe,appId:de.id,exception:Ee}),new Error(Xe)}};#x=({id:de,instanceId:Ee,hostUrl:Xe,documentEle:gn})=>{this.#e.debug(`Application ${de} with instance id ${Ee} unloading...`),this.#l.get({id:de,instanceId:Ee})&&(this.#j(Ee,gn),this.#n.removeDynamicImportedScripts(Xe,gn),this.#n.removePrefetchLinks(Xe,gn),this.#o.removeDynamicImportedStyles(Xe,gn),this.#l.delete({id:de,instanceId:Ee}),this.#e.audit(`Application ${de} with instance id ${Ee} unloaded`))};#w=async({id:de,instanceId:Ee})=>{const Xe=this.#l.get({id:de,instanceId:Ee});if(!Xe?.mount||typeof Xe?.mount!="function")throw new Error(`Application ${de} with instance id ${Ee} doesn't expose mount method`);return Xe.mount({containerId:`${E}${de}`,hostBreakpoint:H(),hostViewportSize:L()})};#S=({id:de,instanceId:Ee})=>{const Xe=this.#l.get({id:de,instanceId:Ee});if(!Xe?.unmount)return null;if(typeof Xe.unmount!="function")throw new Error(`Application ${de} with instance id ${Ee} doesn't expose unmount method`);return Xe.unmount({containerId:`${E}${de}`})};#E=({id:de,instanceId:Ee})=>{if(this.#u)try{const Xe=this.#s.getObject(r.Application);if(!Xe){this.#e.warn({message:`Application scripting object not available for ${de} to manage session`});return}const gn=this.#a.get(Ee);if(!gn)return;gn.keepAlive=t(async()=>{try{await Xe.keepSessionAlive()}catch(ie){this.#e.error(`Error keeping session alive. ${ie.message}`)}},un);const V=z.get(Ee);Ne.forEach(ie=>{V?.contentDocument?.addEventListener(ie,gn.keepAlive)})}catch(Xe){this.#e.warn({message:`Application scripting object not available for ${de} to manage session`,exception:Xe})}};#y=(de,Ee)=>{const V=this.#s.getObject(r.Module,{id:de})?._setUnloadHandler;typeof V=="function"&&V(()=>this.closeApp(Ee))};#v=async de=>{const Ee=this.#s.getObject(r.Module,{id:de});if(!Ee)return!0;try{const Xe=await this.#c.dispatchEvent(Ee,{event:{id:"module.unloading",name:"unloading"},eventParams:{moduleId:de},eventOptions:{timeout:1e3}});if(Array.isArray(Xe)&&Xe.some(gn=>gn===!1))return this.#e.info(`Unload denied by guest ${de} via module.unloading event`),!1}catch(Xe){this.#e.warn({message:`Error dispatching module.unloading event for ${de}`,exception:Xe})}return!0};#_=de=>{if(!this.#u||!de)return;const{keepAlive:Ee,instanceId:Xe}=de;if(Ee){const V=z.get(Xe)?.contentDocument;V&&Ne.forEach(ie=>{V.removeEventListener(ie,Ee)}),de.keepAlive?.cancel()}};addScriptingObject=(de,Ee)=>{if((0,d.h)(de)){const Xe=this.cloneScriptingObject(de);this.#s.addScriptingObject(Xe,Ee)}else this.#s.addScriptingObject(de,Ee)};cloneScriptingObject=de=>{if(!de)throw new Error("proxy is required");const Ee=new i.P(de.id,de.objectType);let Xe=[];return Object.keys(de).forEach(gn=>{const V=de[gn];if(this.#b(V)){const ie=new a.Jh({name:V.name||gn,objectId:Ee.id});Object.defineProperty(Ee,gn,{value:ie,enumerable:!0});const le=({eventParams:Qe,eventOptions:zn})=>this.dispatchEvent({event:ie,eventParams:Qe,eventOptions:zn}),Te=V.subscribe(le);Xe.push(()=>{V.unsubscribe(Te)})}else if(this.#h(V)&&(Object.defineProperty(Ee,gn,{value:async(...ie)=>{const le=Ee[gn]?.callContext;if(le?.guest){const Qe=le.callChain??[],zn=le.guest.id,it=this.#p.get(zn),Jn={id:zn};it&&(Jn.metadata=it),Object.defineProperty(V,"callContext",{value:{callChain:[...Qe,Jn]},configurable:!0,enumerable:!0,writable:!0})}const Te=await V(...ie);return(0,d.h)(Te)?this.cloneScriptingObject(Te):Te},enumerable:!0}),gn==="dispose")){const ie=Ee.dispose;Object.defineProperty(Ee,gn,{value:()=>(Ee._dispose(),ie.apply(Ee)),enumerable:!0})}}),Ee._dispose=()=>{Xe.forEach(gn=>{gn?.()}),Xe=[]},Ee};closeAllApps=async()=>{await Promise.all([...this.#a.keys()].map(this.closeApp))};closeApp=async de=>{if(!de)throw new Error("instanceId is required");const Ee=this.#a.get(de);if(!Ee){this.#e.warn(`Application with instance id ${de} is not found`);return}const{id:Xe}=Ee;if(!await this.#v(Xe))return;const gn=this.#i.getConfigById(Xe);if(!gn){this.#e.warn(`Configuration for application ${Xe} is not found`),this.#a.delete(de),z.remove(de);return}const{hostUrl:V}=gn;try{this.#_(Ee),await this.#S({id:Xe,instanceId:de})}finally{const ie=z.get(de);ie?.contentDocument&&this.#x({id:Xe,instanceId:de,hostUrl:V,documentEle:ie.contentDocument}),this.#a.delete(de),this.#p.delete(Xe),z.remove(de)}};dispatchEvent=async de=>{const{event:{id:Ee,name:Xe},eventOptions:gn={}}=de,{guestId:V}=gn;if(!Ee)throw new Error("Event Id is required");const ie=Ee.split(".")?.[0],le=V?this.#s.getObject(ie,{id:V}):this.#s.getObject(ie);return le?this.#c.dispatchEvent(le,de):(this.#e.warn(`Attempt to dispatch event ${Xe} on unknown object ${ie}`),Promise.resolve())};getApp=de=>this.#a.get(de)?.guest;getApps=()=>[...this.#a.values()].map(de=>de.guest);init=async de=>{de?this.#r.setPreloadedConfig(de):await this.#r.load(),this.#i.init({version:this.#t,appConfig:this.#r}),this.#A()};#A=()=>{const de=this.#r.get("microFrontendApps")??{},Ee=new Set;Object.keys(de).forEach(Xe=>{const gn=this.#i.getConfigById(Xe);if(gn?.hostUrl)try{Ee.add(new URL(gn.hostUrl).origin)}catch{}}),Ee.forEach(Xe=>{const gn=document.createElement("link");gn.rel="preconnect",gn.href=Xe,gn.crossOrigin="anonymous",document.head.appendChild(gn)})};mountApp=async de=>{if(!de)throw new Error("instanceId is required");const{id:Ee}=this.#a.get(de)||{};if(!Ee)throw new Error(`Application with instance id ${de} is not found`);const Xe=this.#i.getConfigById(Ee);if(!Xe)throw new Error(`Application with id ${Ee} is not found`);await this.#w({...Xe,instanceId:de})};#O=(de,Ee,Xe)=>{const gn=new ze({guest:{id:Xe.id},version:this.#t,containerId:Xe.containerId,logger:this.#e,soManager:this.#s,eventManager:this.#c}),V=de.defaultView;V&&(V.emui=V.emui??{},V.emui.__host=gn,V.emui.getHost=()=>V.emui?.__host??null);const ie=de.createElement("link");return ie.rel="preconnect",ie.href=Ee.hostUrl,ie.crossOrigin="anonymous",de.head.appendChild(ie),gn};openApp=async de=>{const{id:Ee,frameOptions:Xe,history:gn,theme:V,homeRoute:ie,initialRoute:le,metadata:Te,selfInitialize:Qe}=de,zn=(0,n.A)();Te&&this.#p.set(Ee,Te);const it=this.#i.getConfigById(Ee);if(!it)throw new Error(`Application ${Ee} is not found in app config`);const Jn=Ie.get(it);Jn.catch(()=>{});const $t=await z.create({id:Ee,instanceId:zn,manifestPath:it.manifestPath,hostUrl:it.hostUrl,options:{title:it.name,...Xe}});if(!$t?.contentDocument)throw new Error("unable to create iframe for the microapp");try{this.#l.add({id:Ee,instanceId:zn,documentEle:$t.contentDocument});const rr=this.#O($t.contentDocument,it,{id:Ee,containerId:Xe?.containerId}),fr=await Jn;return await this.#m({instanceId:zn,history:gn,theme:V,documentEle:$t.contentDocument,containerId:Xe?.containerId,...it,homeRoute:ie??it.homeRoute,initialRoute:le,microFEHost:rr,selfInitialize:Qe,manifest:fr}),Qe||await this.#w({instanceId:zn,...it}),this.#E({id:Ee,instanceId:zn}),this.#y(Ee,zn),zn}catch(rr){throw this.#x({id:Ee,instanceId:zn,hostUrl:it.hostUrl,documentEle:$t.contentDocument}),z.remove(zn),rr}};removeAllEventSubscriptions=()=>{this.#c.unsubscribeAll()};removeAllScriptingObjects=de=>{this.#s.removeAllScriptingObjects(de)};removeScriptingObject=(de,Ee)=>{this.#s.removeScriptingObject(de,Ee)};warmUp=de=>{const Ee=this.#i.getConfigById(de);Ee&&Ie.get(Ee).catch(()=>{})};unmountApp=async de=>{if(!de)throw new Error("instanceId is required");const{id:Ee}=this.#a.get(de)||{};if(!Ee)throw new Error(`Application with instance id ${de} is not found`);const Xe=this.#i.getConfigById(Ee);if(!Xe)throw new Error(`Application with id ${Ee} is not found`);await this.#S({...Xe,instanceId:de})}}},"./node_modules/.pnpm/@elliemae+ssf-guest@2.28.6_@elliemae+pui-logrocket@1.3.1/node_modules/@elliemae/ssf-guest/dist/esm/guest.js"(u,o,e){"use strict";e.d(o,{p:()=>W});var t=e("./node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js"),n=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/throttle.js"),r=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/remoting.js"),s=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/messageType.js");class a{#e;#t;#n;#o=new Map;static DEFAULT_THROTTLE_MS=1e4;constructor(N){this.#e=N.logger,this.#t=N.enabled??!0,this.#n=N.throttleMs??a.DEFAULT_THROTTLE_MS}get enabled(){return this.#t}log(N,M){if(!this.#t){this.#e.debug(M);return}if(this.#n>0){const B=performance.now(),$=this.#o.get(N);if($!==void 0&&B-$<this.#n){this.#e.debug(M);return}this.#o.set(N,B)}this.#e.audit(M)}}var d=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"),i=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"),c=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/filterCriteria.js"),m=e("@elliemae/pui-diagnostics");const p=()=>{const{parent:H}=window;try{return H?.location?.href}catch{return null}},h=H=>{if(!H||H==="about:blank")return"*";try{const{origin:N}=new URL(H);return N==="null"||!N?"*":N}catch{try{const{origin:N}=new URL(H,document.baseURI);return N==="null"||!N?"*":N}catch{return"*"}}},b=()=>window.self!==window.parent,v=(H,N)=>{const M=N||document.body,B=document.defaultView?.getComputedStyle?.(M,null),$=B?B[H]:"0";return parseInt($,10)},g="elli:remoting",x=3e4,j=()=>{try{return new URLSearchParams(window.location.hash.slice(1)).get("hs")}catch{return null}},S=(H,N)=>!!(window.opener&&H.source===window.opener||N&&H.data?.handshakeToken===N),P=()=>new Promise((H,N)=>{if(b())H({origin:h(document.referrer||p()),window:window.parent});else{const M=window,B=j();let $;const X=G=>{if(S(G,B)){const{source:Z,type:K}=G.data||{};if(Z===g&&K===s.G.HandShake){const{origin:q}=G,te=G.source;clearTimeout($),(0,r._)({targetWin:te,targetOrigin:q,messageType:s.G.HandShakeAck,messageBody:{}}),M.removeEventListener("message",X),H({origin:q,window:te})}}};$=setTimeout(()=>{M.removeEventListener("message",X),N(new Error(`Host handshake timed out after ${x}ms`))},x),M.addEventListener("message",X)}});let w=!1;const E=H=>{w=H},A=(H=null)=>{let N=H;const M=()=>{if(!N&&(N=window.ice?.guest?.SSFGuest?new window.ice.guest.SSFGuest:null,!N))throw new Error("Guest definition not found");return N};window.elli=window.elli??{},window.elli.script={guest:{create:(B,$)=>M().addScript(B,$)},connect:B=>(w||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);"),M().connect(B)),getObject:B=>(w||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);"),M().getObject(B)),setLogLevel:B=>(w||console.warn("elli.script.setLogLevel is deprecated. Please use setLogLevel method of SSFGuest class instead, const guest = new ice.guest.SSFGuest(); guest.setLogLevel(level);"),M().setLogLevel(B)),subscribe:(B,$,X,G)=>(w||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); });"),M().subscribe({eventId:`${B}.${$}`,callback:Z=>X(Z?.obj,Z?.eventParams,Z?.eventOptions),criteria:G?.criteria})),unsubscribe:(B,$,X)=>(w||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 });"),M().unsubscribe({eventId:`${B}.${$}`,token:X}))}};try{A()}catch{}var D=null;const T=12e4,I=2e3,U={eventFeedback:!0},z=()=>{const{document:H}=window,N=H.body,M=H.documentElement,$={height:N.offsetHeight+v("marginTop")+v("marginBottom"),width:Math.max(N.scrollWidth,M.scrollWidth)};(0,r._)({targetWin:window.parent,targetOrigin:h(H.referrer||p()),messageType:s.G.GuestResize,messageBody:$}),window.removeEventListener("load",z)};b()&&window.addEventListener("load",z);const k={"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"},F=["click","scroll","keypress","touchstart"],L=()=>{const H=document.currentScript?.src||"file:///var/opt/jenkins/workspace/UIPlatform_app-sdk_master/585/node_modules/.pnpm/@elliemae+ssf-guest@2.28.6_@elliemae+pui-logrocket@1.3.1/node_modules/@elliemae/ssf-guest/dist/esm/guest.js",N=H?new URL(H).hostname:"localhost";return k[N]||k["cdn.mortgagetech.q1.ice.com"]};class W{#e;#t;#n;#o=!1;#r=null;#i=!1;#s=new Map;#c=null;#a=null;#p=null;#l=null;#u=null;#h=null;#b=new Map;#d(){if(!this.#u||!this.#l)throw new Error("Guest is not connected to a host. Call connect() first.");return{hostWindow:this.#u,hostOrigin:this.#l}}#j=!1;#g=null;#f=null;#m=null;#x=!0;#w=T;#S;#E=null;#y;constructor(N){const{console:M=!1,url:B=window.__ICE__?.diagnosticsUrl||L(),index:$="ssf-guest-v2",team:X="ICE",appName:G="SSF Guest V2 Application"}=N?.logger??{};this.#S=N?.logger,this.#j=N?.usesDevConnectAPI??!1,this.#x=N?.keepAlive??!0,this.#w=N?.keepAliveInterval??T;const Z=M?(0,m.Console)():(0,m.http)(B);this.#t=N?.appLogger??(0,m.logger)({transport:Z,index:$,team:X,appName:G}),this.#y=new a({logger:this.#t,enabled:N?.auditOperations,throttleMs:N?.auditThrottleMs}),(0,m.webvitals)(this.#t),(0,m.logUnhandledErrors)(this.#t),this.#e=(0,t.A)(),this.#n=new r.K(this.#t,this.#e),A(this),this.#t.audit({message:"Guest created",guestUrl:window.location.href,correlationId:this.#e})}#v=()=>({guestId:this.#c,guestTitle:this.#a,guestUrl:this.#p});#_=N=>{if(!N||!N.objectId)throw this.#t.error("Deserialization of scripting object failed. Object does not have an Object ID."),new Error("Cannot deserialize object JSON into proxy.");const M=new d.V(N.objectId,N.objectType);return N.functions&&N.functions.forEach(B=>{Object.defineProperty(M,B,{value:async(...$)=>{const G=M[B]?.callContext?.callChain;return this.#A({objectId:M.id,functionName:B,functionParams:[...$],callerChain:G})},enumerable:!0})}),N.events&&N.events.forEach(B=>{Object.defineProperty(M,B,{value:new i.b3({objectId:M.id,name:B,eventSrc:this}),enumerable:!0})}),this.#t.debug(`Created guest proxy for scripting object (id = "${M.id}")`),M};#A=async({objectId:N,functionName:M,functionParams:B,callerChain:$})=>{this.#t.debug(`Invoking scripting object method ${N}.${M}()...`);const X=[];if(B)for(let te=0;te<B.length;te+=1){const fe=B[te];fe instanceof Promise&&X.push(fe.then(oe=>{B[te]=oe}))}await Promise.all(X);const{hostWindow:G,hostOrigin:Z}=this.#d(),K=await this.#n.invoke({targetWin:G,targetOrigin:Z,messageType:s.G.ObjectInvoke,messageBody:{objectId:N,functionName:M,functionParams:B,...$?.length?{callerChain:$}:{}}}),q=this.#C(K);return this.#y.log(`invoke:${N}.${M}`,{message:"Guest proxy invoked Scripting Object method",scriptingObject:N,scriptingMethod:M,...this.#v()}),q};#O(N,M){return(0,c.ts)(N,M,{regexCache:this.#b})}#C=N=>N?.type==="object"&&"object"in N?this.#_(N.object):N?.type==="value"?N.value:N;#T=({body:N})=>{N?.logLevel&&(this.#t.setLogLevel(N.logLevel),this.#t.debug(`Log level changed by host to ${N.logLevel}`)),this.#c=N?.guestId??null,this.#a=N?.guestTitle??null,this.#p=N?.guestUrl??null,this.#t.audit({message:"Received configuration from Host",...this.#v()})};#P=()=>{window.focus()};#D=async()=>{await this.close(),window.close()};#R=()=>{b()||(this.#h=setInterval(()=>{this.#u?.closed&&this.close().then(()=>{window.close()}).catch(()=>{})},1e3))};#I=async({sourceWin:N,sourceOrigin:M,requestId:B,body:$})=>{const X=this.#_($.object);if(X){const G=(0,i._s)(X.id,$.eventName);this.#t.debug(`Received event "${G}" from host`);let Z;$.eventHandler?Z=[{callback:window[$.eventHandler],token:(0,t.A)()}]:Z=this.#s.get(G)||[];const K=[];if(Z.forEach(q=>{if(q?.callback){if(q.criteria&&!($.eventParams?this.#O($.eventParams,q.criteria):!1)){this.#t.debug(`Event ${G} did not match criteria for subscriber ${q.callback.name}`);return}this.#t.debug(`Invoking event subscriber ${q.callback.name} for event ${G}`);const te=q.callback({obj:X,eventName:$.eventName,eventParams:$.eventParams,eventOptions:$.eventOptions});te instanceof Promise?K.push(te):typeof te<"u"&&K.push(Promise.resolve(te))}}),B){const q=await Promise.all(K);this.#n.respond({targetWin:N,targetOrigin:M,requestId:B,response:q}),this.#y.log(`event:${G}`,{message:"Guest proxy processed event from host and responded",scriptingEventId:G,scriptingObject:X.id,...this.#v()})}else this.#y.log(`event:${G}`,{message:"Guest proxy processed event from host",scriptingEventId:G,scriptingObject:X.id,...this.#v()})}};#k=async()=>{if(!(!this.#g||!this.#f||!this.#m))try{await fetch(`${this.#m}/oauth2/v1/token/introspection?${new URLSearchParams({token:this.#g,client_id:this.#f}).toString()}`,{headers:{"content-type":"application/x-www-form-urlencoded;charset=UTF-8"},method:"POST"})}catch(N){this.#t.warn(`Failed to extend token lifetime: ${N.message}`)}};#F=async()=>{if(this.#g&&this.#f&&this.#m)try{await fetch(`${this.#m}/oauth2/v1/token/revocation?${new URLSearchParams({token:this.#g,client_id:this.#f}).toString()}`,{method:"POST"})}catch(N){this.#t.error(`Error revoking token. ${N.message}`)}finally{this.#g=null,this.#f=null}};#M=async()=>{if(this.#x)try{const N=await Promise.race([this.getObject("application"),new Promise(M=>{setTimeout(()=>M(null),I)})]);N?(this.#E=n(async()=>{try{await N.keepSessionAlive(),await this.#k()}catch(M){this.#t.error(`Error keeping session alive. ${M.message}`)}},this.#w,{leading:!1}),F.forEach(M=>{document.addEventListener(M,this.#E)})):this.#t.warn("Application object not available to send keep alive")}catch(N){this.#t.error(`Error getting application object. ${N.message}`)}};addScript=async(N,M)=>{if(!this.#o&&N){await this.connect();const B=document.createElement("script");B.setAttribute("src",N),B.setAttribute("type","module"),await new Promise(($,X)=>{let G,Z;const K=()=>{B.removeEventListener("load",G),B.removeEventListener("error",Z)};G=()=>{K(),this.#o=!0,E(!0),$()},Z=()=>{K(),X(new Error(`Failed to load script: ${N}`))},B.addEventListener("load",G),B.addEventListener("error",Z),this.#r=M.appendChild(B)})}};close=async()=>{this.#i&&(this.#u&&this.#l&&(this.#n.send({targetWin:this.#u,targetOrigin:this.#l,messageType:s.G.GuestClose,messageBody:{}}),this.#n.removeSender({origin:this.#l,window:this.#u})),this.#n.close(),this.#h&&(clearInterval(this.#h),this.#h=null),this.#E&&F.forEach(N=>{document.removeEventListener(N,this.#E)}),await this.#F(),window.removeEventListener("beforeunload",this.close),this.#i=!1,this.#t.audit({message:"Guest disconnected from host",...this.#v()}),this.#c=null,this.#p=null,this.#a=null)};connect=async N=>{if(!this.#i){let M=window,B={...U};if(N){const{window:X,...G}=N;X&&(M=X),B={...B,...G}}const $=await P();this.#l=$.origin,this.#u=$.window,this.#n.initialize(M),this.#n.addSender({origin:this.#l,window:this.#u}),this.#n.listen({messageType:s.G.ObjectEvent,callback:this.#I.bind(this)}),this.#n.listen({messageType:s.G.HostConfig,callback:this.#T.bind(this)}),this.#n.listen({messageType:s.G.GuestFocus,callback:this.#P.bind(this)}),this.#n.listen({messageType:s.G.HostClose,callback:this.#D.bind(this)}),this.#n.send({targetWin:this.#u,targetOrigin:this.#l,messageType:s.G.GuestReady,messageBody:B}),this.#i=!0,this.#R(),this.#j&&await this.getAuthToken(),await this.#M(),window.addEventListener("beforeunload",this.close),this.#t.audit({message:"Guest connected to host",guestUrl:window.location.href})}};getAuthToken=async()=>{if(!this.#g&&this.#i)try{const N=await this.getObject("auth");if(N){const M=await N.getAccessToken();this.#g=M?.access_token,this.#m=M?.host_name,this.#f=M?.client_id}else this.#t.warn("Auth object not available to get access token from host")}catch(N){this.#t.error(`Error getting access token from auth object. ${N.message}`)}return this.#g};getObject=async N=>{if(this.#t.debug(`Retrieving scripting object "${N}" from host...`),!this.#i)throw new Error("Not connected to host");const{hostWindow:M,hostOrigin:B}=this.#d(),$=await this.#n.invoke({targetWin:M,targetOrigin:B,messageType:s.G.ObjectGet,messageBody:{objectId:N}}),X=this.#_($.object);return this.#y.log(`getObject:${N}`,{message:"Received scripting object from host",scriptingObject:N,...this.#v()}),X};listObjects=async()=>{if(this.#t.debug("Retrieving names of scripting objects exposed by host..."),!this.#i)throw new Error("Not connected to host");const{hostWindow:N,hostOrigin:M}=this.#d(),B=await this.#n.invoke({targetWin:N,targetOrigin:M,messageType:s.G.ListObjects,messageBody:{}});return this.#y.log("listObjects",{message:"Received names of all scripting objects exposed by host",objects:B,...this.#v()}),B};removeScript=()=>{if(this.#o&&this.#r){const{parentNode:N}=this.#r;N?.removeChild?.(this.#r)}};setLogLevel=N=>{this.#t.setLogLevel(N),this.#t.debug(`Log level changed by guest to ${N}`)};subscribe=N=>{const{eventId:M,criteria:B,callback:$}=N;this.#t.debug(`Registering subscription for event ${M}`);const X=this.#s.get(M.toLowerCase())||[],G=(0,t.A)();X.push({callback:$,token:G,criteria:B}),this.#s.set(M.toLowerCase(),X);const{hostWindow:Z,hostOrigin:K}=this.#d();return this.#n.send({targetWin:Z,targetOrigin:K,messageType:s.G.GuestEventSubscribe,messageBody:{eventId:M,criteria:B,token:G}}),this.#t.debug(`Subscribed to event ${M} with token ${G}`),G};unsubscribe=N=>{const{eventId:M,token:B}=N,$=this.#s.get(M.toLowerCase());if($){const X=$.length,G=$.filter(Z=>Z.token!==B);if(G.length<X){this.#s.set(M.toLowerCase(),G);const{hostWindow:Z,hostOrigin:K}=this.#d();this.#n.send({targetWin:Z,targetOrigin:K,messageType:s.G.GuestEventUnsubscribe,messageBody:{eventId:M,token:B}}),this.#t.debug(`Unsubscribed from event ${M}`)}}}}},"./node_modules/.pnpm/@elliemae+ssf-host@2.28.6_@elliemae+pui-diagnostics@3.12.4/node_modules/@elliemae/ssf-host/dist/esm/host.js"(u,o,e){"use strict";e.d(o,{P:()=>z});var t=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.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/remoting.js"),r=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObjectManager.js"),s=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/messageType.js"),a=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"),d=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"),i=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js"),c=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/filterCriteria.js");const m=null;function p(k,F){return(0,c.of)(F)?(0,c.ts)(k,F):!0}var h=(k=>(k.Popup="popup",k.Embed="embed",k))(h||{}),b=(k=>(k.AllowDownloadsWithoutUserActivation="allow-downloads-without-user-activation",k.AllowDownloads="allow-downloads",k.AllowForms="allow-forms",k.AllowModals="allow-modals",k.AllowOrientationLock="allow-orientation-lock",k.AllowPointerLock="allow-pointer-lock",k.AllowPopups="allow-popups",k.AllowPopupsToEscapeSandbox="allow-popups-to-escape-sandbox",k.AllowPresentation="allow-presentation",k.AllowSameOrigin="allow-same-origin",k.AllowScripts="allow-scripts",k.AllowStorageAccessByUserActivation="allow-storage-access-by-user-activation",k.AllowTopNavigation="allow-top-navigation",k.AllowTopNavigationByUserActivation="allow-top-navigation-by-user-activation",k))(b||{});const v=k=>{if(k==="about:blank")return"*";try{const{origin:F}=new URL(k);return F==="null"||!F?k:F}catch{const{origin:L}=new URL(k,document.baseURI);return L}},g=k=>k.flat(1/0).filter(F=>F!==void 0);function x(k){return typeof k=="function"}const j=[".ice.com",".elliemae.com",".ellielabs.com"],S=["localhost","127.0.0.1"],P=k=>k.split(".").slice(-2).join("."),w=k=>S.includes(k)||j.some(F=>k===F.slice(1)||k.endsWith(F)),E=k=>{const F=P(window.location.hostname),L=P(k);return F===L},A=k=>{try{const{hostname:F}=new URL(k,document.baseURI);return w(F)||E(F)}catch{return!1}};class D{id;title;url;searchParams;domElement;window;openMode;origin;initialized=!1;ready=!1;capabilities;#e;#t;#n;constructor(F){const{guestId:L,domElement:W=null,title:H,url:N,window:M,searchParams:B={},openMode:$=h.Embed,remoting:X,perfTracker:G,handshakeToken:Z}=F;this.id=L,this.title=H,this.url=N,this.origin=v(N),this.searchParams=B,this.domElement=W,this.window=M,this.openMode=$,this.capabilities={},this.#t=G,this.#e=X,this.#n=Z}dispose=()=>{if(this.openMode===h.Popup&&!this.window.closed)try{this.window.document,this.window.close()}catch{this.#e.send({targetWin:this.window,targetOrigin:this.origin,messageType:s.G.HostClose,messageBody:{}})}else this.domElement?.remove?.();this.#e.removeSender({origin:this.origin,window:this.window})};getInfo=()=>({guestId:this.id,guestTitle:this.title,guestUrl:this.url});handShake=()=>new Promise(F=>{let L=0;const W=5;let H;const N=()=>{clearInterval(H),this.#e.unlisten({messageType:s.G.HandShakeAck,callback:N}),F(!0)};H=setInterval(()=>{L>=W?(clearInterval(H),this.#e.unlisten({messageType:s.G.HandShakeAck,callback:N}),F(!1)):(this.#e.send({targetWin:this.window,targetOrigin:this.origin,messageType:s.G.HandShake,messageBody:this.#n?{handshakeToken:this.#n}:{}}),L+=1)},1e3),this.#e.listen({messageType:s.G.HandShakeAck,callback:N})});init=()=>{this.#e.addSender({origin:this.origin,window:this.window}),this.openMode===h.Popup&&this.handShake().catch(()=>{})};dispatchEvent=(F,L)=>{let W;if(this.#t.enabled){const H=`ScriptingObject.Event.${F.object.objectId}.${F.eventName}`;W=this.#t.start(H,{appId:this.id,appUrl:this.url})}return this.#e.invoke({targetWin:this.window,targetOrigin:this.origin,messageType:s.G.ObjectEvent,messageBody:F,responseTimeoutMs:L}).finally(()=>{W&&this.#t.end(W,{appId:this.id,appUrl:this.url})})};send=F=>{this.#e.send({targetWin:this.window,targetOrigin:this.origin,...F})}}const T=new Set(["SSF.Guest.Load"]);class I{#e;#t;#n;#o=new Set;#r;#i=new Map;#s;static DEFAULT_SAMPLING_RATIO=.05;static DEFAULT_DEDUP_WINDOW_MS=1e4;constructor(F){this.#e=F.analyticsObj,this.#t=F.enabled??!1,this.#n=F.samplingRatio??I.DEFAULT_SAMPLING_RATIO,this.#r=F.dedupWindowMs??I.DEFAULT_DEDUP_WINDOW_MS,this.#s=F.onError}get enabled(){return this.#t}start(F,L){if(this.#t)try{const W=T.has(F);return!W&&!this.shouldTrack(F)?void 0:(!W&&!this.#o.has(F)&&(this.#e.setTimingEventSamplingRatio({[F]:this.#n}),this.#o.add(F)),this.#e.startTiming(F,L).catch(H=>{this.reportError(`startTiming failed: ${H.message}`)}),F)}catch(W){this.reportError(`startTiming failed: ${W.message}`);return}}end(F,L){if(F)try{this.#e.endTiming(F,L).catch(W=>{this.reportError(`endTiming failed: ${W.message}`)})}catch(W){this.reportError(`endTiming failed: ${W.message}`)}}reportError(F){try{this.#s?.(F)}catch{}}shouldTrack(F){if(this.#r<=0)return!0;const L=performance.now(),W=this.#i.get(F);return W!==void 0&&L-W<this.#r?!1:(this.#i.set(F,L),!0)}}const U=[b.AllowScripts,b.AllowPopups,b.AllowModals,b.AllowForms,b.AllowDownloads,b.AllowSameOrigin];class z{hostId;#e;#t;#n;#o;#r=new Map;#i=new Map;#s=new Map;#c=new Map;#a;#p=null;#l=null;#u=null;#h=null;#b=new Map;#d;#j;constructor(F,L){if(this.hostId=F,!L?.logger)throw new Error("Logger is required");if(!L?.analyticsObj)throw new Error("Analytics object is required");this.#n=L.logger,this.#o=L.analyticsObj;const W={analyticsObj:L.analyticsObj,enabled:L?.measurePerformance,samplingRatio:L?.performanceSamplingRatio,onError:H=>this.#n.debug(H)};if(this.#d=new I({...W,dedupWindowMs:L?.performanceDedupWindowMs}),this.#j=new I({...W,dedupWindowMs:0}),this.#t=(0,t.A)(),this.#e=new n.K(this.#n,this.#t),L?.readyStateCallback&&typeof L?.readyStateCallback!="function")throw new Error("readyStateCallback must be a function");this.#p=L?.readyStateCallback||null,this.#u=L?.onGuestEventSubscribe||null,this.#h=L?.onGuestEventUnsubscribe||null,this.#a=new r.qE,this.#e.initialize(window),this.#F(),window.addEventListener("beforeunload",this.#f),this.#n.debug(`host is initialized. hostId: ${this.hostId}, correlationId: ${this.#t}`)}#g=(F,L)=>{const W={event:F,...L};this.#o.sendBAEvent(W).catch(H=>{this.#n.debug(`Analytics sendBAEvent failed: ${H.message}`)})};#f=()=>{Array.from(this.#r.values()).filter(L=>L.openMode===h.Popup).map(L=>L.id).forEach(L=>this.unloadGuest(L))};#m=F=>this.#i.get(F);#x=F=>this.#s.get(F)??null;#w=F=>typeof F?._toJSON=="function";#S=(F,L)=>this.#w(F)?(this.#a.has(F?.id,L)||this.#a.addScriptingObject(F,L?{guestId:L?.id}:{}),{type:"object",object:F._toJSON()}):{type:"value",value:F};#E=F=>typeof F=="string"?F:F instanceof Error?F.message:"An unexpected error occurred in the host application";#y=F=>{F.ready&&this.#e.send({targetWin:F.window,targetOrigin:F.origin,messageType:s.G.HostConfig,messageBody:{logLevel:this.#n.getLogLevel(),...F.getInfo()}})};#v=({guest:F,obj:L,functionName:W,functionParams:H,callerChain:N})=>{const M=L[W];return x(M)?(this.#n.debug(`Invoking host implementation of ${L.id}.${String(W)}()`),new Promise(B=>{Object.defineProperty(M,"callContext",{value:{guest:F,...N?.length?{callChain:N}:{}},configurable:!0,enumerable:!0,writable:!0}),B(M(...H))})):(this.#n.warn(`Attempt to call invalid function on object type ${L.objectType}: ${String(W)}`),Promise.reject(new Error(`Method '${W}' not found in Scripting Object '${L.id}'`)))};#_=({sourceWin:F,sourceOrigin:L,requestId:W})=>{const H=this.#m(F);if(!H){this.#n.warn(`Received ready event for unknown guest. requestId: ${W}`);return}if(!H.initialized){this.#n.warn("Guest must be initialized before it is marked as ready"),this.#e.raiseException({targetWin:F,targetOrigin:L,requestId:W,ex:"Guest must be initialized before it is marked as ready"});return}if(!H.ready){H.ready=!0;const N=H.getInfo();this.#d.end("SSF.Guest.Load",{appId:N.guestId,appUrl:N.guestUrl}),this.#y(H),this.#p?.(H),this.#n.audit({message:"Guest is ready",...N})}};#A=({sourceWin:F,sourceOrigin:L,requestId:W,body:H})=>{const N=this.#m(F);if(!N){this.#n.warn(`Received ready event for unknown guest. requestid = ${W}`);return}N.initialized||(N.initialized=!0,N.capabilities=H||{},this.#n.audit({message:"Guest is initialized",...N.getInfo()})),(!H||!H.onReady)&&this.#_({sourceWin:F,sourceOrigin:L,requestId:W,type:"",body:null})};#O=async({sourceWin:F})=>{if(F?.window){const L=this.#L(F);L&&!await L.handShake()&&this.unloadGuest(F)}};#C=({sourceWin:F,sourceOrigin:L,requestId:W})=>{this.#n.debug(`Processing listObjects request. requestId = ${W}`);const H=this.#m(F);if(!H)return this.#n.warn("Rejected object request from unknown guest window"),!1;const N=this.#a.listScriptingObjects(H.id);return this.#e.respond({targetWin:F,targetOrigin:L,requestId:W,response:N}),this.#n.debug({message:"name of scripting objects returned",requestId:W,objects:N,...H.getInfo()}),!0};#T=({sourceWin:F,sourceOrigin:L,requestId:W,body:H})=>{const{objectId:N}=H;this.#n.debug(`Processing getObject request for object ${N}. requestId = ${W}`);const M=this.#m(F);if(!M)return this.#n.warn("Rejected object request from unknown guest window"),!1;const B=this.getScriptingObject(N,{guest:M});return B?(this.#e.respond({targetWin:F,targetOrigin:L,requestId:W,response:this.#S(B,M)}),this.#n.debug({message:"Scripting Object returned",requestId:W,scriptingObject:N,...M.getInfo()}),!0):(this.#n.warn(`unknown or unauthorized object ${N} from guest ${M.id}`),this.#e.raiseException({targetWin:F,targetOrigin:L,requestId:W,ex:`The requested object (${N}) is not available`}),!1)};#P=({sourceWin:F,requestId:L,body:W})=>{const{eventId:H,criteria:N,token:M}=W;this.#n.debug(`Processing guest event subscribe request for event ${H}. requestId = ${L}`);const B=this.#m(F);if(!B){this.#n.warn("Rejected event subscribe request from unknown guest window");return}setTimeout(()=>{try{this.#u?.({guestId:B.id,eventId:H,criteria:N,token:M})}catch($){this.#n.warn(`Error in onGuestEventSubscribe callback for event ${H}: ${$.message}`)}},0)};#D=({sourceWin:F,requestId:L,body:W})=>{const{eventId:H,token:N}=W;this.#n.debug(`Processing guest event unsubscribe request for event ${H}. requestId = ${L}`);const M=this.#m(F);if(!M){this.#n.warn("Rejected event unsubscribe request from unknown guest window");return}setTimeout(()=>{try{this.#h?.({guestId:M.id,eventId:H,token:N})}catch(B){this.#n.warn(`Error in onGuestEventUnsubscribe callback for event ${H}: ${B.message}`)}},0)};#R=({sourceWin:F,requestId:L,body:W})=>{const H=this.#m(F);if(!H){this.#n.warn(`Received resize event from unknown guest. requestid = ${L}`);return}H.domElement&&(H.domElement.style.height=`${W.height}px`),this.#n.debug(`Guest ${H.id} resized to ${W.width}x${W.height}`)};#I=({sourceWin:F,sourceOrigin:L,requestId:W,body:H})=>{const{objectId:N,callerChain:M}=H,B=this.#m(F);if(!B)return this.#n.warn("Rejected method invocation request from unknown guest window"),!1;this.#n.debug(`Function ${N}.${String(H.functionName)}() called from guest "${B.id}" (requestId = ${W})`);const $=this.getScriptingObject(N,{guest:B});if(!$)return this.#n.warn(`Invocation of unknown or unauthorized object ${N} from guest ${B.id}`),this.#e.raiseException({targetWin:F,targetOrigin:L,requestId:W,ex:`The requested object (${N}) is not available`}),!1;const X=B.getInfo();let G;if(this.#d.enabled){const Z=`ScriptingObject.API.${N}.${H.functionName}`;G=this.#d.start(Z,{appId:X.guestId,appUrl:X.guestUrl})}return this.#v({guest:B,obj:$,functionName:H.functionName,functionParams:H.functionParams,callerChain:M}).then(Z=>{this.#e.respond({targetWin:F,targetOrigin:L,requestId:W,response:this.#S(Z,B)}),this.#n.debug({message:"Value returned for Scripting Object method call",requestId:W,scriptingObject:N,scriptingMethod:H.functionName,...X})}).catch(Z=>{this.#e.raiseException({targetWin:F,targetOrigin:B.origin,requestId:W,ex:Z}),this.#n.error({message:"Exception thrown for Scripting Object method call",requestId:W,scriptingObject:N,scriptingMethod:H.functionName,...X})}).finally(()=>{G&&this.#d.end(G,{appId:X.guestId,appUrl:X.guestUrl})}),!0};#k=()=>{this.#e.listen({messageType:s.G.GuestResize,callback:this.#R})};#F=()=>{this.#e.listen({messageType:s.G.GuestReady,callback:this.#A}),this.#e.listen({messageType:s.G.GuestReadyComplete,callback:this.#_}),this.#e.listen({messageType:s.G.GuestClose,callback:this.#O}),this.#e.listen({messageType:s.G.ListObjects,callback:this.#C}),this.#e.listen({messageType:s.G.ObjectGet,callback:this.#T}),this.#e.listen({messageType:s.G.ObjectInvoke,callback:this.#I}),this.#e.listen({messageType:s.G.GuestEventSubscribe,callback:this.#P}),this.#e.listen({messageType:s.G.GuestEventUnsubscribe,callback:this.#D})};#M=F=>F instanceof a.b3||typeof F?.subscribe=="function";#N=F=>{const L=new D({...F,remoting:this.#e,perfTracker:this.#j});return L.init(),this.#r.set(F.guestId,L),this.#i.set(L.window,L),this.#s.set(L.url,L),L};#L=F=>{if(typeof F=="string")return this.#r.get(F);const L=this.#i.get(F);return L||Array.from(this.#r.values()).find(W=>W.domElement===F)};#B=()=>{this.#l||(this.#l=setInterval(()=>{const F=[];this.#r.forEach(L=>{L.openMode===h.Popup&&L.window.closed&&F.push(L)}),F.forEach(L=>{const{id:W}=L;this.unloadGuest(W),this.#c.get(W)?.forEach(N=>{Promise.resolve(N({id:W})).catch(()=>{})})})},1e3))};#U=()=>{if(!this.#l)return;Array.from(this.#r.values()).some(L=>L.openMode===h.Popup)||(clearInterval(this.#l),this.#l=null)};#$=F=>{const L=A(F),W=L?void 0:(0,t.A)();return{popupUrl:W?`${F}#hs=${W}`:F,handshakeToken:W,trusted:L}};#z=F=>{const{url:L,title:W,popupWindowFeatures:H={},searchParams:N,guestId:M,onLoad:B,onError:$}=F,{width:X=800,height:G=600,top:Z=100,left:K=100}=H;let q=this.#x(L);if(q)q.window.closed||(A(L)?window.open("",W):q.window.focus());else{const te=Object.entries({width:X,height:G,top:Z,left:K}).filter(([,re])=>re).map(([re,ge])=>`${re}=${ge}`).join(","),{popupUrl:fe,handshakeToken:oe,trusted:me}=this.#$(L),ne=window.open(fe,W,`popup, ${te}`);if(ne)setTimeout(()=>{try{B?.(M)}catch(re){this.#n.debug(`Error occurred in onLoad for guest with id '${M}': ${re.message}`)}},0);else throw setTimeout(()=>{try{$?.(M)}catch(re){this.#n.debug(`Error occurred in onError for guest with id '${M}': ${re.message}`)}},0),new Error("Failed to open guest application in popup window");me||(ne.opener=null),q=this.#N({guestId:M,window:ne,title:W,url:L,searchParams:N,openMode:h.Popup,handshakeToken:oe}),this.#B()}return q};#W=F=>{const{url:L,title:W,targetElement:H,searchParams:N,guestId:M,onLoad:B,onError:$,options:X={}}=F,G=H.ownerDocument??document,{fitToContent:Z=!1,disableSandbox:K=!1,sandboxValues:q=[],customSandboxValues:te=[],style:fe="",permissionPolicy:oe=""}=X;if(!W)throw new Error("title is required");Z&&this.#k();const me=G.createElement("iframe");me.setAttribute("id",M);const ne=()=>{setTimeout(()=>{try{B?.(M)}catch(ee){this.#n.debug(`Error occurred in onLoad for guest with id '${M}': ${ee.message}`)}},0),this.#n.debug(`frame loaded for guest with id '${M}'`),me.removeEventListener("load",ne)},re=()=>{setTimeout(()=>{try{$?.(M)}catch(ee){this.#n.debug(`Error occurred in onError for guest with id '${M}': ${ee.message}`)}},0),this.#n.error(`frame load failed for guest with id '${M}'`),me.removeEventListener("error",re)};me.addEventListener("load",ne),me.addEventListener("error",re),me.setAttribute("style",`min-width: 100%; height: 100%; border: 0px; ${fe}`),K||me.setAttribute("sandbox",te.length>0?te.join(" "):[...U,...q].join(" ")),me.setAttribute("title",W),me.setAttribute("src",L),oe&&me.setAttribute("allow",oe),H.appendChild(me);const ge=G.getElementById(M);return this.#N({guestId:M,domElement:ge,window:ge.contentWindow,title:W,url:L,searchParams:N,openMode:h.Embed})};#G=(F,L)=>{let W="";return Object.keys(L).forEach(H=>{W+=`${(W.length?"&":"")+encodeURIComponent(H)}=${encodeURIComponent(L[H])}`}),F+(W?(F.indexOf("?")>=0?"&":"?")+W:"")};addScriptingObject=(F,L)=>{if((0,d.h)(F)){const W=this.cloneScriptingObject(F);this.#a.addScriptingObject(W,L)}else this.#a.addScriptingObject(F,L)};cloneScriptingObject=F=>{if(!F)throw new Error("proxy is required");const L=new i.P(F.id,F.objectType);let W=[];return Object.keys(F).forEach(H=>{const N=F[H];if(this.#M(N)){const M=new a.Jh({name:N.name||H,objectId:L.id});if(Object.defineProperty(L,H,{value:M,enumerable:!0}),N instanceof a.b3){const B=({eventParams:X,eventOptions:G})=>this.dispatchEvent({event:M,eventParams:X,eventOptions:G}),$=N.subscribe(B);W.push(()=>{N.unsubscribe($)})}else{const B=N.subscribe?.(($,X,G)=>this.dispatchEvent({event:M,eventParams:X,eventOptions:G}));W.push(()=>{N.unsubscribe?.(B)})}}else if(x(N)&&(Object.defineProperty(L,H,{value:async(...M)=>{const B=L[H]?.callContext;if(B?.guest){const X=B.callChain??[],G=B.guest.id,Z=this.#b.get(G),K={id:G};Z&&(K.metadata=Z),Object.defineProperty(N,"callContext",{value:{callChain:[...X,K]},configurable:!0,enumerable:!0,writable:!0})}const $=await N(...M);return(0,d.h)($)?this.cloneScriptingObject($):$},enumerable:!0}),H==="dispose")){const M=L.dispose;Object.defineProperty(L,H,{value:()=>(L._dispose(),M.apply(L)),enumerable:!0})}}),L._dispose=()=>{W.forEach(H=>{H?.()}),W=[]},L};close=()=>{this.#l&&(clearInterval(this.#l),this.#l=null),this.#f(),this.#b.clear(),this.#e.close(),window.removeEventListener("beforeunload",this.#f),this.#n.debug(`host is closed. hostId: ${this.hostId}, correlationId: ${this.#t}`)};#H=({targetGuest:F,guestCapabilities:L,scriptingEventId:W,dispatchToGuest:H})=>{const N=M=>{if((0,c.of)(L)&&!p(M.capabilities,L)){this.#n.debug({message:"Event skipped \u2014 guest capabilities do not match eventOptions.guestCapabilities",scriptingEventId:W,guestCapabilities:L,...M.getInfo()});return}H(M)};F?N(F):this.#r.forEach(N)};dispatchEvent=async F=>{const{event:{id:L,name:W},eventParams:H,eventOptions:N={}}=F,{eventHandler:M=null,timeout:B=null,window:$=null,guestId:X,guestCapabilities:G}=N,Z=L.split(".")[0],K=X||$,q=K?this.#L(K):null,te=q?this.getScriptingObject(Z,{guest:q}):this.getScriptingObject(Z);if(!te)return this.#n.warn(`Attempt to dispatch event ${W} on unknown object ${Z}`),Promise.resolve([]);const fe={object:te._toJSON(),eventName:W,eventParams:H,eventHandler:M,eventOptions:{allowsFeedback:!1}};B&&!Number.isNaN(B)&&(fe.eventOptions={allowsFeedback:!0,timeout:Number(B)});const oe=[];let me;const ne=re=>{const ge=re.getInfo();B&&re?.capabilities?.eventFeedback?(oe.push(re.dispatchEvent(fe,B)),!me&&this.#d.enabled&&(me=this.#d.start(`ScriptingObject.Event.${te.id}.${W}`,{appId:this.hostId,appUrl:window.location.href})),this.#n.debug({message:"Event dispatched and awaiting feedback",scriptingEventId:L,...ge})):(re.send({messageType:s.G.ObjectEvent,messageBody:fe}),this.#n.debug({message:"Event dispatched",scriptingEventId:L,...ge}))};return this.#H({targetGuest:q??null,guestCapabilities:G,scriptingEventId:L,dispatchToGuest:ne}),Promise.all(oe).then(re=>(this.#n.debug({message:"Event feedback received",scriptingEventId:L}),g(re))).catch(re=>{throw this.#n.error({message:"Error processing event",eventId:L,exception:re}),re}).finally(()=>{me&&this.#d.end(me,{appId:this.hostId,appUrl:window.location.href})})};getGuests=()=>Array.from(this.#r.values());getScriptingObject=(F,L)=>this.#a.getObject(F,L?.guest);loadGuest=F=>{const{id:L,url:W,targetElement:H,title:N,searchParams:M={},onLoad:B,onError:$,options:X={},metadata:G}=F;if(!L)throw new Error("id for guest application is required");let Z=L;if(this.#r.has(Z)){let oe=1;for(;this.#r.has(`${L}-${oe}`);)oe+=1;Z=`${L}-${oe}`}const{openMode:K=h.Embed,popupWindowFeatures:q={}}=X,te=this.#G(W,M);let fe=null;if(this.#d.start("SSF.Guest.Load",{appId:Z,appUrl:te}),K===h.Popup)fe=this.#z({guestId:Z,url:te,title:N,searchParams:M,popupWindowFeatures:q,onLoad:B,onError:$});else if(K===h.Embed)fe=this.#W({guestId:Z,url:te,title:N,targetElement:H,searchParams:M,onLoad:B,onError:$,options:X});else throw new Error(`Invalid openMode: ${K}`);return G&&this.#b.set(Z,G),this.#n.audit({message:"Guest loaded",...fe.getInfo()}),fe};loadGuests=F=>{const{id:L,url:W,targetElement:H,title:N,searchParamsList:M=[],options:B={}}=F;M.forEach(($,X)=>{this.loadGuest({id:`${L}-${X}`,url:W,title:N,targetElement:H,searchParams:$,options:B})},this)};removeAllScriptingObjects=F=>{this.#a.removeAllScriptingObjects(F)};removeScriptingObject=(F,L)=>{this.#a.removeScriptingObject(F,L)};setLogLevel=F=>{this.#n.setLogLevel(F),this.#r.forEach(this.#y),this.#n.debug("Dispatched config events to all guests")};unloadGuest=F=>{const L=this.#L(F);L&&(L.dispose(),this.#i.delete(L.window),this.#s.delete(L.url),this.#b.delete(L.id),this.#r.delete(L.id),this.#n.audit({message:"Guest is removed from host",...L.getInfo()}),this.#U())};onGuestClose=F=>{const{id:L,guestCloseCallback:W}=F,H=this.#c.get(L)||[];H.push(W),this.#c.set(L,H)}}},"./node_modules/.pnpm/@xstyled+core@3.8.2/node_modules/@xstyled/core/dist/index.mjs"(u,o,e){"use strict";e.d(o,{E8:()=>ne,_7:()=>ye});var t,n,r=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),s=e("./node_modules/.pnpm/@xstyled+system@3.8.3/node_modules/@xstyled/system/dist/index.mjs"),a=e("./node_modules/.pnpm/@xstyled+util@3.7.0/node_modules/@xstyled/util/dist/index.mjs");function d(ze){return n({theme:ze})}function i(ze,be){const Ne=d(ze)[be];return Ne===0?null:Ne}function c(ze,be){const Ne=d(ze)[be];return Ne===0?null:Ne-.02}function m(){const[ze,be]=t.useState(typeof window>"u"?null:window.innerWidth);return t.useEffect(()=>{function un(){be(window.innerWidth)}return window.addEventListener("resize",un),be(window.innerWidth),()=>window.removeEventListener("resize",un)},[]),ze}function p(ze){const be=d(ze),un=m();return t.useMemo(()=>Object.keys(be).reverse().find(Ne=>un!==null&&un>=be[Ne])||null,[be,un])}function h(ze,be){const un=i(ze,be),Ne=m();return Ne!==null&&un!==null&&Ne>=un}function b(ze,be){const un=c(ze,be),Ne=m();return Ne!==null&&un!==null&&Ne<un}const v=(...ze)=>ze.filter(Boolean).join("."),g=ze=>`--${ze.replace(/\./g,"-")}`,x=(ze,be)=>`var(${g(ze)}, ${be})`,j=(ze,be)=>`${ze}: ${be};`;function S(ze,be,un=Object.keys(ze),Ne){const yn=Array.isArray(ze)?[]:{};for(const Cn in un){const Rn=un[Cn],Ce=ze[Rn],de=v(Ne,Rn);if((0,a.WL)(Ce)){yn[Rn]=S(Ce,be,Object.keys(Ce),de);continue}if((0,a.Yj)(Ce)){yn[Rn]=x(de,Ce);continue}if((0,a.Pc)(Ce)){yn[Rn]=x(de,(0,a.DJ)(Ce,{theme:be}));continue}}return yn}function P(ze,be,un=Object.keys(ze),Ne,yn={value:""}){for(const Cn in un){const Rn=un[Cn],Ce=ze[Rn],de=v(Ne,Rn);if((0,a.WL)(Ce)){P(Ce,be,Object.keys(Ce),de,yn);continue}if((0,a.Yj)(Ce)){yn.value+=j(g(de),Ce);continue}if((0,a.Pc)(Ce)){yn.value+=j(g(de),(0,a.DJ)(Ce,{theme:be}));continue}}return yn.value}var w=Object.defineProperty,E=Object.defineProperties,A=Object.getOwnPropertyDescriptors,D=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,U=(ze,be,un)=>be in ze?w(ze,be,{enumerable:!0,configurable:!0,writable:!0,value:un}):ze[be]=un,z=(ze,be)=>{for(var un in be||(be={}))T.call(be,un)&&U(ze,un,be[un]);if(D)for(var un of D(be))I.call(be,un)&&U(ze,un,be[un]);return ze},k=(ze,be)=>E(ze,A(be)),F=(ze,be)=>{var un={};for(var Ne in ze)T.call(ze,Ne)&&be.indexOf(Ne)<0&&(un[Ne]=ze[Ne]);if(ze!=null&&D)for(var Ne of D(ze))be.indexOf(Ne)<0&&I.call(ze,Ne)&&(un[Ne]=ze[Ne]);return un};const L="xstyled-color-mode",H=typeof window<"u"&&(()=>{try{const ze="xstyled-test-key";return window.localStorage.setItem(ze,ze),window.localStorage.removeItem(ze),!0}catch{return!1}})()?{get:()=>window.localStorage.getItem(L),set:ze=>{window.localStorage.setItem(L,ze)},clear:()=>window.localStorage.removeItem(L)}:{get:()=>null,set:()=>{},clear:()=>{}},N="xstyled-color-mode-",M=ze=>`${N}${ze}`,B="xstyled-colors",$=["light","dark"];function X(ze,be){return k(z({},ze),{colors:z(z({},ze.colors),ze.colors.modes[be])})}const G=ze=>`@media ${ze}`,Z=ze=>`(prefers-color-scheme: ${ze})`;function K(ze){return Boolean(ze&&ze.colors&&ze.colors.modes)}function q(ze){return Boolean(ze&&(ze.useCustomProperties===void 0||ze.useCustomProperties))}function te(ze){return Boolean(ze&&(ze.useColorSchemeMediaQuery===void 0||ze.useColorSchemeMediaQuery))}function fe(ze){return ze.initialColorModeName||"default"}function oe(ze){return ze.defaultColorModeName||fe(ze)}function me(ze){let be=[];for(const un in ze)be=[...be,...Object.keys(ze[un])];return be}function ne(ze,{targetSelector:be="body"}={}){if(!K(ze))return null;const un=ze.colors,{modes:Ne}=un,yn=F(un,["modes"]),Cn=me(Ne);let Rn=P(yn,ze,Cn,B);function Ce(Ee){const Xe=X(ze,Ee),gn=Xe.colors,{modes:V}=gn,ie=F(gn,["modes"]);return P(z(z({},ie),V[Ee]),Xe,Cn,B)}return ze.useColorSchemeMediaQuery!==!1&&$.forEach(Ee=>{if(Ne[Ee]){const Xe=G(Z(Ee));Rn+=`${Xe}{${Ce(Ee)}}`}}),[fe(ze),...Object.keys(Ne)].forEach(Ee=>{const Xe=`&.${M(Ee)}`;Rn+=`${Xe}{${Ce(Ee)}}`}),`${be}{${Rn}}`}function re(ze){if(typeof window>"u"||window.matchMedia===void 0)return null;const be=Z(ze);return window.matchMedia(be)}function ge(ze){const be=r.useMemo(()=>te(ze)?$.map(yn=>{if(!K(ze)||!ze.colors.modes[yn])return null;const Cn=re(yn);return Cn?{mode:yn,mql:Cn}:null}).filter(Boolean):[],[ze]),[un,Ne]=r.useState(()=>{const yn=be.find(Cn=>Cn.mql.matches);return yn?yn.mode:null});return r.useEffect(()=>{const yn=be.map(({mode:Cn,mql:Rn})=>{const Ce=({matches:de})=>{Ne(de?Cn:Ee=>Ee===Cn?null:Cn)};return Rn.addEventListener("change",Ce),()=>Rn.removeEventListener("change",Ce)});return()=>yn.forEach(Cn=>Cn())}),un}const ee=typeof window<"u"?r.useLayoutEffect:r.useEffect;function ve(ze,{target:be}={}){const un=ge(ze),Ne=oe(ze),yn=fe(ze),[Cn,Rn]=r.useState(()=>K(ze)?Ne:null),Ce=q(ze),de=r.useCallback(Ee=>{Rn(Ee||null),Ee?H.set(Ee):H.clear()},[]);return ee(()=>{if(!K(ze))return;const Ee=H.get();Cn!==(Ee||un||Ne)&&Rn(Ee||un||Ne)},[]),ee(()=>{if(H.get())return;const Xe=un||Ne;Xe!==Cn&&Rn(Xe)},[Cn,un,Ne]),ee(()=>{if(!Cn||!Ce||!H.get()&&!(yn!==Cn))return;const gn=M(Cn),V=be||document.body;return V.classList.add(gn),()=>{V.classList.remove(gn)}},[Ce,be,Cn,yn]),[Cn,de]}function We(ze,be){const[un]=r.useState(be),Ne=r.useMemo(()=>{if(!un||!q(ze))return null;if(!K(ze))return ze;const Cn=ze.colors,{modes:Rn}=Cn,Ce=F(Cn,["modes"]),de=me(Rn);return k(z({},ze),{colors:k(z(z({},Ce),S(Ce,ze,de,B)),{modes:Rn}),__rawColors:ze.colors})},[un,ze]),yn=r.useMemo(()=>!be||q(ze)?null:K(ze)?be===fe(ze)?k(z({},ze),{__colorMode:be}):k(z({},ze),{colors:z(z({},ze.colors),ze.colors.modes[be]),__colorMode:be,__rawColors:ze.colors}):ze,[ze,be]);return Ne||yn}const qe=r.createContext(null);function nn(){const ze=t.useContext(qe);if(!ze)throw new Error("[useColorMode] requires the ColorModeProvider component");return ze}function ye({ThemeContext:ze,ThemeProvider:be,ColorModeStyle:un}){function Ne({children:yn,target:Cn,targetSelector:Rn}){const Ce=r.useContext(ze);if(!Ce)throw new Error("[ColorModeProvider] requires ThemeProvider upper in the tree");const de=ve(Ce,{target:Cn}),Ee=We(Ce,de[0]);return r.createElement(r.Fragment,null,r.createElement(un,{targetSelector:Rn}),r.createElement(be,{theme:Ee},r.createElement(qe.Provider,{value:de},yn)))}return Ne}function ce({target:ze="document.body"}={}){return`(function() { try {
|
|
18400
|
+
`;e.d(o,["Az",0,v,"G3",0,h,"KZ",0,b,"OV",0,j,"_W",0,c,"f7",0,S,"rf",0,p,"uP",0,g])},"./node_modules/.pnpm/@elliemae+ds-toast@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/react-desc-prop-types.js"(u,o,e){"use strict";var t=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),n=e("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.61.8_@elliemae+pui-theme@2.13.0_lodash-es@4.18.1/node_modules/@elliemae/ds-props-helpers/dist/esm/propTypes/PropTypes.js"),r=e("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.61.8_@elliemae+pui-theme@2.13.0_lodash-es@4.18.1/node_modules/@elliemae/ds-props-helpers/dist/esm/propsPerSlot/getPropsPerSlotPropTypes.js"),s=e("./node_modules/.pnpm/@elliemae+ds-toast@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/constants.js"),a=e("./node_modules/.pnpm/@elliemae+ds-toast@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/DSToastDefinitions.js");const d={containerProps:{},position:"bottom-left",autoClose:5e3,showProgressBar:!1,closeOnClick:!1,enableMultiContainer:!1},i=null,c={containerProps:n.A.object.description("inject props to wrapper").defaultValue({}),position:n.A.oneOf(s.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,r.Y)(a.GM,a.UJ),closeButtonRef:n.A.oneOfType([n.A.object,n.A.func]).description("Close button ref")},m={children:n.A.node.isRequired.description("link text")},p={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")},h={type:n.A.oneOf(s.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")};e.d(o,["AS",0,h,"Gs",0,d,"x7",0,c])},"./node_modules/.pnpm/@elliemae+ds-toast@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/toast.js"(u,o,e){"use strict";e.d(o,{o:()=>v});var t=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"),r=e("./node_modules/.pnpm/react-toastify@6.2.0/node_modules/react-toastify/dist/react-toastify.cjs.production.min.js"),s=e("./node_modules/.pnpm/@elliemae+ds-props-helpers@3.61.8_@elliemae+pui-theme@2.13.0_lodash-es@4.18.1/node_modules/@elliemae/ds-props-helpers/dist/esm/propTypes/describe.js"),a=e("./node_modules/.pnpm/@elliemae+ds-toast@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/react-desc-prop-types.js"),d=e("./node_modules/.pnpm/@elliemae+ds-toast@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/parts/styled.js"),i=e("./node_modules/.pnpm/@elliemae+ds-toast@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/constants.js"),c=e("./node_modules/.pnpm/@elliemae+ds-toast@3.61.8_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-toast/dist/esm/DSToastDefinitions.js");const m=g=>i.lA[g],p=g=>i.JC[g],h=({type:g=i.Ck.DEFAULT,messageTitle:x="",messageText:j="",messageComponent:S})=>{const P=m(g),w=p(g);return(0,n.jsxs)(d.rf,{"data-testid":"ds-toast-render",className:"em-ds-toast-content",children:[(0,n.jsx)(d.G3,{className:"em-ds-toast-content__icon-container",children:(0,n.jsx)(P,{size:"m",className:"em-ds-toast-content__icon-message",color:w})}),(0,n.jsxs)(d.KZ,{className:"em-ds-toast-content__message-content",children:[(0,n.jsx)(d.Az,{className:"em-ds-toast-content__message-header",children:x}),(0,n.jsx)(d.uP,{className:"em-ds-toast-content__message-text",children:S||j})]})]})};h.displayName=c.VR;const b=(0,s.A)(h);b.propTypes=a.AS;const v=Object.assign(({type:g,messageTitle:x,messageText:j,messageComponent:S,...P},w)=>(0,r.oR)((0,n.jsx)(h,{messageText:j,messageComponent:S,messageTitle:x,type:g}),{...P,...w,type:g}),{...r.oR,isActive:g=>r.oR.isActive(g)})},"./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"(u,o,e){"use strict";e.d(o,{Jh:()=>t,b3:()=>n});class t{name;objectId;id;constructor(d){const{name:i,objectId:c}=d;if(!i)throw new Error("Event name is required");if(!c)throw new Error("Scripting object id is required");this.objectId=c,this.name=i,this.id=`${this.objectId}.${this.name}`.toLowerCase()}}class n{static[Symbol.hasInstance](d){return typeof d=="object"&&d!==null&&"getType"in d&&typeof d.getType=="function"&&d.getType()==="ProxyEvent"}#e;objectId;name;id;getType(){return"ProxyEvent"}constructor(d){const{name:i,objectId:c,eventSrc:m}=d;if(!i)throw new Error("Event name is required");if(!c)throw new Error("Scripting object id is required");if(!m)throw new Error("Event source is required");this.objectId=c,this.name=i,this.#e=m,this.id=`${this.objectId}.${this.name}`.toLowerCase()}subscribe=d=>this.#e.subscribe({eventId:this.id,callback:d});unsubscribe=d=>{this.#e.unsubscribe({eventId:this.id,token:d})}}const r=a=>a instanceof t,s=(a,d)=>`${a.toLowerCase()}.${d.toLowerCase()}`;e.d(o,["_s",0,s,"xH",0,r])},"./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/filterCriteria.js"(u,o,e){"use strict";e.d(o,{of:()=>s,ts:()=>a});const t=new Map;function n(d){return typeof d=="object"&&d!==null&&("eq"in d||"in"in d||"includes"in d||"gt"in d||"lt"in d||"regex"in d)}function r(d,i,c){if("eq"in i)return d===i.eq;if("in"in i)return Array.isArray(i.in)&&i.in.includes(d);if("includes"in i)return Array.isArray(d)&&d.includes(i.includes);if("gt"in i){const m=typeof d=="number"?d:Number(d);return!Number.isNaN(m)&&m>i.gt}if("lt"in i){const m=typeof d=="number"?d:Number(d);return!Number.isNaN(m)&&m<i.lt}if("regex"in i){const m=c??t;let p=m.get(i.regex);if(p===void 0){try{p=new RegExp(i.regex)}catch{p=null}m.set(i.regex,p)}return p!==null&&typeof d=="string"&&p.test(d)}return!1}function s(d){return d!=null&&Object.keys(d).length>0}function a(d,i,c){return Object.entries(i).every(([m,p])=>r(d[m],p,c?.regexCache))}},"./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/messageType.js"(u,o,e){"use strict";e.d(o,{G:()=>t});var t=(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))(t||{})},"./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"(u,o,e){"use strict";e.d(o,{V:()=>t});class t{__TYPE__="Proxy";id;objectType;constructor(s,a){this.id=s,this.objectType=a}}const n=r=>r?.constructor?.name==="Proxy"||r?.constructor?.name==="ScriptingObjectProxy"||r?.__TYPE__==="Proxy";e.d(o,["h",0,n])},"./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/remoting.js"(u,o,e){"use strict";e.d(o,{K:()=>i});var t=e("./node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js");const n="elli:remoting",r="elli:remoting:response",s="elli:remoting:exception",a=({messageType:c,messageBody:m,requestId:p,onewayMsg:h=!1})=>({requestId:p??(h?null:(0,t.A)()),source:n,type:c,body:m}),d=c=>{const{targetWin:m,targetOrigin:p,messageType:h,messageBody:b}=c,v=a({messageType:h,messageBody:b});m.postMessage(v,p)};class i{#e;#t;#n=new Map;#o=new Map;#r=null;#i=null;#s=new Map;constructor(m,p){if(!m)throw new Error("logger is required");if(!p)throw new Error("correlationId is required");this.#e=p,this.#t=m}#c=()=>{this.#r=null;const m=Date.now(),p=[];let h=null;if(this.#o.forEach((b,v)=>{const{requestId:g,cancelTime:x}=b;x&&x<=m?(this.#t.debug(`Detected response timeout for requestId: ${g}...`),p.push(v),b.resolve(void 0)):x&&(h=h===null?x:Math.min(h,x))}),p.forEach(b=>{this.#o.delete(b)}),h!==null){const b=Math.max(h-Date.now(),0);this.#a(b)}};#a=m=>{this.#r===null&&(this.#r=window.setTimeout(this.#c,m))};#p=()=>{this.#r!==null&&(window.clearTimeout(this.#r),this.#r=null)};#l=m=>{const p=this.#o.get(m);return this.#t.debug(`serving requestId: ${m}`),this.#o.delete(m),p};#u=m=>{const{requestId:p}=m;this.#t.debug(`Response received for invocation requestId: ${p}`);const h=this.#l(p);return h?(h.resolve(m.body),!0):(this.#t.debug(`Received response to stale/invalid request with requestId: ${p}`),!1)};#h=m=>{this.#t.debug(`Exception received for invocation (requestId = ${m.requestId})`);const p=this.#l(m.requestId);return p?(p.reject(new Error(m.body)),!0):(this.#t.warn(`Received exception for stale/invalid request (requestId = ${m.requestId})`),!1)};#b=({sourceWin:m,sourceOrigin:p,message:h})=>{this.#t.debug(`Received message of type "${h.type}"`);const b=this.#n.get(h.type);return b?(b.forEach(v=>{this.#t.debug(`Invoking message handler ${v.name}`),v({sourceWin:m,sourceOrigin:p,requestId:h.requestId,type:h.type,body:h.body})}),!0):!1};#d=m=>{if(this.#s.size===0||!m.source)return!1;const p=this.#s.get(m.source);return!p||m?.data?.source!==n?!1:(this.#t.debug(`Remoting: Received message of type "${m.data.type}"`),m.data.type===r?this.#u(m.data):m.data.type===s?this.#h(m.data):this.#b({sourceWin:m.source,sourceOrigin:p,message:m.data}),!0)};addSender=m=>{const{origin:p,window:h}=m;if(!p)throw new Error("origin is required");if(!h)throw new Error("window is required");this.#s.set(h,p)};initialize=m=>{this.#i&&this.#i.removeEventListener("message",this.#d),m.addEventListener("message",this.#d),this.#i=m,this.#t.debug(`initialized remoting id: ${this.#e}`)};close=()=>{this.#i&&(this.#i.removeEventListener("message",this.#d),this.#i=null),this.#p(),this.#t.debug(`closed remoting id: ${this.#e}`)};invoke=m=>{const{targetWin:p,targetOrigin:h,messageType:b,messageBody:v,responseTimeoutMs:g}=m;return new Promise((x,j)=>{const S=a({messageType:b,messageBody:v});this.#o.set(S.requestId,{requestId:S.requestId,resolve:x,reject:j,cancelTime:g?Date.now()+g:null}),p.postMessage(S,h);const{requestId:P}=S;this.#t.debug(`Posted invocation message of type ${b} requestId: ${P||""}`),g&&(this.#t.debug(`scheduling timeout check for requestId: ${P||""} in ${g} ms`),this.#a(g))})};listen=m=>{const{messageType:p,callback:h}=m,b=this.#n.get(p)||[];b.push(h),this.#n.set(p,b)};unlisten=m=>{const{messageType:p,callback:h}=m,b=this.#n.get(p);if(!b)return;const v=b.indexOf(h);v!==-1&&b.splice(v,1)};send=m=>{const{targetWin:p,targetOrigin:h,messageType:b,messageBody:v}=m,g=a({messageType:b,messageBody:v,onewayMsg:!0});p.postMessage(g,h),this.#t.debug(`Posted one-way message of type "${b}"`)};removeSender=m=>{const{window:p}=m;p&&this.#s.delete(p)};respond=m=>{const{targetWin:p,targetOrigin:h,requestId:b,response:v}=m,g=a({messageType:r,messageBody:v,requestId:b});p.postMessage(g,h),this.#t.debug(`Response sent to caller for invocation requestId: ${b}`)};raiseException=m=>{const{targetWin:p,targetOrigin:h,requestId:b,ex:v}=m,g=v instanceof Error?v.message:v,x=a({messageType:s,messageBody:g,requestId:b});p.postMessage(x,h),this.#t.debug(`Exception sent to caller for invocation. requestId: ${b}`)}}e.d(o,["_",0,d])},"./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js"(u,o,e){"use strict";e.d(o,{P:()=>s});var t=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js");const n="function",r=(a,d)=>typeof a===n&&!!d&&!d.startsWith("_");class s{#e;#t="Object";constructor(d,i){this.#e=d,this.#t=i||this.#t}get id(){return this.#e}get objectType(){return this.#t}_toJSON=()=>{const d=[],i=[];return Object.keys(this).forEach(c=>{const m=this[c];(0,t.xH)(m)?i.push(c):r(m,c)&&d.push(c)}),{objectId:this.#e,objectType:this.#t,functions:d,events:i}};_dispose=()=>{};dispose=()=>{}}e.d(o,["Q",0,r])},"./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObjectManager.js"(u,o,e){"use strict";e.d(o,{qE:()=>s});const t="module";var n=null,r=null;class s{#e=d=>d.trim().toLowerCase();#t=new Map;#n=new Map;#o=d=>{const{so:i,guestId:c,onDuplicate:m="throw",securityContext:p}=d,h=this.#e(i.id),b={so:i,guestId:c,securityContext:p},v=this.#n.get(c);if(!v){this.#n.set(c,new Map([[h,b]]));return}if(v.has(h)){if(m==="ignore")return;throw new Error(`Scripting Object ${i.id} already exists for guest ${c}`)}v.set(h,b)};#r=({so:d})=>{if(d._dispose&&typeof d._dispose=="function")try{d._dispose()}catch{}};#i=({objectId:d,guestId:i})=>{if(d===t&&!i)for(const[,m]of this.#n){const p=m.get(d);if(p)return p}const c=i?this.#n.get(i):null;return c?c.get(d)??null:null};#s=({objectId:d,guestId:i}={})=>{if(i){if(!d){const m=this.#n.get(i);m&&m.forEach(this.#r),this.#n.delete(i);return}const c=this.#n.get(i);if(c){const m=c.get(d);m&&this.#r(m),c.delete(d)}}else d&&this.#n.forEach(c=>{const m=c.get(d);m&&this.#r(m),c.delete(d)})};addScriptingObject=(d,i)=>{const{guestId:c,onDuplicate:m="throw",securityContext:p}=i||{};if(!d?.id||!d?._toJSON)throw new Error("Object is not derived from ScriptingObject");const h=this.#e(d.id);if(h===t&&!c)throw new Error("Guest id is required to add Module scripting object");if(c){this.#o({so:d,...i,guestId:c,onDuplicate:m});return}if(this.#t.has(h)){if(m==="ignore")return;throw new Error(`Scripting Object ${d.id} already exists`)}this.#t.set(h,{so:d,guestId:c,securityContext:p})};getObject=(d,i)=>{const c=this.#e(d);let m=this.#i({objectId:c,guestId:i?.id});m=m??this.#t.get(c)??null;const{so:p}=m||{};return p||null};has=(d,i)=>this.getObject(d,i)!==null;listScriptingObjects=d=>{const i=new Set(this.#t.keys()),c=this.#n.get(d);if(c)for(const m of c.keys())i.add(m);return Array.from(i)};removeScriptingObject=(d,i)=>{const c=this.#e(d);if(i)this.#s({objectId:c,guestId:i});else{this.#s({objectId:c});const m=this.#t.get(c);m&&this.#r(m),this.#t.delete(c)}};removeAllScriptingObjects=d=>{d?this.#s({guestId:d}):(this.#t.forEach(this.#r),this.#t.clear())}}},"./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.1/node_modules/@elliemae/pui-analytics-so/dist/esm/analytics.js"(u,o,e){"use strict";e.d(o,{j:()=>h});var t=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js");const n=b=>typeof b!="number"||Number.isNaN(b)?0:b>=1?1:b<=0?0:b,r=b=>Math.round(n(b)*100/5)*5,s=b=>{const g=r(b),x=100,j=(P,w)=>w===0?P:j(w,P%w),S=j(g,x);return{numerator:g/S,denominator:x/S}};class a{#e=0;#t=0;#n=0;constructor(v){const g=s(v);this.#e=g.numerator,this.#t=g.denominator}shouldSample=()=>(this.#n+=1,this.#n<=this.#e?!0:(this.#n===this.#t&&(this.#n=0),!1))}class d{#e={};#t={};#n=new a(.25);constructor(v={}){Object.keys(v).forEach(g=>{this.#e[g]=new a(v[g]),this.#t[g]=v[g]})}shouldSample(v){return this.#e[v]?this.#e[v].shouldSample():this.#n.shouldSample()}setRatio(v,g){this.#e[v]=new a(g),this.#t[v]=g}deleteRatio(v){delete this.#e[v],delete this.#t[v]}getRatio(v){return this.#t[v]}getAllRatios(){return{...this.#t}}}var i=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.1/node_modules/@elliemae/pui-analytics-so/dist/esm/logrocket.js"),c=e("./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.1/node_modules/@elliemae/pui-analytics-so/dist/esm/baEventParameters.js");const m=Promise.resolve(),p=/^(?:GTM-|G-)[A-Z0-9-]+(?::\S*)?$/;class h extends t.P{#e;#t;constructor(v){super("analytics"),this.#e=v.logger,this.#t=new d(v.timingEventSamplingRatios??v.samplingRatios),this.#n()}#n=()=>{try{new PerformanceObserver(g=>{const x=g.getEntries();queueMicrotask(()=>{this.#o(x)})}).observe({type:"measure",buffered:!0})}catch(v){this.#e.error({message:"Error while recording performance",exception:v})}};#o=v=>{for(const g of v)if(g.entryType==="measure"&&!p.test(g.name)&&this.#t.shouldSample(g.name)){const x=g.detail??{},j=g.duration.toString(),S=new Date(performance.timeOrigin+g.startTime).toISOString();this.#e.info({message:"timing",event:g.name,duration:j,startTime:S,detail:x}),this.#r(g.name,{...x,duration:j,startTime:S})}};#r=(v,g)=>{const x=`timing:${v}`;window.gtmDataLayer=window.gtmDataLayer||[],window.gtmDataLayer.push({...(0,c.QS)(),...(0,c.np)(),...g,event:x})};setTimingEventSamplingRatio=v=>{Object.entries(v).forEach(([g,x])=>{this.#t.setRatio(g,x)})};getTimingEventSamplingRatio=v=>{const g={};return v.forEach(x=>{g[x]=this.#t.getRatio(x)}),g};deleteTimingEventSamplingRatio=v=>{v.forEach(g=>{this.#t.deleteRatio(g)})};getAllTimingEventSamplingRatios=()=>this.#t.getAllRatios();sendBAEvent=v=>{const{event:g,...x}=v??{};return g&&(window.gtmDataLayer=window.gtmDataLayer||[],window.gtmDataLayer.push({...(0,c.QS)(),...(0,c.np)(),...x,event:g}),(0,i.As)(g,x)),m};startTiming=(v,g)=>{if(!v)throw new Error("parameter mark is required");if(!g||!g?.appId||!g?.appUrl)throw new Error("parameter options is required");const x=performance.mark(v,{detail:g});return m.then(()=>({name:x?.name,startTime:x?.startTime}))};endTiming=(v,g)=>{if(!v)throw new Error("parameter start is required");if(!g||!g?.appId||!g?.appUrl)throw new Error("parameter options is required");const x=v?.name??v,j=performance.getEntriesByName(x,"mark")?.[0],S={startAppId:j?.detail?.appId??g.appId,startAppUrl:j?.detail?.appUrl??g.appUrl,endAppId:g.appId,endAppUrl:g.appUrl};return j?(typeof v=="string"?performance.measure(x,{detail:S,start:x}):performance.measure(x,{detail:S,start:v.startTime}),performance.clearMarks(x)):performance.measure(x,{detail:S,end:performance.now()}),m}}},"./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.1/node_modules/@elliemae/pui-analytics-so/dist/esm/baEventParameters.js"(u,o,e){"use strict";const t=(()=>{try{return window.parent.document,window.parent}catch{return window}})(),n=()=>({envName:sessionStorage.getItem("envName")||"localhost",appId:window.emui?.appId||"",instanceId:sessionStorage.getItem("instanceId")||"",userId:sessionStorage.getItem("userId")||""}),r=()=>{},s=()=>({productId:t?.emui?.appId??"",productPath:t.location.pathname,productUrl:t.location.href,productPageTitle:t.document.title,version:t?.emui?.version??"",appId:window?.emui?.appId??"",appPath:window.location.pathname,appUrl:window.location.href,appPageTitle:document.title});let a={};const d=()=>({...n(),...a}),i=c=>{a={...a,...c}};e.d(o,["QS",0,d,"nE",0,i,"np",0,s])},"./node_modules/.pnpm/@elliemae+pui-analytics-so@1.7.1/node_modules/@elliemae/pui-analytics-so/dist/esm/logrocket.js"(u,o,e){"use strict";const t=()=>window.emui?.logRocket,a=new Map,d=P=>{a.size<50||a.forEach((w,E)=>{P-w.windowStart>=1e3&&a.delete(E)})},i=2,c=(P,w)=>{let E=P;for(const A of Object.keys(w))E+=`|${A}:${String(w[A])}`;return E},m=20,p=[];let h="";const b=()=>{const P=t();if(!P)return;const w=sessionStorage.getItem("user");if(w)try{const E=JSON.parse(w),A=E.user_key;if(!A||A===h)return;const D=E.user_name||sessionStorage.getItem("userId")||"",T=E.encompass_instance_id||sessionStorage.getItem("instanceId")||"";P.identify(A,{name:D,instanceId:T}),h=A}catch{}},v=P=>{h=P},g=()=>{h="",p.length=0},x=(P,w,E)=>{const A=c(w,E),D=Date.now(),T=a.get(A);if(T&&D-T.windowStart<1e3){if(T.count>=3)return;T.count+=1}else d(D),a.set(A,{windowStart:D,count:1});const I=Object.keys(E).length;I>i&&console.warn(`[analytics] lrTrack "${w}" has ${I} properties. Keep it to ${i} or fewer to stay within LogRocket's 2,000 total-property session budget.`,E),P.track(w,E)},j=P=>{for(;p.length>0;){const w=p.shift();w&&x(P,w.event,w.eventEx)}},S=(P,w)=>{const E=t();if(!E){p.length<m&&p.push({event:P,eventEx:w});return}b(),j(E),x(E,P,w)};e.d(o,["As",0,S,"E3",0,g])},"./node_modules/.pnpm/@elliemae+pui-app-bridge@2.28.6_@elliemae+pui-diagnostics@3.12.4_@elliemae+pui-logrocket@1.3._2zw4df6uo7f2qtv5656zvnp6x4/node_modules/@elliemae/pui-app-bridge/dist/esm/appBridge.js"(u,o,e){"use strict";e.d(o,{o:()=>Rn});var t=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/throttle.js"),n=e("./node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js"),r=(Ce=>(Ce.Analytics="analytics",Ce.Application="application",Ce.Auth="auth",Ce.Form="form",Ce.Global="global",Ce.Http="http",Ce.Loan="loan",Ce.LoanV2="loanV2",Ce.MemStorage="memstorage",Ce.Module="module",Ce.Service="service",Ce.Session="session",Ce.Styling="styling",Ce.Transaction="transaction",Ce.TransactionTemplate="transactiontemplate",Ce.WebSocket="websocket",Ce))(r||{}),s=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObjectManager.js"),a=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"),d=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"),i=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js");class c{#e=new Map;#t=new WeakMap;#n;constructor(de){this.#n=de}#o=(de,Ee)=>{const Xe=new Promise(gn=>{setTimeout(()=>{gn()},Ee)});return Promise.race([de,Xe])};#r=de=>{const{eventName:Ee,scriptingObject:Xe,eventParams:gn,listeners:V}=de;V.forEach(ie=>{ie.criteria&&!(gn&&this.#s(gn,ie.criteria))||Promise.resolve(ie.callback({obj:Xe,eventName:Ee,eventParams:gn})).catch(le=>{this.#n?.warn(`Error in event listener for "${Ee}": ${le.message}`)})})};#i=async({eventId:de,eventName:Ee,scriptingObject:Xe,eventParams:gn,feedbackWaitTime:V})=>{const le=(this.#e.get(de)||[]).map(Qe=>Qe.criteria&&!(gn?this.#s(gn,Qe.criteria):!1)?Promise.resolve():this.#o(Qe.callback({obj:Xe,eventName:Ee,eventParams:gn}),V));return(await Promise.all(le)).flat(1/0).filter(Qe=>Qe!==void 0)};#s(de,Ee){return Object.entries(Ee).every(([Xe,gn])=>{const V=de[Xe];if("eq"in gn)return V===gn.eq;if("in"in gn)return Array.isArray(gn.in)&&gn.in.includes(V);if("includes"in gn)return Array.isArray(V)&&V.includes(gn.includes);if("gt"in gn){const ie=typeof V=="number"?V:Number(V);return!Number.isNaN(ie)&&ie>gn.gt}if("lt"in gn){const ie=typeof V=="number"?V:Number(V);return!Number.isNaN(ie)&&ie<gn.lt}if("regex"in gn){let ie=this.#t.get(gn);if(ie===void 0){try{ie=new RegExp(gn.regex)}catch{ie=null}this.#t.set(gn,ie)}return ie!==null&&typeof V=="string"&&ie.test(V)}return!1})}dispatchEvent=async(de,Ee)=>{const{event:{id:Xe,name:gn},eventParams:V,eventOptions:ie}=Ee,{timeout:le}=ie??{};if(!Xe)throw new Error("Event Id is required");const Te=this.#e.get(Xe)||[];return!le||le<=0?(this.#r({eventName:gn,scriptingObject:de,eventParams:V,listeners:Te}),Promise.resolve()):this.#i({eventId:Xe,eventName:gn,scriptingObject:de,eventParams:V,feedbackWaitTime:le})};subscribe=de=>{const{eventId:Ee,callback:Xe,criteria:gn}=de;if(!Ee)throw new Error("eventId is required");if(!Xe)throw new Error("Callback is required");const V=this.#e.get(Ee)||[],ie=(0,n.A)();return V.push({token:ie,criteria:gn,callback:Xe}),this.#e.set(Ee,V),ie};unsubscribe=de=>{const{eventId:Ee,token:Xe}=de;if(!Ee)throw new Error("eventId id is required");if(Xe){const gn=this.#e.get(Ee)||[],V=gn.findIndex(ie=>ie.token===Xe);V>-1&&(gn.splice(V,1),this.#e.set(Ee,gn))}else this.#e.delete(Ee)};unsubscribeAll=()=>{this.#e.clear()}}const m=e.p+"4cbbcfa9ded96b660559.html?resource",p=Ce=>Ce.replace(/([^:]\/)\/+/g,"$1"),h=Ce=>{const de=document.createElement("a");return de.href=Ce,de.href},b=Ce=>Ce?.replace?.(/\/?$/,"/"),v=(Ce,de)=>`${Ce.replace(/\/+$/,"")}/${de.replace(/^\/+/,"")}`,g=Ce=>/^(\/|https?:\/\/)/.test(Ce),x=(Ce,de)=>{const Ee=b(de);if(g(Ee)){const{origin:Xe}=new URL(Ce,window.location.href);return p(new URL(Ee,Xe).href)}return p(new URL(Ee,b(Ce)).href)},j=(Ce,de)=>p(new URL("manifest.json",x(Ce,de)).href),S=()=>window.navigator.userAgent.includes("jsdom"),P=Ce=>Ce.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),w=Ce=>{try{if(new URL(Ce,window.location.href).origin===window.location.origin)return Ce;const Ee=window.location.hostname==="localhost"?"latest":window.emui?.version?.match(/^(\d+\.\d+)/)?.[1]??"latest";return`${window.location.origin}/${Ee}/frame.html`}catch{return Ce}},E="pui-app-container-",A=Ce=>{const de=Ce.src??m.default??m,Ee=w(de);if(!Ce.queryParams)return Ee;const Xe=Ce.queryParams.replace(/[^a-zA-Z0-9&=_.~%+-]/g,"");return`${Ee}${Ee.includes("?")?"&":"?"}${Xe}`},D=({documentEle:Ce,hostUrl:de,manifestPath:Ee,guestId:Xe})=>{const gn=Ce.getElementById(E);gn&&(gn.id=`${gn.id}${Xe}`);const V=x(de,Ee);let ie=Ce.getElementsByTagName("base")?.[0];if(ie){ie.href=V;return}ie=Ce.createElement("base"),ie.href=V,Ce.getElementsByTagName("head")[0].appendChild(ie)},T=({id:Ce,instanceId:de,manifestPath:Ee,hostUrl:Xe,options:gn})=>new Promise((V,ie)=>{const{signal:le}=gn;if(le?.aborted){ie(new DOMException("iframe creation aborted","AbortError"));return}const Te=document.createElement("div");Te.setAttribute("style","display: flex;width: 100%;height: 100%;flex-direction: column;overflow: hidden;");const Qe=document.createElement("iframe");Qe.setAttribute("id",de),Qe.setAttribute("data-testid",Ce),Qe.setAttribute("title",gn.title),Qe.setAttribute("allowfullscreen","true"),Qe.setAttribute("allowtransparency","true"),gn.permissionPolicy&&Qe.setAttribute("allow",gn.permissionPolicy),gn.sandbox&&Qe.setAttribute("sandbox",gn.sandbox),Qe.setAttribute("style",gn.style??"flex-grow: 1;border: none;margin: 0;padding: 0;display: block;min-width: 100%;height: 100%;"),Qe.setAttribute("src",A(gn));const zn=1e4;let it=!1,Jn,$t;const rr=()=>{clearTimeout(Jn),le?.removeEventListener("abort",$t)},fr=()=>le?.aborted?(it||(it=!0,rr(),Te.remove(),ie(new DOMException("iframe creation aborted","AbortError"))),!0):!1;if($t=()=>{fr()},fr())return;le?.addEventListener("abort",$t),Jn=setTimeout(()=>{it||(it=!0,rr(),Te.remove(),ie(new Error(`iframe for ${Ce} failed to load within ${zn}ms`)))},zn),Qe.addEventListener("error",()=>{it||(it=!0,rr(),Te.remove(),ie(new Error(`iframe for ${Ce} failed to load`)))}),Qe.addEventListener("load",()=>{it||fr()||Qe.contentDocument&&(it=!0,rr(),D({documentEle:Qe.contentDocument,hostUrl:Xe,manifestPath:Ee,guestId:Ce}),V(Qe))}),Te.appendChild(Qe);const{containerId:Br}=gn;(document.getElementById(Br??"")??document.body).appendChild(Te)}),I=Ce=>document.getElementById(Ce),z={create:T,remove:Ce=>{const de=I(Ce);de&&de.parentElement?.remove()},get:I};var k=e("./node_modules/.pnpm/@elliemae+pui-theme@2.13.0/node_modules/@elliemae/pui-theme/dist/cjs/index.js");const F=()=>{try{return window.parent.document,window.parent}catch{return window}},L=()=>({width:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}),W=Ce=>Number(Ce.replace("px","")),H=()=>{const{width:Ce}=L(),{breakpoints:de}=(0,k.getDefaultTheme)();return Ce<=W(de.small)?"small":Ce<=W(de.medium)?"medium":"large"};var N=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/cloneDeep.js"),M=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/get.js"),B=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/set.js"),$=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/has.js"),X=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/merge.js");const G=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"}}}}');var Z=(Ce=>(Ce.DEVELOPMENT="development",Ce.PRODUCTION="production",Ce))(Z||{}),K=(Ce=>(Ce.SSF="ssf",Ce.APPSDK="appsdk",Ce))(K||{});class q{#e=G;#t;#n;constructor(de){this.#t=de?.version||"latest",this.#n=b(de?.baseUrl||"")}#o=de=>{const{activeEnv:Ee,env:Xe,...gn}=de,V=Xe[Ee]||{};this.#e=X({},gn,V)};get=(de="",Ee=null)=>N(M(this.#e,de,Ee));set=(de,Ee)=>{B(this.#e,de,Ee)};has=(de="")=>$(this.#e,de);setPreloadedConfig=de=>{this.#e=de};#r=()=>{if(!/(?:\/)(\d+\.\d+|latest)(?:\/?)?$/.test(this.#n)){const Ee=this.#t.match(/^(?:\d+\.\d+)*/g);return b(`${this.#n}${Ee?.[0]||"latest"}`)}return this.#n};load=async de=>{const Ee=de??`${this.#r()}app.config.json`;let Xe;try{Xe=await fetch(Ee)}catch(gn){if(!de&&this.#t!=="latest"){await this.load(`${this.#n}latest/app.config.json`);return}throw new Error("Failed to fetch app config",{cause:gn})}if(Xe.ok)try{const gn=await Xe.json();this.#o(gn)}catch(gn){if(!de&&this.#t!=="latest")await this.load(`${this.#n}latest/app.config.json`);else throw new Error("Failed to parse app config",{cause:gn})}else{if(!de&&this.#t!=="latest"){await this.load(`${this.#n}latest/app.config.json`);return}throw new Error("Failed to load app config")}}}var te=(Ce=>(Ce.USER="USER",Ce.PARTNER="PARTNER",Ce))(te||{}),fe=e("./node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");const oe="microFrontendApps",me=()=>fe.env.CI==="true",ne=Ce=>me()?!0:String(Ce).toLowerCase()===Z.PRODUCTION.toLowerCase(),re=Ce=>Ce?new URL(Ce).pathname:"",ge=Ce=>{const de=document.createElement("a");return de.href=Ce,de.href},ee=(Ce,de)=>{const Ee=de.match(/^(?:\d+\.\d+)*/g);return Ce.replace(/{SYSTEM_VERSION}/,Ee&&Ee[0]||"latest")},ve=Ce=>!Ce||!Ce.length?!1:Ce.every(de=>typeof de=="string"),We=(Ce,de)=>{const{mode:Ee=Z.PRODUCTION}=de;if(String(Ee).toLowerCase()!==Z.PRODUCTION.toLowerCase()&&String(Ee).toLowerCase()!==Z.DEVELOPMENT.toLowerCase())throw new Error(`invalid mode '${String(Ee)}' for ${Ce}`);const{production:Xe,development:gn,microappManager:V=K.APPSDK}=de;if(String(V).toLowerCase()===K.APPSDK.toLowerCase()){if(String(Ee).toLowerCase()===Z.PRODUCTION.toLowerCase()){if(!Xe)throw new Error(`microFrontendApps.${Ce} is missing production section in app.config.json`);if(!ve(Xe.files))throw new Error("invalid value for production.files")}if(String(Ee).toLowerCase()===Z.DEVELOPMENT.toLowerCase()){if(!gn)throw new Error(`microFrontendApps.${Ce} is missing development section in app.config.json`);if(!ve(gn.files))throw new Error("invalid value for development.files")}}},qe=({id:Ce,config:de,version:Ee="latest"})=>{const{mode:Xe=Z.PRODUCTION,production:gn,development:V,...ie}=de,le=ne(Xe)?gn:V,Te=X({id:Ce},{name:Ce,mode:Z.PRODUCTION,manifestPath:"./{SYSTEM_VERSION}/",securityContext:te.USER,isJsModule:!0},ie,{mode:Xe},le);return Te.hostUrl=b(ge(Te.hostUrl||"")),Te.homeRoute=b(Te.homeRoute)||re(Te.hostUrl),Te.manifestPath=b(ee(Te.manifestPath,Ee)),Te};class nn{#e=[];init=({version:de,appConfig:Ee})=>{const Xe=Ee.get(oe);Xe&&(this.#e=Object.keys(Xe).map(gn=>(We(gn,Xe[gn]),qe({id:gn,config:Xe[gn],version:de}))))};getConfigById=de=>this.#e.find(Ee=>Ee.id===de)}const ye=/^https?:\/\//i,ce=(Ce,de)=>{if(!ye.test(Ce))return!1;try{return!Ce.startsWith(new URL(de).href)}catch{return!0}},Pe=(Ce,de)=>{const Ee=[],Xe=[];return Ce.forEach(gn=>{ce(gn.href,de)?Ee.push(gn):Xe.push(gn)}),{external:Ee,local:Xe}},Be=Ce=>{if(!Ce)return;const de=Ce,Ee=de.emui?._ASSET_PATH;Ee&&(de.__webpack_public_path__=new URL("../",Ee).href)},De=(Ce,de)=>{if(!(!Ce||!de))try{const Ee=Ce;Ee.__webpack_public_path__=new URL("./",de).href}catch{}},Ye=(Ce,de)=>{if(!Ce)return;if(Ce.emui?._ASSET_PATH){Be(Ce);return}De(Ce,de)},He="ice-script-";class sn{#e;constructor(de){this.#e=de}#t=({href:de,isESMModule:Ee=!0,documentEle:Xe})=>{const gn=Xe.createElement("link");gn.rel=Ee?"modulepreload":"preload",gn.href=de,gn.crossOrigin="anonymous",Ee||(gn.as="script"),Xe.head.appendChild(gn)};#n=({id:de,href:Ee,documentEle:Xe,isESMModule:gn=!0})=>new Promise((V,ie)=>{const le=Xe.createElement("script");le.id=de,le.src=p(Ee),le.crossOrigin="anonymous",le.nonce="__CSP_NONCE__",!S()&&gn?le.type="module":le.async=!1,le.onload=V.bind(null,le.id),le.onerror=Te=>{this.#e.error({message:`Error loading script ${le.src}`,exception:new Error(Te)}),ie(new Error(`Unable to load script ${le.src}`,{cause:new Error(Te)}))},Xe.head.appendChild(le)});#o=async(de,Ee,Xe)=>{if(de.length===0)return;const gn=de.map(({id:V,href:ie})=>this.#n({id:V,href:ie,documentEle:Ee,isESMModule:Xe}));await Promise.all(gn)};#r=async({scripts:de,documentEle:Ee,isESMModule:Xe,hostUrl:gn})=>{if(de.length===0)return;if(!gn){await this.#o(de,Ee,Xe);return}const{external:V,local:ie}=Pe(de,gn);await this.#o(V,Ee,Xe),Ye(Ee.defaultView,gn),await this.#o(ie,Ee,Xe)};load=async(de,Ee)=>{const{documentEle:Xe,isESMModule:gn}=Ee,V=/^https?:\/\//i,ie=de.map((le,Te)=>{const Qe=`${He}${Ee.name.toLowerCase()}-${Te}`,zn=V.test(le)?le:new URL(le,Ee.hostUrl).href;return this.#t({href:zn,documentEle:Xe,isESMModule:gn}),{id:Qe,href:zn}});return await this.#r({scripts:ie,documentEle:Xe,isESMModule:gn,hostUrl:Ee.hostUrl}),Ye(Xe.defaultView,Ee.hostUrl),ie.map(le=>le.id)};remove=(de="",Ee=document)=>new Promise(Xe=>{const gn=Ee.getElementById(de);if(!gn){this.#e.warn(`script with id ${de} not found`),Xe();return}gn.remove(),Xe()});removeDynamicImportedScripts=(de,Ee)=>{const Xe=new RegExp(P(de),"i"),gn=Ee.getElementsByTagName("script");for(let V=gn.length-1;V>=0;V-=1){const ie=gn[V],{src:le}=ie;Xe.test(le)&&ie.remove()}};removePrefetchLinks=(de,Ee)=>{const Xe=new RegExp(P(de),"i"),gn=Ee.querySelectorAll('[rel="prefetch"]');for(let V=gn.length-1;V>=0;V-=1){const ie=gn[V],{href:le}=ie;Xe.test(le)&&ie.remove()}}}const tn="ice-style-";class vn{#e;constructor(de){this.#e=de}#t=({id:de,href:Ee,documentEle:Xe})=>new Promise((gn,V)=>{const ie=Xe.createElement("link");ie.id=de,ie.nonce="__CSP_NONCE__",ie.rel="stylesheet",ie.href=p(Ee),ie.onload=gn.bind(null,ie.id),ie.onerror=le=>{this.#e.error({message:`Error loading stylesheet ${ie.href}`,exception:new Error(le)}),V(new Error(`Unable to load stylesheet ${ie.href}`,{cause:new Error(le)}))},Xe.head.appendChild(ie)});load=async(de,Ee)=>{const Xe=[],gn=de.map((V,ie)=>{const le=new URL(V,Ee.hostUrl),Te=`${tn}${Ee.name.toLowerCase()}-${ie}`;return Xe.push(Te),this.#t({id:Te,href:le.href,documentEle:Ee.documentEle})});return await Promise.all(gn),Xe};remove=(de="",Ee=document)=>new Promise(Xe=>{const gn=Ee.getElementById(de);if(!gn){this.#e.warn(`style with id ${de} not found`),Xe();return}gn.remove(),Xe()});removeDynamicImportedStyles=(de,Ee)=>{const Xe=new RegExp(P(de),"i"),gn=Ee.querySelectorAll('[rel="stylesheet"]');for(let V=gn.length-1;V>=0;V-=1){const ie=gn[V],{href:le}=ie;Xe.test(le)&&ie.remove()}}}const Le=Ce=>Ce.replace(/\/\d+\.\d+/,"/latest"),ue=Ce=>{let de;try{de=new URL(Ce)}catch{return!1}return de.protocol==="http:"||de.protocol==="https:"},xe=new Map,Ie={get:async({hostUrl:Ce,manifestPath:de})=>{const Ee=j(Ce,de),Xe=xe.get(Ee);if(Xe)return Xe;const gn=async V=>{const ie=await fetch(V);if(!ie.ok)throw new Error(`unable to get manifest ${V}`);if(!(ie.headers?.get?.("content-type")??"").includes("application/json"))throw new Error(`manifest ${V} is not a valid json`);const Te=await ie.json();return xe.set(V,Te),Te};try{return await gn(Ee)}catch(V){const ie=Le(de);if(de!==ie){const le=j(Ce,ie);return await gn(le)}throw V}},getFullFileNameofAssets:(Ce,de=[])=>de.reduce((Ee,Xe)=>{const gn=Ce[Xe];if(gn)Ee.push(gn);else if(ue(Xe))Ee.push(Xe);else throw new Error(`unable to locate ${Xe} in manifest`);return Ee},[]),clearCache:()=>xe.clear()};class ze{#e;#t;#n;#o;#r;constructor(de){this.#t=de.guest,this.#e=de.containerId,this.#n=de?.version||"latest",this.#o=de.soManager,this.#r=de.eventManager}get version(){return this.#n}getObject=de=>{try{const Ee=this.#o.getObject(de,this.#t);if(!Ee)return Promise.resolve(null);const Xe=new d.V(Ee.id,Ee.objectType);return Object.keys(Ee).forEach(gn=>{const V=Ee[gn];V instanceof a.Jh?Object.defineProperty(Xe,gn,{value:new a.Jh({name:gn,objectId:Ee.id}),enumerable:!0}):(0,i.Q)(V,gn)&&Object.defineProperty(Xe,gn,{value:(...ie)=>{const le=Xe[gn]?.callContext?.callChain;return Object.defineProperty(V,"callContext",{value:{guest:this.#t,...le?.length?{callChain:le}:{}},configurable:!0,enumerable:!0,writable:!0}),Ee[gn](...ie)},enumerable:!0})}),Promise.resolve(Xe)}catch(Ee){return Promise.reject(Ee)}};setAppWindowSize=de=>{if(!this.#e)return;const{size:Ee}=de,Xe=document.getElementById(this.#e);Xe&&(Xe.style.height=`${Ee.height}px`,Xe.style.width=`${Ee.width}px`)};subscribe=de=>this.#r.subscribe(de);unsubscribe=de=>{this.#r.unsubscribe(de)}}class be{constructor(){window.emui||(window.emui={}),window.emui.registerApp=this.#e}#e=({appId:de,app:Ee})=>{if(!de)throw new Error("appId is required");if(de==="__proto__"||de==="constructor"||de==="prototype")throw new Error(`Invalid appId: ${de}`);if(!Ee?.uuid)throw new Error("application uuid is required");if(window.emui[de]=window.emui[de]||[],Array.isArray(window.emui[de])){const Xe=window.emui[de].findIndex(gn=>gn.uuid===Ee.uuid);Xe>-1?window.emui[de][Xe]=Ee:window.emui[de].push(Ee)}else{let Xe=window.emui[de];Xe?.uuid===Ee.uuid?(Xe={...Xe,...Ee},window.emui[de]=[Xe]):typeof Xe.init>"u"?window.emui[de]=[{...Xe,...Ee}]:window.emui[de]=[window.emui[de],Ee]}};get=({id:de,instanceId:Ee})=>{const Xe=window.emui?.[de];return Array.isArray(Xe)?Xe.find(V=>V.uuid===Ee)??null:Xe?.uuid===Ee?Xe:null};add=({id:de,instanceId:Ee,documentEle:Xe})=>{if(!Ee)throw new Error(`instanceId (uuid) is required to register application ${de}`);const gn={uuid:Ee,init:null,mount:null,unmount:null},V=window.emui[de];V?Array.isArray(V)?V.push(gn):window.emui[de]=[V,gn]:window.emui[de]=[gn],Xe.defaultView&&(Xe.defaultView.emui=Xe.defaultView.emui??{},Xe.defaultView.emui.uuid=Ee)};delete=({id:de,instanceId:Ee})=>{if(Array.isArray(window.emui[de])){const Xe=window.emui[de].findIndex(gn=>gn.uuid===Ee);Xe>-1&&window.emui[de].splice(Xe,1),window.emui[de].length===0&&delete window.emui[de]}else delete window.emui[de]}}const un=12e4,Ne=["click","scroll","keypress","touchstart"],yn=/\.css$/,Cn=Ce=>yn.test(Ce);class Rn{#e;#t;#n;#o;#r;#i=new nn;#s;#c;#a=new Map;#p=new Map;#l=new be;#u=!0;constructor(de){const{logger:Ee}=de;if(!Ee)throw new Error("logger is required");this.#e=de.logger,this.#t=de.version,this.#u=de.extendSession??!0,this.#r=new q({version:de.version,baseUrl:de.appConfigBaseUrl}),this.#n=new sn(Ee),this.#o=new vn(Ee),this.#s=new s.qE,this.#c=new c(this.#e)}#h(de){return typeof de=="function"}#b=de=>de instanceof a.b3||typeof de?.subscribe=="function";#d=(de,Ee)=>`Application ${de} with instance id ${Ee} is not found. Most probably the appId property of app.config.json is not set to ${de}`;#j=(de,Ee=document)=>{const{elementIds:Xe}=this.#a.get(de)||{};Xe&&Xe.forEach(gn=>{const V=Ee.getElementById(gn);V&&V.remove()})};#g=({id:de,instanceId:Ee,documentEle:Xe,elementIds:gn,microFEHost:V})=>{const ie=this.#l.get({id:de,instanceId:Ee});if(!ie)throw new Error(this.#d(de,Ee));this.#a.set(Ee,{id:de,instanceId:Ee,elementIds:gn,guest:{guestWindow:Xe?.defaultView,...ie},microFEHost:V})};#f=async({id:de,instanceId:Ee,containerId:Xe,hostUrl:gn,manifestPath:V,homeRoute:ie,initialRoute:le,history:Te,theme:Qe,microFEHost:zn})=>{const it=this.#l.get({id:de,instanceId:Ee});if(!it)throw new Error(`Application ${de} with instance id ${Ee} is not found. Most probably the appId property of app.config.json is not set to ${de}`);if(!it.init||typeof it.init!="function")throw new Error(`Application ${de} with instance id ${Ee} doesn't expose init method`);const Jn=zn??new ze({guest:{id:de},version:this.#t,containerId:Xe,logger:this.#e,soManager:this.#s,eventManager:this.#c});return it.init({host:Jn,hostUrl:gn,manifestPath:V,homeRoute:ie,initialRoute:le,prevState:null,history:Te,theme:Qe,hostBreakpoint:H(),hostViewportSize:L(),logger:this.#e})};#m=async de=>{try{const{id:Ee,instanceId:Xe,files:gn,name:V,hostUrl:ie,documentEle:le,isJsModule:Te}=de;this.#e.debug(`Application ${Ee} with instance id ${Xe} is loading...`);let Qe=gn;const zn=de.manifest??await Ie.get(de);Qe=Ie.getFullFileNameofAssets(zn,gn);const it=Qe.filter(Br=>Cn(Br)),Jn=Qe.filter(Br=>!Cn(Br)),$t={name:V,hostUrl:ie,documentEle:le,isESMModule:Te},[rr,fr]=await Promise.all([this.#o.load(it,$t),this.#n.load(Jn,$t)]);this.#g({id:Ee,instanceId:Xe,documentEle:le,elementIds:[...rr,...fr],microFEHost:de.microFEHost}),de.selfInitialize||await this.#f(de),this.#e.audit(`Application ${Ee} with instance id ${Xe} loaded`)}catch(Ee){const Xe=`Application load failed. Unable to load one or more resources for ${de.id} with instance id ${de.instanceId}. ${Ee.message}`;throw this.#e.error({message:Xe,appId:de.id,exception:Ee}),new Error(Xe)}};#x=({id:de,instanceId:Ee,hostUrl:Xe,documentEle:gn})=>{this.#e.debug(`Application ${de} with instance id ${Ee} unloading...`),this.#l.get({id:de,instanceId:Ee})&&(this.#j(Ee,gn),this.#n.removeDynamicImportedScripts(Xe,gn),this.#n.removePrefetchLinks(Xe,gn),this.#o.removeDynamicImportedStyles(Xe,gn),this.#l.delete({id:de,instanceId:Ee}),this.#e.audit(`Application ${de} with instance id ${Ee} unloaded`))};#w=async({id:de,instanceId:Ee})=>{const Xe=this.#l.get({id:de,instanceId:Ee});if(!Xe?.mount||typeof Xe?.mount!="function")throw new Error(`Application ${de} with instance id ${Ee} doesn't expose mount method`);return Xe.mount({containerId:`${E}${de}`,hostBreakpoint:H(),hostViewportSize:L()})};#S=({id:de,instanceId:Ee})=>{const Xe=this.#l.get({id:de,instanceId:Ee});if(!Xe?.unmount)return null;if(typeof Xe.unmount!="function")throw new Error(`Application ${de} with instance id ${Ee} doesn't expose unmount method`);return Xe.unmount({containerId:`${E}${de}`})};#E=({id:de,instanceId:Ee})=>{if(this.#u)try{const Xe=this.#s.getObject(r.Application);if(!Xe){this.#e.warn({message:`Application scripting object not available for ${de} to manage session`});return}const gn=this.#a.get(Ee);if(!gn)return;gn.keepAlive=t(async()=>{try{await Xe.keepSessionAlive()}catch(ie){this.#e.error(`Error keeping session alive. ${ie.message}`)}},un);const V=z.get(Ee);Ne.forEach(ie=>{V?.contentDocument?.addEventListener(ie,gn.keepAlive)})}catch(Xe){this.#e.warn({message:`Application scripting object not available for ${de} to manage session`,exception:Xe})}};#y=(de,Ee)=>{const V=this.#s.getObject(r.Module,{id:de})?._setUnloadHandler;typeof V=="function"&&V(()=>this.closeApp(Ee))};#v=async de=>{const Ee=this.#s.getObject(r.Module,{id:de});if(!Ee)return!0;try{const Xe=await this.#c.dispatchEvent(Ee,{event:{id:"module.unloading",name:"unloading"},eventParams:{moduleId:de},eventOptions:{timeout:1e3}});if(Array.isArray(Xe)&&Xe.some(gn=>gn===!1))return this.#e.info(`Unload denied by guest ${de} via module.unloading event`),!1}catch(Xe){this.#e.warn({message:`Error dispatching module.unloading event for ${de}`,exception:Xe})}return!0};#_=de=>{if(!this.#u||!de)return;const{keepAlive:Ee,instanceId:Xe}=de;if(Ee){const V=z.get(Xe)?.contentDocument;V&&Ne.forEach(ie=>{V.removeEventListener(ie,Ee)}),de.keepAlive?.cancel()}};addScriptingObject=(de,Ee)=>{if((0,d.h)(de)){const Xe=this.cloneScriptingObject(de);this.#s.addScriptingObject(Xe,Ee)}else this.#s.addScriptingObject(de,Ee)};cloneScriptingObject=de=>{if(!de)throw new Error("proxy is required");const Ee=new i.P(de.id,de.objectType);let Xe=[];return Object.keys(de).forEach(gn=>{const V=de[gn];if(this.#b(V)){const ie=new a.Jh({name:V.name||gn,objectId:Ee.id});Object.defineProperty(Ee,gn,{value:ie,enumerable:!0});const le=({eventParams:Qe,eventOptions:zn})=>this.dispatchEvent({event:ie,eventParams:Qe,eventOptions:zn}),Te=V.subscribe(le);Xe.push(()=>{V.unsubscribe(Te)})}else if(this.#h(V)&&(Object.defineProperty(Ee,gn,{value:async(...ie)=>{const le=Ee[gn]?.callContext;if(le?.guest){const Qe=le.callChain??[],zn=le.guest.id,it=this.#p.get(zn),Jn={id:zn};it&&(Jn.metadata=it),Object.defineProperty(V,"callContext",{value:{callChain:[...Qe,Jn]},configurable:!0,enumerable:!0,writable:!0})}const Te=await V(...ie);return(0,d.h)(Te)?this.cloneScriptingObject(Te):Te},enumerable:!0}),gn==="dispose")){const ie=Ee.dispose;Object.defineProperty(Ee,gn,{value:()=>(Ee._dispose(),ie.apply(Ee)),enumerable:!0})}}),Ee._dispose=()=>{Xe.forEach(gn=>{gn?.()}),Xe=[]},Ee};closeAllApps=async()=>{await Promise.all([...this.#a.keys()].map(this.closeApp))};closeApp=async de=>{if(!de)throw new Error("instanceId is required");const Ee=this.#a.get(de);if(!Ee){this.#e.warn(`Application with instance id ${de} is not found`);return}const{id:Xe}=Ee;if(!await this.#v(Xe))return;const gn=this.#i.getConfigById(Xe);if(!gn){this.#e.warn(`Configuration for application ${Xe} is not found`),this.#a.delete(de),z.remove(de);return}const{hostUrl:V}=gn;try{this.#_(Ee),await this.#S({id:Xe,instanceId:de})}finally{const ie=z.get(de);ie?.contentDocument&&this.#x({id:Xe,instanceId:de,hostUrl:V,documentEle:ie.contentDocument}),this.#a.delete(de),this.#p.delete(Xe),z.remove(de)}};dispatchEvent=async de=>{const{event:{id:Ee,name:Xe},eventOptions:gn={}}=de,{guestId:V}=gn;if(!Ee)throw new Error("Event Id is required");const ie=Ee.split(".")?.[0],le=V?this.#s.getObject(ie,{id:V}):this.#s.getObject(ie);return le?this.#c.dispatchEvent(le,de):(this.#e.warn(`Attempt to dispatch event ${Xe} on unknown object ${ie}`),Promise.resolve())};getApp=de=>this.#a.get(de)?.guest;getApps=()=>[...this.#a.values()].map(de=>de.guest);init=async de=>{de?this.#r.setPreloadedConfig(de):await this.#r.load(),this.#i.init({version:this.#t,appConfig:this.#r}),this.#A()};#A=()=>{const de=this.#r.get("microFrontendApps")??{},Ee=new Set;Object.keys(de).forEach(Xe=>{const gn=this.#i.getConfigById(Xe);if(gn?.hostUrl)try{Ee.add(new URL(gn.hostUrl).origin)}catch{}}),Ee.forEach(Xe=>{const gn=document.createElement("link");gn.rel="preconnect",gn.href=Xe,gn.crossOrigin="anonymous",document.head.appendChild(gn)})};mountApp=async de=>{if(!de)throw new Error("instanceId is required");const{id:Ee}=this.#a.get(de)||{};if(!Ee)throw new Error(`Application with instance id ${de} is not found`);const Xe=this.#i.getConfigById(Ee);if(!Xe)throw new Error(`Application with id ${Ee} is not found`);await this.#w({...Xe,instanceId:de})};#O=(de,Ee,Xe)=>{const gn=new ze({guest:{id:Xe.id},version:this.#t,containerId:Xe.containerId,logger:this.#e,soManager:this.#s,eventManager:this.#c}),V=de.defaultView;V&&(V.emui=V.emui??{},V.emui.__host=gn,V.emui.getHost=()=>V.emui?.__host??null);const ie=de.createElement("link");return ie.rel="preconnect",ie.href=Ee.hostUrl,ie.crossOrigin="anonymous",de.head.appendChild(ie),gn};openApp=async de=>{const{id:Ee,frameOptions:Xe,history:gn,theme:V,homeRoute:ie,initialRoute:le,metadata:Te,selfInitialize:Qe}=de,zn=(0,n.A)();Te&&this.#p.set(Ee,Te);const it=this.#i.getConfigById(Ee);if(!it)throw new Error(`Application ${Ee} is not found in app config`);const Jn=Ie.get(it);Jn.catch(()=>{});const $t=await z.create({id:Ee,instanceId:zn,manifestPath:it.manifestPath,hostUrl:it.hostUrl,options:{title:it.name,...Xe}});if(!$t?.contentDocument)throw new Error("unable to create iframe for the microapp");try{this.#l.add({id:Ee,instanceId:zn,documentEle:$t.contentDocument});const rr=this.#O($t.contentDocument,it,{id:Ee,containerId:Xe?.containerId}),fr=await Jn;return await this.#m({instanceId:zn,history:gn,theme:V,documentEle:$t.contentDocument,containerId:Xe?.containerId,...it,homeRoute:ie??it.homeRoute,initialRoute:le,microFEHost:rr,selfInitialize:Qe,manifest:fr}),Qe||await this.#w({instanceId:zn,...it}),this.#E({id:Ee,instanceId:zn}),this.#y(Ee,zn),zn}catch(rr){throw this.#x({id:Ee,instanceId:zn,hostUrl:it.hostUrl,documentEle:$t.contentDocument}),z.remove(zn),rr}};removeAllEventSubscriptions=()=>{this.#c.unsubscribeAll()};removeAllScriptingObjects=de=>{this.#s.removeAllScriptingObjects(de)};removeScriptingObject=(de,Ee)=>{this.#s.removeScriptingObject(de,Ee)};warmUp=de=>{const Ee=this.#i.getConfigById(de);Ee&&Ie.get(Ee).catch(()=>{})};unmountApp=async de=>{if(!de)throw new Error("instanceId is required");const{id:Ee}=this.#a.get(de)||{};if(!Ee)throw new Error(`Application with instance id ${de} is not found`);const Xe=this.#i.getConfigById(Ee);if(!Xe)throw new Error(`Application with id ${Ee} is not found`);await this.#S({...Xe,instanceId:de})}}},"./node_modules/.pnpm/@elliemae+ssf-guest@2.28.6_@elliemae+pui-logrocket@1.3.1/node_modules/@elliemae/ssf-guest/dist/esm/guest.js"(u,o,e){"use strict";e.d(o,{p:()=>W});var t=e("./node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-browser/v4.js"),n=e("./node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/throttle.js"),r=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/remoting.js"),s=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/messageType.js");class a{#e;#t;#n;#o=new Map;static DEFAULT_THROTTLE_MS=1e4;constructor(N){this.#e=N.logger,this.#t=N.enabled??!0,this.#n=N.throttleMs??a.DEFAULT_THROTTLE_MS}get enabled(){return this.#t}log(N,M){if(!this.#t){this.#e.debug(M);return}if(this.#n>0){const B=performance.now(),$=this.#o.get(N);if($!==void 0&&B-$<this.#n){this.#e.debug(M);return}this.#o.set(N,B)}this.#e.audit(M)}}var d=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"),i=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"),c=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/filterCriteria.js"),m=e("@elliemae/pui-diagnostics");const p=()=>{const{parent:H}=window;try{return H?.location?.href}catch{return null}},h=H=>{if(!H||H==="about:blank")return"*";try{const{origin:N}=new URL(H);return N==="null"||!N?"*":N}catch{try{const{origin:N}=new URL(H,document.baseURI);return N==="null"||!N?"*":N}catch{return"*"}}},b=()=>window.self!==window.parent,v=(H,N)=>{const M=N||document.body,B=document.defaultView?.getComputedStyle?.(M,null),$=B?B[H]:"0";return parseInt($,10)},g="elli:remoting",x=3e4,j=()=>{try{return new URLSearchParams(window.location.hash.slice(1)).get("hs")}catch{return null}},S=(H,N)=>!!(window.opener&&H.source===window.opener||N&&H.data?.handshakeToken===N),P=()=>new Promise((H,N)=>{if(b())H({origin:h(document.referrer||p()),window:window.parent});else{const M=window,B=j();let $;const X=G=>{if(S(G,B)){const{source:Z,type:K}=G.data||{};if(Z===g&&K===s.G.HandShake){const{origin:q}=G,te=G.source;clearTimeout($),(0,r._)({targetWin:te,targetOrigin:q,messageType:s.G.HandShakeAck,messageBody:{}}),M.removeEventListener("message",X),H({origin:q,window:te})}}};$=setTimeout(()=>{M.removeEventListener("message",X),N(new Error(`Host handshake timed out after ${x}ms`))},x),M.addEventListener("message",X)}});let w=!1;const E=H=>{w=H},A=(H=null)=>{let N=H;const M=()=>{if(!N&&(N=window.ice?.guest?.SSFGuest?new window.ice.guest.SSFGuest:null,!N))throw new Error("Guest definition not found");return N};window.elli=window.elli??{},window.elli.script={guest:{create:(B,$)=>M().addScript(B,$)},connect:B=>(w||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);"),M().connect(B)),getObject:B=>(w||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);"),M().getObject(B)),setLogLevel:B=>(w||console.warn("elli.script.setLogLevel is deprecated. Please use setLogLevel method of SSFGuest class instead, const guest = new ice.guest.SSFGuest(); guest.setLogLevel(level);"),M().setLogLevel(B)),subscribe:(B,$,X,G)=>(w||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); });"),M().subscribe({eventId:`${B}.${$}`,callback:Z=>X(Z?.obj,Z?.eventParams,Z?.eventOptions),criteria:G?.criteria})),unsubscribe:(B,$,X)=>(w||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 });"),M().unsubscribe({eventId:`${B}.${$}`,token:X}))}};try{A()}catch{}var D=null;const T=12e4,I=2e3,U={eventFeedback:!0},z=()=>{const{document:H}=window,N=H.body,M=H.documentElement,$={height:N.offsetHeight+v("marginTop")+v("marginBottom"),width:Math.max(N.scrollWidth,M.scrollWidth)};(0,r._)({targetWin:window.parent,targetOrigin:h(H.referrer||p()),messageType:s.G.GuestResize,messageBody:$}),window.removeEventListener("load",z)};b()&&window.addEventListener("load",z);const k={"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"},F=["click","scroll","keypress","touchstart"],L=()=>{const H=document.currentScript?.src||"file:///opt/jenkins/workspace/UIPlatform_app-sdk_master/584/node_modules/.pnpm/@elliemae+ssf-guest@2.28.6_@elliemae+pui-logrocket@1.3.1/node_modules/@elliemae/ssf-guest/dist/esm/guest.js",N=H?new URL(H).hostname:"localhost";return k[N]||k["cdn.mortgagetech.q1.ice.com"]};class W{#e;#t;#n;#o=!1;#r=null;#i=!1;#s=new Map;#c=null;#a=null;#p=null;#l=null;#u=null;#h=null;#b=new Map;#d(){if(!this.#u||!this.#l)throw new Error("Guest is not connected to a host. Call connect() first.");return{hostWindow:this.#u,hostOrigin:this.#l}}#j=!1;#g=null;#f=null;#m=null;#x=!0;#w=T;#S;#E=null;#y;constructor(N){const{console:M=!1,url:B=window.__ICE__?.diagnosticsUrl||L(),index:$="ssf-guest-v2",team:X="ICE",appName:G="SSF Guest V2 Application"}=N?.logger??{};this.#S=N?.logger,this.#j=N?.usesDevConnectAPI??!1,this.#x=N?.keepAlive??!0,this.#w=N?.keepAliveInterval??T;const Z=M?(0,m.Console)():(0,m.http)(B);this.#t=N?.appLogger??(0,m.logger)({transport:Z,index:$,team:X,appName:G}),this.#y=new a({logger:this.#t,enabled:N?.auditOperations,throttleMs:N?.auditThrottleMs}),(0,m.webvitals)(this.#t),(0,m.logUnhandledErrors)(this.#t),this.#e=(0,t.A)(),this.#n=new r.K(this.#t,this.#e),A(this),this.#t.audit({message:"Guest created",guestUrl:window.location.href,correlationId:this.#e})}#v=()=>({guestId:this.#c,guestTitle:this.#a,guestUrl:this.#p});#_=N=>{if(!N||!N.objectId)throw this.#t.error("Deserialization of scripting object failed. Object does not have an Object ID."),new Error("Cannot deserialize object JSON into proxy.");const M=new d.V(N.objectId,N.objectType);return N.functions&&N.functions.forEach(B=>{Object.defineProperty(M,B,{value:async(...$)=>{const G=M[B]?.callContext?.callChain;return this.#A({objectId:M.id,functionName:B,functionParams:[...$],callerChain:G})},enumerable:!0})}),N.events&&N.events.forEach(B=>{Object.defineProperty(M,B,{value:new i.b3({objectId:M.id,name:B,eventSrc:this}),enumerable:!0})}),this.#t.debug(`Created guest proxy for scripting object (id = "${M.id}")`),M};#A=async({objectId:N,functionName:M,functionParams:B,callerChain:$})=>{this.#t.debug(`Invoking scripting object method ${N}.${M}()...`);const X=[];if(B)for(let te=0;te<B.length;te+=1){const fe=B[te];fe instanceof Promise&&X.push(fe.then(oe=>{B[te]=oe}))}await Promise.all(X);const{hostWindow:G,hostOrigin:Z}=this.#d(),K=await this.#n.invoke({targetWin:G,targetOrigin:Z,messageType:s.G.ObjectInvoke,messageBody:{objectId:N,functionName:M,functionParams:B,...$?.length?{callerChain:$}:{}}}),q=this.#C(K);return this.#y.log(`invoke:${N}.${M}`,{message:"Guest proxy invoked Scripting Object method",scriptingObject:N,scriptingMethod:M,...this.#v()}),q};#O(N,M){return(0,c.ts)(N,M,{regexCache:this.#b})}#C=N=>N?.type==="object"&&"object"in N?this.#_(N.object):N?.type==="value"?N.value:N;#T=({body:N})=>{N?.logLevel&&(this.#t.setLogLevel(N.logLevel),this.#t.debug(`Log level changed by host to ${N.logLevel}`)),this.#c=N?.guestId??null,this.#a=N?.guestTitle??null,this.#p=N?.guestUrl??null,this.#t.audit({message:"Received configuration from Host",...this.#v()})};#P=()=>{window.focus()};#D=async()=>{await this.close(),window.close()};#R=()=>{b()||(this.#h=setInterval(()=>{this.#u?.closed&&this.close().then(()=>{window.close()}).catch(()=>{})},1e3))};#I=async({sourceWin:N,sourceOrigin:M,requestId:B,body:$})=>{const X=this.#_($.object);if(X){const G=(0,i._s)(X.id,$.eventName);this.#t.debug(`Received event "${G}" from host`);let Z;$.eventHandler?Z=[{callback:window[$.eventHandler],token:(0,t.A)()}]:Z=this.#s.get(G)||[];const K=[];if(Z.forEach(q=>{if(q?.callback){if(q.criteria&&!($.eventParams?this.#O($.eventParams,q.criteria):!1)){this.#t.debug(`Event ${G} did not match criteria for subscriber ${q.callback.name}`);return}this.#t.debug(`Invoking event subscriber ${q.callback.name} for event ${G}`);const te=q.callback({obj:X,eventName:$.eventName,eventParams:$.eventParams,eventOptions:$.eventOptions});te instanceof Promise?K.push(te):typeof te<"u"&&K.push(Promise.resolve(te))}}),B){const q=await Promise.all(K);this.#n.respond({targetWin:N,targetOrigin:M,requestId:B,response:q}),this.#y.log(`event:${G}`,{message:"Guest proxy processed event from host and responded",scriptingEventId:G,scriptingObject:X.id,...this.#v()})}else this.#y.log(`event:${G}`,{message:"Guest proxy processed event from host",scriptingEventId:G,scriptingObject:X.id,...this.#v()})}};#k=async()=>{if(!(!this.#g||!this.#f||!this.#m))try{await fetch(`${this.#m}/oauth2/v1/token/introspection?${new URLSearchParams({token:this.#g,client_id:this.#f}).toString()}`,{headers:{"content-type":"application/x-www-form-urlencoded;charset=UTF-8"},method:"POST"})}catch(N){this.#t.warn(`Failed to extend token lifetime: ${N.message}`)}};#F=async()=>{if(this.#g&&this.#f&&this.#m)try{await fetch(`${this.#m}/oauth2/v1/token/revocation?${new URLSearchParams({token:this.#g,client_id:this.#f}).toString()}`,{method:"POST"})}catch(N){this.#t.error(`Error revoking token. ${N.message}`)}finally{this.#g=null,this.#f=null}};#M=async()=>{if(this.#x)try{const N=await Promise.race([this.getObject("application"),new Promise(M=>{setTimeout(()=>M(null),I)})]);N?(this.#E=n(async()=>{try{await N.keepSessionAlive(),await this.#k()}catch(M){this.#t.error(`Error keeping session alive. ${M.message}`)}},this.#w,{leading:!1}),F.forEach(M=>{document.addEventListener(M,this.#E)})):this.#t.warn("Application object not available to send keep alive")}catch(N){this.#t.error(`Error getting application object. ${N.message}`)}};addScript=async(N,M)=>{if(!this.#o&&N){await this.connect();const B=document.createElement("script");B.setAttribute("src",N),B.setAttribute("type","module"),await new Promise(($,X)=>{let G,Z;const K=()=>{B.removeEventListener("load",G),B.removeEventListener("error",Z)};G=()=>{K(),this.#o=!0,E(!0),$()},Z=()=>{K(),X(new Error(`Failed to load script: ${N}`))},B.addEventListener("load",G),B.addEventListener("error",Z),this.#r=M.appendChild(B)})}};close=async()=>{this.#i&&(this.#u&&this.#l&&(this.#n.send({targetWin:this.#u,targetOrigin:this.#l,messageType:s.G.GuestClose,messageBody:{}}),this.#n.removeSender({origin:this.#l,window:this.#u})),this.#n.close(),this.#h&&(clearInterval(this.#h),this.#h=null),this.#E&&F.forEach(N=>{document.removeEventListener(N,this.#E)}),await this.#F(),window.removeEventListener("beforeunload",this.close),this.#i=!1,this.#t.audit({message:"Guest disconnected from host",...this.#v()}),this.#c=null,this.#p=null,this.#a=null)};connect=async N=>{if(!this.#i){let M=window,B={...U};if(N){const{window:X,...G}=N;X&&(M=X),B={...B,...G}}const $=await P();this.#l=$.origin,this.#u=$.window,this.#n.initialize(M),this.#n.addSender({origin:this.#l,window:this.#u}),this.#n.listen({messageType:s.G.ObjectEvent,callback:this.#I.bind(this)}),this.#n.listen({messageType:s.G.HostConfig,callback:this.#T.bind(this)}),this.#n.listen({messageType:s.G.GuestFocus,callback:this.#P.bind(this)}),this.#n.listen({messageType:s.G.HostClose,callback:this.#D.bind(this)}),this.#n.send({targetWin:this.#u,targetOrigin:this.#l,messageType:s.G.GuestReady,messageBody:B}),this.#i=!0,this.#R(),this.#j&&await this.getAuthToken(),await this.#M(),window.addEventListener("beforeunload",this.close),this.#t.audit({message:"Guest connected to host",guestUrl:window.location.href})}};getAuthToken=async()=>{if(!this.#g&&this.#i)try{const N=await this.getObject("auth");if(N){const M=await N.getAccessToken();this.#g=M?.access_token,this.#m=M?.host_name,this.#f=M?.client_id}else this.#t.warn("Auth object not available to get access token from host")}catch(N){this.#t.error(`Error getting access token from auth object. ${N.message}`)}return this.#g};getObject=async N=>{if(this.#t.debug(`Retrieving scripting object "${N}" from host...`),!this.#i)throw new Error("Not connected to host");const{hostWindow:M,hostOrigin:B}=this.#d(),$=await this.#n.invoke({targetWin:M,targetOrigin:B,messageType:s.G.ObjectGet,messageBody:{objectId:N}}),X=this.#_($.object);return this.#y.log(`getObject:${N}`,{message:"Received scripting object from host",scriptingObject:N,...this.#v()}),X};listObjects=async()=>{if(this.#t.debug("Retrieving names of scripting objects exposed by host..."),!this.#i)throw new Error("Not connected to host");const{hostWindow:N,hostOrigin:M}=this.#d(),B=await this.#n.invoke({targetWin:N,targetOrigin:M,messageType:s.G.ListObjects,messageBody:{}});return this.#y.log("listObjects",{message:"Received names of all scripting objects exposed by host",objects:B,...this.#v()}),B};removeScript=()=>{if(this.#o&&this.#r){const{parentNode:N}=this.#r;N?.removeChild?.(this.#r)}};setLogLevel=N=>{this.#t.setLogLevel(N),this.#t.debug(`Log level changed by guest to ${N}`)};subscribe=N=>{const{eventId:M,criteria:B,callback:$}=N;this.#t.debug(`Registering subscription for event ${M}`);const X=this.#s.get(M.toLowerCase())||[],G=(0,t.A)();X.push({callback:$,token:G,criteria:B}),this.#s.set(M.toLowerCase(),X);const{hostWindow:Z,hostOrigin:K}=this.#d();return this.#n.send({targetWin:Z,targetOrigin:K,messageType:s.G.GuestEventSubscribe,messageBody:{eventId:M,criteria:B,token:G}}),this.#t.debug(`Subscribed to event ${M} with token ${G}`),G};unsubscribe=N=>{const{eventId:M,token:B}=N,$=this.#s.get(M.toLowerCase());if($){const X=$.length,G=$.filter(Z=>Z.token!==B);if(G.length<X){this.#s.set(M.toLowerCase(),G);const{hostWindow:Z,hostOrigin:K}=this.#d();this.#n.send({targetWin:Z,targetOrigin:K,messageType:s.G.GuestEventUnsubscribe,messageBody:{eventId:M,token:B}}),this.#t.debug(`Unsubscribed from event ${M}`)}}}}},"./node_modules/.pnpm/@elliemae+ssf-host@2.28.6_@elliemae+pui-diagnostics@3.12.4/node_modules/@elliemae/ssf-host/dist/esm/host.js"(u,o,e){"use strict";e.d(o,{P:()=>z});var t=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.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/remoting.js"),r=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObjectManager.js"),s=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/messageType.js"),a=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/event.js"),d=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/proxy.js"),i=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/scriptingObject.js"),c=e("./node_modules/.pnpm/@elliemae+microfe-common@2.28.6_@elliemae+pui-diagnostics@3.12.4_uuid@9.0.1/node_modules/@elliemae/microfe-common/dist/esm/filterCriteria.js");const m=null;function p(k,F){return(0,c.of)(F)?(0,c.ts)(k,F):!0}var h=(k=>(k.Popup="popup",k.Embed="embed",k))(h||{}),b=(k=>(k.AllowDownloadsWithoutUserActivation="allow-downloads-without-user-activation",k.AllowDownloads="allow-downloads",k.AllowForms="allow-forms",k.AllowModals="allow-modals",k.AllowOrientationLock="allow-orientation-lock",k.AllowPointerLock="allow-pointer-lock",k.AllowPopups="allow-popups",k.AllowPopupsToEscapeSandbox="allow-popups-to-escape-sandbox",k.AllowPresentation="allow-presentation",k.AllowSameOrigin="allow-same-origin",k.AllowScripts="allow-scripts",k.AllowStorageAccessByUserActivation="allow-storage-access-by-user-activation",k.AllowTopNavigation="allow-top-navigation",k.AllowTopNavigationByUserActivation="allow-top-navigation-by-user-activation",k))(b||{});const v=k=>{if(k==="about:blank")return"*";try{const{origin:F}=new URL(k);return F==="null"||!F?k:F}catch{const{origin:L}=new URL(k,document.baseURI);return L}},g=k=>k.flat(1/0).filter(F=>F!==void 0);function x(k){return typeof k=="function"}const j=[".ice.com",".elliemae.com",".ellielabs.com"],S=["localhost","127.0.0.1"],P=k=>k.split(".").slice(-2).join("."),w=k=>S.includes(k)||j.some(F=>k===F.slice(1)||k.endsWith(F)),E=k=>{const F=P(window.location.hostname),L=P(k);return F===L},A=k=>{try{const{hostname:F}=new URL(k,document.baseURI);return w(F)||E(F)}catch{return!1}};class D{id;title;url;searchParams;domElement;window;openMode;origin;initialized=!1;ready=!1;capabilities;#e;#t;#n;constructor(F){const{guestId:L,domElement:W=null,title:H,url:N,window:M,searchParams:B={},openMode:$=h.Embed,remoting:X,perfTracker:G,handshakeToken:Z}=F;this.id=L,this.title=H,this.url=N,this.origin=v(N),this.searchParams=B,this.domElement=W,this.window=M,this.openMode=$,this.capabilities={},this.#t=G,this.#e=X,this.#n=Z}dispose=()=>{if(this.openMode===h.Popup&&!this.window.closed)try{this.window.document,this.window.close()}catch{this.#e.send({targetWin:this.window,targetOrigin:this.origin,messageType:s.G.HostClose,messageBody:{}})}else this.domElement?.remove?.();this.#e.removeSender({origin:this.origin,window:this.window})};getInfo=()=>({guestId:this.id,guestTitle:this.title,guestUrl:this.url});handShake=()=>new Promise(F=>{let L=0;const W=5;let H;const N=()=>{clearInterval(H),this.#e.unlisten({messageType:s.G.HandShakeAck,callback:N}),F(!0)};H=setInterval(()=>{L>=W?(clearInterval(H),this.#e.unlisten({messageType:s.G.HandShakeAck,callback:N}),F(!1)):(this.#e.send({targetWin:this.window,targetOrigin:this.origin,messageType:s.G.HandShake,messageBody:this.#n?{handshakeToken:this.#n}:{}}),L+=1)},1e3),this.#e.listen({messageType:s.G.HandShakeAck,callback:N})});init=()=>{this.#e.addSender({origin:this.origin,window:this.window}),this.openMode===h.Popup&&this.handShake().catch(()=>{})};dispatchEvent=(F,L)=>{let W;if(this.#t.enabled){const H=`ScriptingObject.Event.${F.object.objectId}.${F.eventName}`;W=this.#t.start(H,{appId:this.id,appUrl:this.url})}return this.#e.invoke({targetWin:this.window,targetOrigin:this.origin,messageType:s.G.ObjectEvent,messageBody:F,responseTimeoutMs:L}).finally(()=>{W&&this.#t.end(W,{appId:this.id,appUrl:this.url})})};send=F=>{this.#e.send({targetWin:this.window,targetOrigin:this.origin,...F})}}const T=new Set(["SSF.Guest.Load"]);class I{#e;#t;#n;#o=new Set;#r;#i=new Map;#s;static DEFAULT_SAMPLING_RATIO=.05;static DEFAULT_DEDUP_WINDOW_MS=1e4;constructor(F){this.#e=F.analyticsObj,this.#t=F.enabled??!1,this.#n=F.samplingRatio??I.DEFAULT_SAMPLING_RATIO,this.#r=F.dedupWindowMs??I.DEFAULT_DEDUP_WINDOW_MS,this.#s=F.onError}get enabled(){return this.#t}start(F,L){if(this.#t)try{const W=T.has(F);return!W&&!this.shouldTrack(F)?void 0:(!W&&!this.#o.has(F)&&(this.#e.setTimingEventSamplingRatio({[F]:this.#n}),this.#o.add(F)),this.#e.startTiming(F,L).catch(H=>{this.reportError(`startTiming failed: ${H.message}`)}),F)}catch(W){this.reportError(`startTiming failed: ${W.message}`);return}}end(F,L){if(F)try{this.#e.endTiming(F,L).catch(W=>{this.reportError(`endTiming failed: ${W.message}`)})}catch(W){this.reportError(`endTiming failed: ${W.message}`)}}reportError(F){try{this.#s?.(F)}catch{}}shouldTrack(F){if(this.#r<=0)return!0;const L=performance.now(),W=this.#i.get(F);return W!==void 0&&L-W<this.#r?!1:(this.#i.set(F,L),!0)}}const U=[b.AllowScripts,b.AllowPopups,b.AllowModals,b.AllowForms,b.AllowDownloads,b.AllowSameOrigin];class z{hostId;#e;#t;#n;#o;#r=new Map;#i=new Map;#s=new Map;#c=new Map;#a;#p=null;#l=null;#u=null;#h=null;#b=new Map;#d;#j;constructor(F,L){if(this.hostId=F,!L?.logger)throw new Error("Logger is required");if(!L?.analyticsObj)throw new Error("Analytics object is required");this.#n=L.logger,this.#o=L.analyticsObj;const W={analyticsObj:L.analyticsObj,enabled:L?.measurePerformance,samplingRatio:L?.performanceSamplingRatio,onError:H=>this.#n.debug(H)};if(this.#d=new I({...W,dedupWindowMs:L?.performanceDedupWindowMs}),this.#j=new I({...W,dedupWindowMs:0}),this.#t=(0,t.A)(),this.#e=new n.K(this.#n,this.#t),L?.readyStateCallback&&typeof L?.readyStateCallback!="function")throw new Error("readyStateCallback must be a function");this.#p=L?.readyStateCallback||null,this.#u=L?.onGuestEventSubscribe||null,this.#h=L?.onGuestEventUnsubscribe||null,this.#a=new r.qE,this.#e.initialize(window),this.#F(),window.addEventListener("beforeunload",this.#f),this.#n.debug(`host is initialized. hostId: ${this.hostId}, correlationId: ${this.#t}`)}#g=(F,L)=>{const W={event:F,...L};this.#o.sendBAEvent(W).catch(H=>{this.#n.debug(`Analytics sendBAEvent failed: ${H.message}`)})};#f=()=>{Array.from(this.#r.values()).filter(L=>L.openMode===h.Popup).map(L=>L.id).forEach(L=>this.unloadGuest(L))};#m=F=>this.#i.get(F);#x=F=>this.#s.get(F)??null;#w=F=>typeof F?._toJSON=="function";#S=(F,L)=>this.#w(F)?(this.#a.has(F?.id,L)||this.#a.addScriptingObject(F,L?{guestId:L?.id}:{}),{type:"object",object:F._toJSON()}):{type:"value",value:F};#E=F=>typeof F=="string"?F:F instanceof Error?F.message:"An unexpected error occurred in the host application";#y=F=>{F.ready&&this.#e.send({targetWin:F.window,targetOrigin:F.origin,messageType:s.G.HostConfig,messageBody:{logLevel:this.#n.getLogLevel(),...F.getInfo()}})};#v=({guest:F,obj:L,functionName:W,functionParams:H,callerChain:N})=>{const M=L[W];return x(M)?(this.#n.debug(`Invoking host implementation of ${L.id}.${String(W)}()`),new Promise(B=>{Object.defineProperty(M,"callContext",{value:{guest:F,...N?.length?{callChain:N}:{}},configurable:!0,enumerable:!0,writable:!0}),B(M(...H))})):(this.#n.warn(`Attempt to call invalid function on object type ${L.objectType}: ${String(W)}`),Promise.reject(new Error(`Method '${W}' not found in Scripting Object '${L.id}'`)))};#_=({sourceWin:F,sourceOrigin:L,requestId:W})=>{const H=this.#m(F);if(!H){this.#n.warn(`Received ready event for unknown guest. requestId: ${W}`);return}if(!H.initialized){this.#n.warn("Guest must be initialized before it is marked as ready"),this.#e.raiseException({targetWin:F,targetOrigin:L,requestId:W,ex:"Guest must be initialized before it is marked as ready"});return}if(!H.ready){H.ready=!0;const N=H.getInfo();this.#d.end("SSF.Guest.Load",{appId:N.guestId,appUrl:N.guestUrl}),this.#y(H),this.#p?.(H),this.#n.audit({message:"Guest is ready",...N})}};#A=({sourceWin:F,sourceOrigin:L,requestId:W,body:H})=>{const N=this.#m(F);if(!N){this.#n.warn(`Received ready event for unknown guest. requestid = ${W}`);return}N.initialized||(N.initialized=!0,N.capabilities=H||{},this.#n.audit({message:"Guest is initialized",...N.getInfo()})),(!H||!H.onReady)&&this.#_({sourceWin:F,sourceOrigin:L,requestId:W,type:"",body:null})};#O=async({sourceWin:F})=>{if(F?.window){const L=this.#L(F);L&&!await L.handShake()&&this.unloadGuest(F)}};#C=({sourceWin:F,sourceOrigin:L,requestId:W})=>{this.#n.debug(`Processing listObjects request. requestId = ${W}`);const H=this.#m(F);if(!H)return this.#n.warn("Rejected object request from unknown guest window"),!1;const N=this.#a.listScriptingObjects(H.id);return this.#e.respond({targetWin:F,targetOrigin:L,requestId:W,response:N}),this.#n.debug({message:"name of scripting objects returned",requestId:W,objects:N,...H.getInfo()}),!0};#T=({sourceWin:F,sourceOrigin:L,requestId:W,body:H})=>{const{objectId:N}=H;this.#n.debug(`Processing getObject request for object ${N}. requestId = ${W}`);const M=this.#m(F);if(!M)return this.#n.warn("Rejected object request from unknown guest window"),!1;const B=this.getScriptingObject(N,{guest:M});return B?(this.#e.respond({targetWin:F,targetOrigin:L,requestId:W,response:this.#S(B,M)}),this.#n.debug({message:"Scripting Object returned",requestId:W,scriptingObject:N,...M.getInfo()}),!0):(this.#n.warn(`unknown or unauthorized object ${N} from guest ${M.id}`),this.#e.raiseException({targetWin:F,targetOrigin:L,requestId:W,ex:`The requested object (${N}) is not available`}),!1)};#P=({sourceWin:F,requestId:L,body:W})=>{const{eventId:H,criteria:N,token:M}=W;this.#n.debug(`Processing guest event subscribe request for event ${H}. requestId = ${L}`);const B=this.#m(F);if(!B){this.#n.warn("Rejected event subscribe request from unknown guest window");return}setTimeout(()=>{try{this.#u?.({guestId:B.id,eventId:H,criteria:N,token:M})}catch($){this.#n.warn(`Error in onGuestEventSubscribe callback for event ${H}: ${$.message}`)}},0)};#D=({sourceWin:F,requestId:L,body:W})=>{const{eventId:H,token:N}=W;this.#n.debug(`Processing guest event unsubscribe request for event ${H}. requestId = ${L}`);const M=this.#m(F);if(!M){this.#n.warn("Rejected event unsubscribe request from unknown guest window");return}setTimeout(()=>{try{this.#h?.({guestId:M.id,eventId:H,token:N})}catch(B){this.#n.warn(`Error in onGuestEventUnsubscribe callback for event ${H}: ${B.message}`)}},0)};#R=({sourceWin:F,requestId:L,body:W})=>{const H=this.#m(F);if(!H){this.#n.warn(`Received resize event from unknown guest. requestid = ${L}`);return}H.domElement&&(H.domElement.style.height=`${W.height}px`),this.#n.debug(`Guest ${H.id} resized to ${W.width}x${W.height}`)};#I=({sourceWin:F,sourceOrigin:L,requestId:W,body:H})=>{const{objectId:N,callerChain:M}=H,B=this.#m(F);if(!B)return this.#n.warn("Rejected method invocation request from unknown guest window"),!1;this.#n.debug(`Function ${N}.${String(H.functionName)}() called from guest "${B.id}" (requestId = ${W})`);const $=this.getScriptingObject(N,{guest:B});if(!$)return this.#n.warn(`Invocation of unknown or unauthorized object ${N} from guest ${B.id}`),this.#e.raiseException({targetWin:F,targetOrigin:L,requestId:W,ex:`The requested object (${N}) is not available`}),!1;const X=B.getInfo();let G;if(this.#d.enabled){const Z=`ScriptingObject.API.${N}.${H.functionName}`;G=this.#d.start(Z,{appId:X.guestId,appUrl:X.guestUrl})}return this.#v({guest:B,obj:$,functionName:H.functionName,functionParams:H.functionParams,callerChain:M}).then(Z=>{this.#e.respond({targetWin:F,targetOrigin:L,requestId:W,response:this.#S(Z,B)}),this.#n.debug({message:"Value returned for Scripting Object method call",requestId:W,scriptingObject:N,scriptingMethod:H.functionName,...X})}).catch(Z=>{this.#e.raiseException({targetWin:F,targetOrigin:B.origin,requestId:W,ex:Z}),this.#n.error({message:"Exception thrown for Scripting Object method call",requestId:W,scriptingObject:N,scriptingMethod:H.functionName,...X})}).finally(()=>{G&&this.#d.end(G,{appId:X.guestId,appUrl:X.guestUrl})}),!0};#k=()=>{this.#e.listen({messageType:s.G.GuestResize,callback:this.#R})};#F=()=>{this.#e.listen({messageType:s.G.GuestReady,callback:this.#A}),this.#e.listen({messageType:s.G.GuestReadyComplete,callback:this.#_}),this.#e.listen({messageType:s.G.GuestClose,callback:this.#O}),this.#e.listen({messageType:s.G.ListObjects,callback:this.#C}),this.#e.listen({messageType:s.G.ObjectGet,callback:this.#T}),this.#e.listen({messageType:s.G.ObjectInvoke,callback:this.#I}),this.#e.listen({messageType:s.G.GuestEventSubscribe,callback:this.#P}),this.#e.listen({messageType:s.G.GuestEventUnsubscribe,callback:this.#D})};#M=F=>F instanceof a.b3||typeof F?.subscribe=="function";#N=F=>{const L=new D({...F,remoting:this.#e,perfTracker:this.#j});return L.init(),this.#r.set(F.guestId,L),this.#i.set(L.window,L),this.#s.set(L.url,L),L};#L=F=>{if(typeof F=="string")return this.#r.get(F);const L=this.#i.get(F);return L||Array.from(this.#r.values()).find(W=>W.domElement===F)};#B=()=>{this.#l||(this.#l=setInterval(()=>{const F=[];this.#r.forEach(L=>{L.openMode===h.Popup&&L.window.closed&&F.push(L)}),F.forEach(L=>{const{id:W}=L;this.unloadGuest(W),this.#c.get(W)?.forEach(N=>{Promise.resolve(N({id:W})).catch(()=>{})})})},1e3))};#U=()=>{if(!this.#l)return;Array.from(this.#r.values()).some(L=>L.openMode===h.Popup)||(clearInterval(this.#l),this.#l=null)};#$=F=>{const L=A(F),W=L?void 0:(0,t.A)();return{popupUrl:W?`${F}#hs=${W}`:F,handshakeToken:W,trusted:L}};#z=F=>{const{url:L,title:W,popupWindowFeatures:H={},searchParams:N,guestId:M,onLoad:B,onError:$}=F,{width:X=800,height:G=600,top:Z=100,left:K=100}=H;let q=this.#x(L);if(q)q.window.closed||(A(L)?window.open("",W):q.window.focus());else{const te=Object.entries({width:X,height:G,top:Z,left:K}).filter(([,re])=>re).map(([re,ge])=>`${re}=${ge}`).join(","),{popupUrl:fe,handshakeToken:oe,trusted:me}=this.#$(L),ne=window.open(fe,W,`popup, ${te}`);if(ne)setTimeout(()=>{try{B?.(M)}catch(re){this.#n.debug(`Error occurred in onLoad for guest with id '${M}': ${re.message}`)}},0);else throw setTimeout(()=>{try{$?.(M)}catch(re){this.#n.debug(`Error occurred in onError for guest with id '${M}': ${re.message}`)}},0),new Error("Failed to open guest application in popup window");me||(ne.opener=null),q=this.#N({guestId:M,window:ne,title:W,url:L,searchParams:N,openMode:h.Popup,handshakeToken:oe}),this.#B()}return q};#W=F=>{const{url:L,title:W,targetElement:H,searchParams:N,guestId:M,onLoad:B,onError:$,options:X={}}=F,G=H.ownerDocument??document,{fitToContent:Z=!1,disableSandbox:K=!1,sandboxValues:q=[],customSandboxValues:te=[],style:fe="",permissionPolicy:oe=""}=X;if(!W)throw new Error("title is required");Z&&this.#k();const me=G.createElement("iframe");me.setAttribute("id",M);const ne=()=>{setTimeout(()=>{try{B?.(M)}catch(ee){this.#n.debug(`Error occurred in onLoad for guest with id '${M}': ${ee.message}`)}},0),this.#n.debug(`frame loaded for guest with id '${M}'`),me.removeEventListener("load",ne)},re=()=>{setTimeout(()=>{try{$?.(M)}catch(ee){this.#n.debug(`Error occurred in onError for guest with id '${M}': ${ee.message}`)}},0),this.#n.error(`frame load failed for guest with id '${M}'`),me.removeEventListener("error",re)};me.addEventListener("load",ne),me.addEventListener("error",re),me.setAttribute("style",`min-width: 100%; height: 100%; border: 0px; ${fe}`),K||me.setAttribute("sandbox",te.length>0?te.join(" "):[...U,...q].join(" ")),me.setAttribute("title",W),me.setAttribute("src",L),oe&&me.setAttribute("allow",oe),H.appendChild(me);const ge=G.getElementById(M);return this.#N({guestId:M,domElement:ge,window:ge.contentWindow,title:W,url:L,searchParams:N,openMode:h.Embed})};#G=(F,L)=>{let W="";return Object.keys(L).forEach(H=>{W+=`${(W.length?"&":"")+encodeURIComponent(H)}=${encodeURIComponent(L[H])}`}),F+(W?(F.indexOf("?")>=0?"&":"?")+W:"")};addScriptingObject=(F,L)=>{if((0,d.h)(F)){const W=this.cloneScriptingObject(F);this.#a.addScriptingObject(W,L)}else this.#a.addScriptingObject(F,L)};cloneScriptingObject=F=>{if(!F)throw new Error("proxy is required");const L=new i.P(F.id,F.objectType);let W=[];return Object.keys(F).forEach(H=>{const N=F[H];if(this.#M(N)){const M=new a.Jh({name:N.name||H,objectId:L.id});if(Object.defineProperty(L,H,{value:M,enumerable:!0}),N instanceof a.b3){const B=({eventParams:X,eventOptions:G})=>this.dispatchEvent({event:M,eventParams:X,eventOptions:G}),$=N.subscribe(B);W.push(()=>{N.unsubscribe($)})}else{const B=N.subscribe?.(($,X,G)=>this.dispatchEvent({event:M,eventParams:X,eventOptions:G}));W.push(()=>{N.unsubscribe?.(B)})}}else if(x(N)&&(Object.defineProperty(L,H,{value:async(...M)=>{const B=L[H]?.callContext;if(B?.guest){const X=B.callChain??[],G=B.guest.id,Z=this.#b.get(G),K={id:G};Z&&(K.metadata=Z),Object.defineProperty(N,"callContext",{value:{callChain:[...X,K]},configurable:!0,enumerable:!0,writable:!0})}const $=await N(...M);return(0,d.h)($)?this.cloneScriptingObject($):$},enumerable:!0}),H==="dispose")){const M=L.dispose;Object.defineProperty(L,H,{value:()=>(L._dispose(),M.apply(L)),enumerable:!0})}}),L._dispose=()=>{W.forEach(H=>{H?.()}),W=[]},L};close=()=>{this.#l&&(clearInterval(this.#l),this.#l=null),this.#f(),this.#b.clear(),this.#e.close(),window.removeEventListener("beforeunload",this.#f),this.#n.debug(`host is closed. hostId: ${this.hostId}, correlationId: ${this.#t}`)};#H=({targetGuest:F,guestCapabilities:L,scriptingEventId:W,dispatchToGuest:H})=>{const N=M=>{if((0,c.of)(L)&&!p(M.capabilities,L)){this.#n.debug({message:"Event skipped \u2014 guest capabilities do not match eventOptions.guestCapabilities",scriptingEventId:W,guestCapabilities:L,...M.getInfo()});return}H(M)};F?N(F):this.#r.forEach(N)};dispatchEvent=async F=>{const{event:{id:L,name:W},eventParams:H,eventOptions:N={}}=F,{eventHandler:M=null,timeout:B=null,window:$=null,guestId:X,guestCapabilities:G}=N,Z=L.split(".")[0],K=X||$,q=K?this.#L(K):null,te=q?this.getScriptingObject(Z,{guest:q}):this.getScriptingObject(Z);if(!te)return this.#n.warn(`Attempt to dispatch event ${W} on unknown object ${Z}`),Promise.resolve([]);const fe={object:te._toJSON(),eventName:W,eventParams:H,eventHandler:M,eventOptions:{allowsFeedback:!1}};B&&!Number.isNaN(B)&&(fe.eventOptions={allowsFeedback:!0,timeout:Number(B)});const oe=[];let me;const ne=re=>{const ge=re.getInfo();B&&re?.capabilities?.eventFeedback?(oe.push(re.dispatchEvent(fe,B)),!me&&this.#d.enabled&&(me=this.#d.start(`ScriptingObject.Event.${te.id}.${W}`,{appId:this.hostId,appUrl:window.location.href})),this.#n.debug({message:"Event dispatched and awaiting feedback",scriptingEventId:L,...ge})):(re.send({messageType:s.G.ObjectEvent,messageBody:fe}),this.#n.debug({message:"Event dispatched",scriptingEventId:L,...ge}))};return this.#H({targetGuest:q??null,guestCapabilities:G,scriptingEventId:L,dispatchToGuest:ne}),Promise.all(oe).then(re=>(this.#n.debug({message:"Event feedback received",scriptingEventId:L}),g(re))).catch(re=>{throw this.#n.error({message:"Error processing event",eventId:L,exception:re}),re}).finally(()=>{me&&this.#d.end(me,{appId:this.hostId,appUrl:window.location.href})})};getGuests=()=>Array.from(this.#r.values());getScriptingObject=(F,L)=>this.#a.getObject(F,L?.guest);loadGuest=F=>{const{id:L,url:W,targetElement:H,title:N,searchParams:M={},onLoad:B,onError:$,options:X={},metadata:G}=F;if(!L)throw new Error("id for guest application is required");let Z=L;if(this.#r.has(Z)){let oe=1;for(;this.#r.has(`${L}-${oe}`);)oe+=1;Z=`${L}-${oe}`}const{openMode:K=h.Embed,popupWindowFeatures:q={}}=X,te=this.#G(W,M);let fe=null;if(this.#d.start("SSF.Guest.Load",{appId:Z,appUrl:te}),K===h.Popup)fe=this.#z({guestId:Z,url:te,title:N,searchParams:M,popupWindowFeatures:q,onLoad:B,onError:$});else if(K===h.Embed)fe=this.#W({guestId:Z,url:te,title:N,targetElement:H,searchParams:M,onLoad:B,onError:$,options:X});else throw new Error(`Invalid openMode: ${K}`);return G&&this.#b.set(Z,G),this.#n.audit({message:"Guest loaded",...fe.getInfo()}),fe};loadGuests=F=>{const{id:L,url:W,targetElement:H,title:N,searchParamsList:M=[],options:B={}}=F;M.forEach(($,X)=>{this.loadGuest({id:`${L}-${X}`,url:W,title:N,targetElement:H,searchParams:$,options:B})},this)};removeAllScriptingObjects=F=>{this.#a.removeAllScriptingObjects(F)};removeScriptingObject=(F,L)=>{this.#a.removeScriptingObject(F,L)};setLogLevel=F=>{this.#n.setLogLevel(F),this.#r.forEach(this.#y),this.#n.debug("Dispatched config events to all guests")};unloadGuest=F=>{const L=this.#L(F);L&&(L.dispose(),this.#i.delete(L.window),this.#s.delete(L.url),this.#b.delete(L.id),this.#r.delete(L.id),this.#n.audit({message:"Guest is removed from host",...L.getInfo()}),this.#U())};onGuestClose=F=>{const{id:L,guestCloseCallback:W}=F,H=this.#c.get(L)||[];H.push(W),this.#c.set(L,H)}}},"./node_modules/.pnpm/@xstyled+core@3.8.2/node_modules/@xstyled/core/dist/index.mjs"(u,o,e){"use strict";e.d(o,{E8:()=>ne,_7:()=>ye});var t,n,r=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),s=e("./node_modules/.pnpm/@xstyled+system@3.8.3/node_modules/@xstyled/system/dist/index.mjs"),a=e("./node_modules/.pnpm/@xstyled+util@3.7.0/node_modules/@xstyled/util/dist/index.mjs");function d(ze){return n({theme:ze})}function i(ze,be){const Ne=d(ze)[be];return Ne===0?null:Ne}function c(ze,be){const Ne=d(ze)[be];return Ne===0?null:Ne-.02}function m(){const[ze,be]=t.useState(typeof window>"u"?null:window.innerWidth);return t.useEffect(()=>{function un(){be(window.innerWidth)}return window.addEventListener("resize",un),be(window.innerWidth),()=>window.removeEventListener("resize",un)},[]),ze}function p(ze){const be=d(ze),un=m();return t.useMemo(()=>Object.keys(be).reverse().find(Ne=>un!==null&&un>=be[Ne])||null,[be,un])}function h(ze,be){const un=i(ze,be),Ne=m();return Ne!==null&&un!==null&&Ne>=un}function b(ze,be){const un=c(ze,be),Ne=m();return Ne!==null&&un!==null&&Ne<un}const v=(...ze)=>ze.filter(Boolean).join("."),g=ze=>`--${ze.replace(/\./g,"-")}`,x=(ze,be)=>`var(${g(ze)}, ${be})`,j=(ze,be)=>`${ze}: ${be};`;function S(ze,be,un=Object.keys(ze),Ne){const yn=Array.isArray(ze)?[]:{};for(const Cn in un){const Rn=un[Cn],Ce=ze[Rn],de=v(Ne,Rn);if((0,a.WL)(Ce)){yn[Rn]=S(Ce,be,Object.keys(Ce),de);continue}if((0,a.Yj)(Ce)){yn[Rn]=x(de,Ce);continue}if((0,a.Pc)(Ce)){yn[Rn]=x(de,(0,a.DJ)(Ce,{theme:be}));continue}}return yn}function P(ze,be,un=Object.keys(ze),Ne,yn={value:""}){for(const Cn in un){const Rn=un[Cn],Ce=ze[Rn],de=v(Ne,Rn);if((0,a.WL)(Ce)){P(Ce,be,Object.keys(Ce),de,yn);continue}if((0,a.Yj)(Ce)){yn.value+=j(g(de),Ce);continue}if((0,a.Pc)(Ce)){yn.value+=j(g(de),(0,a.DJ)(Ce,{theme:be}));continue}}return yn.value}var w=Object.defineProperty,E=Object.defineProperties,A=Object.getOwnPropertyDescriptors,D=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,U=(ze,be,un)=>be in ze?w(ze,be,{enumerable:!0,configurable:!0,writable:!0,value:un}):ze[be]=un,z=(ze,be)=>{for(var un in be||(be={}))T.call(be,un)&&U(ze,un,be[un]);if(D)for(var un of D(be))I.call(be,un)&&U(ze,un,be[un]);return ze},k=(ze,be)=>E(ze,A(be)),F=(ze,be)=>{var un={};for(var Ne in ze)T.call(ze,Ne)&&be.indexOf(Ne)<0&&(un[Ne]=ze[Ne]);if(ze!=null&&D)for(var Ne of D(ze))be.indexOf(Ne)<0&&I.call(ze,Ne)&&(un[Ne]=ze[Ne]);return un};const L="xstyled-color-mode",H=typeof window<"u"&&(()=>{try{const ze="xstyled-test-key";return window.localStorage.setItem(ze,ze),window.localStorage.removeItem(ze),!0}catch{return!1}})()?{get:()=>window.localStorage.getItem(L),set:ze=>{window.localStorage.setItem(L,ze)},clear:()=>window.localStorage.removeItem(L)}:{get:()=>null,set:()=>{},clear:()=>{}},N="xstyled-color-mode-",M=ze=>`${N}${ze}`,B="xstyled-colors",$=["light","dark"];function X(ze,be){return k(z({},ze),{colors:z(z({},ze.colors),ze.colors.modes[be])})}const G=ze=>`@media ${ze}`,Z=ze=>`(prefers-color-scheme: ${ze})`;function K(ze){return Boolean(ze&&ze.colors&&ze.colors.modes)}function q(ze){return Boolean(ze&&(ze.useCustomProperties===void 0||ze.useCustomProperties))}function te(ze){return Boolean(ze&&(ze.useColorSchemeMediaQuery===void 0||ze.useColorSchemeMediaQuery))}function fe(ze){return ze.initialColorModeName||"default"}function oe(ze){return ze.defaultColorModeName||fe(ze)}function me(ze){let be=[];for(const un in ze)be=[...be,...Object.keys(ze[un])];return be}function ne(ze,{targetSelector:be="body"}={}){if(!K(ze))return null;const un=ze.colors,{modes:Ne}=un,yn=F(un,["modes"]),Cn=me(Ne);let Rn=P(yn,ze,Cn,B);function Ce(Ee){const Xe=X(ze,Ee),gn=Xe.colors,{modes:V}=gn,ie=F(gn,["modes"]);return P(z(z({},ie),V[Ee]),Xe,Cn,B)}return ze.useColorSchemeMediaQuery!==!1&&$.forEach(Ee=>{if(Ne[Ee]){const Xe=G(Z(Ee));Rn+=`${Xe}{${Ce(Ee)}}`}}),[fe(ze),...Object.keys(Ne)].forEach(Ee=>{const Xe=`&.${M(Ee)}`;Rn+=`${Xe}{${Ce(Ee)}}`}),`${be}{${Rn}}`}function re(ze){if(typeof window>"u"||window.matchMedia===void 0)return null;const be=Z(ze);return window.matchMedia(be)}function ge(ze){const be=r.useMemo(()=>te(ze)?$.map(yn=>{if(!K(ze)||!ze.colors.modes[yn])return null;const Cn=re(yn);return Cn?{mode:yn,mql:Cn}:null}).filter(Boolean):[],[ze]),[un,Ne]=r.useState(()=>{const yn=be.find(Cn=>Cn.mql.matches);return yn?yn.mode:null});return r.useEffect(()=>{const yn=be.map(({mode:Cn,mql:Rn})=>{const Ce=({matches:de})=>{Ne(de?Cn:Ee=>Ee===Cn?null:Cn)};return Rn.addEventListener("change",Ce),()=>Rn.removeEventListener("change",Ce)});return()=>yn.forEach(Cn=>Cn())}),un}const ee=typeof window<"u"?r.useLayoutEffect:r.useEffect;function ve(ze,{target:be}={}){const un=ge(ze),Ne=oe(ze),yn=fe(ze),[Cn,Rn]=r.useState(()=>K(ze)?Ne:null),Ce=q(ze),de=r.useCallback(Ee=>{Rn(Ee||null),Ee?H.set(Ee):H.clear()},[]);return ee(()=>{if(!K(ze))return;const Ee=H.get();Cn!==(Ee||un||Ne)&&Rn(Ee||un||Ne)},[]),ee(()=>{if(H.get())return;const Xe=un||Ne;Xe!==Cn&&Rn(Xe)},[Cn,un,Ne]),ee(()=>{if(!Cn||!Ce||!H.get()&&!(yn!==Cn))return;const gn=M(Cn),V=be||document.body;return V.classList.add(gn),()=>{V.classList.remove(gn)}},[Ce,be,Cn,yn]),[Cn,de]}function We(ze,be){const[un]=r.useState(be),Ne=r.useMemo(()=>{if(!un||!q(ze))return null;if(!K(ze))return ze;const Cn=ze.colors,{modes:Rn}=Cn,Ce=F(Cn,["modes"]),de=me(Rn);return k(z({},ze),{colors:k(z(z({},Ce),S(Ce,ze,de,B)),{modes:Rn}),__rawColors:ze.colors})},[un,ze]),yn=r.useMemo(()=>!be||q(ze)?null:K(ze)?be===fe(ze)?k(z({},ze),{__colorMode:be}):k(z({},ze),{colors:z(z({},ze.colors),ze.colors.modes[be]),__colorMode:be,__rawColors:ze.colors}):ze,[ze,be]);return Ne||yn}const qe=r.createContext(null);function nn(){const ze=t.useContext(qe);if(!ze)throw new Error("[useColorMode] requires the ColorModeProvider component");return ze}function ye({ThemeContext:ze,ThemeProvider:be,ColorModeStyle:un}){function Ne({children:yn,target:Cn,targetSelector:Rn}){const Ce=r.useContext(ze);if(!Ce)throw new Error("[ColorModeProvider] requires ThemeProvider upper in the tree");const de=ve(Ce,{target:Cn}),Ee=We(Ce,de[0]);return r.createElement(r.Fragment,null,r.createElement(un,{targetSelector:Rn}),r.createElement(be,{theme:Ee},r.createElement(qe.Provider,{value:de},yn)))}return Ne}function ce({target:ze="document.body"}={}){return`(function() { try {
|
|
18401
18401
|
var mode = localStorage.getItem('${L}');
|
|
18402
18402
|
if (mode) ${ze}.classList.add('${N}' + mode);
|
|
18403
18403
|
} catch (e) {} })();`}function Pe(ze){return t.createElement("script",{key:"xstyled-color-mode-init",dangerouslySetInnerHTML:{__html:ce(ze)}})}function Be(ze){return`<script>${ce(ze)}<\/script>`}function De(){return["&&{",s.qUY,"}"]}De.meta=s.qUY.meta;const Ye=ze=>be=>un=>{const Ne=ze((0,s.o$4)(un),be);return Ne===null?"0":Ne||be},He={"min-width":Ye(s.ieS),"max-width":Ye(s.Ct)},sn="[-\\w]",vn=`(${sn}+)(\\s*:\\s*)(?=\\S)((?:\\\\[\\s\\S]|[^\\\\;{}])*?)(\\s*!important)?(\\s*;)`,ue="(@media\\b\\s*)(?=\\S)([^{]+?)(\\s*\\{)",xe=new RegExp(`(?:${vn}|${ue})`,"g"),Ke=new RegExp(`(\\(\\s*)(${sn}+)(\\s*:\\s*)([^\\)]*?)(\\s*\\))`,"g"),rn=ze=>{let be,un=0;const Ne=[];for(;be=Ke.exec(ze);){const[,yn,Cn,Rn,Ce,de]=be,Ee=He[Cn];Ee&&(Ne.push(ze.slice(un,be.index)),Ne.push(Xe=>`${yn}${Cn}${Rn}${Ee(Ce)(Xe)}${de}`),un=be.index+be[0].length)}return Ne.push(ze.slice(un,ze.length)),Ne},bn=ze=>be=>{if(typeof be!="string")return be;let un,Ne=0;const yn=[];for(;un=xe.exec(be);){const[,Cn,Rn,Ce,de,Ee,Xe,gn,V]=un;if(Xe)yn.push(be.slice(Ne,un.index)),yn.push(Xe),rn(gn).forEach(ie=>yn.push(ie)),yn.push(V),Ne=un.index+un[0].length;else{const ie=ze.meta.cssGetters[Cn];ie&&(yn.push(be.slice(Ne,un.index)),yn.push(le=>`${Cn}${Rn}${ie(Ce)(le)}${de||""}${Ee}`),Ne=un.index+un[0].length)}}return yn.push(be.slice(Ne,be.length)),yn},Ie=(ze,be)=>(un,Ne)=>{const yn=be();return(0,r.useMemo)(()=>ze(un,Ne)({theme:yn}),[un,Ne,yn])};e.d(o,["B1",0,Ie,"l1",0,bn])},"./node_modules/.pnpm/@xstyled+styled-components@3.8.1_styled-components@5.3.11/node_modules/@xstyled/styled-components/dist/index.mjs"(u,o,e){"use strict";var t,n,r,s,a=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.cjs.js"),d=e("./node_modules/.pnpm/@xstyled+core@3.8.2/node_modules/@xstyled/core/dist/index.mjs"),i=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),c=e("./node_modules/.pnpm/@xstyled+system@3.8.3/node_modules/@xstyled/system/dist/index.mjs"),m=e("./node_modules/.pnpm/@xstyled+util@3.7.0/node_modules/@xstyled/util/dist/index.mjs");const p=(0,a.createGlobalStyle)`${Ye=>(0,d.E8)(Ye.theme,{targetSelector:Ye.targetSelector})}`,h=(0,d._7)({ThemeContext:a.ThemeContext,ThemeProvider:a.ThemeProvider,ColorModeStyle:p}),b=()=>(0,i.useContext)(a.ThemeContext),v=(0,d.B1)(c.th,b),g=(0,d.B1)(c.th.angle,b),x=(0,d.B1)(c.th.animation,b),j=(0,d.B1)(c.th.border,b),S=(0,d.B1)(c.th.borderColor,b),P=(0,d.B1)(c.th.borderStyle,b),w=(0,d.B1)(c.th.borderWidth,b),E=(0,d.B1)(c.th.color,b),A=(0,d.B1)(c.th.duration,b),D=(0,d.B1)(c.th.font,b),T=(0,d.B1)(c.th.fontSize,b),I=(0,d.B1)(c.th.fontWeight,b),U=(0,d.B1)(c.th.inset,b),z=(0,d.B1)(c.th.letterSpacing,b),k=(0,d.B1)(c.th.lineHeight,b),F=(0,d.B1)(c.th.percent,b),L=(0,d.B1)(c.th.px,b),W=(0,d.B1)(c.th.radius,b),H=(0,d.B1)(c.th.ringWidth,b),N=(0,d.B1)(c.th.shadow,b),M=(0,d.B1)(c.th.size,b),B=(0,d.B1)(c.th.space,b),$=(0,d.B1)(c.th.timingFunction,b),X=(0,d.B1)(c.th.transform,b),G=(0,d.B1)(c.th.transition,b),Z=(0,d.B1)(c.th.transitionProperty,b),K=(0,d.B1)(c.th.zIndex,b),q=()=>t(b()),te=()=>n(b()),fe=Ye=>r(b(),Ye),oe=Ye=>s(b(),Ye),me=(0,a.createGlobalStyle)(({theme:Ye})=>(0,c.wlu)(Ye)),ne=Ye=>{const He=(0,d.l1)(Ye);return(...sn)=>{const tn=(0,a.css)(...sn);return(0,m.tc)(tn).map(He)}},re=typeof a=="function"?a:a.default,ge=(Ye,He,sn)=>{const tn=(...vn)=>Ye`${He(...vn)}${sn}`;return tn.attrs=vn=>ge(Ye.attrs(vn),He,sn),tn.withConfig=vn=>ge(Ye.withConfig(vn),He,sn),tn},ee=Ye=>{const He=new Set(Ye.meta.props);return(sn,tn,vn)=>(0,m.Yj)(sn)&&He.has(sn)?!1:typeof vn=="string"?tn(sn):!0},ve=(Ye,He)=>{const sn=He?{shouldForwardProp:ee(He)}:{};return tn=>{const vn=re(tn);return ge(sn?vn.withConfig(sn):vn,Ye,He)}},We=Ye=>{const He=ne(Ye),sn=ve(He),tn=ve(He,Ye);return sn.box=tn("div"),Object.keys(re).forEach(vn=>{sn[vn]=sn(vn),sn[`${vn}Box`]=tn(vn)}),sn},qe=Ye=>{const He=ve(ne(Ye),Ye),sn={};return Object.keys(re).forEach(tn=>{sn[tn]=He(tn)``}),sn},nn=Ye=>{const He=ne(Ye);return(...sn)=>(0,a.createGlobalStyle)([He(...sn)])},ye=Ye=>({css:ne(Ye),x:qe(Ye),styled:We(Ye),createGlobalStyle:nn(Ye)}),{css:ce,styled:Pe,x:Be,createGlobalStyle:De}=ye(c.qUY);e.d(o,["Yb",0,ye])},"./node_modules/.pnpm/@xstyled+system@3.8.3/node_modules/@xstyled/system/dist/index.mjs"(u,o,e){"use strict";e.d(o,{ZzX:()=>ve});var t,n=e("./node_modules/.pnpm/@xstyled+util@3.7.0/node_modules/@xstyled/util/dist/index.mjs"),r=Math.pow;const s=Vn=>Math.round(Vn*r(10,4))/r(10,4),a=Vn=>mt=>(0,n.bu)(mt)&&mt!==0?`${mt}${Vn}`:mt,d=a("ms"),i=a("px"),c=a("deg"),m=(Vn,{rootFontSize:mt=16}={})=>s(Vn/mt),p=(Vn,mt)=>{const Ut=Number(Vn);return Number.isNaN(Ut)||Ut===0?Vn:`${m(Ut,mt)}rem`},h=(Vn,mt)=>{if(!(0,n.Yj)(Vn)||Vn.length<4||Vn.slice(-3)!=="rpx")return Vn;const io=Number(Vn.slice(0,Vn.length-3));return io===0?0:`${m(io,mt)}rem`},b=Vn=>(0,n.bu)(Vn)&&Vn!==0&&Vn>=-1&&Vn<=1?`${s(Vn*100)}%`:Vn,v=(Vn,{rawValue:mt,variants:Ut,props:io})=>{if((0,n.Yj)(mt)){const Zr=mt.startsWith("-"),Ro=Zr?mt.substr(1):mt,Xo=(0,n.nv)(io,Ro,Ut),as=(0,n.Yj)(Xo)||(0,n.bu)(Xo)?Xo:Ro;return Zr?`-${as}`:as}if((0,n.bu)(mt)){const Zr=(0,n.gu)(mt),Ro=Math.abs(mt),Xo=Ut?Ut[Ro]:void 0;if((0,n.Yj)(Xo))return Zr?`-${Xo}`:Xo;const as=(0,n.bu)(Xo)?Xo:Ro;return Zr?as*-1:as}},g=Vn=>Vn?`@media (min-width: ${Vn})`:null,x=Vn=>Vn?`@media (max-width: ${Vn})`:null,j=(Vn,mt)=>Vn&&mt?`@media (min-width: ${Vn}) and (max-width: ${mt})`:null,S=(Vn,mt)=>{const Ut=Vn[mt];return Ut===0?null:i(Ut)},P=(Vn,mt)=>{const Ut=Vn[mt];return Ut===0?null:i(Ut-.02)};var w=Object.defineProperty,E=Object.getOwnPropertySymbols,A=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable,T=(Vn,mt,Ut)=>mt in Vn?w(Vn,mt,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):Vn[mt]=Ut,I=(Vn,mt)=>{for(var Ut in mt||(mt={}))A.call(mt,Ut)&&T(Vn,Ut,mt[Ut]);if(E)for(var Ut of E(mt))D.call(mt,Ut)&&T(Vn,Ut,mt[Ut]);return Vn};const U=Vn=>Vn.theme&&Vn.theme.screens?Vn.theme.screens:{},z=Vn=>Vn.theme&&Vn.theme.states?Vn.theme.states:{},k=Vn=>{const mt=U(Vn),Ut=z(Vn),io={};for(const Ro in mt)io[Ro]=g(S(mt,Ro));const Zr=I(I({},io),Ut);for(const[Ro,Xo]of Object.entries(Zr))Xo&&Xo.startsWith("@")&&(delete Zr[Ro],Zr[Ro]=Xo);return Zr},F=(Vn,mt)=>{if(mt.has("_variants"))return mt.get("_variants");const Ut=k(Vn);return mt.set("_variants",Ut),Ut},W=typeof Map<"u"&&typeof WeakMap<"u"?new WeakMap:null,H=Vn=>{var mt;return((mt=Vn?.xstyled)==null?void 0:mt.cache)===!1},N=Vn=>{if(H(Vn)||W===null)return null;if(W.has(Vn))return W.get(Vn)||null;const Ut={};return W.set(Vn,Ut),Ut},M={has:()=>!1,set:()=>{},get:()=>{}},B=(Vn,mt)=>{if(!Vn)return M;const Ut=N(Vn);return Ut?(Ut[mt]=Ut[mt]||new Map,Ut[mt]):M};var $=Object.defineProperty,X=Object.getOwnPropertySymbols,G=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable,K=(Vn,mt,Ut)=>mt in Vn?$(Vn,mt,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):Vn[mt]=Ut,q=(Vn,mt)=>{for(var Ut in mt||(mt={}))G.call(mt,Ut)&&K(Vn,Ut,mt[Ut]);if(X)for(var Ut of X(mt))Z.call(mt,Ut)&&K(Vn,Ut,mt[Ut]);return Vn};let te=0;const fe={shorthand:[/\s+/," "],multiple:[/\s*,\s*/,","]},oe=(Vn,mt)=>Ut=>Ut.split(Vn[0]).map(mt).join(Vn[1]),me=({name:Vn,transform:mt,key:Ut,compose:io,shorthand:Zr,multiple:Ro})=>{const Xo=te++,as=(Zo,Bs)=>Rs=>{let Fi=Zo;if(!(0,n.Yj)(Zo)&&!(0,n.bu)(Zo)&&Zo!==!0)return Fi;const Mi=`${typeof Zo}-${Zo}-${Bs}`,ua=B(Rs.theme,`__themeGetter${Xo}`);if(ua.has(Mi))return ua.get(Mi);const ci=ni=>{const Ki=(0,n.is)(Bs)?Bs:ni;let Js=ni;const Ra=(0,n.is)(Ut)?(0,n.nv)(Rs,Ut):null;if((0,n.is)(Ra)){const hi=ni===!0?"default":(0,n.Yj)(ni)||(0,n.bu)(ni)?ni:null;if((0,n.is)(hi)){const Yi=(0,n.nv)(Rs,hi,Ra);Js=Array.isArray(Yi)?Yi.join(","):Yi}}let Al=ni;(0,n.is)(Js)||(Al=Ki,Js=Ki);const Li=(Vn&&Rs.theme&&Rs.theme.transformers?Rs.theme.transformers[Vn]:null)||mt;return Li&&(Js=Li(Js,{rawValue:Al,variants:Ra,props:Rs})),io?io(Js)(Rs):Js};if((Zr||Ro)&&(0,n.Yj)(Zo)){let ni=ci;Zr&&(ni=oe(fe.shorthand,ni)),Ro&&(ni=oe(fe.multiple,ni)),Fi=ni(Zo)}else Fi=ci(Zo);return ua.set(Mi,Fi),Fi};return as.meta={name:Vn,transform:mt},as},ne=({getStyle:Vn,props:mt,cssGetters:Ut={},generators:io})=>{const Zr=Vn;return Zr.meta={props:mt,cssGetters:Ut,getStyle:Zr,generators:io},Zr.apply=Ro=>({theme:Xo})=>Zr(q({theme:Xo},Ro)),Zr},re=(Vn,mt,Ut)=>{const io=B(Vn.theme,"__variants"),Zr=F(Vn,io);let Ro={};for(const Xo in mt){const as=Ut(mt[Xo]);if(as===null)continue;const Zo=Xo in Zr?Zr[Xo]:Xo;Zo!==void 0&&(Zo===null?Ro=(0,n.h1)(Ro,as):Ro[Zo]=Ro[Zo]?(0,n.kp)(Ro[Zo],as):as)}return Ro},ge=(Vn,mt,Ut)=>io=>{const Zr=Bs=>(0,n.is)(Bs)?(0,n.WL)(Bs)?re(io,Bs,Zr):(0,n.DJ)(mt(Ut?Ut(Bs)(io):Bs),io):null,Ro=io[Vn];if(!(0,n.is)(Ro))return null;const Xo=B(io.theme,Vn),as=(0,n.WL)(Ro)?JSON.stringify(Ro):Ro;if(Xo.has(as))return Xo.get(as);const Zo=Zr(Ro);return Xo.set(as,Zo),Zo},ee=(Vn,mt)=>{for(const Ut in mt){const io=mt[Ut],Zr=Vn[io];Zr&&(delete Vn[io],Vn[io]=Zr)}return Vn};function ve(...Vn){var mt;const Ut={},io=[],Zr={},Ro=as=>{if(!as||!as.meta)return;const Zo=as.meta.props;for(let Bs=0;Bs<Zo.length;Bs++){const Rs=Zo[Bs];Ut[Rs]=as,io.push(Rs)}Object.assign(Zr,as.meta.cssGetters)};for(let as=0;as<Vn.length;as++){const Zo=Vn[as];if((0,n.R8)(Boolean(Zo),'Undefined generator in "compose" method'),!Zo)continue;const Bs=(mt=Zo.meta)==null?void 0:mt.generators;if(Bs)for(let Rs=0;Rs<Bs.length;Rs++)Ro(Bs[Rs]);else Ro(Zo)}return ne({getStyle:(as,Zo=!0)=>{const Bs={};let Rs=!1;for(const Mi in as){const ua=Ut[Mi];if(ua){const ci=ua.meta.getStyle(as,!1);(0,n.h1)(Bs,ci),Rs=!0}}if(!Rs||!Zo)return Bs;const Fi=F(as,B(as.theme,"__states"));return ee(Bs,Fi)},props:io,cssGetters:Zr,generators:Vn})}const We=Vn=>mt=>{if((0,n.Yj)(Vn))return{[Vn]:mt};const Ut={};if(!Vn)return Ut;for(let io=0;io<Vn.length;io++)Ut[Vn[io]]=mt;return Ut},qe=Vn=>(0,n.Pc)(Vn)?Vn:We(Vn),nn=Vn=>Vn.replace(/[A-Z]/g,"-$&").toLowerCase(),ye=({prop:Vn,css:mt,themeGet:Ut,key:io,transform:Zr,cssProps:Ro})=>{const Xo=Ut||(io||Zr?me({key:io,transform:Zr}):void 0),as=Ro||((0,n.Yj)(mt)?[mt]:Array.isArray(mt)?mt:(0,n.Yj)(Vn)?[Vn]:Array.isArray(Vn)?Vn:[]);if(Array.isArray(Vn)){const Mi=mt&&qe(mt),ua=Vn.map(ci=>ye({prop:ci,css:Mi,cssProps:as,themeGet:Xo}));return ve(...ua)}const Zo=[Vn],Bs=qe(mt||Zo),Rs=ge(Vn,Bs,Xo),Fi={};if(Xo)for(let Mi=0;Mi<as.length;Mi++)Fi[nn(as[Mi])]=Xo;return ve(ne({getStyle:Rs,props:Zo,cssGetters:Fi}))},ce=me({name:"px",transform:(Vn,{props:mt})=>{var Ut,io,Zr;const Ro=(Zr=(io=(Ut=mt?.theme)==null?void 0:Ut.settings)==null?void 0:io.rootFontSize)!=null?Zr:void 0,Xo=Number(Vn);return i(h(Number.isNaN(Xo)?Vn:Xo,{rootFontSize:Ro}))}}),Pe=me({name:"duration",key:"durations",transform:Vn=>{const mt=Number(Vn);return d(Number.isNaN(mt)?Vn:mt)}}),Be=me({name:"angle",transform:Vn=>{const mt=Number(Vn);return c(Number.isNaN(mt)?Vn:mt)}}),De=me({name:"percent",compose:ce,transform:b}),Ye=me({name:"transition",key:"transitions"}),He=me({name:"transitionProperty",key:"transitionProperties"}),sn=me({name:"timingFunction",key:"timingFunctions"}),tn=ye({prop:"transition",themeGet:Ye}),vn=ye({prop:"transitionProperty",themeGet:He}),Le=ye({prop:"transitionDuration",themeGet:Pe}),ue=ye({prop:"transitionTimingFunction",themeGet:sn}),xe=ye({prop:"transitionDelay",themeGet:Pe}),Ke=ve(tn,vn,Le,ue,xe),rn=me({name:"animation",key:"animations"}),bn=ye({prop:"animation",themeGet:rn}),Ie=ye({prop:"animationDuration",themeGet:Pe}),ze=ye({prop:"animationTimingFunction",themeGet:sn}),be=ve(bn,Ie,ze),un=me({name:"color",key:"colors"}),Ne={"gradient-to-t":"linear-gradient(to top, var(--x-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--x-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--x-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--x-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--x-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--x-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--x-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--x-gradient-stops))"},yn=ye({prop:"background",css:Vn=>({background:Ne[Vn]||Vn})}),Cn=ye({prop:["backgroundColor","bg"],css:"backgroundColor",themeGet:un}),Rn=ye({prop:"backgroundImage",css:Vn=>({backgroundImage:Ne[Vn]||Vn})}),Ce=ye({prop:"backgroundSize"}),de=ye({prop:"backgroundPosition"}),Ee=ye({prop:"backgroundRepeat"}),Xe=ye({prop:"backgroundAttachment"}),gn=ye({prop:"backgroundClip",css:["backgroundClip","-webkitBackgroundClip"]}),V=ye({prop:"gradientFrom",themeGet:un,css:Vn=>({"--x-gradient-from":Vn,"--x-gradient-stops":"var(--x-gradient-from), var(--x-gradient-to, transparent)"})}),ie=ye({prop:"gradientVia",themeGet:un,css:Vn=>({"--x-gradient-stops":`var(--x-gradient-from), ${Vn}, var(--x-gradient-to, transparent)`})}),le=ye({prop:"gradientTo",themeGet:un,css:"--x-gradient-to"}),Te=ve(yn,Cn,Rn,Ce,de,Ee,Xe,gn,V,ie,le),Qe=me({name:"border",key:"borders",transform:Vn=>{const mt=Number(Vn);return mt>0?`${i(mt)} solid`:Vn}}),zn=me({name:"borderWidth",key:"borderWidths",compose:ce,shorthand:!0}),it=me({name:"borderColor",compose:un,shorthand:!0}),Jn=me({name:"borderStyle",key:"borderStyles"}),$t=ye({prop:"border",themeGet:Qe}),rr=ye({prop:"borderTop",themeGet:Qe}),fr=ye({prop:"borderRight",themeGet:Qe}),Br=ye({prop:"borderBottom",themeGet:Qe}),rt=ye({prop:"borderLeft",themeGet:Qe}),en=ye({prop:"borderColor",themeGet:it}),kn=ye({prop:"borderTopColor",themeGet:un}),En=ye({prop:"borderRightColor",themeGet:un}),In=ye({prop:"borderBottomColor",themeGet:un}),xt=ye({prop:"borderLeftColor",themeGet:un}),Pt=ye({prop:"borderWidth",themeGet:zn}),Lt=ye({prop:"borderTopWidth",themeGet:zn}),Ht=ye({prop:"borderRightWidth",themeGet:zn}),mr=ye({prop:"borderBottomWidth",themeGet:zn}),Hn=ye({prop:"borderLeftWidth",themeGet:zn}),Bn=ye({prop:"borderStyle",themeGet:Jn,cssProps:["borderStyle","borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"]}),Xn=ye({prop:"borderTopStyle",themeGet:Jn}),Qn=ye({prop:"borderRightStyle",themeGet:Jn}),ct=ye({prop:"borderBottomStyle",themeGet:Jn}),Ve=ye({prop:"borderLeftStyle",themeGet:Jn}),dn=ye({prop:"outline",themeGet:Qe}),An=ye({prop:"outlineColor",themeGet:un}),Zn=ye({prop:"outlineWidth",themeGet:zn}),dt=ye({prop:"outlineStyle",themeGet:Jn}),C=ye({prop:"outlineOffset",themeGet:zn}),J=me({name:"radius",key:"radii",compose:ce,shorthand:!0}),we=ye({prop:"borderRadius",themeGet:J,cssProps:["borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"]}),Ge="& > :not([hidden]) ~ :not([hidden])",ae=ye({prop:"divideY",themeGet:zn,css:Vn=>{const mt=Vn===!0?1:Vn;return{[Ge]:{"--x-divide-y-reverse":0,borderTopWidth:`calc(${mt} * calc(1 - var(--x-divide-y-reverse)))`,borderBottomWidth:`calc(${mt} * var(--x-divide-y-reverse))`}}}}),Fe=ye({prop:"divideX",themeGet:zn,css:Vn=>{const mt=Vn===!0?1:Vn;return{[Ge]:{"--x-divide-x-reverse":0,borderRightWidth:`calc(${mt} * var(--x-divide-x-reverse))`,borderLeftWidth:`calc(${mt} * calc(1 - var(--x-divide-x-reverse)))`}}}}),Re=ye({prop:"divideXReverse",css:()=>({[Ge]:{"--x-divide-x-reverse":"1"}})}),an=ye({prop:"divideYReverse",css:()=>({[Ge]:{"--x-divide-y-reverse":"1"}})}),Tn=ye({prop:"divideColor",themeGet:un,css:Vn=>({[Ge]:{borderColor:Vn}})}),xn=ye({prop:"divideStyle",themeGet:Jn,css:Vn=>({[Ge]:{borderStyle:Vn}})}),Wn=me({name:"ringWidth",key:"ringWidths",compose:ce}),ot=ye({prop:"ring",themeGet:Wn,css:Vn=>({"--x-ring-shadow":`var(--x-ring-inset, /*!*/ /*!*/) 0 0 0 ${Vn} var(--x-ring-color)`,boxShadow:"var(--x-ring-shadow, 0 0 #0000), var(--x-shadow, 0 0 #0000)"})}),vt=ye({prop:"ringInset",css:()=>({"--x-ring-inset":"inset"})}),Mt=ye({prop:"ringColor",themeGet:un,css:Vn=>({"--x-ring-color":Vn})}),kt=ve($t,rr,fr,Br,rt,en,kn,En,In,xt,Pt,Lt,Ht,mr,Hn,Bn,Xn,Qn,ct,Ve,we,dn,An,Zn,dt,C,Fe,ae,Re,an,Tn,xn,ot,vt,Mt),tr=me({name:"shadow",key:"shadows",multiple:!0}),hr=ye({prop:"opacity"}),cr=ye({prop:"boxShadow",themeGet:tr,css:Vn=>({"--x-shadow":Vn,boxShadow:"var(--x-ring-shadow, 0 0 #0000), var(--x-shadow)"})}),yr=ye({prop:"textShadow",themeGet:tr}),zr=ve(hr,cr,yr);var or=Object.defineProperty,Sr=Object.getOwnPropertySymbols,Ur=Object.prototype.hasOwnProperty,Tr=Object.prototype.propertyIsEnumerable,Ae=(Vn,mt,Ut)=>mt in Vn?or(Vn,mt,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):Vn[mt]=Ut,Ue=(Vn,mt)=>{for(var Ut in mt||(mt={}))Ur.call(mt,Ut)&&Ae(Vn,Ut,mt[Ut]);if(Sr)for(var Ut of Sr(mt))Tr.call(mt,Ut)&&Ae(Vn,Ut,mt[Ut]);return Vn};const fn=ye({prop:"row",css:()=>({boxSizing:"border-box",flexGrow:1,flexWrap:"wrap",display:"flex"})}),mn=(Vn,mt)=>{if(!(0,n.is)(mt))return null;if(mt===!0)return{flexBasis:0,flexGrow:1,maxWidth:"100%"};if(mt==="auto")return{flex:"0 0 auto",maxWidth:"none",width:"auto"};const Ut=De(mt)(Vn);return{flex:`0 0 ${Ut}`,maxWidth:Ut}},Dn=ne({getStyle:Vn=>{const mt=Vn.col,Ut={boxSizing:"border-box",flexBasis:0,flexGrow:1,maxWidth:"100%"};if((0,n.WL)(mt)){const io=re(Vn,mt,Zr=>mn(Vn,Zr));return Ue(Ue({},Ut),io)}return Ue(Ue({},Ut),mn(Vn,mt))},props:["col"]}),$n=ve(fn,Dn);var Nn=Object.defineProperty,et=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,It=(Vn,mt,Ut)=>mt in Vn?Nn(Vn,mt,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):Vn[mt]=Ut,Jt=(Vn,mt)=>{for(var Ut in mt||(mt={}))tt.call(mt,Ut)&&It(Vn,Ut,mt[Ut]);if(et)for(var Ut of et(mt))bt.call(mt,Ut)&&It(Vn,Ut,mt[Ut]);return Vn};const nr=ye({prop:"display"}),wt=ye({prop:"float"}),dr=ye({prop:"boxSizing"}),pr=ne({getStyle:Vn=>{if(!Vn.container)return null;const mt=U(Vn);let Ut=re(Vn,mt,io=>io!==0?{maxWidth:io}:{});return(0,n.WL)(Vn.container)&&(Ut=re(Vn,Vn.container,()=>Ut)),Jt({width:"100%"},Ut)},props:["container"]}),jr=ye({prop:"overflow"}),Xr=ye({prop:"overflowX"}),Rr=ye({prop:"overflowY"}),Or=me({name:"zIndex",key:"zIndices"}),lr=ye({prop:"zIndex",themeGet:Or}),fo=ye({prop:"position"}),co=me({name:"inset",key:"inset",compose:ce,transform:v}),At=ye({prop:"top",themeGet:co}),no=ye({prop:"right",themeGet:co}),Oo=ye({prop:"bottom",themeGet:co}),ko=ye({prop:"left",themeGet:co}),Pn=ye({prop:"visibility"}),Yn=ye({prop:"overscrollBehavior"}),ht=ye({prop:"objectFit"}),Kt=ve(dr,nr,wt,pr,jr,Xr,Rr,fo,lr,At,no,Oo,ko,Pn,Yn,ht),ar=ye({prop:"alignItems"}),xr=ye({prop:"alignContent"}),at=ye({prop:"justifyContent"}),wn=ye({prop:"justifyItems"}),Gn=ye({prop:"flexWrap"}),qn=ye({prop:"flexGrow"}),Tt=ye({prop:"flexShrink"}),Yt=ye({prop:"flexBasis",themeGet:De}),qt=ye({prop:"flexDirection"}),Kr=ye({prop:"flex"}),Dr=ye({prop:"justifySelf"}),Ze=ye({prop:"alignSelf"}),Se=ye({prop:"order"}),ke=ve(nr,ar,xr,at,wn,Gn,Yt,Tt,qn,qt,Kr,Dr,Ze,Se),on=me({name:"space",key:"space",compose:ce,shorthand:!0,transform:v}),Sn=ye({prop:["margin","m"],themeGet:on,css:"margin"}),Ft=ye({prop:["marginTop","mt"],themeGet:on,css:"marginTop"}),pt=ye({prop:["marginRight","mr"],themeGet:on,css:"marginRight"}),gt=ye({prop:["marginBottom","mb"],themeGet:on,css:"marginBottom"}),Wt=ye({prop:["marginLeft","ml"],themeGet:on,css:"marginLeft"}),zt=ye({prop:"mx",themeGet:on,css:["marginRight","marginLeft"]}),Pr=ye({prop:"my",themeGet:on,css:["marginTop","marginBottom"]}),Cr=ye({prop:["padding","p"],themeGet:on,css:"padding"}),Wr=ye({prop:["paddingTop","pt"],themeGet:on,css:"paddingTop"}),Hr=ye({prop:["paddingRight","pr"],themeGet:on,css:"paddingRight"}),vo=ye({prop:["paddingBottom","pb"],themeGet:on,css:"paddingBottom"}),Co=ye({prop:["paddingLeft","pl"],themeGet:on,css:"paddingLeft"}),xo=ye({prop:"px",themeGet:on,css:["paddingRight","paddingLeft"]}),ho=ye({prop:"py",themeGet:on,css:["paddingTop","paddingBottom"]}),Ko=ye({prop:"spaceY",themeGet:on,css:Vn=>({"& > :not([hidden]) ~ :not([hidden])":{"--x-space-y-reverse":0,marginTop:`calc(${Vn} * calc(1 - var(--x-space-y-reverse)))`,marginBottom:`calc(${Vn} * var(--x-space-y-reverse))`}})}),Me=ye({prop:"spaceX",themeGet:on,css:Vn=>({"& > :not([hidden]) ~ :not([hidden])":{"--x-space-x-reverse":0,marginRight:`calc(${Vn} * var(--x-space-x-reverse))`,marginLeft:`calc(${Vn} * calc(1 - var(--x-space-x-reverse)))`}})}),$e=ye({prop:"spaceXReverse",css:()=>({"& > :not([hidden]) ~ :not([hidden])":{"--x-space-x-reverse":"1"}})}),pn=ye({prop:"spaceYReverse",css:()=>({"& > :not([hidden]) ~ :not([hidden])":{"--x-space-y-reverse":"1"}})}),_n=ve(Sn,Ft,pt,gt,Wt,zt,Pr,Cr,Wr,Hr,vo,Co,xo,ho,Me,Ko,$e,pn),Kn=ye({prop:"gap",themeGet:on}),st=ye({prop:"columnGap",themeGet:on}),yt=ye({prop:"rowGap",themeGet:on}),Ot=ye({prop:"gridColumn"}),ur=ye({prop:"gridRow"}),br=ye({prop:"gridAutoFlow"}),gr=ye({prop:"gridAutoColumns"}),bo=ye({prop:"gridAutoRows"}),Lo=ye({prop:"gridTemplateColumns",key:"gridTemplateColumns"}),Bo=ye({prop:"gridTemplateRows",key:"gridTemplateRows"}),Wo=ye({prop:"gridTemplateAreas"}),Jr=ye({prop:"gridArea"}),Vr=ve(Kn,st,yt,Ot,ur,br,gr,bo,Lo,Bo,Wo,Jr),so=ye({prop:"appearance"}),cs=ye({prop:"cursor"}),rs=ye({prop:"pointerEvents"}),os=ye({prop:"resize"}),Ps=ye({prop:"userSelect"}),Us=ve(so,cs,rs,os,Ps),Ds=me({name:"size",key:"sizes",compose:De}),Ai=ye({prop:"w",themeGet:Ds,css:"width"}),$s=ye({prop:"h",themeGet:Ds,css:"height"}),ft=ye({prop:["maxWidth","maxW"],themeGet:Ds,css:"maxWidth"}),Dt=ye({prop:["maxHeight","maxH"],themeGet:Ds,css:"maxHeight"}),Zt=ye({prop:["minWidth","minW"],themeGet:Ds,css:"minWidth"}),Er=ye({prop:["minHeight","minH"],themeGet:Ds,css:"minHeight"}),Mr=ye({prop:"maskSize",themeGet:me({name:"size",key:"sizes",compose:De,multiple:!0,shorthand:!0})}),Qr=ve(Ai,$s,ft,Dt,Zt,Er,Mr),So=ye({prop:"fill",themeGet:un}),lo=ye({prop:"stroke",themeGet:un}),mo=ve(So,lo),to=ye({prop:"borderCollapse"}),oo=ye({prop:"tableLayout"}),Ao=ve(to,oo),$o=me({name:"transform",key:"transforms"}),jt=ye({prop:"transform",themeGet:$o,css:Vn=>Vn===!0?{"--x-translate-x":0,"--x-translate-y":0,"--x-rotate":0,"--x-skew-x":0,"--x-skew-y":0,"--x-scale-x":"1","--x-scale-y":"1",transform:"translate3d(var(--x-translate-x), var(--x-translate-y), 0) rotate(var(--x-rotate)) skewX(var(--x-skew-x)) skewY(var(--x-skew-y)) scaleX(var(--x-scale-x)) scaleY(var(--x-scale-y))"}:{transform:Vn}}),Bt=ye({prop:"transformOrigin"}),Ct=ye({prop:"translateX",themeGet:on,css:"--x-translate-x"}),Lr=ye({prop:"translateY",themeGet:on,css:"--x-translate-y"}),To=ye({prop:"rotate",themeGet:Be,css:"--x-rotate"}),Uo=ye({prop:"skewX",themeGet:Be,css:"--x-skew-x"}),hs=ye({prop:"skewY",themeGet:Be,css:"--x-skew-y"}),Go=ye({prop:"scale",transform:Vn=>String(Vn),css:["--x-scale-x","--x-scale-y"]}),_o=ye({prop:"scaleX",transform:Vn=>String(Vn),css:"--x-scale-x"}),xs=ye({prop:"scaleY",transform:Vn=>String(Vn),css:"--x-scale-y"}),ws=ve(jt,Bt,Ct,Lr,To,Uo,hs,Go,_o,xs);var qs=Object.defineProperty,Ks=Object.defineProperties,Qo=Object.getOwnPropertyDescriptors,ls=Object.getOwnPropertySymbols,vi=Object.prototype.hasOwnProperty,es=Object.prototype.propertyIsEnumerable,As=(Vn,mt,Ut)=>mt in Vn?qs(Vn,mt,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):Vn[mt]=Ut,Oi=(Vn,mt)=>{for(var Ut in mt||(mt={}))vi.call(mt,Ut)&&As(Vn,Ut,mt[Ut]);if(ls)for(var Ut of ls(mt))es.call(mt,Ut)&&As(Vn,Ut,mt[Ut]);return Vn},bi=(Vn,mt)=>Ks(Vn,Qo(mt));const Pa=me({name:"font",key:"fonts"}),Ml=me({name:"lineHeight",key:"lineHeights",transform:(Vn,{props:mt})=>{var Ut,io,Zr;const Ro=(Zr=(io=(Ut=mt?.theme)==null?void 0:Ut.settings)==null?void 0:io.rootFontSize)!=null?Zr:void 0;return h(Vn,{rootFontSize:Ro})}}),xl=me({name:"fontWeight",key:"fontWeights"}),Je=me({name:"letterSpacing",key:"letterSpacings",compose:ce}),Oe=me({name:"fontSize",key:"fontSizes",compose:ce}),cn=ye({prop:"fontFamily",themeGet:Pa}),Un=ye({prop:"fontSize",themeGet:Oe}),_t=ye({prop:"fontVariant"}),sr=ye({prop:"lineHeight",themeGet:Ml}),eo=ye({prop:"fontWeight",themeGet:xl}),Ir=ye({prop:"fontStyle"}),Qt=ye({prop:"letterSpacing",themeGet:Je}),_r=ye({prop:"color",themeGet:un}),No=ye({prop:"textTransform"}),Yo=ye({prop:"textDecoration"}),ns=ye({prop:"textAlign"}),ds=ye({prop:"verticalAlign"}),fi=ye({prop:"whiteSpace"}),oa=ye({prop:"textOverflow"}),sa=ye({prop:"listStyleType"}),$a=ye({prop:"listStylePosition"}),cl=ve(_n,cn,Un,Ir,_t,sr,eo,ns,Qt,_r,No,Yo,ds,fi,oa,sa,$a),ga=ye({prop:"text",key:"texts",css:Vn=>({theme:mt})=>cl(bi(Oi({},Vn),{theme:mt}))}),ml=ve(cl,ga),ia=ve(be,Te,kt,zr,$n,ke,Vr,Us,Kt,Qr,_n,mo,Ao,ws,Ke,ml),ks=(Vn,mt)=>Ut=>{const io=(0,n.nv)(Ut,Vn);return(0,n.is)(io)?io:(0,n.is)(mt)?mt:Vn};[Be,rn,Qe,it,Jn,zn,un,Pe,Pa,Oe,xl,co,Je,Ml,De,ce,J,Wn,tr,Ds,on,sn,$o,Ye,He,Or].forEach(Vn=>{ks[Vn.meta.name]=Vn});const Ls=(Vn,mt)=>Ut=>{const io=U(Ut),Zr=S(io,Vn);return Zr===null?mt:[`${g(Zr)} {`,mt,"}"]},pl=(Vn,mt)=>Ut=>{const io=U(Ut),Zr=P(io,Vn);return Zr===null?null:[`${x(Zr)} {`,mt,"}"]},pd=(Vn,mt,Ut)=>io=>{const Zr=U(io),Ro=S(Zr,Vn),Xo=P(Zr,mt);return Xo===null?Ls(Vn,Ut)(io):Ro===null?pl(mt,Ut)(io):[`${j(Ro,Xo)} {`,Ut,"}"]},wl=Vn=>mt=>{const Ut=[],io=Object.keys(Vn),Zr=io.length;for(let Ro=0;Ro<Zr;Ro++){const Xo=io[Ro],as=Vn[Xo],Zo=Ls(Xo,as)(mt);Array.isArray(Zo)?Zo.forEach(Bs=>Ut.push(Bs)):Ut.push(Zo)}return Ut},ro=null;var go=Object.defineProperty,Yr=Object.getOwnPropertySymbols,Fo=Object.prototype.hasOwnProperty,yo=Object.prototype.propertyIsEnumerable,wo=(Vn,mt,Ut)=>mt in Vn?go(Vn,mt,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):Vn[mt]=Ut,_s=(Vn,mt)=>{for(var Ut in mt||(mt={}))Fo.call(mt,Ut)&&wo(Vn,Ut,mt[Ut]);if(Yr)for(var Ut of Yr(mt))yo.call(mt,Ut)&&wo(Vn,Ut,mt[Ut]);return Vn};const ii=[0,5,10,20,25,30,40,50,60,70,75,80,90,95,100],ei=(Vn,mt=ii)=>{const Ut=(Zr,Ro)=>`${Zr}${Math.round(Ro/100*255).toString(16).padStart(2,"0")}`,io=Object.keys(Vn).reduce((Zr,Ro)=>(mt.forEach(Xo=>{const as=Vn[Ro],Zo=`${Ro}-a${Xo}`;Zr[Zo]=(0,n.Yj)(as)?Ut(as,Xo):ei(as,mt)}),Zr),{});return _s(_s({},Vn),io)},zs=null,ki=(Vn,mt,Ut=zs,io=ii)=>Ut.reduce((Zr,Ro)=>(Zr[`${Vn}-${Ro}`]=ks.color(`${mt}-${Ro}`),io.forEach(Xo=>{Zr[`${Vn}-${Ro}-a${Xo}`]=ks.color(`${mt}-${Ro}-a${Xo}`)}),Zr),{});var za=Object.defineProperty,Da=Object.defineProperties,aa=Object.getOwnPropertyDescriptors,la=Object.getOwnPropertySymbols,Ci=Object.prototype.hasOwnProperty,fl=Object.prototype.propertyIsEnumerable,On=(Vn,mt,Ut)=>mt in Vn?za(Vn,mt,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):Vn[mt]=Ut,Sl=(Vn,mt)=>{for(var Ut in mt||(mt={}))Ci.call(mt,Ut)&&On(Vn,Ut,mt[Ut]);if(la)for(var Ut of la(mt))fl.call(mt,Ut)&&On(Vn,Ut,mt[Ut]);return Vn},ya=(Vn,mt)=>Da(Vn,aa(mt));const ai={.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},ms={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},El={default:["background-color","border-color","color","fill","stroke","opacity","box-shadow","transform"],colors:["background-color","border-color","color","fill","stroke"],opacity:["opacity"],shadow:["box-shadow"],transform:["transform"]},fd=Object.keys(El).reduce((Vn,mt)=>(Vn[mt]=El[mt].map(Ut=>`${Ut} ${ms["ease-in-out"]} 150ms`).join(","),Vn),{}),da={black:"#000000",white:"#ffffff","blue-gray-50":"#f8fafc","blue-gray-100":"#f1f5f9","blue-gray-200":"#e2e8f0","blue-gray-300":"#cbd5e1","blue-gray-400":"#94a3b8","blue-gray-500":"#64748b","blue-gray-600":"#475569","blue-gray-700":"#334155","blue-gray-800":"#1e293b","blue-gray-900":"#0f172a","cool-gray-50":"#f9fafb","cool-gray-100":"#f3f4f6","cool-gray-200":"#e5e7eb","cool-gray-300":"#d1d5db","cool-gray-400":"#9ca3af","cool-gray-500":"#6b7280","cool-gray-600":"#4b5563","cool-gray-700":"#374151","cool-gray-800":"#1f2937","cool-gray-900":"#111827","gray-50":"#fafafa","gray-100":"#f4f4f5","gray-200":"#e4e4e7","gray-300":"#d4d4d8","gray-400":"#a1a1aa","gray-500":"#71717a","gray-600":"#52525b","gray-700":"#3f3f46","gray-800":"#27272a","gray-900":"#18181b","true-gray-50":"#fafafa","true-gray-100":"#f5f5f5","true-gray-200":"#e5e5e5","true-gray-300":"#d4d4d4","true-gray-400":"#a3a3a3","true-gray-500":"#737373","true-gray-600":"#525252","true-gray-700":"#404040","true-gray-800":"#262626","true-gray-900":"#171717","warm-gray-50":"#fafaf9","warm-gray-100":"#f5f5f4","warm-gray-200":"#e7e5e4","warm-gray-300":"#d6d3d1","warm-gray-400":"#a8a29e","warm-gray-500":"#78716c","warm-gray-600":"#57534e","warm-gray-700":"#44403c","warm-gray-800":"#292524","warm-gray-900":"#1c1917","red-50":"#fef2f2","red-100":"#fee2e2","red-200":"#fecaca","red-300":"#fca5a5","red-400":"#f87171","red-500":"#ef4444","red-600":"#dc2626","red-700":"#b91c1c","red-800":"#991b1b","red-900":"#7f1d1d","orange-50":"#fff7ed","orange-100":"#ffedd5","orange-200":"#fed7aa","orange-300":"#fdba74","orange-400":"#fb923c","orange-500":"#f97316","orange-600":"#ea580c","orange-700":"#c2410c","orange-800":"#9a3412","orange-900":"#7c2d12","amber-50":"#fffbeb","amber-100":"#fef3c7","amber-200":"#fde68a","amber-300":"#fcd34d","amber-400":"#fbbf24","amber-500":"#f59e0b","amber-600":"#d97706","amber-700":"#b45309","amber-800":"#92400e","amber-900":"#78350f","yellow-50":"#fefce8","yellow-100":"#fef9c3","yellow-200":"#fef08a","yellow-300":"#fde047","yellow-400":"#facc15","yellow-500":"#eab308","yellow-600":"#ca8a04","yellow-700":"#a16207","yellow-800":"#854d0e","yellow-900":"#713f12","lime-50":"#f7fee7","lime-100":"#ecfccb","lime-200":"#d9f99d","lime-300":"#bef264","lime-400":"#a3e635","lime-500":"#84cc16","lime-600":"#65a30d","lime-700":"#4d7c0f","lime-800":"#3f6212","lime-900":"#365314","green-50":"#f0fdf4","green-100":"#dcfce7","green-200":"#bbf7d0","green-300":"#86efac","green-400":"#4ade80","green-500":"#22c55e","green-600":"#16a34a","green-700":"#15803d","green-800":"#166534","green-900":"#14532d","emerald-50":"#ecfdf5","emerald-100":"#d1fae5","emerald-200":"#a7f3d0","emerald-300":"#6ee7b7","emerald-400":"#34d399","emerald-500":"#10b981","emerald-600":"#059669","emerald-700":"#047857","emerald-800":"#065f46","emerald-900":"#064e3b","teal-50":"#f0fdfa","teal-100":"#ccfbf1","teal-200":"#99f6e4","teal-300":"#5eead4","teal-400":"#2dd4bf","teal-500":"#14b8a6","teal-600":"#0d9488","teal-700":"#0f766e","teal-800":"#115e59","teal-900":"#134e4a","cyan-50":"#ecfeff","cyan-100":"#cffafe","cyan-200":"#a5f3fc","cyan-300":"#67e8f9","cyan-400":"#22d3ee","cyan-500":"#06b6d4","cyan-600":"#0891b2","cyan-700":"#0e7490","cyan-800":"#155e75","cyan-900":"#164e63","light-blue-50":"#f0f9ff","light-blue-100":"#e0f2fe","light-blue-200":"#bae6fd","light-blue-300":"#7dd3fc","light-blue-400":"#38bdf8","light-blue-500":"#0ea5e9","light-blue-600":"#0284c7","light-blue-700":"#0369a1","light-blue-800":"#075985","light-blue-900":"#0c4a6e","blue-50":"#eff6ff","blue-100":"#dbeafe","blue-200":"#bfdbfe","blue-300":"#93c5fd","blue-400":"#60a5fa","blue-500":"#3b82f6","blue-600":"#2563eb","blue-700":"#1d4ed8","blue-800":"#1e40af","blue-900":"#1e3a8a","indigo-50":"#eef2ff","indigo-100":"#e0e7ff","indigo-200":"#c7d2fe","indigo-300":"#a5b4fc","indigo-400":"#818cf8","indigo-500":"#6366f1","indigo-600":"#4f46e5","indigo-700":"#4338ca","indigo-800":"#3730a3","indigo-900":"#312e81","violet-50":"#f5f3ff","violet-100":"#ede9fe","violet-200":"#ddd6fe","violet-300":"#c4b5fd","violet-400":"#a78bfa","violet-500":"#8b5cf6","violet-600":"#7c3aed","violet-700":"#6d28d9","violet-800":"#5b21b6","violet-900":"#4c1d95","purple-50":"#faf5ff","purple-100":"#f3e8ff","purple-200":"#e9d5ff","purple-300":"#d8b4fe","purple-400":"#c084fc","purple-500":"#a855f7","purple-600":"#9333ea","purple-700":"#7e22ce","purple-800":"#6b21a8","purple-900":"#581c87","fuchsia-50":"#fdf4ff","fuchsia-100":"#fae8ff","fuchsia-200":"#f5d0fe","fuchsia-300":"#f0abfc","fuchsia-400":"#e879f9","fuchsia-500":"#d946ef","fuchsia-600":"#c026d3","fuchsia-700":"#a21caf","fuchsia-800":"#86198f","fuchsia-900":"#701a75","pink-50":"#fdf2f8","pink-100":"#fce7f3","pink-200":"#fbcfe8","pink-300":"#f9a8d4","pink-400":"#f472b6","pink-500":"#ec4899","pink-600":"#db2777","pink-700":"#be185d","pink-800":"#9d174d","pink-900":"#831843","rose-50":"#fff1f2","rose-100":"#ffe4e6","rose-200":"#fecdd3","rose-300":"#fda4af","rose-400":"#fb7185","rose-500":"#f43f5e","rose-600":"#e11d48","rose-700":"#be123c","rose-800":"#9f1239","rose-900":"#881337"},_i={xs:"0.75rem",sm:"0.875rem",default:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},Ns=Object.keys(_i).reduce((Vn,mt)=>(Vn[mt]={fontSize:mt,lineHeight:mt},Vn),{}),Gs={colors:ei(da),space:ai,screens:{_:0,xs:0,sm:640,md:768,lg:1024,xl:1280,"2xl":1536},durations:{instant:"100ms","fast-in":"250ms","fast-out":"200ms","slow-in":"300ms","slow-out":"250ms"},sizes:ya(Sl({},ai),{.5:void 0,1:void 0,"0.5s":ai[.5],"1s":ai[1],full:"100%",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"}),radii:{none:"0",sm:"0.125rem",default:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},shadows:{xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",default:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",inner:"inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)",outline:"0 0 0 3px rgba(66, 153, 225, 0.5)"},fontSizes:_i,fontWeights:{hairline:"100",thin:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},fonts:{mono:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',serif:'ui-serif, Georgia, Cambria, "Times New Roman", Times, serif',sans:'ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"'},letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{none:1,tight:1.25,snug:1.375,normal:1.5,relaxed:1.625,loose:2,3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",xs:"1rem",sm:"1.25rem",default:"1.5rem",lg:"1.75rem",xl:"1.75rem","2xl":"2rem","3xl":"2.25rem","4xl":"2.5rem","5xl":1,"6xl":1,"7xl":1,"8xl":1,"9xl":1},gridTemplateColumns:{1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))"},borderWidths:{default:1},ringWidths:{default:3},borders:{default:"1px solid transparent"},texts:Ns,transitions:fd,transitionProperties:El,timingFunctions:ms,animations:{spin:"x-spin 1s linear infinite",ping:"x-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"x-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"x-bounce 1s infinite"},states:{_:null,motionSafe:"@media (prefers-reduced-motion: no-preference)",motionReduce:"@media (prefers-reduced-motion: reduce)",first:"&:first-child",last:"&:last-child",odd:"&:odd",even:"&:even",visited:"&:visited",checked:"&:checked",focusWithin:"&:focus-within",hover:"&:hover",focus:"&:focus",focusVisible:"&:focus-visible",active:"&:active",disabled:"&:disabled, &[aria-disabled=true]",placeholder:"&::placeholder"},xstyled:{cache:!0}},ui=Vn=>`
|