@icanbwell/composite 1.508.4 → 1.508.6

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/311.index.js CHANGED
@@ -1,4 +1,4 @@
1
- (globalThis.webpackChunk_icanbwell_composite=globalThis.webpackChunk_icanbwell_composite||[]).push([[311],{1827:($,p,h)=>{"use strict";h.d(p,{b:()=>Gt});var u=function(t,e){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},u(t,e)};function y(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");u(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var P=function(){return P=Object.assign||function(e){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e},P.apply(this,arguments)};function b(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n}function I(t,e,n,r){var a=arguments.length,l=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,j;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(t,e,n,r);else for(var U=t.length-1;U>=0;U--)(j=t[U])&&(l=(a<3?j(l):a>3?j(e,n,l):j(e,n))||l);return a>3&&l&&Object.defineProperty(e,n,l),l}function w(t,e){return function(n,r){e(n,r,t)}}function m(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function o(t,e,n,r){function a(l){return l instanceof n?l:new n(function(j){j(l)})}return new(n||(n=Promise))(function(l,j){function U(H){try{_(r.next(H))}catch(ce){j(ce)}}function Z(H){try{_(r.throw(H))}catch(ce){j(ce)}}function _(H){H.done?l(H.value):a(H.value).then(U,Z)}_((r=r.apply(t,e||[])).next())})}function c(t,e){var n={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},r,a,l,j;return j={next:U(0),throw:U(1),return:U(2)},typeof Symbol=="function"&&(j[Symbol.iterator]=function(){return this}),j;function U(_){return function(H){return Z([_,H])}}function Z(_){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,a&&(l=_[0]&2?a.return:_[0]?a.throw||((l=a.return)&&l.call(a),0):a.next)&&!(l=l.call(a,_[1])).done)return l;switch(a=0,l&&(_=[_[0]&2,l.value]),_[0]){case 0:case 1:l=_;break;case 4:return n.label++,{value:_[1],done:!1};case 5:n.label++,a=_[1],_=[0];continue;case 7:_=n.ops.pop(),n.trys.pop();continue;default:if(l=n.trys,!(l=l.length>0&&l[l.length-1])&&(_[0]===6||_[0]===2)){n=0;continue}if(_[0]===3&&(!l||_[1]>l[0]&&_[1]<l[3])){n.label=_[1];break}if(_[0]===6&&n.label<l[1]){n.label=l[1],l=_;break}if(l&&n.label<l[2]){n.label=l[2],n.ops.push(_);break}l[2]&&n.ops.pop(),n.trys.pop();continue}_=e.call(t,n)}catch(H){_=[6,H],a=0}finally{r=l=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}}var O=Object.create?function(t,e,n,r){r===void 0&&(r=n);var a=Object.getOwnPropertyDescriptor(e,n);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,a)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]};function M(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&O(e,t,n)}function s(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),a,l=[],j;try{for(;(e===void 0||e-- >0)&&!(a=r.next()).done;)l.push(a.value)}catch(U){j={error:U}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(j)throw j.error}}return l}function f(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(v(arguments[e]));return t}function S(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var r=Array(t),a=0,e=0;e<n;e++)for(var l=arguments[e],j=0,U=l.length;j<U;j++,a++)r[a]=l[j];return r}function g(t,e,n){if(n||arguments.length===2)for(var r=0,a=e.length,l;r<a;r++)(l||!(r in e))&&(l||(l=Array.prototype.slice.call(e,0,r)),l[r]=e[r]);return t.concat(l||Array.prototype.slice.call(e))}function A(t){return this instanceof A?(this.v=t,this):new A(t)}function T(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),a,l=[];return a={},j("next"),j("throw"),j("return"),a[Symbol.asyncIterator]=function(){return this},a;function j(F){r[F]&&(a[F]=function(ae){return new Promise(function(it,Jt){l.push([F,ae,it,Jt])>1||U(F,ae)})})}function U(F,ae){try{Z(r[F](ae))}catch(it){ce(l[0][3],it)}}function Z(F){F.value instanceof A?Promise.resolve(F.value.v).then(_,H):ce(l[0][2],F)}function _(F){U("next",F)}function H(F){U("throw",F)}function ce(F,ae){F(ae),l.shift(),l.length&&U(l[0][0],l[0][1])}}function z(t){var e,n;return e={},r("next"),r("throw",function(a){throw a}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(a,l){e[a]=t[a]?function(j){return(n=!n)?{value:A(t[a](j)),done:a==="return"}:l?l(j):j}:l}}function te(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof s=="function"?s(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(l){n[l]=t[l]&&function(j){return new Promise(function(U,Z){j=t[l](j),a(U,Z,j.done,j.value)})}}function a(l,j,U,Z){Promise.resolve(Z).then(function(_){l({value:_,done:U})},j)}}function V(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var ue=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function je(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&O(e,t,n);return ue(e,t),e}function Me(t){return t&&t.__esModule?t:{default:t}}function E(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)}function k(t,e,n,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(t,n):a?a.value=n:e.set(t,n),n}function rt(t,e){if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof t=="function"?e===t:t.has(e)}var J;class fe{constructor(e){J.set(this,void 0),k(this,J,e,"f")}get isWithin(){return!!window.ReactNativeWebView}open(e){E(this,J,"f").emit("openwebview",e)}close(e){E(this,J,"f").emit("closewebview",e)}reload(){E(this,J,"f").emit("reloadwebview")}}J=new WeakMap;var ne=h(692),ie=h.n(ne);const _e=(t,e)=>ie().bind(`${t}.${String(e)}`),D=t=>e=>_e(t,e);var q,de;const i=D("biometrics");class d{constructor(e){q.set(this,void 0),de.set(this,i("isAvailable")),this.isAvailable=()=>o(this,void 0,void 0,function*(){return E(this,q,"f").isWithin?yield E(this,de,"f").call(this):!1}),this.getBiometryInformation=i("getBiometryInformation"),this.biometricKeysExist=i("biometricKeysExist"),this.createKeys=i("createKeys"),this.createSignature=i("createSignature"),this.deleteKeys=i("deleteKeys"),this.checkPermission=i("checkPermission"),this.requestPermission=i("requestPermission"),k(this,q,e,"f")}}q=new WeakMap,de=new WeakMap;const W=D("events");class L{constructor(){this.emit=W("emit")}}var N=h(5057);const B=N.bind({concatArrays:!0,ignoreUndefined:!0});function R(t,e){const n=window.localStorage.getItem(t);if(n){const r=JSON.parse(n),a=JSON.parse(e),l=JSON.stringify(B(r,a));window.localStorage.setItem(t,l)}else window.localStorage.setItem(t,e)}function C(t,e){return new Promise((n,r)=>{try{const a=t();e?.(null,a),n(a)}catch(a){e?.(a),r(a)}})}function K(t,e,n){return Promise.all(t).then(r=>{const a=n?.(r)??null;return e?.(null,a),Promise.resolve(a)},r=>(e?.(r),Promise.reject(r)))}const he={getItem:(t,e)=>C(()=>window.localStorage.getItem(t),e),setItem:(t,e,n)=>C(()=>window.localStorage.setItem(t,e),n),removeItem:(t,e)=>C(()=>window.localStorage.removeItem(t),e),mergeItem:(t,e,n)=>C(()=>R(t,e),n),clear:t=>C(()=>window.localStorage.clear(),t),getAllKeys:t=>C(()=>{const e=window.localStorage.length,n=[];for(let r=0;r<e;r+=1){const a=window.localStorage.key(r)||"";n.push(a)}return n},t),flushGetRequests:()=>{},multiGet:(t,e)=>{const n=t.map(a=>he.getItem(a));return K(n,e,a=>a.map((l,j)=>[t[j],l]))},multiSet:(t,e)=>{const n=t.map(r=>he.setItem(r[0],r[1]));return K(n,e)},multiRemove:(t,e)=>{const n=t.map(r=>he.removeItem(r));return K(n,e)},multiMerge:(t,e)=>{const n=t.map(r=>he.mergeItem(r[0],r[1]));return K(n,e)}},ut=he;function qt(t){return{getItem:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return AsyncStorage.getItem(t,...n)},setItem:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return AsyncStorage.setItem(t,...n)},mergeItem:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return AsyncStorage.mergeItem(t,...n)},removeItem:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return AsyncStorage.removeItem(t,...n)}}}const Ie=ut;var re,Ae,We,De;const Ne=D("storage");class ft{constructor(e){re.set(this,void 0),Ae.set(this,Ne("setItem")),We.set(this,Ne("getItem")),De.set(this,Ne("removeItem")),k(this,re,e,"f")}setItem(e,n){return o(this,void 0,void 0,function*(){E(this,re,"f").isWithin?yield E(this,Ae,"f").call(this,e,n):Ie.setItem(e,n)})}getItem(e){return E(this,re,"f").isWithin?E(this,We,"f").call(this,e):Ie.getItem(e)}removeItem(e){return o(this,void 0,void 0,function*(){E(this,re,"f").isWithin?yield E(this,De,"f").call(this,e):Ie.removeItem(e)})}}re=new WeakMap,Ae=new WeakMap,We=new WeakMap,De=new WeakMap;var me,Ce;const pe=D("camera");class dt{constructor(e){me.set(this,void 0),Ce.set(this,pe("isAvailable")),this.isAvailable=()=>o(this,void 0,void 0,function*(){return E(this,me,"f").isWithin?yield E(this,Ce,"f").call(this):!1}),this.checkPermission=pe("checkPermission"),this.checkRollPermission=pe("checkRollPermission"),this.requestPermission=pe("requestPermission"),this.requestRollPermission=pe("requestRollPermission"),k(this,me,e,"f")}}me=new WeakMap,Ce=new WeakMap;var oe=h(934),se=h(3758),Y,Le,Te,Re,Ue;const ve=D("geolocation");class ht{constructor(e){Y.set(this,void 0),Le.set(this,ve("isAvailable")),Te.set(this,ve("getCurrentPosition")),Re.set(this,ve("checkPermission")),Ue.set(this,ve("requestPermission")),this.isAvailable=()=>o(this,void 0,void 0,function*(){return E(this,Y,"f").isWithin?E(this,Le,"f").call(this):!!navigator.geolocation}),this.getCurrentPosition=n=>o(this,void 0,void 0,function*(){if(E(this,Y,"f").isWithin)return E(this,Te,"f").call(this,n);try{const{state:r}=yield navigator.permissions.query({name:"geolocation"});if(r==="granted"||r==="prompt")return yield new Promise((a,l)=>navigator.geolocation.getCurrentPosition(a,l,n))}catch(r){throw new oe.b(`Failed to retrieve the permission or the position is unavailable. ${r.message}`,{errorCode:se.O.UNKNOWN})}throw new oe.b("Permission Denied.",{errorCode:se.O.INSUFFICIENT_PERMISSIONS})}),this.checkPermission=()=>o(this,void 0,void 0,function*(){return E(this,Y,"f").isWithin?E(this,Re,"f").call(this):(yield navigator.permissions.query({name:"geolocation"})).state}),this.requestPermission=()=>o(this,void 0,void 0,function*(){if(E(this,Y,"f").isWithin)return yield E(this,Ue,"f").call(this);{const{state:n}=yield navigator.permissions.query({name:"geolocation"});return(n==="granted"||n==="prompt")&&(yield new Promise((r,a)=>navigator.geolocation.getCurrentPosition(r,a))),n}}),k(this,Y,e,"f")}}Y=new WeakMap,Le=new WeakMap,Te=new WeakMap,Re=new WeakMap,Ue=new WeakMap;var pt=h(1204),yt=h.n(pt),mt=h(7931),vt=h.n(mt),be,xe;const bt=D("print");class wt{constructor(e){be.set(this,void 0),xe.set(this,bt("print")),k(this,be,e,"f")}print(e){return o(this,void 0,void 0,function*(){if(e.filePath&&yt()(e.filePath)||e.html){if(E(this,be,"f").isWithin)return yield E(this,xe,"f").call(this,e);vt()({type:e.html?"raw-html":"pdf",printable:e.html||e.filePath})}else throw new oe.b("Filepath must be an absolute URL.",{errorCode:se.O.UNKNOWN})})}}be=new WeakMap,xe=new WeakMap;var Q,Be,ke,Ke,Fe;const we=D("documentDownload"),$e={"image/jpeg":"jpeg","image/png":"png","image/svg+xml":"svg","application/pdf":"pdf"},gt=t=>{const e=/^\s*data:([a-z]+\/[a-z0-9\-+]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,[a-z0-9!$&',()*+,;=\-._~:@/?%\s]*\s*$/i;return!!t.match(e)},Et=t=>t.substring(t.indexOf(":")+1,t.indexOf(";")),Pt=(t,e)=>{if(!gt(e))throw new oe.b("Invalid Data URL Format.",{errorCode:se.O.UNKNOWN});const n=Et(e);return ge(n),`${t}.${$e[n]}`},ge=t=>{if(!Object.keys($e).includes(t))throw new oe.b("Invalid or unallowed file type.",{errorCode:se.O.UNKNOWN})};class St{constructor(e){Q.set(this,void 0),Be.set(this,we("isAvailable")),ke.set(this,we("writeFile")),Ke.set(this,we("checkPermission")),Fe.set(this,we("requestPermission")),this.isAvailable=n=>o(this,void 0,void 0,function*(){return ge(n),E(this,Q,"f").isWithin?E(this,Be,"f").call(this,n):!0}),this.writeFile=(n,r)=>o(this,void 0,void 0,function*(){if(Object.values($e).some(l=>n.includes(l)))throw new oe.b("Filename should not contain extension",{errorCode:se.O.UNKNOWN});const a=Pt(n,r);if(E(this,Q,"f").isWithin)return E(this,ke,"f").call(this,a,r);{const l=document.createElement("a");return l.href=r,l.download=a,l.click(),"Files"}}),this.checkPermission=n=>o(this,void 0,void 0,function*(){return ge(n),E(this,Q,"f").isWithin?E(this,Ke,"f").call(this,n):"granted"}),this.requestPermission=n=>o(this,void 0,void 0,function*(){return ge(n),E(this,Q,"f").isWithin?yield E(this,Fe,"f").call(this,n):"granted"}),k(this,Q,e,"f")}}Q=new WeakMap,Be=new WeakMap,ke=new WeakMap,Ke=new WeakMap,Fe=new WeakMap;const le=Object.freeze({UNAVAILABLE:"unavailable",BLOCKED:"blocked",DENIED:"denied",GRANTED:"granted",LIMITED:"limited"}),ze="Only supported by iOS 14 and above";async function Ot(){throw new Error(ze)}async function jt(t){throw new Error(ze)}async function Mt(){throw new Error(ze)}async function ot(){return le.UNAVAILABLE}async function st(){return{status:le.UNAVAILABLE,settings:{}}}async function lt(t){return t.reduce((e,n)=>(e[n]=le.UNAVAILABLE,e),{})}const G={check:ot,checkLocationAccuracy:Ot,checkMultiple:lt,checkNotifications:st,openLimitedPhotoLibraryPicker:Mt,openSettings:Promise.reject,request:ot,requestLocationAccuracy:jt,requestMultiple:lt,requestNotifications:st},_t=Object.freeze({ANDROID:{},IOS:{},WINDOWS:{}}),It=G.check,At=G.checkLocationAccuracy,Wt=G.checkMultiple,Dt=G.checkNotifications,Nt=G.openLimitedPhotoLibraryPicker,Ct=G.openSettings,Lt=G.request,Tt=G.requestLocationAccuracy,Rt=G.requestMultiple,Ut=G.requestNotifications,Zt={PERMISSIONS:_t,RESULTS:le,check:It,checkLocationAccuracy:At,checkMultiple:Wt,checkNotifications:Dt,openLimitedPhotoLibraryPicker:Nt,openSettings:Ct,request:Lt,requestLocationAccuracy:Tt,requestMultiple:Rt,requestNotifications:Ut};var X,He,Ve,Ge,Je;const Ee=D("documentPicker"),xt=t=>new Promise((e,n)=>{const r=new FileReader;r.readAsDataURL(t),r.onload=()=>e(r.result.replace("data:","").replace(/^.+,/,"")),r.onerror=n}),ct=t=>new Promise((e,n)=>{const r=document.createElement("input");r.type="file",t===!0&&(r.multiple=t),r.onchange=({target:a})=>o(void 0,void 0,void 0,function*(){try{e(yield Promise.all(Object.values(a.files).map(l=>o(void 0,void 0,void 0,function*(){return{type:l.type,name:l.name,size:l.size,base64:yield xt(l)}}))))}catch(l){n(l)}}),r.click()});class Bt{constructor(e){X.set(this,void 0),He.set(this,Ee("pickMultiple")),Ve.set(this,Ee("pickSingle")),Ge.set(this,Ee("checkPermission")),Je.set(this,Ee("requestPermission")),this.pickMultiple=()=>E(this,X,"f").isWithin?E(this,He,"f").call(this):ct(!0),this.checkPermission=()=>o(this,void 0,void 0,function*(){return E(this,X,"f").isWithin?yield E(this,Ge,"f").call(this):Promise.resolve(le.GRANTED)}),this.requestPermission=()=>o(this,void 0,void 0,function*(){return E(this,X,"f").isWithin?yield E(this,Je,"f").call(this):Promise.resolve(le.GRANTED)}),k(this,X,e,"f")}pickSingle(){return o(this,void 0,void 0,function*(){return E(this,X,"f").isWithin?E(this,Ve,"f").call(this):(yield ct(!1))[0]})}}X=new WeakMap,He=new WeakMap,Ve=new WeakMap,Ge=new WeakMap,Je=new WeakMap;var ee,qe,Ze,Ye,Qe;const Pe=D("pushNotifications");class kt{constructor(e){ee.set(this,void 0),qe.set(this,Pe("isAvailable")),Ze.set(this,Pe("getDeviceToken")),Ye.set(this,Pe("checkPermission")),Qe.set(this,Pe("requestPermission")),this.isAvailable=()=>o(this,void 0,void 0,function*(){return E(this,ee,"f").isWithin?E(this,qe,"f").call(this):!1}),this.getDeviceToken=()=>o(this,void 0,void 0,function*(){if(E(this,ee,"f").isWithin)return E(this,Ze,"f").call(this);throw new Error("This method is currently not supported on web")}),this.checkPermission=()=>o(this,void 0,void 0,function*(){return E(this,ee,"f").isWithin?E(this,Ye,"f").call(this):"unavailable"}),this.requestPermission=()=>o(this,void 0,void 0,function*(){return E(this,ee,"f").isWithin?yield E(this,Qe,"f").call(this):"unavailable"}),k(this,ee,e,"f")}}ee=new WeakMap,qe=new WeakMap,Ze=new WeakMap,Ye=new WeakMap,Qe=new WeakMap;var Se,Xe;const Kt=D("deepLink");class Ft{constructor(e){Se.set(this,void 0),Xe.set(this,Kt("openLink")),this.openLink=(n,r="_blank")=>o(this,void 0,void 0,function*(){if(E(this,Se,"f").isWithin)return E(this,Xe,"f").call(this,n,r);window.open(n.webUrl,r)}),k(this,Se,e,"f")}}Se=new WeakMap,Xe=new WeakMap;var Oe,et;const $t=D("system");class zt{constructor(e){Oe.set(this,void 0),et.set(this,$t("openSettings")),this.openSettings=()=>o(this,void 0,void 0,function*(){if(E(this,Oe,"f").isWithin)return yield E(this,et,"f").call(this)}),k(this,Oe,e,"f")}}Oe=new WeakMap,et=new WeakMap;var ye,tt,nt;const at=D("utils");class Ht{constructor(e){ye.set(this,void 0),tt.set(this,at("getPlatform")),nt.set(this,at("getBundleId")),k(this,ye,e,"f")}getPlatform(){return o(this,void 0,void 0,function*(){return E(this,ye,"f").isWithin?E(this,tt,"f").call(this):"web"})}getBundleId(){return o(this,void 0,void 0,function*(){if(E(this,ye,"f").isWithin)return E(this,nt,"f").call(this);console.warn("bundleId not available on the web")})}}ye=new WeakMap,tt=new WeakMap,nt=new WeakMap;class Vt{constructor(){this.events=new L,this.webview=new fe(this.events),this.biometrics=new d(this.webview),this.storage=new ft(this.webview),this.camera=new dt(this.webview),this.geolocation=new ht(this.webview),this.print=new wt(this.webview),this.documentDownload=new St(this.webview),this.documentPicker=new Bt(this.webview),this.pushNotifications=new kt(this.webview),this.deepLink=new Ft(this.webview),this.utils=new Ht(this.webview),this.system=new zt(this.webview)}reloadView(){this.webview.isWithin?this.webview.reload():globalThis.location.reload()}}const Gt=new Vt},1204:$=>{"use strict";$.exports=p=>{if(typeof p!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof p}\``);return/^[a-zA-Z]:\\/.test(p)?!1:/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(p)}},5057:function($,p,h){"use strict";const u=h(4428),{hasOwnProperty:y}=Object.prototype,{propertyIsEnumerable:P}=Object,b=(f,S,g)=>Object.defineProperty(f,S,{value:g,writable:!0,enumerable:!0,configurable:!0}),I=this,w={concatArrays:!1,ignoreUndefined:!1},m=f=>{const S=[];for(const g in f)y.call(f,g)&&S.push(g);if(Object.getOwnPropertySymbols){const g=Object.getOwnPropertySymbols(f);for(const A of g)P.call(f,A)&&S.push(A)}return S};function o(f){return Array.isArray(f)?c(f):u(f)?O(f):f}function c(f){const S=f.slice(0,0);return m(f).forEach(g=>{b(S,g,o(f[g]))}),S}function O(f){const S=Object.getPrototypeOf(f)===null?Object.create(null):{};return m(f).forEach(g=>{b(S,g,o(f[g]))}),S}const M=(f,S,g,A)=>(g.forEach(T=>{typeof S[T]>"u"&&A.ignoreUndefined||(T in f&&f[T]!==Object.getPrototypeOf(f)?b(f,T,v(f[T],S[T],A)):b(f,T,o(S[T])))}),f),s=(f,S,g)=>{let A=f.slice(0,0),T=0;return[f,S].forEach(z=>{const te=[];for(let V=0;V<z.length;V++)!y.call(z,V)||(te.push(String(V)),z===f?b(A,T++,z[V]):b(A,T++,o(z[V])));A=M(A,z,m(z).filter(V=>!te.includes(V)),g)}),A};function v(f,S,g){return g.concatArrays&&Array.isArray(f)&&Array.isArray(S)?s(f,S,g):!u(S)||!u(f)?o(S):M(f,S,m(S),g)}$.exports=function(...f){const S=v(o(w),this!==I&&this||{},w);let g={_:{}};for(const A of f)if(A!==void 0){if(!u(A))throw new TypeError("`"+A+"` is not an Option Object");g=v(g,{_:A},S)}return g._}},4428:$=>{"use strict";$.exports=p=>{if(Object.prototype.toString.call(p)!=="[object Object]")return!1;const h=Object.getPrototypeOf(p);return h===null||h===Object.prototype}},7931:$=>{(function(h,u){$.exports=u()})(window,function(){return function(p){var h={};function u(y){if(h[y])return h[y].exports;var P=h[y]={i:y,l:!1,exports:{}};return p[y].call(P.exports,P,P.exports,u),P.l=!0,P.exports}return u.m=p,u.c=h,u.d=function(y,P,b){u.o(y,P)||Object.defineProperty(y,P,{enumerable:!0,get:b})},u.r=function(y){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(y,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(y,"__esModule",{value:!0})},u.t=function(y,P){if(P&1&&(y=u(y)),P&8||P&4&&typeof y=="object"&&y&&y.__esModule)return y;var b=Object.create(null);if(u.r(b),Object.defineProperty(b,"default",{enumerable:!0,value:y}),P&2&&typeof y!="string")for(var I in y)u.d(b,I,function(w){return y[w]}.bind(null,I));return b},u.n=function(y){var P=y&&y.__esModule?function(){return y.default}:function(){return y};return u.d(P,"a",P),P},u.o=function(y,P){return Object.prototype.hasOwnProperty.call(y,P)},u.p="",u(u.s=0)}({"./src/index.js":function(p,h,u){"use strict";u.r(h);var y=u("./src/sass/index.scss"),P=u.n(y),b=u("./src/js/init.js"),I=b.default.init;typeof window<"u"&&(window.printJS=I),h.default=I},"./src/js/browser.js":function(p,h,u){"use strict";u.r(h);var y={isFirefox:function(){return typeof InstallTrigger<"u"},isIE:function(){return navigator.userAgent.indexOf("MSIE")!==-1||!!document.documentMode},isEdge:function(){return!y.isIE()&&!!window.StyleMedia},isChrome:function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window;return!!b.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}};h.default=y},"./src/js/functions.js":function(p,h,u){"use strict";u.r(h),u.d(h,"addWrapper",function(){return I}),u.d(h,"capitalizePrint",function(){return w}),u.d(h,"collectStyles",function(){return m}),u.d(h,"addHeader",function(){return c}),u.d(h,"cleanUp",function(){return O}),u.d(h,"isRawHTML",function(){return M});var y=u("./src/js/modal.js"),P=u("./src/js/browser.js");function b(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?b=function(f){return typeof f}:b=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},b(s)}function I(s,v){var f="font-family:"+v.font+" !important; font-size: "+v.font_size+" !important; width:100%;";return'<div style="'+f+'">'+s+"</div>"}function w(s){return s.charAt(0).toUpperCase()+s.slice(1)}function m(s,v){for(var f=document.defaultView||window,S="",g=f.getComputedStyle(s,""),A=0;A<g.length;A++)(v.targetStyles.indexOf("*")!==-1||v.targetStyle.indexOf(g[A])!==-1||o(v.targetStyles,g[A]))&&g.getPropertyValue(g[A])&&(S+=g[A]+":"+g.getPropertyValue(g[A])+";");return S+="max-width: "+v.maxWidth+"px !important; font-size: "+v.font_size+" !important;",S}function o(s,v){for(var f=0;f<s.length;f++)if(b(v)==="object"&&v.indexOf(s[f])!==-1)return!0;return!1}function c(s,v){var f=document.createElement("div");if(M(v.header))f.innerHTML=v.header;else{var S=document.createElement("h1"),g=document.createTextNode(v.header);S.appendChild(g),S.setAttribute("style",v.headerStyle),f.appendChild(S)}s.insertBefore(f,s.childNodes[0])}function O(s){s.showModal&&y.default.close(),s.onLoadingEnd&&s.onLoadingEnd(),(s.showModal||s.onLoadingStart)&&window.URL.revokeObjectURL(s.printable);var v="mouseover";(P.default.isChrome()||P.default.isFirefox())&&(v="focus");var f=function S(){window.removeEventListener(v,S),s.onPrintDialogClose();var g=document.getElementById(s.frameId);g&&g.remove()};window.addEventListener(v,f)}function M(s){var v=new RegExp("<([A-Za-z][A-Za-z0-9]*)\\b[^>]*>(.*?)</\\1>");return v.test(s)}},"./src/js/html.js":function(p,h,u){"use strict";u.r(h);var y=u("./src/js/functions.js"),P=u("./src/js/print.js");function b(m){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?b=function(c){return typeof c}:b=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},b(m)}h.default={print:function(o,c){var O=w(o.printable)?o.printable:document.getElementById(o.printable);if(!O){window.console.error("Invalid HTML element id: "+o.printable);return}o.printableElement=I(O,o),o.header&&Object(y.addHeader)(o.printableElement,o),P.default.send(o,c)}};function I(m,o){for(var c=m.cloneNode(),O=Array.prototype.slice.call(m.childNodes),M=0;M<O.length;M++)if(o.ignoreElements.indexOf(O[M].id)===-1){var s=I(O[M],o);c.appendChild(s)}switch(o.scanStyles&&m.nodeType===1&&c.setAttribute("style",Object(y.collectStyles)(m,o)),m.tagName){case"SELECT":c.value=m.value;break;case"CANVAS":c.getContext("2d").drawImage(m,0,0);break}return c}function w(m){return b(m)==="object"&&m&&(m instanceof HTMLElement||m.nodeType===1)}},"./src/js/image.js":function(p,h,u){"use strict";u.r(h);var y=u("./src/js/functions.js"),P=u("./src/js/print.js"),b=u("./src/js/browser.js");h.default={print:function(w,m){w.printable.constructor!==Array&&(w.printable=[w.printable]),w.printableElement=document.createElement("div"),w.printable.forEach(function(o){var c=document.createElement("img");if(c.setAttribute("style",w.imageStyle),c.src=o,b.default.isFirefox()){var O=c.src;c.src=O}var M=document.createElement("div");M.appendChild(c),w.printableElement.appendChild(M)}),w.header&&Object(y.addHeader)(w.printableElement,w),P.default.send(w,m)}}},"./src/js/init.js":function(p,h,u){"use strict";u.r(h);var y=u("./src/js/browser.js"),P=u("./src/js/modal.js"),b=u("./src/js/pdf.js"),I=u("./src/js/html.js"),w=u("./src/js/raw-html.js"),m=u("./src/js/image.js"),o=u("./src/js/json.js");function c(M){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?c=function(v){return typeof v}:c=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},c(M)}var O=["pdf","html","image","json","raw-html"];h.default={init:function(){var s={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(z){throw z},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%;"},v=arguments[0];if(v===void 0)throw new Error("printJS expects at least 1 attribute.");switch(c(v)){case"string":s.printable=encodeURI(v),s.fallbackPrintable=s.printable,s.type=arguments[1]||s.type;break;case"object":s.printable=v.printable,s.fallbackPrintable=typeof v.fallbackPrintable<"u"?v.fallbackPrintable:s.printable,s.fallbackPrintable=s.base64?"data:application/pdf;base64,".concat(s.fallbackPrintable):s.fallbackPrintable;for(var f in s)f==="printable"||f==="fallbackPrintable"||(s[f]=typeof v[f]<"u"?v[f]:s[f]);break;default:throw new Error('Unexpected argument type! Expected "string" or "object", got '+c(v))}if(!s.printable)throw new Error("Missing printable information.");if(!s.type||typeof s.type!="string"||O.indexOf(s.type.toLowerCase())===-1)throw new Error("Invalid print type. Available types are: pdf, html, image and json.");s.showModal&&P.default.show(s),s.onLoadingStart&&s.onLoadingStart();var S=document.getElementById(s.frameId);S&&S.parentNode.removeChild(S);var g=document.createElement("iframe");switch(y.default.isFirefox()?g.setAttribute("style","width: 1px; height: 100px; position: fixed; left: 0; top: 0; opacity: 0; border-width: 0; margin: 0; padding: 0"):g.setAttribute("style","visibility: hidden; height: 0; width: 0; position: absolute; border: 0"),g.setAttribute("id",s.frameId),s.type!=="pdf"&&(g.srcdoc="<html><head><title>"+s.documentTitle+"</title>",s.css&&(Array.isArray(s.css)||(s.css=[s.css]),s.css.forEach(function(T){g.srcdoc+='<link rel="stylesheet" href="'+T+'">'})),g.srcdoc+="</head><body></body></html>"),s.type){case"pdf":if(y.default.isIE())try{console.info("Print.js doesn't support PDF printing in Internet Explorer.");var A=window.open(s.fallbackPrintable,"_blank");A.focus(),s.onIncompatibleBrowser()}catch(T){s.onError(T)}finally{s.showModal&&P.default.close(),s.onLoadingEnd&&s.onLoadingEnd()}else b.default.print(s,g);break;case"image":m.default.print(s,g);break;case"html":I.default.print(s,g);break;case"raw-html":w.default.print(s,g);break;case"json":o.default.print(s,g);break}}}},"./src/js/json.js":function(p,h,u){"use strict";u.r(h);var y=u("./src/js/functions.js"),P=u("./src/js/print.js");function b(w){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?b=function(o){return typeof o}:b=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},b(w)}h.default={print:function(m,o){if(b(m.printable)!=="object")throw new Error("Invalid javascript data object (JSON).");if(typeof m.repeatTableHeader!="boolean")throw new Error("Invalid value for repeatTableHeader attribute (JSON).");if(!m.properties||!Array.isArray(m.properties))throw new Error("Invalid properties array for your JSON data.");m.properties=m.properties.map(function(c){return{field:b(c)==="object"?c.field:c,displayName:b(c)==="object"?c.displayName:c,columnSize:b(c)==="object"&&c.columnSize?c.columnSize+";":100/m.properties.length+"%;"}}),m.printableElement=document.createElement("div"),m.header&&Object(y.addHeader)(m.printableElement,m),m.printableElement.innerHTML+=I(m),P.default.send(m,o)}};function I(w){var m=w.printable,o=w.properties,c='<table style="border-collapse: collapse; width: 100%;">';w.repeatTableHeader&&(c+="<thead>"),c+="<tr>";for(var O=0;O<o.length;O++)c+='<th style="width:'+o[O].columnSize+";"+w.gridHeaderStyle+'">'+Object(y.capitalizePrint)(o[O].displayName)+"</th>";c+="</tr>",w.repeatTableHeader&&(c+="</thead>"),c+="<tbody>";for(var M=0;M<m.length;M++){c+="<tr>";for(var s=0;s<o.length;s++){var v=m[M],f=o[s].field.split(".");if(f.length>1)for(var S=0;S<f.length;S++)v=v[f[S]];else v=v[o[s].field];c+='<td style="width:'+o[s].columnSize+w.gridStyle+'">'+v+"</td>"}c+="</tr>"}return c+="</tbody></table>",c}},"./src/js/modal.js":function(p,h,u){"use strict";u.r(h);var y={show:function(b){var I="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;",w=document.createElement("div");w.setAttribute("style",I),w.setAttribute("id","printJS-Modal");var m=document.createElement("div");m.setAttribute("style","display:table-cell; vertical-align:middle; padding-bottom:100px;");var o=document.createElement("div");o.setAttribute("class","printClose"),o.setAttribute("id","printClose"),m.appendChild(o);var c=document.createElement("span");c.setAttribute("class","printSpinner"),m.appendChild(c);var O=document.createTextNode(b.modalMessage);m.appendChild(O),w.appendChild(m),document.getElementsByTagName("body")[0].appendChild(w),document.getElementById("printClose").addEventListener("click",function(){y.close()})},close:function(){var b=document.getElementById("printJS-Modal");b&&b.parentNode.removeChild(b)}};h.default=y},"./src/js/pdf.js":function(p,h,u){"use strict";u.r(h);var y=u("./src/js/print.js"),P=u("./src/js/functions.js");h.default={print:function(w,m){if(w.base64){var o=Uint8Array.from(atob(w.printable),function(O){return O.charCodeAt(0)});b(w,m,o);return}w.printable=/^(blob|http|\/\/)/i.test(w.printable)?w.printable:window.location.origin+(w.printable.charAt(0)!=="/"?"/"+w.printable:w.printable);var c=new window.XMLHttpRequest;c.responseType="arraybuffer",c.addEventListener("error",function(){Object(P.cleanUp)(w),w.onError(c.statusText,c)}),c.addEventListener("load",function(){if([200,201].indexOf(c.status)===-1){Object(P.cleanUp)(w),w.onError(c.statusText,c);return}b(w,m,c.response)}),c.open("GET",w.printable,!0),c.send()}};function b(I,w,m){var o=new window.Blob([m],{type:"application/pdf"});o=window.URL.createObjectURL(o),w.setAttribute("src",o),y.default.send(I,w)}},"./src/js/print.js":function(p,h,u){"use strict";u.r(h);var y=u("./src/js/browser.js"),P=u("./src/js/functions.js"),b={send:function(c,O){document.getElementsByTagName("body")[0].appendChild(O);var M=document.getElementById(c.frameId);M.onload=function(){if(c.type==="pdf"){y.default.isFirefox()?setTimeout(function(){return I(M,c)},1e3):I(M,c);return}var s=M.contentWindow||M.contentDocument;if(s.document&&(s=s.document),s.body.appendChild(c.printableElement),c.type!=="pdf"&&c.style){var v=document.createElement("style");v.innerHTML=c.style,s.head.appendChild(v)}var f=s.getElementsByTagName("img");f.length>0?w(Array.from(f)).then(function(){return I(M,c)}):I(M,c)}}};function I(o,c){try{if(o.focus(),y.default.isEdge()||y.default.isIE())try{o.contentWindow.document.execCommand("print",!1,null)}catch{o.contentWindow.print()}else o.contentWindow.print()}catch(O){c.onError(O)}finally{y.default.isFirefox()&&(o.style.visibility="hidden",o.style.left="-1px"),Object(P.cleanUp)(c)}}function w(o){var c=o.map(function(O){if(O.src&&O.src!==window.location.href)return m(O)});return Promise.all(c)}function m(o){return new Promise(function(c){var O=function M(){!o||typeof o.naturalWidth>"u"||o.naturalWidth===0||!o.complete?setTimeout(M,500):c()};O()})}h.default=b},"./src/js/raw-html.js":function(p,h,u){"use strict";u.r(h);var y=u("./src/js/print.js");h.default={print:function(b,I){b.printableElement=document.createElement("div"),b.printableElement.setAttribute("style","width:100%"),b.printableElement.innerHTML=b.printable,y.default.send(b,I)}}},"./src/sass/index.scss":function(p,h,u){},0:function(p,h,u){p.exports=u("./src/index.js")}}).default})},3335:($,p,h)=>{"use strict";var u;/**
1
+ (globalThis.webpackChunk_icanbwell_composite=globalThis.webpackChunk_icanbwell_composite||[]).push([[311],{1827:($,p,h)=>{"use strict";h.d(p,{b:()=>Gt});var u=function(t,e){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},u(t,e)};function y(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");u(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var P=function(){return P=Object.assign||function(e){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e},P.apply(this,arguments)};function b(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n}function I(t,e,n,r){var a=arguments.length,l=a<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,j;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(t,e,n,r);else for(var x=t.length-1;x>=0;x--)(j=t[x])&&(l=(a<3?j(l):a>3?j(e,n,l):j(e,n))||l);return a>3&&l&&Object.defineProperty(e,n,l),l}function w(t,e){return function(n,r){e(n,r,t)}}function m(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function o(t,e,n,r){function a(l){return l instanceof n?l:new n(function(j){j(l)})}return new(n||(n=Promise))(function(l,j){function x(H){try{_(r.next(H))}catch(ce){j(ce)}}function Z(H){try{_(r.throw(H))}catch(ce){j(ce)}}function _(H){H.done?l(H.value):a(H.value).then(x,Z)}_((r=r.apply(t,e||[])).next())})}function c(t,e){var n={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},r,a,l,j;return j={next:x(0),throw:x(1),return:x(2)},typeof Symbol=="function"&&(j[Symbol.iterator]=function(){return this}),j;function x(_){return function(H){return Z([_,H])}}function Z(_){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,a&&(l=_[0]&2?a.return:_[0]?a.throw||((l=a.return)&&l.call(a),0):a.next)&&!(l=l.call(a,_[1])).done)return l;switch(a=0,l&&(_=[_[0]&2,l.value]),_[0]){case 0:case 1:l=_;break;case 4:return n.label++,{value:_[1],done:!1};case 5:n.label++,a=_[1],_=[0];continue;case 7:_=n.ops.pop(),n.trys.pop();continue;default:if(l=n.trys,!(l=l.length>0&&l[l.length-1])&&(_[0]===6||_[0]===2)){n=0;continue}if(_[0]===3&&(!l||_[1]>l[0]&&_[1]<l[3])){n.label=_[1];break}if(_[0]===6&&n.label<l[1]){n.label=l[1],l=_;break}if(l&&n.label<l[2]){n.label=l[2],n.ops.push(_);break}l[2]&&n.ops.pop(),n.trys.pop();continue}_=e.call(t,n)}catch(H){_=[6,H],a=0}finally{r=l=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}}var O=Object.create?function(t,e,n,r){r===void 0&&(r=n);var a=Object.getOwnPropertyDescriptor(e,n);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,a)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]};function M(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&O(e,t,n)}function s(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),a,l=[],j;try{for(;(e===void 0||e-- >0)&&!(a=r.next()).done;)l.push(a.value)}catch(x){j={error:x}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(j)throw j.error}}return l}function f(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(v(arguments[e]));return t}function S(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var r=Array(t),a=0,e=0;e<n;e++)for(var l=arguments[e],j=0,x=l.length;j<x;j++,a++)r[a]=l[j];return r}function g(t,e,n){if(n||arguments.length===2)for(var r=0,a=e.length,l;r<a;r++)(l||!(r in e))&&(l||(l=Array.prototype.slice.call(e,0,r)),l[r]=e[r]);return t.concat(l||Array.prototype.slice.call(e))}function A(t){return this instanceof A?(this.v=t,this):new A(t)}function T(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),a,l=[];return a={},j("next"),j("throw"),j("return"),a[Symbol.asyncIterator]=function(){return this},a;function j(F){r[F]&&(a[F]=function(ae){return new Promise(function(it,Jt){l.push([F,ae,it,Jt])>1||x(F,ae)})})}function x(F,ae){try{Z(r[F](ae))}catch(it){ce(l[0][3],it)}}function Z(F){F.value instanceof A?Promise.resolve(F.value.v).then(_,H):ce(l[0][2],F)}function _(F){x("next",F)}function H(F){x("throw",F)}function ce(F,ae){F(ae),l.shift(),l.length&&x(l[0][0],l[0][1])}}function z(t){var e,n;return e={},r("next"),r("throw",function(a){throw a}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(a,l){e[a]=t[a]?function(j){return(n=!n)?{value:A(t[a](j)),done:a==="return"}:l?l(j):j}:l}}function te(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof s=="function"?s(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(l){n[l]=t[l]&&function(j){return new Promise(function(x,Z){j=t[l](j),a(x,Z,j.done,j.value)})}}function a(l,j,x,Z){Promise.resolve(Z).then(function(_){l({value:_,done:x})},j)}}function V(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var ue=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function je(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&O(e,t,n);return ue(e,t),e}function Me(t){return t&&t.__esModule?t:{default:t}}function E(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)}function k(t,e,n,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(t,n):a?a.value=n:e.set(t,n),n}function rt(t,e){if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof t=="function"?e===t:t.has(e)}var J;class fe{constructor(e){J.set(this,void 0),k(this,J,e,"f")}get isWithin(){return!!window.ReactNativeWebView}open(e){E(this,J,"f").emit("openwebview",e)}close(e){E(this,J,"f").emit("closewebview",e)}reload(){E(this,J,"f").emit("reloadwebview")}}J=new WeakMap;var ne=h(692),ie=h.n(ne);const _e=(t,e)=>ie().bind(`${t}.${String(e)}`),D=t=>e=>_e(t,e);var q,de;const i=D("biometrics");class d{constructor(e){q.set(this,void 0),de.set(this,i("isAvailable")),this.isAvailable=()=>o(this,void 0,void 0,function*(){return E(this,q,"f").isWithin?yield E(this,de,"f").call(this):!1}),this.getBiometryInformation=i("getBiometryInformation"),this.biometricKeysExist=i("biometricKeysExist"),this.createKeys=i("createKeys"),this.createSignature=i("createSignature"),this.deleteKeys=i("deleteKeys"),this.checkPermission=i("checkPermission"),this.requestPermission=i("requestPermission"),k(this,q,e,"f")}}q=new WeakMap,de=new WeakMap;const W=D("events");class L{constructor(){this.emit=W("emit")}}var N=h(5057);const B=N.bind({concatArrays:!0,ignoreUndefined:!0});function R(t,e){const n=window.localStorage.getItem(t);if(n){const r=JSON.parse(n),a=JSON.parse(e),l=JSON.stringify(B(r,a));window.localStorage.setItem(t,l)}else window.localStorage.setItem(t,e)}function C(t,e){return new Promise((n,r)=>{try{const a=t();e?.(null,a),n(a)}catch(a){e?.(a),r(a)}})}function K(t,e,n){return Promise.all(t).then(r=>{const a=n?.(r)??null;return e?.(null,a),Promise.resolve(a)},r=>(e?.(r),Promise.reject(r)))}const he={getItem:(t,e)=>C(()=>window.localStorage.getItem(t),e),setItem:(t,e,n)=>C(()=>window.localStorage.setItem(t,e),n),removeItem:(t,e)=>C(()=>window.localStorage.removeItem(t),e),mergeItem:(t,e,n)=>C(()=>R(t,e),n),clear:t=>C(()=>window.localStorage.clear(),t),getAllKeys:t=>C(()=>{const e=window.localStorage.length,n=[];for(let r=0;r<e;r+=1){const a=window.localStorage.key(r)||"";n.push(a)}return n},t),flushGetRequests:()=>{},multiGet:(t,e)=>{const n=t.map(a=>he.getItem(a));return K(n,e,a=>a.map((l,j)=>[t[j],l]))},multiSet:(t,e)=>{const n=t.map(r=>he.setItem(r[0],r[1]));return K(n,e)},multiRemove:(t,e)=>{const n=t.map(r=>he.removeItem(r));return K(n,e)},multiMerge:(t,e)=>{const n=t.map(r=>he.mergeItem(r[0],r[1]));return K(n,e)}},ut=he;function qt(t){return{getItem:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return AsyncStorage.getItem(t,...n)},setItem:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return AsyncStorage.setItem(t,...n)},mergeItem:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return AsyncStorage.mergeItem(t,...n)},removeItem:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return AsyncStorage.removeItem(t,...n)}}}const Ie=ut;var re,Ae,We,De;const Ne=D("storage");class ft{constructor(e){re.set(this,void 0),Ae.set(this,Ne("setItem")),We.set(this,Ne("getItem")),De.set(this,Ne("removeItem")),k(this,re,e,"f")}setItem(e,n){return o(this,void 0,void 0,function*(){E(this,re,"f").isWithin?yield E(this,Ae,"f").call(this,e,n):Ie.setItem(e,n)})}getItem(e){return E(this,re,"f").isWithin?E(this,We,"f").call(this,e):Ie.getItem(e)}removeItem(e){return o(this,void 0,void 0,function*(){E(this,re,"f").isWithin?yield E(this,De,"f").call(this,e):Ie.removeItem(e)})}}re=new WeakMap,Ae=new WeakMap,We=new WeakMap,De=new WeakMap;var me,Ce;const pe=D("camera");class dt{constructor(e){me.set(this,void 0),Ce.set(this,pe("isAvailable")),this.isAvailable=()=>o(this,void 0,void 0,function*(){return E(this,me,"f").isWithin?yield E(this,Ce,"f").call(this):!1}),this.checkPermission=pe("checkPermission"),this.checkRollPermission=pe("checkRollPermission"),this.requestPermission=pe("requestPermission"),this.requestRollPermission=pe("requestRollPermission"),k(this,me,e,"f")}}me=new WeakMap,Ce=new WeakMap;var oe=h(934),se=h(3758),Y,Le,Te,Re,xe;const ve=D("geolocation");class ht{constructor(e){Y.set(this,void 0),Le.set(this,ve("isAvailable")),Te.set(this,ve("getCurrentPosition")),Re.set(this,ve("checkPermission")),xe.set(this,ve("requestPermission")),this.isAvailable=()=>o(this,void 0,void 0,function*(){return E(this,Y,"f").isWithin?E(this,Le,"f").call(this):!!navigator.geolocation}),this.getCurrentPosition=n=>o(this,void 0,void 0,function*(){if(E(this,Y,"f").isWithin)return E(this,Te,"f").call(this,n);try{const{state:r}=yield navigator.permissions.query({name:"geolocation"});if(r==="granted"||r==="prompt")return yield new Promise((a,l)=>navigator.geolocation.getCurrentPosition(a,l,n))}catch(r){throw new oe.b(`Failed to retrieve the permission or the position is unavailable. ${r.message}`,{errorCode:se.O.UNKNOWN})}throw new oe.b("Permission Denied.",{errorCode:se.O.INSUFFICIENT_PERMISSIONS})}),this.checkPermission=()=>o(this,void 0,void 0,function*(){return E(this,Y,"f").isWithin?E(this,Re,"f").call(this):(yield navigator.permissions.query({name:"geolocation"})).state}),this.requestPermission=()=>o(this,void 0,void 0,function*(){if(E(this,Y,"f").isWithin)return yield E(this,xe,"f").call(this);{const{state:n}=yield navigator.permissions.query({name:"geolocation"});return(n==="granted"||n==="prompt")&&(yield new Promise((r,a)=>navigator.geolocation.getCurrentPosition(r,a))),n}}),k(this,Y,e,"f")}}Y=new WeakMap,Le=new WeakMap,Te=new WeakMap,Re=new WeakMap,xe=new WeakMap;var pt=h(1204),yt=h.n(pt),mt=h(7931),vt=h.n(mt),be,Ue;const bt=D("print");class wt{constructor(e){be.set(this,void 0),Ue.set(this,bt("print")),k(this,be,e,"f")}print(e){return o(this,void 0,void 0,function*(){if(e.filePath&&yt()(e.filePath)||e.html){if(E(this,be,"f").isWithin)return yield E(this,Ue,"f").call(this,e);vt()({type:e.html?"raw-html":"pdf",printable:e.html||e.filePath})}else throw new oe.b("Filepath must be an absolute URL.",{errorCode:se.O.UNKNOWN})})}}be=new WeakMap,Ue=new WeakMap;var Q,Be,ke,Ke,Fe;const we=D("documentDownload"),$e={"image/jpeg":"jpeg","image/png":"png","image/svg+xml":"svg","application/pdf":"pdf","text/calendar":"ics"},gt=t=>{const e=/^\s*data:([a-z]+\/[a-z0-9\-+]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,[a-z0-9!$&',()*+,;=\-._~:@/?%\s]*\s*$/i;return!!t.match(e)},Et=t=>t.substring(t.indexOf(":")+1,t.indexOf(";")),Pt=(t,e)=>{if(!gt(e))throw new oe.b("Invalid Data URL Format.",{errorCode:se.O.UNKNOWN});const n=Et(e);return ge(n),`${t}.${$e[n]}`},ge=t=>{if(!Object.keys($e).includes(t))throw new oe.b("Invalid or unallowed file type.",{errorCode:se.O.UNKNOWN})};class St{constructor(e){Q.set(this,void 0),Be.set(this,we("isAvailable")),ke.set(this,we("writeFile")),Ke.set(this,we("checkPermission")),Fe.set(this,we("requestPermission")),this.isAvailable=n=>o(this,void 0,void 0,function*(){return ge(n),E(this,Q,"f").isWithin?E(this,Be,"f").call(this,n):!0}),this.writeFile=(n,r)=>o(this,void 0,void 0,function*(){if(Object.values($e).some(l=>n.includes(l)))throw new oe.b("Filename should not contain extension",{errorCode:se.O.UNKNOWN});const a=Pt(n,r);if(E(this,Q,"f").isWithin)return E(this,ke,"f").call(this,a,r);{const l=document.createElement("a");return l.href=r,l.download=a,l.click(),"Files"}}),this.checkPermission=n=>o(this,void 0,void 0,function*(){return ge(n),E(this,Q,"f").isWithin?E(this,Ke,"f").call(this,n):"granted"}),this.requestPermission=n=>o(this,void 0,void 0,function*(){return ge(n),E(this,Q,"f").isWithin?yield E(this,Fe,"f").call(this,n):"granted"}),k(this,Q,e,"f")}}Q=new WeakMap,Be=new WeakMap,ke=new WeakMap,Ke=new WeakMap,Fe=new WeakMap;const le=Object.freeze({UNAVAILABLE:"unavailable",BLOCKED:"blocked",DENIED:"denied",GRANTED:"granted",LIMITED:"limited"}),ze="Only supported by iOS 14 and above";async function Ot(){throw new Error(ze)}async function jt(t){throw new Error(ze)}async function Mt(){throw new Error(ze)}async function ot(){return le.UNAVAILABLE}async function st(){return{status:le.UNAVAILABLE,settings:{}}}async function lt(t){return t.reduce((e,n)=>(e[n]=le.UNAVAILABLE,e),{})}const G={check:ot,checkLocationAccuracy:Ot,checkMultiple:lt,checkNotifications:st,openLimitedPhotoLibraryPicker:Mt,openSettings:Promise.reject,request:ot,requestLocationAccuracy:jt,requestMultiple:lt,requestNotifications:st},_t=Object.freeze({ANDROID:{},IOS:{},WINDOWS:{}}),It=G.check,At=G.checkLocationAccuracy,Wt=G.checkMultiple,Dt=G.checkNotifications,Nt=G.openLimitedPhotoLibraryPicker,Ct=G.openSettings,Lt=G.request,Tt=G.requestLocationAccuracy,Rt=G.requestMultiple,xt=G.requestNotifications,Zt={PERMISSIONS:_t,RESULTS:le,check:It,checkLocationAccuracy:At,checkMultiple:Wt,checkNotifications:Dt,openLimitedPhotoLibraryPicker:Nt,openSettings:Ct,request:Lt,requestLocationAccuracy:Tt,requestMultiple:Rt,requestNotifications:xt};var X,He,Ve,Ge,Je;const Ee=D("documentPicker"),Ut=t=>new Promise((e,n)=>{const r=new FileReader;r.readAsDataURL(t),r.onload=()=>e(r.result.replace("data:","").replace(/^.+,/,"")),r.onerror=n}),ct=t=>new Promise((e,n)=>{const r=document.createElement("input");r.type="file",t===!0&&(r.multiple=t),r.onchange=({target:a})=>o(void 0,void 0,void 0,function*(){try{e(yield Promise.all(Object.values(a.files).map(l=>o(void 0,void 0,void 0,function*(){return{type:l.type,name:l.name,size:l.size,base64:yield Ut(l)}}))))}catch(l){n(l)}}),r.click()});class Bt{constructor(e){X.set(this,void 0),He.set(this,Ee("pickMultiple")),Ve.set(this,Ee("pickSingle")),Ge.set(this,Ee("checkPermission")),Je.set(this,Ee("requestPermission")),this.pickMultiple=()=>E(this,X,"f").isWithin?E(this,He,"f").call(this):ct(!0),this.checkPermission=()=>o(this,void 0,void 0,function*(){return E(this,X,"f").isWithin?yield E(this,Ge,"f").call(this):Promise.resolve(le.GRANTED)}),this.requestPermission=()=>o(this,void 0,void 0,function*(){return E(this,X,"f").isWithin?yield E(this,Je,"f").call(this):Promise.resolve(le.GRANTED)}),k(this,X,e,"f")}pickSingle(){return o(this,void 0,void 0,function*(){return E(this,X,"f").isWithin?E(this,Ve,"f").call(this):(yield ct(!1))[0]})}}X=new WeakMap,He=new WeakMap,Ve=new WeakMap,Ge=new WeakMap,Je=new WeakMap;var ee,qe,Ze,Ye,Qe;const Pe=D("pushNotifications");class kt{constructor(e){ee.set(this,void 0),qe.set(this,Pe("isAvailable")),Ze.set(this,Pe("getDeviceToken")),Ye.set(this,Pe("checkPermission")),Qe.set(this,Pe("requestPermission")),this.isAvailable=()=>o(this,void 0,void 0,function*(){return E(this,ee,"f").isWithin?E(this,qe,"f").call(this):!1}),this.getDeviceToken=()=>o(this,void 0,void 0,function*(){if(E(this,ee,"f").isWithin)return E(this,Ze,"f").call(this);throw new Error("This method is currently not supported on web")}),this.checkPermission=()=>o(this,void 0,void 0,function*(){return E(this,ee,"f").isWithin?E(this,Ye,"f").call(this):"unavailable"}),this.requestPermission=()=>o(this,void 0,void 0,function*(){return E(this,ee,"f").isWithin?yield E(this,Qe,"f").call(this):"unavailable"}),k(this,ee,e,"f")}}ee=new WeakMap,qe=new WeakMap,Ze=new WeakMap,Ye=new WeakMap,Qe=new WeakMap;var Se,Xe;const Kt=D("deepLink");class Ft{constructor(e){Se.set(this,void 0),Xe.set(this,Kt("openLink")),this.openLink=(n,r="_blank")=>o(this,void 0,void 0,function*(){if(E(this,Se,"f").isWithin)return E(this,Xe,"f").call(this,n,r);window.open(n.webUrl,r)}),k(this,Se,e,"f")}}Se=new WeakMap,Xe=new WeakMap;var Oe,et;const $t=D("system");class zt{constructor(e){Oe.set(this,void 0),et.set(this,$t("openSettings")),this.openSettings=()=>o(this,void 0,void 0,function*(){if(E(this,Oe,"f").isWithin)return yield E(this,et,"f").call(this)}),k(this,Oe,e,"f")}}Oe=new WeakMap,et=new WeakMap;var ye,tt,nt;const at=D("utils");class Ht{constructor(e){ye.set(this,void 0),tt.set(this,at("getPlatform")),nt.set(this,at("getBundleId")),k(this,ye,e,"f")}getPlatform(){return o(this,void 0,void 0,function*(){return E(this,ye,"f").isWithin?E(this,tt,"f").call(this):"web"})}getBundleId(){return o(this,void 0,void 0,function*(){if(E(this,ye,"f").isWithin)return E(this,nt,"f").call(this);console.warn("bundleId not available on the web")})}}ye=new WeakMap,tt=new WeakMap,nt=new WeakMap;class Vt{constructor(){this.events=new L,this.webview=new fe(this.events),this.biometrics=new d(this.webview),this.storage=new ft(this.webview),this.camera=new dt(this.webview),this.geolocation=new ht(this.webview),this.print=new wt(this.webview),this.documentDownload=new St(this.webview),this.documentPicker=new Bt(this.webview),this.pushNotifications=new kt(this.webview),this.deepLink=new Ft(this.webview),this.utils=new Ht(this.webview),this.system=new zt(this.webview)}reloadView(){this.webview.isWithin?this.webview.reload():globalThis.location.reload()}}const Gt=new Vt},1204:$=>{"use strict";$.exports=p=>{if(typeof p!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof p}\``);return/^[a-zA-Z]:\\/.test(p)?!1:/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(p)}},5057:function($,p,h){"use strict";const u=h(4428),{hasOwnProperty:y}=Object.prototype,{propertyIsEnumerable:P}=Object,b=(f,S,g)=>Object.defineProperty(f,S,{value:g,writable:!0,enumerable:!0,configurable:!0}),I=this,w={concatArrays:!1,ignoreUndefined:!1},m=f=>{const S=[];for(const g in f)y.call(f,g)&&S.push(g);if(Object.getOwnPropertySymbols){const g=Object.getOwnPropertySymbols(f);for(const A of g)P.call(f,A)&&S.push(A)}return S};function o(f){return Array.isArray(f)?c(f):u(f)?O(f):f}function c(f){const S=f.slice(0,0);return m(f).forEach(g=>{b(S,g,o(f[g]))}),S}function O(f){const S=Object.getPrototypeOf(f)===null?Object.create(null):{};return m(f).forEach(g=>{b(S,g,o(f[g]))}),S}const M=(f,S,g,A)=>(g.forEach(T=>{typeof S[T]>"u"&&A.ignoreUndefined||(T in f&&f[T]!==Object.getPrototypeOf(f)?b(f,T,v(f[T],S[T],A)):b(f,T,o(S[T])))}),f),s=(f,S,g)=>{let A=f.slice(0,0),T=0;return[f,S].forEach(z=>{const te=[];for(let V=0;V<z.length;V++)!y.call(z,V)||(te.push(String(V)),z===f?b(A,T++,z[V]):b(A,T++,o(z[V])));A=M(A,z,m(z).filter(V=>!te.includes(V)),g)}),A};function v(f,S,g){return g.concatArrays&&Array.isArray(f)&&Array.isArray(S)?s(f,S,g):!u(S)||!u(f)?o(S):M(f,S,m(S),g)}$.exports=function(...f){const S=v(o(w),this!==I&&this||{},w);let g={_:{}};for(const A of f)if(A!==void 0){if(!u(A))throw new TypeError("`"+A+"` is not an Option Object");g=v(g,{_:A},S)}return g._}},4428:$=>{"use strict";$.exports=p=>{if(Object.prototype.toString.call(p)!=="[object Object]")return!1;const h=Object.getPrototypeOf(p);return h===null||h===Object.prototype}},7931:$=>{(function(h,u){$.exports=u()})(window,function(){return function(p){var h={};function u(y){if(h[y])return h[y].exports;var P=h[y]={i:y,l:!1,exports:{}};return p[y].call(P.exports,P,P.exports,u),P.l=!0,P.exports}return u.m=p,u.c=h,u.d=function(y,P,b){u.o(y,P)||Object.defineProperty(y,P,{enumerable:!0,get:b})},u.r=function(y){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(y,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(y,"__esModule",{value:!0})},u.t=function(y,P){if(P&1&&(y=u(y)),P&8||P&4&&typeof y=="object"&&y&&y.__esModule)return y;var b=Object.create(null);if(u.r(b),Object.defineProperty(b,"default",{enumerable:!0,value:y}),P&2&&typeof y!="string")for(var I in y)u.d(b,I,function(w){return y[w]}.bind(null,I));return b},u.n=function(y){var P=y&&y.__esModule?function(){return y.default}:function(){return y};return u.d(P,"a",P),P},u.o=function(y,P){return Object.prototype.hasOwnProperty.call(y,P)},u.p="",u(u.s=0)}({"./src/index.js":function(p,h,u){"use strict";u.r(h);var y=u("./src/sass/index.scss"),P=u.n(y),b=u("./src/js/init.js"),I=b.default.init;typeof window<"u"&&(window.printJS=I),h.default=I},"./src/js/browser.js":function(p,h,u){"use strict";u.r(h);var y={isFirefox:function(){return typeof InstallTrigger<"u"},isIE:function(){return navigator.userAgent.indexOf("MSIE")!==-1||!!document.documentMode},isEdge:function(){return!y.isIE()&&!!window.StyleMedia},isChrome:function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window;return!!b.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}};h.default=y},"./src/js/functions.js":function(p,h,u){"use strict";u.r(h),u.d(h,"addWrapper",function(){return I}),u.d(h,"capitalizePrint",function(){return w}),u.d(h,"collectStyles",function(){return m}),u.d(h,"addHeader",function(){return c}),u.d(h,"cleanUp",function(){return O}),u.d(h,"isRawHTML",function(){return M});var y=u("./src/js/modal.js"),P=u("./src/js/browser.js");function b(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?b=function(f){return typeof f}:b=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},b(s)}function I(s,v){var f="font-family:"+v.font+" !important; font-size: "+v.font_size+" !important; width:100%;";return'<div style="'+f+'">'+s+"</div>"}function w(s){return s.charAt(0).toUpperCase()+s.slice(1)}function m(s,v){for(var f=document.defaultView||window,S="",g=f.getComputedStyle(s,""),A=0;A<g.length;A++)(v.targetStyles.indexOf("*")!==-1||v.targetStyle.indexOf(g[A])!==-1||o(v.targetStyles,g[A]))&&g.getPropertyValue(g[A])&&(S+=g[A]+":"+g.getPropertyValue(g[A])+";");return S+="max-width: "+v.maxWidth+"px !important; font-size: "+v.font_size+" !important;",S}function o(s,v){for(var f=0;f<s.length;f++)if(b(v)==="object"&&v.indexOf(s[f])!==-1)return!0;return!1}function c(s,v){var f=document.createElement("div");if(M(v.header))f.innerHTML=v.header;else{var S=document.createElement("h1"),g=document.createTextNode(v.header);S.appendChild(g),S.setAttribute("style",v.headerStyle),f.appendChild(S)}s.insertBefore(f,s.childNodes[0])}function O(s){s.showModal&&y.default.close(),s.onLoadingEnd&&s.onLoadingEnd(),(s.showModal||s.onLoadingStart)&&window.URL.revokeObjectURL(s.printable);var v="mouseover";(P.default.isChrome()||P.default.isFirefox())&&(v="focus");var f=function S(){window.removeEventListener(v,S),s.onPrintDialogClose();var g=document.getElementById(s.frameId);g&&g.remove()};window.addEventListener(v,f)}function M(s){var v=new RegExp("<([A-Za-z][A-Za-z0-9]*)\\b[^>]*>(.*?)</\\1>");return v.test(s)}},"./src/js/html.js":function(p,h,u){"use strict";u.r(h);var y=u("./src/js/functions.js"),P=u("./src/js/print.js");function b(m){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?b=function(c){return typeof c}:b=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},b(m)}h.default={print:function(o,c){var O=w(o.printable)?o.printable:document.getElementById(o.printable);if(!O){window.console.error("Invalid HTML element id: "+o.printable);return}o.printableElement=I(O,o),o.header&&Object(y.addHeader)(o.printableElement,o),P.default.send(o,c)}};function I(m,o){for(var c=m.cloneNode(),O=Array.prototype.slice.call(m.childNodes),M=0;M<O.length;M++)if(o.ignoreElements.indexOf(O[M].id)===-1){var s=I(O[M],o);c.appendChild(s)}switch(o.scanStyles&&m.nodeType===1&&c.setAttribute("style",Object(y.collectStyles)(m,o)),m.tagName){case"SELECT":c.value=m.value;break;case"CANVAS":c.getContext("2d").drawImage(m,0,0);break}return c}function w(m){return b(m)==="object"&&m&&(m instanceof HTMLElement||m.nodeType===1)}},"./src/js/image.js":function(p,h,u){"use strict";u.r(h);var y=u("./src/js/functions.js"),P=u("./src/js/print.js"),b=u("./src/js/browser.js");h.default={print:function(w,m){w.printable.constructor!==Array&&(w.printable=[w.printable]),w.printableElement=document.createElement("div"),w.printable.forEach(function(o){var c=document.createElement("img");if(c.setAttribute("style",w.imageStyle),c.src=o,b.default.isFirefox()){var O=c.src;c.src=O}var M=document.createElement("div");M.appendChild(c),w.printableElement.appendChild(M)}),w.header&&Object(y.addHeader)(w.printableElement,w),P.default.send(w,m)}}},"./src/js/init.js":function(p,h,u){"use strict";u.r(h);var y=u("./src/js/browser.js"),P=u("./src/js/modal.js"),b=u("./src/js/pdf.js"),I=u("./src/js/html.js"),w=u("./src/js/raw-html.js"),m=u("./src/js/image.js"),o=u("./src/js/json.js");function c(M){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?c=function(v){return typeof v}:c=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},c(M)}var O=["pdf","html","image","json","raw-html"];h.default={init:function(){var s={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(z){throw z},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%;"},v=arguments[0];if(v===void 0)throw new Error("printJS expects at least 1 attribute.");switch(c(v)){case"string":s.printable=encodeURI(v),s.fallbackPrintable=s.printable,s.type=arguments[1]||s.type;break;case"object":s.printable=v.printable,s.fallbackPrintable=typeof v.fallbackPrintable<"u"?v.fallbackPrintable:s.printable,s.fallbackPrintable=s.base64?"data:application/pdf;base64,".concat(s.fallbackPrintable):s.fallbackPrintable;for(var f in s)f==="printable"||f==="fallbackPrintable"||(s[f]=typeof v[f]<"u"?v[f]:s[f]);break;default:throw new Error('Unexpected argument type! Expected "string" or "object", got '+c(v))}if(!s.printable)throw new Error("Missing printable information.");if(!s.type||typeof s.type!="string"||O.indexOf(s.type.toLowerCase())===-1)throw new Error("Invalid print type. Available types are: pdf, html, image and json.");s.showModal&&P.default.show(s),s.onLoadingStart&&s.onLoadingStart();var S=document.getElementById(s.frameId);S&&S.parentNode.removeChild(S);var g=document.createElement("iframe");switch(y.default.isFirefox()?g.setAttribute("style","width: 1px; height: 100px; position: fixed; left: 0; top: 0; opacity: 0; border-width: 0; margin: 0; padding: 0"):g.setAttribute("style","visibility: hidden; height: 0; width: 0; position: absolute; border: 0"),g.setAttribute("id",s.frameId),s.type!=="pdf"&&(g.srcdoc="<html><head><title>"+s.documentTitle+"</title>",s.css&&(Array.isArray(s.css)||(s.css=[s.css]),s.css.forEach(function(T){g.srcdoc+='<link rel="stylesheet" href="'+T+'">'})),g.srcdoc+="</head><body></body></html>"),s.type){case"pdf":if(y.default.isIE())try{console.info("Print.js doesn't support PDF printing in Internet Explorer.");var A=window.open(s.fallbackPrintable,"_blank");A.focus(),s.onIncompatibleBrowser()}catch(T){s.onError(T)}finally{s.showModal&&P.default.close(),s.onLoadingEnd&&s.onLoadingEnd()}else b.default.print(s,g);break;case"image":m.default.print(s,g);break;case"html":I.default.print(s,g);break;case"raw-html":w.default.print(s,g);break;case"json":o.default.print(s,g);break}}}},"./src/js/json.js":function(p,h,u){"use strict";u.r(h);var y=u("./src/js/functions.js"),P=u("./src/js/print.js");function b(w){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?b=function(o){return typeof o}:b=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},b(w)}h.default={print:function(m,o){if(b(m.printable)!=="object")throw new Error("Invalid javascript data object (JSON).");if(typeof m.repeatTableHeader!="boolean")throw new Error("Invalid value for repeatTableHeader attribute (JSON).");if(!m.properties||!Array.isArray(m.properties))throw new Error("Invalid properties array for your JSON data.");m.properties=m.properties.map(function(c){return{field:b(c)==="object"?c.field:c,displayName:b(c)==="object"?c.displayName:c,columnSize:b(c)==="object"&&c.columnSize?c.columnSize+";":100/m.properties.length+"%;"}}),m.printableElement=document.createElement("div"),m.header&&Object(y.addHeader)(m.printableElement,m),m.printableElement.innerHTML+=I(m),P.default.send(m,o)}};function I(w){var m=w.printable,o=w.properties,c='<table style="border-collapse: collapse; width: 100%;">';w.repeatTableHeader&&(c+="<thead>"),c+="<tr>";for(var O=0;O<o.length;O++)c+='<th style="width:'+o[O].columnSize+";"+w.gridHeaderStyle+'">'+Object(y.capitalizePrint)(o[O].displayName)+"</th>";c+="</tr>",w.repeatTableHeader&&(c+="</thead>"),c+="<tbody>";for(var M=0;M<m.length;M++){c+="<tr>";for(var s=0;s<o.length;s++){var v=m[M],f=o[s].field.split(".");if(f.length>1)for(var S=0;S<f.length;S++)v=v[f[S]];else v=v[o[s].field];c+='<td style="width:'+o[s].columnSize+w.gridStyle+'">'+v+"</td>"}c+="</tr>"}return c+="</tbody></table>",c}},"./src/js/modal.js":function(p,h,u){"use strict";u.r(h);var y={show:function(b){var I="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;",w=document.createElement("div");w.setAttribute("style",I),w.setAttribute("id","printJS-Modal");var m=document.createElement("div");m.setAttribute("style","display:table-cell; vertical-align:middle; padding-bottom:100px;");var o=document.createElement("div");o.setAttribute("class","printClose"),o.setAttribute("id","printClose"),m.appendChild(o);var c=document.createElement("span");c.setAttribute("class","printSpinner"),m.appendChild(c);var O=document.createTextNode(b.modalMessage);m.appendChild(O),w.appendChild(m),document.getElementsByTagName("body")[0].appendChild(w),document.getElementById("printClose").addEventListener("click",function(){y.close()})},close:function(){var b=document.getElementById("printJS-Modal");b&&b.parentNode.removeChild(b)}};h.default=y},"./src/js/pdf.js":function(p,h,u){"use strict";u.r(h);var y=u("./src/js/print.js"),P=u("./src/js/functions.js");h.default={print:function(w,m){if(w.base64){var o=Uint8Array.from(atob(w.printable),function(O){return O.charCodeAt(0)});b(w,m,o);return}w.printable=/^(blob|http|\/\/)/i.test(w.printable)?w.printable:window.location.origin+(w.printable.charAt(0)!=="/"?"/"+w.printable:w.printable);var c=new window.XMLHttpRequest;c.responseType="arraybuffer",c.addEventListener("error",function(){Object(P.cleanUp)(w),w.onError(c.statusText,c)}),c.addEventListener("load",function(){if([200,201].indexOf(c.status)===-1){Object(P.cleanUp)(w),w.onError(c.statusText,c);return}b(w,m,c.response)}),c.open("GET",w.printable,!0),c.send()}};function b(I,w,m){var o=new window.Blob([m],{type:"application/pdf"});o=window.URL.createObjectURL(o),w.setAttribute("src",o),y.default.send(I,w)}},"./src/js/print.js":function(p,h,u){"use strict";u.r(h);var y=u("./src/js/browser.js"),P=u("./src/js/functions.js"),b={send:function(c,O){document.getElementsByTagName("body")[0].appendChild(O);var M=document.getElementById(c.frameId);M.onload=function(){if(c.type==="pdf"){y.default.isFirefox()?setTimeout(function(){return I(M,c)},1e3):I(M,c);return}var s=M.contentWindow||M.contentDocument;if(s.document&&(s=s.document),s.body.appendChild(c.printableElement),c.type!=="pdf"&&c.style){var v=document.createElement("style");v.innerHTML=c.style,s.head.appendChild(v)}var f=s.getElementsByTagName("img");f.length>0?w(Array.from(f)).then(function(){return I(M,c)}):I(M,c)}}};function I(o,c){try{if(o.focus(),y.default.isEdge()||y.default.isIE())try{o.contentWindow.document.execCommand("print",!1,null)}catch{o.contentWindow.print()}else o.contentWindow.print()}catch(O){c.onError(O)}finally{y.default.isFirefox()&&(o.style.visibility="hidden",o.style.left="-1px"),Object(P.cleanUp)(c)}}function w(o){var c=o.map(function(O){if(O.src&&O.src!==window.location.href)return m(O)});return Promise.all(c)}function m(o){return new Promise(function(c){var O=function M(){!o||typeof o.naturalWidth>"u"||o.naturalWidth===0||!o.complete?setTimeout(M,500):c()};O()})}h.default=b},"./src/js/raw-html.js":function(p,h,u){"use strict";u.r(h);var y=u("./src/js/print.js");h.default={print:function(b,I){b.printableElement=document.createElement("div"),b.printableElement.setAttribute("style","width:100%"),b.printableElement.innerHTML=b.printable,y.default.send(b,I)}}},"./src/sass/index.scss":function(p,h,u){},0:function(p,h,u){p.exports=u("./src/index.js")}}).default})},3335:($,p,h)=>{"use strict";var u;/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -14,4 +14,4 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var h=Symbol.for("react.element"),u=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),I=Symbol.for("react.provider"),w=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),o=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),M=Symbol.iterator;function s(i){return i===null||typeof i!="object"?null:(i=M&&i[M]||i["@@iterator"],typeof i=="function"?i:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,S={};function g(i,d,W){this.props=i,this.context=d,this.refs=S,this.updater=W||v}g.prototype.isReactComponent={},g.prototype.setState=function(i,d){if(typeof i!="object"&&typeof i!="function"&&i!=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,i,d,"setState")},g.prototype.forceUpdate=function(i){this.updater.enqueueForceUpdate(this,i,"forceUpdate")};function A(){}A.prototype=g.prototype;function T(i,d,W){this.props=i,this.context=d,this.refs=S,this.updater=W||v}var z=T.prototype=new A;z.constructor=T,f(z,g.prototype),z.isPureReactComponent=!0;var te=Array.isArray,V=Object.prototype.hasOwnProperty,ue={current:null},je={key:!0,ref:!0,__self:!0,__source:!0};function Me(i,d,W){var L,N={},x=null,B=null;if(d!=null)for(L in d.ref!==void 0&&(B=d.ref),d.key!==void 0&&(x=""+d.key),d)V.call(d,L)&&!je.hasOwnProperty(L)&&(N[L]=d[L]);var R=arguments.length-2;if(R===1)N.children=W;else if(1<R){for(var C=Array(R),K=0;K<R;K++)C[K]=arguments[K+2];N.children=C}if(i&&i.defaultProps)for(L in R=i.defaultProps,R)N[L]===void 0&&(N[L]=R[L]);return{$$typeof:h,type:i,key:x,ref:B,props:N,_owner:ue.current}}function E(i,d){return{$$typeof:h,type:i.type,key:d,ref:i.ref,props:i.props,_owner:i._owner}}function k(i){return typeof i=="object"&&i!==null&&i.$$typeof===h}function rt(i){var d={"=":"=0",":":"=2"};return"$"+i.replace(/[=:]/g,function(W){return d[W]})}var J=/\/+/g;function fe(i,d){return typeof i=="object"&&i!==null&&i.key!=null?rt(""+i.key):d.toString(36)}function ne(i,d,W,L,N){var x=typeof i;(x==="undefined"||x==="boolean")&&(i=null);var B=!1;if(i===null)B=!0;else switch(x){case"string":case"number":B=!0;break;case"object":switch(i.$$typeof){case h:case u:B=!0}}if(B)return B=i,N=N(B),i=L===""?"."+fe(B,0):L,te(N)?(W="",i!=null&&(W=i.replace(J,"$&/")+"/"),ne(N,d,W,"",function(K){return K})):N!=null&&(k(N)&&(N=E(N,W+(!N.key||B&&B.key===N.key?"":(""+N.key).replace(J,"$&/")+"/")+i)),d.push(N)),1;if(B=0,L=L===""?".":L+":",te(i))for(var R=0;R<i.length;R++){x=i[R];var C=L+fe(x,R);B+=ne(x,d,W,C,N)}else if(C=s(i),typeof C=="function")for(i=C.call(i),R=0;!(x=i.next()).done;)x=x.value,C=L+fe(x,R++),B+=ne(x,d,W,C,N);else if(x==="object")throw d=String(i),Error("Objects are not valid as a React child (found: "+(d==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":d)+"). If you meant to render a collection of children, use an array instead.");return B}function ie(i,d,W){if(i==null)return i;var L=[],N=0;return ne(i,L,"","",function(x){return d.call(W,x,N++)}),L}function _e(i){if(i._status===-1){var d=i._result;d=d(),d.then(function(W){(i._status===0||i._status===-1)&&(i._status=1,i._result=W)},function(W){(i._status===0||i._status===-1)&&(i._status=2,i._result=W)}),i._status===-1&&(i._status=0,i._result=d)}if(i._status===1)return i._result.default;throw i._result}var D={current:null},q={transition:null},de={ReactCurrentDispatcher:D,ReactCurrentBatchConfig:q,ReactCurrentOwner:ue};p.Children={map:ie,forEach:function(i,d,W){ie(i,function(){d.apply(this,arguments)},W)},count:function(i){var d=0;return ie(i,function(){d++}),d},toArray:function(i){return ie(i,function(d){return d})||[]},only:function(i){if(!k(i))throw Error("React.Children.only expected to receive a single React element child.");return i}},p.Component=g,p.Fragment=y,p.Profiler=b,p.PureComponent=T,p.StrictMode=P,p.Suspense=o,p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=de,p.cloneElement=function(i,d,W){if(i==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+i+".");var L=f({},i.props),N=i.key,x=i.ref,B=i._owner;if(d!=null){if(d.ref!==void 0&&(x=d.ref,B=ue.current),d.key!==void 0&&(N=""+d.key),i.type&&i.type.defaultProps)var R=i.type.defaultProps;for(C in d)V.call(d,C)&&!je.hasOwnProperty(C)&&(L[C]=d[C]===void 0&&R!==void 0?R[C]:d[C])}var C=arguments.length-2;if(C===1)L.children=W;else if(1<C){R=Array(C);for(var K=0;K<C;K++)R[K]=arguments[K+2];L.children=R}return{$$typeof:h,type:i.type,key:N,ref:x,props:L,_owner:B}},p.createContext=function(i){return i={$$typeof:w,_currentValue:i,_currentValue2:i,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},i.Provider={$$typeof:I,_context:i},i.Consumer=i},p.createElement=Me,p.createFactory=function(i){var d=Me.bind(null,i);return d.type=i,d},p.createRef=function(){return{current:null}},p.forwardRef=function(i){return{$$typeof:m,render:i}},p.isValidElement=k,p.lazy=function(i){return{$$typeof:O,_payload:{_status:-1,_result:i},_init:_e}},p.memo=function(i,d){return{$$typeof:c,type:i,compare:d===void 0?null:d}},p.startTransition=function(i){var d=q.transition;q.transition={};try{i()}finally{q.transition=d}},p.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},p.useCallback=function(i,d){return D.current.useCallback(i,d)},p.useContext=function(i){return D.current.useContext(i)},p.useDebugValue=function(){},p.useDeferredValue=function(i){return D.current.useDeferredValue(i)},p.useEffect=function(i,d){return D.current.useEffect(i,d)},p.useId=function(){return D.current.useId()},p.useImperativeHandle=function(i,d,W){return D.current.useImperativeHandle(i,d,W)},p.useInsertionEffect=function(i,d){return D.current.useInsertionEffect(i,d)},p.useLayoutEffect=function(i,d){return D.current.useLayoutEffect(i,d)},p.useMemo=function(i,d){return D.current.useMemo(i,d)},p.useReducer=function(i,d,W){return D.current.useReducer(i,d,W)},p.useRef=function(i){return D.current.useRef(i)},p.useState=function(i){return D.current.useState(i)},p.useSyncExternalStore=function(i,d,W){return D.current.useSyncExternalStore(i,d,W)},p.useTransition=function(){return D.current.useTransition()},p.version="18.2.0"},4041:($,p,h)=>{"use strict";$.exports=h(4304)},1085:($,p,h)=>{"use strict";$.exports=h(3335)}}]);
17
+ */var h=Symbol.for("react.element"),u=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),I=Symbol.for("react.provider"),w=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),o=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),M=Symbol.iterator;function s(i){return i===null||typeof i!="object"?null:(i=M&&i[M]||i["@@iterator"],typeof i=="function"?i:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,S={};function g(i,d,W){this.props=i,this.context=d,this.refs=S,this.updater=W||v}g.prototype.isReactComponent={},g.prototype.setState=function(i,d){if(typeof i!="object"&&typeof i!="function"&&i!=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,i,d,"setState")},g.prototype.forceUpdate=function(i){this.updater.enqueueForceUpdate(this,i,"forceUpdate")};function A(){}A.prototype=g.prototype;function T(i,d,W){this.props=i,this.context=d,this.refs=S,this.updater=W||v}var z=T.prototype=new A;z.constructor=T,f(z,g.prototype),z.isPureReactComponent=!0;var te=Array.isArray,V=Object.prototype.hasOwnProperty,ue={current:null},je={key:!0,ref:!0,__self:!0,__source:!0};function Me(i,d,W){var L,N={},U=null,B=null;if(d!=null)for(L in d.ref!==void 0&&(B=d.ref),d.key!==void 0&&(U=""+d.key),d)V.call(d,L)&&!je.hasOwnProperty(L)&&(N[L]=d[L]);var R=arguments.length-2;if(R===1)N.children=W;else if(1<R){for(var C=Array(R),K=0;K<R;K++)C[K]=arguments[K+2];N.children=C}if(i&&i.defaultProps)for(L in R=i.defaultProps,R)N[L]===void 0&&(N[L]=R[L]);return{$$typeof:h,type:i,key:U,ref:B,props:N,_owner:ue.current}}function E(i,d){return{$$typeof:h,type:i.type,key:d,ref:i.ref,props:i.props,_owner:i._owner}}function k(i){return typeof i=="object"&&i!==null&&i.$$typeof===h}function rt(i){var d={"=":"=0",":":"=2"};return"$"+i.replace(/[=:]/g,function(W){return d[W]})}var J=/\/+/g;function fe(i,d){return typeof i=="object"&&i!==null&&i.key!=null?rt(""+i.key):d.toString(36)}function ne(i,d,W,L,N){var U=typeof i;(U==="undefined"||U==="boolean")&&(i=null);var B=!1;if(i===null)B=!0;else switch(U){case"string":case"number":B=!0;break;case"object":switch(i.$$typeof){case h:case u:B=!0}}if(B)return B=i,N=N(B),i=L===""?"."+fe(B,0):L,te(N)?(W="",i!=null&&(W=i.replace(J,"$&/")+"/"),ne(N,d,W,"",function(K){return K})):N!=null&&(k(N)&&(N=E(N,W+(!N.key||B&&B.key===N.key?"":(""+N.key).replace(J,"$&/")+"/")+i)),d.push(N)),1;if(B=0,L=L===""?".":L+":",te(i))for(var R=0;R<i.length;R++){U=i[R];var C=L+fe(U,R);B+=ne(U,d,W,C,N)}else if(C=s(i),typeof C=="function")for(i=C.call(i),R=0;!(U=i.next()).done;)U=U.value,C=L+fe(U,R++),B+=ne(U,d,W,C,N);else if(U==="object")throw d=String(i),Error("Objects are not valid as a React child (found: "+(d==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":d)+"). If you meant to render a collection of children, use an array instead.");return B}function ie(i,d,W){if(i==null)return i;var L=[],N=0;return ne(i,L,"","",function(U){return d.call(W,U,N++)}),L}function _e(i){if(i._status===-1){var d=i._result;d=d(),d.then(function(W){(i._status===0||i._status===-1)&&(i._status=1,i._result=W)},function(W){(i._status===0||i._status===-1)&&(i._status=2,i._result=W)}),i._status===-1&&(i._status=0,i._result=d)}if(i._status===1)return i._result.default;throw i._result}var D={current:null},q={transition:null},de={ReactCurrentDispatcher:D,ReactCurrentBatchConfig:q,ReactCurrentOwner:ue};p.Children={map:ie,forEach:function(i,d,W){ie(i,function(){d.apply(this,arguments)},W)},count:function(i){var d=0;return ie(i,function(){d++}),d},toArray:function(i){return ie(i,function(d){return d})||[]},only:function(i){if(!k(i))throw Error("React.Children.only expected to receive a single React element child.");return i}},p.Component=g,p.Fragment=y,p.Profiler=b,p.PureComponent=T,p.StrictMode=P,p.Suspense=o,p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=de,p.cloneElement=function(i,d,W){if(i==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+i+".");var L=f({},i.props),N=i.key,U=i.ref,B=i._owner;if(d!=null){if(d.ref!==void 0&&(U=d.ref,B=ue.current),d.key!==void 0&&(N=""+d.key),i.type&&i.type.defaultProps)var R=i.type.defaultProps;for(C in d)V.call(d,C)&&!je.hasOwnProperty(C)&&(L[C]=d[C]===void 0&&R!==void 0?R[C]:d[C])}var C=arguments.length-2;if(C===1)L.children=W;else if(1<C){R=Array(C);for(var K=0;K<C;K++)R[K]=arguments[K+2];L.children=R}return{$$typeof:h,type:i.type,key:N,ref:U,props:L,_owner:B}},p.createContext=function(i){return i={$$typeof:w,_currentValue:i,_currentValue2:i,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},i.Provider={$$typeof:I,_context:i},i.Consumer=i},p.createElement=Me,p.createFactory=function(i){var d=Me.bind(null,i);return d.type=i,d},p.createRef=function(){return{current:null}},p.forwardRef=function(i){return{$$typeof:m,render:i}},p.isValidElement=k,p.lazy=function(i){return{$$typeof:O,_payload:{_status:-1,_result:i},_init:_e}},p.memo=function(i,d){return{$$typeof:c,type:i,compare:d===void 0?null:d}},p.startTransition=function(i){var d=q.transition;q.transition={};try{i()}finally{q.transition=d}},p.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},p.useCallback=function(i,d){return D.current.useCallback(i,d)},p.useContext=function(i){return D.current.useContext(i)},p.useDebugValue=function(){},p.useDeferredValue=function(i){return D.current.useDeferredValue(i)},p.useEffect=function(i,d){return D.current.useEffect(i,d)},p.useId=function(){return D.current.useId()},p.useImperativeHandle=function(i,d,W){return D.current.useImperativeHandle(i,d,W)},p.useInsertionEffect=function(i,d){return D.current.useInsertionEffect(i,d)},p.useLayoutEffect=function(i,d){return D.current.useLayoutEffect(i,d)},p.useMemo=function(i,d){return D.current.useMemo(i,d)},p.useReducer=function(i,d,W){return D.current.useReducer(i,d,W)},p.useRef=function(i){return D.current.useRef(i)},p.useState=function(i){return D.current.useState(i)},p.useSyncExternalStore=function(i,d,W){return D.current.useSyncExternalStore(i,d,W)},p.useTransition=function(){return D.current.useTransition()},p.version="18.2.0"},4041:($,p,h)=>{"use strict";$.exports=h(4304)},1085:($,p,h)=>{"use strict";$.exports=h(3335)}}]);
package/689.index.js ADDED
@@ -0,0 +1,27 @@
1
+ "use strict";(globalThis.webpackChunk_icanbwell_composite=globalThis.webpackChunk_icanbwell_composite||[]).push([[689],{6689:(Ra,Nt,Ot)=>{Ot.r(Nt),Ot.d(Nt,{default:()=>Oa});var or=10,ir=20,Rt=30,ar=40,je=50,xt=60,Ue={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},Ct={};function xa(e){return typeof e=="string"?Ue[e.toLowerCase()]:e}Object.keys(Ue).forEach(function(e){Ct[Ue[e]]=e});var Dt={levels:{trace:"color: DeepPink",debug:"color: GoldenRod",info:"color: DarkTurquoise",warn:"color: Purple",error:"color: Crimson",fatal:"color: Black"},def:"color: DimGray",msg:"color: SteelBlue",src:"color: DimGray; font-style: italic; font-size: 0.9em"},cr=function(){function e(t){var n=t===void 0?{}:t,r=n.logByLevel,s=n.css,o=s===void 0?Dt:s;this.logByLevel=r!==void 0&&r,this.css=o}return e.prototype.write=function(t){var n,r,s=this.css.def,o=this.css.msg,i=this.css.src,a=t.childName?t.name+"/"+t.childName:t.name,c=Ct[t.level],u=(Array(6-c.length).join(" ")+c).toUpperCase();this.logByLevel?(t.level===or?c="debug":t.level===xt&&(c="error"),r=typeof console[c]=="function"?console[c]:console.log):r=console.log,n=t.level<ir?this.css.levels.trace:t.level<Rt?this.css.levels.debug:t.level<ar?this.css.levels.info:t.level<je?this.css.levels.warn:t.level<xt?this.css.levels.error:this.css.levels.fatal;var f=function(d,p){return Array(p+1-(d+"").length).join("0")+d},l=[];l.push("[%s:%s:%s:%s] %c%s%c: %s: %c%s "+(t.src?"%c%s":"")),l.push(f(t.time.getHours(),2)),l.push(f(t.time.getMinutes(),2)),l.push(f(t.time.getSeconds(),2)),l.push(f(t.time.getMilliseconds(),4)),l.push(n),l.push(u),l.push(s),l.push(a),l.push(o),l.push(t.msg),t.src&&(l.push(i),l.push(t.src)),t.obj&&(l.push(`
2
+ `),l.push(t.obj)),t.err&&t.err.stack&&(l.push(`
3
+ `),l.push(t.err.stack)),r.apply(console,l)},e.getDefaultCss=function(){return Dt},e}();const $="8.37.0",m=globalThis;function ye(e,t,n){const r=n||m,s=r.__SENTRY__=r.__SENTRY__||{},o=s[$]=s[$]||{};return o[e]||(o[e]=t())}const $e="production";function Ee(){return Be(m),m}function Be(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||$,t[$]=t[$]||{}}const At=Object.prototype.toString;function Fe(e){switch(At.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return B(e,Error)}}function V(e,t){return At.call(e)===`[object ${t}]`}function Pt(e){return V(e,"ErrorEvent")}function Mt(e){return V(e,"DOMError")}function ur(e){return V(e,"DOMException")}function x(e){return V(e,"String")}function He(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Ge(e){return e===null||He(e)||typeof e!="object"&&typeof e!="function"}function Z(e){return V(e,"Object")}function Se(e){return typeof Event<"u"&&B(e,Event)}function lr(e){return typeof Element<"u"&&B(e,Element)}function fr(e){return V(e,"RegExp")}function be(e){return Boolean(e&&e.then&&typeof e.then=="function")}function dr(e){return Z(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function B(e,t){try{return e instanceof t}catch{return!1}}function Lt(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}const Q=m,pr=80;function jt(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,s=[];let o=0,i=0;const a=" > ",c=a.length;let u;const f=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||pr;for(;n&&o++<r&&(u=hr(n,f),!(u==="html"||o>1&&i+s.length*c+u.length>=l));)s.push(u),i+=u.length,n=n.parentNode;return s.reverse().join(a)}catch{return"<unknown>"}}function hr(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(Q.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const s=t&&t.length?t.filter(i=>n.getAttribute(i)).map(i=>[i,n.getAttribute(i)]):null;if(s&&s.length)s.forEach(i=>{r.push(`[${i[0]}="${i[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const i=n.className;if(i&&x(i)){const a=i.split(/\s+/);for(const c of a)r.push(`.${c}`)}}const o=["aria-label","type","name","title","alt"];for(const i of o){const a=n.getAttribute(i);a&&r.push(`[${i}="${a}"]`)}return r.join("")}function gr(){try{return Q.document.location.href}catch{return""}}function Ca(e){return Q.document&&Q.document.querySelector?Q.document.querySelector(e):null}function mr(e){if(!Q.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}const ee=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,_r="Sentry Logger ",ze=["debug","info","warn","error","log","assert","trace"],ve={};function ue(e){if(!("console"in m))return e();const t=m.console,n={},r=Object.keys(ve);r.forEach(s=>{const o=ve[s];n[s]=t[s],t[s]=o});try{return e()}finally{r.forEach(s=>{t[s]=n[s]})}}function yr(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return ee?ze.forEach(n=>{t[n]=(...r)=>{e&&ue(()=>{m.console[n](`${_r}[${n}]:`,...r)})}}):ze.forEach(n=>{t[n]=()=>{}}),t}const h=ye("logger",yr);function te(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Da(e,t){let n=e;const r=n.length;if(r<=150)return n;t>r&&(t=r);let s=Math.max(t-60,0);s<5&&(s=0);let o=Math.min(s+140,r);return o>r-5&&(o=r),o===r&&(s=Math.max(o-140,0)),n=n.slice(s,o),s>0&&(n=`'{snip} ${n}`),o<r&&(n+=" {snip}"),n}function Ut(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const s=e[r];try{Lt(s)?n.push("[VueViewModel]"):n.push(String(s))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function Er(e,t,n=!1){return x(e)?fr(t)?t.test(e):x(t)?n?e===t:e.includes(t):!1:!1}function Te(e,t=[],n=!1){return t.some(r=>Er(e,r,n))}function v(e,t,n){if(!(t in e))return;const r=e[t],s=n(r);typeof s=="function"&&$t(s,r),e[t]=s}function F(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{ee&&h.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function $t(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,F(e,"__sentry_original__",t)}catch{}}function We(e){return e.__sentry_original__}function Sr(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function Bt(e){if(Fe(e))return{message:e.message,name:e.name,stack:e.stack,...Ht(e)};if(Se(e)){const t={type:e.type,target:Ft(e.target),currentTarget:Ft(e.currentTarget),...Ht(e)};return typeof CustomEvent<"u"&&B(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Ft(e){try{return lr(e)?jt(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function Ht(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function br(e,t=40){const n=Object.keys(Bt(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return te(r,t);for(let s=n.length;s>0;s--){const o=n.slice(0,s).join(", ");if(!(o.length>t))return s===n.length?o:te(o,t)}return""}function I(e){return qe(e,new Map)}function qe(e,t){if(vr(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const s of Object.getOwnPropertyNames(e))typeof e[s]<"u"&&(r[s]=qe(e[s],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(s=>{r.push(qe(s,t))}),r}return e}function vr(e){if(!Z(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}function Aa(e){let t;switch(!0){case e==null:t=new String(e);break;case(typeof e=="symbol"||typeof e=="bigint"):t=Object(e);break;case isPrimitive(e):t=new e.constructor(e);break;default:t=e;break}return t}function w(){const e=m,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function Gt(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function P(e){const{message:t,event_id:n}=e;if(t)return t;const r=Gt(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Ye(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function le(e,t){const n=Gt(e);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...t},t&&"data"in t){const o={...s&&s.data,...t.data};n.mechanism.data=o}}const Tr=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function Je(e){return parseInt(e||"",10)}function Pa(e){const t=e.match(Tr)||[],n=Je(t[1]),r=Je(t[2]),s=Je(t[3]);return{buildmetadata:t[5],major:isNaN(n)?void 0:n,minor:isNaN(r)?void 0:r,patch:isNaN(s)?void 0:s,prerelease:t[4]}}function Ma(e,t,n=5){if(t.lineno===void 0)return;const r=e.length,s=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,s-n),s).map(i=>snipLine(i,0));const o=Math.min(r-1,s);t.context_line=snipLine(e[o],t.colno||0),t.post_context=e.slice(Math.min(s+1,r),s+1+n).map(i=>snipLine(i,0))}function zt(e){if(e&&e.__sentry_captured__)return!0;try{F(e,"__sentry_captured__",!0)}catch{}return!1}function Wt(e){return Array.isArray(e)?e:[e]}function qt(){return{traceId:w(),spanId:w().substring(16)}}const Yt=1e3;function fe(){return Date.now()/Yt}function Ir(){const{performance:e}=m;if(!e||!e.now)return fe;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/Yt}const C=Ir();let Ie;const La=(()=>{const{performance:e}=m;if(!e||!e.now){Ie="none";return}const t=3600*1e3,n=e.now(),r=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=s<t,i=e.timing&&e.timing.navigationStart,c=typeof i=="number"?Math.abs(i+n-r):t,u=c<t;return o||u?s<=c?(Ie="timeOrigin",e.timeOrigin):(Ie="navigationStart",i):(Ie="dateNow",r)})();function wr(e){const t=C(),n={sid:w(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Nr(n)};return e&&ne(n,e),n}function ne(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||C(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:w()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function kr(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),ne(e,n)}function Nr(e){return I({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const Ke="_sentrySpan";function Jt(e,t){t?F(e,Ke,t):delete e[Ke]}function Kt(e){return e[Ke]}const Or=100;class Xe{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=qt()}clone(){const t=new Xe;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Jt(t,Kt(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&ne(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,[r,s]=n instanceof M?[n.getScopeData(),n.getRequestSession()]:Z(n)?[t,t.requestSession]:[],{tags:o,extra:i,user:a,contexts:c,level:u,fingerprint:f=[],propagationContext:l}=r||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),u&&(this._level=u),f.length&&(this._fingerprint=f),l&&(this._propagationContext=l),s&&(this._requestSession=s),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,Jt(this,void 0),this._attachments=[],this._propagationContext=qt(),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:Or;if(r<=0)return this;const s={timestamp:fe(),...t},o=this._breadcrumbs;return o.push(s),this._breadcrumbs=o.length>r?o.slice(-r):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Kt(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:w();if(!this._client)return h.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureMessage(t,n,r){const s=r&&r.event_id?r.event_id:w();if(!this._client)return h.warn("No client configured on scope - will not capture message!"),s;const o=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:s},this),s}captureEvent(t,n){const r=n&&n.event_id?n.event_id:w();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(h.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}const M=Xe;function Rr(){return ye("defaultCurrentScope",()=>new M)}function xr(){return ye("defaultIsolationScope",()=>new M)}class Cr{constructor(t,n){let r;t?r=t:r=new M;let s;n?s=n:s=new M,this._stack=[{scope:r}],this._isolationScope=s}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(s){throw this._popScope(),s}return be(r)?r.then(s=>(this._popScope(),s),s=>{throw this._popScope(),s}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function re(){const e=Ee(),t=Be(e);return t.stack=t.stack||new Cr(Rr(),xr())}function Dr(e){return re().withScope(e)}function Ar(e,t){const n=re();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Xt(e){return re().withScope(()=>e(re().getIsolationScope()))}function Pr(){return{withIsolationScope:Xt,withScope:Dr,withSetScope:Ar,withSetIsolationScope:(e,t)=>Xt(t),getCurrentScope:()=>re().getScope(),getIsolationScope:()=>re().getIsolationScope()}}function ja(e){const t=getMainCarrier(),n=getSentryCarrier(t);n.acs=e}function Ve(e){const t=Be(e);return t.acs?t.acs:Pr()}function D(){const e=Ee();return Ve(e).getCurrentScope()}function de(){const e=Ee();return Ve(e).getIsolationScope()}function Vt(){return ye("globalScope",()=>new M)}function Mr(...e){const t=Ee(),n=Ve(t);if(e.length===2){const[r,s]=e;return r?n.withSetScope(r,s):n.withScope(s)}return n.withScope(e[0])}function Ua(...e){const t=getMainCarrier(),n=getAsyncContextStrategy(t);if(e.length===2){const[r,s]=e;return r?n.withSetIsolationScope(r,s):n.withIsolationScope(s)}return n.withIsolationScope(e[0])}function E(){return D().getClient()}function Lr(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(s){if(e)return t.has(s)?!0:(t.add(s),!1);for(let o=0;o<t.length;o++)if(t[o]===s)return!0;return t.push(s),!1}function r(s){if(e)t.delete(s);else for(let o=0;o<t.length;o++)if(t[o]===s){t.splice(o,1);break}}return[n,r]}const Zt=50,O="?",Qt=/\(error: (.*)\)/,en=/captureMessage|captureException/;function tn(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{const o=[],i=n.split(`
4
+ `);for(let a=r;a<i.length;a++){const c=i[a];if(c.length>1024)continue;const u=Qt.test(c)?c.replace(Qt,"$1"):c;if(!u.match(/\S*Error: /)){for(const f of t){const l=f(u);if(l){o.push(l);break}}if(o.length>=Zt+s)break}}return Ur(o.slice(s))}}function jr(e){return Array.isArray(e)?tn(...e):e}function Ur(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(we(t).function||"")&&t.pop(),t.reverse(),en.test(we(t).function||"")&&(t.pop(),en.test(we(t).function||"")&&t.pop()),t.slice(0,Zt).map(n=>({...n,filename:n.filename||we(t).filename,function:n.function||O}))}function we(e){return e[e.length-1]||{}}const Ze="<anonymous>";function L(e){try{return!e||typeof e!="function"?Ze:e.name||Ze}catch{return Ze}}function nn(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}function j(e,t=100,n=1/0){try{return Qe("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function rn(e,t=3,n=100*1024){const r=j(e,t);return Hr(r)>n?rn(e,t-1,n):r}function Qe(e,t,n=1/0,r=1/0,s=Lr()){const[o,i]=s;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const a=$r(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(o(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const p=u.toJSON();return Qe("",p,c-1,r,s)}catch{}const f=Array.isArray(t)?[]:{};let l=0;const d=Bt(t);for(const p in d){if(!Object.prototype.hasOwnProperty.call(d,p))continue;if(l>=r){f[p]="[MaxProperties ~]";break}const g=d[p];f[p]=Qe(p,g,c-1,r,s),l++}return i(t),f}function $r(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Lt(t))return"[VueViewModel]";if(dr(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${L(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=Br(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Br(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function Fr(e){return~-encodeURI(e).split(/%..|./).length}function Hr(e){return Fr(JSON.stringify(e))}function $a(e,t){const n=t.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");let r=e;try{r=decodeURI(e)}catch{}return r.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${n}/*`,"ig"),"app:///")}var A;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(A||(A={}));function H(e){return new k(t=>{t(e)})}function ke(e){return new k((t,n)=>{n(e)})}class k{constructor(t){k.prototype.__init.call(this),k.prototype.__init2.call(this),k.prototype.__init3.call(this),k.prototype.__init4.call(this),this._state=A.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new k((r,s)=>{this._handlers.push([!1,o=>{if(!t)r(o);else try{r(t(o))}catch(i){s(i)}},o=>{if(!n)s(o);else try{r(n(o))}catch(i){s(i)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new k((n,r)=>{let s,o;return this.then(i=>{o=!1,s=i,t&&t()},i=>{o=!0,s=i,t&&t()}).then(()=>{if(o){r(s);return}n(s)})})}__init(){this._resolve=t=>{this._setResult(A.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(A.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===A.PENDING){if(be(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===A.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===A.RESOLVED&&n[1](this._value),this._state===A.REJECTED&&n[2](this._value),n[0]=!0)})}}}const _=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function et(e,t,n,r=0){return new k((s,o)=>{const i=e[r];if(t===null||typeof i!="function")s(t);else{const a=i({...t},n);_&&i.id&&a===null&&h.log(`Event processor "${i.id}" dropped event`),be(a)?a.then(c=>et(e,c,n,r+1).then(s)).then(null,o):et(e,a,n,r+1).then(s).then(null,o)}})}const Ba="baggage",sn="sentry-",Gr=/^sentry-/,zr=8192;function Wr(e){const t=qr(e);if(!t)return;const n=Object.entries(t).reduce((r,[s,o])=>{if(s.match(Gr)){const i=s.slice(sn.length);r[i]=o}return r},{});if(Object.keys(n).length>0)return n}function Fa(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,s])=>(s&&(n[`${sn}${r}`]=s),n),{});return Yr(t)}function qr(e){if(!(!e||!x(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=on(n);return Object.entries(r).forEach(([s,o])=>{t[s]=o}),t},{}):on(e)}function on(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function Yr(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],s)=>{const o=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,i=s===0?o:`${t},${o}`;return i.length>zr?(DEBUG_BUILD&&logger.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):i},"")}const Jr="sentry.source",Kr="sentry.sample_rate",Xr="sentry.op",Vr="sentry.origin",Ha="sentry.idle_span_finish_reason",Ga="sentry.measurement_unit",za="sentry.measurement_value",Wa="sentry.profile_id",qa="sentry.exclusive_time",Ya="cache.hit",Ja="cache.key",Ka="cache.item_size",Xa="http.request.method",Va="url.full";function Zr(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=E(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}const tt="_sentryMetrics";function Qr(e){const t=e[tt];if(!t)return;const n={};for(const[,[r,s]]of t)(n[r]||(n[r]=[])).push(I(s));return n}function Za(e,t,n,r,s,o,i){const c=e[tt]||(e[tt]=new Map),u=`${t}:${n}@${s}`,f=c.get(i);if(f){const[,l]=f;c.set(i,[u,{min:Math.min(l.min,r),max:Math.max(l.max,r),count:l.count+=1,sum:l.sum+=r,tags:l.tags}])}else c.set(i,[u,{min:r,max:r,count:1,sum:r,tags:o}])}const es=0,an=1,T=2;function ts(e){if(e<400&&e>=100)return{code:an};if(e>=400&&e<500)switch(e){case 401:return{code:T,message:"unauthenticated"};case 403:return{code:T,message:"permission_denied"};case 404:return{code:T,message:"not_found"};case 409:return{code:T,message:"already_exists"};case 413:return{code:T,message:"failed_precondition"};case 429:return{code:T,message:"resource_exhausted"};case 499:return{code:T,message:"cancelled"};default:return{code:T,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:T,message:"unimplemented"};case 503:return{code:T,message:"unavailable"};case 504:return{code:T,message:"deadline_exceeded"};default:return{code:T,message:"internal_error"}}return{code:T,message:"unknown_error"}}function Qa(e,t){e.setAttribute("http.response.status_code",t);const n=ts(t);n.message!=="unknown_error"&&e.setStatus(n)}const ec=0,ns=1;function tc(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:s,parent_span_id:o,status:i,origin:a}=pe(e);return dropUndefinedKeys({parent_span_id:o,span_id:t,trace_id:n,data:r,op:s,status:i,origin:a})}function rs(e){const{spanId:t,traceId:n}=e.spanContext(),{parent_span_id:r}=pe(e);return I({parent_span_id:r,span_id:t,trace_id:n})}function nc(e){const{traceId:t,spanId:n}=e.spanContext(),r=nt(e);return generateSentryTraceHeader(t,n,r)}function cn(e){return typeof e=="number"?un(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?un(e.getTime()):C()}function un(e){return e>9999999999?e/1e3:e}function pe(e){if(os(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(ss(e)){const{attributes:r,startTime:s,name:o,endTime:i,parentSpanId:a,status:c}=e;return I({span_id:t,trace_id:n,data:r,description:o,parent_span_id:a,start_timestamp:cn(s),timestamp:cn(i)||void 0,status:is(c),op:r[Xr],origin:r[Vr],_metrics_summary:Qr(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function ss(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function os(e){return typeof e.getSpanJSON=="function"}function nt(e){const{traceFlags:t}=e.spanContext();return t===ns}function is(e){if(!(!e||e.code===es))return e.code===an?"ok":e.message||"unknown_error"}const G="_sentryChildSpans",rt="_sentryRootSpan";function rc(e,t){const n=e[rt]||e;addNonEnumerableProperty(t,rt,n),e[G]?e[G].add(t):addNonEnumerableProperty(e,G,new Set([t]))}function sc(e,t){e[G]&&e[G].delete(t)}function oc(e){const t=new Set;function n(r){if(!t.has(r)&&nt(r)){t.add(r);const s=r[G]?Array.from(r[G]):[];for(const o of s)n(o)}}return n(e),Array.from(t)}function ln(e){return e[rt]||e}function as(){const e=getMainCarrier(),t=getAsyncContextStrategy(e);return t.getActiveSpan?t.getActiveSpan():_getSpanForScope(getCurrentScope())}function ic(e,t,n,r,s,o){const i=as();i&&updateMetricSummaryOnSpan(i,e,t,n,r,s,o)}const fn="_frozenDsc";function ac(e,t){const n=e;addNonEnumerableProperty(n,fn,t)}function dn(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},s=I({environment:n.environment||$e,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",s),s}function pn(e){const t=E();if(!t)return{};const n=dn(pe(e).trace_id||"",t),r=ln(e),s=r[fn];if(s)return s;const o=r.spanContext().traceState,i=o&&o.get("sentry.dsc"),a=i&&Wr(i);if(a)return a;const c=pe(r),u=c.data||{},f=u[Kr];f!=null&&(n.sample_rate=`${f}`);const l=u[Jr],d=c.description;return l!=="url"&&d&&(n.transaction=d),Zr()&&(n.sampled=String(nt(r))),t.emit("createDsc",n,r),n}function cc(e){const t=pn(e);return dynamicSamplingContextToSentryBaggageHeader(t)}function cs(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:o}=t;us(e,t),r&&ds(e,r),ps(e,n),ls(e,s),fs(e,o)}function hn(e,t){const{extra:n,tags:r,user:s,contexts:o,level:i,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:f,attachments:l,propagationContext:d,transactionName:p,span:g}=t;he(e,"extra",n),he(e,"tags",r),he(e,"user",s),he(e,"contexts",o),he(e,"sdkProcessingMetadata",a),i&&(e.level=i),p&&(e.transactionName=p),g&&(e.span=g),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),f.length&&(e.eventProcessors=[...e.eventProcessors,...f]),l.length&&(e.attachments=[...e.attachments,...l]),e.propagationContext={...e.propagationContext,...d}}function he(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function us(e,t){const{extra:n,tags:r,user:s,contexts:o,level:i,transactionName:a}=t,c=I(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const u=I(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});const f=I(s);f&&Object.keys(f).length&&(e.user={...f,...e.user});const l=I(o);l&&Object.keys(l).length&&(e.contexts={...l,...e.contexts}),i&&(e.level=i),a&&e.type!=="transaction"&&(e.transaction=a)}function ls(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function fs(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function ds(e,t){e.contexts={trace:rs(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:pn(t),...e.sdkProcessingMetadata};const n=ln(t),r=pe(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function ps(e,t){e.fingerprint=e.fingerprint?Wt(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}function hs(e,t,n,r,s,o){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||w(),timestamp:t.timestamp||fe()},u=n.integrations||e.integrations.map(S=>S.name);gs(c,e),ys(c,u),s&&s.emit("applyFrameMetadata",t),t.type===void 0&&ms(c,e.stackParser);const f=Ss(r,n.captureContext);n.mechanism&&le(c,n.mechanism);const l=s?s.getEventProcessors():[],d=Vt().getScopeData();if(o){const S=o.getScopeData();hn(d,S)}if(f){const S=f.getScopeData();hn(d,S)}const p=[...n.attachments||[],...d.attachments];p.length&&(n.attachments=p),cs(c,d);const g=[...l,...d.eventProcessors];return et(g,c,n).then(S=>(S&&_s(S),typeof i=="number"&&i>0?Es(S,i,a):S))}function gs(e,t){const{environment:n,release:r,dist:s,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?n:$e),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&s!==void 0&&(e.dist=s),e.message&&(e.message=te(e.message,o));const i=e.exception&&e.exception.values&&e.exception.values[0];i&&i.value&&(i.value=te(i.value,o));const a=e.request;a&&a.url&&(a.url=te(a.url,o))}const gn=new WeakMap;function ms(e,t){const n=m._sentryDebugIds;if(!n)return;let r;const s=gn.get(t);s?r=s:(r=new Map,gn.set(t,r));const o=Object.entries(n).reduce((i,[a,c])=>{let u;const f=r.get(a);f?u=f:(u=t(a),r.set(a,u));for(let l=u.length-1;l>=0;l--){const d=u[l];if(d.filename){i[d.filename]=c;break}}return i},{});try{e.exception.values.forEach(i=>{i.stacktrace.frames.forEach(a=>{a.filename&&(a.debug_id=o[a.filename])})})}catch{}}function _s(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(s=>{s.debug_id&&(s.abs_path?t[s.abs_path]=s.debug_id:s.filename&&(t[s.filename]=s.debug_id),delete s.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,s])=>{n.push({type:"sourcemap",code_file:r,debug_id:s})})}function ys(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Es(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(s=>({...s,...s.data&&{data:j(s.data,t,n)}}))},...e.user&&{user:j(e.user,t,n)},...e.contexts&&{contexts:j(e.contexts,t,n)},...e.extra&&{extra:j(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=j(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(s=>({...s,...s.data&&{data:j(s.data,t,n)}}))),r}function Ss(e,t){if(!t)return e;const n=e?e.clone():new M;return n.update(t),n}function bs(e){if(!!e)return vs(e)?{captureContext:e}:Is(e)?{captureContext:e}:e}function vs(e){return e instanceof M||typeof e=="function"}const Ts=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Is(e){return Object.keys(e).some(t=>Ts.includes(t))}function mn(e,t){return D().captureException(e,bs(t))}function ws(e,t){const n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return D().captureMessage(e,n,r)}function _n(e,t){return D().captureEvent(e,t)}function uc(e,t){getIsolationScope().setContext(e,t)}function lc(e){getIsolationScope().setExtras(e)}function fc(e,t){getIsolationScope().setExtra(e,t)}function dc(e){getIsolationScope().setTags(e)}function pc(e,t){getIsolationScope().setTag(e,t)}function hc(e){getIsolationScope().setUser(e)}function gc(){return getIsolationScope().lastEventId()}function yn(e,t){const n=getCurrentScope(),r=getClient();if(!r)DEBUG_BUILD&&logger.warn("Cannot capture check-in. No client defined.");else if(!r.captureCheckIn)DEBUG_BUILD&&logger.warn("Cannot capture check-in. Client does not support sending check-ins.");else return r.captureCheckIn(e,t,n);return uuid4()}function mc(e,t,n){const r=yn({monitorSlug:e,status:"in_progress"},n),s=timestampInSeconds();function o(i){yn({monitorSlug:e,status:i,checkInId:r,duration:timestampInSeconds()-s})}return withIsolationScope(()=>{let i;try{i=t()}catch(a){throw o("error"),a}return isThenable(i)?Promise.resolve(i).then(()=>{o("ok")},a=>{throw o("error"),a}):o("ok"),i})}async function _c(e){const t=getClient();return t?t.flush(e):(DEBUG_BUILD&&logger.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function yc(e){const t=getClient();return t?t.close(e):(DEBUG_BUILD&&logger.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function ks(){return!!E()}function Ec(){const e=getClient();return!!e&&e.getOptions().enabled!==!1&&!!e.getTransport()}function Sc(e){getIsolationScope().addEventProcessor(e)}function En(e){const t=E(),n=de(),r=D(),{release:s,environment:o=$e}=t&&t.getOptions()||{},{userAgent:i}=m.navigator||{},a=wr({release:s,environment:o,user:r.getUser()||n.getUser(),...i&&{userAgent:i},...e}),c=n.getSession();return c&&c.status==="ok"&&ne(c,{status:"exited"}),Sn(),n.setSession(a),r.setSession(a),a}function Sn(){const e=de(),t=D(),n=t.getSession()||e.getSession();n&&kr(n),bn(),e.setSession(),t.setSession()}function bn(){const e=de(),t=D(),n=E(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function vn(e=!1){if(e){Sn();return}bn()}const Tn=[];function Ns(e){const t={};return e.forEach(n=>{const{name:r}=n,s=t[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function Os(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(i=>{i.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=Wt(n(t)):r=t;const s=Ns(r),o=s.findIndex(i=>i.name==="Debug");if(o>-1){const[i]=s.splice(o,1);s.push(i)}return s}function Rs(e,t){const n={};return t.forEach(r=>{r&&wn(e,r,n)}),n}function In(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function wn(e,t,n){if(n[t.name]){_&&h.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Tn.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),Tn.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(s,o)=>r(s,o,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),s=Object.assign((o,i)=>r(o,i,e),{id:t.name});e.addEventProcessor(s)}_&&h.log(`Integration installed: ${t.name}`)}function bc(e){const t=getClient();if(!t){DEBUG_BUILD&&logger.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function vc(e){return e}const xs=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],Cs="InboundFilters",Ds=(e={})=>({name:Cs,processEvent(t,n,r){const s=r.getOptions(),o=As(e,s);return Ps(t,o)?null:t}});function As(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:xs],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function Ps(e,t){return t.ignoreInternal&&Bs(e)?(_&&h.warn(`Event dropped due to being internal Sentry Error.
5
+ Event: ${P(e)}`),!0):Ms(e,t.ignoreErrors)?(_&&h.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
6
+ Event: ${P(e)}`),!0):Hs(e)?(_&&h.warn(`Event dropped due to not having an error message, error type or stacktrace.
7
+ Event: ${P(e)}`),!0):Ls(e,t.ignoreTransactions)?(_&&h.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
8
+ Event: ${P(e)}`),!0):js(e,t.denyUrls)?(_&&h.warn(`Event dropped due to being matched by \`denyUrls\` option.
9
+ Event: ${P(e)}.
10
+ Url: ${Ne(e)}`),!0):Us(e,t.allowUrls)?!1:(_&&h.warn(`Event dropped due to not being matched by \`allowUrls\` option.
11
+ Event: ${P(e)}.
12
+ Url: ${Ne(e)}`),!0)}function Ms(e,t){return e.type||!t||!t.length?!1:$s(e).some(n=>Te(n,t))}function Ls(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?Te(n,t):!1}function js(e,t){if(!t||!t.length)return!1;const n=Ne(e);return n?Te(n,t):!1}function Us(e,t){if(!t||!t.length)return!0;const n=Ne(e);return n?Te(n,t):!0}function $s(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),t}function Bs(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function Fs(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Ne(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?Fs(t):null}catch{return _&&h.error(`Cannot extract url for event ${P(e)}`),null}}function Hs(e){return e.type||!e.exception||!e.exception.values||e.exception.values.length===0?!1:!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value)}let kn;const Gs="FunctionToString",Nn=new WeakMap,zs=()=>({name:Gs,setupOnce(){kn=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=We(this),n=Nn.has(E())&&t!==void 0?t:this;return kn.apply(n,e)}}catch{}},setup(e){Nn.set(e,!0)}}),Ws="Dedupe",qs=()=>{let e;return{name:Ws,processEvent(t){if(t.type)return t;try{if(Ys(t,e))return _&&h.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}};function Ys(e,t){return t?!!(Js(e,t)||Ks(e,t)):!1}function Js(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Rn(e,t)||!On(e,t))}function Ks(e,t){const n=xn(t),r=xn(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Rn(e,t)||!On(e,t))}function On(e,t){let n=nn(e),r=nn(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let s=0;s<r.length;s++){const o=r[s],i=n[s];if(o.filename!==i.filename||o.lineno!==i.lineno||o.colno!==i.colno||o.function!==i.function)return!1}return!0}function Rn(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function xn(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Xs(e,t){t.debug===!0&&(_?h.enable():ue(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),D().update(t.initialScope);const r=new e(t);return Vs(r),r.init(),r}function Vs(e){D().setClient(e)}const Oe=m;function kc(){try{return new ErrorEvent(""),!0}catch{return!1}}function Nc(){try{return new DOMError(""),!0}catch{return!1}}function Oc(){try{return new DOMException(""),!0}catch{return!1}}function st(){if(!("fetch"in Oe))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function ot(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Zs(){if(typeof EdgeRuntime=="string")return!0;if(!st())return!1;if(ot(Oe.fetch))return!0;let e=!1;const t=Oe.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=ot(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){ee&&h.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Rc(){return"ReportingObserver"in Oe}function xc(){if(!st())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch{return!1}}const se={},Cn={};function z(e,t){se[e]=se[e]||[],se[e].push(t)}function Cc(){Object.keys(se).forEach(e=>{se[e]=void 0})}function W(e,t){if(!Cn[e]){Cn[e]=!0;try{t()}catch(n){ee&&h.error(`Error while instrumenting ${e}`,n)}}}function N(e,t){const n=e&&se[e];if(!!n)for(const r of n)try{r(t)}catch(s){ee&&h.error(`Error while triggering instrumentation handler.
13
+ Type: ${e}
14
+ Name: ${L(r)}
15
+ Error:`,s)}}const Re=m;function Qs(){const e=Re.chrome,t=e&&e.app&&e.app.runtime,n="history"in Re&&!!Re.history.pushState&&!!Re.history.replaceState;return!t&&n}const b=m;let xe;function Dn(e){const t="history";z(t,e),W(t,eo)}function eo(){if(!Qs())return;const e=b.onpopstate;b.onpopstate=function(...n){const r=b.location.href,s=xe;if(xe=r,N("history",{from:s,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const s=r.length>2?r[2]:void 0;if(s){const o=xe,i=String(s);xe=i,N("history",{from:o,to:i})}return n.apply(this,r)}}v(b.history,"pushState",t),v(b.history,"replaceState",t)}const to=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function no(e){return e==="http"||e==="https"}function Ce(e,t=!1){const{host:n,path:r,pass:s,port:o,projectId:i,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&s?`:${s}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${i}`}function ro(e){const t=to.exec(e);if(!t){ue(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,s="",o="",i="",a=""]=t.slice(1);let c="",u=a;const f=u.split("/");if(f.length>1&&(c=f.slice(0,-1).join("/"),u=f.pop()),u){const l=u.match(/^\d+/);l&&(u=l[0])}return An({host:o,pass:s,path:c,projectId:u,port:i,protocol:n,publicKey:r})}function An(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function so(e){if(!ee)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(i=>e[i]?!1:(h.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:n.match(/^\d+$/)?no(r)?t&&isNaN(parseInt(t,10))?(h.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(h.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(h.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function oo(e){const t=typeof e=="string"?ro(e):An(e);if(!(!t||!so(t)))return t}function ge(e,t=[]){return[e,t]}function io(e,t){const[n,r]=e;return[n,[...r,t]]}function it(e,t){const n=e[1];for(const r of n){const s=r[0].type;if(t(r,s))return!0}return!1}function Dc(e,t){return it(e,(n,r)=>t.includes(r))}function De(e){return m.__SENTRY__&&m.__SENTRY__.encodePolyfill?m.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function ao(e){return GLOBAL_OBJ.__SENTRY__&&GLOBAL_OBJ.__SENTRY__.decodePolyfill?GLOBAL_OBJ.__SENTRY__.decodePolyfill(e):new TextDecoder().decode(e)}function co(e){const[t,n]=e;let r=JSON.stringify(t);function s(o){typeof r=="string"?r=typeof o=="string"?r+o:[De(r),o]:r.push(typeof o=="string"?De(o):o)}for(const o of n){const[i,a]=o;if(s(`
16
+ ${JSON.stringify(i)}
17
+ `),typeof a=="string"||a instanceof Uint8Array)s(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(j(a))}s(c)}}return typeof r=="string"?r:uo(r)}function uo(e){const t=e.reduce((s,o)=>s+o.length,0),n=new Uint8Array(t);let r=0;for(const s of e)n.set(s,r),r+=s.length;return n}function Ac(e){let t=typeof e=="string"?De(e):e;function n(i){const a=t.subarray(0,i);return t=t.subarray(i+1),a}function r(){let i=t.indexOf(10);return i<0&&(i=t.length),JSON.parse(ao(n(i)))}const s=r(),o=[];for(;t.length;){const i=r(),a=typeof i.length=="number"?i.length:void 0;o.push([i,a?n(a):r()])}return[s,o]}function Pc(e){return[{type:"span"},e]}function lo(e){const t=typeof e.data=="string"?De(e.data):e.data;return[I({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const fo={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function Pn(e){return fo[e]}function Mn(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function po(e,t,n,r){const s=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Ce(r)},...s&&{trace:I({...s})}}}class R extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function ho(e,t,n){const r=[{type:"client_report"},{timestamp:n||fe(),discarded_events:e}];return ge(t?{dsn:t}:{},[r])}const go="7";function Ln(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function mo(e){return`${Ln(e)}${e.projectId}/envelope/`}function _o(e,t){return Sr({sentry_key:e.publicKey,sentry_version:go,...t&&{sentry_client:`${t.name}/${t.version}`}})}function yo(e,t,n){return t||`${mo(e)}?${_o(e,n)}`}function Mc(e,t){const n=makeDsn(e);if(!n)return"";const r=`${Ln(n)}embed/error-page/`;let s=`dsn=${dsnToString(n)}`;for(const o in t)if(o!=="dsn"&&o!=="onClose")if(o==="user"){const i=t.user;if(!i)continue;i.name&&(s+=`&name=${encodeURIComponent(i.name)}`),i.email&&(s+=`&email=${encodeURIComponent(i.email)}`)}else s+=`&${encodeURIComponent(o)}=${encodeURIComponent(t[o])}`;return`${r}?${s}`}function Eo(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function So(e,t,n,r){const s=Mn(n),o={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!r&&t&&{dsn:Ce(t)}},i="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return ge(o,[i])}function bo(e,t,n,r){const s=Mn(n),o=e.type&&e.type!=="replay_event"?e.type:"event";Eo(e,n&&n.sdk);const i=po(e,s,r,t);return delete e.sdkProcessingMetadata,ge(i,[[{type:o},e]])}function Lc(e,t){function n(f){return!!f.trace_id&&!!f.public_key}const r=getDynamicSamplingContextFromSpan(e[0]),s=t&&t.getDsn(),o=t&&t.getOptions().tunnel,i={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!o&&s&&{dsn:dsnToString(s)}},a=t&&t.getOptions().beforeSendSpan,c=a?f=>a(spanToJSON(f)):f=>spanToJSON(f),u=[];for(const f of e){const l=c(f);l&&u.push(createSpanEnvelopeItem(l))}return createEnvelope(i,u)}function vo(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(typeof t!="number"||isNaN(t)||t<0||t>1){_&&h.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`);return}return t}const jn="Not capturing exception because it's already been captured.";class To{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=oo(t.dsn):_&&h.warn("No DSN provided, client will not send events."),this._dsn){const n=yo(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){const s=w();if(zt(t))return _&&h.log(jn),s;const o={event_id:s,...n};return this._process(this.eventFromException(t,o).then(i=>this._captureEvent(i,o,r))),o.event_id}captureMessage(t,n,r,s){const o={event_id:w(),...r},i=He(t)?t:String(t),a=Ge(t)?this.eventFromMessage(i,n,o):this.eventFromException(t,o);return this._process(a.then(c=>this._captureEvent(c,o,s))),o.event_id}captureEvent(t,n,r){const s=w();if(n&&n.originalException&&zt(n.originalException))return _&&h.log(jn),s;const o={event_id:s,...n},a=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,o,a||r)),o.event_id}captureSession(t){typeof t.release!="string"?_&&h.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),ne(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(s=>r&&s))):H(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];wn(this,t,this._integrations),n||In(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=bo(t,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])r=io(r,lo(o));const s=this.sendEnvelope(r);s&&s.then(o=>this.emit("afterSendEvent",t,o),null)}sendSession(t){const n=So(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const s=typeof r=="number"?r:1,o=`${t}:${n}`;_&&h.log(`Recording outcome: "${o}"${s>1?` (${s} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+s}}on(t,n){const r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{const s=r.indexOf(n);s>-1&&r.splice(s,1)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(s=>s(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(_&&h.error("Error while sending envelope:",n),n)):(_&&h.error("Transport disabled"),H({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=Rs(this,t),In(this,t)}_updateSessionFromEvent(t,n){let r=!1,s=!1;const o=n.exception&&n.exception.values;if(o){s=!0;for(const c of o){const u=c.mechanism;if(u&&u.handled===!1){r=!0;break}}}const i=t.status==="ok";(i&&t.errors===0||i&&r)&&(ne(t,{...r&&{status:"crashed"},errors:t.errors||Number(s||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new k(n=>{let r=0;const s=1,o=setInterval(()=>{this._numProcessing==0?(clearInterval(o),n(!0)):(r+=s,t&&r>=t&&(clearInterval(o),n(!1)))},s)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,s=de()){const o=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&i.length>0&&(n.integrations=i),this.emit("preprocessEvent",t,n),t.type||s.setLastEventId(t.event_id||n.event_id),hs(o,t,n,r,this,s).then(a=>{if(a===null)return a;const c={...s.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(a.contexts&&a.contexts.trace)&&c){const{traceId:f,spanId:l,parentSpanId:d,dsc:p}=c;a.contexts={trace:I({trace_id:f,span_id:l,parent_span_id:d}),...a.contexts};const g=p||dn(f,this);a.sdkProcessingMetadata={dynamicSamplingContext:g,...a.sdkProcessingMetadata}}return a})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(s=>s.event_id,s=>{if(_){const o=s;o.logLevel==="log"?h.log(o.message):h.warn(o)}})}_processEvent(t,n,r){const s=this.getOptions(),{sampleRate:o}=s,i=$n(t),a=Un(t),c=t.type||"error",u=`before send for type \`${c}\``,f=typeof o>"u"?void 0:vo(o);if(a&&typeof f=="number"&&Math.random()>f)return this.recordDroppedEvent("sample_rate","error",t),ke(new R(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const l=c==="replay_event"?"replay":c,p=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,p).then(g=>{if(g===null)throw this.recordDroppedEvent("event_processor",l,t),new R("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return g;const S=wo(this,s,g,n);return Io(S,u)}).then(g=>{if(g===null){if(this.recordDroppedEvent("before_send",l,t),i){const U=t.spans||[],ce=1+U.length;this.recordDroppedEvent("before_send","span",ce)}throw new R(`${u} returned \`null\`, will not send event.`,"log")}const X=r&&r.getSession();if(!i&&X&&this._updateSessionFromEvent(X,g),i){const U=g.sdkProcessingMetadata&&g.sdkProcessingMetadata.spanCountBeforeProcessing||0,ce=g.spans?g.spans.length:0,sr=U-ce;sr>0&&this.recordDroppedEvent("before_send","span",sr)}const S=g.transaction_info;if(i&&S&&g.transaction!==t.transaction){const U="custom";g.transaction_info={...S,source:U}}return this.sendEvent(g,n),g}).then(null,g=>{throw g instanceof R?g:(this.captureException(g,{data:{__sentry__:!0},originalException:g}),new R(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
18
+ Reason: ${g}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[s,o]=n.split(":");return{reason:s,category:o,quantity:r}})}_flushOutcomes(){_&&h.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){_&&h.log("No outcomes to send");return}if(!this._dsn){_&&h.log("No dsn provided, will not send outcomes");return}_&&h.log("Sending outcomes:",t);const n=ho(t,this._options.tunnel&&Ce(this._dsn));this.sendEnvelope(n)}}function Io(e,t){const n=`${t} must return \`null\` or a valid event.`;if(be(e))return e.then(r=>{if(!Z(r)&&r!==null)throw new R(n);return r},r=>{throw new R(`${t} rejected with ${r}`)});if(!Z(e)&&e!==null)throw new R(n);return e}function wo(e,t,n,r){const{beforeSend:s,beforeSendTransaction:o,beforeSendSpan:i}=t;if(Un(n)&&s)return s(n,r);if($n(n)){if(n.spans&&i){const a=[];for(const c of n.spans){const u=i(c);u?a.push(u):e.recordDroppedEvent("before_send","span")}n.spans=a}if(o){if(n.spans){const a=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:a}}return o(n,r)}}return n}function Un(e){return e.type===void 0}function $n(e){return e.type==="transaction"}function ko(e,t,n=[t],r="npm"){const s=e._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${t}`,packages:n.map(o=>({name:`${r}:@sentry/${o}`,version:$})),version:$}),e._metadata=s}function jc(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function No(){return"npm"}const me=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function at(e,t){const n=ut(e,t),r={type:Do(t),value:Ao(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Oo(e,t,n,r){const s=E(),o=s&&s.getOptions().normalizeDepth,i=Uo(t),a={__serialized__:rn(t,o)};if(i)return{exception:{values:[at(e,i)]},extra:a};const c={exception:{values:[{type:Se(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Lo(t,{isUnhandledRejection:r})}]},extra:a};if(n){const u=ut(e,n);u.length&&(c.exception.values[0].stacktrace={frames:u})}return c}function ct(e,t){return{exception:{values:[at(e,t)]}}}function ut(e,t){const n=t.stacktrace||t.stack||"",r=xo(t),s=Co(t);try{return e(n,r,s)}catch{}return[]}const Ro=/Minified React error #\d+;/i;function xo(e){return e&&Ro.test(e.message)?1:0}function Co(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function Bn(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function Do(e){const t=e&&e.name;return!t&&Bn(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function Ao(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:Bn(e)&&Array.isArray(e.message)&&e.message.length==2?e.message[1]:t:"No error message"}function Po(e,t,n,r){const s=n&&n.syntheticException||void 0,o=lt(e,t,s,r);return le(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),H(o)}function Mo(e,t,n="info",r,s){const o=r&&r.syntheticException||void 0,i=ft(e,t,o,s);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),H(i)}function lt(e,t,n,r,s){let o;if(Pt(t)&&t.error)return ct(e,t.error);if(Mt(t)||ur(t)){const i=t;if("stack"in t)o=ct(e,t);else{const a=i.name||(Mt(i)?"DOMError":"DOMException"),c=i.message?`${a}: ${i.message}`:a;o=ft(e,c,n,r),Ye(o,c)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}return Fe(t)?ct(e,t):Z(t)||Se(t)?(o=Oo(e,t,n,s),le(o,{synthetic:!0}),o):(o=ft(e,t,n,r),Ye(o,`${t}`,void 0),le(o,{synthetic:!0}),o)}function ft(e,t,n,r){const s={};if(r&&n){const o=ut(e,n);o.length&&(s.exception={values:[{value:t,stacktrace:{frames:o}}]})}if(He(t)){const{__sentry_template_string__:o,__sentry_template_values__:i}=t;return s.logentry={message:o,params:i},s}return s.message=t,s}function Lo(e,{isUnhandledRejection:t}){const n=br(e),r=t?"promise rejection":"exception";return Pt(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Se(e)?`Event \`${jo(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function jo(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Uo(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}const y=m;let dt=0;function Fn(){return dt>0}function $o(){dt++,setTimeout(()=>{dt--})}function oe(e,t={},n){if(typeof e!="function")return e;try{const s=e.__sentry_wrapped__;if(s)return typeof s=="function"?s:e;if(We(e))return e}catch{return e}const r=function(){const s=Array.prototype.slice.call(arguments);try{const o=s.map(i=>oe(i,t));return e.apply(this,o)}catch(o){throw $o(),Mr(i=>{i.addEventProcessor(a=>(t.mechanism&&(Ye(a,void 0,void 0),le(a,t.mechanism)),a.extra={...a.extra,arguments:s},a)),mn(o)}),o}};try{for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}catch{}$t(r,e),F(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function Bo(e,{metadata:t,tunnel:n,dsn:r}){const s={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Ce(r)}},o=Fo(e);return ge(s,[o])}function Fo(e){return[{type:"user_report"},e]}class Ho extends To{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t},r=y.SENTRY_SDK_SOURCE||No();ko(n,"browser",["browser"],r),super(n),n.sendClientReports&&y.document&&y.document.addEventListener("visibilitychange",()=>{y.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return Po(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return Mo(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){me&&h.warn("SDK not enabled, will not capture user feedback.");return}const n=Bo(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}}const Go=1e3;let Hn,pt,ht;function zo(e){const t="dom";z(t,e),W(t,Wo)}function Wo(){if(!b.document)return;const e=N.bind(null,"dom"),t=Gn(e,!0);b.document.addEventListener("click",t,!1),b.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=b[n]&&b[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(v(r,"addEventListener",function(s){return function(o,i,a){if(o==="click"||o=="keypress")try{const c=this,u=c.__sentry_instrumentation_handlers__=c.__sentry_instrumentation_handlers__||{},f=u[o]=u[o]||{refCount:0};if(!f.handler){const l=Gn(e);f.handler=l,s.call(this,o,l,a)}f.refCount++}catch{}return s.call(this,o,i,a)}}),v(r,"removeEventListener",function(s){return function(o,i,a){if(o==="click"||o=="keypress")try{const c=this,u=c.__sentry_instrumentation_handlers__||{},f=u[o];f&&(f.refCount--,f.refCount<=0&&(s.call(this,o,f.handler,a),f.handler=void 0,delete u[o]),Object.keys(u).length===0&&delete c.__sentry_instrumentation_handlers__)}catch{}return s.call(this,o,i,a)}}))})}function qo(e){if(e.type!==pt)return!1;try{if(!e.target||e.target._sentryId!==ht)return!1}catch{}return!0}function Yo(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function Gn(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=Jo(n);if(Yo(n.type,r))return;F(n,"_sentryCaptured",!0),r&&!r._sentryId&&F(r,"_sentryId",w());const s=n.type==="keypress"?"input":n.type;qo(n)||(e({event:n,name:s,global:t}),pt=n.type,ht=r?r._sentryId:void 0),clearTimeout(Hn),Hn=b.setTimeout(()=>{ht=void 0,pt=void 0},Go)}}function Jo(e){try{return e.target}catch{return null}}const _e="__sentry_xhr_v3__";function Ko(e){const t="xhr";z(t,e),W(t,Xo)}function Xo(){if(!b.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const s=C()*1e3,o=x(r[0])?r[0].toUpperCase():void 0,i=Vo(r[1]);if(!o||!i)return t.apply(n,r);n[_e]={method:o,url:i,request_headers:{}},o==="POST"&&i.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const a=()=>{const c=n[_e];if(!!c&&n.readyState===4){try{c.status_code=n.status}catch{}const u={endTimestamp:C()*1e3,startTimestamp:s,xhr:n};N("xhr",u)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(c,u,f){return a(),c.apply(u,f)}}):n.addEventListener("readystatechange",a),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(c,u,f){const[l,d]=f,p=u[_e];return p&&x(l)&&x(d)&&(p.request_headers[l.toLowerCase()]=d),c.apply(u,f)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const s=n[_e];if(!s)return t.apply(n,r);r[0]!==void 0&&(s.body=r[0]);const o={startTimestamp:C()*1e3,xhr:n};return N("xhr",o),t.apply(n,r)}})}function Vo(e){if(x(e))return e;try{return e.toString()}catch{}}const Zo=100;function q(e,t){const n=E(),r=de();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=Zo}=n.getOptions();if(o<=0)return;const a={timestamp:fe(),...e},c=s?ue(()=>s(a,t)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,o))}function Qo(e){const t="console";z(t,e),W(t,ei)}function ei(){"console"in m&&ze.forEach(function(e){e in m.console&&v(m.console,e,function(t){return ve[e]=t,function(...n){N("console",{args:n,level:e});const s=ve[e];s&&s.apply(m.console,n)}})})}function ti(e,t){const n="fetch";z(n,e),W(n,()=>zn(void 0,t))}function Uc(e){const t="fetch-body-resolved";addHandler(t,e),maybeInstrument(t,()=>zn(ri))}function zn(e,t=!1){t&&!Zs()||v(m,"fetch",function(n){return function(...r){const{method:s,url:o}=si(r),i={args:r,fetchData:{method:s,url:o},startTimestamp:C()*1e3};e||N("fetch",{...i});const a=new Error().stack;return n.apply(m,r).then(async c=>(e?e(c):N("fetch",{...i,endTimestamp:C()*1e3,response:c}),c),c=>{throw N("fetch",{...i,endTimestamp:C()*1e3,error:c}),Fe(c)&&c.stack===void 0&&(c.stack=a,F(c,"framesToPop",1)),c})}})}async function ni(e,t){if(e&&e.body){const n=e.body,r=n.getReader(),s=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let o=!0;for(;o;){let i;try{i=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:a}=await r.read();clearTimeout(i),a&&(t(),o=!1)}catch{o=!1}finally{clearTimeout(i)}}clearTimeout(s),r.releaseLock(),n.cancel().then(null,()=>{})}}function ri(e){let t;try{t=e.clone()}catch{return}ni(t,()=>{triggerHandlers("fetch-body-resolved",{endTimestamp:timestampInSeconds()*1e3,response:e})})}function gt(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Wn(e){return typeof e=="string"?e:e?gt(e,"url")?e.url:e.toString?e.toString():"":""}function si(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Wn(n),method:gt(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:Wn(t),method:gt(t,"method")?String(t.method).toUpperCase():"GET"}}const oi=["fatal","error","warning","log","info","debug"];function ii(e){return e==="warn"?"warning":oi.includes(e)?e:"log"}function qn(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}function mt(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function $c(e){return e.split(/[?#]/,1)[0]}function Bc(e){return e.split(/\\?\//).filter(t=>t.length>0&&t!==",").length}function Fc(e){const{protocol:t,host:n,path:r}=e,s=n&&n.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||"";return`${t?`${t}://`:""}${s}${r}`}const Ae=1024,ai="Breadcrumbs",ci=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:ai,setup(n){t.console&&Qo(fi(n)),t.dom&&zo(li(n,t.dom)),t.xhr&&Ko(di(n)),t.fetch&&ti(pi(n)),t.history&&Dn(hi(n)),t.sentry&&n.on("beforeSendEvent",ui(n))}}};function ui(e){return function(n){E()===e&&q({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:P(n)},{event:n})}}function li(e,t){return function(r){if(E()!==e)return;let s,o,i=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>Ae&&(me&&h.warn(`\`dom.maxStringLength\` cannot exceed ${Ae}, but a value of ${a} was configured. Sentry will use ${Ae} instead.`),a=Ae),typeof i=="string"&&(i=[i]);try{const u=r.event,f=gi(u)?u.target:u;s=jt(f,{keyAttrs:i,maxStringLength:a}),o=mr(f)}catch{s="<unknown>"}if(s.length===0)return;const c={category:`ui.${r.name}`,message:s};o&&(c.data={"ui.component_name":o}),q(c,{event:r.event,name:r.name,global:r.global})}}function fi(e){return function(n){if(E()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:ii(n.level),message:Ut(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Ut(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;q(r,{input:n.args,level:n.level})}}function di(e){return function(n){if(E()!==e)return;const{startTimestamp:r,endTimestamp:s}=n,o=n.xhr[_e];if(!r||!s||!o)return;const{method:i,url:a,status_code:c,body:u}=o,f={method:i,url:a,status_code:c},l={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:s},d=qn(c);q({category:"xhr",data:f,type:"http",level:d},l)}}function pi(e){return function(n){if(E()!==e)return;const{startTimestamp:r,endTimestamp:s}=n;if(!!s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const o=n.fetchData,i={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s};q({category:"fetch",data:o,level:"error",type:"http"},i)}else{const o=n.response,i={...n.fetchData,status_code:o&&o.status},a={input:n.args,response:o,startTimestamp:r,endTimestamp:s},c=qn(i.status_code);q({category:"fetch",data:i,type:"http",level:c},a)}}}function hi(e){return function(n){if(E()!==e)return;let r=n.from,s=n.to;const o=mt(y.location.href);let i=r?mt(r):void 0;const a=mt(s);(!i||!i.path)&&(i=o),o.protocol===a.protocol&&o.host===a.host&&(s=a.relative),o.protocol===i.protocol&&o.host===i.host&&(r=i.relative),q({category:"navigation",data:{from:r,to:s}})}}function gi(e){return!!e&&!!e.target}const mi=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],_i="BrowserApiErrors",yi=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:_i,setupOnce(){t.setTimeout&&v(y,"setTimeout",Yn),t.setInterval&&v(y,"setInterval",Yn),t.requestAnimationFrame&&v(y,"requestAnimationFrame",Ei),t.XMLHttpRequest&&"XMLHttpRequest"in y&&v(XMLHttpRequest.prototype,"send",Si);const n=t.eventTarget;n&&(Array.isArray(n)?n:mi).forEach(bi)}}};function Yn(e){return function(...t){const n=t[0];return t[0]=oe(n,{mechanism:{data:{function:L(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Ei(e){return function(t){return e.apply(this,[oe(t,{mechanism:{data:{function:"requestAnimationFrame",handler:L(e)},handled:!1,type:"instrument"}})])}}function Si(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&v(n,s,function(o){const i={mechanism:{data:{function:s,handler:L(o)},handled:!1,type:"instrument"}},a=We(o);return a&&(i.mechanism.data.handler=L(a)),oe(o,i)})}),e.apply(this,t)}}function bi(e){const t=y,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(v(n,"addEventListener",function(r){return function(s,o,i){try{typeof o.handleEvent=="function"&&(o.handleEvent=oe(o.handleEvent,{mechanism:{data:{function:"handleEvent",handler:L(o),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[s,oe(o,{mechanism:{data:{function:"addEventListener",handler:L(o),target:e},handled:!1,type:"instrument"}}),i])}}),v(n,"removeEventListener",function(r){return function(s,o,i){const a=o;try{const c=a&&a.__sentry_wrapped__;c&&r.call(this,s,c,i)}catch{}return r.call(this,s,a,i)}}))}let Pe=null;function vi(e){const t="error";z(t,e),W(t,Ti)}function Ti(){Pe=m.onerror,m.onerror=function(e,t,n,r,s){return N("error",{column:r,error:s,line:n,msg:e,url:t}),Pe&&!Pe.__SENTRY_LOADER__?Pe.apply(this,arguments):!1},m.onerror.__SENTRY_INSTRUMENTED__=!0}let Me=null;function Ii(e){const t="unhandledrejection";z(t,e),W(t,wi)}function wi(){Me=m.onunhandledrejection,m.onunhandledrejection=function(e){return N("unhandledrejection",e),Me&&!Me.__SENTRY_LOADER__?Me.apply(this,arguments):!0},m.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const ki="GlobalHandlers",Ni=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:ki,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(Oi(n),Jn("onerror")),t.onunhandledrejection&&(Ri(n),Jn("onunhandledrejection"))}}};function Oi(e){vi(t=>{const{stackParser:n,attachStacktrace:r}=Kn();if(E()!==e||Fn())return;const{msg:s,url:o,line:i,column:a,error:c}=t,u=Di(lt(n,c||s,void 0,r,!1),o,i,a);u.level="error",_n(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function Ri(e){Ii(t=>{const{stackParser:n,attachStacktrace:r}=Kn();if(E()!==e||Fn())return;const s=xi(t),o=Ge(s)?Ci(s):lt(n,s,void 0,r,!0);o.level="error",_n(o,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function xi(e){if(Ge(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function Ci(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Di(e,t,n,r){const s=e.exception=e.exception||{},o=s.values=s.values||[],i=o[0]=o[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[],u=isNaN(parseInt(r,10))?void 0:r,f=isNaN(parseInt(n,10))?void 0:n,l=x(t)&&t.length>0?t:gr();return c.length===0&&c.push({colno:u,filename:l,function:O,in_app:!0,lineno:f}),e}function Jn(e){me&&h.log(`Global Handler attached: ${e}`)}function Kn(){const e=E();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Ai=()=>({name:"HttpContext",preprocessEvent(e){if(!y.navigator&&!y.location&&!y.document)return;const t=e.request&&e.request.url||y.location&&y.location.href,{referrer:n}=y.document||{},{userAgent:r}=y.navigator||{},s={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...e.request,...t&&{url:t},headers:s};e.request=o}});function Pi(e,t,n=250,r,s,o,i){if(!o.exception||!o.exception.values||!i||!B(i.originalException,Error))return;const a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;a&&(o.exception.values=Mi(_t(e,t,s,i.originalException,r,o.exception.values,a,0),n))}function _t(e,t,n,r,s,o,i,a){if(o.length>=n+1)return o;let c=[...o];if(B(r[s],Error)){Xn(i,a);const u=e(t,r[s]),f=c.length;Vn(u,s,f,a),c=_t(e,t,n,r[s],s,[u,...c],u,f)}return Array.isArray(r.errors)&&r.errors.forEach((u,f)=>{if(B(u,Error)){Xn(i,a);const l=e(t,u),d=c.length;Vn(l,`errors[${f}]`,d,a),c=_t(e,t,n,u,s,[l,...c],l,d)}}),c}function Xn(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function Vn(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function Mi(e,t){return e.map(n=>(n.value&&(n.value=te(n.value,t)),n))}const Li="cause",ji=5,Ui="LinkedErrors",$i=(e={})=>{const t=e.limit||ji,n=e.key||Li;return{name:Ui,preprocessEvent(r,s,o){const i=o.getOptions();Pi(at,i.stackParser,i.maxValueLength,n,t,r,s)}}},Bi=10,Fi=20,Hi=30,Gi=40,zi=50;function ie(e,t,n,r){const s={filename:e,function:t==="<anonymous>"?O:t,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const Wi=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,qi=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Yi=/\((\S*)(?::(\d+))(?::(\d+))\)/,Ji=[Hi,e=>{const t=Wi.exec(e);if(t){const[,r,s,o]=t;return ie(r,O,+s,+o)}const n=qi.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const i=Yi.exec(n[2]);i&&(n[2]=i[1],n[3]=i[2],n[4]=i[3])}const[s,o]=Zn(n[1]||O,n[2]);return ie(o,s,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],Ki=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Xi=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Vi=[zi,e=>{const t=Ki.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const o=Xi.exec(t[3]);o&&(t[1]=t[1]||"eval",t[3]=o[1],t[4]=o[2],t[5]="")}let r=t[3],s=t[1]||O;return[s,r]=Zn(s,r),ie(r,s,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],Zi=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Kc=[Gi,e=>{const t=Zi.exec(e);return t?ie(t[2],t[1]||O,+t[3],t[4]?+t[4]:void 0):void 0}],Qi=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,Vc=[Bi,e=>{const t=Qi.exec(e);return t?ie(t[2],t[3]||O,+t[1]):void 0}],ea=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,Qc=[Fi,e=>{const t=ea.exec(e);return t?ie(t[5],t[3]||t[4]||O,+t[1],+t[2]):void 0}],ta=tn(...[Ji,Vi]),Zn=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:O,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},na=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Le={};function yt(e){const t=Le[e];if(t)return t;let n=b[e];if(ot(n))return Le[e]=n.bind(b);const r=b.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const o=s.contentWindow;o&&o[e]&&(n=o[e]),r.head.removeChild(s)}catch(s){na&&h.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,s)}return n&&(Le[e]=n.bind(b))}function Qn(e){Le[e]=void 0}function tu(...e){return yt("fetch")(...e)}function nu(...e){return yt("setTimeout")(...e)}function ra(e){const t=[];function n(){return e===void 0||t.length<e}function r(i){return t.splice(t.indexOf(i),1)[0]||Promise.resolve(void 0)}function s(i){if(!n())return ke(new R("Not adding Promise because buffer limit was reached."));const a=i();return t.indexOf(a)===-1&&t.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function o(i){return new k((a,c)=>{let u=t.length;if(!u)return a(!0);const f=setTimeout(()=>{i&&i>0&&a(!1)},i);t.forEach(l=>{H(l).then(()=>{--u||(clearTimeout(f),a(!0))},c)})})}return{$:t,add:s,drain:o}}const sa=60*1e3;function oa(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?sa:r-t}function ia(e,t){return e[t]||e.all||0}function aa(e,t,n=Date.now()){return ia(e,t)>n}function ca(e,{statusCode:t,headers:n},r=Date.now()){const s={...e},o=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(o)for(const a of o.trim().split(",")){const[c,u,,,f]=a.split(":",5),l=parseInt(c,10),d=(isNaN(l)?60:l)*1e3;if(!u)s.all=r+d;else for(const p of u.split(";"))p==="metric_bucket"?(!f||f.split(";").includes("custom"))&&(s[p]=r+d):s[p]=r+d}else i?s.all=r+oa(i,r):t===429&&(s.all=r+60*1e3);return s}const ua=64;function la(e,t,n=ra(e.bufferSize||ua)){let r={};const s=i=>n.drain(i);function o(i){const a=[];if(it(i,(l,d)=>{const p=Pn(d);if(aa(r,p)){const g=er(l,d);e.recordDroppedEvent("ratelimit_backoff",p,g)}else a.push(l)}),a.length===0)return H({});const c=ge(i[0],a),u=l=>{it(c,(d,p)=>{const g=er(d,p);e.recordDroppedEvent(l,Pn(p),g)})},f=()=>t({body:co(c)}).then(l=>(l.statusCode!==void 0&&(l.statusCode<200||l.statusCode>=300)&&_&&h.warn(`Sentry responded with status code ${l.statusCode} to sent event.`),r=ca(r,l),l),l=>{throw u("network_error"),l});return n.add(f).then(l=>l,l=>{if(l instanceof R)return _&&h.error("Skipped sending event because buffer is full."),u("queue_overflow"),H({});throw l})}return{send:o,flush:s}}function er(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function fa(e,t=yt("fetch")){let n=0,r=0;function s(o){const i=o.body.length;n+=i,r++;const a={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return Qn("fetch"),ke("No fetch implementation available");try{return t(e.url,a).then(c=>(n-=i,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return Qn("fetch"),n-=i,r--,ke(c)}}return la(e,s)}function da(e){return[Ds(),zs(),yi(),ci(),Ni(),$i(),qs(),Ai()]}function pa(e={}){const t={defaultIntegrations:da(),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:y.SENTRY_RELEASE&&y.SENTRY_RELEASE.id?y.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return e.defaultIntegrations==null&&delete e.defaultIntegrations,{...t,...e}}function ha(){const e=typeof y.window<"u"&&y;if(!e)return!1;const t=e.chrome?"chrome":"browser",n=e[t],r=n&&n.runtime&&n.runtime.id,s=y.location&&y.location.href||"",o=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],i=!!r&&y===y.top&&o.some(c=>s.startsWith(`${c}//`)),a=typeof e.nw<"u";return!!r&&!i&&!a}function ga(e={}){const t=pa(e);if(!t.skipBrowserExtensionCheck&&ha()){ue(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}me&&(st()||h.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:jr(t.stackParser||ta),integrations:Os(t),transport:t.transport||fa},r=Xs(Ho,n);return t.autoSessionTracking&&ma(),r}function ru(e={}){if(!WINDOW.document){DEBUG_BUILD&&logger.error("Global document not defined in showReportDialog call");return}const t=getCurrentScope(),n=t.getClient(),r=n&&n.getDsn();if(!r){DEBUG_BUILD&&logger.error("DSN not configured for showReportDialog call");return}if(t&&(e.user={...t.getUser(),...e.user}),!e.eventId){const a=lastEventId();a&&(e.eventId=a)}const s=WINDOW.document.createElement("script");s.async=!0,s.crossOrigin="anonymous",s.src=getReportDialogEndpoint(r,e),e.onLoad&&(s.onload=e.onLoad);const{onClose:o}=e;if(o){const a=c=>{if(c.data==="__sentry_reportdialog_closed__")try{o()}finally{WINDOW.removeEventListener("message",a)}};WINDOW.addEventListener("message",a)}const i=WINDOW.document.head||WINDOW.document.body;i?i.appendChild(s):DEBUG_BUILD&&logger.error("Not injecting report dialog. No injection point found in HTML")}function su(){}function ou(e){e()}function ma(){if(typeof y.document>"u"){me&&h.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}En({ignoreDuration:!0}),vn(),Dn(({from:e,to:t})=>{e!==void 0&&e!==t&&(En({ignoreDuration:!0}),vn())})}function iu(e){const t=getClient();t&&t.captureUserFeedback(e)}class _a{constructor(t){if(!ks())ga({environment:t.environment,dsn:t.dsn,beforeSend(n){var r;return!((r=n.extra)===null||r===void 0)&&r.log?n:null}});else if(t.clientSlug!==void 0&&t.environment!==void 0){const n=Vt();n.clear(),n.setTag("client.slug",t.clientSlug),n.addEventProcessor(r=>new Promise(s=>s(Object.assign(Object.assign({},r),{environment:t.environment}))))}}write(t){t.err?mn(t.err,{extra:{log:!0}}):t.msg&&ws(t.msg,{extra:{log:!0}})}}function Et(){return Et=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Et.apply(this,arguments)}var tr=typeof window<"u"?window.navigator.userAgent:"no-window",ya=/bot|crawler|spider|crawling/i.test(tr),Ea={"Content-Type":"application/json"},Sa=function(){function e(n){var r=this;n===void 0&&(n={});var s=n.method,o=s===void 0?"PUT":s,i=n.url,a=i===void 0?"/log":i,c=n.headers,u=c===void 0?{}:c,f=n.throttleInterval,l=f===void 0?3e3:f,d=n.withCredentials,p=d!==void 0&&d,g=n.onError,X=n.flushOnClose,S=X!==void 0&&X,U=n.writeCondition;this.writeCondition=U===void 0?e.defaultWriteCondition:U,this.records={},this.headers=Et({},Ea,u),this.start({method:o,url:a,throttleInterval:l,withCredentials:p,onError:g}),S&&window.fetch!==void 0&&window.addEventListener("beforeunload",function(){r.currentThrottleTimeout&&window.clearTimeout(r.currentThrottleTimeout);var ce=r.recordsAsArray();ce.length&&window.fetch(a,{method:o,body:JSON.stringify(ce),headers:r.headers,credentials:p?"include":"same-origin",mode:"cors",keepalive:!0})},!1)}var t=e.prototype;return t.start=function(n){var r=this,s=n.method,o=n.url,i=n.throttleInterval,a=n.withCredentials,c=n.onError;(function u(){r.currentThrottleTimeout=setTimeout(function(){var f=r.recordsAsArray();if(f.length){var l=new XMLHttpRequest;l.onreadystatechange=function(){l.readyState===XMLHttpRequest.DONE&&(l.status>=400&&(typeof c=="function"?c.call(r,f,l):console.warn("Browser Bunyan: A server log write failed")),r.records={},u())},l.open(s,o);for(var d=0,p=Object.entries(r.headers);d<p.length;d++){var g=p[d];l.setRequestHeader(g[0],g[1])}l.withCredentials=a,l.send(JSON.stringify(f))}else u()},i)})()},t.stop=function(){var n=this;setTimeout(function(){n.currentThrottleTimeout&&(clearTimeout(n.currentThrottleTimeout),n.currentThrottleTimeout=null)},1)},t.write=function(n){n.url=typeof window<"u"&&window.location.href,n.userAgent=tr,this.currentThrottleTimeout&&this.writeCondition(n)&&(this.records[n.msg]?this.records[n.msg].count++:(n.count=1,this.records[n.msg]=n))},t.recordsAsArray=function(){var n=this;return Object.keys(this.records).map(function(r){return n.records[r]})},e.defaultWriteCondition=function(){return window.navigator.onLine&&!ya},e}(),au=10,cu=20,uu=30,lu=40,fu=50,du=60,St={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},nr={};function bt(e){return typeof e=="string"?St[e.toLowerCase()]:e}function vt(e,t){return vt=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},vt(e,t)}function ba(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Tt(e,t,n){return Tt=ba()?Reflect.construct:function(r,s,o){var i=[null];i.push.apply(i,s);var a=new(Function.bind.apply(r,i));return o&&vt(a,o.prototype),a},Tt.apply(null,arguments)}function Y(e){if(e==null)return e;if(Array.isArray(e))return e.slice();if(typeof e=="object"){var t={};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}return e}function It(e){return e===void 0?"undefined":e===null?"null":Array.isArray(e)?"[ "+e.map(function(t){return It(t)}).join(", ")+" ]":typeof e=="object"?JSON.stringify(e):typeof e=="function"?"[Function: "+e.name+"]":typeof e=="boolean"||typeof e=="number"?e:"'"+e.toString()+"'"}function J(e){if(typeof e!="string"){for(var t=new Array(arguments.length),n=0;n<arguments.length;n++)t[n]=It(arguments[n]);return t.join(" ")}for(var r=/%[sdj%]/g,s=1,o=arguments,i=o.length,a=String(e).replace(r,function(u){if(u==="%%")return"%";if(s>=i)return u;switch(u){case"%s":return String(o[s++]);case"%d":return Number(o[s++]);case"%j":try{return JSON.stringify(o[s++])}catch{return"[Circular]"}default:return u}}),c=o[s];s<i;c=o[++s])a+=c===null||typeof c!="object"?" "+c:" "+It(c);return a}function va(e,t){var n=e.split(`
19
+ `);n[0]&&n[0].indexOf("call-stack-error")>=0&&n.shift();var r=n[t],s=null;if(r){var o=/^\s*(at|.*@)\s*(.+)?$/.exec(r);s=Array.isArray(o)&&o[2]?o[2]:r}return s}Object.keys(St).forEach(function(e){nr[St[e]]=e});var wt={};function kt(e,t){if(t){if(wt[t])return;wt[t]=!0}console.error(e+`
20
+ `)}function Ta(e){return wt[e]}function Ia(){var e=[];return function(t,n){return n&&typeof n=="object"?e.indexOf(n)!==-1?"[Circular]":(e.push(n),n):n}}var wa=function(){function e(){}return e.prototype.write=function(t){t.level<30?console.log(t):t.level<40?console.info(t):t.level<50?console.warn(t):console.error(t),t.err&&t.err.stack&&console.error(t.err.stack),t.obj&&console.log(t.obj)},e}(),K=function(){function e(n,r,s){var o,i,a,c,u=this;if(!(this instanceof e))return new e(n,r);if(r!==void 0&&(o=n,n=r,!(o instanceof e)))throw new TypeError("invalid Logger creation: do not pass a second arg");if(!n)throw new TypeError("options (object) is required");if(o){if(n.name)throw new TypeError("invalid options.name: child cannot set logger name")}else if(!n.name)throw new TypeError("options.name (string) is required");if(n.stream&&n.streams)throw new TypeError('cannot mix "streams" and "stream" options');if(n.streams&&!Array.isArray(n.streams))throw new TypeError("invalid options.streams: must be an array");if(n.serializers&&(typeof n.serializers!="object"||Array.isArray(n.serializers)))throw new TypeError("invalid options.serializers: must be an object");if(o&&s){this._level=o._level,this.streams=o.streams,this.serializers=o.serializers,this.src=o.src,i=this.fields={};var f=Object.keys(o.fields);for(c=0;c<f.length;c++)i[a=f[c]]=o.fields[a];var l=Object.keys(n);for(c=0;c<l.length;c++)i[a=l[c]]=n[a]}else{if(o){for(this._level=o._level,this.streams=[],c=0;c<o.streams.length;c++){var d=Y(o.streams[c]);this.streams.push(d)}this.serializers=Y(o.serializers),this.src=o.src,this.fields=Y(o.fields),n.level&&this.level(n.level)}else this._level=Number.POSITIVE_INFINITY,this.streams=[],this.serializers=null,this.src=!1,this.fields={};n.stream?this.addStream({type:"stream",stream:n.stream,level:n.level}):n.streams?n.streams.forEach(function(p){u.addStream(p,n.level)}):o&&n.level?this.level(n.level):o||this.addStream({type:"raw",stream:new wa,level:n.level}),n.serializers&&this.addSerializers(n.serializers),n.src&&(this.src=!0),delete(i=Y(n)).stream,delete i.level,delete i.streams,delete i.serializers,delete i.src,this.serializers&&this._applySerializers(i),Object.keys(i).forEach(function(p){u.fields[p]=i[p]})}}var t=e.prototype;return t.addStream=function(n,r){r===void 0&&(r=30),(n=Y(n)).type="raw",n.level=bt(n.level||r),n.level<this._level&&(this._level=n.level),this.streams.push(n),delete this.haveNonRawStreams},t.addSerializers=function(n){var r=this;this.serializers||(this.serializers={}),Object.keys(n).forEach(function(s){var o=n[s];if(typeof o!="function")throw new TypeError(J('invalid serializer for "%s" field: must be a function',s));r.serializers[s]=o})},t.child=function(n,r){return new this.constructor(this,n||{},r)},t.level=function(n){if(n===void 0)return this._level;for(var r=bt(n),s=this.streams.length,o=0;o<s;o++)this.streams[o].level=r;this._level=r},t.levels=function(n,r){if(n===void 0)return this.streams.map(function(u){return u.level});var s;if(typeof n=="number"){if((s=this.streams[n])===void 0)throw new Error("invalid stream index: "+n)}else{for(var o=this.streams.length,i=0;i<o;i++){var a=this.streams[i];if(a.name===n){s=a;break}}if(!s)throw new Error(J('no stream with name "%s"',n))}if(r===void 0)return s.level;var c=bt(r);s.level=c,c<this._level&&(this._level=c)},t._applySerializers=function(n,r){var s=this;Object.keys(this.serializers).forEach(function(o){if(!(n[o]===void 0||r&&r[o]))try{n[o]=s.serializers[o](n[o])}catch(i){kt(J(`bunyan: ERROR: Exception thrown from the "%s" Bunyan serializer. This should never happen. This is a bugin that serializer function.
21
+ %s`,o,i.stack||i)),n[o]=J('(Error in Bunyan log "%s" serializer broke field. See stderr for details.)',o)}})},t._emit=function(n,r){var s,o;if(this.haveNonRawStreams===void 0){for(this.haveNonRawStreams=!1,s=0;s<this.streams.length;s++)if(!this.streams[s].raw){this.haveNonRawStreams=!0;break}}if(r||this.haveNonRawStreams)try{o=JSON.stringify(n,Ia())+`
22
+ `}catch(u){var i=u.stack.split(/\n/g,2).join(`
23
+ `);kt('bunyan: ERROR: Exception in `JSON.stringify(rec)`. You can install the "safe-json-stringify" module to have Bunyan fallback to safer stringification. Record:\n'+function(f,l){return l||(l=" "),l+f.split(/\r?\n/g).join(`
24
+ `+l)}(J(`%s
25
+ %s`,n,u.stack)),i),o=J(`(Exception in JSON.stringify(rec): %j. See stderr for details.)
26
+ `,u.message)}if(r)return o;var a=n.level;for(s=0;s<this.streams.length;s++){var c=this.streams[s];c.level<=a&&c.stream.write(n)}return o},e}();function ae(e){return function(){var t=this;function n(i){var a;i[0]instanceof Error?(r={err:t.serializers&&t.serializers.err?t.serializers.err(i[0]):ka.err(i[0])},a={err:!0},s=i.length===1?[r.err.message]:Array.prototype.slice.call(i,1)):typeof i[0]!="object"&&i[0]!==null||Array.isArray(i[0])?(r=null,s=Array.prototype.slice.call(i)):(r=i[0],s=i.length===1&&r.err&&r.err instanceof Error?[r.err.message]:Array.prototype.slice.call(i,1));var c=Y(t.fields);c.level=e;var u=r?Y(r):null;if(u&&(t.serializers&&t._applySerializers(u,a),Object.keys(u).forEach(function(l){c[l]=u[l]})),c.levelName=nr[e],c.msg=s.length?J.apply(t,s):"",c.time||(c.time=new Date),t.src&&!c.src)try{throw new Error("call-stack-error")}catch(l){var f=l.stack?va(l.stack,2):"";f||Ta("src")||kt("Unable to determine src line info","src"),c.src=f||""}return c.v=1,c}var r=null,s=arguments,o=null;if(arguments.length===0)return this._level<=e;this._level>e||(o=n(s),this._emit(o))}}function rr(e){var t=e.stack||e.toString();if(e.cause&&typeof e.cause=="function"){var n=e.cause();n&&(t+=`
27
+ Caused by: `+rr(n))}return t}K.prototype.trace=ae(10),K.prototype.debug=ae(20),K.prototype.info=ae(30),K.prototype.warn=ae(40),K.prototype.error=ae(50),K.prototype.fatal=ae(60);var ka={err:function(e){return e&&e.stack?{message:e.message,name:e.name,stack:rr(e),code:e.code,signal:e.signal}:e}};function Na(){return Tt(K,[].slice.call(arguments))}var pu={levels:{trace:"color: DeepPink",debug:"color: GoldenRod",info:"color: DarkTurquoise",warn:"color: Purple",error:"color: Crimson",fatal:"color: Black"},def:"color: DimGray",msg:"color: SteelBlue",src:"color: DimGray; font-style: italic; font-size: 0.9em"},hu=null,gu=null;function Oa({environment:e,clientSlug:t,url:n,telemetry:r}={}){const{logging:s}=Object.assign({},r),o=[{level:Rt,stream:new cr({logByLevel:!0})}];return s&&o.push({level:je,stream:new _a({dsn:"https://509e6f450227e178643e414fe50bd969@o4507853291716608.ingest.us.sentry.io/4508132363141120",environment:e,clientSlug:t})}),n&&o.push({level:je,stream:new Sa({url:n,method:"POST",throttleInterval:5e3,flushOnClose:!0})}),Na({name:"embeddable-logger",streams:o,environment:e,clientSlug:t})}}}]);
@@ -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(1827),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([[964],{5964:(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(1827),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;