@icanbwell/composite 1.1064.1 → 1.1064.2-alpha.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/279.index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";(globalThis.webpackChunk_icanbwell_composite=globalThis.webpackChunk_icanbwell_composite||[]).push([[279],{3279:(F,d,n)=>{n.r(d),n.d(d,{DefaultErrorBoundaryFallback:()=>v});function l(r,t,o,e){if(o==="a"&&!e)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?r!==t||!e:!t.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?e:o==="a"?e.call(r):e?e.value:t.get(r)}var u=n(934);const f="Looks like something went wrong when loading this page. Please try refreshing it.",h=r=>f;var c=n(9226);function C(r){var t;let o=h(c.ErrorCode.UNKNOWN),e=c.ErrorCode.UNKNOWN;return r instanceof u.b&&(e=(t=r.errorCode)!==null&&t!==void 0?t:e,o=h()),{message:o,errorCode:e}}var b=n(1677),a,i,g;const m="bwell-error-component";class w extends HTMLElement{static get observedAttributes(){return["message"]}constructor(){super(),a.add(this),this.attachShadow({mode:"open"})}connectedCallback(){var t,o;const{message:e}=C(),s=l(this,a,"m",g).call(this);this.shadowRoot.appendChild(s),l(this,a,"m",i).call(this,"message",this.getAttribute("message")||e),(o=(t=this.shadowRoot)===null||t===void 0?void 0:t.getElementById("refresh"))===null||o===void 0||o.addEventListener("click",()=>{this.resetError()})}attributeChangedCallback(t,o,e){l(this,a,"m",i).call(this,t,e)}resetError(){b.b.reloadView()}}a=new WeakSet,i=function(t,o){var e;const s=(e=this.shadowRoot)===null||e===void 0?void 0:e.getElementById(t);s&&(s.innerHTML=o)},g=function(){var t,o;let e=(o=(t=document.getElementById("bwell-custom-error-template"))===null||t===void 0?void 0:t.content)===null||o===void 0?void 0:o.cloneNode(!0);return e||(e=document.createElement("article"),e.innerHTML=`
1
+ "use strict";(globalThis.webpackChunk_icanbwell_composite=globalThis.webpackChunk_icanbwell_composite||[]).push([[279],{3279:(F,d,n)=>{n.r(d),n.d(d,{DefaultErrorBoundaryFallback:()=>v});function l(r,t,o,e){if(o==="a"&&!e)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?r!==t||!e:!t.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?e:o==="a"?e.call(r):e?e.value:t.get(r)}var u=n(934);const f="Looks like something went wrong when loading this page. Please try refreshing it.",h=r=>f;var c=n(9226);function C(r){var t;let o=h(c.ErrorCode.UNKNOWN),e=c.ErrorCode.UNKNOWN;return r instanceof u.b&&(e=(t=r.errorCode)!==null&&t!==void 0?t:e,o=h()),{message:o,errorCode:e}}var b=n(331),a,i,g;const m="bwell-error-component";class w extends HTMLElement{static get observedAttributes(){return["message"]}constructor(){super(),a.add(this),this.attachShadow({mode:"open"})}connectedCallback(){var t,o;const{message:e}=C(),s=l(this,a,"m",g).call(this);this.shadowRoot.appendChild(s),l(this,a,"m",i).call(this,"message",this.getAttribute("message")||e),(o=(t=this.shadowRoot)===null||t===void 0?void 0:t.getElementById("refresh"))===null||o===void 0||o.addEventListener("click",()=>{this.resetError()})}attributeChangedCallback(t,o,e){l(this,a,"m",i).call(this,t,e)}resetError(){b.b.reloadView()}}a=new WeakSet,i=function(t,o){var e;const s=(e=this.shadowRoot)===null||e===void 0?void 0:e.getElementById(t);s&&(s.innerHTML=o)},g=function(){var t,o;let e=(o=(t=document.getElementById("bwell-custom-error-template"))===null||t===void 0?void 0:t.content)===null||o===void 0?void 0:o.cloneNode(!0);return e||(e=document.createElement("article"),e.innerHTML=`
2
2
  <style>
3
3
  :host {
4
4
  --background: #FFFFFF;
package/279.index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack://@icanbwell/composite/javascript/node_modules/@icanbwell/embeddable-core/node_modules/@icanbwell/ui-toolkit-v2/_virtual/_tslib.js","webpack://@icanbwell/composite/javascript/node_modules/@icanbwell/frontend-telemetry/lib/core/errors/get-error-messsage.js","webpack://@icanbwell/composite/javascript/node_modules/@icanbwell/frontend-telemetry/lib/core/errors/get-error-details.js","webpack://@icanbwell/composite/javascript/node_modules/@icanbwell/embeddable-core/node_modules/@icanbwell/ui-toolkit-v2/web-components/error-web-component.js","webpack://@icanbwell/composite/javascript/node_modules/@icanbwell/embeddable-core/node_modules/@icanbwell/ui-toolkit-v2/components/DefaultErrorBoundaryFallback.js"],"names":["__classPrivateFieldGet","receiver","state","kind","f","genericMesssage","getErrorMessage","errorCode","getErrorDetails","error","_a","message","_ErrorPageWebComponent_instances","_ErrorPageWebComponent_setValue","_ErrorPageWebComponent_template","ERROR_COMPONENT_TAG_NAME","ErrorPageWebComponent","_b","defaultMessage","template","name","_oldValue","newValue","value","el","DefaultErrorBoundaryFallback","errorDetails","resetError","ref","errorComponent"],"mappings":"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","file":"279.index.js","sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n\r\nfunction __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\n\nexport { __classPrivateFieldGet };\n","// TODO: Come up with a translation strategy. I18next?\nconst genericMesssage = 'Looks like something went wrong when loading this page. Please try refreshing it.';\nconst getErrorMessage = errorCode => {\n // Custom error messages here\n return genericMesssage;\n};\n\nexport { getErrorMessage };\n","import { BwellError } from './bwell-error.js';\nimport { getErrorMessage } from './get-error-messsage.js';\nimport { ErrorCode } from '@icanbwell/types';\n\nfunction getErrorDetails(error) {\n var _a;\n let message = getErrorMessage(ErrorCode.UNKNOWN);\n let errorCode = ErrorCode.UNKNOWN;\n if (error instanceof BwellError) {\n errorCode = (_a = error.errorCode) !== null && _a !== void 0 ? _a : errorCode;\n message = getErrorMessage();\n }\n return {\n message,\n errorCode\n };\n}\n\nexport { getErrorDetails };\n","import { __classPrivateFieldGet } from '../_virtual/_tslib.js';\nimport { getErrorDetails } from '@icanbwell/frontend-telemetry';\nimport { nativeBridge } from '@icanbwell/native-bridge';\n\nvar _ErrorPageWebComponent_instances, _ErrorPageWebComponent_setValue, _ErrorPageWebComponent_template;\nconst ERROR_COMPONENT_TAG_NAME = 'bwell-error-component';\nclass ErrorPageWebComponent extends HTMLElement {\n static get observedAttributes() {\n return ['message'];\n }\n constructor() {\n super();\n _ErrorPageWebComponent_instances.add(this);\n this.attachShadow({\n mode: 'open'\n });\n }\n connectedCallback() {\n var _a, _b;\n const {\n message: defaultMessage\n } = getErrorDetails();\n const template = __classPrivateFieldGet(this, _ErrorPageWebComponent_instances, \"m\", _ErrorPageWebComponent_template).call(this);\n this.shadowRoot.appendChild(template);\n __classPrivateFieldGet(this, _ErrorPageWebComponent_instances, \"m\", _ErrorPageWebComponent_setValue).call(this, 'message', this.getAttribute('message') || defaultMessage);\n (_b = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById('refresh')) === null || _b === void 0 ? void 0 : _b.addEventListener('click', () => {\n this.resetError();\n });\n }\n attributeChangedCallback(name, _oldValue, newValue) {\n __classPrivateFieldGet(this, _ErrorPageWebComponent_instances, \"m\", _ErrorPageWebComponent_setValue).call(this, name, newValue);\n }\n resetError() {\n // default behavior that can be overridden\n nativeBridge.reloadView();\n }\n}\n_ErrorPageWebComponent_instances = new WeakSet(), _ErrorPageWebComponent_setValue = function _ErrorPageWebComponent_setValue(name, value) {\n var _a;\n const el = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById(name);\n if (el) {\n el.innerHTML = value;\n }\n}, _ErrorPageWebComponent_template = function _ErrorPageWebComponent_template() {\n var _a, _b;\n let template = (_b = (_a = document.getElementById('bwell-custom-error-template')) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.cloneNode(true);\n if (!template) {\n template = document.createElement('article');\n // TODO: Do an accessibility review. Does body present any challenges?\n template.innerHTML = `\n <style>\n :host {\n --background: #FFFFFF;\n --messageTextColor: #6F6F6F;\n }\n article {\n background: var(--background);\n font-family: regular,sans-serif;\n font-size: 16px;\n font-style: normal;\n font-weight: 400;\n letter-spacing: 0px;\n line-height: 20px;\n margin: auto;\n max-width: 340px;\n text-align: center;\n }\n h3 {\n color: #2E3586;\n font-size: 28px;\n font-style: normal;\n font-weight: 400;\n line-height: 34px;\n }\n p {\n color: var(--messageTextColor);\n }\n button {\n background: #2E3586;\n border-radius: 5px;\n height: 55px;\n width: 200px;\n border: none;\n cursor: pointer;\n }\n button>span {\n color: #FFFFFF;\n font-size: 18px;\n font-style: normal;\n font-weight: 700;\n line-height: 22px;\n }\n </style>\n <header>\n <svg width=\"100\" height=\"100\" viewBox=\"0 0 100 100\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <g clip-path=\"url(#clip0_645_19)\">\n <path d=\"M98.1598 74.7658L62.8319 11.0741C60.1952 6.38657 55.3902 3.51562 50 3.51562C44.6099 3.51562 39.8049 6.38657 37.1681 11.0741L1.84023 74.7658C-0.679762 79.3358 -0.621016 84.7855 2.07445 89.2967C4.71117 93.8087 9.45742 96.5042 14.6721 96.5042H85.3279C90.5426 96.5042 95.2889 93.8087 97.9256 89.2967C100.621 84.7855 100.68 79.3358 98.1598 74.7658Z\" fill=\"#FDBF00\"/>\n <path d=\"M97.9255 89.2967C95.2888 93.8087 90.5433 96.5042 85.3279 96.5042H50V3.51562C55.3902 3.51562 60.1952 6.38657 62.8319 11.0741L98.1598 74.7658C100.68 79.3358 100.621 84.7855 97.9255 89.2967Z\" fill=\"#FF9F00\"/>\n <path d=\"M41.2109 20.3325V64.2778H58.7891V20.3325H41.2109Z\" fill=\"#5A5A5A\"/>\n <path d=\"M50 70.137C45.1363 70.137 41.2109 74.0623 41.2109 78.926C41.2109 83.789 45.1363 87.7151 50 87.7151C54.8637 87.7151 58.7891 83.789 58.7891 78.926C58.7891 74.0623 54.8637 70.137 50 70.137Z\" fill=\"#5A5A5A\"/>\n <path d=\"M58.7891 78.926C58.7891 83.789 54.8637 87.7151 50 87.7151V70.137C54.8637 70.137 58.7891 74.0623 58.7891 78.926Z\" fill=\"#444444\"/>\n <path d=\"M50 20.3323H58.7891V64.2776H50V20.3323Z\" fill=\"#444444\"/>\n </g>\n <defs>\n <clipPath id=\"clip0_645_19\">\n <rect width=\"100\" height=\"100\" fill=\"white\"/>\n </clipPath>\n </defs>\n </svg>\n </header>\n <h3>Oops!</h3>\n <p id=\"message\">Looks like something went wrong when loading this page. Please try refreshing it.</p>\n <button id=\"refresh\">\n <span>Refresh</span>\n </button>\n `;\n }\n return template;\n};\nif (!customElements.get(ERROR_COMPONENT_TAG_NAME)) {\n customElements.define(ERROR_COMPONENT_TAG_NAME, ErrorPageWebComponent);\n}\n\nexport { ERROR_COMPONENT_TAG_NAME, ErrorPageWebComponent };\n","import { jsx } from 'react/jsx-runtime';\nimport { useRef, useEffect } from 'react';\n\nconst DefaultErrorBoundaryFallback = ({\n errorDetails,\n resetError\n}) => {\n const ref = useRef();\n useEffect(() => {\n const errorComponent = ref.current;\n if (errorComponent) {\n errorComponent.resetError = resetError;\n }\n }, []);\n return jsx(\"bwell-error-component\", {\n message: errorDetails.message,\n ref: ref\n });\n};\n\nexport { DefaultErrorBoundaryFallback };\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack://@icanbwell/composite/javascript/node_modules/@icanbwell/embeddable-core/node_modules/@icanbwell/ui-toolkit-v2/_virtual/_tslib.js","webpack://@icanbwell/composite/javascript/node_modules/@icanbwell/frontend-telemetry/lib/core/errors/get-error-messsage.js","webpack://@icanbwell/composite/javascript/node_modules/@icanbwell/frontend-telemetry/lib/core/errors/get-error-details.js","webpack://@icanbwell/composite/javascript/node_modules/@icanbwell/embeddable-core/node_modules/@icanbwell/ui-toolkit-v2/web-components/error-web-component.js","webpack://@icanbwell/composite/javascript/node_modules/@icanbwell/embeddable-core/node_modules/@icanbwell/ui-toolkit-v2/components/DefaultErrorBoundaryFallback.js"],"names":["__classPrivateFieldGet","receiver","state","kind","f","genericMesssage","getErrorMessage","errorCode","getErrorDetails","error","_a","message","_ErrorPageWebComponent_instances","_ErrorPageWebComponent_setValue","_ErrorPageWebComponent_template","ERROR_COMPONENT_TAG_NAME","ErrorPageWebComponent","_b","defaultMessage","template","name","_oldValue","newValue","value","el","DefaultErrorBoundaryFallback","errorDetails","resetError","ref","errorComponent"],"mappings":"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","file":"279.index.js","sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n\r\nfunction __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\n\nexport { __classPrivateFieldGet };\n","// TODO: Come up with a translation strategy. I18next?\nconst genericMesssage = 'Looks like something went wrong when loading this page. Please try refreshing it.';\nconst getErrorMessage = errorCode => {\n // Custom error messages here\n return genericMesssage;\n};\n\nexport { getErrorMessage };\n","import { BwellError } from './bwell-error.js';\nimport { getErrorMessage } from './get-error-messsage.js';\nimport { ErrorCode } from '@icanbwell/types';\n\nfunction getErrorDetails(error) {\n var _a;\n let message = getErrorMessage(ErrorCode.UNKNOWN);\n let errorCode = ErrorCode.UNKNOWN;\n if (error instanceof BwellError) {\n errorCode = (_a = error.errorCode) !== null && _a !== void 0 ? _a : errorCode;\n message = getErrorMessage();\n }\n return {\n message,\n errorCode\n };\n}\n\nexport { getErrorDetails };\n","import { __classPrivateFieldGet } from '../_virtual/_tslib.js';\nimport { getErrorDetails } from '@icanbwell/frontend-telemetry';\nimport { nativeBridge } from '@icanbwell/native-bridge';\n\nvar _ErrorPageWebComponent_instances, _ErrorPageWebComponent_setValue, _ErrorPageWebComponent_template;\nconst ERROR_COMPONENT_TAG_NAME = 'bwell-error-component';\nclass ErrorPageWebComponent extends HTMLElement {\n static get observedAttributes() {\n return ['message'];\n }\n constructor() {\n super();\n _ErrorPageWebComponent_instances.add(this);\n this.attachShadow({\n mode: 'open'\n });\n }\n connectedCallback() {\n var _a, _b;\n const {\n message: defaultMessage\n } = getErrorDetails();\n const template = __classPrivateFieldGet(this, _ErrorPageWebComponent_instances, \"m\", _ErrorPageWebComponent_template).call(this);\n this.shadowRoot.appendChild(template);\n __classPrivateFieldGet(this, _ErrorPageWebComponent_instances, \"m\", _ErrorPageWebComponent_setValue).call(this, 'message', this.getAttribute('message') || defaultMessage);\n (_b = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById('refresh')) === null || _b === void 0 ? void 0 : _b.addEventListener('click', () => {\n this.resetError();\n });\n }\n attributeChangedCallback(name, _oldValue, newValue) {\n __classPrivateFieldGet(this, _ErrorPageWebComponent_instances, \"m\", _ErrorPageWebComponent_setValue).call(this, name, newValue);\n }\n resetError() {\n // default behavior that can be overridden\n nativeBridge.reloadView();\n }\n}\n_ErrorPageWebComponent_instances = new WeakSet(), _ErrorPageWebComponent_setValue = function _ErrorPageWebComponent_setValue(name, value) {\n var _a;\n const el = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById(name);\n if (el) {\n el.innerHTML = value;\n }\n}, _ErrorPageWebComponent_template = function _ErrorPageWebComponent_template() {\n var _a, _b;\n let template = (_b = (_a = document.getElementById('bwell-custom-error-template')) === null || _a === void 0 ? void 0 : _a.content) === null || _b === void 0 ? void 0 : _b.cloneNode(true);\n if (!template) {\n template = document.createElement('article');\n // TODO: Do an accessibility review. Does body present any challenges?\n template.innerHTML = `\n <style>\n :host {\n --background: #FFFFFF;\n --messageTextColor: #6F6F6F;\n }\n article {\n background: var(--background);\n font-family: regular,sans-serif;\n font-size: 16px;\n font-style: normal;\n font-weight: 400;\n letter-spacing: 0px;\n line-height: 20px;\n margin: auto;\n max-width: 340px;\n text-align: center;\n }\n h3 {\n color: #2E3586;\n font-size: 28px;\n font-style: normal;\n font-weight: 400;\n line-height: 34px;\n }\n p {\n color: var(--messageTextColor);\n }\n button {\n background: #2E3586;\n border-radius: 5px;\n height: 55px;\n width: 200px;\n border: none;\n cursor: pointer;\n }\n button>span {\n color: #FFFFFF;\n font-size: 18px;\n font-style: normal;\n font-weight: 700;\n line-height: 22px;\n }\n </style>\n <header>\n <svg width=\"100\" height=\"100\" viewBox=\"0 0 100 100\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <g clip-path=\"url(#clip0_645_19)\">\n <path d=\"M98.1598 74.7658L62.8319 11.0741C60.1952 6.38657 55.3902 3.51562 50 3.51562C44.6099 3.51562 39.8049 6.38657 37.1681 11.0741L1.84023 74.7658C-0.679762 79.3358 -0.621016 84.7855 2.07445 89.2967C4.71117 93.8087 9.45742 96.5042 14.6721 96.5042H85.3279C90.5426 96.5042 95.2889 93.8087 97.9256 89.2967C100.621 84.7855 100.68 79.3358 98.1598 74.7658Z\" fill=\"#FDBF00\"/>\n <path d=\"M97.9255 89.2967C95.2888 93.8087 90.5433 96.5042 85.3279 96.5042H50V3.51562C55.3902 3.51562 60.1952 6.38657 62.8319 11.0741L98.1598 74.7658C100.68 79.3358 100.621 84.7855 97.9255 89.2967Z\" fill=\"#FF9F00\"/>\n <path d=\"M41.2109 20.3325V64.2778H58.7891V20.3325H41.2109Z\" fill=\"#5A5A5A\"/>\n <path d=\"M50 70.137C45.1363 70.137 41.2109 74.0623 41.2109 78.926C41.2109 83.789 45.1363 87.7151 50 87.7151C54.8637 87.7151 58.7891 83.789 58.7891 78.926C58.7891 74.0623 54.8637 70.137 50 70.137Z\" fill=\"#5A5A5A\"/>\n <path d=\"M58.7891 78.926C58.7891 83.789 54.8637 87.7151 50 87.7151V70.137C54.8637 70.137 58.7891 74.0623 58.7891 78.926Z\" fill=\"#444444\"/>\n <path d=\"M50 20.3323H58.7891V64.2776H50V20.3323Z\" fill=\"#444444\"/>\n </g>\n <defs>\n <clipPath id=\"clip0_645_19\">\n <rect width=\"100\" height=\"100\" fill=\"white\"/>\n </clipPath>\n </defs>\n </svg>\n </header>\n <h3>Oops!</h3>\n <p id=\"message\">Looks like something went wrong when loading this page. Please try refreshing it.</p>\n <button id=\"refresh\">\n <span>Refresh</span>\n </button>\n `;\n }\n return template;\n};\nif (!customElements.get(ERROR_COMPONENT_TAG_NAME)) {\n customElements.define(ERROR_COMPONENT_TAG_NAME, ErrorPageWebComponent);\n}\n\nexport { ERROR_COMPONENT_TAG_NAME, ErrorPageWebComponent };\n","import { jsx } from 'react/jsx-runtime';\nimport { useRef, useEffect } from 'react';\n\nconst DefaultErrorBoundaryFallback = ({\n errorDetails,\n resetError\n}) => {\n const ref = useRef();\n useEffect(() => {\n const errorComponent = ref.current;\n if (errorComponent) {\n errorComponent.resetError = resetError;\n }\n }, []);\n return jsx(\"bwell-error-component\", {\n message: errorDetails.message,\n ref: ref\n });\n};\n\nexport { DefaultErrorBoundaryFallback };\n"],"sourceRoot":""}
package/823.index.js ADDED
@@ -0,0 +1,19 @@
1
+ (globalThis.webpackChunk_icanbwell_composite=globalThis.webpackChunk_icanbwell_composite||[]).push([[823],{331:(T,d,u)=>{"use strict";u.d(d,{b:()=>At});var e=u(5478),f;class _{constructor(i){f.set(this,void 0),(0,e.__classPrivateFieldSet)(this,f,i,"f")}get isWithin(){return!!window.ReactNativeWebView}open(i){(0,e.__classPrivateFieldGet)(this,f,"f").emit("openwebview",i)}close(i){(0,e.__classPrivateFieldGet)(this,f,"f").emit("closewebview",i)}reload(i=!1){(0,e.__classPrivateFieldGet)(this,f,"f").emit("reloadwebview",i)}}f=new WeakMap;var v=u(692),E=u.n(v);const p=(c,i)=>E().bind(`${c}.${String(i)}`),a=c=>i=>p(c,i);var s,r;const w=a("biometrics");class g{constructor(i){s.set(this,void 0),r.set(this,w("isAvailable")),this.isAvailable=()=>(0,e.__awaiter)(this,void 0,void 0,function*(){return(0,e.__classPrivateFieldGet)(this,s,"f").isWithin?yield(0,e.__classPrivateFieldGet)(this,r,"f").call(this):!1}),this.getBiometryInformation=w("getBiometryInformation"),this.biometricKeysExist=w("biometricKeysExist"),this.createKeys=w("createKeys"),this.createSignature=w("createSignature"),this.deleteKeys=w("deleteKeys"),this.checkPermission=w("checkPermission"),this.requestPermission=w("requestPermission"),(0,e.__classPrivateFieldSet)(this,s,i,"f")}}s=new WeakMap,r=new WeakMap;const n=a("events");class m{constructor(){this.emit=n("emit")}}var o=u(5057);const y=o.bind({concatArrays:!0,ignoreUndefined:!0});function M(c,i){const h=window.localStorage.getItem(c);if(h){const P=JSON.parse(h),j=JSON.parse(i),L=JSON.stringify(y(P,j));window.localStorage.setItem(c,L)}else window.localStorage.setItem(c,i)}function I(c,i){return new Promise((h,P)=>{try{const j=c();i?.(null,j),h(j)}catch(j){i?.(j),P(j)}})}function N(c,i,h){return Promise.all(c).then(P=>{const j=h?.(P)??null;return i?.(null,j),Promise.resolve(j)},P=>(i?.(P),Promise.reject(P)))}const B={getItem:(c,i)=>I(()=>window.localStorage.getItem(c),i),setItem:(c,i,h)=>I(()=>window.localStorage.setItem(c,i),h),removeItem:(c,i)=>I(()=>window.localStorage.removeItem(c),i),mergeItem:(c,i,h)=>I(()=>M(c,i),h),clear:c=>I(()=>window.localStorage.clear(),c),getAllKeys:c=>I(()=>{const i=window.localStorage.length,h=[];for(let P=0;P<i;P+=1){const j=window.localStorage.key(P)||"";h.push(j)}return h},c),flushGetRequests:()=>{},multiGet:(c,i)=>{const h=c.map(j=>B.getItem(j));return N(h,i,j=>j.map((L,Q)=>[c[Q],L]))},multiSet:(c,i)=>{const h=c.map(P=>B.setItem(P[0],P[1]));return N(h,i)},multiRemove:(c,i)=>{const h=c.map(P=>B.removeItem(P));return N(h,i)},multiMerge:(c,i)=>{const h=c.map(P=>B.mergeItem(P[0],P[1]));return N(h,i)}},R=B;function ue(c){return{getItem:(...i)=>AsyncStorage.getItem(c,...i),setItem:(...i)=>AsyncStorage.setItem(c,...i),mergeItem:(...i)=>AsyncStorage.mergeItem(c,...i),removeItem:(...i)=>AsyncStorage.removeItem(c,...i)}}const ee=R;var $,oe,J,se;const te=a("storage");class le{constructor(i){$.set(this,void 0),oe.set(this,te("setItem")),J.set(this,te("getItem")),se.set(this,te("removeItem")),(0,e.__classPrivateFieldSet)(this,$,i,"f")}setItem(i,h){return(0,e.__awaiter)(this,void 0,void 0,function*(){(0,e.__classPrivateFieldGet)(this,$,"f").isWithin?yield(0,e.__classPrivateFieldGet)(this,oe,"f").call(this,i,h):ee.setItem(i,h)})}getItem(i){return(0,e.__classPrivateFieldGet)(this,$,"f").isWithin?(0,e.__classPrivateFieldGet)(this,J,"f").call(this,i):ee.getItem(i)}removeItem(i){return(0,e.__awaiter)(this,void 0,void 0,function*(){(0,e.__classPrivateFieldGet)(this,$,"f").isWithin?yield(0,e.__classPrivateFieldGet)(this,se,"f").call(this,i):ee.removeItem(i)})}}$=new WeakMap,oe=new WeakMap,J=new WeakMap,se=new WeakMap;var H,V;const q=a("camera");class k{constructor(i){H.set(this,void 0),V.set(this,q("isAvailable")),this.isAvailable=()=>(0,e.__awaiter)(this,void 0,void 0,function*(){return(0,e.__classPrivateFieldGet)(this,H,"f").isWithin?yield(0,e.__classPrivateFieldGet)(this,V,"f").call(this):!1}),this.checkPermission=q("checkPermission"),this.checkRollPermission=q("checkRollPermission"),this.requestPermission=q("requestPermission"),this.requestRollPermission=q("requestRollPermission"),(0,e.__classPrivateFieldSet)(this,H,i,"f")}}H=new WeakMap,V=new WeakMap;var U=u(934),x=u(3758),K,t,l,S,W;const O=a("geolocation");class F{constructor(i){K.set(this,void 0),t.set(this,O("isAvailable")),l.set(this,O("getCurrentPosition")),S.set(this,O("checkPermission")),W.set(this,O("requestPermission")),this.isAvailable=()=>(0,e.__awaiter)(this,void 0,void 0,function*(){return(0,e.__classPrivateFieldGet)(this,K,"f").isWithin?(0,e.__classPrivateFieldGet)(this,t,"f").call(this):!!navigator.geolocation}),this.getCurrentPosition=h=>(0,e.__awaiter)(this,void 0,void 0,function*(){if((0,e.__classPrivateFieldGet)(this,K,"f").isWithin)return(0,e.__classPrivateFieldGet)(this,l,"f").call(this,h);try{const{state:P}=yield navigator.permissions.query({name:"geolocation"});if(P==="granted"||P==="prompt")return yield new Promise((j,L)=>navigator.geolocation.getCurrentPosition(j,L,h))}catch(P){throw new U.b(`Failed to retrieve the permission or the position is unavailable. ${P.message}`,{errorCode:x.O.UNKNOWN})}throw new U.b("Permission Denied.",{errorCode:x.O.INSUFFICIENT_PERMISSIONS})}),this.checkPermission=()=>(0,e.__awaiter)(this,void 0,void 0,function*(){return(0,e.__classPrivateFieldGet)(this,K,"f").isWithin?(0,e.__classPrivateFieldGet)(this,S,"f").call(this):(yield navigator.permissions.query({name:"geolocation"})).state}),this.requestPermission=()=>(0,e.__awaiter)(this,void 0,void 0,function*(){if((0,e.__classPrivateFieldGet)(this,K,"f").isWithin)return yield(0,e.__classPrivateFieldGet)(this,W,"f").call(this);{const{state:h}=yield navigator.permissions.query({name:"geolocation"});return(h==="granted"||h==="prompt")&&(yield new Promise((P,j)=>navigator.geolocation.getCurrentPosition(P,j))),h}}),(0,e.__classPrivateFieldSet)(this,K,i,"f")}}K=new WeakMap,t=new WeakMap,l=new WeakMap,S=new WeakMap,W=new WeakMap;var C=u(1204),D=u.n(C),A=u(7931),G=u.n(A),ae,fe;const Xe=c=>{if(!D()(c))return!1;try{return new URL(c).protocol==="https:"}catch{return!1}},Ye=a("print");class Qe{constructor(i){ae.set(this,void 0),fe.set(this,Ye("print")),(0,e.__classPrivateFieldSet)(this,ae,i,"f")}print(i){return(0,e.__awaiter)(this,void 0,void 0,function*(){if(i.html){if((0,e.__classPrivateFieldGet)(this,ae,"f").isWithin)return yield(0,e.__classPrivateFieldGet)(this,fe,"f").call(this,{html:i.html});G()({type:"raw-html",printable:i.html})}else if(i.filePath&&Xe(i.filePath)){const h={filePath:i.filePath};if((0,e.__classPrivateFieldGet)(this,ae,"f").isWithin)return yield(0,e.__classPrivateFieldGet)(this,fe,"f").call(this,h);G()({type:"pdf",printable:h.filePath})}else throw new U.b("Filepath must be an https URL.",{errorCode:x.O.UNKNOWN})})}}ae=new WeakMap,fe=new WeakMap;var Z,be,Pe,ge,Ee;const de=a("documentDownload"),Se={"image/jpeg":"jpeg","image/png":"png","image/svg+xml":"svg","application/pdf":"pdf","text/calendar":"ics"},et=c=>{const i=c.trim();if(!i||i==="."||i==="..")throw new U.b("Invalid filename.",{errorCode:x.O.UNKNOWN});if(/[\\/]/.test(i)||i.includes("\0"))throw new U.b("Invalid filename.",{errorCode:x.O.UNKNOWN});return i},tt=c=>{const i=/^\s*data:([a-z]+\/[a-z0-9\-+]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,[a-z0-9!$&',()*+,;=\-._~:@/?%\s]*\s*$/i;return!!c.match(i)},it=c=>c.substring(c.indexOf(":")+1,c.indexOf(";")),nt=(c,i)=>{if(!tt(i))throw new U.b("Invalid Data URL Format.",{errorCode:x.O.UNKNOWN});const h=it(i);return he(h),`${c}.${Se[h]}`},he=c=>{if(!Object.keys(Se).includes(c))throw new U.b("Invalid or unallowed file type.",{errorCode:x.O.UNKNOWN})};class rt{constructor(i){Z.set(this,void 0),be.set(this,de("isAvailable")),Pe.set(this,de("writeFile")),ge.set(this,de("checkPermission")),Ee.set(this,de("requestPermission")),this.isAvailable=h=>(0,e.__awaiter)(this,void 0,void 0,function*(){return he(h),(0,e.__classPrivateFieldGet)(this,Z,"f").isWithin?(0,e.__classPrivateFieldGet)(this,be,"f").call(this,h):!0}),this.writeFile=(h,P)=>(0,e.__awaiter)(this,void 0,void 0,function*(){const j=et(h);if(Object.values(Se).some(Q=>j.includes(Q)))throw new U.b("Filename should not contain extension",{errorCode:x.O.UNKNOWN});const L=nt(j,P);if((0,e.__classPrivateFieldGet)(this,Z,"f").isWithin)return(0,e.__classPrivateFieldGet)(this,Pe,"f").call(this,L,P);{const Q=document.createElement("a");return Q.href=P,Q.download=L,Q.click(),"Files"}}),this.checkPermission=h=>(0,e.__awaiter)(this,void 0,void 0,function*(){return he(h),(0,e.__classPrivateFieldGet)(this,Z,"f").isWithin?(0,e.__classPrivateFieldGet)(this,ge,"f").call(this,h):"granted"}),this.requestPermission=h=>(0,e.__awaiter)(this,void 0,void 0,function*(){return he(h),(0,e.__classPrivateFieldGet)(this,Z,"f").isWithin?yield(0,e.__classPrivateFieldGet)(this,Ee,"f").call(this,h):"granted"}),(0,e.__classPrivateFieldSet)(this,Z,i,"f")}}Z=new WeakMap,be=new WeakMap,Pe=new WeakMap,ge=new WeakMap,Ee=new WeakMap;const ie=Object.freeze({UNAVAILABLE:"unavailable",BLOCKED:"blocked",DENIED:"denied",GRANTED:"granted",LIMITED:"limited"}),Me="Only supported by iOS 14 and above";async function ot(){throw new Error(Me)}async function st(c){throw new Error(Me)}async function lt(){throw new Error(Me)}async function He(){return ie.UNAVAILABLE}async function Ve(){return{status:ie.UNAVAILABLE,settings:{}}}async function Je(c){return c.reduce((i,h)=>(i[h]=ie.UNAVAILABLE,i),{})}const z={check:He,checkLocationAccuracy:ot,checkMultiple:Je,checkNotifications:Ve,openLimitedPhotoLibraryPicker:lt,openSettings:Promise.reject,request:He,requestLocationAccuracy:st,requestMultiple:Je,requestNotifications:Ve},at=Object.freeze({ANDROID:{},IOS:{},WINDOWS:{}}),ct=z.check,ut=z.checkLocationAccuracy,ft=z.checkMultiple,dt=z.checkNotifications,ht=z.openLimitedPhotoLibraryPicker,vt=z.openSettings,pt=z.request,mt=z.requestLocationAccuracy,yt=z.requestMultiple,wt=z.requestNotifications,Ft={PERMISSIONS:at,RESULTS:ie,check:ct,checkLocationAccuracy:ut,checkMultiple:ft,checkNotifications:dt,openLimitedPhotoLibraryPicker:ht,openSettings:vt,request:pt,requestLocationAccuracy:mt,requestMultiple:yt,requestNotifications:wt};var X,Oe,Ie,We,je;const ve=a("documentPicker"),_t=c=>new Promise((i,h)=>{const P=new FileReader;P.readAsDataURL(c),P.onload=()=>i(P.result.replace("data:","").replace(/^.+,/,"")),P.onerror=h}),qe=c=>new Promise((i,h)=>{const P=document.createElement("input");P.type="file",c===!0&&(P.multiple=c),P.onchange=({target:j})=>(0,e.__awaiter)(void 0,void 0,void 0,function*(){try{i(yield Promise.all(Object.values(j.files).map(L=>(0,e.__awaiter)(void 0,void 0,void 0,function*(){return{type:L.type,name:L.name,size:L.size,base64:yield _t(L)}}))))}catch(L){h(L)}}),P.click()});class bt{constructor(i){X.set(this,void 0),Oe.set(this,ve("pickMultiple")),Ie.set(this,ve("pickSingle")),We.set(this,ve("checkPermission")),je.set(this,ve("requestPermission")),this.pickMultiple=()=>(0,e.__classPrivateFieldGet)(this,X,"f").isWithin?(0,e.__classPrivateFieldGet)(this,Oe,"f").call(this):qe(!0),this.checkPermission=()=>(0,e.__awaiter)(this,void 0,void 0,function*(){return(0,e.__classPrivateFieldGet)(this,X,"f").isWithin?yield(0,e.__classPrivateFieldGet)(this,We,"f").call(this):Promise.resolve(ie.GRANTED)}),this.requestPermission=()=>(0,e.__awaiter)(this,void 0,void 0,function*(){return(0,e.__classPrivateFieldGet)(this,X,"f").isWithin?yield(0,e.__classPrivateFieldGet)(this,je,"f").call(this):Promise.resolve(ie.GRANTED)}),(0,e.__classPrivateFieldSet)(this,X,i,"f")}pickSingle(){return(0,e.__awaiter)(this,void 0,void 0,function*(){return(0,e.__classPrivateFieldGet)(this,X,"f").isWithin?(0,e.__classPrivateFieldGet)(this,Ie,"f").call(this):(yield qe(!1))[0]})}}X=new WeakMap,Oe=new WeakMap,Ie=new WeakMap,We=new WeakMap,je=new WeakMap;var Y,Ae,Fe,De,Ce;const pe=a("pushNotifications");class Pt{constructor(i){Y.set(this,void 0),Ae.set(this,pe("isAvailable")),Fe.set(this,pe("getDeviceToken")),De.set(this,pe("checkPermission")),Ce.set(this,pe("requestPermission")),this.isAvailable=()=>(0,e.__awaiter)(this,void 0,void 0,function*(){return(0,e.__classPrivateFieldGet)(this,Y,"f").isWithin?(0,e.__classPrivateFieldGet)(this,Ae,"f").call(this):!1}),this.getDeviceToken=()=>(0,e.__awaiter)(this,void 0,void 0,function*(){if((0,e.__classPrivateFieldGet)(this,Y,"f").isWithin)return(0,e.__classPrivateFieldGet)(this,Fe,"f").call(this);throw new Error("This method is currently not supported on web")}),this.checkPermission=()=>(0,e.__awaiter)(this,void 0,void 0,function*(){return(0,e.__classPrivateFieldGet)(this,Y,"f").isWithin?(0,e.__classPrivateFieldGet)(this,De,"f").call(this):"unavailable"}),this.requestPermission=()=>(0,e.__awaiter)(this,void 0,void 0,function*(){return(0,e.__classPrivateFieldGet)(this,Y,"f").isWithin?yield(0,e.__classPrivateFieldGet)(this,Ce,"f").call(this):"unavailable"}),(0,e.__classPrivateFieldSet)(this,Y,i,"f")}}Y=new WeakMap,Ae=new WeakMap,Fe=new WeakMap,De=new WeakMap,Ce=new WeakMap;var me,Ne;const gt=a("deepLink");class Et{constructor(i){me.set(this,void 0),Ne.set(this,gt("openLink")),this.openLink=(h,P="_blank")=>(0,e.__awaiter)(this,void 0,void 0,function*(){if((0,e.__classPrivateFieldGet)(this,me,"f").isWithin)return(0,e.__classPrivateFieldGet)(this,Ne,"f").call(this,h,P);window.open(h.webUrl,P)}),(0,e.__classPrivateFieldSet)(this,me,i,"f")}}me=new WeakMap,Ne=new WeakMap;var ye,ke;const St=a("system");class Mt{constructor(i){ye.set(this,void 0),ke.set(this,St("openSettings")),this.openSettings=()=>(0,e.__awaiter)(this,void 0,void 0,function*(){if((0,e.__classPrivateFieldGet)(this,ye,"f").isWithin)return yield(0,e.__classPrivateFieldGet)(this,ke,"f").call(this)}),(0,e.__classPrivateFieldSet)(this,ye,i,"f")}}ye=new WeakMap,ke=new WeakMap;var ce,Le,Te;const Ze=a("utils");class Ot{constructor(i){ce.set(this,void 0),Le.set(this,Ze("getPlatform")),Te.set(this,Ze("getBundleId")),(0,e.__classPrivateFieldSet)(this,ce,i,"f")}getPlatform(){return(0,e.__awaiter)(this,void 0,void 0,function*(){return(0,e.__classPrivateFieldGet)(this,ce,"f").isWithin?(0,e.__classPrivateFieldGet)(this,Le,"f").call(this):"web"})}getBundleId(){return(0,e.__awaiter)(this,void 0,void 0,function*(){if((0,e.__classPrivateFieldGet)(this,ce,"f").isWithin)return(0,e.__classPrivateFieldGet)(this,Te,"f").call(this);console.warn("bundleId not available on the web")})}}ce=new WeakMap,Le=new WeakMap,Te=new WeakMap;var we,Ge,Re,Ue,Be,ne;const _e=a("connectDevices");class It{constructor(i){we.set(this,void 0),Ge.set(this,_e("startSession")),Re.set(this,_e("syncData")),Ue.set(this,_e("endSession")),Be.set(this,_e("getCurrentUser")),ne.set(this,()=>(0,e.__classPrivateFieldGet)(this,we,"f").isWithin),this.startSession=h=>(0,e.__awaiter)(this,void 0,void 0,function*(){if((0,e.__classPrivateFieldGet)(this,ne,"f").call(this))return(0,e.__classPrivateFieldGet)(this,Ge,"f").call(this,h)}),this.syncData=(h=1)=>(0,e.__awaiter)(this,void 0,void 0,function*(){return(0,e.__classPrivateFieldGet)(this,ne,"f").call(this)?(0,e.__classPrivateFieldGet)(this,Re,"f").call(this,h):[]}),this.endSession=()=>(0,e.__awaiter)(this,void 0,void 0,function*(){if((0,e.__classPrivateFieldGet)(this,ne,"f").call(this))return(0,e.__classPrivateFieldGet)(this,Ue,"f").call(this)}),this.getCurrentUser=()=>(0,e.__awaiter)(this,void 0,void 0,function*(){return(0,e.__classPrivateFieldGet)(this,ne,"f").call(this)?(0,e.__classPrivateFieldGet)(this,Be,"f").call(this):null}),(0,e.__classPrivateFieldSet)(this,we,i,"f")}}we=new WeakMap,Ge=new WeakMap,Re=new WeakMap,Ue=new WeakMap,Be=new WeakMap,ne=new WeakMap;var re,xe,Ke,ze;const $e=a("passkey");class Wt{constructor(i){re.set(this,void 0),xe.set(this,$e("isSupported")),Ke.set(this,$e("create")),ze.set(this,$e("get")),this.isSupported=()=>(0,e.__awaiter)(this,void 0,void 0,function*(){return(0,e.__classPrivateFieldGet)(this,re,"f").isWithin?(0,e.__classPrivateFieldGet)(this,xe,"f").call(this):!1}),this.create=h=>(0,e.__awaiter)(this,void 0,void 0,function*(){if(!(0,e.__classPrivateFieldGet)(this,re,"f").isWithin)throw new Error("Native passkey bridge is only available within a native WebView.");return(0,e.__classPrivateFieldGet)(this,Ke,"f").call(this,h)}),this.get=h=>(0,e.__awaiter)(this,void 0,void 0,function*(){if(!(0,e.__classPrivateFieldGet)(this,re,"f").isWithin)throw new Error("Native passkey bridge is only available within a native WebView.");return(0,e.__classPrivateFieldGet)(this,ze,"f").call(this,h)}),(0,e.__classPrivateFieldSet)(this,re,i,"f")}}re=new WeakMap,xe=new WeakMap,Ke=new WeakMap,ze=new WeakMap;class jt{constructor(){this.events=new m,this.webview=new _(this.events),this.biometrics=new g(this.webview),this.storage=new le(this.webview),this.camera=new k(this.webview),this.geolocation=new F(this.webview),this.print=new Qe(this.webview),this.documentDownload=new rt(this.webview),this.documentPicker=new bt(this.webview),this.pushNotifications=new Pt(this.webview),this.deepLink=new Et(this.webview),this.utils=new Ot(this.webview),this.system=new Mt(this.webview),this.connectDevices=new It(this.webview),this.passkey=new Wt(this.webview)}reloadView(i=!1){this.webview.isWithin?this.webview.reload(i):globalThis.location.reload()}}const At=new jt},1204:T=>{"use strict";T.exports=d=>{if(typeof d!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof d}\``);return/^[a-zA-Z]:\\/.test(d)?!1:/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(d)}},5057:function(T,d,u){"use strict";const e=u(4428),{hasOwnProperty:f}=Object.prototype,{propertyIsEnumerable:_}=Object,v=(o,b,y)=>Object.defineProperty(o,b,{value:y,writable:!0,enumerable:!0,configurable:!0}),E=this,p={concatArrays:!1,ignoreUndefined:!1},a=o=>{const b=[];for(const y in o)f.call(o,y)&&b.push(y);if(Object.getOwnPropertySymbols){const y=Object.getOwnPropertySymbols(o);for(const M of y)_.call(o,M)&&b.push(M)}return b};function s(o){return Array.isArray(o)?r(o):e(o)?w(o):o}function r(o){const b=o.slice(0,0);return a(o).forEach(y=>{v(b,y,s(o[y]))}),b}function w(o){const b=Object.getPrototypeOf(o)===null?Object.create(null):{};return a(o).forEach(y=>{v(b,y,s(o[y]))}),b}const g=(o,b,y,M)=>(y.forEach(I=>{typeof b[I]>"u"&&M.ignoreUndefined||(I in o&&o[I]!==Object.getPrototypeOf(o)?v(o,I,m(o[I],b[I],M)):v(o,I,s(b[I])))}),o),n=(o,b,y)=>{let M=o.slice(0,0),I=0;return[o,b].forEach(N=>{const B=[];for(let R=0;R<N.length;R++)!f.call(N,R)||(B.push(String(R)),N===o?v(M,I++,N[R]):v(M,I++,s(N[R])));M=g(M,N,a(N).filter(R=>!B.includes(R)),y)}),M};function m(o,b,y){return y.concatArrays&&Array.isArray(o)&&Array.isArray(b)?n(o,b,y):!e(b)||!e(o)?s(b):g(o,b,a(b),y)}T.exports=function(...o){const b=m(s(p),this!==E&&this||{},p);let y={_:{}};for(const M of o)if(M!==void 0){if(!e(M))throw new TypeError("`"+M+"` is not an Option Object");y=m(y,{_:M},b)}return y._}},4428:T=>{"use strict";T.exports=d=>{if(Object.prototype.toString.call(d)!=="[object Object]")return!1;const u=Object.getPrototypeOf(d);return u===null||u===Object.prototype}},7931:T=>{(function(u,e){T.exports=e()})(window,function(){return function(d){var u={};function e(f){if(u[f])return u[f].exports;var _=u[f]={i:f,l:!1,exports:{}};return d[f].call(_.exports,_,_.exports,e),_.l=!0,_.exports}return e.m=d,e.c=u,e.d=function(f,_,v){e.o(f,_)||Object.defineProperty(f,_,{enumerable:!0,get:v})},e.r=function(f){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})},e.t=function(f,_){if(_&1&&(f=e(f)),_&8||_&4&&typeof f=="object"&&f&&f.__esModule)return f;var v=Object.create(null);if(e.r(v),Object.defineProperty(v,"default",{enumerable:!0,value:f}),_&2&&typeof f!="string")for(var E in f)e.d(v,E,function(p){return f[p]}.bind(null,E));return v},e.n=function(f){var _=f&&f.__esModule?function(){return f.default}:function(){return f};return e.d(_,"a",_),_},e.o=function(f,_){return Object.prototype.hasOwnProperty.call(f,_)},e.p="",e(e.s=0)}({"./src/index.js":function(d,u,e){"use strict";e.r(u);var f=e("./src/sass/index.scss"),_=e.n(f),v=e("./src/js/init.js"),E=v.default.init;typeof window<"u"&&(window.printJS=E),u.default=E},"./src/js/browser.js":function(d,u,e){"use strict";e.r(u);var f={isFirefox:function(){return typeof InstallTrigger<"u"},isIE:function(){return navigator.userAgent.indexOf("MSIE")!==-1||!!document.documentMode},isEdge:function(){return!f.isIE()&&!!window.StyleMedia},isChrome:function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window;return!!v.chrome},isSafari:function(){return Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0||navigator.userAgent.toLowerCase().indexOf("safari")!==-1},isIOSChrome:function(){return navigator.userAgent.toLowerCase().indexOf("crios")!==-1}};u.default=f},"./src/js/functions.js":function(d,u,e){"use strict";e.r(u),e.d(u,"addWrapper",function(){return E}),e.d(u,"capitalizePrint",function(){return p}),e.d(u,"collectStyles",function(){return a}),e.d(u,"addHeader",function(){return r}),e.d(u,"cleanUp",function(){return w}),e.d(u,"isRawHTML",function(){return g});var f=e("./src/js/modal.js"),_=e("./src/js/browser.js");function v(n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(o){return typeof o}:v=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},v(n)}function E(n,m){var o="font-family:"+m.font+" !important; font-size: "+m.font_size+" !important; width:100%;";return'<div style="'+o+'">'+n+"</div>"}function p(n){return n.charAt(0).toUpperCase()+n.slice(1)}function a(n,m){for(var o=document.defaultView||window,b="",y=o.getComputedStyle(n,""),M=0;M<y.length;M++)(m.targetStyles.indexOf("*")!==-1||m.targetStyle.indexOf(y[M])!==-1||s(m.targetStyles,y[M]))&&y.getPropertyValue(y[M])&&(b+=y[M]+":"+y.getPropertyValue(y[M])+";");return b+="max-width: "+m.maxWidth+"px !important; font-size: "+m.font_size+" !important;",b}function s(n,m){for(var o=0;o<n.length;o++)if(v(m)==="object"&&m.indexOf(n[o])!==-1)return!0;return!1}function r(n,m){var o=document.createElement("div");if(g(m.header))o.innerHTML=m.header;else{var b=document.createElement("h1"),y=document.createTextNode(m.header);b.appendChild(y),b.setAttribute("style",m.headerStyle),o.appendChild(b)}n.insertBefore(o,n.childNodes[0])}function w(n){n.showModal&&f.default.close(),n.onLoadingEnd&&n.onLoadingEnd(),(n.showModal||n.onLoadingStart)&&window.URL.revokeObjectURL(n.printable);var m="mouseover";(_.default.isChrome()||_.default.isFirefox())&&(m="focus");var o=function b(){window.removeEventListener(m,b),n.onPrintDialogClose();var y=document.getElementById(n.frameId);y&&y.remove()};window.addEventListener(m,o)}function g(n){var m=new RegExp("<([A-Za-z][A-Za-z0-9]*)\\b[^>]*>(.*?)</\\1>");return m.test(n)}},"./src/js/html.js":function(d,u,e){"use strict";e.r(u);var f=e("./src/js/functions.js"),_=e("./src/js/print.js");function v(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(r){return typeof r}:v=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},v(a)}u.default={print:function(s,r){var w=p(s.printable)?s.printable:document.getElementById(s.printable);if(!w){window.console.error("Invalid HTML element id: "+s.printable);return}s.printableElement=E(w,s),s.header&&Object(f.addHeader)(s.printableElement,s),_.default.send(s,r)}};function E(a,s){for(var r=a.cloneNode(),w=Array.prototype.slice.call(a.childNodes),g=0;g<w.length;g++)if(s.ignoreElements.indexOf(w[g].id)===-1){var n=E(w[g],s);r.appendChild(n)}switch(s.scanStyles&&a.nodeType===1&&r.setAttribute("style",Object(f.collectStyles)(a,s)),a.tagName){case"SELECT":r.value=a.value;break;case"CANVAS":r.getContext("2d").drawImage(a,0,0);break}return r}function p(a){return v(a)==="object"&&a&&(a instanceof HTMLElement||a.nodeType===1)}},"./src/js/image.js":function(d,u,e){"use strict";e.r(u);var f=e("./src/js/functions.js"),_=e("./src/js/print.js"),v=e("./src/js/browser.js");u.default={print:function(p,a){p.printable.constructor!==Array&&(p.printable=[p.printable]),p.printableElement=document.createElement("div"),p.printable.forEach(function(s){var r=document.createElement("img");if(r.setAttribute("style",p.imageStyle),r.src=s,v.default.isFirefox()){var w=r.src;r.src=w}var g=document.createElement("div");g.appendChild(r),p.printableElement.appendChild(g)}),p.header&&Object(f.addHeader)(p.printableElement,p),_.default.send(p,a)}}},"./src/js/init.js":function(d,u,e){"use strict";e.r(u);var f=e("./src/js/browser.js"),_=e("./src/js/modal.js"),v=e("./src/js/pdf.js"),E=e("./src/js/html.js"),p=e("./src/js/raw-html.js"),a=e("./src/js/image.js"),s=e("./src/js/json.js");function r(g){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?r=function(m){return typeof m}:r=function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},r(g)}var w=["pdf","html","image","json","raw-html"];u.default={init:function(){var n={printable:null,fallbackPrintable:null,type:"pdf",header:null,headerStyle:"font-weight: 300;",maxWidth:800,properties:null,gridHeaderStyle:"font-weight: bold; padding: 5px; border: 1px solid #dddddd;",gridStyle:"border: 1px solid lightgray; margin-bottom: -1px;",showModal:!1,onError:function(N){throw N},onLoadingStart:null,onLoadingEnd:null,onPrintDialogClose:function(){},onIncompatibleBrowser:function(){},modalMessage:"Retrieving Document...",frameId:"printJS",printableElement:null,documentTitle:"Document",targetStyle:["clear","display","width","min-width","height","min-height","max-height"],targetStyles:["border","box","break","text-decoration"],ignoreElements:[],repeatTableHeader:!0,css:null,style:null,scanStyles:!0,base64:!1,onPdfOpen:null,font:"TimesNewRoman",font_size:"12pt",honorMarginPadding:!0,honorColor:!1,imageStyle:"max-width: 100%;"},m=arguments[0];if(m===void 0)throw new Error("printJS expects at least 1 attribute.");switch(r(m)){case"string":n.printable=encodeURI(m),n.fallbackPrintable=n.printable,n.type=arguments[1]||n.type;break;case"object":n.printable=m.printable,n.fallbackPrintable=typeof m.fallbackPrintable<"u"?m.fallbackPrintable:n.printable,n.fallbackPrintable=n.base64?"data:application/pdf;base64,".concat(n.fallbackPrintable):n.fallbackPrintable;for(var o in n)o==="printable"||o==="fallbackPrintable"||(n[o]=typeof m[o]<"u"?m[o]:n[o]);break;default:throw new Error('Unexpected argument type! Expected "string" or "object", got '+r(m))}if(!n.printable)throw new Error("Missing printable information.");if(!n.type||typeof n.type!="string"||w.indexOf(n.type.toLowerCase())===-1)throw new Error("Invalid print type. Available types are: pdf, html, image and json.");n.showModal&&_.default.show(n),n.onLoadingStart&&n.onLoadingStart();var b=document.getElementById(n.frameId);b&&b.parentNode.removeChild(b);var y=document.createElement("iframe");switch(f.default.isFirefox()?y.setAttribute("style","width: 1px; height: 100px; position: fixed; left: 0; top: 0; opacity: 0; border-width: 0; margin: 0; padding: 0"):y.setAttribute("style","visibility: hidden; height: 0; width: 0; position: absolute; border: 0"),y.setAttribute("id",n.frameId),n.type!=="pdf"&&(y.srcdoc="<html><head><title>"+n.documentTitle+"</title>",n.css&&(Array.isArray(n.css)||(n.css=[n.css]),n.css.forEach(function(I){y.srcdoc+='<link rel="stylesheet" href="'+I+'">'})),y.srcdoc+="</head><body></body></html>"),n.type){case"pdf":if(f.default.isIE())try{console.info("Print.js doesn't support PDF printing in Internet Explorer.");var M=window.open(n.fallbackPrintable,"_blank");M.focus(),n.onIncompatibleBrowser()}catch(I){n.onError(I)}finally{n.showModal&&_.default.close(),n.onLoadingEnd&&n.onLoadingEnd()}else v.default.print(n,y);break;case"image":a.default.print(n,y);break;case"html":E.default.print(n,y);break;case"raw-html":p.default.print(n,y);break;case"json":s.default.print(n,y);break}}}},"./src/js/json.js":function(d,u,e){"use strict";e.r(u);var f=e("./src/js/functions.js"),_=e("./src/js/print.js");function v(p){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(s){return typeof s}:v=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},v(p)}u.default={print:function(a,s){if(v(a.printable)!=="object")throw new Error("Invalid javascript data object (JSON).");if(typeof a.repeatTableHeader!="boolean")throw new Error("Invalid value for repeatTableHeader attribute (JSON).");if(!a.properties||!Array.isArray(a.properties))throw new Error("Invalid properties array for your JSON data.");a.properties=a.properties.map(function(r){return{field:v(r)==="object"?r.field:r,displayName:v(r)==="object"?r.displayName:r,columnSize:v(r)==="object"&&r.columnSize?r.columnSize+";":100/a.properties.length+"%;"}}),a.printableElement=document.createElement("div"),a.header&&Object(f.addHeader)(a.printableElement,a),a.printableElement.innerHTML+=E(a),_.default.send(a,s)}};function E(p){var a=p.printable,s=p.properties,r='<table style="border-collapse: collapse; width: 100%;">';p.repeatTableHeader&&(r+="<thead>"),r+="<tr>";for(var w=0;w<s.length;w++)r+='<th style="width:'+s[w].columnSize+";"+p.gridHeaderStyle+'">'+Object(f.capitalizePrint)(s[w].displayName)+"</th>";r+="</tr>",p.repeatTableHeader&&(r+="</thead>"),r+="<tbody>";for(var g=0;g<a.length;g++){r+="<tr>";for(var n=0;n<s.length;n++){var m=a[g],o=s[n].field.split(".");if(o.length>1)for(var b=0;b<o.length;b++)m=m[o[b]];else m=m[s[n].field];r+='<td style="width:'+s[n].columnSize+p.gridStyle+'">'+m+"</td>"}r+="</tr>"}return r+="</tbody></table>",r}},"./src/js/modal.js":function(d,u,e){"use strict";e.r(u);var f={show:function(v){var E="font-family:sans-serif; display:table; text-align:center; font-weight:300; font-size:30px; left:0; top:0;position:fixed; z-index: 9990;color: #0460B5; width: 100%; height: 100%; background-color:rgba(255,255,255,.9);transition: opacity .3s ease;",p=document.createElement("div");p.setAttribute("style",E),p.setAttribute("id","printJS-Modal");var a=document.createElement("div");a.setAttribute("style","display:table-cell; vertical-align:middle; padding-bottom:100px;");var s=document.createElement("div");s.setAttribute("class","printClose"),s.setAttribute("id","printClose"),a.appendChild(s);var r=document.createElement("span");r.setAttribute("class","printSpinner"),a.appendChild(r);var w=document.createTextNode(v.modalMessage);a.appendChild(w),p.appendChild(a),document.getElementsByTagName("body")[0].appendChild(p),document.getElementById("printClose").addEventListener("click",function(){f.close()})},close:function(){var v=document.getElementById("printJS-Modal");v&&v.parentNode.removeChild(v)}};u.default=f},"./src/js/pdf.js":function(d,u,e){"use strict";e.r(u);var f=e("./src/js/print.js"),_=e("./src/js/functions.js");u.default={print:function(p,a){if(p.base64){var s=Uint8Array.from(atob(p.printable),function(w){return w.charCodeAt(0)});v(p,a,s);return}p.printable=/^(blob|http|\/\/)/i.test(p.printable)?p.printable:window.location.origin+(p.printable.charAt(0)!=="/"?"/"+p.printable:p.printable);var r=new window.XMLHttpRequest;r.responseType="arraybuffer",r.addEventListener("error",function(){Object(_.cleanUp)(p),p.onError(r.statusText,r)}),r.addEventListener("load",function(){if([200,201].indexOf(r.status)===-1){Object(_.cleanUp)(p),p.onError(r.statusText,r);return}v(p,a,r.response)}),r.open("GET",p.printable,!0),r.send()}};function v(E,p,a){var s=new window.Blob([a],{type:"application/pdf"});s=window.URL.createObjectURL(s),p.setAttribute("src",s),f.default.send(E,p)}},"./src/js/print.js":function(d,u,e){"use strict";e.r(u);var f=e("./src/js/browser.js"),_=e("./src/js/functions.js"),v={send:function(r,w){document.getElementsByTagName("body")[0].appendChild(w);var g=document.getElementById(r.frameId);g.onload=function(){if(r.type==="pdf"){f.default.isFirefox()?setTimeout(function(){return E(g,r)},1e3):E(g,r);return}var n=g.contentWindow||g.contentDocument;if(n.document&&(n=n.document),n.body.appendChild(r.printableElement),r.type!=="pdf"&&r.style){var m=document.createElement("style");m.innerHTML=r.style,n.head.appendChild(m)}var o=n.getElementsByTagName("img");o.length>0?p(Array.from(o)).then(function(){return E(g,r)}):E(g,r)}}};function E(s,r){try{if(s.focus(),f.default.isEdge()||f.default.isIE())try{s.contentWindow.document.execCommand("print",!1,null)}catch{s.contentWindow.print()}else s.contentWindow.print()}catch(w){r.onError(w)}finally{f.default.isFirefox()&&(s.style.visibility="hidden",s.style.left="-1px"),Object(_.cleanUp)(r)}}function p(s){var r=s.map(function(w){if(w.src&&w.src!==window.location.href)return a(w)});return Promise.all(r)}function a(s){return new Promise(function(r){var w=function g(){!s||typeof s.naturalWidth>"u"||s.naturalWidth===0||!s.complete?setTimeout(g,500):r()};w()})}u.default=v},"./src/js/raw-html.js":function(d,u,e){"use strict";e.r(u);var f=e("./src/js/print.js");u.default={print:function(v,E){v.printableElement=document.createElement("div"),v.printableElement.setAttribute("style","width:100%"),v.printableElement.innerHTML=v.printable,f.default.send(v,E)}}},"./src/sass/index.scss":function(d,u,e){},0:function(d,u,e){d.exports=e("./src/index.js")}}).default})},3335:(T,d,u)=>{"use strict";var e;/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var f=u(4041),_=Symbol.for("react.element"),v=Symbol.for("react.fragment"),E=Object.prototype.hasOwnProperty,p=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(r,w,g){var n,m={},o=null,b=null;g!==void 0&&(o=""+g),w.key!==void 0&&(o=""+w.key),w.ref!==void 0&&(b=w.ref);for(n in w)E.call(w,n)&&!a.hasOwnProperty(n)&&(m[n]=w[n]);if(r&&r.defaultProps)for(n in w=r.defaultProps,w)m[n]===void 0&&(m[n]=w[n]);return{$$typeof:_,type:r,key:o,ref:b,props:m,_owner:p.current}}e=v,d.jsx=s,e=s},4304:(T,d)=>{"use strict";/**
10
+ * @license React
11
+ * react.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var u=Symbol.for("react.element"),e=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),p=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),r=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),g=Symbol.iterator;function n(t){return t===null||typeof t!="object"?null:(t=g&&t[g]||t["@@iterator"],typeof t=="function"?t:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},o=Object.assign,b={};function y(t,l,S){this.props=t,this.context=l,this.refs=b,this.updater=S||m}y.prototype.isReactComponent={},y.prototype.setState=function(t,l){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,l,"setState")},y.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function M(){}M.prototype=y.prototype;function I(t,l,S){this.props=t,this.context=l,this.refs=b,this.updater=S||m}var N=I.prototype=new M;N.constructor=I,o(N,y.prototype),N.isPureReactComponent=!0;var B=Array.isArray,R=Object.prototype.hasOwnProperty,ue={current:null},ee={key:!0,ref:!0,__self:!0,__source:!0};function $(t,l,S){var W,O={},F=null,C=null;if(l!=null)for(W in l.ref!==void 0&&(C=l.ref),l.key!==void 0&&(F=""+l.key),l)R.call(l,W)&&!ee.hasOwnProperty(W)&&(O[W]=l[W]);var D=arguments.length-2;if(D===1)O.children=S;else if(1<D){for(var A=Array(D),G=0;G<D;G++)A[G]=arguments[G+2];O.children=A}if(t&&t.defaultProps)for(W in D=t.defaultProps,D)O[W]===void 0&&(O[W]=D[W]);return{$$typeof:u,type:t,key:F,ref:C,props:O,_owner:ue.current}}function oe(t,l){return{$$typeof:u,type:t.type,key:l,ref:t.ref,props:t.props,_owner:t._owner}}function J(t){return typeof t=="object"&&t!==null&&t.$$typeof===u}function se(t){var l={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(S){return l[S]})}var te=/\/+/g;function le(t,l){return typeof t=="object"&&t!==null&&t.key!=null?se(""+t.key):l.toString(36)}function H(t,l,S,W,O){var F=typeof t;(F==="undefined"||F==="boolean")&&(t=null);var C=!1;if(t===null)C=!0;else switch(F){case"string":case"number":C=!0;break;case"object":switch(t.$$typeof){case u:case e:C=!0}}if(C)return C=t,O=O(C),t=W===""?"."+le(C,0):W,B(O)?(S="",t!=null&&(S=t.replace(te,"$&/")+"/"),H(O,l,S,"",function(G){return G})):O!=null&&(J(O)&&(O=oe(O,S+(!O.key||C&&C.key===O.key?"":(""+O.key).replace(te,"$&/")+"/")+t)),l.push(O)),1;if(C=0,W=W===""?".":W+":",B(t))for(var D=0;D<t.length;D++){F=t[D];var A=W+le(F,D);C+=H(F,l,S,A,O)}else if(A=n(t),typeof A=="function")for(t=A.call(t),D=0;!(F=t.next()).done;)F=F.value,A=W+le(F,D++),C+=H(F,l,S,A,O);else if(F==="object")throw l=String(t),Error("Objects are not valid as a React child (found: "+(l==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":l)+"). If you meant to render a collection of children, use an array instead.");return C}function V(t,l,S){if(t==null)return t;var W=[],O=0;return H(t,W,"","",function(F){return l.call(S,F,O++)}),W}function q(t){if(t._status===-1){var l=t._result;l=l(),l.then(function(S){(t._status===0||t._status===-1)&&(t._status=1,t._result=S)},function(S){(t._status===0||t._status===-1)&&(t._status=2,t._result=S)}),t._status===-1&&(t._status=0,t._result=l)}if(t._status===1)return t._result.default;throw t._result}var k={current:null},U={transition:null},x={ReactCurrentDispatcher:k,ReactCurrentBatchConfig:U,ReactCurrentOwner:ue};function K(){throw Error("act(...) is not supported in production builds of React.")}d.Children={map:V,forEach:function(t,l,S){V(t,function(){l.apply(this,arguments)},S)},count:function(t){var l=0;return V(t,function(){l++}),l},toArray:function(t){return V(t,function(l){return l})||[]},only:function(t){if(!J(t))throw Error("React.Children.only expected to receive a single React element child.");return t}},d.Component=y,d.Fragment=f,d.Profiler=v,d.PureComponent=I,d.StrictMode=_,d.Suspense=s,d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=x,d.act=K,d.cloneElement=function(t,l,S){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var W=o({},t.props),O=t.key,F=t.ref,C=t._owner;if(l!=null){if(l.ref!==void 0&&(F=l.ref,C=ue.current),l.key!==void 0&&(O=""+l.key),t.type&&t.type.defaultProps)var D=t.type.defaultProps;for(A in l)R.call(l,A)&&!ee.hasOwnProperty(A)&&(W[A]=l[A]===void 0&&D!==void 0?D[A]:l[A])}var A=arguments.length-2;if(A===1)W.children=S;else if(1<A){D=Array(A);for(var G=0;G<A;G++)D[G]=arguments[G+2];W.children=D}return{$$typeof:u,type:t.type,key:O,ref:F,props:W,_owner:C}},d.createContext=function(t){return t={$$typeof:p,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:E,_context:t},t.Consumer=t},d.createElement=$,d.createFactory=function(t){var l=$.bind(null,t);return l.type=t,l},d.createRef=function(){return{current:null}},d.forwardRef=function(t){return{$$typeof:a,render:t}},d.isValidElement=J,d.lazy=function(t){return{$$typeof:w,_payload:{_status:-1,_result:t},_init:q}},d.memo=function(t,l){return{$$typeof:r,type:t,compare:l===void 0?null:l}},d.startTransition=function(t){var l=U.transition;U.transition={};try{t()}finally{U.transition=l}},d.unstable_act=K,d.useCallback=function(t,l){return k.current.useCallback(t,l)},d.useContext=function(t){return k.current.useContext(t)},d.useDebugValue=function(){},d.useDeferredValue=function(t){return k.current.useDeferredValue(t)},d.useEffect=function(t,l){return k.current.useEffect(t,l)},d.useId=function(){return k.current.useId()},d.useImperativeHandle=function(t,l,S){return k.current.useImperativeHandle(t,l,S)},d.useInsertionEffect=function(t,l){return k.current.useInsertionEffect(t,l)},d.useLayoutEffect=function(t,l){return k.current.useLayoutEffect(t,l)},d.useMemo=function(t,l){return k.current.useMemo(t,l)},d.useReducer=function(t,l,S){return k.current.useReducer(t,l,S)},d.useRef=function(t){return k.current.useRef(t)},d.useState=function(t){return k.current.useState(t)},d.useSyncExternalStore=function(t,l,S){return k.current.useSyncExternalStore(t,l,S)},d.useTransition=function(){return k.current.useTransition()},d.version="18.3.1"},4041:(T,d,u)=>{"use strict";T.exports=u(4304)},1085:(T,d,u)=>{"use strict";T.exports=u(3335)}}]);
18
+
19
+ //# sourceMappingURL=823.index.js.map