1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[962],{6024:function(e,t,n){"use strict";n.d(t,{I7:function(){return o},IL:function(){return s},Mz:function(){return r},m6:function(){return i}});var r={prefix:"far",iconName:"comment",icon:[512,512,[],"f075","M256 32C114.6 32 0 125.1 0 240c0 47.6 19.9 91.2 52.9 126.3C38 405.7 7 439.1 6.5 439.5c-6.6 7-8.4 17.2-4.6 26S14.4 480 24 480c61.5 0 110-25.7 139.1-46.3C192 442.8 223.2 448 256 448c141.4 0 256-93.1 256-208S397.4 32 256 32zm0 368c-26.7 0-53.1-4.1-78.4-12.1l-22.7-7.2-19.5 13.8c-14.3 10.1-33.9 21.4-57.5 29 7.3-12.1 14.4-25.7 19.9-40.2l10.6-28.1-20.6-21.8C69.7 314.1 48 282.2 48 240c0-88.2 93.3-160 208-160s208 71.8 208 160-93.3 160-208 160z"]},i={prefix:"far",iconName:"heart",icon:[512,512,[],"f004","M458.4 64.3C400.6 15.7 311.3 23 256 79.3 200.7 23 111.4 15.6 53.6 64.3-21.6 127.6-10.6 230.8 43 285.5l175.4 178.7c10 10.2 23.4 15.9 37.6 15.9 14.3 0 27.6-5.6 37.6-15.8L469 285.6c53.5-54.7 64.7-157.9-10.6-221.3zm-23.6 187.5L259.4 430.5c-2.4 2.4-4.4 2.4-6.8 0L77.2 251.8c-36.5-37.2-43.9-107.6 7.3-150.7 38.9-32.7 98.9-27.8 136.5 10.5l35 35.7 35-35.7c37.8-38.5 97.8-43.2 136.5-10.6 51.1 43.1 43.5 113.9 7.3 150.8z"]},o={prefix:"far",iconName:"trash-alt",icon:[448,512,[],"f2ed","M268 416h24a12 12 0 0 0 12-12V188a12 12 0 0 0-12-12h-24a12 12 0 0 0-12 12v216a12 12 0 0 0 12 12zM432 80h-82.41l-34-56.7A48 48 0 0 0 274.41 0H173.59a48 48 0 0 0-41.16 23.3L98.41 80H16A16 16 0 0 0 0 96v16a16 16 0 0 0 16 16h16v336a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128h16a16 16 0 0 0 16-16V96a16 16 0 0 0-16-16zM171.84 50.91A6 6 0 0 1 177 48h94a6 6 0 0 1 5.15 2.91L293.61 80H154.39zM368 464H80V128h288zm-212-48h24a12 12 0 0 0 12-12V188a12 12 0 0 0-12-12h-24a12 12 0 0 0-12 12v216a12 12 0 0 0 12 12z"]},s={prefix:"far",iconName:"user",icon:[448,512,[],"f007","M313.6 304c-28.7 0-42.5 16-89.6 16-47.1 0-60.8-16-89.6-16C60.2 304 0 364.2 0 438.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-25.6c0-74.2-60.2-134.4-134.4-134.4zM400 464H48v-25.6c0-47.6 38.8-86.4 86.4-86.4 14.6 0 38.3 16 89.6 16 51.7 0 74.9-16 89.6-16 47.6 0 86.4 38.8 86.4 86.4V464zM224 288c79.5 0 144-64.5 144-144S303.5 0 224 0 80 64.5 80 144s64.5 144 144 144zm0-240c52.9 0 96 43.1 96 96s-43.1 96-96 96-96-43.1-96-96 43.1-96 96-96z"]}},7814:function(e,t,n){"use strict";n.d(t,{G:function(){return w}});var r=n(8947),i=n(5697),o=n.n(i),s=n(7294);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function f(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function p(e){var t;return(t=e-0)==t?e:(e=e.replace(/[\-_\s]+(.)?/g,function(e,t){return t?t.toUpperCase():""})).substr(0,1).toLowerCase()+e.substr(1)}var v=["style"],m=!1;try{m=!0}catch(e){}function y(e){return e&&"object"===u(e)&&e.prefix&&e.iconName&&e.icon?e:r.Qc.icon?r.Qc.icon(e):null===e?null:e&&"object"===u(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function g(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?c({},e,t):{}}var b=["forwardedRef"];function w(e){var t,n,i,o,s,a,u,h,p,v,E,O,x,S,T,k,P,C,j,R=e.forwardedRef,A=d(e,b),N=A.icon,I=A.mask,$=A.symbol,D=A.className,L=A.title,M=A.titleId,Z=A.maskId,B=y(N),F=g("classes",[].concat(f((n=A.beat,i=A.fade,o=A.beatFade,s=A.bounce,a=A.shake,u=A.flash,h=A.spin,p=A.spinPulse,v=A.spinReverse,E=A.pulse,O=A.fixedWidth,x=A.inverse,S=A.border,T=A.listItem,k=A.flip,P=A.size,C=A.rotation,j=A.pull,Object.keys((c(t={"fa-beat":n,"fa-fade":i,"fa-beat-fade":o,"fa-bounce":s,"fa-shake":a,"fa-flash":u,"fa-spin":h,"fa-spin-reverse":v,"fa-spin-pulse":p,"fa-pulse":E,"fa-fw":O,"fa-inverse":x,"fa-border":S,"fa-li":T,"fa-flip":!0===k,"fa-flip-horizontal":"horizontal"===k||"both"===k,"fa-flip-vert
1ical":"vertical"===k||"both"===k},"fa-".concat(P),null!=P),c(t,"fa-rotate-".concat(C),null!=C&&0!==C),c(t,"fa-pull-".concat(j),null!=j),c(t,"fa-swap-opacity",A.swapOpacity),t)).map(function(e){return t[e]?e:null}).filter(function(e){return e}))),f(D.split(" ")))),U=g("transform","string"==typeof A.transform?r.Qc.transform(A.transform):A.transform),H=g("mask",y(I)),z=(0,r.qv)(B,l(l(l(l({},F),U),H),{},{symbol:$,title:L,titleId:M,maskId:Z}));if(!z)return!function(){if(!m&&console&&"function"==typeof console.error){var e;(e=console).error.apply(e,arguments)}}("Could not find icon",B),null;var W=z.abstract,K={ref:R};return Object.keys(A).forEach(function(e){w.defaultProps.hasOwnProperty(e)||(K[e]=A[e])}),_(W[0],K)}w.displayName="FontAwesomeIcon",w.propTypes={beat:o().bool,border:o().bool,beatFade:o().bool,bounce:o().bool,className:o().string,fade:o().bool,flash:o().bool,mask:o().oneOfType([o().object,o().array,o().string]),maskId:o().string,fixedWidth:o().bool,inverse:o().bool,flip:o().oneOf([!0,!1,"horizontal","vertical","both"]),icon:o().oneOfType([o().object,o().array,o().string]),listItem:o().bool,pull:o().oneOf(["right","left"]),pulse:o().bool,rotation:o().oneOf([0,90,180,270]),shake:o().bool,size:o().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:o().bool,spinPulse:o().bool,spinReverse:o().bool,symbol:o().oneOfType([o().bool,o().string]),title:o().string,titleId:o().string,transform:o().oneOfType([o().string,o().object]),swapOpacity:o().bool},w.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var _=(function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var i=(n.children||[]).map(function(n){return e(t,n)}),o=Object.keys(n.attributes||{}).reduce(function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=r.split(";").map(function(e){return e.trim()}).filter(function(e){return e}).reduce(function(e,t){var n,r=t.indexOf(":"),i=p(t.slice(0,r)),o=t.slice(r+1).trim();return i.startsWith("webkit")?e[(n=i).charAt(0).toUpperCase()+n.slice(1)]=o:e[i]=o,e},{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[p(t)]=r}return e},{attrs:{}}),s=r.style,a=d(r,v);return o.attrs.style=l(l({},o.attrs.style),void 0===s?{}:s),t.apply(void 0,[n.tag,l(l({},o.attrs),a)].concat(f(i)))}).bind(null,s.createElement)},7701:function(e,t,n){"use strict";n.d(t,{BL:function(){return u},Ct:function(){return m},F2:function(){return o},I:function(){return i},Pj:function(){return f},YP:function(){return p},bw:function(){return v},d7:function(){return a},k5:function(){return h},mv:function(){return l},t$:function(){return s},ut:function(){return c},we:function(){return r},xs:function(){return y},zV:function(){return d}});var r="top",i="bottom",o="right",s="left",a="auto",l=[r,i,o,s],u="start",c="end",d="clippingParents",f="viewport",h="popper",p="reference",v=l.reduce(function(e,t){return e.concat([t+"-"+u,t+"-"+c])},[]),m=[].concat(l,[a]).reduce(function(e,t){return e.concat([t,t+"-"+u,t+"-"+c])},[]),y=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"]},2092:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(7294);function i(){return(0,r.useState)(null)}},1176:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(7294),i=function(e){var t=(0,r.useRef)(e);return(0,r.useEffect)(function(){t.current=e},[e]),t};function o(e){var t=i(e);return(0,r.useCallback)(function(){return t.current&&t.current.apply(t,arguments)},[t])}},5654:function(e,t,n){"use strict";var r=n(7294),i=function(e){return e&&"function"!=typeof e?function(t){e.current=t}:e};t.Z=function(e,t){return(0,r.useMemo)(function(){var n,r;return n=i(e),r=i(t),function(e){n&&n(e),r&&r(e)}},[e,t])}},6454:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(7294);function i(){var e=(0,r.useRef)(!0),t=(0,r.useRef)(function(){return e.current});return(0,r.useEffect)(function(){return e.current=!0,function(){e.current=!1}},[]),t.current}},8833:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(7294);function i(e){var t=(0,r.useRef)(null);return(0,r.useEffect)(function(){t.current=e}),t.current}},6852:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(7294);function i(e){var t,n=((t=(0,r.useRef)(e)).current=e,t);(0,r.useEffect)(function(){return function(){return n.current()}},[])}},9802:function(e,t,n){"use strict";n.d(t,{eI:function(){return th}});let r=e=>{let t;return t=e||("undefined"==typeof fetch?(...e)=>{var t,r,i,o;return t=void 0,r=void 0,i=void 0,o=function*(){return yield(yield Promise.resolve().then(n.t.bind(n,4098,23))).fetch(...e)}
1,new(i||(i=Promise))(function(e,n){function s(e){try{l(o.next(e))}catch(e){n(e)}}function a(e){try{l(o.throw(e))}catch(e){n(e)}}function l(t){var n;t.done?e(t.value):((n=t.value)instanceof i?n:new i(function(e){e(n)})).then(s,a)}l((o=o.apply(t,r||[])).next())})}:fetch),(...e)=>t(...e)};class i extends Error{constructor(e,t="FunctionsError",n){super(e),super.name=t,this.context=n}}class o extends i{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class s extends i{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class a extends i{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}class l{constructor(e,{headers:t={},customFetch:n}={}){this.url=e,this.headers=t,this.fetch=r(n)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e,t={}){var n,r,i,l,u;return r=this,i=void 0,l=void 0,u=function*(){try{let r;let{headers:i,method:l,body:u}=t,c={};u&&(i&&!Object.prototype.hasOwnProperty.call(i,"Content-Type")||!i)&&("undefined"!=typeof Blob&&u instanceof Blob||u instanceof ArrayBuffer?(c["Content-Type"]="application/octet-stream",r=u):"string"==typeof u?(c["Content-Type"]="text/plain",r=u):"undefined"!=typeof FormData&&u instanceof FormData?r=u:(c["Content-Type"]="application/json",r=JSON.stringify(u)));let d=yield this.fetch(`${this.url}/${e}`,{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},c),this.headers),i),body:r}).catch(e=>{throw new o(e)}),f=d.headers.get("x-relay-error");if(f&&"true"===f)throw new s(d);if(!d.ok)throw new a(d);let h=(null!==(n=d.headers.get("Content-Type"))&&void 0!==n?n:"text/plain").split(";")[0].trim();return{data:"application/json"===h?yield d.json():"application/octet-stream"===h?yield d.blob():"multipart/form-data"===h?yield d.formData():yield d.text(),error:null}}catch(e){return{data:null,error:e}}},new(l||(l=Promise))(function(e,t){function n(e){try{s(u.next(e))}catch(e){t(e)}}function o(e){try{s(u.throw(e))}catch(e){t(e)}}function s(t){var r;t.done?e(t.value):((r=t.value)instanceof l?r:new l(function(e){e(r)})).then(n,o)}s((u=u.apply(r,i||[])).next())})}}var u,c,d,f,h,p,v,m,y,g,b,w,_,E,O,x,S,T,k,P=n(4098),C=n.n(P);class j{constructor(e){this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=e.headers,this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=e.shouldThrowOnError,this.signal=e.signal,this.allowEmpty=e.allowEmpty,e.fetch?this.fetch=e.fetch:"undefined"==typeof fetch?this.fetch=C():this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}then(e,t){void 0===this.schema||(["GET","HEAD"].includes(this.method)?this.headers["Accept-Profile"]=this.schema:this.headers["Content-Profile"]=this.schema),"GET"!==this.method&&"HEAD"!==this.method&&(this.headers["Content-Type"]="application/json");let n=this.fetch,r=n(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async e=>{var t,n,r;let i=null,o=null,s=null,a=e.status,l=e.statusText;if(e.ok){if("HEAD"!==this.method){let t=await e.text();""===t||(o="text/csv"===this.headers.Accept?t:this.headers.Accept&&this.headers.Accept.includes("application/vnd.pgrst.plan+text")?t:JSON.parse(t))}let r=null===(t=this.headers.Prefer)||void 0===t?void 0:t.match(/count=(exact|planned|estimated)/),i=null===(n=e.headers.get("content-range"))||void 0===n?void 0:n.split("/");r&&i&&i.length>1&&(s=parseInt(i[1]))}else{let t=await e.text();try{i=JSON.parse(t),Array.isArray(i)&&404===e.status&&(o=[],i=null,a=200,l="OK")}catch(n){404===e.status&&""===t?(a=204,l="No Content"):i={message:t}}if(i&&this.allowEmpty&&(null===(r=null==i?void 0:i.details)||void 0===r?void 0:r.includes("Results contain 0 rows"))&&(i=null,a=200,l="OK"),i&&this.shouldThrowOnError)throw i}let u={error:i,data:o,count:s,status:a,statusText:l};return u});return this.shouldThrowOnError||(r=r.catch(e=>{var t,n,r;return{error:{message:`${null!==(t=null==e?void 0:e.name)&&void 0!==t?t:"FetchError"}: ${null==e?void 0:e.message}`,details:`${null!==(n=null==e?void 0:e.stack)&&void 0!==n?n:""}`,hint:"",code:`${null!==(r=null==e?void 0:e.code)&&void 0!==r?r:""}`},data:null,count:null,status:0,statusText:""}}
1)),r.then(e,t)}}class R extends j{select(e){let t=!1,n=(null!=e?e:"*").split("").map(e=>/\s/.test(e)&&!t?"":('"'===e&&(t=!t),e)).join("");return this.url.searchParams.set("select",n),this.headers.Prefer&&(this.headers.Prefer+=","),this.headers.Prefer+="return=representation",this}order(e,{ascending:t=!0,nullsFirst:n,foreignTable:r}={}){let i=r?`${r}.order`:"order",o=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${o?`${o},`:""}${e}.${t?"asc":"desc"}${void 0===n?"":n?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t}={}){let n=void 0===t?"limit":`${t}.limit`;return this.url.searchParams.set(n,`${e}`),this}range(e,t,{foreignTable:n}={}){let r=void 0===n?"offset":`${n}.offset`,i=void 0===n?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${e}`),this.url.searchParams.set(i,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.Accept="application/vnd.pgrst.object+json",this}maybeSingle(){return this.headers.Accept="application/vnd.pgrst.object+json",this.allowEmpty=!0,this}csv(){return this.headers.Accept="text/csv",this}geojson(){return this.headers.Accept="application/geo+json",this}explain({analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:r=!1,wal:i=!1,format:o="text"}={}){let s=[e?"analyze":null,t?"verbose":null,n?"settings":null,r?"buffers":null,i?"wal":null].filter(Boolean).join("|"),a=this.headers.Accept;return this.headers.Accept=`application/vnd.pgrst.plan+${o}; for="${a}"; options=${s};`,this}rollback(){var e;return(null!==(e=this.headers.Prefer)&&void 0!==e?e:"").trim().length>0?this.headers.Prefer+=",tx=rollback":this.headers.Prefer="tx=rollback",this}returns(){return this}}class A extends R{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}in(e,t){let n=t.map(e=>"string"==typeof e&&RegExp("[,()]").test(e)?`"${e}"`:`${e}`).join(",");return this.url.searchParams.append(e,`in.(${n})`),this}contains(e,t){return"string"==typeof t?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return"string"==typeof t?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return"string"==typeof t?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:n,type:r}={}){let i="";"plain"===r?i="pl":"phrase"===r?i="ph":"websearch"===r&&(i="w");let o=void 0===n?"":`(${n})`;return this.url.searchParams.append(e,`${i}fts${o}.${t}`),this}match(e){return Object.entries(e).forEach(([e,t])=>{this.url.searchParams.append(e,`eq.${t}`)}),this}not(e,t,n){return this.url.searchParams.append(e,`not.${t}.${n}`),this}or(e,{foreignTable:t}={}){let n=t?`${t}.or`:"or";return this.url.searchParams.append(n,`(${e})`),this}filter(e,t,n){return this.url.searchParams.append(e,`${t}.${n}`),this}}class N{constructor(e,{headers:t={},schema:n,fetch:r}){this.url=e,this.headers=t,this.schema=n,this.fetch=r}
1select(e,{head:t=!1,count:n}={}){let r=!1,i=(null!=e?e:"*").split("").map(e=>/\s/.test(e)&&!r?"":('"'===e&&(r=!r),e)).join("");return this.url.searchParams.set("select",i),n&&(this.headers.Prefer=`count=${n}`),new A({method:t?"HEAD":"GET",url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}insert(e,{count:t,defaultToNull:n=!0}={}){let r=[];if(this.headers.Prefer&&r.push(this.headers.Prefer),t&&r.push(`count=${t}`),n||r.push("missing=default"),this.headers.Prefer=r.join(","),Array.isArray(e)){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]);if(t.length>0){let e=[...new Set(t)].map(e=>`"${e}"`);this.url.searchParams.set("columns",e.join(","))}}return new A({method:"POST",url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:this.fetch,allowEmpty:!1})}upsert(e,{onConflict:t,ignoreDuplicates:n=!1,count:r,defaultToNull:i=!0}={}){let o=[`resolution=${n?"ignore":"merge"}-duplicates`];if(void 0!==t&&this.url.searchParams.set("on_conflict",t),this.headers.Prefer&&o.push(this.headers.Prefer),r&&o.push(`count=${r}`),i||o.push("missing=default"),this.headers.Prefer=o.join(","),Array.isArray(e)){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]);if(t.length>0){let e=[...new Set(t)].map(e=>`"${e}"`);this.url.searchParams.set("columns",e.join(","))}}return new A({method:"POST",url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:this.fetch,allowEmpty:!1})}update(e,{count:t}={}){let n=[];return this.headers.Prefer&&n.push(this.headers.Prefer),t&&n.push(`count=${t}`),this.headers.Prefer=n.join(","),new A({method:"PATCH",url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:this.fetch,allowEmpty:!1})}delete({count:e}={}){let t=[];return e&&t.push(`count=${e}`),this.headers.Prefer&&t.unshift(this.headers.Prefer),this.headers.Prefer=t.join(","),new A({method:"DELETE",url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}}let I={"X-Client-Info":"postgrest-js/1.6.0"};class ${constructor(e,{headers:t={},schema:n,fetch:r}={}){this.url=e,this.headers=Object.assign(Object.assign({},I),t),this.schema=n,this.fetch=r}from(e){let t=new URL(`${this.url}/${e}`);return new N(t,{headers:Object.assign({},this.headers),schema:this.schema,fetch:this.fetch})}rpc(e,t={},{head:n=!1,count:r}={}){let i,o;let s=new URL(`${this.url}/rpc/${e}`);n?(i="HEAD",Object.entries(t).forEach(([e,t])=>{s.searchParams.append(e,`${t}`)})):(i="POST",o=t);let a=Object.assign({},this.headers);return r&&(a.Prefer=`count=${r}`),new A({method:i,url:s,headers:a,schema:this.schema,body:o,fetch:this.fetch,allowEmpty:!1})}}var D=n(5840);let L={"X-Client-Info":"realtime-js/2.7.2"};(b=u||(u={}))[b.connecting=0]="connecting",b[b.open=1]="open",b[b.closing=2]="closing",b[b.closed=3]="closed",(w=c||(c={})).closed="closed",w.errored="errored",w.joined="joined",w.joining="joining",w.leaving="leaving",(_=d||(d={})).close="phx_close",_.error="phx_error",_.join="phx_join",_.reply="phx_reply",_.leave="phx_leave",_.access_token="access_token",(f||(f={})).websocket="websocket",(E=h||(h={})).Connecting="connecting",E.Open="open",E.Closing="closing",E.Closed="closed";class M{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=void 0,this.tries=0,this.callback=e,this.timerCalc=t}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}class Z{constructor(){this.HEADER_LENGTH=1}decode(e,t){return e.constructor===ArrayBuffer?t(this._binaryDecode(e)):"string"==typeof e?t(JSON.parse(e)):t({})}_binaryDecode(e){let t=new DataView(e),n=new TextDecoder;return this._decodeBroadcast(e,t,n)}_decodeBroadcast(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),o=this.HEADER_LENGTH+2,s=n.decode(e.slice(o,o+r));o+=r;let a=n.decode(e.slice(o,o+i));o+=i;let l=JSON.parse(n.decode(e.slice(o,e.byteLength)));return{ref:null,topic:s,event:a,payload:l}}}class B{constructor(e,t,n={},r=1e4){this.channel=e,this.event=t,this.payload=n,this.timeout=r,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHo
1oks=[],this.refEvent=null,this.rateLimited=!1}resend(e){this.timeout=e,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){if(this._hasReceived("timeout"))return;this.startTimeout(),this.sent=!0;let e=this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()});"rate limited"===e&&(this.rateLimited=!0)}updatePayload(e){this.payload=Object.assign(Object.assign({},this.payload),e)}receive(e,t){var n;return this._hasReceived(e)&&t(null===(n=this.receivedResp)||void 0===n?void 0:n.response),this.recHooks.push({status:e,callback:t}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);let e=e=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=e,this._matchReceive(e)};this.channel._on(this.refEvent,{},e),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(e,t){this.refEvent&&this.channel._trigger(this.refEvent,{status:e,response:t})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:e,response:t}){this.recHooks.filter(t=>t.status===e).forEach(e=>e.callback(t))}_hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}}(O=p||(p={})).SYNC="sync",O.JOIN="join",O.LEAVE="leave";class F{constructor(e,t){this.channel=e,this.state={},this.pendingDiffs=[],this.joinRef=null,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};let n=(null==t?void 0:t.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(n.state,{},e=>{let{onJoin:t,onLeave:n,onSync:r}=this.caller;this.joinRef=this.channel._joinRef(),this.state=F.syncState(this.state,e,t,n),this.pendingDiffs.forEach(e=>{this.state=F.syncDiff(this.state,e,t,n)}),this.pendingDiffs=[],r()}),this.channel._on(n.diff,{},e=>{let{onJoin:t,onLeave:n,onSync:r}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(e):(this.state=F.syncDiff(this.state,e,t,n),r())}),this.onJoin((e,t,n)=>{this.channel._trigger("presence",{event:"join",key:e,currentPresences:t,newPresences:n})}),this.onLeave((e,t,n)=>{this.channel._trigger("presence",{event:"leave",key:e,currentPresences:t,leftPresences:n})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(e,t,n,r){let i=this.cloneDeep(e),o=this.transformState(t),s={},a={};return this.map(i,(e,t)=>{o[e]||(a[e]=t)}),this.map(o,(e,t)=>{let n=i[e];if(n){let r=t.map(e=>e.presence_ref),i=n.map(e=>e.presence_ref),o=t.filter(e=>0>i.indexOf(e.presence_ref)),l=n.filter(e=>0>r.indexOf(e.presence_ref));o.length>0&&(s[e]=o),l.length>0&&(a[e]=l)}else s[e]=t}),this.syncDiff(i,{joins:s,leaves:a},n,r)}static syncDiff(e,t,n,r){let{joins:i,leaves:o}={joins:this.transformState(t.joins),leaves:this.transformState(t.leaves)};return n||(n=()=>{}),r||(r=()=>{}),this.map(i,(t,r)=>{var i;let o=null!==(i=e[t])&&void 0!==i?i:[];if(e[t]=this.cloneDeep(r),o.length>0){let n=e[t].map(e=>e.presence_ref),r=o.filter(e=>0>n.indexOf(e.presence_ref));e[t].unshift(...r)}n(t,o,r)}),this.map(o,(t,n)=>{let i=e[t];if(!i)return;let o=n.map(e=>e.presence_ref);i=i.filter(e=>0>o.indexOf(e.presence_ref)),e[t]=i,r(t,i,n),0===i.length&&delete e[t]}),e}static map(e,t){return Object.getOwnPropertyNames(e).map(n=>t(n,e[n]))}static transformState(e){return Object.getOwnPropertyNames(e=this.cloneDeep(e)).reduce((t,n)=>{let r=e[n];return"metas"in r?t[n]=r.metas.map(e=>(e.presence_ref=e.phx_ref,delete e.phx_ref,delete e.phx_ref_prev,e)):t[n]=r,t},{})}static cloneDeep(e){return JSON.parse(JSON.stringify(e))}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}(x=v||(v={})).abstime="abstime",x.bool="bool",x.date="date",x.daterange="daterange",x.float4="float4",x.float8="float8",x.int2="int2",x.int4="int4",x.int4range="int4range",x.int8="int8",x.int8range="int8range",x.json="json",x.jsonb="jsonb",x.money="money",x.numeric="numeric",x.oid="oid",x.reltime="reltime",x.text="text",x.time="time",x.timestamp="timestamp",x.timestamptz="timestamptz",x.timetz="timetz",x.tsrange="tsrange",x.tstzrange="tstzrange";let U=(e,t,n={})=>{var r;let i=null!==(r=n.skipTypes)&&void 0!==r?r:[];return Object.keys(t).reduce((n,r)=>(n[r]=H(r,e,t,i),n),{})},H=(e,t,n,r)=>{let i=t.find(t=>t.name===e),o=null==i?void 0:i.type,s=n[e];return o&&!r.includes(o)?z(o,s):W(s)},z=(e,t)=>{if("_"===e.charAt(0)){let n=e.slice(1,e.length);return V(t,n)}switch(e){case v.bool:return K(t);case v.float4:case v.float8:case v.int2:case v.int4:case v.int8:case v.numeric:case v.oid:return q(t);case v.json:case v.jsonb:return J(t);case v.timestamp:return G(t);case v.abstime:case v.date:case v.daterange:case v.int4range:case v.int8range:case v.money:case v.reltime:case v.text:case v.time:case v.timestamptz:case v.timetz:case v.tsrange:case v.tstzrange:default:return W(t)}},W=e=>e,K=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},q=e=>{if("string"==typeof e){let t=parseFloat(e);
1if(!Number.isNaN(t))return t}return e},J=e=>{if("string"==typeof e)try{return JSON.parse(e)}catch(e){console.log(`JSON parse error: ${e}`)}return e},V=(e,t)=>{if("string"!=typeof e)return e;let n=e.length-1,r=e[n],i=e[0];if("{"===i&&"}"===r){let r;let i=e.slice(1,n);try{r=JSON.parse("["+i+"]")}catch(e){r=i?i.split(","):[]}return r.map(e=>z(t,e))}return e},G=e=>"string"==typeof e?e.replace(" ","T"):e;var X=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})};(S=m||(m={})).ALL="*",S.INSERT="INSERT",S.UPDATE="UPDATE",S.DELETE="DELETE",(T=y||(y={})).BROADCAST="broadcast",T.PRESENCE="presence",T.POSTGRES_CHANGES="postgres_changes",(k=g||(g={})).SUBSCRIBED="SUBSCRIBED",k.TIMED_OUT="TIMED_OUT",k.CLOSED="CLOSED",k.CHANNEL_ERROR="CHANNEL_ERROR";class Y{constructor(e,t={config:{}},n){this.topic=e,this.params=t,this.socket=n,this.bindings={},this.state=c.closed,this.joinedOnce=!1,this.pushBuffer=[],this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:""}},t.config),this.timeout=this.socket.timeout,this.joinPush=new B(this,d.join,this.params,this.timeout),this.rejoinTimer=new M(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=c.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(e=>e.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=c.closed,this.socket._remove(this)}),this._onError(e=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,e),this.state=c.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=c.errored,this.rejoinTimer.scheduleTimeout())}),this._on(d.reply,{},(e,t)=>{this._trigger(this._replyEventName(t),e)}),this.presence=new F(this)}subscribe(e,t=this.timeout){var n,r;if(this.joinedOnce)throw"tried to subscribe multiple times. 'subscribe' can only be called a single time per channel instance";{let{config:{broadcast:i,presence:o}}=this.params;this._onError(t=>e&&e("CHANNEL_ERROR",t)),this._onClose(()=>e&&e("CLOSED"));let s={},a={broadcast:i,presence:o,postgres_changes:null!==(r=null===(n=this.bindings.postgres_changes)||void 0===n?void 0:n.map(e=>e.filter))&&void 0!==r?r:[]};this.socket.accessToken&&(s.access_token=this.socket.accessToken),this.updateJoinPayload(Object.assign({config:a},s)),this.joinedOnce=!0,this._rejoin(t),this.joinPush.receive("ok",({postgres_changes:t})=>{var n;if(this.socket.accessToken&&this.socket.setAuth(this.socket.accessToken),void 0===t){e&&e("SUBSCRIBED");return}{let r=this.bindings.postgres_changes,i=null!==(n=null==r?void 0:r.length)&&void 0!==n?n:0,o=[];for(let n=0;n<i;n++){let i=r[n],{filter:{event:s,schema:a,table:l,filter:u}}=i,c=t&&t[n];if(c&&c.event===s&&c.schema===a&&c.table===l&&c.filter===u)o.push(Object.assign(Object.assign({},i),{id:c.id}));else{this.unsubscribe(),e&&e("CHANNEL_ERROR",Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=o,e&&e("SUBSCRIBED");return}}).receive("error",t=>{e&&e("CHANNEL_ERROR",Error(JSON.stringify(Object.values(t).join(", ")||"error")))}).receive("timeout",()=>{e&&e("TIMED_OUT")})}return this}presenceState(){return this.presence.state}track(e,t={}){return X(this,void 0,void 0,function*(){return yield this.send({type:"presence",event:"track",payload:e},t.timeout||this.timeout)})}untrack(e={}){return X(this,void 0,void 0,function*(){return yield this.send({type:"presence",event:"untrack"},e)})}on(e,t,n){return this._on(e,t,n)}send(e,t={}){return new Promise(n=>{var r,i,o;let s=this._push(e.type,e,t.timeout||this.timeout);s.rateLimited&&n("rate limited"),"broadcast"!==e.type||(null===(o=null===(i=null===(r=this.params)||void 0===r?void 0:r.config)||void 0===i?void 0:i.broadcast)||void 0===o?void 0:o.ack)||n("ok"),s.receive("ok",()=>n("ok")),s.receive("timeout",()=>n("timed out"))})}updateJoinPayload(e){this.joinPush.updatePayload(e)}
1unsubscribe(e=this.timeout){this.state=c.leaving;let t=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(d.close,"leave",this._joinRef())};return this.rejoinTimer.reset(),this.joinPush.destroy(),new Promise(n=>{let r=new B(this,d.leave,{},e);r.receive("ok",()=>{t(),n("ok")}).receive("timeout",()=>{t(),n("timed out")}).receive("error",()=>{n("error")}),r.send(),this._canPush()||r.trigger("ok",{})})}_push(e,t,n=this.timeout){if(!this.joinedOnce)throw`tried to push '${e}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let r=new B(this,e,t,n);return this._canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}_onMessage(e,t,n){return t}_isMember(e){return this.topic===e}_joinRef(){return this.joinPush.ref}_trigger(e,t,n){var r,i;let o=e.toLocaleLowerCase(),{close:s,error:a,leave:l,join:u}=d;if(n&&[s,a,l,u].indexOf(o)>=0&&n!==this._joinRef())return;let c=this._onMessage(o,t,n);if(t&&!c)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?null===(r=this.bindings.postgres_changes)||void 0===r||r.filter(e=>{var t,n,r;return(null===(t=e.filter)||void 0===t?void 0:t.event)==="*"||(null===(r=null===(n=e.filter)||void 0===n?void 0:n.event)||void 0===r?void 0:r.toLocaleLowerCase())===o}).map(e=>e.callback(c,n)):null===(i=this.bindings[o])||void 0===i||i.filter(e=>{var n,r,i,s,a,l;if(!["broadcast","presence","postgres_changes"].includes(o))return e.type.toLocaleLowerCase()===o;if("id"in e){let o=e.id,s=null===(n=e.filter)||void 0===n?void 0:n.event;return o&&(null===(r=t.ids)||void 0===r?void 0:r.includes(o))&&("*"===s||(null==s?void 0:s.toLocaleLowerCase())===(null===(i=t.data)||void 0===i?void 0:i.type.toLocaleLowerCase()))}{let n=null===(a=null===(s=null==e?void 0:e.filter)||void 0===s?void 0:s.event)||void 0===a?void 0:a.toLocaleLowerCase();return"*"===n||n===(null===(l=null==t?void 0:t.event)||void 0===l?void 0:l.toLocaleLowerCase())}}).map(e=>{if("object"==typeof c&&"ids"in c){let e=c.data,{schema:t,table:n,commit_timestamp:r,type:i,errors:o}=e;c=Object.assign(Object.assign({},{schema:t,table:n,commit_timestamp:r,eventType:i,new:{},old:{},errors:o}),this._getPayloadRecords(e))}e.callback(c,n)})}_isClosed(){return this.state===c.closed}_isJoined(){return this.state===c.joined}_isJoining(){return this.state===c.joining}_isLeaving(){return this.state===c.leaving}_replyEventName(e){return`chan_reply_${e}`}_on(e,t,n){let r=e.toLocaleLowerCase(),i={type:r,filter:t,callback:n};return this.bindings[r]?this.bindings[r].push(i):this.bindings[r]=[i],this}_off(e,t){let n=e.toLocaleLowerCase();return this.bindings[n]=this.bindings[n].filter(e=>{var r;return!((null===(r=e.type)||void 0===r?void 0:r.toLocaleLowerCase())===n&&Y.isEqual(e.filter,t))}),this}static isEqual(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(e){this._on(d.close,{},e)}_onError(e){this._on(d.error,{},t=>e(t))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(e=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=c.joining,this.joinPush.resend(e))}_getPayloadRecords(e){let t={new:{},old:{}};return("INSERT"===e.type||"UPDATE"===e.type)&&(t.new=U(e.columns,e.record)),("UPDATE"===e.type||"DELETE"===e.type)&&(t.old=U(e.columns,e.old_record)),t}}var Q=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})};let ee=()=>{};class et{constructor(e,t){var n;this.accessToken=null,this.channels=[],this.endPoint="",this.headers=L,this.params={},this.timeout=1e4,this.transport=D.w3cwebsocket,this.heartbeatIntervalMs=3e4,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.ref=0,this.logger=ee,this.conn=null,this.sendBuffer=[],this.serializer
1=new Z,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.eventsPerSecondLimitMs=100,this.inThrottle=!1,this.endPoint=`${e}/${f.websocket}`,(null==t?void 0:t.params)&&(this.params=t.params),(null==t?void 0:t.headers)&&(this.headers=Object.assign(Object.assign({},this.headers),t.headers)),(null==t?void 0:t.timeout)&&(this.timeout=t.timeout),(null==t?void 0:t.logger)&&(this.logger=t.logger),(null==t?void 0:t.transport)&&(this.transport=t.transport),(null==t?void 0:t.heartbeatIntervalMs)&&(this.heartbeatIntervalMs=t.heartbeatIntervalMs);let r=null===(n=null==t?void 0:t.params)||void 0===n?void 0:n.eventsPerSecond;r&&(this.eventsPerSecondLimitMs=Math.floor(1e3/r)),this.reconnectAfterMs=(null==t?void 0:t.reconnectAfterMs)?t.reconnectAfterMs:e=>[1e3,2e3,5e3,1e4][e-1]||1e4,this.encode=(null==t?void 0:t.encode)?t.encode:(e,t)=>t(JSON.stringify(e)),this.decode=(null==t?void 0:t.decode)?t.decode:this.serializer.decode.bind(this.serializer),this.reconnectTimer=new M(()=>Q(this,void 0,void 0,function*(){this.disconnect(),this.connect()}),this.reconnectAfterMs)}connect(){!this.conn&&(this.conn=new this.transport(this._endPointURL(),[],null,this.headers),this.conn&&(this.conn.binaryType="arraybuffer",this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=e=>this._onConnError(e),this.conn.onmessage=e=>this._onConnMessage(e),this.conn.onclose=e=>this._onConnClose(e)))}disconnect(e,t){this.conn&&(this.conn.onclose=function(){},e?this.conn.close(e,null!=t?t:""):this.conn.close(),this.conn=null,this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.reset())}getChannels(){return this.channels}removeChannel(e){return Q(this,void 0,void 0,function*(){let t=yield e.unsubscribe();return 0===this.channels.length&&this.disconnect(),t})}removeAllChannels(){return Q(this,void 0,void 0,function*(){let e=yield Promise.all(this.channels.map(e=>e.unsubscribe()));return this.disconnect(),e})}log(e,t,n){this.logger(e,t,n)}connectionState(){switch(this.conn&&this.conn.readyState){case u.connecting:return h.Connecting;case u.open:return h.Open;case u.closing:return h.Closing;default:return h.Closed}}isConnected(){return this.connectionState()===h.Open}channel(e,t={config:{}}){this.isConnected()||this.connect();let n=new Y(`realtime:${e}`,t,this);return this.channels.push(n),n}push(e){let{topic:t,event:n,payload:r,ref:i}=e,o=()=>{this.encode(e,e=>{var t;null===(t=this.conn)||void 0===t||t.send(e)})};if(this.log("push",`${t} ${n} (${i})`,r),this.isConnected()){if(["broadcast","presence","postgres_changes"].includes(n)){let e=this._throttle(o)();if(e)return"rate limited"}else o()}else this.sendBuffer.push(o)}setAuth(e){this.accessToken=e,this.channels.forEach(t=>{e&&t.updateJoinPayload({access_token:e}),t.joinedOnce&&t._isJoined()&&t._push(d.access_token,{access_token:e})})}_makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}_leaveOpenTopic(e){let t=this.channels.find(t=>t.topic===e&&(t._isJoined()||t._isJoining()));t&&(this.log("transport",`leaving duplicate topic "${e}"`),t.unsubscribe())}_remove(e){this.channels=this.channels.filter(t=>t._joinRef()!==e._joinRef())}_endPointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:"1.0.0"}))}_onConnMessage(e){this.decode(e.data,e=>{let{topic:t,event:n,payload:r,ref:i}=e;(i&&i===this.pendingHeartbeatRef||n===(null==r?void 0:r.type))&&(this.pendingHeartbeatRef=null),this.log("receive",`${r.status||""} ${t} ${n} ${i&&"("+i+")"||""}`,r),this.channels.filter(e=>e._isMember(t)).forEach(e=>e._trigger(n,r,i)),this.stateChangeCallbacks.message.forEach(t=>t(e))})}_onConnOpen(){this.log("transport",`connected to ${this._endPointURL()}`),this._flushSendBuffer(),this.reconnectTimer.reset(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this._sendHeartbeat(),this.heartbeatIntervalMs),this.stateChangeCallbacks.open.forEach(e=>e())}_onConnClose(e){this.log("transport","close",e),this._triggerChanError(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(t=>t(e))}_onConnError(e){this.log("transport",e.message),this._triggerChanError(),this.stateChangeCallbacks.error.forEach(t=>t(e))}
1_triggerChanError(){this.channels.forEach(e=>e._trigger(d.error))}_appendParams(e,t){if(0===Object.keys(t).length)return e;let n=e.match(/\?/)?"&":"?",r=new URLSearchParams(t);return`${e}${n}${r}`}_flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}_sendHeartbeat(){var e;if(this.isConnected()){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),null===(e=this.conn)||void 0===e||e.close(1e3,"hearbeat timeout");return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.setAuth(this.accessToken)}}_throttle(e,t=this.eventsPerSecondLimitMs){return()=>!!this.inThrottle||(e(),t>0&&(this.inThrottle=!0,setTimeout(()=>{this.inThrottle=!1},t)),!1)}}class en extends Error{constructor(e){super(e),this.__isStorageError=!0,this.name="StorageError"}}function er(e){return"object"==typeof e&&null!==e&&"__isStorageError"in e}class ei extends en{constructor(e,t){super(e),this.name="StorageApiError",this.status=t}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class eo extends en{constructor(e,t){super(e),this.name="StorageUnknownError",this.originalError=t}}var es=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})};let ea=e=>{let t;return t=e||("undefined"==typeof fetch?(...e)=>es(void 0,void 0,void 0,function*(){return yield(yield Promise.resolve().then(n.t.bind(n,4098,23))).fetch(...e)}):fetch),(...e)=>t(...e)},el=()=>es(void 0,void 0,void 0,function*(){return"undefined"==typeof Response?(yield Promise.resolve().then(n.t.bind(n,4098,23))).Response:Response});var eu=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})};let ec=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),ed=(e,t)=>eu(void 0,void 0,void 0,function*(){let n=yield el();e instanceof n?e.json().then(n=>{t(new ei(ec(n),e.status||500))}).catch(e=>{t(new eo(ec(e),e))}):t(new eo(ec(e),e))}),ef=(e,t,n,r)=>{let i={method:e,headers:(null==t?void 0:t.headers)||{}};return"GET"===e?i:(i.headers=Object.assign({"Content-Type":"application/json"},null==t?void 0:t.headers),i.body=JSON.stringify(r),Object.assign(Object.assign({},i),n))};function eh(e,t,n,r,i,o){return eu(this,void 0,void 0,function*(){return new Promise((s,a)=>{e(n,ef(t,r,i,o)).then(e=>{if(!e.ok)throw e;return(null==r?void 0:r.noResolveJson)?e:e.json()}).then(e=>s(e)).catch(e=>ed(e,a))})})}function ep(e,t,n,r){return eu(this,void 0,void 0,function*(){return eh(e,"GET",t,n,r)})}function ev(e,t,n,r,i){return eu(this,void 0,void 0,function*(){return eh(e,"POST",t,r,i,n)})}function em(e,t,n,r,i){return eu(this,void 0,void 0,function*(){return eh(e,"DELETE",t,r,i,n)})}var ey=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})};let eg={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},eb={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class ew{constructor(e,t={},n,r){this.url=e,this.headers=t,this.bucketId=n,this.fetch=ea(r)}uploadOrUpdate(e,t,n,r){return ey(this,void 0,void 0,function*(){try{let i;let o=Object.assign(Object.assign({},eb),r),s=Object.assign(Object.assign({},this.headers),"POST"===e&&{"x-upsert":String(o.upsert)});"undefined"!=typeof Blob&&n instanceof Blob?((i=new FormData).append("cacheControl",o.cacheControl),i.append("",n)):"undefined"!=typeof FormData&&n instanceof FormData?(i=n).append("cacheControl",o.cacheControl):(i=n,s["cache-control"]=`max-age=${o.cacheControl}`,s["content-type"]=o.contentType);let a=this._removeEmptyFolders(t),l=this._getFinalPath(a),u=yield this.fetch(`${this.url}/object/${l}`,Object.assign({method:e,body:i,headers:s},(null==o?void 0:o.duplex)?{duplex:o.duplex}:{}));if(u.ok)return{data:{path:a},error:null};{let e=yield u.json();return{data:null,error:e}}}catch(e){if(er(e))return{data:null,error:e};throw e}})}upload(e,t,n){return ey(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",e,t,n)})}uploadToSignedUrl(e,t,n,r){return ey(this,void 0,void 0,function*(){let i=this._removeEmptyFolders(e),o=this._getFinalPath(i),s=new URL(this.url+`/object/upload/sign/${o}`);s.searchParams.set("token",t);try{let e;let t=Object.assign({upsert:eb.upsert},r),o=Object.assign(Object.assign({},this.headers),{"x-upsert":String(t.upsert)});"undefined"!=typeof Blob&&n instanceof Blob?((e=new FormData).append("cacheControl",t.cacheControl),e.append("",n)):"undefined"!=typeof FormData&&n instanceof FormData?(e=n).append("cacheControl",t.cacheControl):(e=n,o["cache-control"]=`max-age=${t.cacheControl}`,o["content-type"]=t.contentType);let a=yield this.fetch(s.toString(),{method:"PUT",body:e,headers:o});if(a.ok)return{data:{path:i},error:null};{let e=yield a.json();return{data:null,error:e}}}catch(e){if(er(e))return{data:null,error:e};throw e}})}createSignedUploadUrl(e){return ey(this,void 0,void 0,function*(){try{let t=this._getFinalPath(e),n=yield ev(this.fetch,`${this.url}/object/upload/sign/${t}`,{},{headers:this.headers}
1),r=new URL(this.url+n.url),i=r.searchParams.get("token");if(!i)throw new en("No token returned by API");return{data:{signedUrl:r.toString(),path:e,token:i},error:null}}catch(e){if(er(e))return{data:null,error:e};throw e}})}update(e,t,n){return ey(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",e,t,n)})}move(e,t){return ey(this,void 0,void 0,function*(){try{let n=yield ev(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:e,destinationKey:t},{headers:this.headers});return{data:n,error:null}}catch(e){if(er(e))return{data:null,error:e};throw e}})}copy(e,t){return ey(this,void 0,void 0,function*(){try{let n=yield ev(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:e,destinationKey:t},{headers:this.headers});return{data:{path:n.Key},error:null}}catch(e){if(er(e))return{data:null,error:e};throw e}})}createSignedUrl(e,t,n){return ey(this,void 0,void 0,function*(){try{let r=this._getFinalPath(e),i=yield ev(this.fetch,`${this.url}/object/sign/${r}`,Object.assign({expiresIn:t},(null==n?void 0:n.transform)?{transform:n.transform}:{}),{headers:this.headers}),o=(null==n?void 0:n.download)?`&download=${!0===n.download?"":n.download}`:"",s=encodeURI(`${this.url}${i.signedURL}${o}`);return{data:i={signedUrl:s},error:null}}catch(e){if(er(e))return{data:null,error:e};throw e}})}createSignedUrls(e,t,n){return ey(this,void 0,void 0,function*(){try{let r=yield ev(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:t,paths:e},{headers:this.headers}),i=(null==n?void 0:n.download)?`&download=${!0===n.download?"":n.download}`:"";return{data:r.map(e=>Object.assign(Object.assign({},e),{signedUrl:e.signedURL?encodeURI(`${this.url}${e.signedURL}${i}`):null})),error:null}}catch(e){if(er(e))return{data:null,error:e};throw e}})}download(e,t){return ey(this,void 0,void 0,function*(){let n=void 0!==(null==t?void 0:t.transform),r=this.transformOptsToQueryString((null==t?void 0:t.transform)||{}),i=r?`?${r}`:"";try{let t=this._getFinalPath(e),r=yield ep(this.fetch,`${this.url}/${n?"render/image/authenticated":"object"}/${t}${i}`,{headers:this.headers,noResolveJson:!0}),o=yield r.blob();return{data:o,error:null}}catch(e){if(er(e))return{data:null,error:e};throw e}})}getPublicUrl(e,t){let n=this._getFinalPath(e),r=[],i=(null==t?void 0:t.download)?`download=${!0===t.download?"":t.download}`:"";""!==i&&r.push(i);let o=void 0!==(null==t?void 0:t.transform),s=this.transformOptsToQueryString((null==t?void 0:t.transform)||{});""!==s&&r.push(s);let a=r.join("&");return""!==a&&(a=`?${a}`),{data:{publicUrl:encodeURI(`${this.url}/${o?"render/image":"object"}/public/${n}${a}`)}}}remove(e){return ey(this,void 0,void 0,function*(){try{let t=yield em(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:e},{headers:this.headers});return{data:t,error:null}}catch(e){if(er(e))return{data:null,error:e};throw e}})}list(e,t,n){return ey(this,void 0,void 0,function*(){try{let r=Object.assign(Object.assign(Object.assign({},eg),t),{prefix:e||""}),i=yield ev(this.fetch,`${this.url}/object/list/${this.bucketId}`,r,{headers:this.headers},n);return{data:i,error:null}}catch(e){if(er(e))return{data:null,error:e};throw e}})}_getFinalPath(e){return`${this.bucketId}/${e}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){let t=[];return e.width&&t.push(`width=${e.width}`),e.height&&t.push(`height=${e.height}`),e.resize&&t.push(`resize=${e.resize}`),e.format&&t.push(`format=${e.format}`),e.quality&&t.push(`quality=${e.quality}`),t.join("&")}}let e_={"X-Client-Info":"storage-js/2.5.1"};var eE=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})};class eO{constructor(e,t={},n){this.url=e,this.headers=Object.assign(Object.assign({},e_),t),this.fetch=ea(n)}listBuckets(){return eE(this,void 0,void 0,function*(){try{let e=yield ep(this.fetch,`${this.url}/bucket`,{headers:this.headers});return{data:e,error:null}}catch(e){if(er(e))return{data:null,error:e};throw e}})}getBucket(e){return eE(this,void 0,void 0,function*(){try{let t=yield ep(this.fetch,`${this.url}/bucket/${e}`,{headers:this.headers});return{data:t,error:null}}catch(e){if(er(e))return{data:null,error:e};throw e}})}createBucket(e,t={public:!1}){return eE(this,void 0,void 0,function*(){try{let n=yield ev(this.fetch,`${this.url}/bucket`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:this.headers});return{data:n,error:null}}catch(e){if(er(e))return{data:null,error:e};throw e}})}updateBucket(e,t){return eE(this,void 0,void 0,function*(){try{let n=yield function(e,t,n,r,i){return eu(this,void 0,void 0,function*(){return eh(e,"PUT",t,r,void 0,n)})}(this.fetch,`${this.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:this.headers});return{data:n,error:null}}catch(e){if(er(e))return{data:null,error:e};throw e}})}emptyBucket(e){return eE(this,void 0,void 0,function*(){try{let t=yield ev(this.fetch,`${this.url}/bucket/${e}/empty`,{},{headers:this.headers});return{data:t,error:null}}catch(e){if(er(e))return{data:null,error:e};throw e}})}deleteBucket(e){return eE(this,void 0,void 0,function*(){try{let t=yield em(this.fetch,`${this.url}/bucket/${e}`,{},{headers:this.headers});return{data:t,error:null}}catch(e){if(er(e))return{data:null,error:e};throw e}})}}class ex extends eO{constructor(e,t={},n){super(e,t,n)}from(e){return new ew(this.url,this.headers,e,this.fetch)}}let eS=e=>{let t;return t=e||("undefined"==typeof fetch?C():fetch),(...e)=>t(...e)},eT=()=>"undefined"==typeof Headers?P.Headers:Headers,ek=(e,t,n)=>{let r=eS(n),i=eT();return(n,o)=>{var s,a,l,u;return s=void 0,a=void 0,l=void 0,u=function*(){var s;let a=null!==(s=yield t())&&void 0!==s?s:e,l=new i(null==o?void 0:o.headers);return l.has("apikey")||l.set("apikey",e),l.has("Authorization")||l.set("Authorization",`Bearer ${a}`),r(n,Object.assign(Object.assign({},o),{headers:l}))},new(l||(l=Promise))(function(e,t){function n(e){try{i(u.next(e))}catch(e){t(e)}}function r(e){try{i(u.throw(e))}catch(e){t(e)}}function i(t){var i;t.done?e(t.value):((i=t.value)instanceof l?i:new l(function(e){e(i)})).then(n,r)}i((u=u.apply(s,a||[])).next())})}};
1var eP=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})};let eC=()=>"undefined"!=typeof document,ej={tested:!1,writable:!1},eR=()=>{if(!eC())return!1;try{if("object"!=typeof globalThis.localStorage)return!1}catch(e){return!1}if(ej.tested)return ej.writable;let e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),ej.tested=!0,ej.writable=!0}catch(e){ej.tested=!0,ej.writable=!1}return ej.writable};function eA(e,t){var n;t||(t=(null===(n=null==window?void 0:window.location)||void 0===n?void 0:n.href)||""),e=e.replace(/[\[\]]/g,"\\$&");let r=RegExp("[?&#]"+e+"(=([^&#]*)|&|#|$)"),i=r.exec(t);return i?i[2]?decodeURIComponent(i[2].replace(/\+/g," ")):"":null}let eN=e=>{let t;return t=e||("undefined"==typeof fetch?(...e)=>eP(void 0,void 0,void 0,function*(){return yield(yield Promise.resolve().then(n.t.bind(n,4098,23))).fetch(...e)}):fetch),(...e)=>t(...e)},eI=e=>"object"==typeof e&&null!==e&&"status"in e&&"ok"in e&&"json"in e&&"function"==typeof e.json,e$=(e,t,n)=>eP(void 0,void 0,void 0,function*(){yield e.setItem(t,JSON.stringify(n))}),eD=(e,t)=>eP(void 0,void 0,void 0,function*(){let n=yield e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch(e){return n}}),eL=(e,t)=>eP(void 0,void 0,void 0,function*(){yield e.removeItem(t)});class eM{constructor(){this.promise=new eM.promiseConstructor((e,t)=>{this.resolve=e,this.reject=t})}}function eZ(e){let t=e.split(".");if(3!==t.length)throw Error("JWT is not valid: not a JWT structure");if(!/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}=?$|[a-z0-9_-]{2}(==)?$)$/i.test(t[1]))throw Error("JWT is not valid: payload is not in base64url format");let n=t[1];return JSON.parse(function(e){let t,n,r,i,o,s,a;let l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u="",c=0;for(e=e.replace("-","+").replace("_","/");c<e.length;)i=l.indexOf(e.charAt(c++)),o=l.indexOf(e.charAt(c++)),s=l.indexOf(e.charAt(c++)),a=l.indexOf(e.charAt(c++)),t=i<<2|o>>4,n=(15&o)<<4|s>>2,r=(3&s)<<6|a,u+=String.fromCharCode(t),64!=s&&0!=n&&(u+=String.fromCharCode(n)),64!=a&&0!=r&&(u+=String.fromCharCode(r));return u}(n))}function eB(e){return("0"+e.toString(16)).substr(-2)}function eF(){let e=new Uint32Array(56);if("undefined"==typeof crypto){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",t=e.length,n="";for(let r=0;r<56;r++)n+=e.charAt(Math.floor(Math.random()*t));return n}return crypto.getRandomValues(e),Array.from(e,eB).join("")}function eU(e){return eP(this,void 0,void 0,function*(){if("undefined"==typeof crypto)return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;let t=yield function(e){return eP(this,void 0,void 0,function*(){let t=new TextEncoder,n=t.encode(e),r=yield crypto.subtle.digest("SHA-256",n),i=new Uint8Array(r);return Array.from(i).map(e=>String.fromCharCode(e)).join("")})}(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")})}eM.promiseConstructor=Promise;class eH extends Error{constructor(e,t){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=t}}function ez(e){return"object"==typeof e&&null!==e&&"__isAuthError"in e}class eW extends eH{constructor(e,t){super(e,t),this.name="AuthApiError",this.status=t}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class eK extends eH{constructor(e,t){super(e),this.name="AuthUnknownError",this.originalError=t}}class eq extends eH{constructor(e,t,n){super(e),this.name=t,this.status=n}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class eJ extends eq{constructor(){super("Auth session missing!","AuthSessionMissingError",400)}}class eV extends eq{constructor(e){super(e,"AuthInvalidCredentialsError",400)}}class eG extends eq{constructor(e,t=null){super(e,"AuthImplicitGrantRedirectError",500),this.details=null,this.details=t}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class eX extends eq{constructor(e,t=null){super(e,"AuthPKCEGrantCodeExchangeError",500),this.details=null,this.details=t}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class eY extends eq{constructor(e,t){super(e,"AuthRetryableFetchError",t)}}
1var eQ=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})},e0=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};let e1=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),e2=(e,t)=>eQ(void 0,void 0,void 0,function*(){eI(e)?[502,503,504].includes(e.status)?t(new eY(e1(e),e.status)):e.json().then(n=>{t(new eW(e1(n),e.status||500))}).catch(e=>{t(new eK(e1(e),e))}):t(new eY(e1(e),0))}),e4=(e,t,n,r)=>{let i={method:e,headers:(null==t?void 0:t.headers)||{}};return"GET"===e?i:(i.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},null==t?void 0:t.headers),i.body=JSON.stringify(r),Object.assign(Object.assign({},i),n))};function e6(e,t,n,r){var i;return eQ(this,void 0,void 0,function*(){let o=Object.assign({},null==r?void 0:r.headers);(null==r?void 0:r.jwt)&&(o.Authorization=`Bearer ${r.jwt}`);let s=null!==(i=null==r?void 0:r.query)&&void 0!==i?i:{};(null==r?void 0:r.redirectTo)&&(s.redirect_to=r.redirectTo);let a=Object.keys(s).length?"?"+new URLSearchParams(s).toString():"",l=yield function(e,t,n,r,i,o){return eQ(this,void 0,void 0,function*(){return new Promise((s,a)=>{e(n,e4(t,r,i,o)).then(e=>{if(!e.ok)throw e;return(null==r?void 0:r.noResolveJson)?e:e.json()}).then(e=>s(e)).catch(e=>e2(e,a))})})}(e,t,n+a,{headers:o,noResolveJson:null==r?void 0:r.noResolveJson},{},null==r?void 0:r.body);return(null==r?void 0:r.xform)?null==r?void 0:r.xform(l):{data:Object.assign({},l),error:null}})}function e3(e){var t;let n=null;e.access_token&&e.refresh_token&&e.expires_in&&((n=Object.assign({},e)).expires_at=function(e){let t=Math.round(Date.now()/1e3);return t+e}(e.expires_in));let r=null!==(t=e.user)&&void 0!==t?t:e;return{data:{session:n,user:r},error:null}}function e5(e){var t;let n=null!==(t=e.user)&&void 0!==t?t:e;return{data:{user:n},error:null}}function e8(e){return{data:e,error:null}}function e9(e){let{action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:o}=e,s=e0(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a=Object.assign({},s);return{data:{properties:{action_link:t,email_otp:n,hashed_token:r,redirect_to:i,verification_type:o},user:a},error:null}}function e7(e){return e}var te=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})},tt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};class tn{constructor({url:e="",headers:t={},fetch:n}){this.url=e,this.headers=t,this.fetch=eN(n),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}signOut(e){return te(this,void 0,void 0,function*(){try{return yield e6(this.fetch,"POST",`${this.url}/logout`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(e){if(ez(e))return{data:null,error:e};throw e}})}inviteUserByEmail(e,t={}){return te(this,void 0,void 0,function*(){try{return yield e6(this.fetch,"POST",`${this.url}/invite`,{body:{email:e,data:t.data},headers:this.headers,redirectTo:t.redirectTo,xform:e5})}catch(e){if(ez(e))return{data:{user:null},error:e};throw e}})}generateLink(e){return te(this,void 0,void 0,function*(){try{let{options:t}=e,n=tt(e,["options"]),r=Object.assign(Object.assign({},n),t);return"newEmail"in n&&(r.new_email=null==n?void 0:n.newEmail,delete r.newEmail),yield e6(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:r,headers:this.headers,xform:e9,redirectTo:null==t?void 0:t.redirectTo})}catch(e){if(ez(e))return{data:{properties:null,user:null},error:e};throw e}})}createUser(e){return te(this,void 0,void 0,function*(){try{return yield e6(this.fetch,"POST",`${this.url}/admin/users`,{body:e,headers:this.headers,xform:e5})}catch(e){if(ez(e))return{data:{user:null},error:e};throw e}})}listUsers(e){var t,n,r,i,o,s,a;return te(this,void 0,void 0,function*(){try{let l={nextPage:null,lastPage:0,total:0}
1,u=yield e6(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:null!==(n=null===(t=null==e?void 0:e.page)||void 0===t?void 0:t.toString())&&void 0!==n?n:"",per_page:null!==(i=null===(r=null==e?void 0:e.perPage)||void 0===r?void 0:r.toString())&&void 0!==i?i:""},xform:e7});if(u.error)throw u.error;let c=yield u.json(),d=null!==(o=u.headers.get("x-total-count"))&&void 0!==o?o:0,f=null!==(a=null===(s=u.headers.get("link"))||void 0===s?void 0:s.split(","))&&void 0!==a?a:[];return f.length>0&&(f.forEach(e=>{let t=parseInt(e.split(";")[0].split("=")[1].substring(0,1)),n=JSON.parse(e.split(";")[1].split("=")[1]);l[`${n}Page`]=t}),l.total=parseInt(d)),{data:Object.assign(Object.assign({},c),l),error:null}}catch(e){if(ez(e))return{data:{users:[]},error:e};throw e}})}getUserById(e){return te(this,void 0,void 0,function*(){try{return yield e6(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:e5})}catch(e){if(ez(e))return{data:{user:null},error:e};throw e}})}updateUserById(e,t){return te(this,void 0,void 0,function*(){try{return yield e6(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:t,headers:this.headers,xform:e5})}catch(e){if(ez(e))return{data:{user:null},error:e};throw e}})}deleteUser(e,t=!1){return te(this,void 0,void 0,function*(){try{return yield e6(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:t},xform:e5})}catch(e){if(ez(e))return{data:{user:null},error:e};throw e}})}_listFactors(e){return te(this,void 0,void 0,function*(){try{let{data:t,error:n}=yield e6(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:e=>({data:{factors:e},error:null})});return{data:t,error:n}}catch(e){if(ez(e))return{data:null,error:e};throw e}})}_deleteFactor(e){return te(this,void 0,void 0,function*(){try{let t=yield e6(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers});return{data:t,error:null}}catch(e){if(ez(e))return{data:null,error:e};throw e}})}}var tr={getItem:e=>eR()?globalThis.localStorage.getItem(e):null,setItem:(e,t)=>{eR()&&globalThis.localStorage.setItem(e,t)},removeItem:e=>{eR()&&globalThis.localStorage.removeItem(e)}},ti=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(s,a)}l((r=r.apply(e,t||[])).next())})};!function(){if("object"!=typeof globalThis)try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch(e){"undefined"!=typeof self&&(self.globalThis=self)}}();let to={url:"http://localhost:9999",storageKey:"supabase.auth.token",autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:{"X-Client-Info":"gotrue-js/2.23.0"},flowType:"implicit"};class ts{constructor(e){var t;this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.broadcastChannel=null;let n=Object.assign(Object.assign({},to),e);if(this.inMemorySession=null,this.storageKey=n.storageKey,this.autoRefreshToken=n.autoRefreshToken,this.persistSession=n.persistSession,this.storage=n.storage||tr,this.admin=new tn({url:n.url,headers:n.headers,fetch:n.fetch}),this.url=n.url,this.headers=n.headers,this.fetch=eN(n.fetch),this.detectSessionInUrl=n.detectSessionInUrl,this.flowType=n.flowType,this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)},eC()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(e){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",e)}null===(t=this.broadcastChannel)||void 0===t||t.addEventListener("message",e=>{this._notifyAllSubscribers(e.data.event,e.data.session,!1)})}this.initialize()}initialize(){return this.initializePromise||(this.initializePromise=this._initialize()),this.initializePromise}_initialize(){return ti(this,void 0,void 0,function*(){if(this.initializePromise)return this.initializePromise;try{let e=yield this._isPKCEFlow();if(this.detectSessionInUrl&&this._isImplicitGrantFlow()||e){let{data:t,error:n}=yield this._getSessionFromUrl(e);if(n)return yield this._removeSession(),{error:n};let{session:r,redirectType:i}=t;return yield this._saveSession(r),setTimeout(()=>{"recovery"===i?this._notifyAllSubscribers("PASSWORD_RECOVERY",r):this._notifyAllSubscribers("SIGNED_IN",r)},0),{error:null}}return yield this._recoverAndRefresh(),{error:null}}catch(e){if(ez(e))return{error:e};return{error:new eK("Unexpected error during initialization",e)}}finally{yield this._handleVisibilityChange()}})}signUp(e){var t,n,r;return ti(this,void 0,void 0,function*(){try{let i;if(yield this._removeSession(),"email"in e){let{email:n,password:r,options:o}=e,s=null,a=null;if("pkce"===this.flowType){let e=eF();yield e$(this.storage,`${this.storageKey}-code-verifier`,e),s=yield eU(e),a=e===s?"plain":"s256"}i=yield e6(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:null==o?void 0:o.emailRedirectTo,body:{email:n,password:r,data:null!==(t=null==o?void 0:o.data)&&void 0!==t?t:{},gotrue_meta_security:{captcha_token:null==o?void 0:o.captchaToken},code_challenge:s,code_challenge_method:a},xform:e3})}else if("phone"in e){let{phone:t,password:o,options:s}=e;i=yield e6(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:t,password:o,data:null!==(n=null==s?void 0:s.data)&&void 0!==n?n:{},channel:null!==(r=null==s?void 0:s.channel)&&void 0!==r?r:"sms",gotrue_meta_security:{captcha_token:null==s?void 0:s.captchaToken}},xform:e3})}else throw new eV("You must provide either an email or phone number and a password");let{data:o,error:s}=i;if(s||!o)return{data:{user:null,session:null},error:s};let a=o.session,l=o.user;return o.session&&(yield this._saveSession(o.session),this._notifyAllSubscribers("SIGNED_IN",a)),{data:{user:l,session:a},error:null}}catch(e){if(ez(e))return{data:{user:null,session:null},error:e};throw e}})}signInWithPassword(e){return ti(this,void 0,void 0,function*(){try{let t;if(yield this._removeSession(),"email"in e){let{email:n,password:r,options:i}=e;
1t=yield e6(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:n,password:r,gotrue_meta_security:{captcha_token:null==i?void 0:i.captchaToken}},xform:e3})}else if("phone"in e){let{phone:n,password:r,options:i}=e;t=yield e6(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:n,password:r,gotrue_meta_security:{captcha_token:null==i?void 0:i.captchaToken}},xform:e3})}else throw new eV("You must provide either an email or phone number and a password");let{data:n,error:r}=t;if(r||!n)return{data:{user:null,session:null},error:r};return n.session&&(yield this._saveSession(n.session),this._notifyAllSubscribers("SIGNED_IN",n.session)),{data:n,error:r}}catch(e){if(ez(e))return{data:{user:null,session:null},error:e};throw e}})}signInWithOAuth(e){var t,n,r,i;return ti(this,void 0,void 0,function*(){return yield this._removeSession(),yield this._handleProviderSignIn(e.provider,{redirectTo:null===(t=e.options)||void 0===t?void 0:t.redirectTo,scopes:null===(n=e.options)||void 0===n?void 0:n.scopes,queryParams:null===(r=e.options)||void 0===r?void 0:r.queryParams,skipBrowserRedirect:null===(i=e.options)||void 0===i?void 0:i.skipBrowserRedirect})})}exchangeCodeForSession(e){return ti(this,void 0,void 0,function*(){let t=yield eD(this.storage,`${this.storageKey}-code-verifier`),{data:n,error:r}=yield e6(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:t},xform:e3});return(yield eL(this.storage,`${this.storageKey}-code-verifier`),r||!n)?{data:{user:null,session:null},error:r}:(n.session&&(yield this._saveSession(n.session),this._notifyAllSubscribers("SIGNED_IN",n.session)),{data:n,error:r})})}signInWithIdToken(e){return ti(this,void 0,void 0,function*(){yield this._removeSession();try{let{options:t,provider:n,token:r,nonce:i}=e,o=yield e6(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:r,nonce:i,gotrue_meta_security:{captcha_token:null==t?void 0:t.captchaToken}},xform:e3}),{data:s,error:a}=o;if(a||!s)return{data:{user:null,session:null},error:a};return s.session&&(yield this._saveSession(s.session),this._notifyAllSubscribers("SIGNED_IN",s.session)),{data:s,error:a}}catch(e){if(ez(e))return{data:{user:null,session:null},error:e};throw e}})}signInWithOtp(e){var t,n,r,i,o;return ti(this,void 0,void 0,function*(){try{if(yield this._removeSession(),"email"in e){let{email:r,options:i}=e,o=null,s=null;if("pkce"===this.flowType){let e=eF();yield e$(this.storage,`${this.storageKey}-code-verifier`,e),o=yield eU(e),s=e===o?"plain":"s256"}let{error:a}=yield e6(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:r,data:null!==(t=null==i?void 0:i.data)&&void 0!==t?t:{},create_user:null===(n=null==i?void 0:i.shouldCreateUser)||void 0===n||n,gotrue_meta_security:{captcha_token:null==i?void 0:i.captchaToken},code_challenge:o,code_challenge_method:s},redirectTo:null==i?void 0:i.emailRedirectTo});return{data:{user:null,session:null},error:a}}if("phone"in e){let{phone:t,options:n}=e,{error:s}=yield e6(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:t,data:null!==(r=null==n?void 0:n.data)&&void 0!==r?r:{},create_user:null===(i=null==n?void 0:n.shouldCreateUser)||void 0===i||i,gotrue_meta_security:{captcha_token:null==n?void 0:n.captchaToken},channel:null!==(o=null==n?void 0:n.channel)&&void 0!==o?o:"sms"}});return{data:{user:null,session:null},error:s}}throw new eV("You must provide either an email or phone number.")}catch(e){if(ez(e))return{data:{user:null,session:null},error:e};throw e}})}verifyOtp(e){var t,n;return ti(this,void 0,void 0,function*(){try{yield this._removeSession();let{data:r,error:i}=yield e6(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:null===(t=e.options)||void 0===t?void 0:t.captchaToken}}),redirectTo:null===(n=e.options)||void 0===n?void 0:n.redirectTo,xform:e3});if(i)throw i;if(!r)throw Error("An error occurred on token verification.");let o=r.session,s=r.user;return(null==o?void 0:o.access_token)&&(yield this._saveSession(o),this._notifyAllSubscribers("SIGNED_IN",o)),{data:{user:s,session:o},error:null}}catch(e){if(ez(e))return{data:{user:null,session:null},error:e};throw e}})}signInWithSSO(e){var t,n,r;return ti(this,void 0,void 0,function*(){try{return yield this._removeSession(),yield e6(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:null!==(n=null===(t=e.options)||void 0===t?void 0:t.redirectTo)&&void 0!==n?n:void 0}),(null===(r=null==e?void 0:e.options)||void 0===r?void 0:r.captchaToken)?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0}),headers:this.headers,xform:e8})}catch(e){if(ez(e))return{data:null,error:e};throw e}})}getSession(){return ti(this,void 0,void 0,function*(){yield this.initializePromise;let e=null;if(this.persistSession){let t=yield eD(this.storage,this.storageKey);null!==t&&(this._isValidSession(t)?e=t:yield this._removeSession())}else e=this.inMemorySession;if(!e)return{data:{session:null},error:null};let t=!!e.expires_at&&e.expires_at<=Date.now()/1e3;if(!t)return{data:{session:e},error:null};let{session:n,error:r}=yield this._callRefreshToken(e.refresh_token);return r?{data:{session:null},error:r}:{data:{session:n},error:null}})}getUser(e){var t,n;return ti(this,void 0,void 0,function*(){try{if(!e){let{data:r,error:i}
1=yield this.getSession();if(i)throw i;e=null!==(n=null===(t=r.session)||void 0===t?void 0:t.access_token)&&void 0!==n?n:void 0}return yield e6(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:e5})}catch(e){if(ez(e))return{data:{user:null},error:e};throw e}})}updateUser(e,t={}){return ti(this,void 0,void 0,function*(){try{let{data:n,error:r}=yield this.getSession();if(r)throw r;if(!n.session)throw new eJ;let i=n.session,{data:o,error:s}=yield e6(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:null==t?void 0:t.emailRedirectTo,body:e,jwt:i.access_token,xform:e5});if(s)throw s;return i.user=o.user,yield this._saveSession(i),this._notifyAllSubscribers("USER_UPDATED",i),{data:{user:i.user},error:null}}catch(e){if(ez(e))return{data:{user:null},error:e};throw e}})}_decodeJWT(e){return eZ(e)}setSession(e){return ti(this,void 0,void 0,function*(){try{if(!e.access_token||!e.refresh_token)throw new eJ;let t=Date.now()/1e3,n=t,r=!0,i=null,o=eZ(e.access_token);if(o.exp&&(r=(n=o.exp)<=t),r){let{session:t,error:n}=yield this._callRefreshToken(e.refresh_token);if(n)return{data:{user:null,session:null},error:n};if(!t)return{data:{user:null,session:null},error:null};i=t}else{let{data:r,error:o}=yield this.getUser(e.access_token);if(o)throw o;i={access_token:e.access_token,refresh_token:e.refresh_token,user:r.user,token_type:"bearer",expires_in:n-t,expires_at:n},yield this._saveSession(i),this._notifyAllSubscribers("SIGNED_IN",i)}return{data:{user:i.user,session:i},error:null}}catch(e){if(ez(e))return{data:{session:null,user:null},error:e};throw e}})}refreshSession(e){var t;return ti(this,void 0,void 0,function*(){try{if(!e){let{data:n,error:r}=yield this.getSession();if(r)throw r;e=null!==(t=n.session)&&void 0!==t?t:void 0}if(!(null==e?void 0:e.refresh_token))throw new eJ;let{session:n,error:r}=yield this._callRefreshToken(e.refresh_token);if(r)return{data:{user:null,session:null},error:r};if(!n)return{data:{user:null,session:null},error:null};return{data:{user:n.user,session:n},error:null}}catch(e){if(ez(e))return{data:{user:null,session:null},error:e};throw e}})}_getSessionFromUrl(e){return ti(this,void 0,void 0,function*(){try{if(!eC())throw new eG("No browser detected.");if("implicit"!==this.flowType||this._isImplicitGrantFlow()){if("pkce"==this.flowType&&!e)throw new eX("Not a valid PKCE flow url.")}else throw new eG("Not a valid implicit grant flow url.");if(e){let e=eA("code");if(!e)throw new eX("No code detected.");let{data:t,error:n}=yield this.exchangeCodeForSession(e);if(n)throw n;if(!t.session)throw new eX("No session detected.");return{data:{session:t.session,redirectType:null},error:null}}let t=eA("error_description");if(t){let e=eA("error_code");if(!e)throw new eG("No error_code detected.");let n=eA("error");if(!n)throw new eG("No error detected.");throw new eG(t,{error:n,code:e})}let n=eA("provider_token"),r=eA("provider_refresh_token"),i=eA("access_token");if(!i)throw new eG("No access_token detected.");let o=eA("expires_in");if(!o)throw new eG("No expires_in detected.");let s=eA("refresh_token");if(!s)throw new eG("No refresh_token detected.");let a=eA("token_type");if(!a)throw new eG("No token_type detected.");let l=Math.round(Date.now()/1e3),u=l+parseInt(o),{data:c,error:d}=yield this.getUser(i);if(d)throw d;let f=c.user,h={provider_token:n,provider_refresh_token:r,access_token:i,expires_in:parseInt(o),expires_at:u,refresh_token:s,token_type:a,user:f},p=eA("type");return window.location.hash="",{data:{session:h,redirectType:p},error:null}}catch(e){if(ez(e))return{data:{session:null,redirectType:null},error:e};throw e}})}_isImplicitGrantFlow(){return eC()&&(Boolean(eA("access_token"))||Boolean(eA("error_description")))}_isPKCEFlow(){return ti(this,void 0,void 0,function*(){let e=yield eD(this.storage,`${this.storageKey}-code-verifier`);return eC()&&Boolean(eA("code"))&&Boolean(e)})}signOut(){var e;return ti(this,void 0,void 0,function*(){let{data:t,error:n}=yield this.getSession();if(n)return{error:n};let r=null===(e=t.session)||void 0===e?void 0:e.access_token;if(r){let{error:e}=yield this.admin.signOut(r);if(e&&!(ez(e)&&"AuthApiError"===e.name&&(404===e.status||401===e.status)))return{error:e}}return yield this._removeSession(),yield eL(this.storage,`${this.storageKey}-code-verifier`),this._notifyAllSubscribers("SIGNED_OUT",null),{error:null}})}onAuthStateChange(e){let t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}),n={id:t,callback:e,unsubscribe:()=>{this.stateChangeEmitters.delete(t)}};return this.stateChangeEmitters.set(t,n),this.emitInitialSession(t),{data:{subscription:n}}}emitInitialSession(e){var t,n;return ti(this,void 0,void 0,function*(){try{let{data:{session:n},error:r}
1=yield this.getSession();if(r)throw r;null===(t=this.stateChangeEmitters.get(e))||void 0===t||t.callback("INITIAL_SESSION",n)}catch(t){null===(n=this.stateChangeEmitters.get(e))||void 0===n||n.callback("INITIAL_SESSION",null),console.error(t)}})}resetPasswordForEmail(e,t={}){return ti(this,void 0,void 0,function*(){let n=null,r=null;if("pkce"===this.flowType){let e=eF();yield e$(this.storage,`${this.storageKey}-code-verifier`,e),n=yield eU(e),r=e===n?"plain":"s256"}try{return yield e6(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:n,code_challenge_method:r,gotrue_meta_security:{captcha_token:t.captchaToken}},headers:this.headers,redirectTo:t.redirectTo})}catch(e){if(ez(e))return{data:null,error:e};throw e}})}_refreshAccessToken(e){return ti(this,void 0,void 0,function*(){try{let t=Date.now();return yield function(e,t){let n=new Promise((n,r)=>{eP(this,void 0,void 0,function*(){for(let i=0;i<1/0;i++)try{let r=yield e(i);if(!t(i,null,r)){n(r);return}}catch(e){if(!t(i,e)){r(e);return}}})});return n}(t=>ti(this,void 0,void 0,function*(){var n;return yield(n=200*t,new Promise(e=>{setTimeout(()=>e(null),n)})),yield e6(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:e3})}),(e,n,r)=>r&&r.error&&r.error instanceof eY&&Date.now()+(e+1)*200-t<1e4)}catch(e){if(ez(e))return{data:{session:null,user:null},error:e};throw e}})}_isValidSession(e){return"object"==typeof e&&null!==e&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}_handleProviderSignIn(e,t){return ti(this,void 0,void 0,function*(){let n=yield this._getUrlForProvider(e,{redirectTo:t.redirectTo,scopes:t.scopes,queryParams:t.queryParams});return eC()&&!t.skipBrowserRedirect&&window.location.assign(n),{data:{provider:e,url:n},error:null}})}_recoverAndRefresh(){var e;return ti(this,void 0,void 0,function*(){try{let t=yield eD(this.storage,this.storageKey);if(!this._isValidSession(t)){null!==t&&(yield this._removeSession());return}let n=Math.round(Date.now()/1e3);if((null!==(e=t.expires_at)&&void 0!==e?e:1/0)<n+10){if(this.autoRefreshToken&&t.refresh_token){let{error:e}=yield this._callRefreshToken(t.refresh_token);e&&(console.log(e.message),yield this._removeSession())}else yield this._removeSession()}else this.persistSession&&(yield this._saveSession(t)),this._notifyAllSubscribers("SIGNED_IN",t)}catch(e){console.error(e);return}})}_callRefreshToken(e){var t,n;return ti(this,void 0,void 0,function*(){if(this.refreshingDeferred)return this.refreshingDeferred.promise;try{if(this.refreshingDeferred=new eM,!e)throw new eJ;let{data:t,error:n}=yield this._refreshAccessToken(e);if(n)throw n;if(!t.session)throw new eJ;yield this._saveSession(t.session),this._notifyAllSubscribers("TOKEN_REFRESHED",t.session);let r={session:t.session,error:null};return this.refreshingDeferred.resolve(r),r}catch(e){if(ez(e)){let n={session:null,error:e};return null===(t=this.refreshingDeferred)||void 0===t||t.resolve(n),n}throw null===(n=this.refreshingDeferred)||void 0===n||n.reject(e),e}finally{this.refreshingDeferred=null}})}_notifyAllSubscribers(e,t,n=!0){this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:e,session:t}),this.stateChangeEmitters.forEach(n=>n.callback(e,t))}_saveSession(e){return ti(this,void 0,void 0,function*(){this.persistSession||(this.inMemorySession=e),this.persistSession&&e.expires_at&&(yield this._persistSession(e))})}_persistSession(e){return e$(this.storage,this.storageKey,e)}_removeSession(){return ti(this,void 0,void 0,function*(){this.persistSession?yield eL(this.storage,this.storageKey):this.inMemorySession=null})}_removeVisibilityChangedCallback(){let e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&eC()&&(null==window?void 0:window.removeEventListener)&&window.removeEventListener("visibilitychange",e)}catch(e){console.error("removing visibilitychange callback failed",e)}}_startAutoRefresh(){return ti(this,void 0,void 0,function*(){yield this._stopAutoRefresh();let e=setInterval(()=>this._autoRefreshTokenTick(),1e4);this.autoRefreshTicker=e,e&&"object"==typeof e&&"function"==typeof e.unref?e.unref():"undefined"!=typeof Deno&&"function"==typeof Deno.unrefTimer&&Deno.unrefTimer(e),yield this._autoRefreshTokenTick()})}_stopAutoRefresh(){return ti(this,void 0,void 0,function*(){let e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e)})}startAutoRefresh(){return ti(this,void 0,void 0,function*(){this._removeVisibilityChangedCallback(),yield this._startAutoRefresh()})}stopAutoRefresh(){return ti(this,void 0,void 0,function*(){this._removeVisibilityChangedCallback(),yield this._stopAutoRefresh()})}_autoRefreshTokenTick(){return ti(this,void 0,void 0,function*(){let e=Date.now();try{let{data:{session:t}}
1=yield this.getSession();if(!t||!t.refresh_token||!t.expires_at)return;let n=Math.floor((1e3*t.expires_at-e)/1e4);n<3&&(yield this._callRefreshToken(t.refresh_token))}catch(e){console.error("Auto refresh tick failed with error. This is likely a transient error.",e)}})}_handleVisibilityChange(){return ti(this,void 0,void 0,function*(){if(!eC()||!(null==window?void 0:window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=()=>ti(this,void 0,void 0,function*(){return yield this._onVisibilityChanged(!1)}),null==window||window.addEventListener("visibilitychange",this.visibilityChangedCallback),yield this._onVisibilityChanged(!0)}catch(e){console.error("_handleVisibilityChange",e)}})}_onVisibilityChanged(e){return ti(this,void 0,void 0,function*(){"visible"===document.visibilityState?(e||(yield this.initializePromise,yield this._recoverAndRefresh()),this.autoRefreshToken&&this._startAutoRefresh()):"hidden"===document.visibilityState&&this.autoRefreshToken&&this._stopAutoRefresh()})}_getUrlForProvider(e,t){return ti(this,void 0,void 0,function*(){let n=[`provider=${encodeURIComponent(e)}`];if((null==t?void 0:t.redirectTo)&&n.push(`redirect_to=${encodeURIComponent(t.redirectTo)}`),(null==t?void 0:t.scopes)&&n.push(`scopes=${encodeURIComponent(t.scopes)}`),"pkce"===this.flowType){let e=eF();yield e$(this.storage,`${this.storageKey}-code-verifier`,e);let t=yield eU(e),r=new URLSearchParams({code_challenge:`${encodeURIComponent(t)}`,code_challenge_method:`${encodeURIComponent(e===t?"plain":"s256")}`});n.push(r.toString())}if(null==t?void 0:t.queryParams){let e=new URLSearchParams(t.queryParams);n.push(e.toString())}return`${this.url}/authorize?${n.join("&")}`})}_unenroll(e){var t;return ti(this,void 0,void 0,function*(){try{let{data:n,error:r}=yield this.getSession();if(r)return{data:null,error:r};return yield e6(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:null===(t=null==n?void 0:n.session)||void 0===t?void 0:t.access_token})}catch(e){if(ez(e))return{data:null,error:e};throw e}})}_enroll(e){var t,n;return ti(this,void 0,void 0,function*(){try{let{data:r,error:i}=yield this.getSession();if(i)return{data:null,error:i};let{data:o,error:s}=yield e6(this.fetch,"POST",`${this.url}/factors`,{body:{friendly_name:e.friendlyName,factor_type:e.factorType,issuer:e.issuer},headers:this.headers,jwt:null===(t=null==r?void 0:r.session)||void 0===t?void 0:t.access_token});if(s)return{data:null,error:s};return(null===(n=null==o?void 0:o.totp)||void 0===n?void 0:n.qr_code)&&(o.totp.qr_code=`data:image/svg+xml;utf-8,${o.totp.qr_code}`),{data:o,error:null}}catch(e){if(ez(e))return{data:null,error:e};throw e}})}_verify(e){var t;return ti(this,void 0,void 0,function*(){try{let{data:n,error:r}=yield this.getSession();if(r)return{data:null,error:r};let{data:i,error:o}=yield e6(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:{code:e.code,challenge_id:e.challengeId},headers:this.headers,jwt:null===(t=null==n?void 0:n.session)||void 0===t?void 0:t.access_token});if(o)return{data:null,error:o};return yield this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+i.expires_in},i)),this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",i),{data:i,error:o}}catch(e){if(ez(e))return{data:null,error:e};throw e}})}_challenge(e){var t;return ti(this,void 0,void 0,function*(){try{let{data:n,error:r}=yield this.getSession();if(r)return{data:null,error:r};return yield e6(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{headers:this.headers,jwt:null===(t=null==n?void 0:n.session)||void 0===t?void 0:t.access_token})}catch(e){if(ez(e))return{data:null,error:e};throw e}})}_challengeAndVerify(e){return ti(this,void 0,void 0,function*(){let{data:t,error:n}=yield this._challenge({factorId:e.factorId});return n?{data:null,error:n}:yield this._verify({factorId:e.factorId,challengeId:t.id,code:e.code})})}_listFactors(){return ti(this,void 0,void 0,function*(){let{data:{user:e},error:t}=yield this.getUser();if(t)return{data:null,error:t};let n=(null==e?void 0:e.factors)||[],r=n.filter(e=>"totp"===e.factor_type&&"verified"===e.status);return{data:{all:n,totp:r},error:null}})}_getAuthenticatorAssuranceLevel(){var e,t;return ti(this,void 0,void 0,function*(){let{data:{session:n},error:r}
1=yield this.getSession();if(r)return{data:null,error:r};if(!n)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};let i=this._decodeJWT(n.access_token),o=null;i.aal&&(o=i.aal);let s=o,a=null!==(t=null===(e=n.user.factors)||void 0===e?void 0:e.filter(e=>"verified"===e.status))&&void 0!==t?t:[];a.length>0&&(s="aal2");let l=i.amr||[];return{data:{currentLevel:o,nextLevel:s,currentAuthenticationMethods:l},error:null}})}}class ta extends ts{constructor(e){super(e)}}let tl={headers:{"X-Client-Info":"supabase-js/2.21.0"}},tu={schema:"public"},tc={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},td={};class tf{constructor(e,t,n){var r,i,o,s,a,l,u,c;if(this.supabaseUrl=e,this.supabaseKey=t,!e)throw Error("supabaseUrl is required.");if(!t)throw Error("supabaseKey is required.");let d=e.replace(/\/$/,"");this.realtimeUrl=`${d}/realtime/v1`.replace(/^http/i,"ws"),this.authUrl=`${d}/auth/v1`,this.storageUrl=`${d}/storage/v1`;let f=d.match(/(supabase\.co)|(supabase\.in)/);if(f){let e=d.split(".");this.functionsUrl=`${e[0]}.functions.${e[1]}.${e[2]}`}else this.functionsUrl=`${d}/functions/v1`;let h=`sb-${new URL(this.authUrl).hostname.split(".")[0]}-auth-token`,p={db:tu,realtime:td,auth:Object.assign(Object.assign({},tc),{storageKey:h}),global:tl},v=function(e,t){let{db:n,auth:r,realtime:i,global:o}=e,{db:s,auth:a,realtime:l,global:u}=t;return{db:Object.assign(Object.assign({},s),n),auth:Object.assign(Object.assign({},a),r),realtime:Object.assign(Object.assign({},l),i),global:Object.assign(Object.assign({},u),o)}}(null!=n?n:{},p);this.storageKey=null!==(i=null===(r=v.auth)||void 0===r?void 0:r.storageKey)&&void 0!==i?i:"",this.headers=null!==(s=null===(o=v.global)||void 0===o?void 0:o.headers)&&void 0!==s?s:{},this.auth=this._initSupabaseAuthClient(null!==(a=v.auth)&&void 0!==a?a:{},this.headers,null===(l=v.global)||void 0===l?void 0:l.fetch),this.fetch=ek(t,this._getAccessToken.bind(this),null===(u=v.global)||void 0===u?void 0:u.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers},v.realtime)),this.rest=new $(`${d}/rest/v1`,{headers:this.headers,schema:null===(c=v.db)||void 0===c?void 0:c.schema,fetch:this.fetch}),this._listenForAuthEvents()}get functions(){return new l(this.functionsUrl,{headers:this.headers,customFetch:this.fetch})}get storage(){return new ex(this.storageUrl,this.headers,this.fetch)}from(e){return this.rest.from(e)}rpc(e,t={},n){return this.rest.rpc(e,t,n)}channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var e,t,n,r,i,o;return n=this,r=void 0,i=void 0,o=function*(){let{data:n}=yield this.auth.getSession();return null!==(t=null===(e=n.session)||void 0===e?void 0:e.access_token)&&void 0!==t?t:null},new(i||(i=Promise))(function(e,t){function s(e){try{l(o.next(e))}catch(e){t(e)}}function a(e){try{l(o.throw(e))}catch(e){t(e)}}function l(t){var n;t.done?e(t.value):((n=t.value)instanceof i?n:new i(function(e){e(n)})).then(s,a)}l((o=o.apply(n,r||[])).next())})}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,storageKey:i,flowType:o},s,a){let l={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new ta({url:this.authUrl,headers:Object.assign(Object.assign({},l),s),storageKey:i,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,flowType:o,fetch:a})}_initRealtimeClient(e){return new et(this.realtimeUrl,Object.assign(Object.assign({},e),{params:Object.assign({apikey:this.supabaseKey},null==e?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,null==t?void 0:t.access_token,"CLIENT")})}_handleTokenChanged(e,t,n){("TOKEN_REFRESHED"===e||"SIGNED_IN"===e)&&this.changedAccessToken!==t?(this.realtime.setAuth(null!=t?t:null),this.changedAccessToken=t):"SIGNED_OUT"===e&&(this.realtime.setAuth(this.supabaseKey),"STORAGE"==n&&this.auth.signOut(),this.changedAccessToken=void 0)}}let th=(e,t,n)=>new tf(e,t,n)},4184:function(e,t){var n;/*! 2 Copyright (c) 2018 Jed Watson. 3 Licensed under the MIT License (MIT), see 4 http://jedwatson.github.io/classnames 5*/!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var s=i.apply(null,n);s&&e.push(s)}}else if("object"===o){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var a in n)r.call(n,a)&&n[a]&&e.push(a)}}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0!==(n=(function(){return i}).apply(t,[]))&&(e.exports=n)}()},4098:function(e,t){var n,r="undefined"!=typeof self?self:this,i=function(){function e(){this.fetch=!1,this.DOMException=r.DOMException}return e.prototype=r,new e}();n=i,function(e){var t={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};if(t.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array
5]"],i=ArrayBuffer.isView||function(e){return e&&r.indexOf(Object.prototype.toString.call(e))>-1};function o(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw TypeError("Invalid character in header field name");return e.toLowerCase()}function s(e){return"string"!=typeof e&&(e=String(e)),e}function a(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(n[Symbol.iterator]=function(){return n}),n}function l(e){this.map={},e instanceof l?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function u(e){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}function c(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function d(e){var t=new FileReader,n=c(t);return t.readAsArrayBuffer(e),n}function f(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e){if("string"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var n;t.arrayBuffer&&t.blob&&(n=e)&&DataView.prototype.isPrototypeOf(n)?(this._bodyArrayBuffer=f(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):t.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||i(e))?this._bodyArrayBuffer=f(e):this._bodyText=e=Object.prototype.toString.call(e)}}else this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var e=u(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")},this.arrayBuffer=function(){return this._bodyArrayBuffer?u(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var e,t,n,r=u(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=c(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},t.formData&&(this.formData=function(){return this.text().then(m)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(e,t){e=o(e),t=s(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},l.prototype.delete=function(e){delete this.map[o(e)]},l.prototype.get=function(e){return e=o(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(o(e))},l.prototype.set=function(e,t){this.map[o(e)]=s(t)},l.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},l.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),a(e)},l.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),a(e)},l.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),a(e)},t.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function v(e,t){var n,r,i=(t=t||{}).body;if(e instanceof v){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new l(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),p.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function m(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}}),t}function y(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},h.call(v.prototype),h.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},y.error=function(){var e=new y(null,{status:0,statusText:""});return e.type="error",e};var g=[301,302,303,307,308];y.redirect=function(e,t){if(-1===g.indexOf(t))throw RangeError("Invalid status code");return new y(null,{status:t,headers:{location:e}})},e.DOMException=n.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function b(n,r){return new Promise(function(i,o){var s=new v(n,r);if(s.signal&&s.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function u(){a.abort()}a.onload=function(){var e,t,n={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new l,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEac
5h(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}}),t)};n.url="responseURL"in a?a.responseURL:n.headers.get("X-Request-URL");var r="response"in a?a.response:a.responseText;i(new y(r,n))},a.onerror=function(){o(TypeError("Network request failed"))},a.ontimeout=function(){o(TypeError("Network request failed"))},a.onabort=function(){o(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&t.blob&&(a.responseType="blob"),s.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),s.signal&&(s.signal.addEventListener("abort",u),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",u)}),a.send(void 0===s._bodyInit?null:s._bodyInit)})}b.polyfill=!0,n.fetch||(n.fetch=b,n.Headers=l,n.Request=v,n.Response=y),e.Headers=l,e.Request=v,e.Response=y,e.fetch=b,Object.defineProperty(e,"__esModule",{value:!0})}({}),i.fetch.ponyfill=!0,delete i.fetch.polyfill,(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},9351:function(e,t,n){"use strict";var r=n(3004),i=!1,o=!1;try{var s={get passive(){return i=!0},get once(){return o=i=!0}};r.Z&&(window.addEventListener("test",s,s),window.removeEventListener("test",s,!0))}catch(e){}t.ZP=function(e,t,n,r){if(r&&"boolean"!=typeof r&&!o){var s=r.once,a=r.capture,l=n;!o&&s&&(l=n.__once||function e(r){this.removeEventListener(t,e,a),n.call(this,r)},n.__once=l),e.addEventListener(t,l,i?r:a)}e.addEventListener(t,n,r)}},3004:function(e,t){"use strict";t.Z=!!("undefined"!=typeof window&&window.document&&window.document.createElement)},424:function(e,t,n){"use strict";function r(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}n.d(t,{Z:function(){return r}})},1505:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(7216),i=/([A-Z])/g,o=/^ms-/;function s(e){return e.replace(i,"-$1").toLowerCase().replace(o,"-ms-")}var a=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i,l=function(e,t){var n,i="",o="";if("string"==typeof t)return e.style.getPropertyValue(s(t))||((n=(0,r.Z)(e))&&n.defaultView||window).getComputedStyle(e,void 0).getPropertyValue(s(t));Object.keys(t).forEach(function(n){var r=t[n];r||0===r?n&&a.test(n)?o+=n+"("+r+") ":i+=s(n)+": "+r+";":e.style.removeProperty(s(n))}),o&&(i+="transform: "+o+";"),e.style.cssText+=";"+i}},1132:function(e,t,n){"use strict";function r(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}n.d(t,{Z:function(){return r}})},2950:function(e,t,n){"use strict";var r=n(9351),i=n(99);t.Z=function(e,t,n,o){return(0,r.ZP)(e,t,n,o),function(){(0,i.Z)(e,t,n,o)}}},7216:function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:function(){return r}})},930:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=Function.prototype.bind.call(Function.prototype.call,[].slice);function i(e,t){return r(e.querySelectorAll(t))}},99:function(e,t){"use strict";t.Z=function(e,t,n,r){var i=r&&"boolean"!=typeof r?r.capture:r;e.removeEventListener(t,n,i),n.__once&&e.removeEventListener(t,n.__once,i)}},4305:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(1505),i=n(2950);function o(e,t,n,o){null==n&&(a=-1===(s=(0,r.Z)(e,"transitionDuration")||"").indexOf("ms")?1e3:1,n=parseFloat(s)*a||0);var s,a,l,u,c,d,f,h=(l=n,void 0===(u=o)&&(u=5),c=!1,d=setTimeout(function(){c||function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent(t,n,r),e.dispatchEvent(i)}}(e,"transitionend",!0)},l+u),f=(0,i.Z)(e,"transitionend",function(){c=!0},{once:!0}),function(){clearTimeout(d),f()}),p=(0,i.Z)(e,"transitionend",t);return function(){h(),p()}}},284:function(e){var t=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw Error("Unable to resolve global `this`")};e.exports=function(){if(this)return this;if("object"==typeof globalThis&&globalThis)return globalThis;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return t()}try{if(!__global__)return t();return __global__}finally{delete Object.prototype.__global__}}()},1143:function(e){"use strict";e.exports=function(e,t,n,r,i,o,s,a){if(!e){var l;if(void 0===t)l=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,s,a],c=0;(l=Error(t.replace(/%s/g,function(){return u[c++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},3096:function(e,t,n){var r="Expected a function",i=0/0,o=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt,c="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,d="object"==typeof self&&self&&self.Object===Object&&self,f=c||d||Function("return this")(),h=Object.prototype.toString,p=Math.max,v=Math.min,m=function(){return f.Date.now()};function y(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==h.call(t))return i;if(y(e)){var t,n="function"==typeof e.valueOf?e.valueOf():e;e=y(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var r=a.test(e);return r||l.test(e)?u(e.slice(2),r?2:8):s.test(e)?i:+e}e.exports=function(e,t,n){var i=!0,o=!0;if("function"!=typeof e)throw TypeError(r);return y(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),function(e,t,n){var i,o,s,a,l,u,c=0,d=!1,f=!1,h=!0;if("function"!=typeof e)throw TypeError(r);function b(t){var n=i,r=o;return i=o=void 0,c=t,a=e.apply(r,n)}function w(e){var n=e-u,r=e-c;return void 0===u||n>=t||n<0||f&&r>=s}function _(){var e,n,r,i=m();if(w(i))return E(i);l=setTimeout(_,(e=i-u,n=i-c,r=t-e,f?v(r,s-n):r))}function E(e){return(l=void 0,h&&i)?b(e):(i=o=void 0,a)}function O(){var e,n=m(),r=w(n);if(i=arguments,o=this,u=n,r){if(void 0===l)return c=e=u,l=setTimeout(_,t),d?b(e):a;if(f)return l=setTimeout(_,t),b(u)}return void 0===l&&(l=setTimeout(_,t)),a}return t=g(t)||0,y(n)&&(d=!!n.leading,s=(f="maxWait"in n)?p(g(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),O.cancel=function(){void 0!==l&&clearTimeout(l),c=0,i=u=o=l=void 0},O.flush=function(){return void 0===l?a:E(m())},O}(e,t,{leading:i,maxWait:t,trailing:o})}},9008:function(e,t,n){e.exports=n(5443)},5638:function(e,t){"use strict";
5Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,n,r,i,o){if(null==t[n])return Error("The "+i+" `"+(o||n)+"` is required to make `"+(r||"<<anonymous>>")+"` accessible for users of assistive technologies such as screen readers.");for(var s=arguments.length,a=Array(s>5?s-5:0),l=5;l<s;l++)a[l-5]=arguments[l];return e.apply(void 0,[t,n,r,i,o].concat(a))}},e.exports=t.default},2703:function(e,t,n){"use strict";var r=n(414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,s){if(s!==r){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i}
5;return n.PropTypes=n,n}},5697:function(e,t,n){e.exports=n(2703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6575:function(e,t,n){"use strict";n.d(t,{Z:function(){return er}});var r,i=n(7462),o=n(3366),s=n(4184),a=n.n(s),l=n(7294),u=n(930),c=n(9351),d=n(5697),f=n.n(d),h=n(7150),p=n(8833),v=n(1176),m=l.createContext(null),y=n(2092),g=n(8534),b=n(6453),w=n(2343),_=function(){};function E(e){void 0===e&&(e={});var t=(0,l.useContext)(m),n=(0,y.Z)(),r=n[0],o=n[1],s=(0,l.useRef)(!1),a=e,u=a.flip,c=a.offset,d=a.rootCloseEvent,f=a.fixed,h=a.popperConfig,p=a.usePopper,v=void 0===p?!!t:p,E=(null==t?void 0:t.show)==null?!!e.show:t.show,O=(null==t?void 0:t.alignEnd)==null?e.alignEnd:t.alignEnd;E&&!s.current&&(s.current=!0);var x=t||{},S=x.drop,T=x.setMenu,k=x.menuElement,P=x.toggleElement,C=O?"bottom-end":"bottom-start";"up"===S?C=O?"top-end":"top-start":"right"===S?C=O?"right-end":"right-start":"left"===S&&(C=O?"left-end":"left-start");var j=(0,g.Z)(P,k,(0,w.ZP)({placement:C,enabled:!!(v&&E),enableEvents:E,offset:c,flip:u,fixed:void 0!==f&&f,arrowElement:r,popperConfig:void 0===h?{}:h})),R=(0,i.Z)({ref:T||_,"aria-labelledby":null==P?void 0:P.id},j.attributes.popper,{style:j.styles.popper}),A={show:E,alignEnd:O,hasShown:s.current,toggle:null==t?void 0:t.toggle,popper:v?j:null,arrowProps:v?(0,i.Z)({ref:o},j.attributes.arrow,{style:j.styles.arrow}):{}};return(0,b.Z)(k,function(e){null==t||t.toggle(!1,e)},{clickTrigger:d,disabled:!E}),[R,A]}var O={children:f().func.isRequired,show:f().bool,alignEnd:f().bool,flip:f().bool,usePopper:f().oneOf([!0,!1]),popperConfig:f().object,rootCloseEvent:f().string};function x(e){var t=e.children,n=E((0,o.Z)(e,["children"])),r=n[0],i=n[1];return l.createElement(l.Fragment,null,i.hasShown?t(r,i):null)}x.displayName="ReactOverlaysDropdownMenu",x.propTypes=O,x.defaultProps={usePopper:!0};var S=function(){};function T(){var e=(0,l.useContext)(m)||{},t=e.show,n=void 0!==t&&t,r=e.toggle,i=void 0===r?S:r,o=e.setToggle,s=(0,l.useCallback)(function(e){i(!n,e)},[n,i]);return[{ref:o||S,onClick:s,"aria-haspopup":!0,"aria-expanded":!!n},{show:n,toggle:i}]}var k={children:f().func.isRequired};function P(e){var t=e.children,n=T(),r=n[0],i=n[1];return l.createElement(l.Fragment,null,t(r,i))}P.displayName="ReactOverlaysDropdownToggle",P.propTypes=k;var C={children:f().node,drop:f().oneOf(["up","left","right","down"]),focusFirstItemOnShow:f().oneOf([!1,!0,"keyboard"]),itemSelector:f().string,alignEnd:f().bool,show:f().bool,defaultShow:f().bool,onToggle:f().func};function j(){var e=(0,l.useReducer)(function(e){return!e},!1)[1],t=(0,l.useRef)(null),n=(0,l.useCallback)(function(n){t.current=n,e()},[e]);return[t,n]}function R(e){var t,n,i,o,s,a=e.drop,d=e.alignEnd,f=e.defaultShow,y=e.show,g=e.onToggle,b=e.itemSelector,w=void 0===b?"* > *":b,_=e.focusFirstItemOnShow,E=e.children,O=(0,h.$c)(y,f,g),x=O[0],S=O[1],T=j(),k=T[0],P=T[1],C=k.current,R=j(),A=R[0],N=R[1],I=A.current,$=(0,p.Z)(x),D=(0,l.useRef)(null),L=(0,l.useRef)(!1),M=(0,l.useCallback)(function(e,t){S(e,t)},[S]),Z=(0,l.useMemo)(function(){return{toggle:M,drop:a,show:x,alignEnd:d,menuElement:C,toggleElement:I,setMenu:P,setToggle:N}},[M,a,x,d,C,I,P,N]);C&&$&&!x&&(L.current=C.contains(document.activeElement));var B=(0,v.Z)(function(){I&&I.focus&&I.focus()}),F=(0,v.Z)(function(){var e=D.current,t=_;if(null==t&&(t=!!(k.current&&function(e,t){if(!r){var n=document.body,i=n.matches||n.matchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector;r=function(e,t){return i.call(e,t)}}return r(e,t)}(k.current,"[role=menu]"))&&"keyboard"),!1!==t&&("keyboard"!==t||/^key.+$/.test(e))){var n=(0,u.Z)(k.current,w)[0];n&&n.focus&&n.focus()}});(0,l.useEffect)(function(){x?F():L.current&&(L.current=!1,B())},[x,L,B,F]),(0,l.useEffect)(function(){D.current=null});var U=function(e,t){if(!k.current)return null;var n=(0,u.Z)(k.current,w),r=n.indexOf(e)+t;return r=Math.max(0,Math.min(r,n.length)),n[r]};return void 0===t&&(t=!1),n=(0,l.useCallback)(function(){return document},[]),i="keydown",void 0===(o=t)&&(o=!1),s=(0,v.Z)(function(e){var t,n,r=e.key,i=e.target,o=null==(t=k.current)?void 0:t.contains(i),s=null==(n=A.current)?void 0:n.contains(i);if((!/input|textarea/i.test(i.tagName)||" "!==r&&("Escape"===r||!o))&&(o||s)&&(k.current||"Tab"!==r))switch(D.current=e.type,r){case"ArrowUp":var a=U(i,-1);a&&a.focus&&a.focus(),e.preventDefault();return;case"ArrowDown":if(e.preventDefault(),x){var l=U(i,1);l&&l.focus&&l.focus()}else S(!0,e);return;case"Tab":(0,c.ZP)(document,"keyup",function(t){var n;
5("Tab"!==t.key||t.target)&&null!=(n=k.current)&&n.contains(t.target)||S(!1,e)},{once:!0});break;case"Escape":e.preventDefault(),e.stopPropagation(),S(!1,e)}}),(0,l.useEffect)(function(){var e="function"==typeof n?n():n;return e.addEventListener(i,s,o),function(){return e.removeEventListener(i,s,o)}},[n]),l.createElement(m.Provider,{value:Z},E)}R.displayName="ReactOverlaysDropdown",R.propTypes=C,R.Menu=x,R.Toggle=P;var A=n(5017),N=n(6792),I=l.createContext(null);I.displayName="NavContext";var $=n(6833),D=["as","disabled","onKeyDown"];function L(e){return!e||"#"===e.trim()}var M=l.forwardRef(function(e,t){var n=e.as,r=e.disabled,s=e.onKeyDown,a=(0,o.Z)(e,D),u=function(e){var t=a.href,n=a.onClick;if((r||L(t))&&e.preventDefault(),r){e.stopPropagation();return}n&&n(e)};return L(a.href)&&(a.role=a.role||"button",a.href=a.href||"#"),r&&(a.tabIndex=-1,a["aria-disabled"]=!0),l.createElement(void 0===n?"a":n,(0,i.Z)({ref:t},a,{onClick:u,onKeyDown:(0,$.Z)(function(e){" "===e.key&&(e.preventDefault(),u(e))},s)}))});M.displayName="SafeAnchor";var Z=["bsPrefix","className","children","eventKey","disabled","href","onClick","onSelect","active","as"],B=l.forwardRef(function(e,t){var n=e.bsPrefix,r=e.className,s=e.children,u=e.eventKey,c=e.disabled,d=e.href,f=e.onClick,h=e.onSelect,p=e.active,m=e.as,y=(0,o.Z)(e,Z),g=(0,N.vE)(n,"dropdown-item"),b=(0,l.useContext)(A.Z),w=((0,l.useContext)(I)||{}).activeKey,_=(0,A.h)(u,d),E=null==p&&null!=_?(0,A.h)(w)===_:p,O=(0,v.Z)(function(e){!c&&(f&&f(e),b&&b(_,e),h&&h(_,e))});return l.createElement(m,(0,i.Z)({},y,{ref:t,href:d,disabled:c,className:a()(r,g,E&&"active",c&&"disabled"),onClick:O}),s)});B.displayName="DropdownItem",B.defaultProps={as:M,disabled:!1};var F=n(5654);n(2473);var U=l.createContext(null);U.displayName="NavbarContext",n(1143);var H=n(3509),z=["bsPrefix","className","align","alignRight","rootCloseEvent","flip","show","renderOnMount","as","popperConfig"],W=f().oneOf(["left","right"]);f().oneOfType([W,f().shape({sm:W}),f().shape({md:W}),f().shape({lg:W}),f().shape({xl:W})]);var K=l.forwardRef(function(e,t){var n=e.bsPrefix,r=e.className,s=e.align,u=e.alignRight,c=e.rootCloseEvent,d=e.flip,f=e.show,h=e.renderOnMount,p=e.as,v=void 0===p?"div":p,m=e.popperConfig,y=(0,o.Z)(e,z),g=(0,l.useContext)(U),b=(0,N.vE)(n,"dropdown-menu"),w=(0,H.Z)(),_=w[0],O=w[1],x=[];if(s){if("object"==typeof s){var S=Object.keys(s);if(S.length){var T=S[0],k=s[T];u="left"===k,x.push(b+"-"+T+"-"+k)}}else"right"===s&&(u=!0)}var P=E({flip:d,rootCloseEvent:c,show:f,alignEnd:u,usePopper:!g&&0===x.length,popperConfig:(0,i.Z)({},m,{modifiers:O.concat((null==m?void 0:m.modifiers)||[])})}),C=P[0],j=P[1],R=j.hasShown,A=j.popper,I=j.show,$=j.alignEnd,D=j.toggle;if(C.ref=(0,F.Z)(_,(0,F.Z)(t,C.ref)),!R&&!h)return null;"string"!=typeof v&&(C.show=I,C.close=function(){return null==D?void 0:D(!1)},C.alignRight=$);var L=y.style;return null!=A&&A.placement&&(L=(0,i.Z)({},y.style,C.style),y["x-placement"]=A.placement),l.createElement(v,(0,i.Z)({},y,C,{style:L,className:a().apply(void 0,[r,b,I&&"show",$&&b+"-right"].concat(x))}))});K.displayName="DropdownMenu",K.defaultProps={align:"left",alignRight:!1,flip:!0},n(5638);var q=["bsPrefix","variant","size","active","className","block","type","as"],J=l.forwardRef(function(e,t){var n=e.bsPrefix,r=e.variant,s=e.size,u=e.active,c=e.className,d=e.block,f=e.type,h=e.as,p=(0,o.Z)(e,q),v=(0,N.vE)(n,"btn"),m=a()(c,v,u&&"active",r&&v+"-"+r,d&&v+"-block",s&&v+"-"+s);return p.href?l.createElement(M,(0,i.Z)({},p,{as:h,ref:t,className:a()(m,p.disabled&&"disabled")})):(t&&(p.ref=t),f?p.type=f:h||(p.type="button"),l.createElement(h||"button",(0,i.Z)({},p,{className:m})))});J.displayName="Button",J.defaultProps={variant:"primary",active:!1,disabled:!1};var V=["bsPrefix","split","className","childBsPrefix","as"],G=l.forwardRef(function(e,t){var n=e.bsPrefix,r=e.split,s=e.className,u=e.childBsPrefix,c=e.as,d=void 0===c?J:c,f=(0,o.Z)(e,V),h=(0,N.vE)(n,"dropdown-toggle");void 0!==u&&(f.bsPrefix=u);var p=T()[0];return p.ref=(0,F.Z)(p.ref,t),l.createElement(d,(0,i.Z)({className:a()(s,h,r&&h+"-split")},p,f))});G.displayName="DropdownToggle";var X=n(6611),Y=["bsPrefix","drop","show","className","alignRight","onSelect","onToggle","focusFirstItemOnShow","as","navbar"],Q=(0,X.Z)("dropdown-header",{defaultProps:{role:"heading"}}),ee=(0,X.Z)("dropdown-divider",{defaultProps:{role:"separator"}}),et=(0,X.Z)("dropdown-item-text",{Component:"span"}),en=l.forwardRef(function(e,t){var n=(0,h.Ch)(e,{show:"onToggle"}),r=n.bsPrefix,s=n.drop,u=n.show,c=n.className,d=n.alignRight,f=n.onSelect,p=n.onToggle,m=n.focusFirstItemOnShow,y=n.as,g=(n.navbar,(0,o.Z)(n,Y)),b=(0,l.useContext)(A.Z),w=(0,N.vE)(r,"dropdown"),_=(0,v.Z)(function(e,t,n){void 0===n&&(n=t.type),t.currentTarget===document&&("keydown"!==n||"Escape"===t.key)&&(n="rootClose"),p&&p(e,t,{source:n})}),E=(0,v.Z)(function(e,t){b&&b(e,t),f&&f(e,t),_(!1,t,"select")});return l.createElement(A.Z.Provider,{value:E},l.createElement(R,{drop:s,show:u,alignEnd:d,onToggle:_,focusFirstItemOnShow:m,itemSelector:"."+w+"-item:not(.disabled):not(:disabled)"},l.createElement(void 0===y?"div":y,(0,i.Z)({},g,{ref:t,className:a()(c,u&&"show",(!s||"down"===s)&&w,"up"===s&&"dropup","right"===s&&"dropright","left"===s&&"dropleft")}))))});en.displayName="Dropdown",en.defaultProps={navbar:!1},en.Divider=ee,en.Header=Q,en.Item=B,en.ItemText=et,en.Menu=K,en.Toggle=G;var er=en},1068:function(e,t,n){"use strict";var r,i=n(7462),o=n(3366),s=n(4184),a=n.n(s),l=n(7294),u=n(3170),c=n(3825),d=n(4509),f=["className","children"],h=((r={})[u.d0]="show",r[u.cn]="show",r),p=l.forwardRef(function(e,t){var n=e.className,r=e.children,s=(0,o.Z)(e,f),p=(0,l.useCallback)(function(e){(0,d.Z)(e),s.onEnter&&s.onEnter(e)},[s]);return l.createElement(u.ZP,(0,i.Z)({ref:t,addEndListener:c.Z},s,{onEnter:p}),function(e,t){return l.cloneElement(r,(0,i.Z)({},t,{className:a()("fade",n,r.props.className,h[e])}))})});p.defaultProps={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1},p.displayName="Fade",t.Z=p},5245:function(e,t,n){"use strict";n.d(t,{Z:function(){return ef}}
5);var r,i,o,s=n(3366),a=n(7462),l=n(4184),u=n.n(l),c=n(9351),d=n(3004),f=n(7216),h=n(99);function p(e){if((!r&&0!==r||e)&&d.Z){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),r=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return r}var v=n(2092),m=n(1176),y=n(6852),g=n(4305),b=n(7294);function w(e){void 0===e&&(e=(0,f.Z)());try{var t=e.activeElement;if(!t||!t.nodeName)return null;return t}catch(t){return e.body}}var _=n(424),E=n(2950),O=n(5697),x=n.n(O),S=n(3935),T=n(6454),k=n(8833),P=n(1132);function C(e,t){e.classList?e.classList.add(t):(0,P.Z)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function j(e,t){return e.replace(RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function R(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=j(e.className,t):e.setAttribute("class",j(e.className&&e.className.baseVal||"",t))}var A=n(1505);function N(e){return"window"in e&&e.window===e?e:"nodeType"in e&&e.nodeType===document.DOCUMENT_NODE&&(e.defaultView||!1)}var I=["template","script","style"],$=function(e){var t=e.nodeType,n=e.tagName;return 1===t&&-1===I.indexOf(n.toLowerCase())},D=function(e,t,n){[].forEach.call(e.children,function(e){-1===t.indexOf(e)&&$(e)&&n(e)})};function L(e,t){t&&(e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden"))}var M=function(){function e(e){var t=void 0===e?{}:e,n=t.hideSiblingNodes,r=t.handleContainerOverflow;this.hideSiblingNodes=void 0,this.handleContainerOverflow=void 0,this.modals=void 0,this.containers=void 0,this.data=void 0,this.scrollbarSize=void 0,this.hideSiblingNodes=void 0===n||n,this.handleContainerOverflow=void 0===r||r,this.modals=[],this.containers=[],this.data=[],this.scrollbarSize=p()}var t=e.prototype;return t.isContainerOverflowing=function(e){var t=this.data[this.containerIndexFromModal(e)];return t&&t.overflowing},t.containerIndexFromModal=function(e){var t,n;return t=this.data,n=-1,t.some(function(t,r){return -1!==t.modals.indexOf(e)&&(n=r,!0)}),n},t.setContainerStyle=function(e,t){var n={overflow:"hidden"};e.style={overflow:t.style.overflow,paddingRight:t.style.paddingRight},e.overflowing&&(n.paddingRight=parseInt((0,A.Z)(t,"paddingRight")||"0",10)+this.scrollbarSize+"px"),(0,A.Z)(t,n)},t.removeContainerStyle=function(e,t){Object.assign(t.style,e.style)},t.add=function(e,t,n){var r,i,o=this.modals.indexOf(e),s=this.containers.indexOf(t);if(-1!==o)return o;if(o=this.modals.length,this.modals.push(e),this.hideSiblingNodes&&D(t,[e.dialog,e.backdrop],function(e){return L(!0,e)}),-1!==s)return this.data[s].modals.push(e),o;var a={modals:[e],classes:n?n.split(/\s+/):[],overflowing:N(t)||t&&"body"===t.tagName.toLowerCase()?(r=N(t)?(0,f.Z)():(0,f.Z)(t),i=N(t)||r.defaultView,r.body.clientWidth<i.innerWidth):t.scrollHeight>t.clientHeight};return this.handleContainerOverflow&&this.setContainerStyle(a,t),a.classes.forEach(C.bind(null,t)),this.containers.push(t),this.data.push(a),o},t.remove=function(e){var t=this.modals.indexOf(e);if(-1!==t){var n=this.containerIndexFromModal(e),r=this.data[n],i=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.classes.forEach(R.bind(null,i)),this.handleContainerOverflow&&this.removeContainerStyle(r,i),this.hideSiblingNodes&&D(i,[e.dialog,e.backdrop],function(e){return L(!1,e)}),this.containers.splice(n,1),this.data.splice(n,1);else if(this.hideSiblingNodes){var o=r.modals[r.modals.length-1],s=o.backdrop;L(!1,o.dialog),L(!1,s)}}},t.isTopModal=function(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e},e}(),Z=n(3446),B=(0,b.forwardRef)(function(e,t){var n,r,o=e.show,l=void 0!==o&&o,u=e.role,c=void 0===u?"dialog":u,f=e.className,h=e.style,p=e.children,v=e.backdrop,g=void 0===v||v,O=e.keyboard,x=void 0===O||O,P=e.onBackdropClick,C=e.onEscapeKeyDown,j=e.transition,R=e.backdropTransition,A=e.autoFocus,N=void 0===A||A,I=e.enforceFocus,$=void 0===I||I,D=e.restoreFocus,L=void 0===D||D,B=e.restoreFocusOptions,F=e.renderDialog,U=e.renderBackdrop,H=e.manager,z=e.container,W=e.containerClassName,K=e.onShow,q=e.onHide,J=void 0===q?function(){}:q,V=e.onExit,G=e.onExited,X=e.onExiting,Y=e.onEnter,Q=e.onEntering,ee=e.onEntered,et=(0,s.Z)(e,["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","backdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","containerClassName","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"]),en=(0,Z.Z)(z),er=(n=H||(i||(i=new M),i),Object.assign((r=(0,b.useRef)({dialog:null,backdrop:null})).current,{add:function(e,t){return n.add(r.current,e,t)},remove:function(){return n.remove(r.current)},isTopModal:function(){return n.isTopModal(r.current)},setDialogRef:(0,b.useCallback)(function(e){r.current.dialog=e},[]),setBackdropRef:(0,b.useCallback)(function(e){r.current.backdrop=e},[])})),ei=(0,T.Z)(),eo=(0,k.Z)(l),es=(0,b.useState)(!l),ea=es[0],el=es[1],eu=(0,b.useRef)(null);(0,b.useImperativeHandle)(t,function(){return er},[er]),d.Z&&!eo&&l&&(eu.current=w()),j||l||ea?l&&ea&&el(!1):el(!0);
5var ec=(0,m.Z)(function(){if(er.add(en,W),em.current=(0,E.Z)(document,"keydown",ep),ev.current=(0,E.Z)(document,"focus",function(){return setTimeout(ef)},!0),K&&K(),N){var e=w(document);er.dialog&&e&&!(0,_.Z)(er.dialog,e)&&(eu.current=e,er.dialog.focus())}}),ed=(0,m.Z)(function(){if(er.remove(),null==em.current||em.current(),null==ev.current||ev.current(),L){var e;null==(e=eu.current)||null==e.focus||e.focus(B),eu.current=null}});(0,b.useEffect)(function(){l&&en&&ec()},[l,en,ec]),(0,b.useEffect)(function(){ea&&ed()},[ea,ed]),(0,y.Z)(function(){ed()});var ef=(0,m.Z)(function(){if($&&ei()&&er.isTopModal()){var e=w();er.dialog&&e&&!(0,_.Z)(er.dialog,e)&&er.dialog.focus()}}),eh=(0,m.Z)(function(e){e.target===e.currentTarget&&(null==P||P(e),!0===g&&J())}),ep=(0,m.Z)(function(e){x&&27===e.keyCode&&er.isTopModal()&&(null==C||C(e),e.defaultPrevented||J())}),ev=(0,b.useRef)(),em=(0,b.useRef)();if(!en||!(l||j&&!ea))return null;var ey=(0,a.Z)({role:c,ref:er.setDialogRef,"aria-modal":"dialog"===c||void 0},et,{style:h,className:f,tabIndex:-1}),eg=F?F(ey):b.createElement("div",ey,b.cloneElement(p,{role:"document"}));j&&(eg=b.createElement(j,{appear:!0,unmountOnExit:!0,in:!!l,onExit:V,onExiting:X,onExited:function(){el(!0);for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];null==G||G.apply(void 0,t)},onEnter:Y,onEntering:Q,onEntered:ee},eg));var eb=null;return g&&(eb=(void 0===U?function(e){return b.createElement("div",e)}:U)({ref:er.setBackdropRef,onClick:eh}),R&&(eb=b.createElement(R,{appear:!0,in:!!l},eb))),b.createElement(b.Fragment,null,S.createPortal(b.createElement(b.Fragment,null,eb,eg),en))}),F={show:x().bool,container:x().any,onShow:x().func,onHide:x().func,backdrop:x().oneOfType([x().bool,x().oneOf(["static"])]),renderDialog:x().func,renderBackdrop:x().func,onEscapeKeyDown:x().func,onBackdropClick:x().func,containerClassName:x().string,keyboard:x().bool,transition:x().elementType,backdropTransition:x().elementType,autoFocus:x().bool,enforceFocus:x().bool,restoreFocus:x().bool,restoreFocusOptions:x().shape({preventScroll:x().bool}),onEnter:x().func,onEntering:x().func,onEntered:x().func,onExit:x().func,onExiting:x().func,onExited:x().func,manager:x().instanceOf(M)};B.displayName="Modal",B.propTypes=F;var U=Object.assign(B,{Manager:M});n(2473);var H=n(5068),z=n(930),W={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"},K=function(e){function t(){return e.apply(this,arguments)||this}(0,H.Z)(t,e);var n=t.prototype;return n.adjustAndStore=function(e,t,n){var r,i=t.style[e];t.dataset[e]=i,(0,A.Z)(t,((r={})[e]=parseFloat((0,A.Z)(t,e))+n+"px",r))},n.restore=function(e,t){var n,r=t.dataset[e];void 0!==r&&(delete t.dataset[e],(0,A.Z)(t,((n={})[e]=r,n)))},n.setContainerStyle=function(t,n){var r=this;if(e.prototype.setContainerStyle.call(this,t,n),t.overflowing){var i=p();(0,z.Z)(n,W.FIXED_CONTENT).forEach(function(e){return r.adjustAndStore("paddingRight",e,i)}),(0,z.Z)(n,W.STICKY_CONTENT).forEach(function(e){return r.adjustAndStore("marginRight",e,-i)}),(0,z.Z)(n,W.NAVBAR_TOGGLER).forEach(function(e){return r.adjustAndStore("marginRight",e,i)})}},n.removeContainerStyle=function(t,n){var r=this;e.prototype.removeContainerStyle.call(this,t,n),(0,z.Z)(n,W.FIXED_CONTENT).forEach(function(e){return r.restore("paddingRight",e)}),(0,z.Z)(n,W.STICKY_CONTENT).forEach(function(e){return r.restore("marginRight",e)}),(0,z.Z)(n,W.NAVBAR_TOGGLER).forEach(function(e){return r.restore("marginRight",e)})},t}(M),q=n(1068),J=n(6611),V=(0,J.Z)("modal-body"),G=b.createContext({onHide:function(){}}),X=n(6792),Y=["bsPrefix","className","contentClassName","centered","size","children","scrollable"],Q=b.forwardRef(function(e,t){var n=e.bsPrefix,r=e.className,i=e.contentClassName,o=e.centered,l=e.size,c=e.children,d=e.scrollable,f=(0,s.Z)(e,Y),h=(n=(0,X.vE)(n,"modal"))+"-dialog";return b.createElement("div",(0,a.Z)({},f,{ref:t,className:u()(h,r,l&&n+"-"+l,o&&h+"-centered",d&&h+"-scrollable")}),b.createElement("div",{className:u()(n+"-content",i)},c))});Q.displayName="ModalDialog";var ee=(0,J.Z)("modal-footer"),et=["label","onClick","className"],en={label:x().string.isRequired,onClick:x().func},er=b.forwardRef(function(e,t){var n=e.label,r=e.onClick,i=e.className,o=(0,s.Z)(e,et);return b.createElement("button",(0,a.Z)({ref:t,type:"button",className:u()("close",i),onClick:r},o),b.createElement("span",{"aria-hidden":"true"},"\xd7"),b.createElement("span",{className:"sr-only"},n))});er.displayName="CloseButton",er.propTypes=en,er.defaultProps={label:"Close"};var ei=["bsPrefix","closeLabel","closeButton","onHide","className","children"],eo=b.forwardRef(function(e,t){var n=e.bsPrefix,r=e.closeLabel,i=e.closeButton,o=e.onHide,l=e.className,c=e.children,d=(0,s.Z)(e,ei);n=(0,X.vE)(n,"modal-header");var f=(0,b.useContext)(G),h=(0,m.Z)(function(){f&&f.onHide(),o&&o()});return b.createElement("div",(0,a.Z)({ref:t},d,{className:u()(l,n)}),c,i&&b.createElement(er,{label:r,onClick:h}))});eo.displayName="ModalHeader",eo.defaultProps={closeLabel:"Close",closeButton:!1};var es=(0,n(9602).Z)("h4"),ea=(0,J.Z)("modal-title",{Component:es}),el=["bsPrefix","className","style","dialogClassName","contentClassName","children","dialogAs","aria-labelledby","aria-describedby","aria-label","show","animation","backdrop","keyboard","onEscapeKeyDown","onShow","onHide","container","autoF
5ocus","enforceFocus","restoreFocus","restoreFocusOptions","onEntered","onExit","onExiting","onEnter","onEntering","onExited","backdropClassName","manager"];function eu(e){return b.createElement(q.Z,(0,a.Z)({},e,{timeout:null}))}function ec(e){return b.createElement(q.Z,(0,a.Z)({},e,{timeout:null}))}var ed=b.forwardRef(function(e,t){var n=e.bsPrefix,r=e.className,i=e.style,l=e.dialogClassName,w=e.contentClassName,_=e.children,E=e.dialogAs,O=e["aria-labelledby"],x=e["aria-describedby"],S=e["aria-label"],T=e.show,k=e.animation,P=e.backdrop,C=e.keyboard,j=e.onEscapeKeyDown,R=e.onShow,A=e.onHide,N=e.container,I=e.autoFocus,$=e.enforceFocus,D=e.restoreFocus,L=e.restoreFocusOptions,M=e.onEntered,Z=e.onExit,B=e.onExiting,F=e.onEnter,H=e.onEntering,z=e.onExited,W=e.backdropClassName,q=e.manager,J=(0,s.Z)(e,el),V=(0,b.useState)({}),Y=V[0],Q=V[1],ee=(0,b.useState)(!1),et=ee[0],en=ee[1],er=(0,b.useRef)(!1),ei=(0,b.useRef)(!1),eo=(0,b.useRef)(null),es=(0,v.Z)(),ea=es[0],ed=es[1],ef=(0,m.Z)(A);n=(0,X.vE)(n,"modal"),(0,b.useImperativeHandle)(t,function(){return{get _modal(){return ea}}},[ea]);var eh=(0,b.useMemo)(function(){return{onHide:ef}},[ef]);function ep(){return q||(o||(o=new K),o)}function ev(e){if(d.Z){var t=ep().isContainerOverflowing(ea),n=e.scrollHeight>(0,f.Z)(e).documentElement.clientHeight;Q({paddingRight:t&&!n?p():void 0,paddingLeft:!t&&n?p():void 0})}}var em=(0,m.Z)(function(){ea&&ev(ea.dialog)});(0,y.Z)(function(){(0,h.Z)(window,"resize",em),eo.current&&eo.current()});var ey=function(){er.current=!0},eg=function(e){er.current&&ea&&e.target===ea.dialog&&(ei.current=!0),er.current=!1},eb=function(){en(!0),eo.current=(0,g.Z)(ea.dialog,function(){en(!1)})},ew=function(e){e.target===e.currentTarget&&eb()},e_=function(e){if("static"===P){ew(e);return}if(ei.current||e.target!==e.currentTarget){ei.current=!1;return}null==A||A()},eE=(0,b.useCallback)(function(e){return b.createElement("div",(0,a.Z)({},e,{className:u()(n+"-backdrop",W,!k&&"show")}))},[k,W,n]),eO=(0,a.Z)({},i,Y);return k||(eO.display="block"),b.createElement(G.Provider,{value:eh},b.createElement(U,{show:T,ref:ed,backdrop:P,container:N,keyboard:!0,autoFocus:I,enforceFocus:$,restoreFocus:D,restoreFocusOptions:L,onEscapeKeyDown:function(e){C||"static"!==P?C&&j&&j(e):(e.preventDefault(),eb())},onShow:R,onHide:A,onEnter:function(e,t){e&&(e.style.display="block",ev(e)),null==F||F(e,t)},onEntering:function(e,t){null==H||H(e,t),(0,c.ZP)(window,"resize",em)},onEntered:M,onExit:function(e){null==eo.current||eo.current(),null==Z||Z(e)},onExiting:B,onExited:function(e){e&&(e.style.display=""),null==z||z(e),(0,h.Z)(window,"resize",em)},manager:ep(),containerClassName:n+"-open",transition:k?eu:void 0,backdropTransition:k?ec:void 0,renderBackdrop:eE,renderDialog:function(e){return b.createElement("div",(0,a.Z)({role:"dialog"},e,{style:eO,className:u()(r,n,et&&n+"-static"),onClick:P?e_:void 0,onMouseUp:eg,"aria-label":S,"aria-labelledby":O,"aria-describedby":x}),b.createElement(E,(0,a.Z)({},J,{onMouseDown:ey,className:l,contentClassName:w}),_))}}))});ed.displayName="Modal",ed.defaultProps={show:!1,backdrop:!0,keyboard:!0,autoFocus:!0,enforceFocus:!0,restoreFocus:!0,animation:!0,dialogAs:Q},ed.Body=V,ed.Header=eo,ed.Title=ea,ed.Footer=ee,ed.Dialog=Q,ed.TRANSITION_DURATION=300,ed.BACKDROP_TRANSITION_DURATION=150;var ef=ed},5017:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var r=n(7294).createContext(null),i=function(e,t){return(void 0===t&&(t=null),null!=e)?String(e):t||null};t.Z=r},6968:function(e,t,n){"use strict";var r=n(7462),i=n(3366),o=n(4184),s=n.n(o),a=n(7294),l=n(6792),u=["bsPrefix","variant","animation","size","children","as","className"],c=a.forwardRef(function(e,t){var n=e.bsPrefix,o=e.variant,c=e.animation,d=e.size,f=e.children,h=e.as,p=e.className,v=(0,i.Z)(e,u),m=(n=(0,l.vE)(n,"spinner"))+"-"+c;return a.createElement(void 0===h?"div":h,(0,r.Z)({ref:t},v,{className:s()(p,m,d&&m+"-"+d,o&&"text-"+o)}),f)});c.displayName="Spinner",t.Z=c},6792:function(e,t,n){"use strict";n.d(t,{vE:function(){return o}});var r=n(7294),i=r.createContext({});function o(e,t){var n=(0,r.useContext)(i);return e||n[t]||t}i.Consumer,i.Provider},6833:function(e,t){"use strict";t.Z=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(function(e){return null!=e}).reduce(function(e,t){if("function"!=typeof t)throw Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}},null)}},6611:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(7462),i=n(3366),o=n(4184),s=n.n(o),a=/-(.)/g,l=n(7294),u=n(6792),c=["className","bsPrefix","as"];function d(e,t){var n=void 0===t?{}:t,o=n.displayName,d=void 0===o?e[0].toUpperCase()+e.replace(a,function(e,t){return t.toUpperCase()}).slice(1):o,f=n.Component,h=n.defaultProps,p=l.forwardRef(function(t,n){var o=t.className,a=t.bsPrefix,d=t.as,h=(0,i.Z)(t,c),p=(0,u.vE)(a,e);
5return l.createElement(void 0===d?f||"div":d,(0,r.Z)({ref:n,className:s()(o,p)},h))});return p.defaultProps=h,p.displayName=d,p}},9602:function(e,t,n){"use strict";var r=n(7462),i=n(7294),o=n(4184),s=n.n(o);t.Z=function(e){return i.forwardRef(function(t,n){return i.createElement("div",(0,r.Z)({},t,{ref:n,className:s()(t.className,e)}))})}},3825:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1505),i=n(4305);function o(e,t){var n=(0,r.Z)(e,t)||"",i=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*i}function s(e,t){var n=o(e,"transitionDuration"),r=o(e,"transitionDelay"),s=(0,i.Z)(e,function(n){n.target===e&&(s(),t(n))},n+r)}},4509:function(e,t,n){"use strict";function r(e){e.offsetHeight}n.d(t,{Z:function(){return r}})},3509:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(7294),i=n(1132),o=n(6792);function s(e){var t=window.getComputedStyle(e);return{top:parseFloat(t.marginTop)||0,right:parseFloat(t.marginRight)||0,bottom:parseFloat(t.marginBottom)||0,left:parseFloat(t.marginLeft)||0}}function a(){var e=(0,r.useRef)(null),t=(0,r.useRef)(null),n=(0,r.useRef)(null),a=(0,o.vE)(void 0,"popover"),l=(0,o.vE)(void 0,"dropdown-menu");return[(0,r.useCallback)(function(n){n&&((0,i.Z)(n,a)||(0,i.Z)(n,l))&&(t.current=s(n),n.style.margin="0",e.current=n)},[a,l]),[(0,r.useMemo)(function(){return{name:"offset",options:{offset:function(e){var n=e.placement;if(!t.current)return[0,0];var r=t.current,i=r.top,o=r.left,s=r.bottom,a=r.right;switch(n.split("-")[0]){case"top":return[0,s];case"left":return[0,a];case"bottom":return[0,i];case"right":return[0,o];default:return[0,0]}}}}},[t]),(0,r.useMemo)(function(){return{name:"arrow",options:{padding:function(){if(!n.current)return 0;var e=n.current,t=e.top,r=e.right,i=t||r;return{top:i,left:i,right:i,bottom:i}}}}},[n]),(0,r.useMemo)(function(){return{name:"popoverArrowMargins",enabled:!0,phase:"main",fn:function(){},requiresIfExists:["arrow"],effect:function(t){var r=t.state;if(e.current&&r.elements.arrow&&(0,i.Z)(e.current,a)){if(r.modifiersData["arrow#persistent"]){var o=s(r.elements.arrow),l=o.top,u=o.right,c=l||u;r.modifiersData["arrow#persistent"].padding={top:c,left:c,right:c,bottom:c}}else n.current=s(r.elements.arrow);return r.elements.arrow.style.margin="0",function(){r.elements.arrow&&(r.elements.arrow.style.margin="")}}}}},[a])]]}},2343:function(e,t,n){"use strict";n.d(t,{ZP:function(){return i}});var r=n(7462);function i(e){var t,n,i,o,s,a,l,u=e.enabled,c=e.enableEvents,d=e.placement,f=e.flip,h=e.offset,p=e.fixed,v=e.containerPadding,m=e.arrowElement,y=e.popperConfig,g=void 0===y?{}:y,b=(t=g.modifiers,n={},Array.isArray(t)?(null==t||t.forEach(function(e){n[e.name]=e}),n):t||n);return(0,r.Z)({},g,{placement:d,enabled:u,strategy:p?"fixed":g.strategy,modifiers:(void 0===(i=(0,r.Z)({},b,{eventListeners:{enabled:c},preventOverflow:(0,r.Z)({},b.preventOverflow,{options:v?(0,r.Z)({padding:v},null==(o=b.preventOverflow)?void 0:o.options):null==(s=b.preventOverflow)?void 0:s.options}),offset:{options:(0,r.Z)({offset:h},null==(a=b.offset)?void 0:a.options)},arrow:(0,r.Z)({},b.arrow,{enabled:!!m,options:(0,r.Z)({},null==(l=b.arrow)?void 0:l.options,{element:m})}),flip:(0,r.Z)({enabled:!!f},b.flip)}))&&(i={}),Array.isArray(i))?i:Object.keys(i).map(function(e){return i[e].name=e,i[e]})})}},6390:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(3935);function i(e){return e&&"setState"in e?r.findDOMNode(e):null!=e?e:null}},8534:function(e,t,n){"use strict";n.d(t,{Z:function(){return eu}});var r,i,o,s,a,l=n(7462),u=n(3366),c=n(7294),d=n(6454),f=function(e){var t=(0,d.Z)();return[e[0],(0,c.useCallback)(function(n){if(t())return e[1](n)},[t,e[1]])]};function h(e){return e.split("-")[0]}function p(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function v(e){var t=p(e).Element;return e instanceof t||e instanceof Element}function m(e){var t=p(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function y(e){if("undefined"==typeof ShadowRoot)return!1;var t=p(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var g=Math.max,b=Math.min,w=Math.round;function _(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function E(){return!/^((?!chrome|android).)*safari/i.test(_())}function O(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&m(e)&&(i=e.offsetWidth>0&&w(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&w(r.height)/e.offsetHeight||1);
vendor: 4,338 bytes, line 5
5var s=(v(e)?p(e):window).visualViewport,a=!E()&&n,l=(r.left+(a&&s?s.offsetLeft:0))/i,u=(r.top+(a&&s?s.offsetTop:0))/o,c=r.width/i,d=r.height/o;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l,x:l,y:u}}function x(e){var t=O(e),n=e.offsetWidth,r=e.offsetHeight;return 1>=Math.abs(t.width-n)&&(n=t.width),1>=Math.abs(t.height-r)&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function S(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&y(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function T(e){return e?(e.nodeName||"").toLowerCase():null}function k(e){return p(e).getComputedStyle(e)}function P(e){return((v(e)?e.ownerDocument:e.document)||window.document).documentElement}function C(e){return"html"===T(e)?e:e.assignedSlot||e.parentNode||(y(e)?e.host:null)||P(e)}function j(e){return m(e)&&"fixed"!==k(e).position?e.offsetParent:null}function R(e){for(var t=p(e),n=j(e);n&&["table","td","th"].indexOf(T(n))>=0&&"static"===k(n).position;)n=j(n);return n&&("html"===T(n)||"body"===T(n)&&"static"===k(n).position)?t:n||function(e){var t=/firefox/i.test(_());if(/Trident/i.test(_())&&m(e)&&"fixed"===k(e).position)return null;var n=C(e);for(y(n)&&(n=n.host);m(n)&&0>["html","body"].indexOf(T(n));){var r=k(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function A(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function N(e,t,n){return g(e,b(t,n))}function I(){return{top:0,right:0,bottom:0,left:0}}function $(e){return Object.assign({},I(),e)}function D(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var L=n(7701);function M(e){return e.split("-")[1]}var Z={top:"auto",right:"auto",bottom:"auto",left:"auto"};function B(e){var t,n,r,i,o,s,a,l=e.popper,u=e.popperRect,c=e.placement,d=e.variation,f=e.offsets,h=e.position,v=e.gpuAcceleration,m=e.adaptive,y=e.roundOffsets,g=e.isFixed,b=f.x,_=void 0===b?0:b,E=f.y,O=void 0===E?0:E,x="function"==typeof y?y({x:_,y:O}):{x:_,y:O};_=x.x,O=x.y;var S=f.hasOwnProperty("x"),T=f.hasOwnProperty("y"),C=L.t$,j=L.we,A=window;if(m){var N=R(l),I="clientHeight",$="clientWidth";N===p(l)&&"static"!==k(N=P(l)).position&&"absolute"===h&&(I="scrollHeight",$="scrollWidth"),(c===L.we||(c===L.t$||c===L.F2)&&d===L.ut)&&(j=L.I,O-=(g&&N===A&&A.visualViewport?A.visualViewport.height:N[I])-u.height,O*=v?1:-1),(c===L.t$||(c===L.we||c===L.I)&&d===L.ut)&&(C=L.F2,_-=(g&&N===A&&A.visualViewport?A.visualViewport.width:N[$])-u.width,_*=v?1:-1)}var D=Object.assign({position:h},m&&Z),M=!0===y?(t={x:_,y:O},n=p(l),r=t.x,i=t.y,{x:w(r*(o=n.devicePixelRatio||1))/o||0,y:w(i*o)/o||0}):{x:_,y:O};return(_=M.x,O=M.y,v)?Object.assign({},D,((a={})[j]=T?"0":"",a[C]=S?"0":"",a.transform=1>=(A.devicePixelRatio||1)?"translate("+_+"px, "+O+"px)":"translate3d("+_+"px, "+O+"px, 0)",a)):Object.assign({},D,((s={})[j]=T?O+"px":"",s[C]=S?_+"px":"",s.transform="",s))}var F={passive:!0},U={left:"right",right:"left",bottom:"top",top:"bottom"};function H(e){return e.replace(/left|right|bottom|top/g,function(e){return U[e]})}var z={start:"end",end:"start"};function W(e){return e.replace(/start|end/g,function(e){return z[e]})}function K(e){var t=p(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function q(e){return O(P(e)).left+K(e).scrollLeft}function J(e){var t=k(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function V(e,t){void 0===t&&(t=[]);var n,r=function e(t){return["html","body","#document"].indexOf(T(t))>=0?t.ownerDocument.body:m(t)&&J(t)?t:e(C(t))}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=p(r),s=i?[o].concat(o.visualViewport||[],J(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(V(C(s)))}function G(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function X(e,t,n){var r,i,o,s,a,l,u,c,d,f;return t===L.Pj?G(function(e,t){var n=p(e),r=P(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;var u=E();(u||!u&&"fixed"===t)&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a+q(e),y:l}}(e,n)):v(t)?((r=O(t,!1,"fixed"===n)).top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.to
5p+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r):G((i=P(e),s=P(i),a=K(i),l=null==(o=i.ownerDocument)?void 0:o.body,u=g(s.scrollWidth,s.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),c=g(s.scrollHeight,s.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),d=-a.scrollLeft+q(i),f=-a.scrollTop,"rtl"===k(l||s).direction&&(d+=g(s.clientWidth,l?l.clientWidth:0)-u),{width:u,height:c,x:d,y:f}))}function Y(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?h(i):null,s=i?M(i):null,a=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case L.we:t={x:a,y:n.y-r.height};break;case L.I:t={x:a,y:n.y+n.height};break;case L.F2:t={x:n.x+n.width,y:l};break;case L.t$:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=o?A(o):null;if(null!=u){var c="y"===u?"height":"width";switch(s){case L.BL:t[u]=t[u]-(n[c]/2-r[c]/2);break;case L.ut:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function Q(e,t){void 0===t&&(t={});var n,r,i,o,s,a,l=t,u=l.placement,c=void 0===u?e.placement:u,d=l.strategy,f=void 0===d?e.strategy:d,h=l.boundary,p=void 0===h?L.zV:h,y=l.rootBoundary,w=void 0===y?L.Pj:y,_=l.elementContext,E=void 0===_?L.k5:_,x=l.altBoundary,j=l.padding,A=void 0===j?0:j,N=$("number"!=typeof A?A:D(A,L.mv)),I=E===L.k5?L.YP:L.k5,M=e.rects.popper,Z=e.elements[void 0!==x&&x?I:E],B=(n=v(Z)?Z:Z.contextElement||P(e.elements.popper),s=(o=[].concat("clippingParents"===p?(r=V(C(n)),v(i=["absolute","fixed"].indexOf(k(n).position)>=0&&m(n)?R(n):n)?r.filter(function(e){return v(e)&&S(e,i)&&"body"!==T(e)}):[]):[].concat(p),[w]))[0],(a=o.reduce(function(e,t){var r=X(n,t,f);return e.top=g(r.top,e.top),e.right=b(r.right,e.right),e.bottom=b(r.bottom,e.bottom),e.left=g(r.left,e.left),e},X(n,s,f))).width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a),F=O(e.elements.reference),U=Y({reference:F,element:M,strategy:"absolute",placement:c}),H=G(Object.assign({}
5,M,U)),z=E===L.k5?H:F,W={top:B.top-z.top+N.top,bottom:z.bottom-B.bottom+N.bottom,left:B.left-z.left+N.left,right:z.right-B.right+N.right},K=e.modifiersData.offset;if(E===L.k5&&K){var q=K[c];Object.keys(W).forEach(function(e){var t=[L.F2,L.I].indexOf(e)>=0?1:-1,n=[L.we,L.I].indexOf(e)>=0?"y":"x";W[e]+=q[n]*t})}return W}function ee(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function et(e){return[L.we,L.F2,L.I,L.t$].some(function(t){return e[t]>=0})}var en={placement:"bottom",modifiers:[],strategy:"absolute"};function er(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}var ei=(o=void 0===(i=(r={defaultModifiers:[{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=Q(t,{elementContext:"reference"}),a=Q(t,{altBoundary:!0}),l=ee(s,r),u=ee(a,i,o),c=et(l),d=et(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Y({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=n.adaptive,o=n.roundOffsets,s=void 0===o||o,a={placement:h(t.placement),variation:M(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===r||r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,B(Object.assign({},a,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===i||i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,B(Object.assign({},a,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,s=r.resize,a=void 0===s||s,l=p(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(e){e.addEventListener("scroll",n.update,F)}),a&&l.addEventListener("resize",n.update,F),function(){o&&u.forEach(function(e){e.removeEventListener("scroll",n.update,F)}),a&&l.removeEventListener("resize",n.update,F)}},data:{}},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,s=L.Ct.reduce(function(e,n){var r,i,s,a,l,u;return e[n]=(r=t.rects,s=[L.t$,L.we].indexOf(i=h(n))>=0?-1:1,l=(a="function"==typeof o?o(Object.assign({},r,{placement:n})):o)[0],u=a[1],l=l||0,u=(u||0)*s,[L.t$,L.F2].indexOf(i)>=0?{x:u,y:l}:{x:l,y:u}),e},{}),a=s[t.placement],l=a.x,u=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,v=void 0===p||p,m=n.allowedAutoPlacements,y=t.options.placement,g=h(y),b=[y].concat(l||(g!==y&&v?function(e){if(h(e)===L.d7)return[];var t=H(e);return[W(e),t,W(t)]}(y):[H(y)])).reduce(function(e,n){var r,i,o,s,a,l,f,p,y,g,b,w;return e.concat(h(n)===L.d7?(i=(r={placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:v,allowedAutoPlacements:m}).placement,o=r.boundary,s=r.rootBoundary,a=r.padding,l=r.flipVariations,p=void 0===(f=r.allowedAutoPlacements)?L.Ct:f,0===(b=(g=(y=M(i))?l?L.bw:L.bw.filter(function(e){return M(e)===y}):L.mv).filter(function(e){return p.indexOf(e)>=0})).length&&(b=g),Object.keys(w=b.reduce(function(e,n){return e[n]=Q(t,{placement:n,boundary:o,rootBoundary:s,padding:a})[h(n)],e},{})).sort(function(e,t){return w[e]-w[t]})):n)},[]),w=t.rects.reference,_=t.rects.popper,E=new Map,O=!0,x=b[0],S=0;S<b.length;S++){var T=b[S],k=h(T),P=M(T)===L.BL,C=[L.we,L.I].indexOf(k)>=0,j=C?"width":"height",R=Q(t,{placement:T,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),A=C?P?L.F2:L.t$:P?L.I:L.we;w[j]>_[j]&&(A=H(A));var N=H(A),I=[];if(o&&I.push(R[k]<=0),a&&I.push(R[A]<=0,R[N]<=0),I.every(function(e){return e})){x=T,O=!1;break}E.set(T,I)}if(O)for(var $=v?3:1,D=function(e){var t=b.find(function(t){var n=E.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return x=t,"break"},Z=$;Z>0&&"break"!==D(Z);Z--);t.placement!==x&&(t.modifiersData[r]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=n.altAxis,s=n.boundary,a=n.rootBoundary,l=n.altBoundary,u=n.padding,c=n.tether,d=void 0===c||c,f=n.tetherOffset,p=void 0===f?0:f,v=Q(t,{boundary:s,rootBoundary:a,padding:u,altBoundary:l}),m=h(t.placement),y=M(t.placement),w=!y,_=A(m),E="x"===_?"y":"x",O=t.modifiersData.popperOffsets,S=t.rects.reference,T=t.rects.popper,k="function"==typeof p?p(Object.assign({},t.rects,{placement:t.placement})):p,P="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(O){if(void 0===i||i){var $,D="y"===_?L.we:L.t$,Z="y"===_?L.I:L.F2,B="y"===_?"height":"width",F=O[_],U=F+v[D],H=F-v[Z],z=d?-T[B]/2:0,W=y===L.BL?S[B]:T[B],K=y===L.BL?-T[B]:-S[B],q=t.elements.arrow,J=d&&q?x(q):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:I(),G=V[D],X=V[Z],Y=N(0,S[B],J[B]),ee=w?S[B]/2-z-Y-G-P.mainAxis:W-Y-G-P.mainAxis,et=w?-S[B]/2+z+Y+X+P.mainAxis:K+Y+X+P.mainAxis,en=t.elements.arrow&&R(t.elements.arrow),er=en?"y"===_?en.clientTop||0:en.clientLeft||0:0,ei=null!=($=null==C?void 0:C[_])?$
5:0,eo=N(d?b(U,F+ee-ei-er):U,F,d?g(H,F+et-ei):H);O[_]=eo,j[_]=eo-F}if(void 0!==o&&o){var es,ea,el="x"===_?L.we:L.t$,eu="x"===_?L.I:L.F2,ec=O[E],ed="y"===E?"height":"width",ef=ec+v[el],eh=ec-v[eu],ep=-1!==[L.we,L.t$].indexOf(m),ev=null!=(ea=null==C?void 0:C[E])?ea:0,em=ep?ef:ec-S[ed]-T[ed]-ev+P.altAxis,ey=ep?ec+S[ed]+T[ed]-ev-P.altAxis:eh,eg=d&&ep?(es=N(em,ec,ey))>ey?ey:es:N(d?em:ef,ec,d?ey:eh);O[E]=eg,j[E]=eg-ec}t.modifiersData[r]=j}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n,r=e.state,i=e.name,o=e.options,s=r.elements.arrow,a=r.modifiersData.popperOffsets,l=h(r.placement),u=A(l),c=[L.t$,L.F2].indexOf(l)>=0?"height":"width";if(s&&a){var d=$("number"!=typeof(t="function"==typeof(t=o.padding)?t(Object.assign({},r.rects,{placement:r.placement})):t)?t:D(t,L.mv)),f=x(s),p="y"===u?L.we:L.t$,v="y"===u?L.I:L.F2,m=r.rects.reference[c]+r.rects.reference[u]-a[u]-r.rects.popper[c],y=a[u]-r.rects.reference[u],g=R(s),b=g?"y"===u?g.clientHeight||0:g.clientWidth||0:0,w=d[p],_=b-f[c]-d[v],E=b/2-f[c]/2+(m/2-y/2),O=N(w,E,_);r.modifiersData[i]=((n={})[u]=O,n.centerOffset=O-E,n)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&S(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}]}).defaultModifiers)?[]:i,a=void 0===(s=r.defaultOptions)?en:s,function(e,t,n){void 0===n&&(n=a);var r,i={placement:"bottom",orderedModifiers:[],options:Object.assign({},en,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],l=!1,u={state:i,setOptions:function(n){var r,l,d,f,h,p="function"==typeof n?n(i.options):n;c(),i.options=Object.assign({},a,i.options,p),i.scrollParents={reference:v(e)?V(e):e.contextElement?V(e.contextElement):[],popper:V(t)};var m=(l=Object.keys(r=[].concat(o,i.options.modifiers).reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{})).map(function(e){return r[e]}),d=new Map,f=new Set,h=[],l.forEach(function(e){d.set(e.name,e)}),l.forEach(function(e){f.has(e.name)||function e(t){f.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!f.has(t)){var n=d.get(t);n&&e(n)}}),h.push(t)}(e)}),L.xs.reduce(function(e,t){return e.concat(h.filter(function(e){return e.phase===t}))},[]));return i.orderedModifiers=m.filter(function(e){return e.enabled}),i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=e.effect;if("function"==typeof r){var o=r({state:i,name:t,instance:u,options:void 0===n?{}:n});s.push(o||function(){})}}),u.update()},forceUpdate:function(){if(!l){var e,t,n,r,o,s,a,c,d,f,h,v,y=i.elements,g=y.reference,b=y.popper;if(er(g,b)){i.rects={reference:(t=R(b),n="fixed"===i.options.strategy,r=m(t),c=m(t)&&(s=w((o=t.getBoundingClientRect()).width)/t.offsetWidth||1,a=w(o.height)/t.offsetHeight||1,1!==s||1!==a),d=P(t),f=O(g,c,n),h={scrollLeft:0,scrollTop:0},v={x:0,y:0},(r||!r&&!n)&&(("body"!==T(t)||J(d))&&(h=(e=t)!==p(e)&&m(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:K(e)),m(t)?(v=O(t,!0),v.x+=t.clientLeft,v.y+=t.clientTop):d&&(v.x=q(d))),{x:f.left+h.scrollLeft-v.x,y:f.top+h.scrollTop-v.y,width:f.width,height:f.height}),popper:x(b)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var _=0;_<i.orderedModifiers.length;_++){if(!0===i.reset){i.reset=!1,_=-1;continue}var E=i.orderedModifiers[_],S=E.fn,k=E.options,C=void 0===k?{}:k,j=E.name;"function"==typeof S&&(i=S({state:i,options:C,name:j,instance:u})||i)}}}},update:function(){return r||(r=new Promise(function(e){Promise.resolve().then(function(){r=void 0,e(new Promise(function(e){u.forceUpdate(),e(i)}))})})),r},destroy:function(){c(),l=!0}};if(!er(e,t))return u;function c(){s.forEach(function(e){return e()}),s=[]}return u.setOptions(n).then(function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)}),u}),eo=function(e){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}},es={name:"applyStyles",enabled:!1},ea={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:function(e){var t=e.state;return function(){var e=t.elements,n=e.reference,r=e.popper;if("removeAttribute"in n){var i=(n.getAttribute("aria-describedby")||"").split(",").filter(function(e){return e.trim()!==r.id});i.length?n.setAttribute("aria-describedby",i.join(",")):n.removeAttribute("aria-describedby")}}},fn:function(e){var t,n=e.state.elements,r=n.popper,i=n.reference,o=null==(t=r.getAttribute("role"))?void 0:t.toLowerCase();if(r.id&&"tooltip"===o&&"setAttribute"in i){var s=i.getAttribute("aria-describedby");if(s&&-1!==s.split(",").indexOf(r.id))return;i.setAttribute("aria-describedby",s?s+","+r.id:r.id)}}},el=[],eu=function(e,t,n){var r=void 0===n?{}:n,i=r.enabled,o=void 0===i||i,s=r.placement,a=void 0===s?"bottom":s,d=r.strategy,h=void 0===d?"absolute":d,p=r.modifiers,v=void 0===p?el:p,m=(0,u.Z)(r,["enabled","placement","strategy","modifiers"]),y=(0,c.useRef)(),g=(0,c.useCallback)(function(){var e;
5null==(e=y.current)||e.update()},[]),b=(0,c.useCallback)(function(){var e;null==(e=y.current)||e.forceUpdate()},[]),w=f((0,c.useState)({placement:a,update:g,forceUpdate:b,attributes:{},styles:{popper:eo(h),arrow:{}}})),_=w[0],E=w[1],O=(0,c.useMemo)(function(){return{name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:function(e){var t=e.state,n={},r={};Object.keys(t.elements).forEach(function(e){n[e]=t.styles[e],r[e]=t.attributes[e]}),E({state:t,styles:n,attributes:r,update:g,forceUpdate:b,placement:t.placement})}}},[g,b,E]);return(0,c.useEffect)(function(){y.current&&o&&y.current.setOptions({placement:a,strategy:h,modifiers:[].concat(v,[O,es])})},[h,a,O,o]),(0,c.useEffect)(function(){if(o&&null!=e&&null!=t)return y.current=ei(e,t,(0,l.Z)({},m,{placement:a,strategy:h,modifiers:[].concat(v,[ea,O])})),function(){null!=y.current&&(y.current.destroy(),y.current=void 0,E(function(e){return(0,l.Z)({},e,{attributes:{},styles:{popper:eo(h)}})}))}},[o,e,t]),_}},6453:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(424),i=n(2950),o=n(7294),s=n(1176),a=n(2473),l=n.n(a),u=n(7216),c=n(6390),d=function(){},f=function(e){return e&&("current"in e?e.current:e)},h=function(e,t,n){var a=void 0===n?{}:n,h=a.disabled,p=a.clickTrigger,v=void 0===p?"click":p,m=(0,o.useRef)(!1),y=t||d,g=(0,o.useCallback)(function(t){var n,i=f(e);l()(!!i,"RootClose captured a close event but does not have a ref to compare it to. useRootClose(), should be passed a ref that resolves to a DOM node"),m.current=!i||!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)||0!==t.button||!!(0,r.Z)(i,null!=(n=null==t.composedPath?void 0:t.composedPath()[0])?n:t.target)},[e]),b=(0,s.Z)(function(e){m.current||y(e)}),w=(0,s.Z)(function(e){27===e.keyCode&&y(e)});(0,o.useEffect)(function(){if(!h&&null!=e){var t,n=window.event,r=(t=f(e),(0,u.Z)((0,c.Z)(t))),o=(0,i.Z)(r,v,g,!0),s=(0,i.Z)(r,v,function(e){if(e===n){n=void 0;return}b(e)}),a=(0,i.Z)(r,"keyup",function(e){if(e===n){n=void 0;return}w(e)}),l=[];return"ontouchstart"in r.documentElement&&(l=[].slice.call(r.body.children).map(function(e){return(0,i.Z)(e,"mousemove",d)})),function(){o(),s(),a(),l.forEach(function(e){return e()})}}},[e,h,v,g,b,w])}},3446:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(7216),i=n(7294),o=function(e){var t;return"undefined"==typeof document?null:null==e?(0,r.Z)().body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),null!=(t=e)&&t.nodeType&&e||null)};function s(e,t){var n=(0,i.useState)(function(){return o(e)}),r=n[0],s=n[1];if(!r){var a=o(e);a&&s(a)}return(0,i.useEffect)(function(){t&&r&&t(r)},[t,r]),(0,i.useEffect)(function(){var t=o(e);t!==r&&s(t)},[e,r]),r}},8477:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=s(n(7294)),o=s(n(1093));function s(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"render",value:function(){return i.default.createElement("input",this.props,this.props.children)}}]),t}(i.default.Component);t.default=(0,o.default)(a)},5343:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=l(n(7294)),s=l(n(8e3)),a=l(n(5697));
5function l(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"render",value:function(){var e=this,t=r({},this.props);return t.parentBindings&&delete t.parentBindings,o.default.createElement("div",r({},t,{ref:function(t){e.props.parentBindings.domNode=t}}),this.props.children)}}]),t}(o.default.Component);u.propTypes={name:a.default.string,id:a.default.string},t.default=(0,s.default)(u)},8939:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(7294)),i=o(n(1093));function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var a=function(e){function t(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t);for(var e,n,i,o=arguments.length,a=Array(o),l=0;l<o;l++)a[l]=arguments[l];return n=i=s(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),i.render=function(){return r.default.createElement("a",i.props,i.props.children)},s(i,n)}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(r.default.Component);t.default=(0,i.default)(a)},6261:function(e,t,n){"use strict";t.rU=void 0;var r=h(n(8939)),i=h(n(8477)),o=h(n(5343)),s=h(n(2628)),a=h(n(4592)),l=h(n(7606)),u=h(n(3200)),c=h(n(1093)),d=h(n(8e3)),f=h(n(8482));function h(e){return e&&e.__esModule?e:{default:e}}t.rU=r.default,i.default,o.default,s.default,a.default,l.default,u.default,c.default,d.default,f.default,r.default,i.default,o.default,s.default,a.default,l.default,u.default,c.default,d.default,f.default},8482:function(e,t,n){"use strict";var r=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},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function o(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}function a(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=n(7294);n(3935),n(4259);var u=n(7606),c=n(2628),d=n(5697),f=n(9678),h={to:d.string.isRequired,containerId:d.string,container:d.object,activeClass:d.string,spy:d.bool,smooth:d.oneOfType([d.bool,d.string]),offset:d.number,delay:d.number,isDynamic:d.bool,onClick:d.func,duration:d.oneOfType([d.number,d.func]),absolute:d.bool,onSetActive:d.func,onSetInactive:d.func,ignoreCancelEvents:d.bool,hashSpy:d.bool,spyThrottle:d.number};e.exports={Scroll:function(e,t){console.warn("Helpers.Scroll is deprecated since v1.7.0");var n=t||c,d=function(t){function c(e){o(this,c);var t=s(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,e));return p.call(t),t.state={active:!1},t}return a(c,t),i(c,[{key:"getScrollSpyContainer",value:function(){var e=this.props.containerId,t=this.props.container;return e?document.getElementById(e):t&&t.nodeType?t:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var e=this.getScrollSpyContainer();u.isMounted(e)||u.mount(e,this.props.spyThrottle),this.props.hashSpy&&(f.isMounted()||f.mount(n),f.mapContainer(this.props.to,e)),this.props.spy&&u.addStateHandler(this.stateHandler),u.addSpyH
5andler(this.spyHandler,e),this.setState({container:e})}}},{key:"componentWillUnmount",value:function(){u.unmount(this.stateHandler,this.spyHandler)}},{key:"render",value:function(){var t="";t=this.state&&this.state.active?((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():this.props.className;var n=r({},this.props);for(var i in h)n.hasOwnProperty(i)&&delete n[i];return n.className=t,n.onClick=this.handleClick,l.createElement(e,n)}}]),c}(l.Component),p=function(){var e=this;this.scrollTo=function(t,i){n.scrollTo(t,r({},e.state,i))},this.handleClick=function(t){e.props.onClick&&e.props.onClick(t),t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),e.scrollTo(e.props.to,e.props)},this.stateHandler=function(){n.getActiveLink()!==e.props.to&&(null!==e.state&&e.state.active&&e.props.onSetInactive&&e.props.onSetInactive(),e.setState({active:!1}))},this.spyHandler=function(t){var r=e.getScrollSpyContainer();if(!f.isMounted()||f.isInitialized()){var i=e.props.to,o=null,s=0,a=0,l=0;if(r.getBoundingClientRect&&(l=r.getBoundingClientRect().top),!o||e.props.isDynamic){if(!(o=n.get(i)))return;var c=o.getBoundingClientRect();a=(s=c.top-l+t)+c.height}var d=t-e.props.offset,h=d>=Math.floor(s)&&d<Math.floor(a),p=d<Math.floor(s)||d>=Math.floor(a),v=n.getActiveLink();return p?(i===v&&n.setActiveLink(void 0),e.props.hashSpy&&f.getHash()===i&&f.changeHash(),e.props.spy&&e.state.active&&(e.setState({active:!1}),e.props.onSetInactive&&e.props.onSetInactive()),u.updateStates()):h&&v!==i?(n.setActiveLink(i),e.props.hashSpy&&f.changeHash(i),e.props.spy&&(e.setState({active:!0}),e.props.onSetActive&&e.props.onSetActive(i)),u.updateStates()):void 0}}};return d.propTypes=h,d.defaultProps={offset:0},d},Element:function(e){console.warn("Helpers.Element is deprecated since v1.7.0");var t=function(t){function n(e){o(this,n);var t=s(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.childBindings={domNode:null},t}return a(n,t),i(n,[{key:"componentDidMount",value:function(){if("undefined"==typeof window)return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(e){this.props.name!==e.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if("undefined"==typeof window)return!1;c.unregister(this.props.name)}},{key:"registerElems",value:function(e){c.register(e,this.childBindings.domNode)}},{key:"render",value:function(){return l.createElement(e,r({},this.props,{parentBindings:this.childBindings}))}}]),n}(l.Component);return t.propTypes={name:d.string,id:d.string},t}}},3200:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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};a(n(4259));var i=a(n(9765)),o=a(n(140)),s=a(n(4592));function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){return i.default[e.smooth]||i.default.defaultEasing},u=function(){if("undefined"!=typeof window)return window.requestAnimationFrame||window.webkitRequestAnimationFrame}()||function(e,t,n){window.setTimeout(e,n||1e3/60,new Date().getTime())},c=function(){return{currentPosition:0,startPosition:0,targetPosition:0,progress:0,duration:0,cancel:!1,target:null,containerElement:null,to:null,start:null,delta:null,percent:null,delayTimeout:null}},d=function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return t.scrollLeft;var n=void 0!==window.pageXOffset,r="CSS1Compat"===(document.compatMode||"");return n?window.pageXOffset:r?document.documentElement.scrollLeft:document.body.scrollLeft},f=function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return t.scrollTop;var n=void 0!==window.pageXOffset,r="CSS1Compat"===(document.compatMode||"");return n?window.pageYOffset:r?document.documentElement.scrollTop:document.body.scrollTop},h=function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return t.scrollWidth-t.offsetWidth;var n=document.body,r=document.documentElement;return Math.max(n.scrollWidth,n.offsetWidth,r.clientWidth,r.scrollWidth,r.offsetWidth)},p=function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return t.scrollHeight-t.offsetHeight;var n=document.body,r=document.documentElement;return Math.max(n.scrollHeight,n.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight)},v=function e(t,n,r){var i=n.data;if(!n.ignoreCancelEvents&&i.cancel){s.default.registered.end&&s.default.registered.end(i.to,i.target,i.currentPositionY);return}if(i.delta=Math.round(i.targetPosition-i.startPosition),null===i.start&&(i.start=r),i.progress=r-i.start,i.percent=i.progress>=i.duration?1:t(i.progress/i.duration),i.currentPosition=i.startPosition+Math.ceil(i.delta*i.percent),i.containerElement&&i.containerElement!==document&&i.containerElement!==document.body?n.horizontal?i.containerElement.scrollLeft=i.currentPosition:i.containerElement.scrollTop=i.currentPosition:n.horizontal?window.scrollTo(i.currentPosition,0):window.scrollTo(0,i.currentPosition),i.percent<1){var o=e.bind(null,t,n);u.call(window,o);return}s.default.registered.end&&s.default.registered.end(i.to,i.target,i.currentPosition)},m=function(e){e.data.containerElement=e?e.containerId?document.getElementById(e.containerId):e.container&&e.container.nodeType?e.container:document:null}
5,y=function(e,t,n,r){if(t.data=t.data||c(),window.clearTimeout(t.data.delayTimeout),o.default.subscribe(function(){t.data.cancel=!0}),m(t),t.data.start=null,t.data.cancel=!1,t.data.startPosition=t.horizontal?d(t):f(t),t.data.targetPosition=t.absolute?e:e+t.data.startPosition,t.data.startPosition===t.data.targetPosition){s.default.registered.end&&s.default.registered.end(t.data.to,t.data.target,t.data.currentPosition);return}t.data.delta=Math.round(t.data.targetPosition-t.data.startPosition),t.data.duration=("function"==typeof(i=t.duration)?i:function(){return i})(t.data.delta),t.data.duration=isNaN(parseFloat(t.data.duration))?1e3:parseFloat(t.data.duration),t.data.to=n,t.data.target=r;var i,a=l(t),h=v.bind(null,a,t);if(t&&t.delay>0){t.data.delayTimeout=window.setTimeout(function(){s.default.registered.begin&&s.default.registered.begin(t.data.to,t.data.target),u.call(window,h)},t.delay);return}s.default.registered.begin&&s.default.registered.begin(t.data.to,t.data.target),u.call(window,h)},g=function(e){return(e=r({},e)).data=e.data||c(),e.absolute=!0,e};t.default={animateTopScroll:y,getAnimationType:l,scrollToTop:function(e){y(0,g(e))},scrollToBottom:function(e){m(e=g(e)),y(e.horizontal?h(e):p(e),e)},scrollTo:function(e,t){y(e,g(t))},scrollMore:function(e,t){m(t=g(t)),y(e+(t.horizontal?d(t):f(t)),t)}}},140:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5236),i=["mousedown","mousewheel","touchmove","keydown"];t.default={subscribe:function(e){return"undefined"!=typeof document&&i.forEac
5h(function(t){return(0,r.addPassiveEventListener)(document,t,e)})}}},5236:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addPassiveEventListener=function(e,t,n){var r=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}();e.addEventListener(t,n,!!r&&{passive:!0})},t.removePassiveEventListener=function(e,t,n){e.removeEventListener(t,n)}},8e3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=l(n(7294));l(n(3935));var s=l(n(2628)),a=l(n(5697));function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.childBindings={domNode:null},t}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),i(n,[{key:"componentDidMount",value:function(){if("undefined"==typeof window)return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(e){this.props.name!==e.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if("undefined"==typeof window)return!1;s.default.unregister(this.props.name)}},{key:"registerElems",value:function(e){s.default.register(e,this.childBindings.domNode)}},{key:"render",value:function(){return o.default.createElement(e,r({},this.props,{parentBindings:this.childBindings}))}}]),n}(o.default.Component);return t.propTypes={name:a.default.string,id:a.default.string},t}},4592:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={registered:{},scrollEvent:{register:function(e,t){n.registered[e]=t},remove:function(e){n.registered[e]=null}}};t.default=n},9678:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(5236);var r,i=(r=n(4259))&&r.__esModule?r:{default:r};t.default={mountFlag:!1,initialized:!1,scroller:null,containers:{},mount:function(e){this.scroller=e,this.handleHashChange=this.handleHashChange.bind(this),window.addEventListener("hashchange",this.handleHashChange),this.initStateFromHash(),this.mountFlag=!0},mapContainer:function(e,t){this.containers[e]=t},isMounted:function(){return this.mountFlag},isInitialized:function(){return this.initialized},initStateFromHash:function(){var e=this,t=this.getHash();t?window.setTimeout(function(){e.scrollTo(t,!0),e.initialized=!0},10):this.initialized=!0},scrollTo:function(e,t){var n=this.scroller;if(n.get(e)&&(t||e!==n.getActiveLink())){var r=this.containers[e]||document;n.scrollTo(e,{container:r})}},getHash:function(){return i.default.getHash()},changeHash:function(e,t){this.isInitialized()&&i.default.getHash()!==e&&i.default.updateHash(e,t)},handleHashChange:function(){this.scrollTo(this.getHash())},unmount:function(){this.scroller=null,this.containers=null,window.removeEventListener("hashchange",this.handleHashChange)}}},1093:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=c(n(7294)),s=c(n(7606)),a=c(n(2628)),l=c(n(5697)),u=c(n(9678));
5function c(e){return e&&e.__esModule?e:{default:e}}var d={to:l.default.string.isRequired,containerId:l.default.string,container:l.default.object,activeClass:l.default.string,activeStyle:l.default.object,spy:l.default.bool,horizontal:l.default.bool,smooth:l.default.oneOfType([l.default.bool,l.default.string]),offset:l.default.number,delay:l.default.number,isDynamic:l.default.bool,onClick:l.default.func,duration:l.default.oneOfType([l.default.number,l.default.func]),absolute:l.default.bool,onSetActive:l.default.func,onSetInactive:l.default.func,ignoreCancelEvents:l.default.bool,hashSpy:l.default.bool,saveHashHistory:l.default.bool,spyThrottle:l.default.number};t.default=function(e,t){var n=t||a.default,l=function(t){function a(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,a);var t=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,e));return c.call(t),t.state={active:!1},t}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,t),i(a,[{key:"getScrollSpyContainer",value:function(){var e=this.props.containerId,t=this.props.container;return e&&!t?document.getElementById(e):t&&t.nodeType?t:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var e=this.getScrollSpyContainer();s.default.isMounted(e)||s.default.mount(e,this.props.spyThrottle),this.props.hashSpy&&(u.default.isMounted()||u.default.mount(n),u.default.mapContainer(this.props.to,e)),s.default.addSpyHandler(this.spyHandler,e),this.setState({container:e})}}},{key:"componentWillUnmount",value:function(){s.default.unmount(this.stateHandler,this.spyHandler)}},{key:"render",value:function(){var t="";t=this.state&&this.state.active?((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():this.props.className;var n={};n=this.state&&this.state.active?r({},this.props.style,this.props.activeStyle):r({},this.props.style);var i=r({},this.props);for(var s in d)i.hasOwnProperty(s)&&delete i[s];return i.className=t,i.style=n,i.onClick=this.handleClick,o.default.createElement(e,i)}}]),a}(o.default.PureComponent),c=function(){var e=this;this.scrollTo=function(t,i){n.scrollTo(t,r({},e.state,i))},this.handleClick=function(t){e.props.onClick&&e.props.onClick(t),t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),e.scrollTo(e.props.to,e.props)},this.spyHandler=function(t,r){var i=e.getScrollSpyContainer();if(!u.default.isMounted()||u.default.isInitialized()){var o=e.props.horizontal,s=e.props.to,a=null,l=void 0,c=void 0;if(o){var d=0,f=0,h=0;if(i.getBoundingClientRect&&(h=i.getBoundingClientRect().left),!a||e.props.isDynamic){if(!(a=n.get(s)))return;var p=a.getBoundingClientRect();f=(d=p.left-h+t)+p.width}var v=t-e.props.offset;l=v>=Math.floor(d)&&v<Math.floor(f),c=v<Math.floor(d)||v>=Math.floor(f)}else{var m=0,y=0,g=0;if(i.getBoundingClientRect&&(g=i.getBoundingClientRect().top),!a||e.props.isDynamic){if(!(a=n.get(s)))return;var b=a.getBoundingClientRect();y=(m=b.top-g+r)+b.height}var w=r-e.props.offset;l=w>=Math.floor(m)&&w<Math.floor(y),c=w<Math.floor(m)||w>=Math.floor(y)}var _=n.getActiveLink();if(c){if(s===_&&n.setActiveLink(void 0),e.props.hashSpy&&u.default.getHash()===s){var E=e.props.saveHashHistory;u.default.changeHash("",void 0!==E&&E)}e.props.spy&&e.state.active&&(e.setState({active:!1}),e.props.onSetInactive&&e.props.onSetInactive(s,a))}if(l&&(_!==s||!1===e.state.active)){n.setActiveLink(s);var O=e.props.saveHashHistory;e.props.hashSpy&&u.default.changeHash(s,void 0!==O&&O),e.props.spy&&(e.setState({active:!0}),e.props.onSetActive&&e.props.onSetActive(s,a))}}}};return l.propTypes=d,l.defaultProps={offset:0},l}},7606:function(e,t,n){"use strict";
5Object.defineProperty(t,"__esModule",{value:!0});var r,i=(r=n(3096))&&r.__esModule?r:{default:r},o=n(5236),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:66;return(0,i.default)(e,t)},a={spyCallbacks:[],spySetState:[],scrollSpyContainers:[],mount:function(e,t){if(e){var n=s(function(t){a.scrollHandler(e)},t);a.scrollSpyContainers.push(e),(0,o.addPassiveEventListener)(e,"scroll",n)}},isMounted:function(e){return -1!==a.scrollSpyContainers.indexOf(e)},currentPositionX:function(e){if(e!==document)return e.scrollLeft;var t=void 0!==window.pageYOffset,n="CSS1Compat"===(document.compatMode||"");return t?window.pageXOffset:n?document.documentElement.scrollLeft:document.body.scrollLeft},currentPositionY:function(e){if(e!==document)return e.scrollTop;var t=void 0!==window.pageXOffset,n="CSS1Compat"===(document.compatMode||"");return t?window.pageYOffset:n?document.documentElement.scrollTop:document.body.scrollTop},scrollHandler:function(e){(a.scrollSpyContainers[a.scrollSpyContainers.indexOf(e)].spyCallbacks||[]).forEach(function(t){return t(a.currentPositionX(e),a.currentPositionY(e))})},addStateHandler:function(e){a.spySetState.push(e)},addSpyHandler:function(e,t){var n=a.scrollSpyContainers[a.scrollSpyContainers.indexOf(t)];n.spyCallbacks||(n.spyCallbacks=[]),n.spyCallbacks.push(e),e(a.currentPositionX(t),a.currentPositionY(t))},updateStates:function(){a.spySetState.forEach(function(e){return e()})},unmount:function(e,t){a.scrollSpyContainers.forEach(function(e){return e.spyCallbacks&&e.spyCallbacks.length&&e.spyCallbacks.indexOf(t)>-1&&e.spyCallbacks.splice(e.spyCallbacks.indexOf(t),1)}),a.spySetState&&a.spySetState.length&&a.spySetState.indexOf(e)>-1&&a.spySetState.splice(a.spySetState.indexOf(e),1),document.removeEventListener("scroll",a.scrollHandler)},update:function(){return a.scrollSpyContainers.forEach(function(e){return a.scrollHandler(e)})}};t.default=a},2628:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},i=a(n(4259)),o=a(n(3200)),s=a(n(4592));function a(e){return e&&e.__esModule?e:{default:e}}var l={},u=void 0;t.default={unmount:function(){l={}},register:function(e,t){l[e]=t},unregister:function(e){delete l[e]},get:function(e){return l[e]||document.getElementById(e)||document.getElementsByName(e)[0]||document.getElementsByClassName(e)[0]},setActiveLink:function(e){return u=e},getActiveLink:function(){return u},scrollTo:function(e,t){var n=this.get(e);if(!n){console.warn("target Element not found");return}var a=(t=r({},t,{absolute:!1})).containerId,l=t.container,u=void 0;u=a?document.getElementById(a):l&&l.nodeType?l:document,t.absolute=!0;var c=t.horizontal,d=i.default.scrollOffset(u,n,c)+(t.offset||0);if(!t.smooth){s.default.registered.begin&&s.default.registered.begin(e,n),u===document?t.horizontal?window.scrollTo(d,0):window.scrollTo(0,d):u.scrollTop=d,s.default.registered.end&&s.default.registered.end(e,n);return}o.default.animateTopScroll(d,t,e,n)}}},9765:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={defaultEasing:function(e){return e<.5?Math.pow(2*e,2)/2:1-Math.pow((1-e)*2,2)/2},linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:-1+(4-2*e)*e},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}}},4259:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){for(var n=e.offsetTop,r=e.offsetParent;r&&!t(r);)n+=r.offsetTop,r=r.offsetParent;return{offsetTop:n,offsetParent:r}};t.default={updateHash:function(e,t){var n=0===e.indexOf("#")?e.substring(1):e,r=n?"#"+n:"",i=window&&window.location,o=r?i.pathname+i.search+r:i.pathname+i.search;t?history.pushState(history.state,"",o):history.replaceState(history.state,"",o)},getHash:function(){return window.location.hash.replace(/^#/,"")},filterElementInContainer:function(e){return function(t){return e.contains?e!=t&&e.contains(t):!!(16&e.compareDocumentPosition(t))}},scrollOffset:function(e,t,r){if(r)return e===document?t.getBoundingClientRect().left+(window.scrollX||window.pageXOffset):"static"!==getComputedStyle(e).position?t.offsetLeft:t.offsetLeft-e.offsetLeft;if(e===document)return t.getBoundingClientRect().top+(window.scrollY||window.pageYOffset);if("static"!==getComputedStyle(e).position){if(t.offsetParent!==e){var i=n(t,function(t){return t===e||t===document}),o=i.offsetTop;if(i.offsetParent!==e)throw Error("Seems containerElement is not an ancestor of the Element");return o}return t.offsetTop}if(t.offsetParent===e.offsetParent)return t.offsetTop-e.offsetTop;var s=function(e){return e===document};return n(t,s).offsetTop-n(e,s).offsetTop}}},3170:function(e,t,n){"use strict";n.d(t,{cn:function(){return f},d0:function(){return d},Wj:function(){return c},Ix:function(){return h},ZP:function(){return m}});var r=n(3366),i=n(5068),o=n(7294),s=n(3935),a={disabled:!1},l=o.createContext(null),u="unmounted",c="exited",d="entering",f="entered",h="exiting",p=function(e){function t(t,n){r=e.call(this,t,n)||this;var r,i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=c,r.appearStatus=d):i=f:i=t.unmountOnExit||t.mountOnEnter?u:c,r.state={status:i},r.nextCallback=null,r}(0,i.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===u?{status:c}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==d&&n!==f&&(t=d):(n===d||n===f)&&(t=h)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,a
5ppear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){if(this.cancelNextCallback(),t===d){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:s.findDOMNode(this);n&&n.scrollTop}this.performEnter(e)}else this.performExit()}else this.props.unmountOnExit&&this.state.status===c&&this.setState({status:u})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[s.findDOMNode(this),r],o=i[0],l=i[1],u=this.getTimeouts(),c=r?u.appear:u.enter;if(!e&&!n||a.disabled){this.safeSetState({status:f},function(){t.props.onEntered(o)});return}this.props.onEnter(o,l),this.safeSetState({status:d},function(){t.props.onEntering(o,l),t.onTransitionEnd(c,function(){t.safeSetState({status:f},function(){t.props.onEntered(o,l)})})})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:s.findDOMNode(this);if(!t||a.disabled){this.safeSetState({status:c},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:h},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:c},function(){e.props.onExited(r)})})})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:s.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(!n||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===u)return null;var t=this.props,n=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return o.createElement(l.Provider,{value:null},"function"==typeof n?n(e,i):o.cloneElement(o.Children.only(n),i))},t}(o.Component);function v(){}p.contextType=l,p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:v,onEntering:v,onEntered:v,onExit:v,onExiting:v,onExited:v},p.UNMOUNTED=u,p.EXITED=c,p.ENTERING=d,p.ENTERED=f,p.EXITING=h;var m=p},7150:function(e,t,n){"use strict";n.d(t,{Ch:function(){return u},$c:function(){return l}});var r=n(7462),i=n(3366),o=n(7294);function s(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function a(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function l(e,t,n){var r=(0,o.useRef)(void 0!==e),i=(0,o.useState)(t),s=i[0],a=i[1],l=void 0!==e,u=r.current;return r.current=l,!l&&u&&s!==t&&a(t),[l?e:s,(0,o.useCallback)(function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n&&n.apply(void 0,[e].concat(r)),a(e)},[n])]}function u(e,t){return Object.keys(t).reduce(function(n,o){var u,c=n[s(o)],d=n[o],f=(0,i.Z)(n,[s(o),o].map(a)),h=t[o],p=l(d,c,e[h]),v=p[0],m=p[1];return(0,r.Z)({},f,((u={})[o]=v,u[h]=m,u))},e)}n(1143)},2473:function(e){"use strict";e.exports=function(){}},5840:function(e,t,n){if("object"==typeof globalThis)r=globalThis;else try{r=n(284)}catch(e){}finally{if(r||"undefined"==typeof window||(r=window),!r)throw Error("Could not determine global this")}var r,i=r.WebSocket||r.MozWebSocket,o=n(9387);function s(e,t){return t?new i(e,t):new i(e)}i&&["CONNECTING","OPEN","CLOSING","CLOSED"].forEach(function(e){Object.defineProperty(s,e,{get:function(){return i[e]}})}),e.exports={w3cwebsocket:i?s:null,version:o}},9387:function(e,t,n){e.exports=n(9794).version},7462:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():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}).apply(this,arguments)}n.d(t,{Z:function(){return r}})},5068:function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{Z:function(){return i}})},3366:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,{Z:function(){return r}})},9794:function(e){"use strict";e.exports={version:"1.0.34"}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.